/* Shared solid-green controls. Keep danger buttons and image assets unchanged. */
:root{--ui-primary:#008674;--ui-primary-hover:#007564;--ui-primary-active:#006858;--ui-primary-soft:#eaf5ef;--ui-primary-disabled:#b5cbc2}
:is(
  #identity .home-login-card .home-login-button,
  #student-profile .profile-actions .profile-continue,
  #welcome .welcome-start,
  #completed .student-end-primary,
  #record .student-end-primary,
  #exam #advance,
  #exam #submit-button,
  #teacher .filters .teacher-filter-button,
  #teacher .org-add-box>button,
  #teacher .org-grade-add>button,
  #teacher .org-class-add button:not(.org-mini),
  #teacher .teacher-empty-panel>button,
  #teacher .teacher-pagination button.active,
  body:has(.teacher-mode) .org-edit-form>button,
  body:has(.teacher-mode) .score-error-actions button:not(.secondary),
  #student-login .actions button:not(.secondary),
  #teacher-login .actions button:not(.secondary)
){--control-green:var(--ui-primary);background:var(--control-green);background-image:none;border-color:var(--control-green);color:#fff;box-shadow:none;text-shadow:none;filter:none}
:is(
  #identity .home-login-card .home-login-button,
  #student-profile .profile-actions .profile-continue,
  #welcome .welcome-start,
  #completed .student-end-primary,
  #record .student-end-primary,
  #exam #advance,
  #exam #submit-button,
  #teacher .filters .teacher-filter-button,
  #teacher .org-add-box>button,
  #teacher .org-grade-add>button,
  #teacher .org-class-add button:not(.org-mini),
  #teacher .teacher-empty-panel>button,
  #teacher .teacher-pagination button.active,
  body:has(.teacher-mode) .org-edit-form>button,
  body:has(.teacher-mode) .score-error-actions button:not(.secondary),
  #student-login .actions button:not(.secondary),
  #teacher-login .actions button:not(.secondary)
):hover:not(:disabled){--control-green:var(--ui-primary-hover);box-shadow:none;filter:none}
:is(
  #identity .home-login-card .home-login-button,
  #student-profile .profile-actions .profile-continue,
  #welcome .welcome-start,
  #completed .student-end-primary,
  #record .student-end-primary,
  #exam #advance,
  #exam #submit-button,
  #teacher .filters .teacher-filter-button,
  #teacher .org-add-box>button,
  #teacher .org-grade-add>button,
  #teacher .org-class-add button:not(.org-mini),
  #teacher .teacher-empty-panel>button,
  #teacher .teacher-pagination button.active,
  body:has(.teacher-mode) .org-edit-form>button,
  body:has(.teacher-mode) .score-error-actions button:not(.secondary),
  #student-login .actions button:not(.secondary),
  #teacher-login .actions button:not(.secondary)
):active:not(:disabled){--control-green:var(--ui-primary-active)}
:is(
  #identity .home-login-card .home-login-button,
  #student-profile .profile-actions .profile-continue,
  #welcome .welcome-start,
  #completed .student-end-primary,
  #record .student-end-primary,
  #exam #advance,
  #exam #submit-button,
  #teacher .filters .teacher-filter-button,
  #teacher .org-add-box>button,
  #teacher .org-grade-add>button,
  #teacher .org-class-add button:not(.org-mini),
  #teacher .teacher-empty-panel>button,
  #teacher .teacher-pagination button.active,
  body:has(.teacher-mode) .org-edit-form>button,
  body:has(.teacher-mode) .score-error-actions button:not(.secondary)
):disabled{--control-green:var(--ui-primary-disabled);opacity:1;filter:none}
/* Live text covers the old image-backed buttons once their fill is solid. */
#identity .home-login-card .home-login-button svg,#student-profile .profile-continue svg{opacity:1}
:is(
  #exam .exam-answer-footer .exam-save-button,
  #exam #add-idea,
  #exam .exam-answer-footer .exam-back-to-plan,
  #completed .student-end-secondary,
  #record .student-end-secondary,
  #teacher .filters .teacher-reset-button,
  #teacher .org-mini,
  #teacher .org-class-chip:not(.off),
  #teacher .teacher-pagination button.secondary
){background:#fff;background-image:none;border-color:var(--ui-primary);color:var(--ui-primary);box-shadow:none;filter:none}
:is(
  #exam .exam-answer-footer .exam-save-button,
  #exam #add-idea,
  #exam .exam-answer-footer .exam-back-to-plan,
  #completed .student-end-secondary,
  #record .student-end-secondary,
  #teacher .filters .teacher-reset-button,
  #teacher .org-mini,
  #teacher .org-class-chip:not(.off),
  #teacher .teacher-pagination button.secondary
):hover:not(:disabled){background:var(--ui-primary-soft);color:var(--ui-primary);box-shadow:none;filter:none}
/* Existing score actions used !important; override only those same controls. */
#teacher .data-table .score-start{background:var(--ui-primary)!important;border-color:var(--ui-primary)!important;color:#fff;box-shadow:none;filter:none}
#teacher .data-table .score-start:hover:not(:disabled){background:var(--ui-primary-hover)!important;border-color:var(--ui-primary-hover)!important}
#teacher .data-table .score-start:disabled{background:var(--ui-primary-disabled)!important;border-color:var(--ui-primary-disabled)!important;opacity:1}
#teacher .data-table .score-view{background:#fff!important;border-color:var(--ui-primary)!important;color:var(--ui-primary);filter:none}
#teacher .data-table .score-view:hover{background:var(--ui-primary-soft)!important}
#teacher .teacher-nav button.active,#teacher .org-school-item.active{background:var(--ui-primary-soft);color:var(--ui-primary)}
#student-flow-shell .student-flow-steps .current>span,#welcome .welcome-steps .current>span,#student-profile .profile-steps .current>span,#exam .nav button.active .exam-step-circle{background:var(--ui-primary);background-image:none;border-color:var(--ui-primary);color:#fff;box-shadow:none}
#student-flow-shell .student-flow-steps .complete>span,#exam .nav button.complete .exam-step-circle{background:var(--ui-primary-soft);color:var(--ui-primary)}
