/* vietnamese */
@font-face {
  font-family: 'Merriweather';
  font-style: italic;
  font-weight: 300 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("/classroom-assets/font-d682a4649993ae5a.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Merriweather';
  font-style: italic;
  font-weight: 300 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("/classroom-assets/font-f11472cb2bef38bd.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Merriweather';
  font-style: italic;
  font-weight: 300 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("/classroom-assets/font-caa1da88ecea68d5.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 300 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("/classroom-assets/font-f314b5c12e53c5da.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 300 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("/classroom-assets/font-8ca0880997847953.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 300 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("/classroom-assets/font-4fbe8dd9c23b1fd6.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Shared appearance. Industrial is also the first-paint palette. */
:root {
  --paper:#efe0d3;
  --ink:#29262c;
  --muted:#584942;
  --line:#b38f7a;
  --ui-surface:#fbf3eb;
  --ui-elevated:#f8eadf;
  --ui-sidebar:#e8cdbb;
  --ui-inset:#ead8c9;
  --ui-soft:#efccb6;
  --ui-day-accent:#813d27;
  --ui-accent-light:#f2b486;
  --ui-on-accent-light:#281915;
  --ui-hero-base:#2d2d32;
  --ui-hero-end:#57372d;
  --ui-feature-accent:#f4be94;
  --ui-feature-muted:#eed5c4;
  --ui-logo-hue:0deg;

  --ui-accent-deep:var(--ui-day-accent);
  --ui-accent:var(--ui-accent-deep);
  --ui-on-accent:#fffdf9;
  --ui-button:var(--ui-accent-deep);
  --ui-button-ink:var(--ui-on-accent);
  --ui-feature:linear-gradient(113deg,var(--ui-hero-base),var(--ui-hero-end));
  --ui-feature-ink:#fff7ed;
  --ui-trim:var(--ui-spectrum,linear-gradient(90deg,var(--ui-accent),var(--ui-accent-light) 9%,transparent 34%));
  --ui-trim-height:3px;
  --ui-heading:var(--ink);
  --ui-overlay:color-mix(in srgb,var(--paper) 96%,transparent);
  --ui-shadow:color-mix(in srgb,var(--ink) 14%,transparent);
  --ui-border:var(--line);
  --ui-muted:var(--muted);
  --white:var(--ui-surface);
  --brick:var(--ui-accent-deep);
  --brick-light:var(--ui-soft);
  color-scheme:light;
}
html[data-ui-mode="dark"] {
  color-scheme:dark;
  --paper:#1b181c;
  --ink:#fff1e4;
  --muted:#dcc2b3;
  --line:#806051;
  --ui-surface:#292429;
  --ui-elevated:#342b2d;
  --ui-sidebar:#221e23;
  --ui-inset:#1b171b;
  --ui-soft:#53362b;
  --ui-hero-base:#202126;
  --ui-hero-end:#513226;
  --ui-accent-deep:var(--ui-accent-light);
  --ui-on-accent:var(--ui-on-accent-light);
  --ui-shadow:#00000045;
  --green:#abd0ae;
  --green-light:#2b4331;
  --amber:#e4c58f;
  --amber-light:#443d2c;
  --red:#e4aaa1;
  --red-light:#48342f;
}

/* Black lacquer, ivory and brushed gold. */
html[data-ui-palette="elegant"] {
  --paper:#f4ead5;
  --ink:#252026;
  --muted:#5b4d40;
  --line:#ba9e66;
  --ui-surface:#fffbf1;
  --ui-elevated:#fbf2dc;
  --ui-sidebar:#eee0c1;
  --ui-inset:#eee0c3;
  --ui-soft:#f4dc9e;
  --ui-day-accent:#72500d;
  --ui-accent-light:#f5ce7b;
  --ui-on-accent-light:#22170c;
  --ui-hero-base:#17151a;
  --ui-hero-end:#44311d;
  --ui-feature-accent:#f7d387;
  --ui-feature-muted:#eadac0;
  --ui-trim:linear-gradient(90deg,#9b661e,#efd18a 21%,#a6752f 48%,transparent 76%);
  --ui-logo-hue:12deg;
}
html[data-ui-palette="elegant"][data-ui-mode="dark"] {
  --paper:#100f13;
  --ink:#fcf1db;
  --muted:#d7c5a7;
  --line:#826b43;
  --ui-surface:#1d191d;
  --ui-elevated:#282226;
  --ui-sidebar:#151217;
  --ui-inset:#121015;
  --ui-soft:#442f1a;
  --ui-hero-base:#151318;
  --ui-hero-end:#3c2a1b;
}

/* The spectrum also supplies the study and grammar card colors. */
html[data-ui-palette="rainbow"] {
  --paper:#efe8ff;
  --ink:#251832;
  --muted:#4d3c5e;
  --line:#b098d7;
  --ui-surface:#fcf8ff;
  --ui-elevated:#f5edff;
  --ui-sidebar:#e8dbfc;
  --ui-inset:#e9dafa;
  --ui-soft:#e8d2fa;
  --ui-day-accent:#582b99;
  --ui-accent-light:#d3b0ff;
  --ui-on-accent-light:#231436;
  --ui-hero-base:#2d2147;
  --ui-hero-end:#472563;
  --ui-feature-accent:#e0bcff;
  --ui-feature-muted:#ead9f8;
  --ui-logo-hue:226deg;
  --ui-spectrum-1:#fb5d8a;--ui-spectrum-2:#ff8359;--ui-spectrum-3:#ffc752;--ui-spectrum-4:#59d890;
  --ui-spectrum-5:#42cbef;--ui-spectrum-6:#6790ff;--ui-spectrum-7:#b37cf5;
}
html[data-ui-palette="rainbow"][data-ui-mode="dark"] {
  --paper:#1a1328;
  --ink:#fcf3ff;
  --muted:#decaeb;
  --line:#805fa5;
  --ui-surface:#281c3a;
  --ui-elevated:#34254a;
  --ui-sidebar:#211633;
  --ui-inset:#1b1228;
  --ui-soft:#48315e;
}
html[data-ui-palette="sunset"] {
  --paper:#ffeadf;
  --ink:#371e2c;
  --muted:#69404b;
  --line:#c98c80;
  --ui-surface:#fff7ef;
  --ui-elevated:#fff0e4;
  --ui-sidebar:#ffddcc;
  --ui-inset:#ffdfd0;
  --ui-soft:#ffd5c5;
  --ui-day-accent:#97264f;
  --ui-accent-light:#ffad8b;
  --ui-on-accent-light:#371626;
  --ui-hero-base:#55243f;
  --ui-hero-end:#783e43;
  --ui-feature-accent:#ffc099;
  --ui-feature-muted:#f9d7d3;
  --ui-logo-hue:316deg;
  --ui-spectrum-1:#d45e9d;--ui-spectrum-2:#f46487;--ui-spectrum-3:#ff816d;--ui-spectrum-4:#ff9b66;
  --ui-spectrum-5:#ffb954;--ui-spectrum-6:#ffd080;--ui-spectrum-7:#f08da3;
}
html[data-ui-palette="sunset"][data-ui-mode="dark"] {
  --paper:#26131f;
  --ink:#fff0e9;
  --muted:#efc1bf;
  --line:#995d6d;
  --ui-surface:#371d2e;
  --ui-elevated:#452439;
  --ui-sidebar:#301729;
  --ui-inset:#271320;
  --ui-soft:#5b2b40;
}
html[data-ui-palette="neon"] {
  --paper:#e7f6ff;
  --ink:#172541;
  --muted:#394d69;
  --line:#84a0cc;
  --ui-surface:#f5fcff;
  --ui-elevated:#ecf8ff;
  --ui-sidebar:#d5f1fa;
  --ui-inset:#dbf3fa;
  --ui-soft:#cbeafa;
  --ui-day-accent:#2e3b9f;
  --ui-accent-light:#79f6e4;
  --ui-on-accent-light:#09252b;
  --ui-hero-base:#17294d;
  --ui-hero-end:#393368;
  --ui-feature-accent:#94ffed;
  --ui-feature-muted:#d8ebff;
  --ui-logo-hue:153deg;
  --ui-spectrum-1:#23f2ba;--ui-spectrum-2:#19dcea;--ui-spectrum-3:#4b99ff;--ui-spectrum-4:#716bff;
  --ui-spectrum-5:#ac72ff;--ui-spectrum-6:#f566d8;--ui-spectrum-7:#9ff36f;
}
html[data-ui-palette="neon"][data-ui-mode="dark"] {
  --paper:#0e1427;
  --ink:#eafaff;
  --muted:#bcd5ed;
  --line:#536b9c;
  --ui-surface:#17233d;
  --ui-elevated:#20304e;
  --ui-sidebar:#111c32;
  --ui-inset:#101729;
  --ui-soft:#214251;
}
@media (forced-colors:none) {
  html:is([data-ui-palette="rainbow"],[data-ui-palette="sunset"],[data-ui-palette="neon"]):not([data-ui-contrast="high"]) {
    --ui-spectrum-tint:43%;
    --ui-trim-height:4px;
    --ui-spectrum:linear-gradient(100deg,var(--ui-spectrum-1),var(--ui-spectrum-2),var(--ui-spectrum-3),
      var(--ui-spectrum-4),var(--ui-spectrum-5),var(--ui-spectrum-6),var(--ui-spectrum-7));
    --ui-spectrum-surface:linear-gradient(113deg,
      color-mix(in srgb,var(--ui-spectrum-1) var(--ui-spectrum-tint),var(--ui-surface)),
      color-mix(in srgb,var(--ui-spectrum-3) var(--ui-spectrum-tint),var(--ui-surface)),
      color-mix(in srgb,var(--ui-spectrum-5) var(--ui-spectrum-tint),var(--ui-surface)),
      color-mix(in srgb,var(--ui-spectrum-7) var(--ui-spectrum-tint),var(--ui-surface)));
    --ui-feature:var(--ui-spectrum-surface);
    --ui-feature-ink:var(--ink);
    --ui-feature-muted:color-mix(in srgb,var(--muted) 76%,var(--ink));
    --ui-feature-accent:color-mix(in srgb,var(--ui-accent) 75%,var(--ink));
  }
  html[data-ui-mode="dark"]:is([data-ui-palette="rainbow"],[data-ui-palette="sunset"],[data-ui-palette="neon"]):not([data-ui-contrast="high"]) {
    --ui-spectrum-tint:28%;
  }
}
html[data-ui-contrast="high"] {
  --ink:#19151c;
  --muted:#352b3a;
  --line:#685d6e;
  --ui-overlay:var(--paper);
}
html[data-ui-mode="dark"][data-ui-contrast="high"] {
  --ink:#fffaf5;
  --muted:#f0e7ef;
  --line:#b1a0ba;
}
html[data-ui-font="merriweather"]{--sans:Merriweather,Georgia,serif;--serif:Merriweather,Georgia,serif}
html[data-ui-font="system"]{--sans:system-ui,-apple-system,"Segoe UI",sans-serif;--serif:system-ui,-apple-system,"Segoe UI",sans-serif}
html[data-ui-font="arial"]{--sans:Arial,Helvetica,sans-serif;--serif:Arial,Helvetica,sans-serif}
html[data-ui-font="georgia"]{--sans:Georgia,"Times New Roman",serif;--serif:Georgia,"Times New Roman",serif}
body{--ui-wallpaper-tint:color-mix(in srgb,var(--paper) calc(100% - var(--ui-wallpaper-opacity,6%)),transparent);background-color:var(--paper);background-image:linear-gradient(var(--ui-wallpaper-tint),var(--ui-wallpaper-tint)),var(--daily-photo,none)}
.sidebar{background:var(--ui-sidebar);border-color:var(--line)}
.brandname{color:var(--ink)}.brandname span{color:var(--muted)}
.topbar{background:var(--ui-sidebar);border-color:var(--line)}
.classpick,.search,.field input,.field select,.field textarea,.datepick,.option-editor>input:not([type="radio"]),.question-toolbar select,.question-editor>textarea{background:var(--ui-elevated);color:var(--ink);border-color:var(--line)}
.classdetail,.subtitle,.classmeta,.smalltext,.field label,.field small,.subtle,.profile small,.eyebrow{color:var(--muted)}
.titleline h1,.panel-heading h2,.journeycard h2,.materialempty h3{color:var(--ui-heading)}
.section,.panel,.stat,.studygrid,.assessmentcard,.ws-card,.question-editor,.logincard,.modal{background:var(--ui-surface);border-color:var(--line);box-shadow:0 8px 30px var(--ui-shadow)}
.btn,.mobilemenu,.navclose,.mode{background:var(--ui-elevated);color:var(--ink);border-color:var(--line)}
.btn.primary,.btn.dark{background:var(--ui-accent-deep);border-color:var(--ui-accent-deep);color:var(--ui-on-accent)}
.nav :is(button,a){color:var(--muted)}.nav :is(button,a).active{background:var(--ui-soft);color:var(--brick);box-shadow:none}
.nav :is(button,a).active .navnum,.navnum{background:var(--ui-inset);color:var(--muted)}
.sidecard,.classpulse,.lessonlist{background:var(--ui-inset);border-color:var(--line)}
.sidecard p,.sidecard small,.profile b{color:var(--ink)}
.lessonpick{border-color:var(--line)}.lessonpick.selected{background:var(--ui-soft);box-shadow:inset 4px 0 var(--ui-accent)}
.lessonintro{background:var(--ui-surface)}.lessonpick small,.lessonnumber,.lessonintro p,.materialdetails p{color:var(--muted)}
.learnerstrip{background:var(--ui-surface);border-color:var(--line)}.learneridentity select,.learneridentity b{color:var(--ink)}
.avatar,.stat .iconbox{background:var(--ui-inset);border-color:var(--line);color:var(--muted)}
.sheet th,.sheet .metrichead,.sheet td.metric,.course th{background:var(--ui-inset);color:var(--muted);border-color:var(--line)}
.sheet th .sessno{color:var(--ink)}.sheet td,.sheet td.student,.sheet td.current{background:var(--ui-surface);border-color:var(--line)}
.sheet th.sessionhead.current,.course tr.activitynext{background:var(--ui-soft)}
.course tr.activitydone{background:var(--green-light)}
.sheet th .sessdate,.sheet .studentname,.course .week,.stat .statlabel,.stat .statnum span{color:var(--muted)}
.course .focus,.nextlabel{color:var(--brick)}.mark{background-color:var(--ui-inset);color:var(--muted)}
.answer-option,.response-text{background:var(--ui-elevated);border-color:var(--line);color:var(--ink)}
.answer-option:has(input:checked){background:var(--ui-soft);border-color:var(--ui-accent)}
.modal .x{background:var(--ui-inset);color:var(--ink)}
.drive-note{background:var(--ui-inset);color:var(--muted)}
.scoreorb{background:radial-gradient(circle at center,var(--ui-surface) 59%,transparent 60%),conic-gradient(var(--ui-accent-light),#b5c6a6,#cbb091,var(--ui-accent-light))}
.scoreorb b,.overallpill{color:var(--brick)}.scoreorb>span,.weightlabels,.meterlabel,.questmeter small,.score-rule,.pendingnote,.mvp-person small,.mvp-points small,.questmeter .meterlabel strong{color:var(--muted)}
.weightedtrack,.metertrack,.bar{background:var(--ui-inset)}
.questmeter .metertrack i,.bar i{background:var(--ui-accent)}
.streaknote b,.streaknote small,.badge b,.badge small{color:var(--muted)}
.streakpill,.streakpill.restart{background:var(--ui-inset);border-color:var(--line);color:var(--ink)}
.forumtabs .btn.dark{background:var(--ui-accent-deep);color:var(--ui-on-accent)}
.guildbanner,.threadlist,.threadpane,.threadpick,.forumpost,.raidcard,.badgepanel,.joinpanel{background:var(--ui-surface);border-color:var(--line);color:var(--ink)}
.guildbanner h2,.guildbanner p,.guildempty h3,.guildempty p,.threadpick h3,.threadpick p,.threadpick small,.postauthor b,.postauthor small,.forumpost p,.threadheader .smalltext,.raidcard p,.closednote{color:var(--muted)}
.threadpick.selected,.threadpick:hover,.closednote{background:var(--ui-inset)}
.replyform textarea{background:var(--ui-elevated);color:var(--ink);border-color:var(--line)}
.threadheader{background:var(--ui-inset)}
.threadheader h2,.guildbanner h2,.threadpick h3,.raidcard h3{color:var(--ink)}
.replyform label,.guildinvite p,.guildinvite h2,.guildbanner .eyebrow,.journeycard>.subtle{color:var(--muted)}
.pill,.notice{background:var(--ui-inset);color:var(--muted);border-color:var(--line)}
.footer,.footer a{color:var(--muted)}
.adventurehero {
  background:var(--ui-trim) top/100% var(--ui-trim-height) no-repeat,var(--ui-feature);
  color:var(--ui-feature-ink);
}
.adventurehero :is(h1,h2) { color:var(--ui-feature-ink); }
.adventurehero :is(.eyebrow,p) { color:var(--ui-feature-muted); }
.adventurehero .btn.primary {
  background:var(--ui-feature-accent);
  color:var(--ui-on-accent-light);
  border-color:transparent;
}
html:is([data-ui-palette="rainbow"],[data-ui-palette="sunset"],[data-ui-palette="neon"]) .adventurehero .btn.primary {
  background:var(--ui-button);
  color:var(--ui-button-ink);
}
html[data-ui-mode="dark"] .badge>span,html[data-ui-mode="dark"] .materialicon{background:var(--ui-inset);border-color:var(--line);color:var(--ui-accent-light)}
html[data-ui-wallpaper="off"] body{background-image:none}
.brandmark,.toast{background:var(--ui-button);color:var(--ui-button-ink);box-shadow:0 8px 25px var(--ui-shadow)}
/* The supplied WebP has a near-white field. Blend that field into the active surface. */
@media (forced-colors:none) {
  :is(.masthead .logo,.sidebar .brand,.academy-brand,.lab-brand)>img,
  .lab-catalog-shell .sidebar>img.academy-logo {
    background:transparent;
    filter:contrast(1.16);
    mix-blend-mode:multiply;
  }
  html[data-ui-mode="dark"] :is(.masthead .logo,.sidebar .brand,.academy-brand,.lab-brand)>img,
  html[data-ui-mode="dark"] .lab-catalog-shell .sidebar>img.academy-logo {
    filter:grayscale(1) contrast(1.16) invert(1) sepia(.48) hue-rotate(var(--ui-logo-hue));
    mix-blend-mode:screen;
  }
}
html[data-ui-contrast="high"] .btn,html[data-ui-contrast="high"] .section,html[data-ui-contrast="high"] .panel,html[data-ui-contrast="high"] .stat{border-width:2px;box-shadow:none}
html[data-ui-contrast="high"] .badge{opacity:.75}html[data-ui-contrast="high"] .badge.earned{opacity:1}
html[data-ui-density="compact"] .page{padding-top:20px;padding-bottom:15px}
html[data-ui-density="compact"] .sidebar .brand{margin-bottom:20px}
html[data-ui-density="compact"] .sidebar .classdetail{margin-bottom:14px}
html[data-ui-density="compact"] .nav{gap:4px}
html[data-ui-density="compact"] .nav :is(button,a){padding:9px 12px;min-height:42px}
html[data-ui-density="compact"] .sectionbar{padding:14px 18px}
html[data-ui-density="compact"] .panel,html[data-ui-density="compact"] .assessmentcard{padding:19px}
html[data-ui-density="compact"] .course td{padding-block:9px}
html[data-ui-density="compact"] .learnerstrip{margin-block:17px;padding:11px 15px}
html[data-ui-density="compact"] .adventurehero{padding:27px 30px;min-height:205px}
html[data-ui-density="compact"] .lessonpick{padding:12px 15px}
.appearance-trigger{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;border:1px solid var(--line);border-radius:11px;background:var(--ui-elevated);color:var(--brick);padding:8px}
.appearance-trigger svg{width:19px;height:19px}
.preferences-floating{position:fixed;right:22px;bottom:22px;z-index:80;box-shadow:0 5px 24px var(--ui-shadow);width:44px;height:44px}
.preferences-backdrop{position:fixed;inset:0;z-index:100;width:100%;height:100%;border:0;background:#17271d6b;backdrop-filter:blur(3px)}
.preferences-drawer{position:fixed;inset:0 0 0 auto;z-index:101;width:352px;max-width:calc(100vw - 14px);height:100vh;height:100dvh;overflow-y:auto;overscroll-behavior:contain;background:var(--ui-surface);border-left:1px solid var(--line);box-shadow:-15px 0 55px #152d2420;transform:translateX(105%);visibility:hidden;transition:transform .22s ease,visibility .22s;color:var(--ink);scrollbar-width:thin;scrollbar-color:var(--ui-accent) transparent}
.is-open .preferences-drawer{transform:translateX(0);visibility:visible}
.preferences-heading{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:23px 22px 19px;border-bottom:1px solid var(--line);background:var(--ui-surface)}
.preferences-heading .eyebrow{font-size:8px;letter-spacing:1.1px;line-height:1.8}
.preferences-heading h2{font:18px/1.5 var(--serif);margin:5px 0 0}
.preferences-close{border:1px solid var(--line);background:var(--ui-elevated);color:var(--ink);width:33px;height:33px;border-radius:10px;flex-shrink:0;font:23px/1 var(--sans)}
.preferences-content{padding:20px 21px 28px;font-size:12px}
.preference-language{margin-bottom:22px}
.preference-language label{display:block;font-weight:700;font-size:12px;margin-bottom:10px}
.preferences-content select{width:100%;min-height:41px;border:1px solid var(--line);border-radius:11px;padding:9px 11px;background:var(--ui-elevated);color:var(--ink);font-size:12px}
.preference-language p,.preference-footnote{font-size:10px;line-height:1.8;color:var(--muted);margin:10px 0}
.preference-section{border:1px solid var(--line);border-radius:17px;margin:17px 0;padding:0 14px 15px;background:var(--ui-elevated)}
.preference-section:not([open]){padding-bottom:0}
.preference-section summary{font-size:11px;font-weight:700;cursor:pointer;list-style:none;padding:15px 1px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.preference-section summary::-webkit-details-marker{display:none}
.preference-section summary::after{content:'⌄';color:var(--muted);font-size:15px;transform:rotate(-90deg)}
.preference-section[open] summary::after{transform:none}
.preference-segment{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.preference-segment button{border:1px solid var(--line);border-radius:12px;padding:11px 5px;background:var(--ui-surface);color:var(--muted);font-size:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:70px;line-height:1.5}
.preference-segment button[aria-pressed="true"],.preference-palettes button[aria-pressed="true"]{background:var(--ui-soft);border-color:var(--ui-accent);color:var(--brick);box-shadow:inset 0 0 0 1px var(--ui-accent)}
.preference-glyph{font-size:21px;line-height:1}
.preference-toggles{display:grid;gap:8px;margin-top:15px}
.preference-toggle{position:relative;display:flex;justify-content:space-between;align-items:center;gap:15px;padding:8px 0;cursor:pointer;font-size:11px;min-height:35px}
.preference-toggle input{position:absolute;right:0;opacity:0;width:34px;height:22px;cursor:pointer}
.preference-toggle i{width:34px;height:20px;flex-shrink:0;border-radius:20px;background:var(--line);padding:3px;transition:background .15s}
.preference-toggle i::before{content:'';display:block;width:14px;height:14px;border-radius:50%;background:var(--ui-surface);box-shadow:0 1px 3px #0002;transition:transform .15s}
.preference-toggle input:checked+i{background:var(--ui-accent)}
.preference-toggle input:checked+i::before{transform:translateX(14px)}
.preference-toggle input:focus-visible+i{outline:3px solid var(--ui-accent);outline-offset:3px}
.preference-opacity{margin-top:12px;font-size:11px}.preference-opacity>div{display:flex;justify-content:space-between;align-items:center;gap:12px}.preference-opacity label{min-width:0;overflow-wrap:anywhere}.preference-opacity output{flex:none;min-width:4ch;text-align:right;font-variant-numeric:tabular-nums;color:var(--muted)}.preference-opacity input{display:block;width:100%;min-width:0;height:36px;margin:4px 0 0;accent-color:var(--ui-accent);cursor:pointer}.preference-opacity:has(input:disabled){color:var(--muted)}.preference-opacity input:disabled{cursor:not-allowed;opacity:.5}
.navigation-choice{grid-template-columns:1fr 1fr}
.layout-preview{display:block;position:relative;width:58px;height:34px;border:1px solid var(--line);border-radius:6px;background:var(--ui-inset);overflow:hidden}
.layout-preview i,.layout-preview b{position:absolute;display:block;background:var(--ui-accent);border-radius:2px;opacity:.55}
.sidebar-preview i{left:4px;top:4px;bottom:4px;width:10px}.sidebar-preview b{left:18px;top:4px;right:4px;bottom:4px;opacity:.2}
.top-preview i{left:4px;top:4px;right:4px;height:7px}.top-preview b{left:4px;top:15px;right:4px;bottom:4px;opacity:.2}
.preference-palettes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.preference-palettes button{padding:11px 4px 9px;display:flex;flex-direction:column;align-items:center;gap:8px;border:1px solid transparent;border-radius:12px;background:var(--ui-surface);color:var(--muted)}
.preference-palettes button>span{width:calc(100% - 8px);height:27px;border-radius:6px;background:var(--swatch);position:relative}
html[data-ui-mode="dark"] .preference-palettes button>span{background:var(--swatch-dark)}
.preference-palettes button[aria-pressed="true"]>span::after{content:'✓';position:absolute;inset:0;display:grid;place-items:center;color:white;font-size:14px;background:#0b0b0d96;border-radius:inherit}
.preference-palettes small{font-size:10px;line-height:1.5}
.preference-reset{width:100%;margin:5px 0 2px;min-height:41px}
.preference-footnote{text-align:center;margin-bottom:0}
body.preferences-open{overflow:hidden}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
[data-user-content]{font:inherit;color:inherit}
@media(min-width:961px){
  html[data-ui-layout="top"] .shell{display:block}
  html[data-ui-layout="top"] .sidebar{position:relative;inset:auto;width:100%;height:auto;max-height:none;overflow:visible;display:grid;grid-template-columns:168px minmax(170px,1fr) auto auto;align-items:center;gap:12px 20px;padding:18px 30px 12px;border-right:0;border-bottom:1px solid var(--line)}
  html[data-ui-layout="top"] .sidebar .brand{grid-column:1;grid-row:1;margin:0}
  html[data-ui-layout="top"] .workspace-switch{grid-column:2;grid-row:1;min-width:0;max-width:340px}
  html[data-ui-layout="top"] .workspace-switch>.eyebrow,html[data-ui-layout="top"] .classdetail{display:none}
  html[data-ui-layout="top"] .classpick{margin:0}
  html[data-ui-layout="top"] .sidebar .nav{grid-column:1/-1;grid-row:2;flex-direction:row;flex-wrap:wrap;gap:5px}
  html[data-ui-layout="top"] .nav :is(button,a){flex:1;justify-content:center;padding:10px;min-height:43px}
  html[data-ui-layout="top"] .navnum{margin-left:4px}
  html[data-ui-layout="top"] #newclass{grid-column:3;grid-row:1}
  html[data-ui-layout="top"] .sidecard,html[data-ui-layout="top"] .profile{display:none}
  html[data-ui-layout="top"] .sidebottom{grid-column:4;grid-row:1;margin:0;padding:0;display:flex;align-items:center;gap:12px;flex-wrap:wrap;max-width:320px}
  html[data-ui-layout="top"] .sidebottom .subtle{margin:0;font-size:10px;max-width:145px;text-align:left;line-height:1.6}
  html[data-ui-layout="top"] .main{grid-column:auto;width:100%}
  html[data-ui-layout="top"] .topbar{height:63px}
  html[data-ui-layout="top"] .toast{left:50%}
}
@media(max-width:600px){.topright{gap:7px}.appearance-trigger{width:33px;height:33px;padding:7px}.topbar .mode{font-size:9px;padding:7px}.topbar .mode svg{display:none}.breadcrumb>span:not(.desktop){max-width:21vw}.preferences-heading{padding:19px}.preferences-content{padding:17px}.preferences-drawer{width:340px}}
@media(prefers-reduced-motion:reduce){.preferences-drawer,.preference-toggle i,.preference-toggle i::before{transition:none}}

/* Map Class Management's shared tokens to the other two existing app layouts. */
:root{--sans:Inter,system-ui,sans-serif;--serif:Merriweather,Georgia,serif}
html{background:var(--paper);color:var(--ink)}
body{font-family:var(--sans);background-size:cover;background-attachment:fixed;background-position:center}
html[data-ui-wallpaper="off"] body{background-image:none!important}
.preferences-drawer,.preferences-drawer *{box-sizing:border-box}.preferences-drawer{font-family:var(--sans);color:var(--ink);z-index:1102}.preferences-backdrop{z-index:1101}.preferences-floating{z-index:1090}
.preferences-drawer h2{font-family:var(--serif)}.preferences-drawer select{background:var(--ui-surface);color:var(--ink)}.preferences-drawer .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.app-shell{--ink-soft:var(--muted);--ink:var(--ui-heading);--text:var(--ink);--gold:var(--ui-accent);--line-strong:var(--line);--accent:var(--ui-accent-deep);--shadow:0 8px 28px var(--ui-shadow);background:transparent!important;color:var(--ink)}
.app-shell .sidebar,.app-shell .topbar{background:var(--ui-sidebar)!important;color:var(--ink)!important}
.app-shell .nav-item,.app-shell .brand-copy strong,.app-shell .brand-copy span{color:var(--ink)!important}.app-shell .nav-item.active{background:var(--ui-soft)!important;color:var(--ui-accent-deep)!important}
.app-shell :is(.panel,.kpi-card,.kpi-card.dark,.modal,.report-highlight,.hero-frame){background:var(--ui-surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
.app-shell :is(.panel-title,.kpi-value,.row-name,.row-money,.total-row strong,.data-table td b,.settings-item b,.report-stat b,.hero-title,.page-intro h1){color:var(--ui-heading)!important}
.app-shell :is(.row-sub,.panel-note,.kpi-label,.kpi-foot,.page-subtitle,.report-stat span,.sidebar-meta,.footer){color:var(--muted)!important}
.app-shell :is(input,select,textarea,.button-quiet,.type-tab,.icon-button){background:var(--ui-elevated)!important;color:var(--ink)!important;border-color:var(--line)!important}
.app-shell .data-table :is(th,td){color:var(--ink)!important;border-color:var(--line)!important}.app-shell .data-table thead{background:var(--ui-inset)!important}
.hub{--bg:var(--paper);--text:var(--ink);--accent:var(--ui-accent);--panel:var(--ui-surface);--border:var(--line);background:transparent!important;color:var(--ink)}
.hub :is(.rail,.channels,.members,.chat-head,.composer-wrap,.channel-head,.hub-sidebar,.sidebar-header,.sidebar-footer){background:var(--ui-sidebar)!important;color:var(--ink)!important;border-color:var(--line)!important}
.hub :is(.chat,.chat-main,.messages,.message-scroll,.task-workspace){background:transparent!important;color:var(--ink)}
.hub :is(.channel-item,.member-row,.channel-name,.chat-heading strong,.member-data strong,.sidebar-title,.message-body,.message-author){color:var(--ink)!important}
.hub :is(.channel-item.active,.channel-item:hover,.member-row:hover){background:var(--ui-soft)!important}
.hub :is(input,textarea,select,.rich-editor,.composer-box,.task-card){background:var(--ui-surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-ui-font] .app-shell,html[data-ui-font] .hub,html[data-ui-font] .app-shell button,html[data-ui-font] .hub button{font-family:var(--sans)!important}
html[data-ui-density="compact"] .app-shell .content{padding:18px}html[data-ui-density="compact"] .hub .message{padding-top:5px;padding-bottom:5px}
html[data-ui-layout="top"] .app-shell{display:block}html[data-ui-layout="top"] .app-shell .sidebar{position:relative;width:auto;height:auto;transform:none;padding:18px;display:flex;flex-direction:row;gap:16px;align-items:center;flex-wrap:wrap}html[data-ui-layout="top"] .app-shell .sidebar nav{display:flex;flex-wrap:wrap;gap:5px}html[data-ui-layout="top"] .app-shell .main{margin-left:0;width:100%}html[data-ui-layout="top"] .app-shell :is(.sidebar-bottom,.sidebar-meta,.nav-divider){display:none}
@media(min-width:961px){html[data-ui-layout="top"] .hub{grid-template-columns:minmax(210px,270px) minmax(0,1fr) 240px;grid-template-rows:auto minmax(0,1fr)}html[data-ui-layout="top"] .hub .rail{grid-column:1/-1;grid-row:1;flex-direction:row;height:62px;padding:8px 20px;gap:16px}html[data-ui-layout="top"] .hub .rail-group,html[data-ui-layout="top"] .hub .rail-bottom{display:flex;flex-direction:row;gap:10px}html[data-ui-layout="top"] .hub .rail-spacer{flex:1}html[data-ui-layout="top"] .hub .rail-divider{display:none}}
button:disabled{cursor:not-allowed;opacity:.55}[hidden]{display:none!important}

.preferences-floating{left:22px;right:auto;bottom:22px}.hub .sidebar{background:var(--ui-sidebar)!important;color:var(--ink)!important}.hub :is(.msg-author,.msg-text,.side-title,.side-user strong){color:var(--ink)!important}.hub :is(.msg-time,.side-subtitle,.side-user small){color:var(--muted)!important}

body.preferences-open #tea-workspace-shell{visibility:hidden}.preferences-drawer input[type=checkbox]{accent-color:var(--ui-accent)}

/* Use the shared appearance tokens in the Workspace shell. */
:root {
  --workspace-trim: var(--ui-accent);
  --workspace-seam: var(--ui-trim);
  --workspace-feature: var(--ui-feature);
  --workspace-feature-ink: var(--ui-feature-ink);
  --workspace-feature-muted: var(--ui-feature-muted);
  --workspace-feature-accent: var(--ui-feature-accent);
}
