:root{font-family:Arial,Helvetica,sans-serif;color:#20302d;background:#f5f7f4;font-size:18px;line-height:1.5;--green:#125c54;--mint:#e5f2ed;--orange:#f4a65b;--ink:#20302d;--muted:#60716c;--border:#d7e1dc;--card:#fff;--shadow:0 6px 24px #163d3310}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,textarea,select{font:inherit}button{cursor:pointer}.loading{margin:15vh auto;text-align:center;color:var(--muted)}.app-shell{min-height:100vh}.topbar{position:sticky;top:0;z-index:5;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:12px clamp(16px,4vw,48px);gap:16px}.brand{display:flex;align-items:center;gap:12px;color:var(--green);font-weight:800}.brandmark{width:46px;height:46px;border-radius:15px;background:var(--green);color:#fff;display:grid;place-items:center;font-size:25px}.brand small{display:block;color:var(--muted);font-size:14px;font-weight:500}.top-actions{display:flex;align-items:center;gap:12px}.user-chip{font-size:16px;color:var(--muted)}.layout{display:grid;grid-template-columns:260px 1fr;min-height:calc(100vh - 72px)}.sidebar{padding:24px 16px;border-right:1px solid var(--border);background:#fbfcfa}.nav-list{display:grid;gap:7px}.nav-button{width:100%;text-align:left;border:0;background:transparent;padding:13px 14px;border-radius:12px;color:var(--ink);font-weight:600}.nav-button:hover,.nav-button.active{background:var(--mint);color:var(--green)}.main{padding:clamp(18px,4vw,44px);max-width:1440px;width:100%;margin:0 auto}.welcome{border-radius:22px;padding:28px 32px;background:linear-gradient(120deg,#125c54,#267c6c);color:white;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px;box-shadow:var(--shadow)}.welcome h1{margin:0 0 7px;font-size:clamp(26px,4vw,36px)}.welcome p{margin:0;opacity:.93}.welcome-icon{font-size:54px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 14px}.section-head h2{margin:0;font-size:25px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px}.card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:20px;box-shadow:var(--shadow)}.card h3{margin:0 0 8px;font-size:21px}.card p{margin:6px 0;color:var(--muted)}.metric{font-size:34px;font-weight:800;color:var(--green)}.button{border:0;border-radius:11px;min-height:48px;padding:10px 17px;background:var(--green);color:#fff;font-weight:700}.button:hover{background:#0e4943}.button.secondary{background:#eaf2ef;color:var(--green)}.button.outline{background:white;color:var(--green);border:1px solid var(--green)}.button.danger{background:#a63c36}.button.small{min-height:40px;padding:7px 12px;font-size:16px}.button:focus-visible,.nav-button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #e39b4f;outline-offset:2px}.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:15px}.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.badge{display:inline-block;border-radius:99px;padding:3px 10px;background:#eff4f1;color:var(--green);font-size:14px;font-weight:700}.muted{color:var(--muted)}.empty{padding:30px;text-align:center;color:var(--muted);border:1px dashed var(--border);border-radius:14px;background:#fff}.login-wrap{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at 85% 10%,#d7eee5,transparent 35%),#f5f7f4}.login-card{width:min(100%,520px);background:#fff;border:1px solid var(--border);border-radius:24px;padding:clamp(24px,6vw,42px);box-shadow:var(--shadow)}.login-card .brand{margin-bottom:28px}.login-card h1{margin:0 0 8px;font-size:30px}.field{display:grid;gap:7px;margin:14px 0}.field label{font-weight:700}.field input,.field textarea,.field select{width:100%;border:1px solid #aabbb4;border-radius:10px;padding:12px;background:#fff;color:var(--ink)}.field textarea{min-height:100px;resize:vertical}.field small{font-size:14px;color:var(--muted)}.form-error{color:#9b3028;background:#fff1ef;padding:10px;border-radius:9px}.form-success{color:#145a42;background:#e9f7ee;padding:10px;border-radius:9px}.inline{display:flex;gap:10px;align-items:center}.inline>*{flex:1}.table-wrap{overflow:auto;background:#fff;border:1px solid var(--border);border-radius:14px}table{width:100%;border-collapse:collapse;min-width:620px}th,td{text-align:left;padding:13px 15px;border-bottom:1px solid var(--border)}th{background:#f5f8f6;color:#3d514b}tr:last-child td{border-bottom:0}.lesson{border-left:4px solid #80b8a5}.lesson a{color:var(--green);font-weight:700}.progress{height:12px;background:#e5ece8;border-radius:10px;overflow:hidden;margin:12px 0}.progress span{display:block;height:100%;background:#318a6e}.toast{position:fixed;bottom:22px;right:22px;max-width:calc(100% - 44px);z-index:10;padding:14px 18px;background:#203b35;color:white;border-radius:12px;box-shadow:var(--shadow)}dialog{border:0;border-radius:20px;padding:28px;width:min(620px,calc(100% - 28px));max-height:90vh;overflow:auto;box-shadow:0 20px 80px #132a2470}dialog::backdrop{background:#10231f77}.dialog-close{position:absolute;right:12px;top:8px}.dialog-close button{border:0;background:transparent;font-size:30px;color:var(--muted)}#dialog-content{padding-top:10px}.access-panel{position:fixed;right:20px;bottom:20px;z-index:6}.access-panel button{border-radius:50%;width:58px;height:58px;border:0;background:#f0a24c;color:#182d28;font-size:25px;font-weight:800;box-shadow:var(--shadow)}.access-tools{position:fixed;right:20px;bottom:90px;z-index:6;background:white;padding:12px;border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow);display:grid;gap:8px}.high-contrast{--ink:#000;--muted:#222;--border:#333;--card:#fff;background:#fff}.high-contrast .topbar,.high-contrast .sidebar,.high-contrast .card{border-color:#111}.no-motion *{animation:none!important;transition:none!important;scroll-behavior:auto!important}.footer-note{text-align:center;margin:36px 0;color:var(--muted);font-size:15px}.help-note{padding:14px;background:#fff6e9;border-radius:12px;color:#594322}.quick-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.quick-link{background:#fff;border:1px solid var(--border);border-radius:14px;padding:17px;text-decoration:none;color:var(--green);font-weight:700;min-height:98px}.quick-link span{display:block;font-size:26px;margin-bottom:6px}@media(max-width:760px){.layout{grid-template-columns:1fr}.sidebar{position:sticky;top:70px;z-index:4;border:0;border-bottom:1px solid var(--border);padding:8px;overflow:auto}.nav-list{display:flex;min-width:max-content}.nav-button{width:auto;padding:10px 12px}.main{padding:18px}.welcome{padding:23px}.welcome-icon{font-size:38px}.user-chip{display:none}.topbar{padding:10px 14px}.brand small{display:none}.section-head{align-items:flex-start;flex-direction:column}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
.side-help{margin-top:24px}.login-help{margin-top:20px}.upcoming-title{font-size:20px;font-weight:700;margin-top:6px}.nested-card{margin-top:12px}
.font-16 body{font-size:16px}.font-17 body{font-size:17px}.font-18 body{font-size:18px}.font-19 body{font-size:19px}.font-20 body{font-size:20px}.font-21 body{font-size:21px}.font-22 body{font-size:22px}.font-23 body{font-size:23px}.font-24 body{font-size:24px}

:root {
  --green: #14594e;
  --mint: #dff2e9;
  --muted: #455d55;
  background: #f8f6ed;
}
.topbar { background: #fffdf7; }
.layout { grid-template-columns: 235px minmax(0, 1fr); }
.sidebar { background: #f0f6ed; }
.sidebar .nav-button span { display: inline-block; width: 1.5em; }
.welcome { padding: 0; overflow: hidden; min-height: 225px; background: #14594e; }
.welcome-copy { padding: clamp(22px, 4vw, 46px); flex: 1; overflow-wrap: anywhere; }
.welcome-copy .eyebrow { font-size: 1rem; margin-bottom: .6rem; color: #d3f2e5; font-weight: 700; }
.hero-photo { width: 42%; align-self: stretch; object-fit: cover; min-width: 0; }
.quick-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr)); }
.quick-link { min-height: 100px; text-align: left; font-size: inherit; color: #17463c; background: #def2e6; }
.quick-link:nth-child(2n) { background: #fff0d5; color: #63450e; }
.quick-link:nth-child(3n) { background: #e8eefc; color: #273c67; }
.quick-link:hover { border-color: currentColor; }
.overview { margin-top: 20px; }
.card { overflow-wrap: anywhere; }
.login-screen { grid-template-columns: minmax(0,1fr) minmax(0,530px); gap: 30px; max-width: 1260px; margin: auto; }
.login-photo { display: block; width: 100%; max-height: 640px; object-fit: cover; border-radius: 28px; }
.login-card { max-width: 100%; }
.button.small, .dialog-close button { min-height: 44px; }
.dialog-close button { min-width: 44px; }
.button:disabled { cursor: default; }
#access-toggle { border: 2px solid #8a4e0c; }
.access-panel { bottom: 16px; }
.footer-note { padding-bottom: 60px; }
:focus-visible { outline: 3px solid #8b4600; outline-offset: 3px; }
.skip-link { position: fixed; top: 0; left: 0; z-index: 20; background: white; color: var(--green); padding: 12px; transform: translateY(-110%); }
.skip-link:focus { transform: translateY(0); }
dialog { width: min(760px, calc(100% - 24px)); background: #fffdf7; color: var(--ink); }
.lesson { margin-block: 16px; }
.lesson-body { white-space: pre-wrap; }
.learning-media { width: 100%; display: block; margin: 14px 0; border-radius: 14px; }
.learning-media img { width: 100%; max-height: 270px; object-fit: contain; background: #e4f2e8; border-radius: 12px; }
figcaption { font-size: .95em; }
.practice { margin: 18px 0; padding: 14px; min-width: 0; border: 1px solid #80aa9e; border-radius: 14px; }
.practice legend, summary { font-weight: 700; }
summary { cursor: pointer; padding-block: 10px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.check input { width: 24px; height: 24px; flex: none; accent-color: var(--green); }
.lesson-progress { display: grid; gap: 5px; margin-block: 10px; }
.lesson-progress progress { width: 100%; height: 20px; accent-color: var(--green); }
.student-progress + .student-progress { padding-top: 14px; border-top: 1px solid var(--border); }
.high-contrast .quick-link { background: white; color: black; border: 2px solid black; }
.font-24 .button,.font-24 .nav-button,.font-24 .field small { font-size: 1.1em; }

@media (max-width: 760px) {
  .layout,.login-screen { grid-template-columns: minmax(0,1fr); }
  .login-screen { gap: 14px; }
  .login-photo { max-height: 180px; }
  .sidebar,.topbar { position: static; }
  .topbar,.top-actions { flex-wrap: wrap; }
  .top-actions { gap: 6px; }
  .nav-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); min-width: 0; }
  .nav-button { width: 100%; padding: 8px; }
  .side-help { display: none; }
  .welcome { display: grid; gap: 0; }
  .hero-photo { width: 100%; height: 145px; object-position: center 40%; }
  .login-card { padding: 22px; }
}
@media (max-width: 425px) {
  .inline { flex-wrap: wrap; }
  .inline .field { flex-basis: 100%; }
  .section-head h1 { margin: 0; }
  dialog { padding: 20px; }
}
.toast { bottom: 84px; right: auto; left: 16px; }

/* The shared navigation retains its location while each workspace has its own palette. */
body[data-role] {
  --green: var(--role-primary); --mint: var(--role-light); --ink: var(--role-ink);
  background: linear-gradient(155deg,var(--role-light),var(--role-paper) 36%);
}
body[data-role="admin"] {
  --role-primary:#173451; --role-deep:#10283f; --role-bright:#3273b5;
  --role-light:#dce8f5; --role-paper:#f5f8fc; --role-ink:#172c41; --role-accent:#e3b65c;
}
body[data-role="teacher"] {
  --role-primary:#58438b; --role-deep:#302451; --role-bright:#795bae;
  --role-light:#e9dff9; --role-paper:#fbf7ff; --role-ink:#30264a; --role-accent:#efa66c;
}
body[data-role="student"] {
  --role-primary:#135d50; --role-deep:#0c443b; --role-bright:#197d68;
  --role-light:#d8f1e7; --role-paper:#fff9ed; --role-ink:#20382e; --role-accent:#ffc85c;
}
body[data-role] .sidebar { background:color-mix(in srgb,var(--role-paper),white 32%); }
body[data-role] .button:hover { background:var(--role-deep); color:white; }
body[data-role] .role-hero { background:linear-gradient(126deg,var(--role-deep),var(--role-bright)); min-height:258px; }
body[data-role] .role-hero .eyebrow { color:white; }
body[data-role] .hero-button { background:var(--role-accent); color:#1e2625; margin-top:12px; }
.role-hero img { max-height:340px; object-position:center; }
.role-hero h1 { font-size:clamp(1.85rem,4.1vw,3rem); line-height:1.13; margin-bottom:12px; }
.feature-grid { display:grid; gap:14px; margin-block:24px; grid-template-columns:repeat(auto-fit,minmax(min(100%,185px),1fr)); }
.feature {
  position:relative; text-align:left; display:flex; flex-direction:column; align-items:flex-start; justify-content:space-between; gap:12px;
  color:var(--role-ink); border:1px solid color-mix(in srgb,var(--role-primary),white 77%);
  padding:18px; min-height:155px; border-radius:20px; background:linear-gradient(148deg,#fff,var(--role-light));
  box-shadow:0 9px 18px #193c3420; transition:transform .18s ease, box-shadow .18s ease;
}
.feature:hover { transform:translateY(-4px); box-shadow:0 15px 24px #193c3430; }
.feature:active { transform:translateY(1px); }
.feature strong { display:block; max-width:90%; line-height:1.25; }
.feature:nth-child(3n+2) { background:linear-gradient(148deg,#fff,color-mix(in srgb,var(--role-accent),white 67%)); }
.feature-icon {
  display:grid; place-items:center; min-width:56px; min-height:56px; font-size:30px; line-height:1; border-radius:17px;
  background:linear-gradient(135deg,#fff,var(--role-light,#d8f1e7)); box-shadow:inset 0 2px 0 #ffffffc0, 0 5px 9px #142a3229;
}
.feature-arrow { position:absolute; top:16px; right:16px; color:var(--role-primary); font-size:1.1rem; }
body[data-role="admin"] .overview .card { border-top:5px solid #3273b5; }
body[data-role="teacher"] .feature { min-height:136px; }
body[data-role="student"] .feature { min-height:166px; }
.live-highlight { margin-top:12px; }
.live-card { border-left:5px solid var(--role-primary); }
.live-card h2,.live-card .eyebrow { margin-block:.35em; }
a.button { display:inline-flex; align-items:center; text-decoration:none; }
.join-button { text-align:center; line-height:1.25; min-height:54px; }
.break-display { background:#e8f4e8; color:#173a2b; padding:12px; border-radius:10px; font-weight:700; }
.learning-page { max-width:860px; }
.learning-page h3 { font-size:1.5rem; }
.video-block label { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.video-block select { min-height:44px; }
video::cue { background:#172320e5; color:white; }
.asset-preview { max-width:100%; max-height:260px; border-radius:12px; }
audio { max-width:100%; }
.staff-msg { margin-top:16px; padding:12px; border-radius:12px; background:var(--role-light); }
.award-grid { display:grid; gap:16px; grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr)); }
.award { text-align:center; }
.medal { --metal:#e5b28d; --rim:#805332; width:84px; height:84px; border-radius:50%; display:grid; place-items:center;
  margin:10px auto 20px; font-weight:bold; font-size:38px; color:#28281d; border:7px double var(--rim);
  background:radial-gradient(circle at 28% 24%,#fff9db,var(--metal) 55%,var(--rim));
  box-shadow:inset 0 -5px 7px #0005, 0 8px 12px #17291f44; }
.medal-50 { --metal:#d7e0e8; --rim:#627684; }
.medal-75 { --metal:#ffcd63; --rim:#9a6200; }
.medal-100 { --metal:#b4dfdf; --rim:#416b75; }
.medal-0 { --metal:#efd3fa; --rim:#80509b; }
.celebration { color:#493409!important; border:1px solid #c69d36; border-radius:13px; padding:14px; background:#fff2c9; animation:appear .35s ease-out; }
@keyframes appear { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
body.high-contrast[data-role] { --role-ink:#000; --role-light:#fff; --role-primary:#172329; background:white; }
body.high-contrast[data-role] .feature { color:#000; background:white; border:2px solid black; }
body.high-contrast[data-role] .role-hero { background:#152128; }
@media (max-width:760px) {
  body[data-role] .role-hero { min-height:0; }
  .role-hero img { height:180px; }
  .feature-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .feature { padding:12px; }
}
@media (max-width:360px) {
  .feature-grid { grid-template-columns:1fr; }
}
@media print {
  body.print-certificate .topbar,body.print-certificate .sidebar,body.print-certificate .access-panel,
  body.print-certificate .footer-note,body.print-certificate #main > :not(.certificate) { display:none!important; }
  body.print-certificate .layout { display:block; }
  .certificate { border:3px double #555; padding:35px; color:black; text-align:center; }
}
.demo-label { display:inline-block; background:#ffdf92; color:#513802; border:1px solid #947133; padding:5px 10px; border-radius:10px; font-size:.9rem; }
