:root {
  --ink: #191d27;
  --muted: #606977;
  --blue: #2864db;
  --blue-deep: #184db4;
  --sky: #ecf3ff;
  --border: #e2e5ea;
  --paper: #fff;
  --wash: #f5f6f8;
  --navy: #151e31;
  --green: #147d57;
  --shadow: 0 12px 32px -24px #29324755;
  --radius: 12px;
  --surface: #fff;
  --raised: #f9fafc;
  --soft: #eff2f7;
  --copy: #526078;
  --soft-border: #dfe5ed;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color-scheme: light;
}
body, body.campus { background: var(--wash); color: var(--ink); }
.site-header, .campus-sidebar { background: color-mix(in srgb, var(--surface) 93%, transparent); border-color: var(--border); backdrop-filter: blur(18px); }
.site-header { height: 76px; }
.brand { letter-spacing: -.07em; font-weight: 850; }
.brand-mark { border-radius: 9px; background: #2864db; box-shadow: inset 0 2px #ffffff4d; }
.nav-wrap { max-width: 1390px; }
.main-nav { font-size: 13px; font-weight: 650; gap: 26px; }
.button, .icon-button, .theme-toggle { border-radius: 9px; font-weight: 700; }
.button:not(.ghost):not(.white):not(.outline):not(.dark) { background: #2864db; border-color: #2864db; box-shadow: 0 2px 0 #14489c; }
.button:not(.ghost):not(.white):not(.outline):not(.dark):hover { background: #3475eb; border-color: #3475eb; }
.button.ghost { background: var(--surface); border: 1px solid var(--border); color: var(--ink); }
.button.dark { background: var(--navy); border-color: var(--navy); }
.button:active { transform: translateY(1px); box-shadow: none; }
.button:disabled { opacity: .52; box-shadow: none; }
.campus-card, .lesson-card, .course-card, .lesson-outline, .metric-card, .pricing-card, .request-card, .mentor-option, .trial-prompt, .project-window {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 2px 10px -8px #17243a50;
}
.campus-content { max-width: 1510px; }
.page-title { letter-spacing: -.045em; font-weight: 820; }
.page-intro { color: var(--copy); }
.sidebar-nav a { border-radius: 8px; font-weight: 660; }
.sidebar-nav a:hover { background: var(--soft); color: var(--blue); }
.sidebar-nav a.active { color: var(--blue); background: var(--sky); }
.sidebar-xp, .level-showcase, .progress-section { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.course-card { transition: border-color .16s, transform .16s, box-shadow .16s; }
.course-card:hover { border-color: #8eade8; box-shadow: 0 14px 26px -22px #162b5890; transform: translateY(-2px); }
.module-number, .level-square { border-radius: 8px; }
.dashboard-hero, .community-hero, .bottom-cta { background: linear-gradient(112deg, #13366e 0%, #2864da 100%); border-radius: 13px; }
.pill, .tiny-pill { border-radius: 6px; letter-spacing: .03em; }
.field input, .field select, .field textarea, .assignment-file input { border-radius: 9px; }
.field :is(input,textarea,select):focus-visible, .assignment-file input:focus-visible { outline: 2px solid #6798f7; outline-offset: 2px; }
.lesson-body { max-width: 850px; }
.lesson-body h2, .lesson-body h3 { color: var(--ink); }
.lesson-outline { overflow: auto; }
.assignment-panel { display: grid; gap: 14px; margin-top: 22px; padding: clamp(17px, 2.2vw, 26px); border-radius: 12px; border: 1px solid var(--soft-border); background: var(--soft); }
.assignment-panel h4 { font-size: clamp(18px, 2vw, 24px); letter-spacing: -.03em; font-weight: 780; }
.assignment-panel p { line-height: 1.65; font-size: 13px; color: var(--copy); }
.assignment-panel .eyebrow { margin: 0; }
.assignment-panel .button { justify-self: start; }
.assignment-file { display: grid; gap: 9px; font-size: 12px; font-weight: 650; color: var(--ink); }
.assignment-file input { padding: 13px; border: 1px dashed var(--soft-border); background: var(--surface); color: var(--ink); width: 100%; max-width: 570px; }
.assignment-file input::file-selector-button { border: 1px solid var(--border); background: var(--soft); border-radius: 7px; padding: 8px 14px; color: var(--ink); font: inherit; cursor: pointer; margin-right: 14px; }
.assignment-feedback { padding: 13px 16px; background: var(--surface); border: 1px solid #dfa585; border-radius: 9px; }
.assignment-feedback b { color: var(--ink); font-size: 13px; }
.assignment-queue { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 18px; align-items: start; }
.assignment-review { display: grid; gap: 14px; }
.assignment-review-top { display: flex; justify-content: space-between; gap: 15px; font-size: 11px; color: var(--muted); align-items: center; flex-wrap: wrap; }
.assignment-review-form { display: grid; gap: 12px; }
.assignment-review .button-row { display: flex; gap: 9px; flex-wrap: wrap; }
@media (max-width: 780px) {
  .site-header { height: 69px; }
  .campus-sidebar { background: var(--surface); }
  .course-card { min-height: unset; }
  .assignment-panel .button { justify-self: stretch; }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f0f2f7;
  --muted: #a5b0c3;
  --blue: #87b1ff;
  --blue-deep: #a4c8ff;
  --sky: #1a2d4c;
  --border: #303c50;
  --paper: #121821;
  --wash: #0f141c;
  --navy: #243857;
  --green: #75d8af;
  --surface: #1b2330;
  --raised: #253044;
  --soft: #212d3d;
  --copy: #b4c0d3;
  --soft-border: #344b67;
  --shadow: 0 10px 28px -15px #0009;
}
:root[data-theme="dark"] body, :root[data-theme="dark"] body.campus { background: var(--wash); color: var(--ink); }
:root[data-theme="dark"] .site-header, :root[data-theme="dark"] .campus-sidebar { background: #19212eea; }
:root[data-theme="dark"] .sidebar-nav a.active { background: #223e65; color: #bbd3ff; }
:root[data-theme="dark"] .button.ghost { background: var(--surface); color: var(--ink); border-color: var(--border); }
:root[data-theme="dark"] .button:not(.ghost):not(.white):not(.outline):not(.dark) { color: #fff; background: #2864db; border-color: #437bdd; box-shadow: 0 2px 0 #112e6a; }
:root[data-theme="dark"] :is(.campus-card,.course-card,.metric-card,.lesson-card,.lesson-outline,.pricing-card,.request-card,.mentor-option,.trial-prompt,.sidebar-xp,.level-showcase,.progress-section,.project-window) { background: var(--surface); border-color: var(--border); }
:root[data-theme="dark"] .assignment-panel { background: var(--soft); border-color: var(--soft-border); }
:root[data-theme="dark"] .assignment-feedback { background: var(--surface); }
:root[data-theme="dark"] .lesson-body :is(h2,h3), :root[data-theme="dark"] .assignment-panel h4 { color: var(--ink); }
:root[data-theme="dark"] .assignment-file input { background: var(--surface); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .course-card, .button { transition: none !important; } }

/* Creator platform */
:root {
  --ink: #202227; --muted: #666a73; --copy: #555b65; --wash: #f2f4f5;
  --surface: #ffffff; --paper: #ffffff; --raised: #f7f8fa; --soft: #e8ebef;
  --border: #dce0e5; --soft-border: #d4d9e0; --sky: #e5edff;
  --blue: #245bdb; --blue-deep: #194abc; --navy: #202f50;
  --rail-width: 184px; --header-height: 64px; --radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}
:root[data-theme="dark"] {
  --ink: #f2f3f5; --muted: #a7aab4; --copy: #b3b8c2; --wash: #121317;
  --surface: #202227; --paper: #202227; --raised: #272a30; --soft: #30333b;
  --border: #34373f; --soft-border: #40444e; --sky: #243350;
  --blue: #8eb1ff; --blue-deep: #afc6ff; --navy: #2a3d62;
}
:root body { background: var(--wash); color: var(--ink); padding-left: var(--rail-width); }
:root body.campus { padding-left: 0; }
:root .site-header { height: var(--header-height); position: sticky; top: 0; margin-left: calc(-1 * var(--rail-width)); background: var(--surface); border-bottom: 1px solid var(--border); backdrop-filter: none; z-index: 50; }
:root body.campus .site-header { margin-left: 0; }
:root .nav-wrap { width: calc(100% - 32px); max-width: none; margin: 0 16px; gap: 24px; }
:root .brand { font-size: 26px; font-weight: 800; letter-spacing: -1.2px; gap: 8px; white-space: nowrap; }
:root .brand-mark { width: 29px; height: 29px; border-radius: 6px; background: #335fff; color: white; box-shadow: none; }
:root .brand-mark svg { width: 25px; height: 25px; }
:root .brand-dot { color: #477aff; }
:root .main-nav { display: flex; gap: 22px; margin-right: 0; font-size: 15px; font-weight: 600; }
:root .main-nav a { color: var(--ink); white-space: nowrap; }
:root .main-nav a:hover { color: var(--blue); }
.header-search { display: flex; align-items: center; gap: 10px; min-width: 140px; max-width: 390px; flex: 1; border-radius: 7px; padding: 9px 12px; height: 38px; border: 1px solid var(--border); background: var(--wash); color: var(--muted); text-align: left; font: inherit; font-size: 14px; cursor: pointer; }
.header-search .icon { width: 17px; height: 17px; }
.header-search kbd { margin-left: auto; font: inherit; font-size: 11px; color: var(--muted); background: var(--surface); padding: 2px 4px; border-radius: 3px; }
:root .nav-actions { margin-left: auto; gap: 14px; flex-shrink: 0; }
:root .nav-login { color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
:root .button, :root .icon-button, :root .theme-toggle { border-radius: 7px; box-shadow: none !important; font-weight: 650; letter-spacing: 0; }
:root .button { min-height: 40px; font-size: 14px; padding: 10px 17px; border-width: 1px; }
:root .button.large { min-height: 44px; padding: 12px 18px; font-size: 14px; }
:root .button.small { min-height: 36px; font-size: 13px; padding: 8px 13px; }
:root .button:not(.ghost):not(.white):not(.outline):not(.dark) { background: #335fff; border-color: #335fff; color: #fff; }
:root .button:not(.ghost):not(.white):not(.outline):not(.dark):hover { background: #244ee6; border-color: #244ee6; }
:root .button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--soft-border); }
:root .button.ghost:hover { background: var(--soft); }
:root .button.white { background: #fff; color: #1e2636; border-color: #fff; }
:root .icon-button { width: 36px; height: 36px; background: transparent; color: var(--ink); border: 1px solid transparent; }
:root .icon-button:hover { background: var(--soft); }
:root .button:focus-visible, .header-search:focus-visible, .creator-tile:focus-visible, .catalog-tabs button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
:root .mobile-toggle { display: none; }
:root .section-wrap { width: min(1200px, calc(100% - 56px)); margin-inline: auto; }
.home-sidebar { position: fixed; z-index: 40; left: 0; top: var(--header-height); width: var(--rail-width); height: calc(100dvh - var(--header-height)); padding: 20px 10px; display: flex; flex-direction: column; gap: 3px; background: var(--wash); border-right: 1px solid var(--border); }
body.campus .home-sidebar { display: none; }
.home-sidebar a { padding: 11px 12px; display: flex; align-items: center; gap: 12px; min-height: 42px; border-radius: 6px; font-size: 14px; font-weight: 550; color: var(--ink); }
.home-sidebar a .icon { width: 20px; height: 20px; flex-shrink: 0; }
.home-sidebar a:hover, .home-sidebar a.active { background: var(--soft); }
.home-sidebar a.active { font-weight: 750; }
.rail-divider { height: 1px; background: var(--border); margin: 15px 10px; }
.rail-label { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .07em; margin: 0 12px 8px; }
.rail-bottom { margin-top: auto; display: grid; gap: 9px; padding: 18px 12px 4px; }
.rail-bottom span { font-size: 14px; line-height: 1.5; font-weight: 650; }
.rail-bottom small { color: var(--muted); font-size: 11px; }
.rail-bottom .text-button { font-size: 11px; margin-top: 8px; text-align: left; color: var(--muted); }
.home-page-head { padding-top: 29px; display: flex; align-items: center; justify-content: space-between; }
.home-page-head h2 { font-size: 27px; font-weight: 750; letter-spacing: -.5px; }
.home-page-head>span { color: var(--muted); font-size: 13px; }
:root .hero { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; padding: 27px 0 32px; min-height: 0; }
:root .hero-copy { padding: 25px 18px 25px 0; text-align: left; }
:root .hero h1 { font-size: clamp(35px, 3.7vw, 57px); line-height: 1.07; letter-spacing: -.04em; font-weight: 780; }
:root .gradient-text { color: var(--blue); background: none; -webkit-text-fill-color: currentColor; }
:root .hero-description { font-size: 16px; line-height: 1.6; max-width: 460px; margin: 20px 0 24px; color: var(--copy); }
:root .course-label { font-size: 10px; letter-spacing: .06em; color: var(--muted); margin-bottom: 20px; gap: 7px; }
:root .course-label-icon { width: 22px; height: 22px; background: var(--soft); color: var(--ink); border-radius: 5px; }
:root .hero-ctas { justify-content: start; gap: 10px; margin: 0; }
:root .hero-plan { justify-content: start; margin-top: 20px; font-size: 12px; gap: 9px; }
:root .hero-plan b { font-size: 17px; color: var(--ink); }
:root .hero-plan b span { color: var(--muted); font-size: 12px; font-weight: 500; }
:root .hero-details { margin-top: 14px; justify-content: start; gap: 14px; font-size: 12px; color: var(--muted); }
:root .hero-visual { padding: 0; width: 100%; max-width: none; margin: 0; }
:root .hero-visual::before { display: none; }
:root .studio-label { display: none; }
:root .project-window, :root .project-window:hover { transform: none; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); box-shadow: none; }
:root .window-top { height: 31px; background: var(--raised); border-bottom: 1px solid var(--border); font-size: 10px; color: var(--muted); }
:root .window-dots { gap: 4px; }
:root .window-dots i { width: 5px; height: 5px; background: var(--muted); opacity: .6; }
:root .project-toolbar { height: 43px; font-size: 13px; background: var(--surface); border-bottom: 1px solid var(--border); color: var(--ink); }
:root .project-toolbar .play-control { border-radius: 5px; background: #335fff; color: white; font-size: 11px; padding: 6px 9px; }
:root .world-viewport { height: auto; aspect-ratio: 580/360; overflow: hidden; }
:root #game-world { height: auto; width: 100%; margin-top: -5%; }
:root .world-hud { top: 13px; left: 13px; }
:root .world-instruction { bottom: 10px; font-size: 10px; max-width: calc(100% - 24px); }
:root .window-bottom { background: var(--surface); color: var(--muted); border-top: 1px solid var(--border); height: 33px; }
:root .project-caption { display: none; }
:root .tiny-pill { background: var(--soft); border-radius: 4px; color: var(--muted); font-size: 8px; }
.home-catalog { padding-block: 6px 32px; }
:root .subheading-row { margin-bottom: 16px; display: flex; gap: 16px; align-items: center; justify-content: space-between; }
:root .subheading-row h2 { font-size: 22px; letter-spacing: -.02em; font-weight: 730; }
:root .subheading-row p { color: var(--muted); font-size: 13px; }
.catalog-see-all { display: flex; align-items: center; gap: 3px; font-size: 13px; color: var(--ink); font-weight: 600; white-space: nowrap; }
.catalog-see-all .icon { width: 16px; height: 16px; }
.home-module-shelf { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.creator-tile { display: block; min-width: 0; color: var(--ink); border-radius: 9px; transition: transform .16s; }
.creator-tile:hover { transform: translateY(-3px); }
.creator-tile:hover .module-thumbnail { filter: brightness(1.07); }
.creator-tile h3 { color: var(--ink); font-size: 16px; line-height: 1.35; margin: 10px 0 6px; font-weight: 700; letter-spacing: -.01em; }
.tile-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 11px; color: var(--muted); line-height: 1.5; }
.tile-meta>span { display: inline-flex; gap: 4px; align-items: center; }
.tile-meta .icon { width: 12px; height: 12px; }
.tile-progress { margin-top: 9px; display: grid; gap: 6px; font-size: 11px; color: var(--muted); }
:root .tile-progress .progress-track { height: 3px; margin: 0; background: var(--soft); }
.module-thumbnail { position: relative; width: 100%; aspect-ratio: 1/1; overflow: hidden; border-radius: 9px; isolation: isolate; background: linear-gradient(135deg, #415ecc, #204196); }
.module-thumbnail .tile-art { position: absolute; inset: 4% -6% 0; height: 91%; width: 112%; filter: drop-shadow(0 9px 7px #0002); }
.thumb-grid { position: absolute; inset: 0; background-image: linear-gradient(#ffffff0c 1px, transparent 1px), linear-gradient(90deg, #ffffff0c 1px, transparent 1px); background-size: 21% 21%; transform: rotate(-12deg) scale(1.35); }
.thumb-number { position: absolute; top: 9px; left: 10px; font-size: 11px; font-weight: 700; color: #fff; background: #0003; padding: 3px 6px; border-radius: 4px; line-height: 1.2; }
.thumb-caption { position: absolute; left: 12px; right: 10px; bottom: 11px; color: #fff; font-size: clamp(8px,.85vw,12px); font-weight: 800; line-height: 1.2; letter-spacing: .03em; text-shadow: 0 1px 3px #0004; }
.art-2 { background: linear-gradient(135deg,#1e927d,#19665f); }
.art-3 { background: linear-gradient(135deg,#287acf,#154193); }
.art-4 { background: linear-gradient(135deg,#8256c3,#44318b); }
.art-5 { background: linear-gradient(135deg,#2c8c82,#1c585d); }
.art-6 { background: linear-gradient(135deg,#b17b41,#754c2f); }
.art-7 { background: linear-gradient(135deg,#666ac7,#333b84); }
.art-8 { background: linear-gradient(135deg,#a25478,#6f3556); }
.art-9 { background: linear-gradient(135deg,#408eaa,#204e6c); }
:root .stats-strip { background: transparent; border-color: var(--border); }
:root .stats-inner { padding-block: 20px; }
:root .stats-inner strong { color: var(--ink); font-size: 23px; }
:root .stats-inner>div>span:not(.stats-icon) { color: var(--muted); font-size: 12px; }
:root .stats-inner>div { border-color: var(--border); }
:root .stats-icon { background: var(--soft); color: var(--ink); width: 32px; height: 32px; }
:root .section-space { padding-block: 56px; }
:root .section-heading { gap: 30px; margin-bottom: 28px; }
:root .section-heading h2, :root .pricing-intro h2, :root .faq-section h2 { font-size: 34px; line-height: 1.16; letter-spacing: -.025em; color: var(--ink); }
:root .section-heading p { color: var(--copy); font-size: 15px; line-height: 1.65; }
:root .eyebrow { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .065em; }
:root .learning-step, :root .path-intro, :root .pricing-card, :root .level-showcase { background: var(--surface); border: 1px solid var(--border); border-radius: 9px; box-shadow: none; }
:root .learning-step { padding: 24px; }
:root .learning-step h3 { color: var(--ink); font-size: 18px; }
:root .learning-step p { color: var(--copy); font-size: 14px; line-height: 1.6; }
:root .step-block { background: var(--soft); color: var(--blue); border-radius: 8px; }
:root .module-row { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; }
:root .module-row[open] { background: var(--surface); }
:root .module-row summary { gap: 14px; padding: 13px 10px; color: var(--ink); }
:root .module-row summary .module-thumbnail { flex: 0 0 58px; height: 58px; width: 58px; border-radius: 6px; }
:root .module-row summary .module-number { display: none; }
:root .module-row summary .thumb-number, :root .module-row summary .thumb-caption { display: none; }
:root .module-row summary .tile-art { inset: 3% -6% 0; height: 100%; }
:root .module-row h3 { color: var(--ink); font-size: 16px; }
:root .module-row summary small { color: var(--muted); font-size: 12px; }
:root .module-expanded p, :root .path-intro p, :root .pricing-intro p, :root .faq-list p { color: var(--copy); }
:root .progress-section { border-block: 1px solid var(--border); border-inline: 0; border-radius: 0; box-shadow: none; background: var(--surface); }
:root .progress-section h2 { color: var(--ink); }
:root .bottom-cta { margin-block: 12px 36px; border-radius: 10px; background: #284bc0; }
:root .site-footer { padding-block: 26px; border-top: 1px solid var(--border); }
:root body.campus .site-footer { margin-left: calc(var(--rail-width) + 32px); width: calc(100% - var(--rail-width) - 64px); }
:root .footer-bottom, :root .footer-top { color: var(--muted); }

/* Classroom */
:root .campus-shell, :root .lesson-route .campus-shell { display: grid; grid-template-columns: var(--rail-width) minmax(0,1fr); max-width: none; margin: 0; }
:root .campus-sidebar, :root .lesson-route .campus-sidebar { width: var(--rail-width); position: sticky; top: var(--header-height); height: calc(100dvh - var(--header-height)); max-height: none; background: var(--wash); padding: 20px 10px 12px; border-right: 1px solid var(--border); border-bottom: 0; overflow-y: auto; z-index: 25; backdrop-filter: none; }
:root .sidebar-nav { flex-direction: column; display: flex; gap: 3px; width: 100%; overflow: visible; min-width: 0; justify-content: flex-start; }
:root .sidebar-nav a, :root .lesson-route .sidebar-nav a { display: flex; flex-direction: row; justify-content: flex-start; align-items: center; gap: 10px; padding: 10px 11px; min-height: 41px; border-radius: 6px; font-size: 13px; color: var(--ink); }
:root .sidebar-nav a span { display: inline; white-space: normal; }
:root .sidebar-nav a .icon { width: 19px; height: 19px; flex-shrink: 0; }
:root .sidebar-nav a.active, :root .sidebar-nav a.active:hover, :root .sidebar-nav a:hover { background: var(--soft); color: var(--ink); }
:root .sidebar-nav a.active { font-weight: 750; }
.sidebar-profile { display: flex; align-items: center; gap: 9px; margin: 0 8px 23px; min-width: 0; }
.sidebar-avatar { width: 35px; height: 35px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--soft); color: var(--ink); }
.sidebar-profile b { display: block; font-size: 13px; max-width: 105px; overflow: hidden; text-overflow: ellipsis; }
.sidebar-profile small { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
:root .sidebar-bottom { display: block; margin-top: auto; padding-top: 20px; }
:root .sidebar-xp { padding: 13px; border: 1px solid var(--border); background: var(--surface); border-radius: 8px; box-shadow: none; }
:root .sidebar-xp b { color: var(--ink); }
:root .sidebar-preview { color: var(--muted); font-size: 10px; }
:root .level-square { color: var(--blue); background: var(--sky); width: 28px; height: 28px; font-size: 14px; }
:root .campus-content, :root .lesson-route .campus-content { padding: 30px clamp(20px,3vw,48px) 50px; width: 100%; max-width: 1470px; margin-inline: auto; }
:root .page-title { color: var(--ink); font-size: 29px; font-weight: 750; letter-spacing: -.025em; }
:root .page-head { margin-bottom: 23px; }
:root .page-intro { color: var(--copy); font-size: 14px; max-width: 740px; }
:root .page-eyebrow { margin-bottom: 9px; }
:root .notice { background: var(--surface); border: 1px solid var(--border); color: var(--copy); border-radius: 7px; font-size: 12px; }
:root .notice b { color: var(--ink); }
:root .dashboard-hero { grid-template-columns: 1fr 270px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; color: var(--ink); margin-bottom: 18px; }
:root .dashboard-hero>div:first-child { padding: 28px; }
:root .dashboard-hero .eyebrow { color: var(--muted); margin-bottom: 12px; font-size: 9px; }
:root .dashboard-hero h2 { font-size: 25px; color: var(--ink); }
:root .dashboard-hero p { color: var(--copy); font-size: 13px; margin: 12px 0 18px; max-width: 530px; line-height: 1.6; }
:root .dashboard-hero .button { font-size: 13px; background: #335fff; color: white; border-color: #335fff; }
.continue-art { padding: 16px; display: flex; justify-content: flex-end; align-items: center; }
.continue-art .module-thumbnail { height: 215px; width: 100%; max-width: 250px; aspect-ratio: auto; }
:root .metric-cards { gap: 15px; margin-bottom: 30px; }
:root .metric-card { background: var(--surface); box-shadow: none; border: 1px solid var(--border); border-radius: 8px; padding: 16px 20px; min-height: 110px; }
:root .metric-card strong { color: var(--ink); font-size: 26px; }
:root .metric-card>span { color: var(--muted); font-size: 12px; }
:root .metric-card>.icon { color: var(--blue); background: var(--sky); border-radius: 6px; }
.catalog-tabs { display: flex; gap: 8px; margin-bottom: 20px; overflow-x: auto; padding: 2px 2px 4px; }
.catalog-tabs button { background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: 6px; padding: 8px 16px; min-height: 36px; font: inherit; font-size: 13px; white-space: nowrap; cursor: pointer; }
.catalog-tabs button.active { background: var(--ink); color: var(--surface); border-color: var(--ink); font-weight: 650; }
:root .creator-catalog { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 26px 18px; margin-bottom: 30px; }
:root .creator-catalog .creator-tile { background: transparent; }
:root .creator-catalog .module-thumbnail { aspect-ratio: 1.15/1; }
:root .creator-catalog .thumb-caption { font-size: 11px; }
:root .onboarding-strip, :root .trial-prompt { background: var(--surface); border: 1px solid var(--border); box-shadow: none; border-radius: 8px; }
:root .campus-card, :root .lesson-card, :root .lesson-outline { border-radius: 9px; box-shadow: none; background: var(--surface); border-color: var(--border); }
:root .lesson-body { color: var(--copy); }
:root .lesson-body p { font-size: 15px; line-height: 1.8; }
:root .lesson-body :is(h2,h3,h4) { color: var(--ink); }
:root .pill, :root .tiny-pill { border-radius: 4px; }
:root .field input, :root .field select, :root .field textarea { color: var(--ink); background: var(--wash); border: 1px solid var(--border); border-radius: 6px; }

/* Search */
:root #app-dialog { border: 1px solid var(--border); background: var(--surface); color: var(--ink); border-radius: 12px; max-height: calc(100dvh - 40px); }
:root #app-dialog::backdrop { background: #080b168f; backdrop-filter: blur(4px); }
:root #dialog-title { color: var(--ink); letter-spacing: -.03em; }
.course-search-field { display: flex; gap: 10px; align-items: center; padding: 10px 13px; border: 1px solid var(--soft-border); background: var(--wash); border-radius: 7px; margin-top: 21px; }
.course-search-field input { min-width: 0; width: 100%; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 14px; outline-offset: 3px; }
.course-search-field .icon { width: 19px; height: 19px; color: var(--muted); }
.search-results { margin-top: 12px; max-height: min(430px,50dvh); overflow-y: auto; }
.search-result { display: flex; gap: 12px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--border); color: var(--ink); }
.search-result:hover { background: var(--soft); }
.search-result .module-thumbnail { flex: 0 0 48px; height: 48px; width: 48px; border-radius: 6px; }
.search-result .thumb-number, .search-result .thumb-caption { display: none; }
.search-result>span { flex: 1; }
.search-result b { display: block; font-size: 13px; line-height: 1.4; }
.search-result small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.search-result>.icon { width: 15px; height: 15px; }
.search-empty { padding: 24px 0; color: var(--muted); }

/* Staff workspace */
.staff-nav-label { display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .06em; border-top: 1px solid var(--border); margin: 17px 9px 7px; padding-top: 17px; }
.staff-nav-label .icon { width: 11px; height: 11px; }
.staff-session-bar { display: flex; gap: 9px; align-items: center; font-size: 12px; color: var(--copy); background: var(--sky); padding: 11px 15px; border-radius: 7px; margin-bottom: 22px; }
.staff-session-bar>.icon { width: 17px; height: 17px; flex-shrink: 0; color: var(--blue); }
.staff-session-bar .text-button { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: var(--blue); font-size: 12px; font-weight: 650; white-space: nowrap; }
.staff-session-bar .text-button .icon { height: 14px; width: 14px; }
:root .staff-lock-card { width: min(460px,100%); padding: 30px; }
.staff-lock-emblem { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; color: var(--blue); background: var(--sky); margin-bottom: 20px; }
.staff-lock-emblem .icon { width: 28px; height: 28px; }
.staff-lock-card h2 { font-size: 24px; color: var(--ink); }
.staff-lock-card>p { font-size: 14px; color: var(--copy); line-height: 1.65; margin: 12px 0 24px; }
.staff-lock-card form { display: grid; gap: 12px; }
.staff-lock-card>.text-button { display: block; text-align: center; margin-top: 20px; font-size: 13px; color: var(--muted); }

/* Responsive */
@media (min-width:1700px) { :root { --rail-width: 204px; } .home-sidebar a { font-size: 15px; } :root .creator-catalog { grid-template-columns: repeat(5,minmax(0,1fr)); } }
@media (max-width:1240px) { :root .nav-wrap { gap: 17px; } :root .main-nav { gap: 16px; font-size: 14px; } .header-search { max-width: 260px; } .header-search kbd { display: none; } .home-module-shelf { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px 15px; } .home-module-shelf .module-thumbnail { aspect-ratio: 1.3/1; } :root .creator-catalog { grid-template-columns: repeat(3,minmax(0,1fr)); } :root .hero h1 { font-size: 40px; } :root .hero-description { font-size: 14px; } :root .hero-ctas { flex-wrap: wrap; } }
@media (max-width:1040px) { :root { --rail-width: 164px; } :root .main-nav { display: none; } :root .header-search { max-width: none; } :root .hero { gap: 18px; } :root .hero-copy { padding-right: 0; } :root .hero h1 { font-size: 36px; } :root .section-wrap { width: calc(100% - 40px); } :root .hero-ctas .button { font-size: 12px; padding: 10px 12px; } :root .hero-details { gap: 10px; font-size: 10px; } .sidebar-profile { gap: 7px; } .sidebar-profile b { max-width: 83px; } :root .sidebar-nav a { font-size: 12px; gap: 9px; } :root .dashboard-hero { grid-template-columns: 1fr 205px; } }
@media (max-width:780px) { :root { --rail-width: 0px; --header-height: 60px; } .home-sidebar { display: none; } :root .site-header { margin-left: 0; } :root .brand { font-size: 23px; gap: 7px; } :root .brand-mark { width: 27px; height: 27px; } :root .nav-wrap { gap: 12px; } :root .nav-actions { gap: 8px; } :root .header-search { width: 34px; flex: 0 0 34px; min-width: 0; background: transparent; border: 0; padding: 8px; margin-left: auto; } .header-search span { display: none; } :root .nav-actions { margin-left: 0; } :root .nav-enroll .icon { display: none; } :root .nav-login { font-size: 12px; } :root .nav-enroll { font-size: 12px; padding: 7px 10px; } :root .theme-toggle { width: 30px; height: 30px; } :root .campus-shell, :root .lesson-route .campus-shell { grid-template-columns: 1fr; display: block; } :root .campus-sidebar, :root .lesson-route .campus-sidebar { width: 100%; height: auto; position: sticky; top: var(--header-height); padding: 7px 14px; background: var(--surface); border-right: 0; border-bottom: 1px solid var(--border); overflow-x: auto; } .sidebar-profile { display: none; } :root .sidebar-nav { flex-direction: row; width: max-content; min-width: 100%; gap: 5px; } :root .sidebar-nav a, :root .lesson-route .sidebar-nav a { flex-direction: row; padding: 8px 10px; min-height: 35px; font-size: 12px; } :root .sidebar-nav a .icon { width: 16px; height: 16px; } :root .sidebar-nav a span { white-space: nowrap; } .staff-nav-label { align-self: center; margin: 0 4px 0 10px; padding: 7px 0 7px 13px; border-top: 0; border-left: 1px solid var(--border); white-space: nowrap; } :root .sidebar-bottom { display: none; } :root .campus-content, :root .lesson-route .campus-content { padding: 25px 20px 40px; } :root body.campus .site-footer { margin-left: 20px; width: calc(100% - 40px); } :root .hero { padding-block: 15px 30px; } :root .hero h1 { font-size: 37px; } :root .course-label { font-size: 9px; } :root .hero-description { font-size: 14px; } :root .hero-plan { flex-wrap: wrap; font-size: 11px; } :root .hero-details { display: none; } :root .creator-catalog { grid-template-columns: repeat(3,minmax(0,1fr)); } .thumb-caption { font-size: 11px; } .home-module-shelf { grid-template-columns: repeat(3,minmax(0,1fr)); } .hero-visual .world-hud .hud-caption { display: none; } }
@media (max-width:600px) { :root .hero { grid-template-columns: 1fr; gap: 20px; } :root .hero-copy { padding: 13px 0 0; } :root .hero h1 { font-size: clamp(37px,9vw,49px); } :root .hero-description { font-size: 15px; max-width: 450px; margin: 17px 0 20px; } :root .hero-ctas { gap: 9px; } :root .hero-ctas .button { min-height: 42px; font-size: 13px; padding: 10px 15px; } :root .hero-visual { max-width: 500px; margin: 0; } :root .hero-plan { margin-top: 16px; } :root .course-label { margin-bottom: 14px; } .home-page-head { padding-top: 23px; } .home-page-head h2 { font-size: 24px; } .home-page-head>span { font-size: 11px; } .home-module-shelf { display: flex; gap: 13px; overflow-x: auto; padding-bottom: 13px; scroll-snap-type: x mandatory; } .home-module-shelf .creator-tile { flex: 0 0 158px; scroll-snap-align: start; } .home-module-shelf .module-thumbnail { aspect-ratio: 1/1; } .creator-tile h3 { font-size: 14px; } .tile-meta { font-size: 10px; gap: 7px; } :root .subheading-row h2 { font-size: 20px; } :root .subheading-row p { display: none; } :root .dashboard-hero { grid-template-columns: 1fr; } :root .dashboard-hero>div:first-child { padding: 23px; } .continue-art { display: none; } :root .dashboard-hero h2 { font-size: 24px; } :root .metric-cards { gap: 8px; } :root .metric-card { padding: 13px 10px; min-height: 110px; } :root .metric-card strong { font-size: 24px; } :root .metric-card>span { font-size: 10px; } :root .metric-card>.icon { width: 24px; height: 24px; } :root .creator-catalog { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 14px; } :root .creator-catalog .module-thumbnail { aspect-ratio: 1/1; } :root .creator-catalog .thumb-caption { font-size: 9px; } :root .section-space { padding-block: 38px; } :root .section-heading h2, :root .pricing-intro h2, :root .faq-section h2 { font-size: 30px; } :root .campus-content, :root .lesson-route .campus-content { padding: 24px 16px 40px; } :root .page-title { font-size: 27px; } :root .staff-lock-card { padding: 24px; } .staff-session-bar { font-size: 10px; align-items: flex-start; } .staff-session-bar .text-button { font-size: 11px; } :root .nav-login { display: none; } :root .nav-enroll { display: inline-flex; } :root .nav-wrap { width: calc(100% - 24px); margin-inline: 12px; gap: 8px; } :root .hero-visual .world-hud .hud-caption { display: inline; } :root .section-wrap { width: calc(100% - 32px); } }
@media (max-width:360px) { :root .brand { font-size: 21px; gap: 5px; } :root .brand-mark { width: 23px; height: 23px; } :root .nav-actions { gap: 5px; } :root .nav-enroll { font-size: 11px; padding: 7px 9px; } :root .header-search { flex-basis: 28px; width: 28px; padding: 5px; } :root .hero-plan { gap: 7px; } :root .creator-catalog { gap: 20px 10px; } :root .creator-catalog .thumb-caption { font-size: 8px; } }
@media (prefers-reduced-motion: reduce) { .creator-tile, .module-thumbnail { transition: none; } .creator-tile:hover { transform: none; } }

/* Shared surfaces override earlier themes */
html:root[data-theme] .site-header { background: var(--surface); }
html:root[data-theme] .campus-sidebar { background: var(--wash); }
html:root[data-theme] .sidebar-nav a { color: var(--ink); }
html:root[data-theme] .sidebar-nav a.active { color: var(--ink); background: var(--soft); }
html:root[data-theme] .dashboard-hero { background: var(--surface); color: var(--ink); border-color: var(--border); }
html:root[data-theme] .dashboard-hero h2 { color: var(--ink); }
html:root[data-theme] .dashboard-hero p, html:root[data-theme] .dashboard-hero .eyebrow { color: var(--copy); }
html:root[data-theme] .dashboard-hero .button { background: #335fff; color: #fff; border-color: #335fff; }
html:root[data-theme] .field :is(input,textarea,select) { background: var(--wash); border-color: var(--soft-border); color: var(--ink); }
html:root[data-theme] .site-header .brand-mark { background: #335fff; }
html:root[data-theme] .button:not(.ghost):not(.white):not(.outline):not(.dark) { background: #335fff; border-color: #335fff; color: #fff; }
html:root[data-theme] .button.ghost { background: transparent; color: var(--ink); border-color: var(--soft-border); }
html:root[data-theme] .project-toolbar, html:root[data-theme] .window-bottom { background: var(--surface); color: var(--copy); }
html:root[data-theme] .window-top { background: var(--raised); color: var(--muted); }
html:root[data-theme] .module-row h3 { color: var(--ink); }
html:root[data-theme] .page-title, html:root[data-theme] .section-heading h2 { color: var(--ink); }
@media(max-width:780px) { html:root[data-theme] .campus-sidebar { background: var(--surface); } }
:root[data-theme="dark"] :is(.site-header, .campus-sidebar, .main-nav.open) { background: var(--surface); border-color: var(--border); }
:root[data-theme="dark"] :is(.sidebar-nav a.active, .sidebar-nav a.active:hover, .outline-lesson.active) { background: var(--soft); color: var(--ink); }
:root[data-theme="dark"] :is(.field input, .field textarea, .field select) { background: var(--wash); color: var(--ink); border-color: var(--soft-border); }
:root[data-theme="dark"] .dialog-notice, :root[data-theme="dark"] .notice { background: var(--raised); color: var(--copy); border-color: var(--border); }

html:root[data-theme] .gradient-text { background: none; color: var(--blue); -webkit-text-fill-color: currentColor; }
