:root {
  color-scheme: light;
  --ink:#16223c; --navy:#172a55; --navy-deep:#0f1d3b; --muted:#4c5970;
  --line:#dbe2ee; --paper:#fff; --ground:#f3f6fb; --blue:#eaf0fb; --focus:#1762be;
  font: 100%/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink); background:var(--ground);
}
*,*::before,*::after { box-sizing:border-box; }
body { margin:0; min-height:100vh; display:flex; flex-direction:column; }
body[hidden],[hidden] { display:none!important; }
html { scroll-padding-top:1rem; }
a { color:var(--navy); text-underline-offset:.2em; }
a:hover { color:#235cb0; }
:focus-visible { outline:3px solid var(--focus); outline-offset:3px; }
img { max-width:100%; }
p,h1,h2,h3,h4,small,strong,a,summary,button,code { overflow-wrap:anywhere; }
p { margin:.55rem 0 .9rem; }
h1,h2,h3,h4 { line-height:1.14; margin:0 0 .65rem; letter-spacing:-.025em; }
h1 { font-size:clamp(2rem,6vw,3.25rem); font-weight:760; }
h2 { font-size:clamp(1.25rem,4vw,1.6rem); margin-bottom:.85rem; }
h3 { font-size:clamp(1.15rem,4vw,1.55rem); }
h4 { font-size:1.1rem; }
small { color:var(--muted); font-size:.86rem; }
.shell { width:min(100% - 2rem,71rem); margin-inline:auto; min-width:0; }
.skip { position:absolute; z-index:5; inset-inline-start:.8rem; translate:0 -140%; padding:.65rem; background:var(--paper); }
.skip:focus { translate:0 .65rem; }
.mast { background:var(--navy-deep); color:#fff; }
.mast-inner,.footer .shell { display:flex; justify-content:space-between; align-items:center; gap:.75rem 1.5rem; flex-wrap:wrap; }
.mast-inner { padding:.82rem 0; }
.brand { display:inline-flex; align-items:center; color:#fff; text-decoration:none; gap:.55rem; }
.brand:hover,.mast a:hover { color:#fff; }
.brand img { object-fit:contain; background:#fff; border-radius:9px; width:2.8rem; height:2.8rem; padding:3px; }
.brand span { display:grid; line-height:1.12; }
.brand strong { font-size:1.22rem; font-weight:780; letter-spacing:-.025em; }
.brand small { color:#d7e2f9; font-size:.76rem; margin-top:.2rem; }
.context { color:#d7e2f9; margin-right:auto; font-size:.96rem; }
.account-menu { display:flex; align-items:center; gap:.4rem .65rem; flex-wrap:wrap; }
.account-menu .button.quiet { color:#fff; text-decoration:underline; }
.language { position:relative; }
.language summary { cursor:pointer; color:#fff; padding:.25rem .1rem; }
.language div { position:absolute; right:0; z-index:4; min-width:8rem; padding:.3rem; border-radius:.6rem; background:var(--paper); box-shadow:0 .35rem 1.25rem #131e3130; }
.language div a { display:block; padding:.45rem; color:var(--navy); }
.language div a:hover { color:var(--navy); background:var(--blue); }
.tabs { border-bottom:1px solid var(--line); background:var(--paper); }
.tabs .shell { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); max-width:71rem; }
.tabs a { text-align:center; padding:.8rem .2rem; font-weight:670; text-decoration:none; border-bottom:3px solid transparent; display:grid; align-items:center; }
.tabs a[aria-current] { border-color:#1a4d9b; color:#123470; }
main { padding-block:clamp(1.2rem,4vw,3.6rem) clamp(2.5rem,5vw,4.5rem); flex:1; }
main section[id] { margin-block:1.5rem 2.4rem; scroll-margin-top:.5rem; }
.footer { border-top:1px solid var(--line); color:var(--muted); background:var(--paper); padding:1.2rem 0; }
.footer .shell div { display:flex; gap:.5rem 1rem; flex-wrap:wrap; }
.page-heading,.auth-intro { max-width:42rem; margin-bottom:1.45rem; }
.lead { font-size:1.11rem; color:var(--muted); max-width:44rem; }
.auth-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.72fr); gap:clamp(1.2rem,5vw,5rem); align-items:start; max-width:62rem; margin:clamp(0rem,6vw,4.25rem) auto; }
.auth-intro { padding-top:.6rem; }
.auth-contact { margin-top:1.2rem; }
.auth-card form,.form-stack { display:grid; justify-items:stretch; gap:.85rem; }
.auth-card form button { width:100%; }
.auth-links { display:flex; justify-content:space-between; flex-wrap:wrap; gap:.65rem; margin-top:1.15rem; }
.card { background:var(--paper); min-width:0; border:1px solid var(--line); border-radius:.85rem; padding:clamp(.9rem,3vw,1.5rem); box-shadow:0 .1rem .35rem #18284808; }
.card+.card,.dashboard-grid section+section { margin-top:1rem; }
.cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,22rem),1fr)); align-items:start; gap:1rem; }
.cards .card { margin:0; }
.card-top { display:flex; gap:.4rem .7rem; align-items:start; justify-content:space-between; flex-wrap:wrap; margin-bottom:.7rem; }
.card-top h2,.card-top h3 { margin:0; }
.card h3:last-child,.card p:last-child { margin-bottom:0; }
.compact { padding:1rem; }
.narrow { max-width:44rem; }
.dashboard-grid { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(0,1fr); gap:1.2rem; align-items:start; }
.dashboard-grid+section { margin-top:1.5rem; }
.lesson { border-top:4px solid #274d90; }
.lesson.urgent { border-top-color:#bc562e; margin-bottom:1rem; }
.site { font-size:1.12rem; font-weight:700; }
.lesson-meta { display:grid; gap:.24rem; margin-block:.7rem; color:var(--muted); font-size:.9rem; }
.eyebrow { font-size:.87rem; color:#3c547c; font-weight:730; }
.badge { border-radius:99px; padding:.225rem .65rem; color:#25436e; background:#e8eef9; font-size:.82rem; font-weight:700; }
.badge-confirmed,.badge-verified,.badge-training,.badge-enrolled,.badge-resolved { color:#164a37; background:#e3f4eb; }
.badge-missing,.badge-disrupted,.badge-rejected,.badge-expired,.badge-cancelled { color:#7f301d; background:#fae9e1; }
.badge-paused,.badge-waiting_member,.badge-recheck,.badge-requested { color:#694400; background:#fbf0d2; }
.actions,.section-nav { display:flex; flex-wrap:wrap; align-items:start; gap:.6rem; }
.actions { margin-top:.8rem; }
.button { font:inherit; border-radius:.48rem; padding:.49rem .84rem; min-height:2.6rem; font-weight:700; color:#fff; cursor:pointer; display:inline-grid; place-items:center; text-align:center; text-decoration:none; border:1px solid transparent; }
.button.primary { color:#fff; background:var(--navy); }
.button.primary:hover { background:#224372; }
.button.secondary { color:var(--navy); background:var(--paper); border-color:#8b9dbb; }
.button.secondary:hover,.button.quiet:hover { background:var(--blue); }
.mast .button.quiet:hover { background:#263951; }
.button.quiet { color:var(--navy); background:transparent; font-weight:650; }
.button.danger { color:#7d2924; border-color:#bf827c; background:var(--paper); }
.button:disabled { opacity:.65; cursor:wait; }
.summary,.contact-link { font-weight:660; }
summary { cursor:pointer; }
summary.button { display:inline-flex; align-items:center; }
.lesson-change[open] { flex:1 0 100%; }
.lesson-change form { margin-top:.75rem; }
label { display:grid; gap:.28rem; min-width:0; font-weight:660; }
label small { font-weight:400; }
input,select,textarea { font:inherit; color:var(--ink); width:100%; max-width:100%; min-width:0; background:#fff; border:1px solid #91a1bc; border-radius:.42rem; padding:.48rem .55rem; min-height:2.55rem; }
input[type="checkbox"] { width:1.1rem; height:1.1rem; min-height:0; }
textarea { resize:vertical; }
label.check { display:flex; align-items:start; gap:.65rem; }
fieldset { min-width:0; border:1px solid var(--line); border-radius:.45rem; }
fieldset label+label { margin-top:.4rem; }
legend { padding-inline:.25rem; }
.search { display:flex; gap:.6rem; flex-wrap:wrap; align-items:end; }
.search label { flex:1 1 16rem; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; }
.notice,.test-banner,.network-error { border:1px solid #a8bbd9; background:#e9f0fc; border-radius:.52rem; padding:.72rem .85rem; margin:0 0 1rem; }
.notice-error,.network-error { border-color:#d8aaa4; background:#fff0ed; color:#732921; }
.test-banner { font-size:.85rem; }
.checklist,.resources { list-style:none; margin:.3rem 0 .85rem; padding:0; }
.check-item,.resources li { display:flex; justify-content:space-between; align-items:start; flex-wrap:wrap; gap:.45rem .65rem; padding-block:.65rem; border-bottom:1px solid var(--line); }
.check-item p { margin:.18rem 0; }
.check-item:last-child,.resources li:last-child { border-bottom:0; }
.resources small { display:block; }
.pre-line { white-space:pre-line; }
.reply,.proposal,.inset { background:var(--blue); padding:.8rem; border-radius:.55rem; margin:.65rem 0; }
.inset { background:#f7f9fd; }
.section-nav { margin:0 0 1.25rem; }
.section-nav a { padding:.35rem .65rem; background:var(--blue); border-radius:.5rem; font-weight:650; }
.office-form { background:var(--paper); border:1px solid var(--line); border-radius:.5rem; padding:.62rem .75rem; margin-bottom:.65rem; }
.office-form summary { color:var(--navy); font-weight:720; }
.office-form .form-stack { padding-top:.6rem; }
.office-person { padding-top:.4rem; }
.credential { border:1px solid var(--line); padding:.85rem; border-radius:.5rem; }
.credential dt { font-weight:700; }
.credential dd { margin:.3rem 0 .7rem; font-size:1.09rem; }
.windows { padding-inline-start:1.1rem; }
@media (max-width:48rem) {
  .auth-grid,.dashboard-grid { grid-template-columns:1fr; }
  .context { display:none; }
  .auth-grid { gap:.2rem; }
}
@media (max-width:26rem) {
  .shell { width:calc(100% - 1.25rem); }
  .tabs .shell { width:100%; }
  .tabs a { font-size:.87rem; }
  .card { border-radius:.64rem; }
  .form-grid { grid-template-columns:1fr; }
}
