.first-class-setup-banner { display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 14px; border: 1px solid #3d6ea8; border-radius: 12px; background: #102b4c; color: #dcecff; padding: 13px 16px; text-align: left; cursor: pointer; }
.first-class-setup-banner i { color: #76b4ff; font-size: 20px; }
.first-class-setup-banner span { display: block; margin-top: 3px; color: #97b8dc; font-size: 11px; }
.first-class-readiness { margin-bottom: 14px; overflow: hidden; border: 1px solid #386b79; border-radius: 14px; background: #0c282e; color: #e4f8f5; }
.first-class-readiness-toggle { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; width: 100%; min-height: 64px; border: 0; background: transparent; color: inherit; padding: 11px 15px; text-align: left; cursor: pointer; }
.first-class-readiness-toggle > i:first-child { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #15505a; color: #76d7cd; font-size: 17px; }
.first-class-readiness-toggle > span:nth-child(2) { display: grid; gap: 3px; }
.first-class-readiness-toggle strong { font-size: 14px; }
.first-class-readiness-toggle small { color: #86aca9; font-size: 10px; }
.first-class-readiness-toggle > i:last-child { color: #78a6a3; transition: transform .18s ease; }
.first-class-readiness-toggle[aria-expanded="true"] > i:last-child { transform: rotate(180deg); }
.first-class-readiness-meter { display: grid; justify-items: end; gap: 5px; min-width: 118px; color: #90d9d1; font-size: 10px; font-weight: 850; }
.first-class-readiness-meter progress { width: 118px; height: 5px; border: 0; border-radius: 99px; overflow: hidden; background: #173e43; }
.first-class-readiness-meter progress::-webkit-progress-bar { background: #173e43; }
.first-class-readiness-meter progress::-webkit-progress-value { background: #55c6b8; }
.first-class-readiness-meter progress::-moz-progress-bar { background: #55c6b8; }
.first-class-readiness-panel { border-top: 1px solid #2d5359; padding: 12px 14px 14px; }
.first-class-readiness-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.first-class-readiness-list > li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: start; gap: 10px; border: 1px solid #2b5157; border-radius: 10px; background: #102f35; padding: 11px; }
.first-class-readiness-list > li > i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #173f47; color: #77cfc4; }
.first-class-readiness-list > li > span { display: grid; gap: 3px; }
.first-class-readiness-list > li strong { font-size: 12px; }
.first-class-readiness-list > li small { color: #85a9a7; font-size: 10px; }
.first-class-readiness-list > li > b { border-radius: 999px; background: #183f45; color: #83b8b3; padding: 5px 8px; font-size: 9px; white-space: nowrap; }
.first-class-readiness-list > li[data-state="done"] { border-color: #2f756b; background: #123a38; }
.first-class-readiness-list > li[data-state="done"] > b { background: #1c564c; color: #8fe0d1; }
.first-class-readiness-list > li[data-state="skipped"] { opacity: .76; }
.first-class-readiness-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.first-class-readiness-actions :is(a, button) { display: inline-flex; align-items: center; min-height: 44px; border: 1px solid #3f6b70; border-radius: 7px; background: #173d43; color: #cde8e5; padding: 0 11px; text-decoration: none; font-size: 10px; font-weight: 800; cursor: pointer; }
.first-class-readiness-actions a:first-child, .first-class-readiness-actions [data-first-readiness-tour] { border-color: #3e8f86; background: #1d645d; color: #fff; }
.first-class-readiness-panel footer { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 11px; }
.first-class-readiness-panel footer p { flex: 1; min-height: 18px; margin: 0; color: #87aaa8; font-size: 10px; }
.first-class-readiness-panel footer p[data-tone="bad"] { color: #ff9b9b; }
.first-class-readiness-panel footer p[data-tone="good"] { color: #8fe0d1; }
.first-class-readiness-panel footer button { min-height: 44px; border: 1px solid #55b8ad; border-radius: 9px; background: #247a70; color: #fff; padding: 0 14px; font-weight: 850; cursor: pointer; }
.first-class-readiness-panel footer button:disabled { opacity: .45; cursor: not-allowed; }
.first-class-setup-dialog { width: min(780px, calc(100vw - 32px)); border: 1px solid #3b628e; border-radius: 20px; background: #0e1c2f; color: #eaf3ff; padding: 0; box-shadow: 0 32px 100px #02060db3; }
.first-class-setup-dialog::backdrop { background: #02070ecf; backdrop-filter: blur(3px); }
.first-class-setup-shell { padding: 26px; }
.first-class-setup-shell > header span { color: #72aaf3; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.first-class-setup-shell > header h2 { margin: 7px 0; font-size: 25px; }
.first-class-setup-shell > header p { margin: 0; color: #93a9c5; font-size: 13px; }
.first-setup-stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 22px 0; padding: 0; list-style: none; }
.first-setup-stepper li { display: grid; justify-items: center; gap: 6px; color: #7086a2; font-size: 10px; font-weight: 800; text-align: center; }
.first-setup-stepper b { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #314965; border-radius: 50%; background: #13253c; }
.first-setup-stepper li[data-state="current"] { color: #bcdcff; }
.first-setup-stepper li[data-state="current"] b { border-color: #64a5f4; background: #245f9f; color: white; }
.first-setup-stepper li[data-state="done"] { color: #77c6aa; }
.first-setup-stepper li[data-state="done"] b { border-color: #39876e; background: #163f35; }
.first-setup-current-step { display: none; margin: -12px 0 14px; color: #9fc7f5; text-align: center; font-size: 11px; font-weight: 850; }
.first-setup-body { min-height: 230px; border: 1px solid #293f5c; border-radius: 14px; background: #101f33; padding: 22px; }
.first-setup-body p { color: #9eb1c9; font-size: 13px; line-height: 1.65; }
.first-setup-body .is-warning { color: #f2bd7d; }
.first-setup-profile, .first-setup-security, .first-setup-preview, .first-setup-choice { display: grid; gap: 8px; }
.first-setup-profile span, .first-setup-profile small { color: #8097b3; font-size: 11px; }
.first-setup-profile strong { font-size: 18px; }
.first-setup-student-count { display: flex; align-items: baseline; gap: 8px; margin-bottom: 18px; }
.first-setup-student-count strong { color: #72b0ff; font-size: 48px; }
.first-setup-student-count span { color: #a9bdd5; font-weight: 800; }
.first-setup-primary-link, .first-setup-complete a, .first-setup-security a { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; border: 1px solid #4b8bd2; border-radius: 9px; background: #225f9f; color: white; padding: 0 14px; text-decoration: none; font-size: 12px; font-weight: 850; }
.first-setup-summary { display: grid; gap: 9px; }
.first-setup-summary p { display: flex; justify-content: space-between; margin: 0; border-bottom: 1px solid #253b57; padding: 10px; }
.first-setup-summary strong { color: #7fd0b2; }
.first-setup-complete { display: grid; gap: 20px; }
.first-setup-complete > strong { color: #7fd0b2; font-size: 18px; }
.first-setup-complete > div { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.first-setup-status { min-height: 20px; margin: 12px 0 0; color: #91a7c1; font-size: 11px; }
.first-setup-status[data-tone="bad"] { color: #ff9b9b; }
.first-setup-status[data-tone="good"] { color: #7fd0b2; }
.first-setup-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.first-setup-actions button { min-height: 44px; border: 1px solid #365372; border-radius: 9px; background: #142740; color: #d4e3f5; padding: 0 14px; cursor: pointer; }
.first-setup-actions [data-first-setup-later] { margin-right: auto; border-color: transparent; background: transparent; color: #8499b2; }
.first-setup-actions [data-first-setup-next] { border-color: #4e91db; background: #2263a8; color: white; }

.teacher-operations-tutorial { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; border: 0; background: transparent; color: #e8edf5; padding: 0; overflow: hidden; }
.teacher-operations-tutorial::backdrop { background: transparent; }
.teacher-operations-tutorial .tot-shade { position: fixed; pointer-events: none; background: #03080fb8; backdrop-filter: blur(2px); }
.tot-spotlight { position: fixed; pointer-events: none; border: 2px solid #6fa4ff; border-radius: 14px; box-shadow: 0 0 0 2px #6fa4ff38, 0 0 34px #4f8cff66; z-index: 1; }
.tot-panel { position: fixed; z-index: 2; display: grid; gap: 11px; box-sizing: border-box; max-width: calc(100vw - 28px); max-height: calc(100dvh - 28px); overflow: auto; border: 1px solid #33415a; border-radius: 16px; background: #111a28; padding: 19px; box-shadow: 0 28px 80px #00000085; }
.tot-head, .tot-actions { display: flex; align-items: center; gap: 8px; }
.tot-head { justify-content: space-between; }
.tot-head span, .tot-head b { border-radius: 999px; background: #1a2d48; color: #9fc1ff; padding: 5px 9px; font-size: 11px; }
.tot-head b { background: #213f34; color: #7fd0b2; }
.tot-panel h2 { margin: 0; font-size: 20px; }
.tot-panel p { min-height: 64px; margin: 0; color: #a8b4c6; font-size: 13px; line-height: 1.65; }
.tot-panel [data-tot-status] { min-height: 0; color: #ff9cab; }
.tot-panel [data-tot-status]:empty { display: none; }
.tot-progress { height: 4px; overflow: hidden; border-radius: 99px; background: #263247; }
.tot-progress span { display: block; height: 100%; border-radius: inherit; background: #4f8cff; }
.tot-actions { justify-content: flex-end; flex-wrap: wrap; }
.tot-actions button { min-height: 36px; border: 1px solid #3b4a61; border-radius: 9px; background: #172438; color: #dce5f2; padding: 0 12px; cursor: pointer; }
.tot-actions .is-primary { border-color: #4f8cff; background: #245eae; color: white; }
.tot-actions .is-dismiss { min-height: 44px; margin-right: auto; border-color: #ff7488; background: #4a1d29; color: #fff1f3; font-weight: 800; box-shadow: 0 0 0 1px #ff74882e; }
.tot-actions .is-dismiss:hover { border-color: #ff9aaa; background: #662535; }
.tot-actions .is-dismiss:focus-visible { outline: 3px solid #ff9aaa; outline-offset: 2px; }
.teacher-tutorial-current { position: relative; z-index: 2; scroll-margin: 96px; }
@media (max-width: 720px) {
  .first-class-setup-shell { padding: 18px; }
  .first-setup-stepper span { display: none; }
  .first-setup-current-step { display: block; }
  .first-setup-body { min-height: 270px; padding: 16px; }
  .first-setup-actions { flex-wrap: wrap; }
  .first-setup-actions [data-first-setup-later] { width: 100%; order: 3; }
  .first-class-readiness-toggle { grid-template-columns: auto minmax(0, 1fr) auto; }
  .first-class-readiness-meter { grid-column: 2 / 4; grid-row: 2; justify-items: stretch; }
  .first-class-readiness-meter progress { width: 100%; }
  .first-class-readiness-list > li { grid-template-columns: 32px minmax(0, 1fr); }
  .first-class-readiness-list > li > b { grid-column: 2; justify-self: start; }
  .first-class-readiness-panel footer { align-items: stretch; flex-direction: column; }
  .tot-panel { right: 14px; left: 14px !important; width: auto !important; }
  .tot-actions .is-dismiss { flex: 1 0 100%; width: 100%; margin-right: 0; }
}
@media (max-width: 840px) {
  html[data-teacher-mobile-onboarding] body.teacher-home-page { min-width: 0; }
  html[data-teacher-mobile-onboarding="first-class-setup"] body.teacher-home-page > :is(.teacher-sidebar, .teacher-stage) { display: none !important; }
  html[data-teacher-mobile-onboarding="first-class-readiness"] body.teacher-home-page { overflow: auto; }
  html[data-teacher-mobile-onboarding="first-class-readiness"] .teacher-sidebar,
  html[data-teacher-mobile-onboarding="first-class-readiness"] .teacher-topbar,
  html[data-teacher-mobile-onboarding="first-class-readiness"] .teacher-context,
  html[data-teacher-mobile-onboarding="first-class-readiness"] .teacher-home-tabs { display: none !important; }
  html[data-teacher-mobile-onboarding="first-class-readiness"] .teacher-stage { width: 100%; min-width: 0; height: auto; margin-left: 0 !important; overflow: visible; }
  html[data-teacher-mobile-onboarding="first-class-readiness"] .teacher-main { width: 100%; min-width: 0; padding: 12px; }
  html[data-teacher-mobile-onboarding="first-class-readiness"] .teacher-dashboard[data-home-panel="overview"] > :not(.first-class-readiness) { display: none !important; }
  html[data-teacher-mobile-onboarding="first-class-readiness"] .first-class-readiness { margin: 0; }
}
.class-onboarding-return { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; border: 1px solid #3d6ea8; border-radius: 12px; background: #102b4c; color: #dcecff; padding: 14px 16px; text-decoration: none; }
.class-onboarding-return i { color: #76b4ff; font-size: 20px; }
.class-onboarding-return span { display: grid; gap: 3px; flex: 1; }
.class-onboarding-return small { color: #97b8dc; }
.class-onboarding-return b { color: #92c5ff; font-size: 12px; }
.student-credential-receipt { width: min(560px, calc(100vw - 32px)); border: 1px solid #4776a9; border-radius: 18px; background: #0e1c2f; color: #eaf3ff; padding: 24px; box-shadow: 0 30px 90px #0009; }
.student-credential-receipt::backdrop { background: #02070ed9; }
.student-credential-receipt > div:first-child span { color: #72aaf3; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.student-credential-receipt h2 { margin: 7px 0; }
.student-credential-receipt > div:first-child p { color: #9aafc8; }
.student-credential-receipt dl { display: grid; gap: 8px; margin: 18px 0; }
.student-credential-receipt dl div { display: flex; justify-content: space-between; align-items: center; border: 1px solid #2a405d; border-radius: 9px; background: #12243a; padding: 12px; }
.student-credential-receipt dt { color: #8ca3be; font-size: 11px; }
.student-credential-receipt dd { margin: 0; color: #fff; font-size: 18px; font-weight: 900; letter-spacing: .08em; }
.student-credential-receipt > div:last-child { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.student-credential-receipt button { min-height: 38px; border: 1px solid #3e5d7e; border-radius: 8px; background: #162a43; color: #dceafa; padding: 0 12px; cursor: pointer; }
#studentCredentialReceiptClose { border-color: #4c90da; background: #2365a9; color: #fff; }

@media print {
  body:has(#studentCredentialReceipt[open]) > *:not(#studentCredentialReceipt) { display: none !important; }
  #studentCredentialReceipt[open] { position: static; display: block; width: 100%; border: 1px solid #000; background: #fff; color: #000; box-shadow: none; }
  #studentCredentialReceipt[open] dd, #studentCredentialReceipt[open] dt { color: #000; }
  #studentCredentialReceipt[open] dl div { border-color: #777; background: #fff; }
  #studentCredentialReceipt[open] > div:last-child, #studentCredentialReceiptStatus { display: none !important; }
}

.class-start-guide {
  --start-ink: light-dark(#19293a, #e9f1fb);
  --start-muted: light-dark(#4f6274, #a6b9cd);
  --start-paper: light-dark(#fff, #121f2e);
  --start-active: light-dark(#eff6ff, #192c45);
  --start-border: light-dark(#c4d5e8, #426591);
  --start-link: light-dark(#214fa1, #a8caff);
  --start-button: light-dark(#2558ad, #a8caff);
  --start-button-ink: light-dark(#fff, #122845);
  --start-success: light-dark(#17614e, #9ce1c9);
  --start-wait: light-dark(#6d4716, #f2d5a4);
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  color: var(--start-ink);
  margin-block: 12px;
}
.class-start-guide[hidden],
#classStartGuide:not([hidden]) ~ :is(#firstClassReadiness:not([data-class-start-expanded]), #localDbAttention) { display: none; }
.class-start-heading { grid-column: 1 / -1; }
.class-start-heading h2 { margin: 0 0 4px; font-size: 24px; }
.class-start-heading p { margin: 0; color: var(--start-muted); font-size: 14px; overflow-wrap: anywhere; }
.class-start-current, .class-start-checklist { min-width: 0; border: 1px solid var(--start-border); border-radius: 11px; padding: 18px; background: var(--start-paper); }
.class-start-current { background: var(--start-active); padding: 24px; }
.class-start-current h3 { margin: 10px 0 6px; font-size: 22px; overflow-wrap: anywhere; }
.class-start-current p { margin: 0; color: var(--start-muted); line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
.class-start-status { color: var(--start-success); font-weight: 700; font-size: 13px; }
.class-start-status[data-preparing="true"] { color: var(--start-wait); }
.class-start-actions { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 12px; }
.class-start-action { display: inline-flex; align-items: center; min-height: 44px; font: inherit; font-weight: 650; padding: 4px 8px; color: var(--start-link); border: 0; background: none; cursor: pointer; text-align: start; overflow-wrap: anywhere; }
.class-start-action.is-primary { border-radius: 7px; padding-inline: 12px; background: var(--start-button); color: var(--start-button-ink); }
.class-start-action:focus-visible, .class-start-checklist summary:focus-visible { outline: 2px solid var(--start-link); outline-offset: 2px; }
.class-start-checklist h3 { margin: 0; font-size: 16px; }
.class-start-checklist h3:not(:first-child) { margin-top: 16px; }
.class-start-checklist :is(ol, ul) { list-style: none; margin: 4px 0; padding: 0; }
.class-start-checklist li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto); align-items: center; gap: 6px; min-height: 44px; border-bottom: 1px solid var(--start-border); }
.class-start-checklist li .class-start-action { padding-inline: 0; }
.class-start-checklist small { max-width: 19ch; color: var(--start-muted); text-align: end; overflow-wrap: anywhere; }
.class-start-checklist small[data-done="true"] { color: var(--start-success); }
.class-start-checklist details { margin-top: 12px; }
.class-start-checklist summary { min-height: 44px; align-content: center; cursor: pointer; }
@media (max-width: 900px) { .class-start-guide { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 430px) { .class-start-current, .class-start-checklist { padding: 12px; } }
.teacher-lesson-workspace-recovery:not([hidden]) { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.teacher-lesson-workspace-recovery :is(a, button) { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 10px; }
