/* Know IITU — editorial learning workspace. Local vectors, system fonts, finite motion. */
:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px; color: #253b33; background: #f5f3ed;
  --bg: #f5f3ed; --panel: #fffefb; --ink: #253b33; --muted: #69746b;
  --line: #dddfd5; --green: #203e35; --lime: #dcecaa; --soft: #edf0e5;
  --shadow: 0 24px 70px #183e3524; --ease: cubic-bezier(.2,.7,.2,1);
  -webkit-font-smoothing: antialiased;
}
::selection { background: #dcecaa; color: #203e35; }
h1 { font-size: clamp(30px, 3.1vw, 44px); font-weight: 550; letter-spacing: -1.7px; }
h2, h3 { font-weight: 600; }
h1:focus, .content:focus { outline: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [contenteditable]:focus-visible { outline: 2px solid #648344; outline-offset: 4px; }
.eyebrow { font: 10px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 1.5px; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 120; padding: 12px 18px; color: var(--green); background: var(--lime); transform: translateY(-180%); border-radius: 6px; }
.skip-link:focus { transform: none; }

/* Navigation */
.sidebar { width: 224px; padding: 32px 18px 22px; background: #19382f; color: #f5f5e9; border: 0; overflow-y: auto; }
.main { margin-left: 224px; }
.brand { gap: 10px; font-size: 29px; font-weight: 600; padding: 0 9px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 40px; height: 43px; border-radius: 3px 12px 3px 3px; font-family: Georgia, serif; font-size: 34px; background: var(--lime); color: var(--green); }
.brand small { font-size: 8px; letter-spacing: 2.3px; margin-top: 1px; }
.sidebar .brand small, .sidebar .muted { color: #b1c3b5; }
.workspace { margin: 34px 8px 22px; padding: 22px 0; border: 0; border-top: 1px solid #ffffff21; border-bottom: 1px solid #ffffff21; border-radius: 0; background: transparent; gap: 11px; }
.workspace-icon { padding: 0; background: transparent; color: #d1dfba; }
.workspace-icon svg { width: 21px; height: 21px; }
.workspace .tiny { margin-top: 4px; font-size: 10px; }
.nav-label { padding: 10px 13px 15px; color: #9caf9f; font-size: 9px; }
.nav { gap: 5px; }
.nav a { min-height: 45px; font-size: 12px; padding: 12px 14px; gap: 12px; border-radius: 7px; color: #c1d0c4; transition: background-color 150ms, color 150ms; }
.nav a svg { width: 17px; height: 17px; stroke-width: 1.5; }
.nav a:hover { background: #ffffff10; color: #fff; }
.nav a.active { background: var(--lime); color: #233d2d; font-weight: 650; }
.nav a.active svg { color: inherit; }
.nav a.active::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin-left: auto; flex-shrink: 0; }
.sidebar-bottom { padding-top: 35px; }
.help-card { border: 1px solid #ffffff25; background: transparent; border-radius: 8px; padding: 18px; margin: 0 4px 22px; }
.help-card > svg { color: var(--lime); width: 24px; height: 24px; }
.help-card p { font-size: 12px; margin: 18px 0 8px; font-weight: 500; }
.help-card a { color: #c0d3af; display: inline-flex; align-items: center; min-height: 30px; }
.user-bar { border-color: #ffffff25; padding-top: 21px; gap: 9px; }
.user-bar .small { font-size: 12px; }
.user-bar a { overflow-wrap: anywhere; }
.sidebar .icon-btn:hover { background: #ffffff15; }
.sidebar :focus-visible { outline-color: var(--lime); }
.avatar { width: 35px; height: 35px; background: #e7e9d7; color: #40583b; font-weight: 650; border: 1px solid #d6dcc9; }
.topbar { height: 72px; padding: 0 42px; background: var(--bg); position: relative; }
.topbar-left { font-size: 11px; }
.topbar-left > svg { width: 13px; height: 13px; }
.topbar-left strong { font-weight: 500; }
.topbar .date { font-size: 11px; }
.language { min-height: 35px; font-size: 11px; border-radius: 5px; cursor: pointer; background: transparent; }
.content { padding: 38px 42px 64px; max-width: 1560px; }
.page-head { margin-bottom: 28px; align-items: flex-start; }
.page-head > div { min-width: 0; }
.page-head h1 { overflow-wrap: anywhere; }
.page-head p { font-size: 13px; margin-top: 12px; }
.row.actions:empty { display: none; }
.btn { min-height: 43px; padding: 11px 17px; font-size: 12px; font-weight: 550; border-radius: 6px; transition: background-color 150ms, border-color 150ms, transform 180ms var(--ease); }
.btn svg { width: 16px; height: 16px; transition: transform 180ms var(--ease); }
.btn.primary:hover { background: #315446; border-color: #315446; }
.btn.lime:hover { background: #ecf6c5; border-color: #ecf6c5; }
.btn.quiet { background: transparent; border-color: #c5ccbc; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.previous svg { transform: rotate(180deg); }
.icon-btn { min-height: 36px; min-width: 36px; transition: background-color 150ms; }
.icon-btn svg { width: 18px; height: 18px; }

/* Dashboard */
.dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.dashboard-heading > div { min-width: 0; }
.dashboard-heading .eyebrow { margin-bottom: 14px; color: #667658; }
.dashboard-heading h1 { font-size: clamp(34px, 3.5vw, 50px); letter-spacing: -1.8px; overflow-wrap: anywhere; }
.dashboard-heading h1 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: #62744a; }
.dashboard-heading p { margin-top: 12px; font-size: 13px; color: var(--muted); }
.dashboard-heading > .btn { margin-bottom: 3px; flex-shrink: 0; }
.dashboard-lead { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 24px; margin-bottom: 38px; }
.focus-banner { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 160px; grid-template-rows: 1fr auto; gap: 20px 8px; background: #dce7bc; color: var(--green); border-radius: 12px; min-height: 280px; padding: 30px; }
.focus-copy { min-width: 0; align-self: center; }
.focus-copy .eyebrow { color: #52623c; display: flex; align-items: center; gap: 8px; font-size: 9px; }
.status-dot { width: 5px; height: 5px; background: #5a763b; border-radius: 50%; flex-shrink: 0; }
.focus-copy h2 { font-size: clamp(25px, 2.4vw, 34px); line-height: 1.17; letter-spacing: -1px; margin: 19px 0 11px; max-width: 420px; overflow-wrap: anywhere; }
.focus-copy p { font-size: 12px; color: #526444; }
.focus-actions { display: flex; gap: 20px; align-items: center; justify-content: space-between; grid-column: 1/-1; border-top: 1px solid #81956855; padding-top: 20px; }
.focus-actions .btn.lime { background: var(--green); border-color: var(--green); color: #fff; min-width: 145px; justify-content: space-between; }
.focus-actions .btn.lime:hover { background: #315446; }
.focus-note { font-size: 10px; color: #526444; text-align: right; max-width: 230px; line-height: 1.7; }
.focus-note > span { margin: 0 8px; color: #7b896b; }
.learning-art { width: 160px; height: 180px; position: relative; align-self: center; color: #43603f; }
.learning-art .course-art { width: 180px; height: 180px; position: absolute; bottom: -6px; right: -12px; transform: rotate(-12deg); }
.learning-art .course-art path:first-child { fill: #b8ce8e; }
.art-cross { position: absolute; top: -4px; right: 2px; font: 23px/1 Georgia, serif; }
.art-caption { position: absolute; bottom: -7px; left: 12px; font: 6px/1 ui-monospace, monospace; letter-spacing: 1.1px; white-space: nowrap; }
.overview-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 23px; }
.overview-panel .section-head { margin-bottom: 18px; }
.overview-panel h2 { font-size: 16px; }
.overview-panel .section-head > svg { color: #78876a; width: 17px; height: 17px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; }
.stat { background: transparent; border: 0; border-radius: 0; padding: 16px 0; min-width: 0; }
.stat:nth-child(odd) { padding-right: 12px; border-right: 1px solid var(--line); }
.stat:nth-child(even) { padding-left: 20px; }
.stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); padding-top: 0; padding-bottom: 18px; }
.stat:nth-child(n+3) { padding-bottom: 0; }
.stat .value { margin: 0; font-size: 34px; line-height: 1.1; font-weight: 450; letter-spacing: -1.7px; font-variant-numeric: tabular-nums; }
.stat .label { display: flex; align-items: flex-start; gap: 5px; font-size: 10px; line-height: 1.5; margin-top: 10px; }
.stat .label svg { width: 12px; height: 12px; margin-top: 2px; }
.dashboard-grid { grid-template-columns: minmax(0, 1fr) 292px; gap: 24px; }
.dashboard-grid > *, .stack > section { min-width: 0; }
.stack { gap: 33px; align-content: start; }
.section-head { margin-bottom: 18px; }
.section-head h2 { display: flex; gap: 10px; align-items: center; font-size: 19px; letter-spacing: -.6px; }
.section-index { font: 10px/1 ui-monospace, monospace; color: #87917c; letter-spacing: 0; border-right: 1px solid #c6ceba; padding-right: 10px; }
.section-head a { font-size: 11px; min-height: 32px; display: inline-flex; align-items: center; white-space: nowrap; }

/* Course covers and list rows */
.tint-0 { --cover: #dce6b9; --art: #526b36; }
.tint-1 { --cover: #dae5e4; --art: #416761; }
.tint-2 { --cover: #ecddd3; --art: #975e42; }
.course-grid { gap: 24px; }
.course-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; transition: transform 220ms var(--ease), border-color 160ms; }
.course-card:focus-within { border-color: #80926e; }
.course-top { background: var(--cover); color: var(--art); height: 190px; position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: flex-start; padding: 18px; }
.course-code { position: relative; z-index: 1; font: 9px/1.5 ui-monospace, monospace; letter-spacing: 1px; }
.course-top .tag { background: #fffefbbb; color: #3e5142; position: relative; z-index: 1; border: 1px solid #ffffff66; }
.course-art { width: 190px; height: 190px; flex-shrink: 0; stroke-width: 1.2; }
.course-top > .course-art { position: absolute; left: 50%; top: 27px; transform: translateX(-50%) rotate(-14deg); transition: transform 400ms var(--ease); }
.course-top .course-art > :first-child { fill: #fffefb30; }
.tint-1 > .course-art { transform: translateX(-50%) rotate(0); }
.course-body { padding: 23px; flex: 1; display: flex; flex-direction: column; }
.course-body h3 { font-size: 20px; font-weight: 550; line-height: 1.3; letter-spacing: -.6px; min-height: 52px; overflow-wrap: anywhere; }
.course-body h3 a:hover { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.course-body .teacher { font-size: 11px; margin: 12px 0 19px; }
.teacher svg { width: 13px; height: 13px; }
.course-meta { font-size: 11px; gap: 15px; flex-wrap: wrap; }
.progress-head { margin-top: 22px; margin-bottom: 9px; font-size: 10px; color: var(--muted); }
.progress-head strong { font-weight: 550; color: var(--ink); }
.progress { height: 4px; accent-color: #769052; }
.progress::-webkit-progress-value { background: #769052; }
.progress::-moz-progress-bar { background: #769052; border-radius: 8px; }
.course-bottom { padding-top: 18px; margin-top: 20px; border-top: 1px solid var(--line); font-size: 10px; gap: 10px; flex-wrap: wrap; }
.course-bottom a { min-height: 30px; align-items: center; font-size: 11px; font-weight: 600; }
.course-bottom a svg { transition: transform 180ms var(--ease); }
.course-card:not(.course-row) .course-progress { padding-bottom: 20px; }
.course-card:not(.course-row) .course-bottom { margin-top: auto; }
.course-list { display: grid; gap: 12px; }
.course-row { flex-direction: row; align-items: stretch; padding: 10px; gap: 20px; }
.course-row .course-top { width: 112px; height: auto; min-height: 140px; flex: 0 0 112px; border-radius: 5px; padding: 10px; }
.course-row .course-top .tag { position: absolute; bottom: 9px; left: 8px; font-size: 8px; padding: 4px 5px; }
.course-row .course-code { font-size: 7px; }
.course-row .course-top > .course-art { width: 130px; height: 130px; top: 20px; }
.course-row .course-body { display: grid; grid-template-columns: minmax(0, 1fr) 100px; gap: 0 18px; padding: 12px 13px 3px 0; min-width: 0; }
.course-row .course-heading { min-width: 0; }
.course-row h3 { font-size: 18px; min-height: 0; }
.course-row .teacher { margin: 8px 0 12px; }
.course-row .course-meta { grid-column: 1; font-size: 10px; gap: 10px; }
.course-row .course-progress { grid-column: 2; grid-row: 1/3; align-self: center; }
.course-row .progress-head { margin-top: 0; gap: 6px; }
.course-row .course-bottom { grid-column: 1/-1; margin-top: 14px; padding-top: 7px; }
.tag { font-size: 10px; font-weight: 500; padding: 6px 8px; border-radius: 4px; line-height: 1.2; }
.tag.amber { background: #faefda; color: #795b19; }
.tag.blue { color: #47627f; }
.agenda-panel { border-top: 2px solid #aab79b; padding: 22px 0 0; }
.agenda-panel > .eyebrow { color: #70805e; margin-bottom: 12px; }
.agenda-panel .section-head h2 { font-size: 21px; }
.agenda-panel .section-head > svg { width: 18px; color: #768565; }
.upcoming-item { gap: 15px; padding: 22px 0; }
.upcoming-item:last-child { padding-bottom: 22px; }
.date-tile { background: transparent; border: 1px solid #cbd2bf; width: 48px; height: 57px; border-radius: 6px; gap: 3px; }
.date-tile span { font: 9px/1 ui-monospace, monospace; color: #758262; }
.date-tile strong { font-size: 23px; font-weight: 500; color: var(--green); }
.upcoming-item h3 { font-size: 13px; font-weight: 550; }
.upcoming-item p { font-size: 11px; line-height: 1.65; }
.schedule-link { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding: 18px 0; font-size: 12px; }
.schedule-link svg { width: 16px; height: 16px; }
.explore-note { margin-top: 22px; background: #e8e9df; padding: 25px; border-radius: 8px; display: flex; flex-direction: column; gap: 18px; }
.explore-note:hover { background: #e1e5d6; text-decoration: none; }
.explore-symbol { font-size: 39px; line-height: 1; color: #687a51; align-self: flex-end; }
.explore-note h3 { font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 400; letter-spacing: -.5px; line-height: 1.15; }
.explore-note p { font-size: 11px; color: var(--muted); margin-top: 12px; }

/* Course overview and dedicated reading room */
.breadcrumb { line-height: 1.6; flex-wrap: wrap; }
.breadcrumb a { display: inline-flex; gap: 8px; align-items: center; }
.breadcrumb a > svg { transform: rotate(180deg); }
.course-masthead { position: relative; display: flex; align-items: center; gap: 24px; padding: 36px; background: var(--cover); border-radius: 12px; margin-bottom: 36px; overflow: hidden; }
.course-masthead-copy { min-width: 0; flex: 1; }
.course-masthead .eyebrow { color: var(--art); margin-bottom: 16px; }
.course-masthead .page-head { display: block; margin-bottom: 0; }
.course-masthead h1 { font-size: clamp(30px, 3.3vw, 46px); max-width: 760px; }
.course-masthead .page-head .actions { margin-top: 20px; }
.course-masthead .page-head > div > p { font-size: 12px; }
.course-masthead .course-intro { margin: 18px 0 0; display: block; }
.course-intro > .row { margin-top: 18px; }
.course-intro .rich { max-width: 680px; font-size: 13px; }
.course-masthead > .course-art { color: var(--art); width: 180px; height: 180px; transform: rotate(-12deg); }
.curriculum-layout { display: grid; grid-template-columns: minmax(0, 1fr) 245px; gap: 28px; align-items: start; }
.curriculum { min-width: 0; }
.chapter { border-radius: 9px; margin-bottom: 14px; }
.chapter summary { min-height: 83px; padding: 23px; }
.chapter summary h3 { font-size: 16px; font-weight: 550; }
.chapter summary > svg { transition: transform 180ms var(--ease); width: 17px; }
.chapter[open] summary > svg { transform: rotate(180deg); }
.chapter-number { background: transparent; border: 1px solid var(--line); border-radius: 5px; width: 36px; height: 40px; font: 12px/1 ui-monospace, monospace; }
.chapter-content > .rich { margin-bottom: 20px; }
.lesson { gap: 12px; }
.lesson > a { min-width: 0; min-height: 40px; }
.lesson-title { line-height: 1.6; overflow-wrap: anywhere; }
.lesson-icon { background: #eff1e8; border-radius: 5px; width: 33px; height: 36px; flex-shrink: 0; }
.course-facts { position: sticky; top: 28px; border-top: 2px solid #aab79b; padding: 22px 0; }
.course-facts dl { margin: 20px 0 25px; }
.course-facts dl > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.course-facts dt { font-size: 12px; color: var(--muted); text-transform: capitalize; }
.course-facts dd { font: 20px/1 ui-monospace, monospace; margin: 0; }
.course-educator { display: flex; gap: 13px; align-items: center; padding-bottom: 24px; }
.course-educator > svg { border: 1px solid var(--line); padding: 9px; width: 39px; height: 39px; border-radius: 50%; }
.course-educator .eyebrow { font-size: 8px; }
.course-educator p { margin-top: 5px; font-size: 12px; }
.course-facts > .btn { width: 100%; justify-content: space-between; }
.reader-layout { display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 30px; align-items: start; }
.reader-outline { position: sticky; top: 24px; max-height: calc(100svh - 48px); overflow-y: auto; }
.reader-outline summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-size: 15px; font-weight: 600; padding: 12px 0 20px; list-style: none; }
.reader-outline summary::-webkit-details-marker { display: none; }
.reader-outline summary svg { width: 15px; }
.reader-outline details[open] summary svg { transform: rotate(180deg); }
.outline-chapter { border-top: 1px solid var(--line); padding: 20px 0 13px; }
.outline-chapter h3 { display: flex; gap: 9px; font-size: 12px; line-height: 1.5; font-weight: 600; padding: 0 8px 11px; }
.outline-chapter h3 span { font: 10px/1.8 ui-monospace, monospace; color: #7f8a71; }
.outline-chapter a { display: flex; gap: 10px; padding: 12px 10px; border-radius: 5px; font-size: 11px; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
.outline-chapter a svg { width: 15px; height: 15px; margin-top: 2px; }
.outline-chapter a:hover { background: #e9eddf; text-decoration: none; }
.outline-chapter a[aria-current] { background: #dfe9c9; color: #304d30; font-weight: 550; }
.reader-paper { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 42px; min-width: 0; }
.reader-heading { border-bottom: 1px solid var(--line); padding-bottom: 26px; margin-bottom: 30px; }
.reader-heading .eyebrow { color: #748461; margin-bottom: 18px; }
.reader-heading h1 { font-size: clamp(29px, 3vw, 41px); line-height: 1.17; overflow-wrap: anywhere; }
.reader-heading p { color: var(--muted); font-size: 12px; margin-top: 15px; }
.reader-heading .btn { margin-top: 18px; }
.reader-content { font-size: 16px; line-height: 1.9; max-width: 70ch; min-height: 160px; }
.reader-content p { line-height: 1.9; }
.reader-content h2 { font-size: 24px; }
.reader-content pre { max-width: 100%; font-size: 13px; }
.reader-content table { display: block; overflow-x: auto; }
.reader-materials { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 34px; }
.reader-materials .section-head { flex-wrap: wrap; }
.reader-materials h2 { font-size: 17px; }
.reader-pagination { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 40px; }

/* Shared controls and sign-in */
.panel, .result-card { border-radius: 9px; padding: 25px; }
.panel.flush { padding: 0; }
.table-wrap { max-width: 100%; }
table { font-size: 12px; }
th { background: #edefe5; font-size: 9px; letter-spacing: .7px; text-transform: uppercase; padding: 15px 18px; }
td { padding: 19px 18px; }
td strong { font-weight: 550; }
.search { min-width: min(240px, 100%); }
.search input[type="search"] { min-height: 45px; background: var(--panel); padding-left: 40px; border-radius: 6px; }
.search svg { top: 13px; }
.filters { padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.filters .tabs { background: transparent; border-bottom: 1px solid #c9d0bd; border-radius: 0; padding: 0; gap: 22px; }
.tabs a { border-radius: 0; padding: 13px 0; min-height: 43px; border-bottom: 2px solid transparent; }
.tabs a.active { background: transparent; box-shadow: none; border-bottom-color: var(--green); font-weight: 600; }
.field { gap: 9px; }
.field input, .field textarea, .field select { border-radius: 6px; min-height: 45px; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #a7b39a; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #75895e; }
.file { background: #f7f8f1; padding: 14px; border-radius: 6px; }
.file > a { min-width: 0; }
.file .row { flex-shrink: 0; }
.empty { padding: 38px 20px; }
.empty svg { width: 28px; height: 28px; padding: 0; }
.empty h3 { font-weight: 550; line-height: 1.5; }
.empty p { font-size: 12px; }
dialog { border-radius: 12px; padding: 30px; box-shadow: 0 30px 90px #102b3238; }
dialog::backdrop { background: #132d2566; backdrop-filter: none; }
.toast { border-radius: 7px; padding: 16px 20px; }
.auth { padding: 0; gap: 0; background: var(--bg); grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); }
.auth-story { border-radius: 0; padding: 48px 60px 28px; background: var(--green); overflow: hidden; }
.auth-story .brand { padding: 0; position: relative; z-index: 1; }
.auth-story .brand small { color: #bdcbb9; }
.auth-story-copy { padding: 65px 0 40px; max-width: 550px; position: relative; }
.auth-story .eyebrow { color: #c0d49d; margin-bottom: 28px; font-size: 9px; }
.auth-story h1 { font-size: clamp(43px, 4.4vw, 68px); font-weight: 450; letter-spacing: -2.4px; line-height: 1.08; }
.auth-story h1 em { display: block; font-family: Georgia, "Times New Roman", serif; color: var(--lime); font-weight: 400; }
.auth-story p { font-size: 13px; line-height: 1.85; color: #c4d0bf; max-width: 370px; margin-top: 26px; }
.auth-story .learning-art { color: #cfdfaa; margin: 34px 20px 30px auto; height: 195px; width: 220px; }
.auth-story .learning-art .course-art { width: 220px; height: 220px; bottom: -10px; }
.auth-story .learning-art .course-art path:first-child { fill: #abc7751a; }
.auth-story .art-caption { font-size: 7px; bottom: -18px; }
.auth-steps { display: flex; flex-wrap: wrap; gap: 25px; border-top: 1px solid #ffffff30; padding-top: 21px; color: #bfd2aa; font: 9px/1.5 ui-monospace, monospace; }
.auth-footer { font-size: 9px; color: #b9cbb9; gap: 30px; align-items: center; }
.auth-footer > span:first-child { white-space: nowrap; letter-spacing: 1.2px; }
.auth-main { background: transparent; padding: 65px 45px; }
.auth-form { max-width: 360px; }
.auth-kicker { color: #75805f; margin-bottom: 22px; font-size: 9px; }
.auth-form h2 { font-size: 42px; font-weight: 450; line-height: 1.18; letter-spacing: -1.7px; }
.auth-form > p { margin-top: 17px; margin-bottom: 35px; line-height: 1.7; }
.auth-form form { gap: 23px; }
.auth-form input { min-height: 49px; background: var(--panel); }
.auth-form .btn { min-height: 49px; border-radius: 6px; justify-content: space-between; padding: 13px 18px; }
.auth-note { font-size: 10px; line-height: 1.9; margin-top: 36px; }
.auth-mobile-brand { display: none; }
.lesson-video { display: block; width: 100%; max-height: 65vh; margin: 12px 0 20px; border-radius: 8px; background: #15221c; }
.nav-backdrop { display: none; }

/* Only pending requests get a looping indicator. */
.topbar.is-loading::after { content: ""; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background: #879c5c; transform-origin: left; animation: route-progress 1.2s var(--ease) infinite; }
@keyframes route-progress { from { transform: scaleX(.02); opacity: .35; } to { transform: scaleX(1); opacity: 1; } }
@keyframes enter { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  #view > .page-head, .dashboard-heading, .dashboard-lead, .dashboard-grid, #view > .course-grid, .course-masthead, .curriculum-layout, .reader-layout, .auth-form { animation: enter 360ms var(--ease) both; }
  .dashboard-lead, .course-masthead { animation-delay: 45ms; }
  .dashboard-grid, .curriculum-layout { animation-delay: 90ms; }
  dialog[open], .toast { animation: enter 180ms var(--ease) both; }
  dialog[open]::backdrop { animation: fade-in 160ms ease-out; }
  .chapter[open] > .chapter-content { animation: enter 180ms var(--ease); }
}
@media (hover: hover) and (pointer: fine) {
  .course-card:hover { transform: translateY(-3px); border-color: #9fae88; box-shadow: 0 6px 18px #243f2808; }
  .course-card:hover .course-top > .course-art { transform: translateX(-50%) rotate(-4deg) scale(1.04); }
  a.btn:not(.previous):hover svg, .course-bottom a:hover svg { transform: translateX(3px); }
}
@media (max-width: 1250px) {
  .sidebar { width: 204px; padding-left: 14px; padding-right: 14px; }
  .main { margin-left: 204px; }
  .content { padding: 30px 28px 50px; }
  .topbar { padding: 0 28px; }
  .dashboard-lead, .dashboard-grid { grid-template-columns: minmax(0, 1fr) 255px; gap: 22px; }
  .focus-banner { padding: 26px; grid-template-columns: minmax(0, 1fr) 110px; }
  .focus-banner .learning-art { width: 110px; }
  .focus-banner .learning-art .course-art { width: 140px; right: -18px; }
  .focus-banner .art-caption { display: none; }
  .course-row { gap: 15px; }
  .course-row .course-top { width: 90px; flex-basis: 90px; }
  .course-row .course-body { grid-template-columns: minmax(0, 1fr); }
  .course-row .course-progress { grid-column: 1; grid-row: auto; margin-top: 14px; }
  .course-row h3 { font-size: 17px; }
  .course-row .course-bottom { margin-top: 10px; }
  .reader-layout { grid-template-columns: 205px minmax(0, 1fr); gap: 22px; }
  .reader-paper { padding: 30px; }
  .auth-story { padding: 40px; }
}
@media (max-width: 1050px) {
  .dashboard-lead, .dashboard-grid { grid-template-columns: 1fr; }
  .overview-panel { padding: 20px; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat:nth-child(n) { padding: 0 18px; border: 0; border-right: 1px solid var(--line); }
  .stat:first-child { padding-left: 0; }
  .stat:last-child { border-right: 0; padding-right: 0; }
  .dashboard-side { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
  .explore-note { margin-top: 0; }
  .focus-banner { grid-template-columns: minmax(0, 1fr) 180px; }
  .focus-banner .learning-art { width: 160px; }
  .focus-banner .learning-art .course-art { width: 180px; }
  .course-row .course-body { grid-template-columns: minmax(0, 1fr) 100px; }
  .course-row .course-progress { grid-column: 2; grid-row: 1/3; margin-top: 0; }
  .course-row .course-top { width: 110px; flex-basis: 110px; }
  .curriculum-layout { grid-template-columns: minmax(0, 1fr) 200px; gap: 22px; }
  .course-masthead { padding: 28px; }
  .course-masthead > .course-art { width: 130px; height: 130px; }
  .reader-layout { grid-template-columns: 1fr; }
  .reader-outline { position: static; max-height: 300px; order: 2; }
  .auth-story h1 { font-size: 44px; }
}
@media (max-width: 760px) {
  .sidebar { width: 260px; padding: 27px 20px; z-index: 40; transition: transform 220ms var(--ease); }
  .sidebar.open { transform: none; }
  .nav-backdrop { display: block; position: fixed; inset: 0; background: #142f3360; z-index: 30; }
  body.menu-open { overflow: hidden; }
  .main { margin-left: 0; }
  .topbar { height: 63px; padding: 0 20px; }
  .topbar > .row { gap: 9px; }
  .topbar-left { gap: 7px; min-width: 0; }
  .topbar-left strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-left > svg { display: none; }
  .content { padding: 27px 20px 45px; }
  .page-head { margin-bottom: 25px; flex-wrap: wrap; }
  .page-head h1 { font-size: 32px; letter-spacing: -1.2px; }
  .dashboard-heading { align-items: flex-start; flex-direction: column; gap: 17px; margin-bottom: 25px; }
  .dashboard-heading h1 { font-size: 38px; line-height: 1.13; }
  .dashboard-heading .eyebrow { font-size: 8px; margin-bottom: 12px; }
  .dashboard-heading p { font-size: 12px; max-width: 300px; }
  .dashboard-heading > .btn { padding: 0; min-height: 32px; border: 0; }
  .dashboard-lead { margin-bottom: 30px; gap: 16px; }
  .focus-banner { border-radius: 9px; min-height: 275px; grid-template-columns: minmax(0, 1fr) 110px; padding: 25px; }
  .focus-copy h2 { font-size: 27px; margin-top: 17px; }
  .focus-copy p { font-size: 11px; }
  .focus-banner .learning-art { width: 110px; height: 150px; }
  .focus-banner .learning-art .course-art { width: 140px; height: 150px; }
  .focus-actions { gap: 12px; }
  .focus-note { font-size: 9px; }
  .focus-note > span { margin: 0 3px; }
  .overview-panel { border-radius: 9px; }
  .stat .value { font-size: 30px; }
  .stat .label { font-size: 10px; }
  .dashboard-grid { gap: 30px; }
  .icon-btn { min-width: 42px; min-height: 42px; }
  .course-bottom a, .course-bottom .btn { min-height: 40px; }
  .course-body { padding: 21px; }
  .course-body h3 { font-size: 21px; }
  .course-row .course-body { padding-top: 6px; }
  .curriculum-layout { grid-template-columns: 1fr; }
  .course-facts { position: static; }
  .course-facts dl { display: flex; gap: 20px; flex-wrap: wrap; }
  .course-facts dl > div { flex: 1; gap: 15px; }
  .course-masthead > .course-art { display: none; }
  .course-masthead { padding: 25px; margin-bottom: 27px; }
  .chapter summary { gap: 10px; padding: 18px; flex-wrap: wrap; }
  .chapter summary .row { min-width: 0; }
  .chapter summary strong { overflow-wrap: anywhere; }
  .chapter summary .chapter-number { flex-shrink: 0; }
  .chapter summary > .row:last-child { flex-wrap: wrap; }
  .lesson { flex-wrap: wrap; }
  .lesson > .row:first-child { flex: 1 1 210px; }
  .lesson > .row:last-child { margin-left: auto; }
  .reader-paper { padding: 25px; }
  .reader-heading h1 { font-size: 31px; }
  .reader-content { font-size: 15px; }
  .reader-pagination { gap: 10px; }
  .reader-pagination .btn { padding: 11px 13px; }
  .auth { padding: 0; display: block; }
  .auth-main { min-height: 100svh; padding: 155px 28px 48px; }
  .auth-mobile-brand { display: block; position: absolute; top: 32px; left: 24px; }
  .auth-mobile-brand .brand { padding: 0; font-size: 28px; }
  .auth-language { top: 34px; right: 25px; }
  .auth-form h2 { font-size: 39px; }
  .field input, .field textarea, .field select, .search input[type="search"] { font-size: 16px; }
  dialog { padding: 23px; max-height: 88svh; }
}
@media (max-width: 540px) {
  .course-grid, .course-grid.compact { grid-template-columns: 1fr; }
  .course-body h3 { min-height: 0; }
  .course-top { height: 195px; }
  .course-row { gap: 15px; }
  .course-row .course-top { width: 70px; flex-basis: 70px; min-height: 130px; }
  .course-row .course-top > .course-art { width: 100px; height: 140px; }
  .course-row .course-code { font-size: 6px; letter-spacing: .5px; }
  .course-row .course-body { grid-template-columns: 1fr; padding-right: 5px; }
  .course-row h3 { font-size: 17px; }
  .course-row .course-progress { grid-column: 1; grid-row: auto; margin-top: 13px; }
  .course-row .course-meta { font-size: 9px; gap: 7px; }
  .course-row .course-meta svg { display: none; }
  .course-row .course-bottom { gap: 0; margin-top: 10px; padding-top: 7px; }
  .course-row .course-bottom > .muted { display: none; }
  .course-row .teacher { font-size: 10px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(n) { padding: 16px 0; border: 0; }
  .stat:nth-child(odd) { padding-right: 13px; border-right: 1px solid var(--line); }
  .stat:nth-child(even) { padding-left: 22px; }
  .stat:nth-child(-n+2) { padding-top: 0; border-bottom: 1px solid var(--line); }
  .stat:nth-child(n+3) { padding-bottom: 0; }
  .dashboard-side { grid-template-columns: 1fr; }
  .explore-note { flex-direction: row-reverse; align-items: center; justify-content: space-between; }
  .explore-symbol { align-self: center; }
  .explore-note h3 { font-size: 23px; }
  .focus-banner { grid-template-columns: 1fr; min-height: 0; padding: 25px; gap: 23px; }
  .focus-copy { padding-right: 40px; position: relative; z-index: 1; }
  .focus-copy h2 { font-size: 28px; }
  .focus-banner .learning-art { position: absolute; top: 21px; right: -38px; opacity: .3; pointer-events: none; }
  .focus-banner .art-cross { display: none; }
  .focus-actions { flex-wrap: wrap; padding-top: 18px; gap: 13px; }
  .focus-note { text-align: left; }
  .tabs { max-width: 100%; flex-wrap: wrap; }
  .filters .tabs { gap: 20px; }
  .pagination, .form-actions { flex-wrap: wrap; }
  .dialog-head h2 { font-size: 20px; }
  .file { flex-wrap: wrap; }
  .file > a { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .course-card:hover { transform: none; }
  .course-card:hover .course-top > .course-art { transform: translateX(-50%); }
  .topbar.is-loading::after { transform: none; }
}
@media (max-width: 360px) {
  .dashboard-heading h1 { font-size: 32px; }
  .focus-copy { padding-right: 25px; }
  .focus-copy h2 { font-size: 26px; }
}
@media print {
  .sidebar, .topbar, .nav-backdrop, .skip-link, .reader-outline { display: none !important; }
  .main { margin: 0; }
  .content, .reader-paper { padding: 0; }
  .reader-layout { display: block; }
  .reader-paper { border: 0; }
  .focus-banner { background: white; color: black; border: 1px solid #aaa; }
  .learning-art, .course-masthead > .course-art { display: none; }
}
