.account-card { background: var(--teal-pale); border-radius: .68rem; margin-top: 1rem; padding: .9rem; }
.account-card > p:not(.eyebrow) { margin: .35rem 0 .7rem; }
.account-card .eyebrow { margin-bottom: .35rem; }
.account-list { margin-block: 1rem .4rem; }
.account-list ul { list-style: none; margin: .35rem 0 0; padding: 0; }
.account-list li { border-top: 1px solid var(--line); }
.recovery-help summary { color: var(--teal-deep); font-weight: 680; cursor: pointer; }
.recovery-help p { margin-top: .4rem; }
button:disabled { opacity: .65; cursor: wait; }

.course-options { display:flex; align-items:center; flex-wrap:wrap; gap:.6rem 1rem; border:1px solid var(--line); border-radius:.5rem; padding:.6rem .75rem; }
.course-options legend { padding-inline:.2rem; font-weight:700; }
.course-options label { display:inline-flex; align-items:center; gap:.35rem; margin:0; }
.course-options input[type="checkbox"] { width:1rem; height:1rem; margin:0; accent-color:var(--teal-deep); }
.course-progress-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; margin-block:1rem; }
.course-progress-grid:empty { display:none; }
.course-progress-card { margin:0; padding:1rem; border:1px solid var(--line); border-top:.3rem solid var(--teal-deep); display:flex; flex-direction:column; align-items:flex-start; }
.course-progress-business { background:var(--grey); border-top-color:var(--navy); }
.course-progress-card progress { width:100%; accent-color:var(--teal-deep); }
.course-progress-business progress { accent-color:var(--navy); }
.course-progress-card .button { margin-top:auto; }
.portal-layout.student-layout { grid-template-columns:minmax(0,1fr); max-width:850px; }
.student-layout .portal-story { display:none; }

.portal-layout.teacher-layout { grid-template-columns:minmax(0,1fr); padding-block:clamp(1rem,4vw,3rem); }
.teacher-layout .portal-story { display:none; }
.teacher-header { display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:1rem; }
.teacher-header h1 { margin:.25rem 0 .5rem; font-size:clamp(2rem,4.2vw,3rem); }
.teacher-nav { display:flex; flex-wrap:wrap; gap:.45rem; padding:.4rem; margin-top:1.25rem; border-radius:.65rem; background:var(--grey); }
.teacher-nav a { min-height:44px; display:inline-flex; align-items:center; padding:.5rem .85rem; border-radius:.46rem; text-decoration:none; font-weight:680; }
.teacher-nav a:hover { background:var(--teal-pale); }
.teacher-nav a[aria-current="page"] { background:var(--navy); color:white; }
.teacher-pane { margin-top:1.35rem; }
.teacher-pane h2 { margin:0 0 .5rem; }
.teacher-pane > p { margin:.5rem 0 .7rem; }
.teacher-card { min-width:0; padding:1rem; margin-top:.75rem; border:1px solid var(--line); border-radius:.7rem; }
.teacher-card > p:not(.eyebrow) { margin:.4rem 0 .7rem; }
.teacher-management-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; align-items:start; }
#teacher-create .teacher-card { max-width:740px; }
[data-teacher-pane="placement"] .teacher-card { max-width:760px; }
.placement-test-list { list-style:none; margin:.6rem 0 0; padding:0; }
.placement-test-list li { border-top:1px solid var(--line); padding:.7rem 0; overflow-wrap:anywhere; }
.placement-test-list strong { display:block; }
.placement-report { margin-top:.6rem; }
.placement-report summary { cursor:pointer; color:var(--teal-deep); font-weight:680; }
.placement-charts { display:grid; gap:.65rem; margin-block:.75rem; }
.placement-charts progress { display:block; width:min(100%,30rem); height:1rem; accent-color:var(--teal-deep); }
.placement-missed { margin:.4rem 0 .65rem; padding:.55rem .75rem; border-left:3px solid var(--line); white-space:pre-line; }
.placement-report h4 { margin-bottom:.4rem; }
.placement-bank-filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; }
.placement-bank-question { grid-column:1 / -1; }
.placement-bank fieldset { min-width:0; margin:0; border:1px solid var(--line); border-radius:.5rem; }
.placement-bank fieldset label + label { margin-top:.5rem; }
#placement-bank-transcript { white-space:pre-line; margin-bottom:.5rem; }
#placement-bank-audio { max-width:100%; }
#placement-bank-status:not(:empty) { margin:.65rem 0; }
#teacher-linked-email { overflow-wrap:anywhere; }
.portal-layout.verification-layout { grid-template-columns:minmax(0,560px); justify-content:center; }
.verification-layout .portal-story { display:none; }
#verification-continue { margin-top:.8rem; }
@media(max-width:620px) {
  .course-progress-grid { grid-template-columns:1fr; }
  .teacher-management-grid { grid-template-columns:1fr; gap:.25rem; }
  .teacher-nav a { flex:1 1 auto; justify-content:center; padding-inline:.55rem; }
  .teacher-header .button { min-height:40px; }
}


.portal-layout.student-layout { max-width: 1180px; }
.student-header h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: .25rem 0 .35rem; }
.student-workspace { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1.4rem; margin-top: 1.4rem; }
.student-workspace-content { min-width: 0; }
.student-workspace-content h2 { margin: 0 0 .6rem; }
.student-nav {
  display: flex; flex-direction: column; gap: .3rem; align-self: start;
  background: var(--grey); border-radius: .65rem; padding: .35rem;
}
.student-nav a {
  display: flex; align-items: center; padding: .5rem .7rem; min-height: 44px;
  border-radius: .4rem; font-weight: 680; text-decoration: none;
}
.student-nav a:hover { background: var(--teal-pale); }
.student-nav a[aria-current="page"] { color: white; background: var(--navy); }
.practice-categories { display: flex; flex-wrap: wrap; gap: .35rem; margin: .7rem 0 1rem; }
.practice-categories button {
  min-height: 44px; color: var(--teal-deep); background: white; border: 1px solid var(--line);
  border-radius: .45rem; padding: .45rem .75rem; font: inherit; font-weight: 650; cursor: pointer;
}
.practice-categories button[aria-pressed="true"] { background: var(--teal-deep); color: white; border-color: var(--teal-deep); }
.practice-search { display: block; max-width: 25rem; margin-bottom: .8rem; }
.practice-library-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem;
  list-style: none; margin: 0; padding: 0;
}
.practice-library-list li { display: flex; min-width: 0; }
.practice-card {
  display: grid; align-content: start; gap: .35rem; padding: .85rem .95rem; width: 100%; text-align: left;
  border: 1px solid var(--line); border-radius: .6rem; color: var(--navy); background: white; font: inherit; cursor: pointer;
}
.practice-card:hover { border-color: var(--teal-deep); background: var(--teal-pale); }
.practice-card span { color: var(--ink-soft); font-size: .88rem; }
#extra-practices-status:empty { display: none; }
@media (max-width: 680px) {
  .student-workspace { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .student-nav { flex-direction: row; flex-wrap: wrap; }
  .practice-library-list { grid-template-columns: minmax(0, 1fr); }
}

.student-name-link { display:block; padding:.7rem .5rem; border-radius:.4rem; font-weight:700; overflow-wrap:anywhere; }
.student-name-link:hover { color:var(--teal-deep); background:var(--teal-pale); }
#teacher-student-title { margin-top:1rem; overflow-wrap:anywhere; }
.teacher-student-columns { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:start; gap:.9rem; }
.teacher-student-column { min-width:0; border:1px solid var(--line); border-radius:.7rem; padding:clamp(.75rem,1.5vw,1rem); }
.teacher-student-column h3 { margin-bottom:.8rem; }
.teacher-student-column form { margin-top:.75rem; }
.teacher-student-column fieldset { min-width:0; padding:0; margin:0; border:0; }
.teacher-student-column legend { font-weight:700; margin-bottom:.45rem; }
.teacher-student-column [role="status"]:empty { display:none; }
.student-access-toggle,.teacher-practice-list label { display:flex; align-items:center; gap:.5rem; }
:is(.teacher-student-column,.teacher-practice-list) input[type="checkbox"] { width:1rem; height:1rem; min-height:0; padding:0; flex:none; margin:0; accent-color:var(--teal-deep); }
#teacher-extra-practices-title { margin-top:1rem; }
#teacher-extra-practices-status:empty { display:none; }
.teacher-practice-columns { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); align-items:start; gap:.9rem; }
.teacher-practice-column { min-width:0; padding:.8rem; border:1px solid var(--line); border-radius:.65rem; }
.teacher-practice-column h3 { margin-bottom:.35rem; }
.teacher-practice-column > .field-note { margin:.35rem 0; }
.teacher-practice-level { border-top:1px solid var(--line); }
.teacher-practice-level summary { padding:.6rem .15rem; min-height:44px; cursor:pointer; font-weight:700; color:var(--teal-deep); }
.teacher-practice-level-size { float:right; min-width:1.55rem; border-radius:999px; padding:.05rem .36rem; background:var(--teal-pale); text-align:center; font-size:.78rem; }
.teacher-practice-level .teacher-practice-list { margin-top:0; }
.teacher-practice-select-level { display:flex; align-items:center; gap:.55rem; min-height:44px; padding:.35rem .55rem; margin:.18rem 0 .32rem; border-radius:.45rem; background:var(--teal-pale); color:var(--navy); font-weight:650; cursor:pointer; }
.teacher-practice-select-level input { width:1.05rem; min-height:0; margin:0; flex:none; accent-color:var(--teal-deep); }
.teacher-practice-list { max-height:21rem; overflow:auto; list-style:none; margin-block:.45rem .75rem; padding:0; border:1px solid var(--line); border-radius:.45rem; }
.teacher-practice-list li { display:flex; align-items:stretch; border-bottom:1px solid var(--line); }
.teacher-practice-list li:last-child { border-bottom:0; }
.teacher-practice-list label { flex:0 0 2.75rem; justify-content:center; margin:0; cursor:pointer; }
.teacher-practice-list li a { flex:1; display:block; min-width:0; min-height:44px; padding:.55rem .55rem .55rem 0; font-weight:650; color:var(--teal-deep); text-underline-offset:.15em; }
.teacher-practice-list li a:hover { color:var(--navy); }
.teacher-practice-list li .field-note { display:block; margin:0; font-weight:500; }
#teacher-student-contact { margin-top:1.1rem; }
#teacher-student-contact summary { cursor:pointer; color:var(--teal-deep); font-weight:650; }
#teacher-student-contact form { max-width:29rem; }
.practice-card { text-decoration:none; }
.practice-card-heading { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:.35rem .65rem; }
.practice-card.practice-card-done { border-color:#79ab8b; background:#eaf7ee; }
.practice-card.practice-card-done:hover { border-color:#2d7950; background:#dff2e6; }
.content-unavailable { opacity:.55; cursor:default; }
.placement-student-row { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.placement-student-row .student-name-link { flex:1; }
.test-status { display:inline-block; padding:.3rem .7rem; border-radius:999px; font-size:.85rem; font-weight:650; background:#edf1f5; white-space:nowrap; }
.test-status-in-progress { background:#fff3d5; color:#70510b; }
.test-status-completed { background:#eaf7ee; color:#27613e; }
.placement-new-account { margin-top:1.5rem; border-top:1px solid var(--line); padding-top:1rem; }
.contract-dates { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.contract-card { margin-bottom:1.25rem; }
.contract-card form { display:flex; align-items:end; flex-wrap:wrap; gap:1rem; }
.contract-card form label { flex:1; min-width:160px; }
.contract-card form [role=status] { flex-basis:100%; }
.placement-attempt { margin-top:1.5rem; }
@media(max-width:560px){.contract-dates { grid-template-columns:1fr; }.placement-student-row { gap:.4rem; }}
.practice-card .practice-done-badge { border-radius:999px; padding:.15rem .55rem; color:#195a35; background:#ccebd8; font-size:.8rem; font-weight:700; }
#teacher-practice-title { margin-top:1rem; }
.teacher-practice-attempt { min-width:0; border:1px solid var(--line); border-radius:.65rem; padding:.75rem clamp(.65rem,2vw,1.15rem); margin:.7rem 0; }
.teacher-practice-attempt summary { min-height:44px; padding:.6rem 0; color:var(--teal-deep); font-weight:700; cursor:pointer; }
.practice-answer-scroll { overflow-x:auto; margin-top:1rem; }
.practice-answer-table { width:100%; min-width:34rem; table-layout:fixed; border-collapse:collapse; font-size:.92rem; }
.practice-answer-table caption { text-align:left; font-size:1.05rem; font-weight:700; padding:.4rem 0; }
.practice-answer-table :is(th,td) { padding:.55rem .6rem; text-align:left; vertical-align:top; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.practice-answer-table th { background:var(--grey); }
.practice-answer-table th:first-child { width:38%; }
.practice-answer-table th:last-child { width:16%; }
.practice-answer-table.practice-answer-table-compact { min-width:0; }
.practice-answer-table-compact th:first-child { width:auto; }
.practice-answer-table-compact th:last-child { width:25%; }
.report-correct { color:#195a35; font-weight:700; }
.report-incorrect { color:#952c2c; font-weight:700; }
.teacher-practice-writing { margin-top:1.25rem; }
.teacher-practice-writing > div { border-top:1px solid var(--line); padding:.6rem 0; }
.teacher-practice-writing h5 { margin:0; font-size:.95rem; }
.teacher-practice-writing ul { margin:.3rem 0; padding-inline-start:1.3rem; color:var(--ink-soft); }
.teacher-practice-writing .written-answer { white-space:pre-wrap; overflow-wrap:anywhere; }
@media(max-width:870px) { .teacher-student-columns { grid-template-columns:minmax(0,1fr); } }
@media(max-width:940px) { .teacher-practice-columns { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:560px) { .teacher-practice-columns { grid-template-columns:minmax(0,1fr); } }

/* Master account teacher management. */
.contract-counts,.contract-filters { display:flex; flex-wrap:wrap; gap:.65rem; margin-block:1rem; align-items:end; }
.contract-filters label { flex:1; min-width:12rem; }
.contract-badge { display:inline-flex; padding:.4rem .7rem; border-radius:.5rem; font-size:.9rem; background:#eef2f6; color:#243b53; }
.contract-ending_soon,.contract-row-ending_soon { background:#fff6df; color:#775000; }
.contract-expired { background:#fae9e9; color:#8b2d2d; }
.contract-active { background:#e5f4ed; color:#206143; }
.contract-upcoming { background:#e7f0fa; color:#274d76; }
.contract-table { width:100%; border-collapse:collapse; min-width:37rem; font-size:1rem; }
.contract-table :is(th,td) { padding:.8rem; text-align:left; border-bottom:1px solid var(--line); }
.contract-table th { background:var(--grey); }
.contract-card details { margin-top:1rem; padding-top:.7rem; border-top:1px solid var(--line); }
.contract-card summary,#teacher-student-contact summary { cursor:pointer; font-weight:700; color:var(--teal-deep); padding:.5rem 0; }
.contract-card .student-profile-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
.student-profile-form label:last-of-type,.student-profile-form .field-note,.student-profile-form [role=status] { grid-column:1/-1; }
.student-profile-form textarea { width:100%; padding:.65rem; font:inherit; color:inherit; border:1px solid var(--line); border-radius:.4rem; resize:vertical; }
#teacher-student-contact details { max-width:40rem; padding:1rem; border:1px solid var(--line); border-radius:.7rem; margin-block:.75rem; }
@media(max-width:560px){.contract-card .student-profile-form { grid-template-columns:1fr; }}
.master-teacher-management { margin-block: 1.25rem; }
.master-teacher-management form { display: grid; gap: .8rem; max-width: 32rem; }
.master-teacher-management label { display: grid; gap: .35rem; }
.teacher-accounts-list { padding: 0; list-style: none; margin-top: 1rem; }
.teacher-accounts-list li { display: flex; flex-wrap: wrap; gap: .35rem 1rem; justify-content: space-between; padding: .8rem 0; border-bottom: 1px solid #d3dee7; }
#student-teacher-filter-label { display: grid; gap: .4rem; max-width: 24rem; margin-block: 1rem; }
