@font-face { font-family: "Figtree"; src: url(/static/fonts/figtree-latin.woff2) format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Figtree"; src: url(/static/fonts/figtree-latin-ext.woff2) format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
:root {
  --board: #1f3a34; --board-deep: #152824; --chalk: #f2c94c; --paper: #f4f6f3; --surface: #fff;
  --ink: #18211e; --muted: #5b6964; --line: #dbe2de; --line-strong: #b9c4bf;
  --ok: #2b7a57; --ok-tint: #e3f2ea; --bad: #b3362a; --bad-tint: #fbe9e6; --wait: #8a5a00; --wait-tint: #fdf1cf;
  --ui: "Figtree", "Avenir Next", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --read: var(--ui);
  --r: 10px; --side: 248px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--ui); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-kerning: normal; }
h1, h2, h3 { font-family: var(--read); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: 0; font-variant-numeric: lining-nums; }
h1 { font-size: 2.4rem; } h2 { font-size: 1.6rem; } h3 { font-size: 1.3rem; }
p { margin: .4em 0; }
a { color: #1d5c4c; text-underline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); } .small, small { font-size: .875rem; } .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9rem; }
.boot { padding: 4rem; text-align: center; color: var(--muted); }
.icon { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.2em; }
:focus-visible { outline: 3px solid #2f80ed; outline-offset: 2px; border-radius: 4px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; font: 600 .95rem/1.2 var(--ui); padding: .6em 1em; border-radius: 8px;
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; min-height: 40px; }
.btn:hover { border-color: var(--board); }
.btn.primary { background: var(--board); border-color: var(--board); color: #fff; }
.btn.primary:hover { background: var(--board-deep); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.quiet { border-color: transparent; background: transparent; color: var(--muted); }
.btn.quiet:hover { background: rgba(0,0,0,.06); color: var(--ink); }
.btn.small { font-size: .85rem; padding: .35em .7em; min-height: 32px; }
.btn.big { font-size: 1.05rem; padding: .8em 1.4em; }
.btn.block { display: flex; width: 100%; }
.btn.dashed { border-style: dashed; color: var(--muted); background: transparent; width: 100%; }
.btn.on-dark { color: #cfdcd7; } .btn.on-dark:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn.on-color { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); color: #fff; }
.btn.on-color:hover { background: rgba(255,255,255,.28); border-color: #fff; }
.btn:disabled { opacity: .55; cursor: default; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: rgba(0,0,0,.07); color: var(--ink); }
.row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.tools { display: flex; gap: 0; flex: none; }

/* shell */
.shell { min-height: 100vh; }
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--board); color: #e8efec; display: flex; flex-direction: column; padding: 1.4rem 1rem 1rem; z-index: 30; }
.brand { font: 600 1.55rem/1.15 var(--read); color: #fff; text-decoration: none; padding: 0 .6rem; }
.nav { margin-top: 1.8rem; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav a { display: flex; align-items: center; gap: .7rem; padding: .65rem .7rem; border-radius: 8px; color: #cfdcd7; text-decoration: none; font-weight: 500; border-left: 3px solid transparent; }
.nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav a.on { background: rgba(255,255,255,.1); color: #fff; border-left-color: var(--chalk); }
.nav-group { margin: 1.4rem .7rem .3rem; font-size: .8rem; color: #9fb3ac; }
.side-foot { border-top: 1px solid rgba(255,255,255,.14); padding-top: .8rem; display: grid; gap: .3rem; }
.who { display: flex; align-items: center; gap: .7rem; padding: .4rem .5rem; border-radius: 8px; color: #fff; text-decoration: none; }
.who:hover { background: rgba(255,255,255,.07); }
.who strong, .who small { display: block; } .who small { color: #9fb3ac; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--chalk); color: var(--board-deep); display: grid; place-items: center; font-weight: 700; flex: none; }
.side-foot .btn { justify-content: flex-start; }
.topbar { display: none; }
.scrim { display: none; }
#main { margin-left: var(--side); outline: none; }
.page { max-width: 1120px; margin: 0 auto; padding: 2.2rem 2rem 4rem; }
.page.narrow, .narrow-col { max-width: 680px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1rem 0; }
.toolbar input[type=search] { max-width: 320px; }
.toolbar select { width: auto; }

/* forms */
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=date], input[type=datetime-local], input:not([type]), select, textarea {
  font: inherit; color: inherit; width: 100%; padding: .6em .75em; border: 1.5px solid var(--line-strong); border-radius: 8px; background: #fff; }
input[type=color] { width: 64px; height: 40px; padding: 2px; border: 1.5px solid var(--line-strong); border-radius: 8px; background: #fff; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid #2f80ed; outline-offset: 1px; border-color: var(--board); }
.form { display: grid; gap: 1rem; margin-bottom: 1.1rem; }
.field { display: grid; gap: .3rem; } .field.short { max-width: 220px; }
.field-label { font-weight: 600; font-size: .93rem; }
.hint { font-size: .85rem; color: var(--muted); }
.check { display: flex; gap: .65rem; align-items: flex-start; cursor: pointer; flex-wrap: wrap; }
.check input, .choice input { width: 20px; height: 20px; margin: .13em 0 0; flex: none; accent-color: var(--board); }
.check .hint { flex-basis: 100%; padding-left: 1.9rem; }
.rich { border: 1.5px solid var(--line-strong); border-radius: 8px; background: #fff; overflow: hidden; }
.rich-bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-bottom: 1px solid var(--line); background: #f7f9f7; }
.rich-bar button { font: 500 .85rem var(--ui); border: 0; background: transparent; padding: .35em .6em; border-radius: 6px; cursor: pointer; color: var(--ink); }
.rich-bar button:hover { background: #e4eae7; }
.rich-bar .b { font-weight: 800; } .rich-bar .i { font-style: italic; font-family: var(--read); }
.rich-area { min-height: 150px; max-height: 50vh; overflow: auto; padding: .8rem 1rem; outline: none; }
.filectl { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.file-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .4em .75em; background: #edf2ef; border-radius: 8px; text-decoration: none; font-weight: 600; word-break: break-all; }
progress { accent-color: var(--board); }

/* lesson text */
.prose { font: 1.06rem/1.75 var(--ui); max-width: 68ch; overflow-wrap: break-word; }
.prose h2 { font-size: 1.5rem; margin: 1.4em 0 .4em; } .prose h3 { font-size: 1.2rem; margin: 1.2em 0 .3em; } .prose h4 { margin: 1em 0 .3em; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: .7em 0; } .prose li { margin: .25em 0; }
.prose img { max-width: 100%; height: auto; border-radius: 6px; }
.prose blockquote { margin: 1em 0; padding: .2em 0 .2em 1em; border-left: 4px solid var(--chalk); color: #33413c; }
.prose pre, .prose code { font: .9em ui-monospace, Menlo, Consolas, monospace; background: #edf2ef; border-radius: 4px; padding: .1em .3em; }
.prose pre { padding: .8em; overflow: auto; }
.prose table { border-collapse: collapse; } .prose td, .prose th { border: 1px solid var(--line-strong); padding: .3em .6em; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* surfaces */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem 1.4rem; margin-bottom: 1.2rem; }
.panel > h2 { margin-bottom: .8rem; }
.danger-zone { border-color: #e6bdb7; }
.notice { background: var(--wait-tint); border-radius: 8px; padding: .7rem 1rem; color: #5c3d00; margin: 0 0 1rem; }
.empty { text-align: center; padding: 3rem 1.5rem; border: 1.5px dashed var(--line-strong); border-radius: var(--r); margin: 1rem 0; }
.empty p { color: var(--muted); max-width: 46ch; margin: .5rem auto 1.1rem; }
.pill { display: inline-block; font: 600 .78rem/1 var(--ui); padding: .38em .7em; border-radius: 99px; background: #e8edea; color: #3d4a45; white-space: nowrap; vertical-align: middle; margin-left: .4em; text-decoration: none; }
td > .pill:first-child, .card-facts > .pill { margin-left: 0; }
.pill.published { background: var(--ok-tint); color: #1c5a3f; } .pill.wait { background: var(--wait-tint); color: var(--wait); }
.pill.late, .pill.archived { background: var(--bad-tint); color: var(--bad); }
.progress { height: 8px; background: #e2e8e5; border-radius: 99px; overflow: hidden; flex: 1; min-width: 80px; }
.progress-fill { height: 100%; background: var(--c, var(--ok)); border-radius: 99px; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font: 600 .85rem var(--ui); color: var(--muted); padding: .7rem 1rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: .7rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.gradebook th, .gradebook td { text-align: center; } .gradebook th:first-child, .gradebook td:first-child { text-align: left; position: sticky; left: 0; background: var(--surface); }
.gradebook th a { display: inline-block; max-width: 140px; overflow: hidden; text-overflow: ellipsis; color: inherit; }
.grade-total { font-size: 1.1rem; margin-bottom: 1rem; }

/* toasts and dialogs */
#toasts { position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%); display: grid; gap: .5rem; z-index: 200; width: min(92vw, 460px); }
.toast { background: var(--ink); color: #fff; padding: .8rem 1.1rem; border-radius: 10px; box-shadow: 0 6px 24px rgba(21,40,36,.3); }
.toast.bad { background: var(--bad); }
.modal-wrap { position: fixed; inset: 0; background: rgba(21,40,36,.55); display: grid; place-items: center; padding: 1rem; z-index: 100; }
.modal { background: var(--surface); border-radius: 14px; width: min(100%, 520px); max-height: calc(100vh - 2rem); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(21,40,36,.35); }
.modal.wide { width: min(100%, 820px); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem .6rem; }
.modal-body { padding: .6rem 1.4rem 1rem; overflow: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: .6rem; padding: .9rem 1.4rem; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* sign in */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.auth-board { background: var(--board); color: #fff; display: flex; align-items: flex-end; padding: 4rem 3.5rem; border-right: 6px solid var(--chalk); }
.auth-site { font: 600 clamp(2.2rem, 4.2vw, 3.6rem)/1.08 var(--read); margin: 0 0 1rem; max-width: 12ch; }
.auth-line { color: #c5d5cf; font-size: 1.1rem; max-width: 30ch; }
.auth-form { display: grid; place-items: center; padding: 2rem 1.2rem; }
.auth-card { width: min(100%, 400px); } .auth-card h1 { margin-bottom: .3rem; } .auth-card .form { margin-top: 1.5rem; }
.auth-card .btn.big { width: 100%; } .auth-or { text-align: center; color: var(--muted); margin: .7rem 0; }
.price { font: 600 1.5rem var(--read); font-variant-numeric: lining-nums; display: flex; align-items: center; gap: .5rem; min-height: 2rem; } .price .pill { margin-left: 0; }
.copy-line { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: .9rem; } .copy-line span { font-weight: 600; }
.copy-line code { background: #edf2ef; padding: .3em .6em; border-radius: 6px; word-break: break-all; font: .85rem ui-monospace, Menlo, Consolas, monospace; }
.steps { margin: .4rem 0 1rem; padding-left: 1.3rem; color: var(--muted); }
.panel > .muted { margin-bottom: .8rem; } .panel .form { margin-top: 1rem; } .auth-alt { margin-top: 1.2rem; text-align: center; }

/* home */
.stats { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: .9rem 1.4rem; text-decoration: none; color: inherit; min-width: 130px; }
.stat strong { display: block; font: 600 2.2rem/1.1 var(--read); font-variant-numeric: lining-nums; } .stat span { color: var(--muted); font-size: .9rem; }
.home-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }
.home-cols.single { grid-template-columns: 1fr; }
.home-cols h2 { margin: 0 0 .9rem; } .home-cols .card-grid + h2 { margin-top: 2.2rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; }
.course-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.course-card-top { display: block; background: var(--c); color: #fff; padding: 1.1rem 1.2rem 1rem; text-decoration: none; min-height: 118px; }
.course-card-top h3 { font-size: 1.5rem; margin: .15rem 0 .3rem; } .course-card-top .muted { color: rgba(255,255,255,.85); font-size: .88rem; margin: 0; }
.code { font-size: .8rem; font-weight: 600; opacity: .9; }
.course-card-body { padding: 1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
/* cards in a row line up: text starts at the top, and the price and button sit on the same line at the bottom */
.course-card-body > .price { margin-top: auto; }
.course-card-body:not(:has(.price)) > :last-child { margin-top: auto; }
.course-card-body p { margin: 0; } .card-facts { display: flex; align-items: center; gap: .7rem; color: var(--muted); font-size: .9rem; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.todo a, .ann-mini { display: flex; gap: .7rem; align-items: flex-start; padding: .55rem .5rem; margin: 0 -.5rem; border-radius: 8px; text-decoration: none; color: inherit; }
.todo a:hover, .ann-mini:hover { background: var(--paper); }
.todo strong, .todo small, .ann-mini strong, .ann-mini small { display: block; } .todo small, .ann-mini small { color: var(--muted); }
.ann-mini { flex-direction: column; gap: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; margin-top: .45em; flex: none; }
.overdue { color: var(--bad) !important; font-weight: 600; }

/* course */
.course-head { background: var(--c); color: #fff; border-radius: 14px; padding: 1.8rem 2rem; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.course-head h1 { font-size: 2.7rem; margin: .2rem 0 .3rem; } .course-head p { margin: 0; opacity: .92; }
.course-head-tools { display: flex; gap: .6rem; flex-wrap: wrap; }
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line-strong); margin-bottom: 1.6rem; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: .75rem 1rem; text-decoration: none; color: var(--muted); font-weight: 600; white-space: nowrap; }
.tabs a:hover { color: var(--ink); } .tabs a.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--board); }
.course-desc { max-width: 70ch; margin: 0 0 1.6rem; font-size: 1.05rem; }
.weeks { max-width: 820px; }
.week-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.week-head p { margin: .25rem 0 0; }
.lock-note { display: inline-flex; gap: .45rem; align-items: center; color: var(--wait); font-weight: 600; }
.item-text { flex: 1; min-width: 0; } .item-text strong, .item-text small { display: block; } .item-text small { color: var(--muted); }
.item-ic.t-video { background: #e7ebf8; color: #34509b; } .item-ic.t-quiz { background: #f3e8f7; color: #7a3f94; }
.item-ic.t-assignment { background: #fbeedd; color: #8f5a12; } .item-ic.t-link { background: #e1f1f4; color: #1b6a7a; } .item-ic.t-file { background: #eceff1; color: #4a565d; }
.item-ic.tiny { width: 22px; height: 22px; border-radius: 6px; font-size: .75rem; }
.done-tick { width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: .75rem; flex: none; }
.done-tick .icon { stroke-width: 3; }
.kind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .7rem; }
.kind { display: grid; gap: .35rem; text-align: left; padding: 1rem; border: 1.5px solid var(--line-strong); border-radius: var(--r); background: #fff; cursor: pointer; font: inherit; color: inherit; }
.kind:hover { border-color: var(--board); background: var(--paper); } .kind small { color: var(--muted); }
.pick-list { max-height: 220px; overflow: auto; display: grid; gap: .5rem; padding: .7rem; border: 1px solid var(--line); border-radius: 8px; }
.ann h3 { margin: 0; } .ann .pre { margin-top: .7rem; }

/* lesson view */
.lesson-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 100vh; }
.outline { border-right: 1px solid var(--line); padding: 1.4rem 1rem 3rem; background: #eef2ef; min-height: 100vh; }
.outline-back { display: flex; gap: .4rem; align-items: center; font: 600 1.3rem/1.2 var(--read); text-decoration: none; color: var(--ink); margin-bottom: 1.2rem; }
.outline-mod h3 { font: 600 .85rem var(--ui); color: var(--muted); margin: 1rem .5rem .3rem; display: flex; gap: .35rem; align-items: center; }
.outline-mod ul { list-style: none; margin: 0; padding: 0; }
.outline-mod a { display: flex; gap: .6rem; align-items: center; padding: .45rem .5rem; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .93rem; }
.outline-mod a:hover { background: rgba(0,0,0,.05); } .outline-mod a.on { background: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--board); }
.lesson { padding: 2.4rem clamp(1.2rem, 4vw, 3.5rem) 3rem; max-width: 900px; width: 100%; }
.lesson-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.6rem; }
.lesson-head h1 { font-size: 2.6rem; }
.lesson-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line-strong); }
.done-label { display: inline-flex; gap: .4rem; align-items: center; color: var(--ok); font-weight: 700; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r); overflow: hidden; margin-bottom: 1.4rem; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-file { width: 100%; max-height: 70vh; background: #000; border-radius: var(--r); margin-bottom: 1.4rem; }
.link-url { display: block; margin-top: .5rem; word-break: break-all; }
.file-card { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.2rem; margin-bottom: 1.2rem; }
.file-card strong { flex: 1; min-width: 140px; word-break: break-all; }

/* quizzes and assignments */
.quiz, .assignment { margin-top: 1.6rem; display: grid; gap: 1rem; justify-items: start; }
.quiz > *, .assignment > * { max-width: 100%; } .quiz .table-wrap, .assignment .table-wrap, .quiz .question, .assignment .form, .quiz-bar, .result-box, .attempts { width: 100%; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.facts li { background: #e8edea; padding: .35em .8em; border-radius: 99px; font-size: .9rem; font-weight: 500; }
.q-preview { margin: 0; padding-left: 1.4rem; display: grid; gap: .4rem; }
.result-box { display: grid; gap: .1rem; background: var(--ok-tint); border-radius: var(--r); padding: 1rem 1.3rem; }
.result-box strong { font: 600 2.1rem/1.2 var(--read); font-variant-numeric: lining-nums; } .result-box small { color: #33413c; }
.attempts { list-style: none; margin: 0; padding: 0; }
.attempts li { display: flex; gap: 1rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--line); } .attempts li span { flex: 1; }
.quiz-bar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; gap: 1rem; background: var(--board); color: #fff; padding: .7rem 1.1rem; border-radius: 10px; font-weight: 600; }
.quiz-bar .muted { color: #c5d5cf; } .clock { font-variant-numeric: tabular-nums; } .clock.low { color: var(--chalk); }
.question { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.3rem; }
.question.right { border-left: 5px solid var(--ok); } .question.wrong { border-left: 5px solid var(--bad); }
.q-head { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: .8rem; }
.q-num { width: 30px; height: 30px; border-radius: 50%; background: var(--board); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; flex: none; }
.q-prompt { flex: 1; margin: .1rem 0 0; font: 600 1.05rem/1.5 var(--ui); white-space: pre-wrap; }
.q-pts { color: var(--muted); font-size: .88rem; white-space: nowrap; font-weight: 600; margin-top: .25rem; }
.q-body { display: grid; gap: .45rem; padding-left: calc(30px + .8rem); }
.choice { display: flex; gap: .7rem; align-items: flex-start; padding: .6rem .8rem; border: 1.5px solid var(--line); border-radius: 8px; cursor: pointer; }
.choice:hover { border-color: var(--line-strong); } .choice:has(input:checked) { border-color: var(--board); background: #eef4f1; }
.choice span { flex: 1; } .choice small { color: var(--ok); font-weight: 700; }
.choice.is-correct { border-color: var(--ok); background: var(--ok-tint); } .choice.is-wrong { border-color: var(--bad); background: var(--bad-tint); }
.choice:has(input:disabled) { cursor: default; }
.feedback { background: #eef2f8; border-radius: 8px; padding: .7rem 1rem; margin: .8rem 0 0; }
.grade-row { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin-top: .9rem; padding-top: .8rem; border-top: 1px dashed var(--line-strong); }
.grade-row.needs { background: var(--wait-tint); margin: .9rem -1.3rem -1.1rem; padding: .8rem 1.3rem; border-radius: 0 0 var(--r) var(--r); border-top: 0; }
.grade-row label { white-space: nowrap; font-weight: 600; } .grade-row input[type=number] { width: 84px; } .grade-row input[type=text] { flex: 1; min-width: 200px; }
.work { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 1rem; max-height: 45vh; overflow: auto; width: 100%; }

/* quiz builder */
.qb-wrap { border-top: 1px solid var(--line); padding-top: 1.1rem; margin-top: .4rem; } .qb-wrap h3 { margin-bottom: .8rem; }
.qb { display: grid; gap: .9rem; }
.qb-card { border: 1.5px solid var(--line-strong); border-radius: var(--r); padding: .9rem 1rem 1rem; background: #fafbfa; display: grid; gap: .7rem; }
.qb-head { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; } .qb-head .tools { margin-left: auto; }
.qb-pts { display: flex; align-items: center; gap: .4rem; font-size: .88rem; color: var(--muted); } .qb-pts input { width: 70px; padding: .3em .5em; }
.qb-body { display: grid; gap: .5rem; } .qb-body p { margin: 0; }
.qb-opt { display: flex; align-items: center; gap: .6rem; } .qb-opt > input[type=radio], .qb-opt > input[type=checkbox] { width: 20px; height: 20px; flex: none; accent-color: var(--ok); }
.qb-add { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; padding: .8rem; border: 1.5px dashed var(--line-strong); border-radius: var(--r); }

/* small screens */
@media (max-width: 900px) {
  .topbar { display: flex; align-items: center; gap: .6rem; position: sticky; top: 0; z-index: 20; background: var(--board); color: #fff; padding: .5rem .8rem; }
  .topbar .icon-btn { color: #fff; } .topbar .brand { padding: 0; font-size: 1.1rem; }
  .side { transform: translateX(-100%); transition: transform .2s; width: min(84vw, 300px); }
  .nav-open .side { transform: none; } .nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(21,40,36,.5); z-index: 25; }
  #main { margin-left: 0; } .page { padding: 1.3rem 1rem 3rem; }
  h1 { font-size: 1.6rem; } .course-head { padding: 1.3rem 1.2rem; } .course-head h1 { font-size: 1.7rem; } .lesson-head h1 { font-size: 1.7rem; }
  .home-cols { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; } .auth-board { padding: 2rem 1.4rem; border-right: 0; border-bottom: 6px solid var(--chalk); } .auth-line { display: none; }
  .lesson-layout { grid-template-columns: 1fr; } .outline { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
  .outline-mod { display: none; } .outline-back { margin: 0; }
  .weeks > .btn { margin-left: 0; } .q-body { padding-left: 0; } .quiz-bar { top: 52px; }
  .lesson-foot .btn.big { order: -1; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* avatars, staff pages, discussions */
img.avatar { object-fit: cover; padding: 0; }
.avatar.big { width: 72px; height: 72px; font-size: 1.6rem; } .avatar.huge { width: 132px; height: 132px; font-size: 3rem; }
.staff-card { display: grid; gap: .3rem; justify-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem; text-decoration: none; color: inherit; }
.staff-card:hover { border-color: var(--board); } .staff-card h3 { margin-top: .5rem; } .staff-card p { margin: 0; }
.bio-head { display: flex; align-items: center; gap: 1.6rem; margin: 1.2rem 0 1.8rem; flex-wrap: wrap; } .bio-head p { font-size: 1.1rem; margin: .3rem 0 0; }
.bio-courses { margin-top: 2rem; }
.taught-by a { color: #fff; }
.threads-wrap, .thread { max-width: 820px; }
.threads { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.threads li + li { border-top: 1px solid var(--line); }
.threads a { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem; text-decoration: none; color: inherit; }
.threads a:hover { background: var(--paper); }
.thread-main { flex: 1; min-width: 0; } .thread-main strong, .thread-main small { display: block; } .thread-main small { color: var(--muted); }
.thread-count { text-align: center; min-width: 56px; } .thread-count strong, .thread-count small { display: block; } .thread-count small { color: var(--muted); }
.thread > .week-head { margin: 1rem 0; align-items: center; flex-wrap: wrap; }
.post { display: flex; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.2rem; margin-bottom: .8rem; }
.post-body { flex: 1; min-width: 0; } .post-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; min-height: 34px; }
.post .pre { margin: .3rem 0 0; } .reply-count { margin: 1.2rem 0 .6rem; }
.reply-box { display: grid; gap: .7rem; justify-items: start; margin-top: 1.2rem; }
.thread .post .post { margin: 0; }

/* buying and discount codes */
.buy-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0; padding: .9rem 1.1rem; background: var(--paper); border-radius: var(--r); }
.buy-total strong { font: 600 1.8rem var(--read); font-variant-numeric: lining-nums; } .buy-total s { color: var(--muted); font-size: 1rem; font-weight: 400; }
.code-row { flex-wrap: nowrap; } .code-row input { text-transform: uppercase; }
.toolbar h2 { margin: 0; } .page > .toolbar { margin-top: 1.8rem; }

.item-ic.t-discussion { background: #fde8e4; color: #a3402f; }
.item-thread { margin-top: 1.6rem; max-width: none; }

/* instructor panel and private messages */
.instructors { display: grid; gap: .8rem; margin: 0 0 1.8rem; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--chalk); color: var(--board-deep); font: 700 .75rem var(--ui); margin-left: auto; }
.conv-text .badge { margin-left: .5rem; }
.messages { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.conv-list { display: grid; gap: .3rem; }
.conv, .contact { display: flex; gap: .7rem; align-items: center; padding: .65rem .7rem; border-radius: 10px; text-decoration: none; color: inherit; }
.conv:hover, .contact:hover { background: rgba(0,0,0,.05); } .conv.on { background: var(--surface); box-shadow: inset 3px 0 0 var(--board); }
.conv-text { min-width: 0; flex: 1; } .conv-text strong { display: flex; align-items: center; } .conv-text small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact strong, .contact small { display: block; } .contact small { color: var(--muted); }
.pick-list.tall { max-height: 50vh; }
.conv-pane { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.3rem; min-height: 320px; }
.conv-pane.empty-pane { display: grid; place-items: center; text-align: center; }
.conv-head { display: flex; gap: .8rem; align-items: center; padding-bottom: .9rem; border-bottom: 1px solid var(--line); } .conv-head strong, .conv-head small { display: block; }
.msg-log { display: flex; flex-direction: column; gap: .6rem; padding: 1rem 0; max-height: 52vh; overflow: auto; }
.msg { max-width: 78%; background: var(--paper); border-radius: 14px 14px 14px 4px; padding: .6rem .9rem; align-self: flex-start; }
.msg.mine { align-self: flex-end; background: #dcebe5; border-radius: 14px 14px 4px 14px; }
.msg p { margin: 0; } .msg small { color: var(--muted); font-size: .75rem; }
.conv-pane .reply-box { margin-top: .4rem; justify-items: stretch; } .conv-pane .reply-box .btn { justify-self: end; }
@media (max-width: 900px) { .messages { grid-template-columns: 1fr; } .messages.open .conv-list { display: none; } }
.conv-list { min-width: 0; } .conv { min-width: 0; overflow: hidden; }
/* slides */
.lesson.wide { max-width: 1180px; }
.slides { margin-bottom: 1.6rem; }
.slide-stage { position: relative; width: 100%; background: #111; border-radius: var(--r); overflow: hidden; box-shadow: 0 2px 14px rgba(0,0,0,.18); }
.slide-frame { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: #111; pointer-events: none; }
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.slide-hit { position: absolute; top: 0; bottom: 0; width: 50%; border: 0; background: transparent; padding: 0; }
.slide-hit.prev { left: 0; cursor: w-resize; } .slide-hit.next { right: 0; cursor: e-resize; }
.slide-hit:focus-visible { outline-offset: -5px; }
.slide-stage:fullscreen { aspect-ratio: auto !important; width: 100vw; height: 100vh; border-radius: 0; background: #000; }
.slide-progress { height: 4px; background: var(--line); border-radius: 2px; margin-top: .7rem; overflow: hidden; }
.slide-progress span { display: block; height: 100%; background: var(--board); transition: width .2s; }
.slide-bar { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: .8rem; }
.slide-count { font-weight: 600; color: var(--muted); }
.slide-notes { margin-top: 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: .8rem 1.1rem; }
.slide-notes summary { font-weight: 600; cursor: pointer; }
.item-ic.t-slides { background: #f6ecd2; color: #7a5c14; }
.btn:disabled { opacity: .45; cursor: default; }

/* ---------- calmer course page: collapsible weeks ---------- */
.weeks { max-width: 820px; }
.course-desc { color: #3c4a45; }
.up-next { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem 1.5rem; margin-bottom: 1rem; }
.up-next-text { flex: 1; min-width: 240px; } .up-next-text p { margin: 0; } .up-next h3 { font-size: 1.6rem; margin: .1rem 0 .15rem; }
.up-next-label { font-weight: 700; font-size: .85rem; color: var(--ok); }
.up-next-progress { display: flex; align-items: center; gap: .8rem; margin-top: .8rem; max-width: 360px; } .up-next-progress small { color: var(--muted); white-space: nowrap; }
.instructors { display: grid; gap: .6rem; margin: 0 0 1.6rem; }
.instructor { display: flex; align-items: center; gap: .9rem; padding: .6rem .3rem; }
.instructor-text { flex: 1; min-width: 0; display: grid; line-height: 1.3; } .instructor-text small { color: var(--muted); font-size: .8rem; }
.week { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: .7rem; overflow: hidden; }
.week.current { border-color: #a8c3b9; box-shadow: 0 1px 0 rgba(31,58,52,.04), 0 6px 18px -10px rgba(31,58,52,.25); }
.week.locked { background: transparent; border-style: dashed; }
.week-sum { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; list-style: none; cursor: pointer; user-select: none; }
.week-sum::-webkit-details-marker { display: none; }
.week.static .week-sum { cursor: default; user-select: auto; }
details.week > .week-sum:hover { background: #fafbfa; }
.week-badge { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #e9efec; color: var(--board); font: 700 .9rem var(--ui); }
.week-badge .icon { width: 1rem; height: 1rem; stroke-width: 2.2; }
.week.current .week-badge { background: var(--board); color: #fff; }
.week.complete .week-badge { background: var(--ok); color: #fff; }
.week.locked .week-badge { background: transparent; border: 1.5px dashed var(--line-strong); color: var(--muted); }
.week-title { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.week-title strong { font: 600 1.4rem/1.2 var(--read); display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.week-title small { color: var(--muted); font-size: .85rem; }
.week.locked .week-title strong { color: var(--muted); }
.week-title .lock-note { color: var(--wait); font-weight: 600; display: block; }
.week-mini { width: 72px; flex: none; } .week-mini .progress { height: 6px; min-width: 0; }
.week-sum .chev { color: var(--muted); transition: transform .2s ease; }
details.week[open] > .week-sum .chev { transform: rotate(180deg); }
.week-panel { padding: 0 1.2rem 1rem calc(1.2rem + 32px + .9rem); }
.week-summary { color: var(--muted); margin: -.2rem 0 .6rem; }
.items { list-style: none; margin: 0; padding: 0; }
.items li { display: flex; align-items: center; }
.items li + li { border-top: 1px solid #edf1ef; }
.item-row { display: flex; align-items: center; gap: .8rem; padding: .65rem .5rem; margin: 0 -.5rem; flex: 1; min-width: 0; text-decoration: none; color: inherit; border-radius: 10px; }
a.item-row:hover { background: var(--paper); }
.week.locked .item-row { opacity: .55; }
.item-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: #e6eeea; color: #23594a; }
.item-ic .icon { width: 1.05rem; height: 1.05rem; }
.item-text { flex: 1; min-width: 0; } .item-title { display: block; font-weight: 600; line-height: 1.35; } .item-text small { display: block; color: var(--muted); font-size: .8rem; }
.item-state { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; flex: none; color: #fff; }
.item-state.done { background: var(--ok); border-color: var(--ok); } .item-state .icon { width: .8rem; height: .8rem; stroke-width: 3; }
.week-panel > .btn.dashed { margin-top: .7rem; }
.weeks > .btn { margin-top: .4rem; }
/* lesson page outline */
.outline-mod { margin: .2rem 0; }
.outline-mod summary { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .55rem .5rem; border-radius: 8px; cursor: pointer; list-style: none; font: 700 .85rem var(--ui); color: var(--muted); }
.outline-mod summary::-webkit-details-marker { display: none; }
.outline-mod summary:hover { background: rgba(0,0,0,.04); color: var(--ink); }
.outline-mod summary .chev { transition: transform .2s ease; flex: none; } .outline-mod[open] summary .chev { transform: rotate(180deg); }
.outline-mod.locked { display: flex; align-items: center; gap: .4rem; padding: .55rem .5rem; margin: .2rem 0; font: 700 .85rem var(--ui); color: var(--muted); opacity: .75; }
.outline-mod ul { padding-bottom: .4rem; }
@media (max-width: 900px) {
  .week-sum { padding: .9rem 1rem; gap: .75rem; } .week-panel { padding: 0 1rem .9rem; } .week-mini { display: none; }
  .up-next { padding: 1.1rem 1.1rem; } .up-next .btn.big { width: 100%; }
  .instructor { flex-wrap: wrap; } h1 { font-size: 1.9rem; } .course-head h1, .lesson-head h1 { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) { .chev { transition: none !important; } }

/* Cormorant's default numbers are old-style (a short "1", a "3" that dips); use full-height numbers everywhere.
   !important because every `font:` shorthand would otherwise switch them back. */
*, *::before, *::after { font-variant-numeric: lining-nums !important; }
.clock { font-variant-numeric: lining-nums tabular-nums !important; }

/* ---------- type: one clean sans (Figtree), sized for its larger letters ---------- */
body { font-size: 16px; line-height: 1.6; color: #1d2724; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
h1 { font-size: 2rem; } h2 { font-size: 1.35rem; } h3 { font-size: 1.12rem; }
.brand { font-size: 1.2rem; font-weight: 750; letter-spacing: -.015em; }
.course-head h1 { font-size: 2.2rem; letter-spacing: -.025em; } .lesson-head h1 { font-size: 2rem; }
.course-card-top h3 { font-size: 1.2rem; }
.up-next h3 { font-size: 1.25rem; }
.week-title strong { font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; }
.price { font-size: 1.3rem; font-weight: 750; } .stat strong { font-size: 1.9rem; font-weight: 750; }
.result-box strong { font-size: 1.7rem; font-weight: 750; } .buy-total strong { font-size: 1.5rem; font-weight: 750; }
.outline-back { font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; }
.auth-site { font-weight: 750; letter-spacing: -.03em; }
.prose { font-size: 1.05rem; line-height: 1.75; } .prose h2 { font-size: 1.35rem; } .prose h3 { font-size: 1.12rem; }
.q-prompt { font-weight: 600; }
.btn { font-weight: 650; letter-spacing: -.005em; }
.nav a { font-weight: 550; }
@media (max-width: 900px) { h1 { font-size: 1.65rem; } .course-head h1, .lesson-head h1 { font-size: 1.75rem; } }
