:root {
  color-scheme: light;
  --bg: #f6f6f2;
  --surface: #fff;
  --ink: #242635;
  --muted: #6d7283;
  --line: #e9e9ed;
  --sidebar: #181c30;
  --purple: #7760d1;
  --purple-dark: #6247bd;
  --purple-soft: #f0ebfc;
  --mint: #dff2e8;
  --radius: 18px;
  --sidebar-width: 248px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  font-size: 15px;
  line-height: 1.55;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--bg); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button, a, input, textarea, summary { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: wait; opacity: .6; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea { background: #fff; color: var(--ink); border: 1px solid #dcdde5; border-radius: 9px; padding: 12px 14px; min-width: 0; }
input::placeholder, textarea::placeholder { color: #8b8f9c; }
textarea { width: 100%; resize: vertical; min-height: 90px; line-height: 1.7; }
input:focus, textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px #7760d11a; }
:focus-visible { outline: 3px solid #977fde; outline-offset: 3px; }
input:focus-visible, textarea:focus-visible { outline: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 650; letter-spacing: -.035em; line-height: 1.25; }
h1 { font-size: clamp(27px, 2.55vw, 36px); margin-bottom: 10px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
p { margin-bottom: 1em; }
svg.icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 300; padding: 12px 18px; background: #fff; border-radius: 8px; color: var(--purple); box-shadow: 0 2px 12px #0003; }
.skip-link:focus { top: 12px; }
.noscript { position: fixed; inset: 20px; z-index: 301; padding: 20px; background: #fff; }
.boot-screen { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; color: var(--muted); }
.boot-mark { display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 22px; border-radius: 19px; background: var(--purple); color: #fff; font-size: 23px; font-weight: 750; box-shadow: 0 10px 30px #7760d12b; }
.app-layout { min-height: 100vh; }
.sidebar { width: var(--sidebar-width); position: fixed; inset: 0 auto 0 0; z-index: 40; background: var(--sidebar); color: #bfc2d1; padding: 34px 19px 20px; display: flex; flex-direction: column; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 11px; margin: 0 10px; color: #fff; font-size: 24px; letter-spacing: -.07em; font-weight: 750; line-height: 1; }
.brand-mark { width: 43px; height: 43px; display: inline-grid; place-items: center; border-radius: 12px; background: #9987e9; color: #fff; box-shadow: inset 0 1px 0 #ffffff26; }
.brand-mark .icon { width: 27px; height: 27px; stroke-width: 1.7; }
.brand-sub { display: block; margin-top: 5px; font-size: 10px; letter-spacing: .24em; font-weight: 500; color: #c5c8dc; }
.sidebar-course { font-size: 10px; letter-spacing: -.012em; margin: 27px 6px 35px; white-space: nowrap; color: #939bb9; }
.tiny-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #b5e3d1; margin-right: 5px; vertical-align: 2px; }
.nav-group-label { margin: 12px 13px 12px; color: #727d9c; font-size: 10px; font-weight: 650; letter-spacing: .11em; }
.nav-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 13px; border-radius: 9px; margin: 4px 0; font-size: 12px; font-weight: 550; transition: background .15s, color .15s; }
.nav-item svg { width: 18px; height: 18px; color: #858fad; }
.nav-item:hover { background: #ffffff0a; color: #fff; }
.nav-item.active { background: #32304b; color: #d9ccff; }
.nav-item.active .icon { color: #bc9cf8; }
.nav-indicator { height: 5px; width: 5px; border-radius: 50%; background: #b6a0ee; margin-left: auto; }
.sidebar nav .nav-group-label:not(:first-child) { margin-top: 28px; }
.sidebar-bottom { margin-top: auto; padding-top: 42px; }
.reference-card { display: flex; align-items: center; gap: 9px; padding: 14px 12px; border: 1px solid #35394d; border-radius: 10px; color: #d7dae6; font-size: 10px; margin-bottom: 23px; }
.reference-card:hover { border-color: #6d6096; background: #ffffff05; }
.reference-card > .icon:first-child { color: #bcabd7; width: 18px; height: 18px; }
.reference-card > .icon:last-child { width: 14px; height: 14px; margin-left: auto; color: #8b93ad; }
.reference-card small { display: block; color: #858ba5; font-size: 9px; margin-top: 4px; }
.sidebar-note { text-align: center; margin-top: 24px; color: #747e9b; font-size: 9px; }
.main-shell { margin-left: var(--sidebar-width); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { height: 80px; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 0 42px; border-bottom: 1px solid #e9e9e7; background: #fafaf7; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 15px; }
.topbar-label { font-size: 11px; font-weight: 600; color: #7c7e8e; }
.topbar-label-short { display: none; font-size: 13px; font-weight: 650; }
.topbar-right { gap: 10px; }
.topbar-right .button-ghost { font-size: 12px; }
.user-role { font-size: 11px; color: #868999; padding-right: 4px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px; font-size: 12px; font-weight: 550; }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e3e1ec; color: #655d80; font-size: 11px; font-weight: 650; flex-shrink: 0; }
.avatar-light { background: #efebf7; color: #766299; }
.avatar-large { width: 75px; height: 75px; font-size: 25px; margin-bottom: 18px; }
.main-content { width: 100%; max-width: 1520px; margin: 0 auto; padding: 38px 42px 55px; outline: none; flex: 1; }
.page-footer { display: flex; justify-content: space-between; gap: 20px; margin: auto 42px 0; border-top: 1px solid #e5e5e7; padding: 24px 0; font-size: 10px; color: #9395a0; }
.page-footer a:hover { color: var(--purple); }
.footer-dot { margin: 0 7px; }
.eyebrow { color: #92939e; font-size: 9px; font-weight: 750; letter-spacing: .13em; margin-bottom: 8px; line-height: 1.5; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 28px; }
.page-heading .eyebrow { color: #9092a0; }
.page-description { font-size: 13px; color: var(--muted); line-height: 1.8; margin: 0; max-width: 690px; }
.heading-actions { flex-shrink: 0; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; border-radius: 9px; border: 1px solid transparent; padding: 12px 17px; font-size: 12px; font-weight: 600; white-space: nowrap; min-height: 43px; transition: background .15s, box-shadow .15s, transform .15s; line-height: 1.4; }
.button .icon { height: 17px; width: 17px; }
.button-primary { background: var(--purple); color: #fff; box-shadow: 0 3px 7px #6d56bb13; }
.button-primary:hover { background: var(--purple-dark); box-shadow: 0 3px 10px #6d56bb24; }
.button-secondary { background: #fff; border-color: #dedee7; color: #545668; }
.button-secondary:hover { border-color: #ada1d3; background: #fbf9ff; }
.button-ghost { color: #72638a; background: transparent; }
.button-ghost:hover { background: #eeebf5; }
.button-small { font-size: 11px; min-height: 35px; padding: 9px 12px; }
.button-full { width: 100%; }
.icon-button { height: 33px; width: 33px; border: 0; background: transparent; border-radius: 7px; display: inline-flex; justify-content: center; align-items: center; color: #868694; flex-shrink: 0; }
.icon-button:hover { background: #f0ecf8; color: var(--purple); }
.icon-button .icon { width: 18px; height: 18px; }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 5px; padding: 5px 8px; font-size: 10px; line-height: 1.25; font-weight: 550; white-space: nowrap; }
.badge .icon { width: 13px; height: 13px; }
.badge-outline { border: 1px solid #dddde3; color: #92939e; background: transparent; font-size: 9px; letter-spacing: .02em; }
.badge-mint { background: #e4f3ec; color: #39785c; }
.badge-violet { background: #f0eafb; color: #7a5caf; }
.badge-rose { background: #fbeae9; color: #aa525c; }
.badge-amber { background: #faf0db; color: #9c7634; }
.badge-neutral { background: #f1f1f4; color: #888997; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.welcome-hero { min-height: 290px; display: flex; justify-content: space-between; align-items: center; position: relative; overflow: hidden; padding: 31px 34px; background: #efedf6; border: 1px solid #e9e5f1; border-radius: 19px; margin-bottom: 23px; }
.hero-copy { position: relative; z-index: 2; max-width: 560px; }
.hero-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; background: #fff9; color: #9486b7; border-radius: 5px; font-size: 8px; letter-spacing: .08em; font-weight: 650; margin-bottom: 18px; }
.hero-pill .icon { width: 12px; height: 12px; }
.welcome-hero h2 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.25; letter-spacing: -.035em; margin-bottom: 12px; }
.welcome-hero h2 span { color: #8c74bb; }
.welcome-hero .hero-copy > p { max-width: 415px; color: #858194; font-size: 11px; line-height: 1.85; margin-bottom: 20px; }
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-text-link { color: #7c6b9b; font-size: 11px; font-weight: 550; padding: 6px 0; }
.hero-text-link:hover { text-decoration: underline; }
.hero-footnote { display: flex; align-items: center; gap: 9px; color: #9c91b1; font-size: 9px; margin-top: 19px; }
.hero-footnote .tiny-dot { background: #aba0c4; margin: 0; width: 4px; height: 4px; }
.hero-art { width: 260px; height: 265px; position: absolute; right: 30px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.orbit { position: absolute; border: 1px solid #c8bfdd; border-radius: 50%; opacity: .7; }
.orbit-one { width: 180px; height: 180px; top: 40px; left: 44px; }
.orbit-two { width: 250px; height: 250px; top: 5px; left: 9px; border-style: dashed; opacity: .35; }
.art-chip { position: absolute; left: 85px; top: 90px; width: 95px; height: 95px; background: linear-gradient(150deg, #a994d2, #8f76bc); transform: rotate(-11deg); border-radius: 22px; color: #eee9f8; box-shadow: 0 15px 22px #9280b12b, inset 0 1px 0 #ffffff77; display: grid; place-items: center; }
.art-chip .icon { height: 48px; width: 48px; stroke-width: 1.6; }
.art-tile { position: absolute; display: grid; place-items: center; height: 56px; width: 56px; border-radius: 15px; background: #fff; box-shadow: 0 5px 13px #82709512; color: #9581b5; }
.art-tile .icon { width: 25px; height: 25px; }
.tile-globe { left: 32px; top: 39px; transform: rotate(-10deg); background: #fff9; }
.tile-data { right: 2px; top: 79px; transform: rotate(12deg); color: #75a78d; background: #e6f1e7; }
.tile-camera { left: 39px; bottom: 24px; transform: rotate(9deg); color: #c5977e; background: #f9eee3; }
.art-dot { width: 7px; height: 7px; border-radius: 50%; position: absolute; background: #c7b8de; }
.dot-one { left: 181px; top: 21px; }
.dot-two { right: 23px; bottom: 43px; width: 5px; height: 5px; }
.art-plus { position: absolute; font-size: 25px; color: #c6bada; font-weight: 300; }
.plus-one { left: 6px; top: 139px; }
.plus-two { left: 174px; bottom: 11px; font-size: 18px; }
.dashboard-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0 34px; }
.progress-summary, .next-summary { display: flex; align-items: center; gap: 17px; padding: 20px 23px; min-width: 0; }
.progress-summary > .icon-button, .next-summary > .icon-button { margin-left: auto; }
.progress-summary .eyebrow, .next-summary .eyebrow { font-size: 8px; margin-bottom: 5px; }
.progress-summary h3, .next-summary h3 { font-size: 15px; margin-bottom: 5px; letter-spacing: -.015em; }
.progress-summary p:not(.eyebrow), .next-summary p:not(.eyebrow) { font-size: 10px; color: #9a98a4; margin-bottom: 0; }
.progress-ring { --progress: 0%; width: 61px; height: 61px; background: conic-gradient(#a18bcf var(--progress), #eee9f7 0); border-radius: 50%; position: relative; display: grid; place-items: center; flex-shrink: 0; }
.progress-ring::before { content: ''; position: absolute; inset: 5px; background: #fff; border-radius: 50%; }
.progress-ring span { position: relative; font-size: 19px; font-weight: 650; color: #8065b5; letter-spacing: -.03em; }
.progress-ring small { font-size: 9px; margin-left: 1px; }
.next-icon { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 12px; color: #89a495; background: #edf6ee; flex-shrink: 0; }
.feature-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; padding: 21px 12px; margin: 0 0 30px; }
.feature-strip > div { display: flex; align-items: center; gap: 13px; }
.feature-strip .icon { width: 26px; height: 26px; color: #a394b4; stroke-width: 1.3; }
.feature-strip strong { font-size: 11px; font-weight: 550; display: block; color: #656274; }
.feature-strip small { font-size: 9px; color: #a29daa; display: block; margin-top: 3px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 19px; margin-top: 30px; }
.section-heading h2 { font-size: 20px; margin-bottom: 0; }
.section-heading .eyebrow { font-size: 8px; margin-bottom: 5px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: #9c88bd; font-weight: 550; }
.text-link .icon { width: 15px; height: 15px; }
.text-link:hover { color: var(--purple-dark); }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.accent-violet { --accent: #9983c0; --accent-soft: #f2edf8; --accent-line: #e1d9ee; }
.accent-blue { --accent: #7e9db9; --accent-soft: #eef3f8; --accent-line: #d9e5f0; }
.accent-rose { --accent: #c090aa; --accent-soft: #faf0f4; --accent-line: #eddce5; }
.accent-mint { --accent: #78a18b; --accent-soft: #edf5ed; --accent-line: #daeadd; }
.accent-amber { --accent: #b6a077; --accent-soft: #f8f4e9; --accent-line: #ebe1ca; }
.accent-cyan { --accent: #7da4a9; --accent-soft: #eef5f5; --accent-line: #d8e7e8; }
.accent-peach { --accent: #c39b7f; --accent-soft: #f9f1e9; --accent-line: #efdfd2; }
.module-card { padding: 21px 21px 18px; background: #fff; border: 1px solid #e9e8eb; border-radius: 15px; transition: border .15s, transform .15s, box-shadow .15s; display: flex; flex-direction: column; min-height: 258px; }
.module-card:hover { border-color: var(--accent-line); transform: translateY(-3px); box-shadow: 0 9px 18px #181c3007; }
.module-card-top { display: flex; justify-content: space-between; align-items: start; margin-bottom: 17px; }
.module-icon { width: 45px; height: 45px; display: inline-grid; place-items: center; border-radius: 12px; background: var(--accent-soft, #f2edf8); color: var(--accent, #9983c0); flex-shrink: 0; }
.module-icon .icon { width: 23px; height: 23px; stroke-width: 1.5; }
.module-number { font-size: 11px; color: #d0cad7; font-weight: 600; letter-spacing: -.02em; padding-top: 2px; }
.module-card h3 { font-size: 15px; line-height: 1.4; letter-spacing: -.017em; margin-bottom: 7px; }
.module-card > p { color: #a09baa; font-size: 10px; line-height: 1.7; margin-bottom: 15px; min-height: 34px; }
.module-meta { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; color: #a7a1b0; font-size: 9px; margin-bottom: 4px; }
.module-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.module-meta .icon { width: 12px; height: 12px; }
.module-progress { margin-top: auto; padding-top: 22px; }
.module-progress > div:first-child { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; font-size: 9px; color: #a9a2b1; }
.module-progress strong { color: var(--accent); font-size: 9px; font-weight: 650; }
.progress-track { overflow: hidden; height: 4px; background: #f0eef3; border-radius: 5px; width: 100%; }
.progress-track > span { display: block; height: 100%; background: var(--accent, #a78ccf); border-radius: inherit; transition: width .3s; }
.module-preview { margin-top: auto; padding-top: 21px; display: flex; justify-content: space-between; align-items: center; color: var(--accent); font-size: 10px; }
.module-preview .icon { width: 15px; height: 15px; }
.learning-note { display: flex; align-items: start; gap: 14px; padding: 24px 4px 0; color: #9b95a7; font-size: 10px; line-height: 1.8; }
.learning-note > .icon { color: #aca0c2; width: 21px; height: 21px; flex-shrink: 0; margin-top: 3px; }
.learning-note p { margin-bottom: 0; max-width: 740px; }
.learning-note strong { color: #81768f; font-weight: 550; }
.catalogue-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 27px; }
.search-field { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid #e4e3e8; border-radius: 9px; padding: 0 13px; flex: 1; max-width: 390px; }
.search-field .icon { width: 17px; height: 17px; color: #a5a0b1; }
.search-field input { border: 0; box-shadow: none; padding: 12px 0; width: 100%; background: transparent; font-size: 11px; }
.search-field:focus-within { border-color: #a68aca; box-shadow: 0 0 0 3px #7760d110; }
.filter-tabs { display: flex; padding: 4px; border-radius: 9px; background: #eeedf1; gap: 3px; flex-wrap: wrap; }
.filter-tabs > button { border: 0; padding: 8px 12px; border-radius: 6px; background: transparent; color: #a09aa9; font-size: 10px; font-weight: 550; }
.filter-tabs > button:hover { color: #796886; }
.filter-tabs > button.selected { background: #fff; color: #817096; box-shadow: 0 1px 4px #291c4010; }
.filter-tabs > button > span { display: inline-block; margin-left: 4px; border-radius: 4px; background: #e9e4f0; padding: 0 4px; font-size: 9px; }
.info-banner { display: flex; gap: 16px; padding: 24px; border-radius: 12px; border: 1px solid #e5e2ee; background: #f0edf5; margin-top: 29px; color: #8e849d; font-size: 12px; }
.info-banner > .icon { color: #a995c0; margin-top: 3px; }
.info-banner p { margin-bottom: 0; line-height: 1.8; font-size: 11px; }
.info-banner strong { display: block; font-weight: 600; margin-bottom: 5px; color: #776589; }
.info-banner .text-link { margin-top: 10px; }
.back-link { display: inline-flex; gap: 7px; align-items: center; color: #9d92ae; font-size: 11px; margin-bottom: 26px; }
.back-link:hover { color: var(--purple); }
.back-link .icon { width: 15px; height: 15px; }
.arrow-back { transform: rotate(180deg); }
.module-heading { display: flex; align-items: start; gap: 22px; margin-bottom: 20px; }
.module-icon-large { width: 74px; height: 74px; border-radius: 19px; margin-top: 2px; }
.module-icon-large .icon { width: 37px; height: 37px; }
.module-heading h1 { margin-bottom: 10px; }
.module-heading > div > p:not(.eyebrow) { color: #8e889a; font-size: 13px; line-height: 1.9; max-width: 730px; margin-bottom: 13px; }
.module-heading .module-meta { font-size: 10px; }
.module-layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 28px; }
.lesson-list { display: flex; flex-direction: column; gap: 13px; }
.lesson-row { display: flex; align-items: center; gap: 19px; background: #fff; padding: 23px; border: 1px solid #e9e7ee; border-radius: 13px; transition: border-color .15s, box-shadow .15s; }
.lesson-row:hover { border-color: #cfc3e0; box-shadow: 0 3px 10px #44345708; }
.lesson-order { width: 35px; height: 35px; display: grid; place-items: center; flex-shrink: 0; border-radius: 9px; color: #b1a0c1; background: #f6f2fa; font-size: 11px; font-weight: 600; }
.lesson-complete .lesson-order { color: #75a186; background: #edf6ed; }
.lesson-order .icon { width: 18px; height: 18px; }
.lesson-row-copy { min-width: 0; flex: 1; }
.lesson-row-copy strong { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; line-height: 1.6; }
.lesson-row-copy > span { display: block; color: #aba2b4; font-size: 10px; line-height: 1.7; margin-bottom: 7px; }
.lesson-row-copy small { font-size: 9px; color: #b4aabb; display: flex; align-items: center; gap: 5px; }
.lesson-row-copy small .icon { width: 11px; height: 11px; }
.lesson-row-copy small > span { margin: 0 3px; }
.lesson-row-end { display: flex; align-items: center; gap: 9px; }
.lesson-row-end > .icon { width: 15px; height: 15px; color: #c8bdd3; }
.module-targets { margin-top: 30px; padding: 24px; }
.module-targets h3 { font-size: 16px; margin-bottom: 18px; }
.check-list { padding: 0; list-style: none; margin: 0; }
.check-list li { display: flex; gap: 10px; margin: 12px 0; font-size: 12px; color: #92879f; line-height: 1.7; }
.check-list li .icon { color: #b9a9cf; width: 17px; height: 17px; margin-top: 2px; }
.module-targets .check-list li { font-size: 11px; }
.module-targets .button { margin-top: 22px; }
.module-side-progress { margin-top: 22px; }
.module-side-progress > span { display: flex; justify-content: space-between; font-size: 10px; color: #aa9bb8; margin-bottom: 8px; }
.aside-tip { display: flex; gap: 10px; padding: 20px 10px; color: #b2a7bc; font-size: 10px; }
.aside-tip > .icon { width: 15px; height: 15px; color: #bca8cc; margin-top: 3px; }
.aside-tip p { margin-bottom: 0; }
.lesson-page-heading { margin-bottom: 28px; max-width: 850px; }
.lesson-page-heading h1 { font-size: 31px; margin-bottom: 12px; }
.lesson-page-heading .module-meta { margin-top: 15px; font-size: 10px; }
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 255px; gap: 32px; }
.lesson-main { min-width: 0; }
.objectives { padding: 25px 28px; margin-bottom: 36px; background: #fdfcfe; }
.objectives h2 { font-size: 19px; margin-bottom: 14px; }
.objectives .check-list li { font-size: 12px; color: #807087; margin: 9px 0; }
.course-section { position: relative; padding-bottom: 35px; margin-bottom: 31px; border-bottom: 1px solid #e5e0ea; scroll-margin-top: 30px; }
.course-section h2 { font-size: 23px; margin-bottom: 18px; }
.course-section-number { color: #b8a3ce; background: #eee7f7; border-radius: 5px; display: inline-block; padding: 3px 7px; font-size: 10px; margin-bottom: 13px; font-weight: 600; }
.course-prose { color: #686476; font-size: 14px; line-height: 1.95; overflow-wrap: anywhere; }
.course-prose p { margin-bottom: 18px; }
.course-prose ul, .course-prose ol { padding-left: 23px; margin: 13px 0 20px; }
.course-prose li { padding-left: 4px; margin: 7px 0; }
.course-prose > :last-child { margin-bottom: 0; }
.code-block { border-radius: 10px; overflow: hidden; margin-top: 22px; background: #202337; color: #d9d6e4; font-size: 12px; }
.code-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 16px; border-bottom: 1px solid #ffffff0b; color: #9993b2; font-size: 10px; background: #282b3e; }
.code-copy { border: 0; color: #bcb0d0; background: transparent; font-size: 9px; display: flex; gap: 5px; align-items: center; padding: 3px; }
.code-copy:hover { color: #fff; }
.code-copy .icon { height: 12px; width: 12px; }
.code-block pre { margin: 0; padding: 20px; line-height: 1.85; overflow: auto; tab-size: 4; }
pre, code, .code-editor { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.keypoints { display: flex; gap: 15px; border: 1px solid #e8e0f0; border-radius: 12px; background: #f2edf8; padding: 24px; margin: 25px 0; }
.keypoints-icon { color: #af8cce; padding-top: 2px; }
.keypoints .eyebrow { color: #a28bad; }
.keypoints ul { padding-left: 18px; margin: 0; color: #8d769d; font-size: 12px; line-height: 1.9; }
.keypoints li { margin: 8px 0; }
.read-checkpoint { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 22px 0; margin: 0 0 25px; }
.read-checkpoint > div { display: flex; align-items: center; gap: 12px; }
.read-checkpoint > div > .icon { color: #a193ae; width: 22px; height: 22px; }
.read-checkpoint strong { display: block; font-size: 12px; font-weight: 600; color: #8c7a97; }
.read-checkpoint small, .read-checkpoint p { display: block; font-size: 10px; color: #b4a6bf; margin: 5px 0 0; }
.read-checkpoint .read-confirmed > .icon { color: #81ad92; }
.read-checkpoint .read-confirmed strong { color: #759881; }
.lesson-aside-inner { position: sticky; top: 22px; }
.lesson-outline { padding: 23px 19px; margin-bottom: 20px; }
.lesson-outline nav { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; }
.lesson-outline button { display: flex; align-items: baseline; gap: 9px; text-align: left; border: 0; background: transparent; color: #a392b1; font-size: 10px; padding: 8px 4px; line-height: 1.6; }
.lesson-outline button:hover { color: #85629e; background: #faf7fd; }
.lesson-outline button > span { color: #c5b7d0; font-size: 9px; width: 13px; flex-shrink: 0; }
.lesson-outline button > .icon { width: 13px; height: 13px; position: relative; top: 2px; }
.lesson-validation { padding: 23px; }
.lesson-validation h3 { font-size: 14px; color: #8a7894; margin-bottom: 18px; }
.lesson-validation p:not(.eyebrow) { color: #a594b2; font-size: 11px; line-height: 1.85; }
.lesson-validation ul { list-style: none; padding: 0; margin: 0; }
.lesson-validation li { display: flex; align-items: start; gap: 10px; margin: 17px 0; color: #b0a5ba; font-size: 11px; }
.lesson-validation li:last-child { margin-bottom: 0; }
.lesson-validation li > .icon { width: 16px; height: 16px; margin-top: 1px; }
.lesson-validation li small { display: block; font-size: 9px; color: #baadbf; margin-top: 2px; }
.lesson-validation .done { color: #8aae98; }
.lesson-quiz { padding: 29px; margin: 25px 0 35px; scroll-margin-top: 25px; }
.lesson-block-heading { display: flex; gap: 14px; margin-bottom: 24px; align-items: start; }
.lesson-block-heading h2 { font-size: 21px; margin-bottom: 6px; }
.lesson-block-heading p:not(.eyebrow) { color: #a699b1; font-size: 11px; margin-bottom: 0; line-height: 1.8; }
.block-icon { display: grid; place-items: center; width: 43px; height: 43px; flex-shrink: 0; background: #f0eafa; color: #b295d1; border-radius: 11px; margin-top: 2px; }
.block-icon .icon { width: 21px; height: 21px; }
.block-icon-mint { background: #e9f4ec; color: #8db199; }
.quiz-question { border: 0; padding: 0; margin: 28px 0; min-width: 0; }
.quiz-question legend { display: flex; align-items: start; gap: 9px; font-size: 13px; font-weight: 550; line-height: 1.8; padding: 0; margin-bottom: 12px; }
.quiz-question legend > span { color: #b5a1c6; font-size: 11px; margin-top: 2px; }
.quiz-options { display: grid; gap: 8px; }
.quiz-option { display: flex; align-items: center; gap: 10px; border: 1px solid #e9e3ee; border-radius: 8px; padding: 12px 14px; font-size: 12px; color: #8f7d9c; cursor: pointer; line-height: 1.6; }
.quiz-option:has(input:disabled) { cursor: default; }
.quiz-option:hover { border-color: #c6b0da; background: #fcf9ff; }
.quiz-option input { accent-color: var(--purple); width: 15px; height: 15px; margin: 0; cursor: inherit; }
.quiz-option:has(input:checked) { border-color: #bca1d3; background: #f8f2fc; }
.option-letter { font-size: 9px; color: #c2accf; border: 1px solid #e5daef; background: #fcf9ff; border-radius: 4px; min-width: 20px; height: 21px; display: grid; place-items: center; }
.quiz-option > .icon:last-child { margin-left: auto; width: 15px; height: 15px; }
.quiz-option.correct-option { border-color: #b8d6c2; background: #f2f9f3; color: #749784; }
.quiz-option.incorrect-option { border-color: #e2b8c5; background: #fff6f6; color: #b38291; }
.quiz-explanation { margin-top: 10px; font-size: 11px; color: #a08da9; line-height: 1.8; padding: 10px 14px; background: #f8f5fb; border-radius: 7px; }
.quiz-explanation strong { font-weight: 600; }
.quiz-explanation.correct { color: #6f9c7f; background: #f0f8f2; }
.quiz-explanation.incorrect { color: #b07f8b; background: #fcf3f5; }
.quiz-footer { display: flex; justify-content: space-between; align-items: center; gap: 13px; border-top: 1px solid #eee8f1; padding-top: 20px; }
.quiz-result { display: flex; gap: 15px; padding: 20px; border: 1px solid #e8def0; background: #f7f1fb; border-radius: 10px; color: #ad90bb; }
.quiz-result strong { display: block; font-size: 14px; margin-bottom: 5px; }
.quiz-result p { font-size: 11px; margin-bottom: 0; }
.quiz-score { font-size: 30px; font-weight: 650; letter-spacing: -.04em; line-height: 1.5; }
.quiz-score small { font-size: 12px; }
.quiz-result.result-success { color: #79a285; background: #f0f7ef; border-color: #dceadb; }
.lesson-activities { margin-top: 35px; scroll-margin-top: 25px; }
.activity-card { padding: 27px; margin-bottom: 22px; }
.activity-title { display: flex; justify-content: space-between; align-items: start; gap: 15px; margin-bottom: 20px; }
.activity-title h3 { font-size: 18px; margin-bottom: 0; }
.activity-title h3 > span { display: block; font-size: 8px; font-weight: 650; letter-spacing: .12em; margin-bottom: 7px; color: #b29cc4; }
.activity-card .course-prose { font-size: 12px; color: #9c8aa9; }
.activity-card .code-block { font-size: 11px; }
.rubric { margin: 20px 0; border: 1px solid #ebe5f0; border-radius: 9px; padding: 11px 15px; color: #ae9bbd; font-size: 11px; }
summary { cursor: pointer; font-size: 11px; color: #9c82ad; font-weight: 550; }
summary:hover { color: #735689; }
details > div { padding: 10px 0 3px; }
.rubric ul { padding-left: 18px; margin: 4px 0; line-height: 1.9; }
.field-label { display: block; color: #95809f; font-size: 11px; font-weight: 550; margin: 17px 0 7px; }
.field-hint { display: block; color: #b3a2bd; font-size: 10px; line-height: 1.8; margin: 7px 0 15px; }
.answer-field { font-size: 12px; color: #8c739b; border-color: #ded3e7; }
.python-runner, .html-runner { margin: 12px 0 17px; border: 1px solid #e6deee; border-radius: 9px; padding: 14px; background: #fbf9fe; }
.python-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.python-status { font-size: 9px; color: #807188; margin-left: auto; }
.python-inputs { margin: 12px 0 0; }
.python-input-values { font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; min-height: 65px; }
.python-output { background: #262438; color: #e1daed; border-radius: 7px; font-size: 11px; padding: 14px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 350px; overflow-y: auto; margin: 13px 0 10px; }
.python-output[hidden], .html-preview[hidden] { display: none; }
.python-hint { margin: 10px 0 0; font-size: 9px; }
.html-preview { width: 100%; height: 330px; border: 1px solid #dfd9e7; background: #fff; border-radius: 7px; margin-top: 15px; }
.code-editor { color: #5e5773; background: #fcfaff; font-size: 12px; line-height: 1.85; tab-size: 4; }
.activity-form-footer { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-top: 15px; }
.activity-form-footer .field-hint { margin: 0; max-width: 350px; font-size: 9px; }
.activity-form-footer .button { font-size: 10px; min-height: 39px; }
.teacher-feedback { display: flex; align-items: start; gap: 11px; padding: 17px 19px; background: #eff6f0; color: #91ab94; border: 1px solid #e4ede3; border-radius: 9px; margin: 20px 0; font-size: 12px; line-height: 1.85; overflow-wrap: anywhere; }
.teacher-feedback > .icon { width: 17px; height: 17px; margin-top: 3px; }
.teacher-feedback strong { font-size: 11px; display: block; margin-bottom: 5px; }
.teacher-feedback p { margin: 3px 0; }
.lesson-resources { margin-top: 30px; padding: 25px; }
.lesson-resources h2 { font-size: 17px; margin-bottom: 20px; }
.lesson-resources > div { display: flex; flex-direction: column; gap: 12px; }
.lesson-resources a { display: flex; align-items: center; gap: 10px; color: #a186b2; font-size: 12px; }
.lesson-resources a:hover { color: #735b8b; }
.lesson-resources a .icon { width: 15px; height: 15px; }
.lesson-resources a .icon:last-child { margin-left: auto; }
.lesson-navigation { display: flex; justify-content: space-between; gap: 12px; margin: 28px 0 0; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 26px 0 30px; }
.metric-card { border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 23px; position: relative; }
.metric-icon { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; margin-bottom: 14px; }
.metric-icon .icon { width: 20px; height: 20px; stroke-width: 1.5; }
.metric-icon.violet { background: #f1ecfa; color: #a48abd; }
.metric-icon.mint { background: #eaf5ee; color: #8aad98; }
.metric-icon.amber { background: #f7f3e6; color: #bfad7c; }
.metric-icon.blue { background: #edf3f8; color: #91a3b5; }
.metric-card > p { margin: 0 0 7px; color: #a195ad; font-size: 11px; }
.metric-card > strong { display: block; font-size: 31px; font-weight: 650; letter-spacing: -.04em; margin-bottom: 6px; line-height: 1.4; }
.metric-card > strong small { font-size: 13px; color: #b29fc1; font-weight: 500; }
.metric-card > span:not(.metric-icon) { font-size: 9px; color: #b6a7c1; display: block; }
.metric-link { transition: border-color .15s, box-shadow .15s; }
.metric-link:hover { border-color: #cab8df; box-shadow: 0 3px 15px #73489708; }
.progress-modules { display: grid; gap: 22px; }
.progress-module { padding: 24px; }
.progress-module-header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.progress-module-header h2 { font-size: 17px; margin: 0 0 5px; }
.progress-module-header p { font-size: 10px; color: #b5a5bf; margin: 0; }
.progress-module-header > strong { margin-left: auto; color: var(--accent); font-size: 14px; }
.table-wrap { overflow-x: auto; width: 100%; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 11px; color: #a090ab; }
thead { color: #b8a9c3; font-size: 9px; }
th, td { border-bottom: 1px solid #efe9f3; padding: 15px 12px; font-weight: 400; }
thead th { font-weight: 550; white-space: nowrap; padding-top: 22px; }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 550; color: #9c87a9; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
.progress-table tbody th { width: 43%; min-width: 190px; }
.progress-table tbody td { white-space: nowrap; }
.progress-table a:hover { color: #755187; }
.table-check { display: inline-flex; align-items: center; gap: 5px; color: #91b098; font-size: 10px; }
.table-check .icon { width: 13px; height: 13px; }
.score-good { color: #7caa8c; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 40px 22px; border: 1px dashed #e1d8e9; background: #fdfbff; border-radius: 14px; margin-bottom: 10px; }
.empty-icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; color: #b49fc6; background: #f3edf8; margin-bottom: 15px; }
.empty-icon .icon { height: 26px; width: 26px; stroke-width: 1.4; }
.empty-state h3 { font-size: 17px; color: #96809f; margin-bottom: 8px; }
.empty-state p { font-size: 12px; color: #b0a0ba; margin-bottom: 18px; max-width: 480px; margin-left: auto; margin-right: auto; }
.empty-state .button { margin-top: 3px; }
.workbook-list { display: grid; gap: 22px; }
.workbook-card { padding: 27px; }
.workbook-card-header { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.workbook-card-header h2 { font-size: 19px; margin-bottom: 7px; }
.workbook-card-header p:not(.eyebrow) { font-size: 10px; color: #b8a7c3; margin-bottom: 0; }
.workbook-card-header p > span { margin: 0 5px; }
.workbook-card-header > .badge { align-self: start; }
.submission-answer { white-space: pre-wrap; overflow-wrap: anywhere; background: #f8f5fb; border: 1px solid #eee6f4; border-radius: 9px; padding: 20px; color: #9886a8; font-size: 12px; line-height: 1.9; max-height: 500px; overflow: auto; }
.pending-message { color: #b3a2bf; font-size: 11px; display: flex; gap: 7px; align-items: center; margin: 20px 0; }
.pending-message .icon { width: 14px; height: 14px; }
.teacher-hero { min-height: 256px; }
.teacher-hero .hero-copy > p { max-width: 430px; }
.compact-reviews { padding: 6px 24px; }
.compact-review { display: flex; align-items: center; gap: 13px; padding: 18px 0; border-bottom: 1px solid #f0e9f5; }
.compact-review:last-child { border: 0; }
.compact-review strong { display: block; font-weight: 550; font-size: 12px; }
.compact-review > div > span { display: block; font-size: 10px; color: #bca9c8; margin-top: 4px; }
.compact-review-date { margin-left: auto; color: #c2b1cd; font-size: 10px; }
.compact-review > .icon { margin-left: 10px; color: #c1aed0; width: 16px; height: 16px; }
.create-class { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: 23px 26px; margin-bottom: 27px; }
.create-class > div { display: flex; align-items: center; gap: 13px; }
.create-class .metric-icon { margin-bottom: 0; }
.create-class h2 { font-size: 16px; margin: 0 0 5px; }
.create-class p { margin: 0; font-size: 10px; color: #b8a6c2; max-width: 280px; }
.create-class form, .inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.create-class input { max-width: 250px; min-width: 130px; font-size: 11px; border-color: #e4d7ed; }
.create-class .button { font-size: 10px; }
.classes-list { display: grid; gap: 28px; }
.class-card { overflow: hidden; }
.class-header { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 25px 28px; border-bottom: 1px solid #efe7f4; }
.class-header > div { display: flex; align-items: center; gap: 13px; }
.class-icon { width: 43px; height: 43px; border-radius: 12px; color: #b9a1ce; background: #f3edf9; display: grid; place-items: center; }
.class-header h2 { font-size: 18px; margin-bottom: 5px; }
.class-header p { font-size: 10px; color: #bba9c6; margin-bottom: 0; }
.class-code { border: 1px dashed #d5c3e3; background: #fbf8ff; display: flex; align-items: center; gap: 18px; border-radius: 8px; padding: 10px 13px; color: #b49bc6; font-size: 8px; letter-spacing: .07em; text-align: left; }
.class-code strong { display: block; font-size: 16px; color: #9d7cb6; margin-top: 3px; letter-spacing: .1em; }
.class-code .icon { width: 14px; height: 14px; }
.class-code:hover { background: #f4ebff; border-color: #b897d0; }
.class-card .table-wrap { padding: 0 28px 12px; }
.class-card .empty-state { border: 0; background: transparent; margin: 0; }
.student-name { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.student-name .avatar { width: 29px; height: 29px; font-size: 9px; }
.student-name small { display: block; font-size: 9px; color: #c5b0d0; margin-top: 3px; font-weight: 400; }
.table-progress { width: 110px; font-size: 10px; color: #b498c5; }
.table-progress span { display: block; margin-bottom: 6px; }
.table-progress .progress-track span { margin: 0; }
.students-table td { white-space: nowrap; }
.review-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 25px; }
.review-list { display: grid; gap: 26px; }
.review-card { padding: 28px; }
.review-card-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.review-student { display: flex; align-items: center; gap: 10px; }
.review-student strong { font-size: 12px; font-weight: 550; display: block; }
.review-student > div > span { font-size: 9px; color: #c3add0; margin-top: 3px; display: block; }
.review-card h2 { font-size: 20px; margin-bottom: 20px; }
.review-card .submission-answer { margin-top: 7px; }
.expected-answer { padding: 13px 16px; border-radius: 9px; background: #f5f7f0; border: 1px solid #e8eddf; margin: 20px 0; }
.expected-answer summary { color: #99aa8e; }
.expected-answer .course-prose { font-size: 12px; color: #a2ad96; }
.review-card textarea { border-color: #e5d6ee; font-size: 12px; color: #a38ab5; }
.review-actions { display: flex; justify-content: end; gap: 10px; margin-top: 15px; }
.admin-section { padding: 28px; margin-bottom: 25px; }
.admin-section h2 { font-size: 19px; margin-bottom: 11px; }
.admin-section > p { font-size: 12px; color: #b5a0c4; max-width: 770px; line-height: 1.9; }
.inline-form { margin: 22px 0 9px; }
.inline-form input { font-size: 12px; border-color: #e7d7f1; max-width: 330px; flex: 1; }
.copy-token { background: #faf5fe; border: 1px dashed #d9c1e9; border-radius: 6px; color: #b193c7; padding: 5px 8px; font-size: 10px; display: inline-flex; gap: 7px; align-items: center; word-break: break-all; }
.copy-token .icon { width: 12px; height: 12px; }
.muted { color: #b7a1c5; }
.account-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 26px; align-items: start; max-width: 940px; }
.account-profile { padding: 29px; text-align: center; }
.account-profile h2 { font-size: 20px; margin-bottom: 8px; }
.account-profile > p:not(.field-hint) { color: #b09bbc; font-size: 12px; }
.account-profile hr { border: 0; border-top: 1px solid #efe5f4; margin: 22px 0 17px; }
.account-profile .field-hint { text-align: left; }
.account-password { padding: 30px; }
.account-password h2 { font-size: 20px; margin-bottom: 12px; }
.account-password > p { font-size: 12px; color: #b7a0c6; }
.account-password input { width: 100%; border-color: #e5d1f0; font-size: 13px; }
.account-password .button { margin-top: 22px; }
.account-settings { display: grid; gap: 23px; }
.account-data { padding: 28px; }
.account-data h2 { font-size: 20px; }
.account-data h3 { font-size: 16px; margin-bottom: 12px; }
.account-data p { font-size: 12px; color: #826f8f; line-height: 1.9; }
.account-data hr { border: 0; border-top: 1px solid #e9e3ef; margin: 24px 0; }
.button-danger { background: #fff2f4; border-color: #e7b8c5; color: #a1556c; }
.button-danger:hover { background: #ffe8ef; border-color: #c992a3; }
.delete-confirmation { display: flex; align-items: start; gap: 10px; margin: 21px 0; color: #92749f; font-size: 11px; line-height: 1.8; }
.delete-confirmation input { width: 16px; height: 16px; margin-top: 3px; accent-color: #a76d89; flex-shrink: 0; }
.dialog-actions { display: flex; gap: 9px; justify-content: end; flex-wrap: wrap; }
.dialog-actions .button { font-size: 10px; }
.help-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.help-card { padding: 28px; }
.help-card h2 { font-size: 21px; margin-bottom: 18px; }
.help-card h3 { font-size: 15px; margin: 23px 0 10px; }
.help-card > p { font-size: 12px; color: #9d8ba8; line-height: 1.95; }
.help-steps { padding-left: 20px; margin: 0; color: #b9a3c8; }
.help-steps > li { padding-left: 5px; margin-bottom: 20px; font-size: 12px; }
.help-steps > li:last-child { margin-bottom: 0; }
.help-steps strong { display: block; color: #a286b3; font-weight: 550; margin-bottom: 6px; }
.help-steps p { color: #b6a0c5; font-size: 11px; line-height: 1.9; margin: 0; }
.login-prompt { text-align: center; max-width: 580px; padding: 50px 30px; margin: 30px auto; }
.login-prompt h2 { font-size: 23px; margin-bottom: 12px; }
.login-prompt p { color: #b3a0c1; font-size: 12px; max-width: 350px; margin: 0 auto 25px; }
.login-prompt .button { margin: 6px; }
.loading-card { display: flex; align-items: center; gap: 15px; color: #b6a0c4; padding: 40px 20px; font-size: 13px; }
.spinner { display: inline-block; height: 21px; width: 21px; border: 2px solid #eadcf2; border-top-color: #c8a4dc; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-screen { padding: 45px; }
.error-screen h1 { font-size: 25px; margin-bottom: 17px; }
.error-screen p { color: #ab8bbd; font-size: 13px; margin-bottom: 25px; }
dialog { border: 1px solid #e5dced; border-radius: 18px; background: #fff; color: var(--ink); max-width: min(470px, calc(100% - 32px)); width: 470px; padding: 34px; box-shadow: 0 20px 90px #13122540; max-height: calc(100dvh - 40px); overflow-y: auto; }
dialog::backdrop { background: #1415288f; backdrop-filter: blur(3px); }
.dialog-close { position: absolute; right: 14px; top: 13px; }
.dialog-brand { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 28px; font-size: 17px; color: #7f659a; letter-spacing: -.025em; }
.dialog-brand .brand-mark { width: 34px; height: 34px; border-radius: 9px; }
.dialog-brand .brand-mark .icon { width: 22px; height: 22px; }
dialog h2 { font-size: 25px; margin-bottom: 10px; }
dialog > p, .dialog-intro { font-size: 12px; color: #ad97bd; line-height: 1.9; }
.dialog-intro { margin-bottom: 22px; }
.auth-tabs { display: flex; border-bottom: 1px solid #e9dcf1; margin-bottom: 19px; gap: 22px; }
.auth-tabs button { background: transparent; border: 0; padding: 0 0 11px; font-size: 12px; color: #bca6cc; border-bottom: 2px solid transparent; }
.auth-tabs button.active { border-color: #b28acd; color: #956bb0; font-weight: 600; }
dialog input { width: 100%; font-size: 13px; border-color: #e3d0ee; }
dialog .button-full { margin-top: 22px; }
.teacher-registration { margin-top: 20px; padding: 0 0 10px; border-bottom: 1px solid #eee3f5; }
.teacher-registration summary { font-size: 11px; }
.auth-footer { font-size: 9px; color: #baa3c8; margin: 23px 0 0; line-height: 1.9; }
.auth-footer .icon { width: 12px; height: 12px; margin-right: 3px; }
.auth-footer a { text-decoration: underline; color: #a77fbd; white-space: nowrap; }
.form-error { font-size: 12px; background: #fff2f3; color: #b25b71; padding: 12px 14px; border-radius: 8px; margin: 14px 0; line-height: 1.7; }
.form-error[hidden] { display: none; }
.copy-fallback { font-size: 12px; min-height: 110px; margin: 10px 0 20px; }
.toasts { position: fixed; right: 22px; bottom: 22px; z-index: 200; display: grid; gap: 9px; max-width: min(420px, calc(100% - 35px)); pointer-events: none; }
.toast { background: #34304d; color: #ede6f5; border: 1px solid #534461; border-radius: 10px; padding: 14px 18px; font-size: 12px; box-shadow: 0 5px 20px #27203422; animation: toast-in .15s ease-out; line-height: 1.8; }
.toast-error { background: #fff3f5; color: #bb647c; border-color: #eac1cf; }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.mobile-menu, .sidebar-scrim { display: none; }

/* Keep small text and control labels readable against their backgrounds. */
.module-card > p, .module-meta, .module-progress > div:first-child, .page-description,
.progress-summary p:not(.eyebrow), .next-summary p:not(.eyebrow), .feature-strip small,
.page-footer, .learning-note, .catalogue-toolbar input, .lesson-row-copy > span,
.lesson-row-copy small, .module-side-progress > span, .aside-tip, .lesson-outline button,
.lesson-validation li, .lesson-validation li small, .lesson-block-heading p:not(.eyebrow),
.activity-card .course-prose, .field-hint, .pending-message, .metric-card > p,
.metric-card > span:not(.metric-icon), .progress-module-header p, .compact-review > div > span,
.compact-review-date, .create-class p, .class-header p, .student-name small,
.review-student > div > span, .admin-section > p, .muted, .account-profile > p:not(.field-hint),
.account-password > p, .login-prompt p, .dialog-intro, dialog > p, .auth-footer,
.workbook-card-header p:not(.eyebrow) { color: #7a7184; }
.eyebrow { color: #797080; }
.hero-copy > p, .welcome-hero .hero-copy > p { color: #716a80; }
.hero-footnote { color: #80738f; }
.hero-pill { color: #806693; }
.hero-text-link, .text-link { color: #806197; }
.feature-strip strong { color: #6a5c75; }
.badge-neutral { color: #747080; }
.badge-outline { color: #716979; }
.filter-tabs > button { color: #81738b; }
.filter-tabs > button.selected { color: #695478; }
.check-list li, .module-heading > div > p:not(.eyebrow) { color: #766580; }
.quiz-option { color: #766180; }
.quiz-question legend { color: #574760; }
.quiz-explanation { color: #7c6587; }
.quiz-explanation.correct { color: #427953; }
.quiz-explanation.incorrect { color: #9a5264; }
.quiz-result.result-success { color: #4e7b59; }
.quiz-result.result-retry { color: #866197; }
.keypoints .eyebrow { color: #876195; }
.keypoints ul { color: #79518c; }
.read-checkpoint strong { color: #76607f; }
.read-checkpoint small, .read-checkpoint p { color: #8a7795; }
.read-checkpoint .read-confirmed strong { color: #557a60; }
.teacher-feedback { color: #52735b; }
.field-label { color: #765985; }
.answer-field, .review-card textarea { color: #695573; }
.submission-answer { color: #72617f; }
table { color: #776283; }
thead { color: #8a729a; }
tbody th { color: #6f567d; }
.table-progress { color: #7a5c8b; }
.table-check, .score-good { color: #548166; }
.lesson-validation .done { color: #538261; }
.info-banner { color: #80658e; }
.info-banner strong { color: #6a4979; }
.expected-answer summary, .expected-answer .course-prose { color: #657b55; }
.empty-state h3 { color: #7c5d88; }
.empty-state p { color: #90799d; }
.help-card > p, .help-steps p { color: #7b6389; }
.help-steps strong { color: #705080; }
.class-code { color: #9370a8; }
.class-code strong { color: #79558d; }
.copy-token { color: #84599b; }
.account-profile .field-hint { color: #826b90; }
.auth-tabs button { color: #93769f; }
.auth-tabs button.active { color: #7a508c; }
.auth-footer a { color: #77518a; }

@media (min-width: 1600px) {
  :root { --sidebar-width: 272px; }
  .sidebar { padding-left: 25px; padding-right: 25px; }
  .main-content { padding: 45px 58px 65px; }
  .topbar { padding: 0 58px; }
  .page-footer { margin-left: 58px; margin-right: 58px; }
  .hero-copy { max-width: 650px; }
  .hero-art { right: 65px; }
  .welcome-hero { padding: 40px; min-height: 310px; }
  .module-card { padding: 25px; }
  .module-card h3 { font-size: 17px; }
  .module-card > p { font-size: 12px; }
  .module-meta { font-size: 10px; }
}
@media (max-width: 1220px) {
  :root { --sidebar-width: 220px; }
  .sidebar { padding: 30px 14px 20px; }
  .sidebar-course { font-size: 9px; margin-left: 5px; }
  .nav-item { padding: 12px 11px; font-size: 11px; }
  .topbar { padding: 0 28px; }
  .main-content { padding: 32px 28px 45px; }
  .page-footer { margin-left: 28px; margin-right: 28px; }
  .hero-art { right: 4px; opacity: .8; width: 240px; transform: translateY(-50%) scale(.85); transform-origin: right center; }
  .hero-copy { max-width: calc(100% - 155px); }
  .welcome-hero .hero-copy > p { max-width: 390px; }
  .module-grid { gap: 15px; }
  .module-card { padding: 18px; }
  .module-meta { gap: 8px; }
  .module-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; }
  .lesson-layout { grid-template-columns: minmax(0, 1fr) 220px; gap: 22px; }
  .lesson-aside .card { padding: 20px 17px; }
  .lesson-row { padding: 19px; gap: 13px; }
  .lesson-row-end .badge { display: none; }
  .create-class { flex-direction: column; align-items: stretch; }
  .create-class > div p { max-width: none; }
  .create-class input { max-width: none; flex: 1; }
  .hero-footnote { font-size: 8px; gap: 6px; }
  .read-checkpoint { flex-direction: column; align-items: stretch; }
  .read-checkpoint .button { align-self: start; }
  .activity-form-footer { flex-direction: column; gap: 13px; }
  .activity-form-footer .field-hint { max-width: none; }
}
@media (max-width: 1000px) {
  .topbar-label { max-width: 240px; font-size: 10px; }
  .desktop-badge { display: none; }
  .user-role { display: none; }
  .welcome-hero { padding: 27px; }
  .welcome-hero h2 { font-size: 25px; }
  .hero-art { opacity: .6; right: -20px; transform: translateY(-50%) scale(.75); }
  .hero-copy { max-width: calc(100% - 100px); }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-summary { gap: 15px; }
  .progress-summary, .next-summary { padding: 17px; gap: 10px; }
  .progress-ring { width: 48px; height: 48px; }
  .progress-ring span { font-size: 16px; }
  .progress-summary h3, .next-summary h3 { font-size: 13px; }
  .progress-summary .icon-button, .next-summary .icon-button { display: none; }
  .feature-strip { gap: 15px; padding-left: 0; padding-right: 0; }
  .feature-strip > div { gap: 8px; }
  .feature-strip .icon { width: 20px; height: 20px; }
  .feature-strip strong { font-size: 10px; }
  .feature-strip small { font-size: 8px; }
  .catalogue-toolbar { flex-direction: column; align-items: stretch; }
  .search-field { max-width: none; }
  .filter-tabs { align-self: start; }
  .module-layout { grid-template-columns: 1fr; }
  .module-layout > aside { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 20px; }
  .module-targets { margin-top: 5px; }
  .lesson-layout { grid-template-columns: 1fr; }
  .lesson-aside { grid-row: 1; }
  .lesson-aside-inner { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .lesson-outline { margin-bottom: 0; }
  .lesson-validation li { margin: 12px 0; }
  .lesson-validation ul { margin: 0; }
  .lesson-page-heading h1 { font-size: 28px; }
  .metric-card { padding: 20px; }
  .metric-card > p { font-size: 10px; }
  .metric-card > strong { font-size: 27px; }
  .metric-card > span:not(.metric-icon) { font-size: 8px; }
  .page-heading { align-items: start; flex-direction: column; gap: 17px; }
  .heading-actions .button { min-height: 37px; padding: 9px 12px; font-size: 10px; }
  .account-layout { grid-template-columns: 225px minmax(0, 1fr); gap: 20px; }
  .account-profile, .account-password { padding: 24px; }
  .help-layout { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  :root { --sidebar-width: 248px; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; padding: 33px 19px 20px; }
  .sidebar-course { font-size: 10px; }
  .nav-item { font-size: 12px; }
  .main-shell { margin-left: 0; }
  .topbar { height: 67px; padding: 0 24px; }
  .topbar-label { display: none; }
  .topbar-label-short { display: inline; }
  .mobile-menu { display: inline-flex; margin-left: -5px; }
  .topbar-left { gap: 8px; }
  .topbar-right { gap: 6px; }
  .topbar-right .button { font-size: 10px; padding: 10px 12px; min-height: 36px; }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 35; border: 0; background: #17192d8c; }
  .menu-open .sidebar { transform: translateX(0); }
  .menu-open .sidebar-scrim { display: block; }
  .menu-open { overflow: hidden; }
  .main-content { padding: 28px 24px 40px; }
  .page-footer { margin-left: 24px; margin-right: 24px; }
  .hero-art { right: 17px; opacity: .9; transform: translateY(-50%) scale(.85); }
  .hero-copy { max-width: calc(100% - 150px); }
  .welcome-hero h2 { font-size: 25px; }
  .hero-footnote { flex-wrap: wrap; }
  .module-card { padding: 22px; }
  .module-card h3 { font-size: 16px; }
  .module-card > p { font-size: 11px; }
  .module-meta { font-size: 10px; }
  .module-grid { gap: 18px; }
  .dashboard-summary { margin-bottom: 28px; }
  .progress-summary, .next-summary { padding: 20px; }
  .progress-summary h3, .next-summary h3 { font-size: 14px; }
  .feature-strip { gap: 20px; }
  .feature-strip strong { font-size: 11px; }
  .feature-strip small { font-size: 9px; }
}
@media (max-width: 580px) {
  .main-content { padding: 25px 18px 35px; }
  .topbar { padding: 0 16px; }
  .topbar-right .button-ghost { padding-left: 5px; padding-right: 5px; }
  .topbar-right .button-small { padding: 9px 10px; font-size: 9px; }
  .topbar-label-short { font-size: 11px; }
  .user-name { display: none; }
  .topbar-left { gap: 5px; }
  .page-heading { margin-bottom: 23px; }
  h1 { font-size: 28px; }
  .page-description { font-size: 12px; }
  .welcome-hero { padding: 26px 24px; min-height: 300px; }
  .hero-copy { max-width: 100%; }
  .hero-art { right: -81px; top: 25px; opacity: .2; transform: scale(.7); z-index: 0; transform-origin: center; }
  .hero-copy .hero-pill { font-size: 7px; }
  .welcome-hero h2 { font-size: 27px; line-height: 1.3; }
  .welcome-hero .hero-copy > p { font-size: 11px; max-width: 325px; }
  .hero-actions { gap: 15px; }
  .hero-actions .button { font-size: 11px; padding: 12px 15px; }
  .hero-text-link { font-size: 10px; }
  .hero-footnote { font-size: 8px; }
  .dashboard-summary { grid-template-columns: 1fr; gap: 13px; margin: 20px 0 26px; }
  .progress-summary, .next-summary { padding: 20px; }
  .progress-summary > .icon-button, .next-summary > .icon-button { display: flex; }
  .progress-ring { width: 57px; height: 57px; }
  .progress-ring span { font-size: 19px; }
  .feature-strip { grid-template-columns: 1fr; gap: 17px; padding: 5px 5px 13px; }
  .feature-strip .icon { width: 23px; height: 23px; }
  .feature-strip > div { gap: 13px; }
  .section-heading { align-items: start; gap: 15px; }
  .section-heading h2 { font-size: 19px; }
  .section-heading .text-link { font-size: 9px; white-space: nowrap; padding-top: 3px; }
  .section-heading .text-link .icon { width: 12px; height: 12px; }
  .module-grid { grid-template-columns: 1fr; gap: 16px; }
  .module-card { min-height: 230px; padding: 23px; }
  .module-card h3 { font-size: 17px; }
  .module-card > p { font-size: 11px; min-height: 0; }
  .module-card-top { margin-bottom: 16px; }
  .module-meta { gap: 15px; }
  .module-progress { padding-top: 22px; }
  .module-preview { padding-top: 18px; }
  .learning-note { font-size: 10px; }
  .page-footer { margin: auto 18px 0; font-size: 8px; gap: 8px; }
  .page-footer > span { max-width: 180px; }
  .filter-tabs { width: 100%; }
  .filter-tabs > button { padding: 9px 10px; flex: 1; font-size: 9px; }
  .info-banner { padding: 20px; font-size: 11px; }
  .info-banner p { font-size: 10px; }
  .module-heading { gap: 14px; }
  .module-icon-large { width: 51px; height: 51px; border-radius: 14px; }
  .module-icon-large .icon { width: 27px; height: 27px; }
  .module-heading h1 { font-size: 25px; }
  .module-heading .eyebrow { font-size: 7px; }
  .module-heading > div > p:not(.eyebrow) { font-size: 11px; }
  .module-layout > aside { grid-template-columns: 1fr; gap: 0; }
  .lesson-row { gap: 12px; padding: 18px 16px; }
  .lesson-order { width: 30px; height: 30px; font-size: 10px; }
  .lesson-row-copy strong { font-size: 12px; }
  .lesson-row-copy > span { font-size: 10px; }
  .lesson-row-copy small { font-size: 8px; flex-wrap: wrap; }
  .lesson-row-end { gap: 0; }
  .lesson-row-end > .icon { width: 12px; height: 12px; }
  .module-targets { margin-top: 10px; padding: 24px; }
  .lesson-page-heading h1 { font-size: 27px; }
  .lesson-aside-inner { grid-template-columns: 1fr; gap: 14px; }
  .lesson-outline { display: none; }
  .lesson-validation ul { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .lesson-validation li { margin: 0; font-size: 11px; }
  .lesson-validation h3 { margin-bottom: 15px; }
  .lesson-layout { gap: 20px; }
  .objectives { padding: 22px; margin-bottom: 30px; }
  .objectives h2 { font-size: 18px; }
  .course-section h2 { font-size: 21px; }
  .course-prose { font-size: 13px; line-height: 1.95; }
  .course-section { padding-bottom: 27px; margin-bottom: 26px; }
  .code-block { font-size: 11px; }
  .code-block pre { padding: 17px; }
  .keypoints { padding: 20px; gap: 12px; }
  .keypoints ul { font-size: 11px; }
  .lesson-quiz { padding: 22px; }
  .lesson-block-heading { gap: 11px; }
  .lesson-block-heading h2 { font-size: 20px; }
  .block-icon { width: 36px; height: 36px; border-radius: 10px; }
  .block-icon .icon { width: 19px; height: 19px; }
  .quiz-question legend { font-size: 12px; }
  .quiz-option { font-size: 11px; gap: 8px; padding: 11px; }
  .quiz-option .option-letter { display: none; }
  .quiz-explanation { padding: 10px 12px; font-size: 10px; }
  .quiz-footer { flex-direction: column; align-items: stretch; }
  .quiz-footer .text-link { align-self: center; }
  .quiz-result { gap: 12px; padding: 16px; }
  .quiz-result p { font-size: 10px; }
  .quiz-result strong { font-size: 12px; }
  .quiz-score { font-size: 25px; }
  .activity-card { padding: 22px; }
  .activity-title h3 { font-size: 17px; }
  .activity-title .badge { font-size: 8px; padding: 5px 6px; }
  .activity-card .course-prose { font-size: 11px; }
  .activity-form-footer .button { align-self: stretch; white-space: normal; }
  .lesson-navigation .button { font-size: 10px; padding: 10px 12px; min-height: 40px; white-space: normal; }
  .metric-grid { grid-template-columns: 1fr; gap: 13px; }
  .metric-card { padding: 21px; }
  .metric-card .metric-icon { position: absolute; right: 21px; top: 20px; margin: 0; width: 41px; height: 41px; }
  .metric-card > p { font-size: 11px; }
  .metric-card > strong { font-size: 32px; }
  .metric-card > span:not(.metric-icon) { font-size: 10px; }
  .progress-module { padding: 20px; }
  .progress-module-header { gap: 10px; }
  .progress-module-header .module-icon { width: 38px; height: 38px; border-radius: 10px; }
  .progress-module-header .module-icon .icon { width: 20px; height: 20px; }
  .progress-module-header h2 { font-size: 15px; }
  .progress-module-header > strong { font-size: 12px; white-space: nowrap; }
  .progress-table { font-size: 10px; }
  .progress-table tbody th { min-width: 160px; }
  .empty-state { padding: 30px 20px; }
  .empty-state h3 { font-size: 16px; }
  .empty-state p { font-size: 11px; }
  .empty-state .button { font-size: 11px; }
  .workbook-card { padding: 23px; }
  .workbook-card-header { gap: 12px; }
  .workbook-card-header h2 { font-size: 17px; }
  .workbook-card-header .badge { font-size: 8px; }
  .submission-answer { padding: 16px; font-size: 11px; }
  .teacher-feedback { font-size: 11px; padding: 16px; }
  .teacher-hero { min-height: 280px; }
  .compact-reviews { padding: 4px 20px; }
  .compact-review-date { display: none; }
  .compact-review .icon:last-child { margin-left: auto; }
  .create-class { padding: 23px; }
  .create-class > div { gap: 10px; }
  .create-class form { flex-direction: column; }
  .class-header { padding: 21px; align-items: start; }
  .class-header h2 { font-size: 16px; }
  .class-icon { display: none; }
  .class-code { gap: 7px; padding: 8px 9px; font-size: 7px; }
  .class-code strong { font-size: 14px; letter-spacing: .03em; }
  .class-code .icon { width: 12px; height: 12px; }
  .class-card .table-wrap { padding: 0 21px 9px; }
  .students-table { font-size: 10px; }
  .review-toolbar { align-items: stretch; flex-direction: column; }
  .review-toolbar .button-ghost { align-self: end; min-height: 27px; padding: 2px; }
  .review-card { padding: 24px; }
  .review-card h2 { font-size: 18px; }
  .review-actions { gap: 8px; }
  .review-actions .button { font-size: 11px; padding: 11px 12px; }
  .admin-section { padding: 24px; }
  .admin-section .inline-form { flex-direction: column; }
  .inline-form input { max-width: none; }
  .admin-section .button { font-size: 10px; }
  .account-layout { grid-template-columns: 1fr; }
  .account-profile { padding: 27px; }
  .account-password { padding: 25px; }
  .help-card { padding: 25px; }
  .help-card h2 { font-size: 20px; }
  dialog { padding: 27px; }
  dialog h2 { font-size: 23px; }
  .dialog-brand { margin-bottom: 26px; }
  .toasts { right: 16px; bottom: 16px; }
  .toast { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .sidebar, .topbar, .page-footer, .lesson-aside, .lesson-navigation, .read-checkpoint, .lesson-quiz, .activity-form-footer, .toasts, .back-link, button { display: none !important; }
  .main-shell { margin-left: 0; }
  .main-content { padding: 0; }
  .lesson-layout { display: block; }
  .card, .course-section { break-inside: avoid; }
  body { background: #fff; }
  .code-block { background: #f5f5f5; color: #222; }
  a { text-decoration: underline; }
}
