/* Visual bridge to landing-v2.css. No layout/route/state or lesson-editor rules.
   Load last in Space and the account page; keep semantic status colours intact. */
html:root {
  --brand-navy:#001c40;
  --brand-violet:#3d1f94;
  --brand-yellow:#ffdc00;
  --brand-canvas:#fffdf5;
  --brand-panel:#fff;
  --brand-lavender:#ece8ff;
  --brand-sky:#d9ecff;
  --brand-mint:#e4f3eb;
  --brand-peach:#fff0dc;
  --brand-rose:#ffd9ea;
  --brand-ink:#001c40;
  --brand-muted:#58607a;
  --brand-line:#d4dbe6;
  --brand-outline:#001c40;
  --brand-field:#8e9cb4;
  --brand-shadow:0 3px 0 var(--brand-outline);
  --cream:var(--brand-canvas); --surface:var(--brand-panel);
  --ink:var(--brand-ink); --muted:var(--brand-muted);
  --purple:var(--brand-violet); --lilac:var(--brand-lavender);
  --line:var(--brand-line); --yellow:var(--brand-yellow);
  --ws-bg:var(--brand-canvas); --ws-panel:var(--brand-panel);
  --ws-rail:var(--brand-lavender); --ws-ink:var(--brand-ink);
  --ws-muted:var(--brand-muted); --ws-line:var(--brand-line);
  --ws-purple:var(--brand-violet); --ws-purple-soft:var(--brand-lavender);
  --ws-blue:var(--brand-sky); --ws-mint:var(--brand-mint);
  --ws-peach:var(--brand-peach); --ws-rose:var(--brand-rose);
  --ws-shadow:0 2px 0 var(--brand-line);
  --live-bg:var(--brand-canvas); --live-panel:var(--brand-panel);
  --live-rail:var(--brand-lavender); --live-ink:var(--brand-ink);
  --live-muted:var(--brand-muted); --live-line:var(--brand-line);
  --live-purple:var(--brand-violet);
}
/* Dark mode uses the same hierarchy, with its own legible surface pairs. */
html[data-theme=dark] {
  --brand-canvas:#101b2c; --brand-panel:#19283e;
  --brand-lavender:#2b2850; --brand-sky:#203c57;
  --brand-mint:#1c3b35; --brand-peach:#413224; --brand-rose:#432b43;
  --brand-ink:#f4f5ff; --brand-muted:#b8c4d9;
  --brand-violet:#c1b3ff; --brand-line:#3b4e69;
  --brand-outline:#8098bc; --brand-field:#7185a2;
  --cream:var(--brand-canvas); --surface:var(--brand-panel);
  --ink:var(--brand-ink); --muted:var(--brand-muted);
  --purple:var(--brand-violet); --lilac:var(--brand-lavender); --line:var(--brand-line);
  --ws-bg:var(--brand-canvas); --ws-panel:var(--brand-panel);
  --ws-rail:var(--brand-lavender); --ws-ink:var(--brand-ink);
  --ws-muted:var(--brand-muted); --ws-line:var(--brand-line);
  --ws-purple:var(--brand-violet); --ws-purple-soft:var(--brand-lavender);
  --ws-blue:var(--brand-sky); --ws-mint:var(--brand-mint);
  --ws-peach:var(--brand-peach); --ws-rose:var(--brand-rose);
  --live-bg:var(--brand-canvas); --live-panel:var(--brand-panel);
  --live-rail:var(--brand-lavender); --live-ink:var(--brand-ink);
  --live-muted:var(--brand-muted); --live-line:var(--brand-line);
  --live-purple:var(--brand-violet);
}
body { font-family:'Poppins',system-ui,sans-serif; background:var(--brand-canvas); color:var(--brand-ink); }
body :is(h1,h2,h3) { font-family:'Baloo 2','Poppins',sans-serif; font-weight:700; letter-spacing:-.025em; }
button,input,select,textarea { font-family:inherit; }
body :is(a,button,input,select,textarea,summary):focus-visible {
  outline:3px solid var(--brand-violet); outline-offset:4px;
}
/* Keep fixed header, sidebar collapse and mobile drawer geometry unchanged. */
body .header { background:var(--brand-panel); border-bottom:2px solid var(--brand-outline); }
body .sidebar { background:var(--brand-lavender); border-right:1px solid var(--brand-outline); }
body :is(.ws-rail-bottom,.ws-rail-brand) { background:var(--brand-lavender); }
body .header .ws-rail-brand { background:transparent; }
body .workspace-crumb { color:var(--brand-muted); font-size:12px; }
body :is(.header-study-search,.header .theme-toggle,.ws-role-preview select) {
  border:1px solid var(--brand-field); background:var(--brand-panel); color:var(--brand-ink); border-radius:999px;
}
body :is(#nav,#workspace-nav,#skill-nav) a {
  border:1px solid transparent; color:var(--brand-ink); border-radius:14px;
  font-size:12px; font-weight:500;
}
body :is(#nav,#workspace-nav,#skill-nav) a:hover { background:var(--brand-panel); color:var(--brand-violet); }
html:root body :is(#nav,#workspace-nav,#skill-nav) a[aria-current=page] {
  background:var(--brand-yellow); color:var(--brand-navy); border-color:var(--brand-navy);
  box-shadow:0 2px 0 var(--brand-navy); font-weight:700;
}
body .ws-account-copy strong { font-size:12px; }
body .ws-account-copy small { font-size:10px; }
body .ws-rail-account { border-color:var(--brand-outline); }
body .ws-account-button { border-radius:12px; }
body .ws-account-button:hover { background:var(--brand-panel); }
/* Outlined controls and restrained offset shadows echo the landing pills. */
body .button { border-radius:999px; border:1.5px solid var(--brand-outline); box-shadow:0 2px 0 var(--brand-outline); }
body :is(.ws-button,.co-primary,.co-heading-action,.space-portal .button,.space-portal .soft-button,.account-card .button) {
  border:1.5px solid var(--brand-outline); border-radius:999px;
  font-weight:600; font-size:12px; line-height:1.5;
  box-shadow:0 2px 0 var(--brand-outline);
}
html:root body :is(.ws-button.primary,.co-primary,.space-portal .button,.account-card .button) {
  background:var(--brand-yellow); color:var(--brand-navy); border-color:var(--brand-navy);
  box-shadow:0 3px 0 var(--brand-navy);
}
html:root body :is(.ws-button.primary,.co-primary,.space-portal .button,.account-card .button):hover:not(:disabled) {
  background:#ffe86b; color:var(--brand-navy);
}
body :is(.ws-button.secondary,.co-heading-action,.space-portal .soft-button) {
  background:var(--brand-panel); color:var(--brand-ink);
}
body :is(.ws-button,.co-primary,.co-heading-action,.space-portal .button,.space-portal .soft-button):active:not(:disabled) {
  transform:translateY(1px); box-shadow:0 1px 0 var(--brand-outline);
}
body :is(.ws-button,.co-primary,.co-heading-action,.account-card .button) { min-height:44px; }
/* Quiet white work surfaces; strong outlines only around primary containers. */
body :is(.ws-panel,.ws-classic-entry,.co-class-card,.co-folder,.cp-member-group,
  .co-material-books,.co-material-post,.co-material-editor,.account-card) {
  background:var(--brand-panel); color:var(--brand-ink);
  border:1.5px solid var(--brand-outline); border-radius:22px;
  box-shadow:var(--brand-shadow);
}
body .co-folder { border-top:5px solid var(--brand-violet); }
body .co-folder:nth-child(3n+2) { border-top-color:#16409a; }
body .co-folder:nth-child(3n) { border-top-color:#08766b; }
body :is(.co-table-scroll,.co-attendance-scroll,.space-portal .pg-table,.space-portal .lms-progress-table) {
  border:1.5px solid var(--brand-outline); border-radius:18px;
}
body :is(.co-directory,.co-attendance-table,.pg-table) { font-variant-numeric:tabular-nums; }
body .co-directory caption { color:var(--brand-ink); }
body :is(.co-directory th,.pg-head) { background:var(--brand-lavender); color:var(--brand-ink); }
body .co-directory td { background:var(--brand-panel); }
/* Shared class chrome stays identical across discussion/materials/roster tabs. */
html:root body :is(.co-heading,.co-class-heading,.cp-heading,.ws-page-heading,
  .course-workspace.integrated-lms .lms-course-heading) {
  background:var(--brand-lavender); color:var(--brand-ink);
  border:1.5px solid var(--brand-outline); box-shadow:var(--brand-shadow);
}
html:root body :is(.co-heading,.co-class-heading,.cp-heading,.ws-page-heading,
  .course-workspace.integrated-lms .lms-course-heading) :is(h1,p,.eyebrow,.co-kicker,.cp-kicker,.ws-kicker) {
  color:var(--brand-ink);
}
html:root body .course-workspace .lms-course-heading :is(.lms-course-meta p,.lms-course-meta p>span) { color:var(--brand-ink); }
body .co-heading h1 { font-size:32px; }
body :is(.co-class-heading h1,.cp-heading h1) { letter-spacing:-.02em; }
body :is(.co-class-tabs,.integrated-lms .lms-course-tabs,.cp-tabs) { border-color:var(--brand-line); }
body :is(.co-class-tabs a,.integrated-lms .lms-course-tabs a,.cp-tabs a) { border-radius:12px 12px 0 0; }
body :is(.co-class-tabs a.is-current,.integrated-lms .lms-course-tabs a[aria-current=page],.cp-tabs a[aria-current=page]) {
  color:var(--brand-violet); background:var(--brand-lavender); border-color:var(--brand-violet);
}
body :is(.co-material-icon,.co-material-link-field) { border-color:var(--brand-field); }
html:root body .co-chat.co-fixed-room { border-color:var(--brand-outline); box-shadow:var(--brand-shadow); }
html:root body .co-fixed-room>.co-chat-toggle {
  background:var(--brand-violet); color:var(--brand-panel); border-bottom-color:var(--brand-outline);
}
html:root body .co-fixed-room>.co-chat-toggle :is(small,span) { color:inherit; }
html:root body .co-fixed-room .co-channel-toolbar {
  background:var(--brand-lavender); color:var(--brand-ink);
}
html:root body .co-fixed-room .co-chat-log { background:var(--brand-panel); }
html:root body .co-fixed-room .co-thread-panel .co-chat-log { background:var(--brand-lavender); }
/* Home/library retain their established layouts and semantic skill accents. */
html:root body .ws-welcome {
  background:var(--brand-lavender); color:var(--brand-ink);
  border:1.5px solid var(--brand-outline); box-shadow:var(--brand-shadow);
}
html:root body .ws-welcome.teacher { background:var(--brand-mint); }
html:root body .ws-welcome.staff { background:var(--brand-peach); }
html:root body .ws-welcome.admin { background:var(--brand-sky); }
html:root body .ws-welcome :is(h2,p,.ws-welcome-label) { color:var(--brand-ink); }
html:root body .ws-welcome h2 span { color:var(--brand-violet); }
body .ws-section-head h2 { font-size:20px; }
html:root body :is(.area-banner,.area-card) { border:1.5px solid var(--brand-outline); box-shadow:var(--brand-shadow); }
/* Settings: readable labels, consistent fields and clear modal boundary. */
body :is(#modal,.co-dialog) {
  background:var(--brand-panel); color:var(--brand-ink);
  border:2px solid var(--brand-outline); border-radius:24px; box-shadow:0 5px 0 var(--brand-outline);
}
body :is(#modal,.co-dialog)::backdrop { background:#001c4073; backdrop-filter:blur(3px); }
body :is(.modal-top,.co-dialog-head) { padding-bottom:16px; border-bottom:1px solid var(--brand-line); }
body :is(.modal-top h2,.co-dialog-head h2) { font-size:27px; line-height:1.35; }
body :is(.ws-dialog-intro,.ws-form>label,.modal-form label) { font-size:13px; }
body :is(.ws-form,.modal-form,.co-dialog,.co-form,.cp-tools,.account-card) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea) {
  background:var(--brand-panel); color:var(--brand-ink); border:1px solid var(--brand-field);
  border-radius:12px; font-size:14px; min-height:44px;
}
body :is(.ws-form,.modal-form,.co-dialog,.co-form,.cp-tools,.account-card) :is(input,textarea)::placeholder { color:var(--brand-muted); opacity:1; }
body .ws-hint { color:var(--brand-muted); }
body #modal :is(.ws-hint,.ws-dialog-intro) { font-size:12px; line-height:1.8; }
body #modal .ws-row.between { font-size:12px; gap:16px; }
body #modal .ws-row.between>a { display:inline-flex; align-items:center; min-height:44px; }
body .account-card { padding:32px; }
body .auth-modes { background:var(--brand-lavender); border-radius:999px; padding:5px; }
body .auth-modes button { border-radius:999px; color:var(--brand-ink); }
body .auth-modes button[aria-pressed=true] { background:var(--brand-violet); color:var(--brand-panel); }
body #signed-in .text-button { margin-left:12px; }
body:has(.account-card) .app-header { background:var(--brand-panel); border-bottom:2px solid var(--brand-outline); }
body:has(.account-card) .account-intro h1 { color:var(--brand-ink); }
body:has(.account-card) .app-footer { background:var(--brand-lavender); color:var(--brand-ink); }
@media(max-width:760px) {
  body :is(#nav,#workspace-nav,#skill-nav) a { min-height:44px; }
  body .co-heading h1 { font-size:28px; }
  body :is(.modal-top h2,.co-dialog-head h2) { font-size:24px; }
  body :is(#modal,.co-dialog,.account-card) { padding:20px; border-radius:20px; }
  body:has(.account-card) .app-header { flex-wrap:wrap; padding-bottom:12px; }
  body:has(.account-card) .app-header nav { flex-basis:100%; flex-wrap:wrap; justify-content:flex-start; }
  body:has(.account-card) .learn-trigger { max-width:none; white-space:nowrap; }
  /* 16px prevents mobile browsers zooming the entire workspace on form focus. */
  body :is(.ws-form,.modal-form,.co-dialog,.co-form,.cp-tools,.account-card) :is(input,select,textarea) { font-size:16px; }
}
@media(prefers-reduced-motion:reduce) {
  body :is(.ws-button,.co-primary,.co-heading-action):active:not(:disabled) { transform:none; }
}
