@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/inter-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/space-grotesk-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/space-grotesk-latin-700-normal.woff2) format("woff2"); }

:root {
  /* "Chalkboard": deep green, chalk white and a warm yellow. */
  --bg: #12241d;
  --surface: #1a3329;
  --surface-2: #1f3b30;
  --deep: #0c1914;
  --chalk: #f1efe6;
  --text: #f1efe6;
  --muted: #b7c4bb;
  --soft: #cfd8d1;
  --line: #2c4a3d;
  --brand: #f2c14e;
  --brand-dark: #ffd978;
  --on-brand: #12241d;
  --ok: #7ee2a8;
  --bad: #ff9b8a;
  --warn: #f2c14e;
  --radius: 14px;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 16px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, .page-title { font-family: var(--display); }
h1, .page-title { color: var(--text); letter-spacing: -0.01em; }
img { max-width: 100%; }
main { max-width: 1200px; margin: 0 auto; padding: 20px 32px 48px; }
@media (max-width: 700px) { main { padding: 16px 16px 40px; } }
h1, h2 { line-height: 1.25; }
code { background: var(--line); padding: 1px 5px; border-radius: 4px; }

.topbar { display: flex; align-items: center; gap: 24px; padding: 18px max(16px, calc((100% - 1200px) / 2 + 32px)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; flex-wrap: wrap; }
.brand { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand .dot { color: var(--brand); }
.search { flex: 1; display: flex; max-width: 420px; min-width: 200px; }
.search input { flex: 1; border-radius: 999px 0 0 999px; }
.search button { border-radius: 0 999px 999px 0; }
.topbar nav { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-left: auto; font-weight: 500; font-size: 15px; }
.topbar nav > a { color: var(--text); text-decoration: none; }
.topbar nav > a:hover { color: var(--brand); }
.topbar nav > a.quiet { color: var(--muted); }
.topbar nav > a.button { color: var(--on-brand); }
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot-inner { max-width: 1200px; margin: 0 auto; padding: 28px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot a { color: var(--muted); }

input[type=text], input[type=search], input[type=password], input[type=email], input[type=url], textarea, select {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit;
}
textarea { resize: vertical; }
input:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 1px; }
button, .button { display: inline-block; padding: 9px 16px; border: 0; border-radius: 8px; background: var(--brand); color: var(--on-brand); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
button:hover, .button:hover { background: var(--brand-dark); }
button:disabled { opacity: .6; cursor: progress; }
button.secondary, .button.secondary { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
button.link { background: none; color: var(--brand); padding: 0; font-weight: 400; }
button.danger { background: var(--bad); }
.danger-text { color: var(--bad) !important; }
form.inline { display: inline; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 14px; }
.chip.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.chips.small .chip { font-size: 13px; padding: 3px 10px; color: var(--brand); }
.chip:hover { border-color: var(--brand); color: var(--text); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px 16px; }
.card { display: flex; flex-direction: column; gap: 4px; color: var(--text); text-decoration: none; }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.card:hover .thumb img { transform: scale(1.03); }
.duration { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.8); color: #fff; font-size: 12px; padding: 1px 5px; border-radius: 4px; }
.card-title { font-weight: 600; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-caption { color: var(--muted); font-size: 14px; }
.empty { text-align: center; padding: 60px 16px; color: var(--muted); }
.page-title { font-size: 20px; }

.watch { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; }
.watch-side h2 { font-size: 16px; margin-top: 0; }
.watch-side .card { margin-bottom: 16px; }
.watch-title { font-size: 22px; margin: 4px 0 4px; }
.watch-main > .kicker { margin-top: 14px; }
.watch-caption { color: var(--muted); margin: 0 0 10px; }
.description { white-space: pre-line; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-top: 12px; }
.admin-links { font-size: 14px; }
.embed-code textarea { font-family: ui-monospace, monospace; font-size: 13px; margin-top: 8px; }
@media (max-width: 1000px) { .watch { grid-template-columns: 1fr; } }

.protected { -webkit-user-select: none; user-select: none; }
.protected .description, .protected textarea { -webkit-user-select: text; user-select: text; }
.player-wrap { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.player-wrap iframe, .player-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
body.embed { background: #000; margin: 0; }
body.embed .player-wrap { border-radius: 0; height: 100vh; aspect-ratio: auto; }

.quiz { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(10, 16, 22, .82); backdrop-filter: blur(3px); overflow-y: auto; }
.quiz[hidden] { display: none; }
.quiz-box { background: var(--surface); color: var(--text); border-radius: 14px; padding: 22px; width: min(560px, 100%); max-height: 100%; overflow-y: auto; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.quiz-box h2 { margin: 0 0 14px; font-size: 19px; }
.quiz-kicker { margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.quiz-options { display: grid; gap: 8px; }
.quiz-option { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; }
.quiz-option:has(input:checked) { border-color: var(--brand); }
.quiz-option input { margin-top: 4px; }
.quiz-option.right, .quiz-option.right:has(input:checked) { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.quiz-option.picked-wrong, .quiz-option.picked-wrong:has(input:checked) { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); }
.quiz-feedback { min-height: 1.5em; margin: 12px 0 0; }
.quiz-feedback.right { color: var(--ok); font-weight: 600; }
.quiz-feedback.wrong { color: var(--bad); }
.quiz-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 12px; }
.quiz-box label { display: block; }
.quiz-options-row { grid-template-columns: 1fr 1fr; }
.quiz-text { width: 100%; font: inherit; }
.order-item { align-items: center; cursor: default; }
.order-item > span:first-child { flex: 1; }
.order-moves { display: flex; gap: 4px; flex: none; }
.order-item { padding-top: 6px; padding-bottom: 6px; }
.order-moves button { padding: 2px 10px; min-width: 36px; line-height: 1.4; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.panel.narrow { max-width: 420px; margin: 40px auto; }
.panel > label, .panel > form > label, .panel fieldset > label, .panel .two > label { display: block; margin-bottom: 14px; font-weight: 600; }
.panel label input, .panel label textarea, .panel label select { margin-top: 4px; font-weight: 400; }
.sign-in-providers { display: grid; gap: 8px; margin: 16px 0; }
.sign-in-providers .button { text-align: center; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 0 0 14px; }
legend { font-weight: 600; padding: 0 4px; }
.hint { color: var(--muted); font-size: 13px; font-weight: 400; }
.req { color: var(--bad); font-size: 12px; font-weight: 400; }
label.check { display: flex !important; gap: 8px; align-items: center; font-weight: 400 !important; }
label.check input { margin: 0; }
.two { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; }
fieldset .two { grid-template-columns: 1fr 1fr; }
.thumb-preview { width: 200px; border-radius: 8px; }
.row { display: flex; gap: 8px; align-items: center; }
.alert { padding: 10px 14px; border-radius: 8px; border: 1px solid; }
.alert.error { color: var(--bad); border-color: var(--bad); }
.alert.ok { color: var(--ok); border-color: var(--ok); }
.alert.warn { color: var(--warn); border-color: var(--warn); }
.alert.info { color: var(--brand); border-color: var(--brand); }

.dropzone { display: flex !important; align-items: center; justify-content: center; min-height: 140px; border: 2px dashed var(--line); border-radius: var(--radius); cursor: pointer; text-align: center; padding: 16px; font-weight: 400 !important; }
.dropzone.over, .dropzone:hover { border-color: var(--brand); }
.source-tabs { display: flex; gap: 8px; margin: 0 0 14px; flex-wrap: wrap; }
.source-tabs label { display: flex !important; align-items: center; gap: 8px; padding: 8px 14px; border: 2px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 600; }
.source-tabs label:has(input:checked) { border-color: var(--brand); color: var(--brand); }
details.panel > summary { cursor: pointer; font-weight: 600; }
details.panel[open] > summary { margin-bottom: 12px; }
.dropzone input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.progress { position: relative; height: 34px; background: var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 14px; }
.progress .bar { position: absolute; inset: 0 auto 0 0; width: 0; background: color-mix(in srgb, var(--brand) 35%, transparent); transition: width .3s; }
.progress span { position: relative; display: block; padding: 6px 12px; font-size: 14px; }

.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs a.on { color: var(--text); border-color: var(--brand); font-weight: 600; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: 13px; color: var(--muted); font-weight: 600; }
.table .actions a { margin-right: 10px; white-space: nowrap; }
.table .actions .set-password { display: inline-flex; gap: 6px; align-items: center; margin-right: 10px; }
.table .actions .set-password input { width: 11em; }
.mini-thumb { width: 96px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; display: block; }
.status { font-size: 13px; padding: 2px 10px; border-radius: 999px; background: var(--line); text-transform: capitalize; white-space: nowrap; }
.status.ready { background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--ok); }
.status.failed { background: color-mix(in srgb, var(--bad) 20%, transparent); color: var(--bad); }
.status.processing { background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn); }
.danger-zone { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
@media (max-width: 700px) { .table thead { display: none; } .table td { display: block; border: 0; padding: 4px 12px; } .table tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; } .two { grid-template-columns: 1fr; } }

.q-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr); gap: 24px; align-items: start; }
@media (max-width: 1000px) { .q-layout { grid-template-columns: 1fr; } }
.q-list { list-style: none; padding: 0; margin: 0; }
.q-list > li { display: flex; gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.q-time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--brand); min-width: 48px; }
.q-body { flex: 1; }
.q-body ul { margin: 6px 0; padding-left: 18px; }
.q-body li.right { color: var(--ok); font-weight: 600; }
.q-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.option-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.option-row input[type=radio], .option-row input[type=checkbox] { width: 18px; height: 18px; flex: none; }
.option-num { width: 18px; flex: none; text-align: center; font-weight: 700; color: var(--muted); }
.q-type { display: inline-block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-right: 6px; }
.q-body ol { margin: 6px 0; padding-left: 22px; }
.q-body p.right { color: var(--ok); margin: 6px 0; }
blockquote.reflection { margin: 10px 0; padding: 10px 14px; border-left: 3px solid var(--brand); background: color-mix(in srgb, var(--brand) 6%, transparent); border-radius: 0 8px 8px 0; }
blockquote.reflection p { margin: 0 0 4px; white-space: pre-line; }
blockquote.reflection cite { font-size: 13px; color: var(--muted); font-style: normal; }

.bar-row { display: grid; grid-template-columns: minmax(120px, 2fr) 3fr 40px; gap: 10px; align-items: center; margin: 6px 0; }
.bar-row.right .bar-label { color: var(--ok); font-weight: 600; }
.bar-track { height: 12px; background: var(--line); border-radius: 6px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--brand); }
.bar-row.right .bar-fill { background: var(--ok); }
.bar-num { text-align: right; font-variant-numeric: tabular-nums; }

select { appearance: auto; }
.kicker { margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.kicker a { color: var(--brand); text-decoration: none; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shelf { margin-bottom: 32px; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; }
.shelf h2, .shelf-title { font-size: 28px; color: var(--text); }
.thumb.stacked { box-shadow: 6px -6px 0 -1px var(--surface-2), 12px -12px 0 -2px var(--line); margin: 12px 12px 0 0; overflow: visible; }
.thumb.stacked img { border-radius: var(--radius); }
.admin-inline { margin-left: 12px; }

.series-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; align-items: start; }
.series-head h1 { font-size: 30px; margin: 0 0 12px; }
.series-head .description { margin-bottom: 16px; }
.part-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; scroll-margin-top: 80px; }
.part-list li { scroll-margin-top: 80px; }
.part-list a { display: grid; grid-template-columns: 36px 220px 1fr; gap: 16px; align-items: center; padding: 10px; border-radius: var(--radius); color: var(--text); text-decoration: none; background: var(--surface); border: 1px solid var(--line); }
.part-list a:hover { border-color: var(--brand); color: var(--text); }
.part-num { font-weight: 700; color: var(--brand); text-align: center; font-variant-numeric: tabular-nums; }
.part-text { display: flex; flex-direction: column; gap: 4px; }
.jump { position: sticky; top: 80px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.jump h2 { margin: 0 0 10px; font-size: 17px; color: var(--text); }
.jump ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.jump a { color: var(--text); text-decoration: none; }
.jump a:hover { color: var(--brand-dark); }
@media (max-width: 900px) {
  .series-layout { grid-template-columns: 1fr; }
  .jump { display: none; }
  .part-list a { grid-template-columns: 28px 140px 1fr; gap: 10px; }
}

.part-nav { display: flex; justify-content: space-between; gap: 12px; margin: 14px 0; }
.playlist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 24px; }
.playlist h2 { margin: 0; font-size: 16px; }
.playlist h2 a { color: var(--brand); text-decoration: none; }
.playlist .hint { margin: 2px 0 8px; }
.playlist ol { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; }
.playlist li a { display: grid; grid-template-columns: 22px 100px 1fr; gap: 8px; align-items: center; padding: 6px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14px; }
.playlist li a:hover { background: var(--surface-2); color: var(--text); }
.playlist li.on a { background: var(--surface-2); }
.playlist img { width: 100px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; }
.playlist-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.narrow-left { max-width: 560px; margin-top: 24px; }
.q-list .mini-thumb { flex: none; }

.hidden-list { margin: 6px 0 0; padding-left: 20px; }
.hidden-list a { color: inherit; font-weight: 600; }

/* Profile */
.profile { max-width: 640px; margin-top: 20px; }
.details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 12px; }
.details dt { font-weight: 600; }
.details dd { margin: 0; }
.linked { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.linked li { display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.linked-email { overflow-wrap: anywhere; }
@media (max-width: 520px) { .linked li { grid-template-columns: 1fr auto; } .linked li strong { grid-column: 1 / -1; } }

/* ---- Home page ------------------------------------------------------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero { max-width: 900px; margin: 0 auto; padding: 56px 0 24px; text-align: center; }
.hero-kicker { margin: 0 0 18px; font-size: 15px; color: var(--muted); }
.hero h1 { margin: 0; font-size: clamp(40px, 6.4vw, 68px); line-height: 1.03; font-weight: 700; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .squiggle { display: block; margin: 6px auto 0; }
.hero-lead { margin: 26px auto 0; font-size: 19px; line-height: 1.6; color: var(--soft); max-width: 640px; }
.hero-search { margin: 36px auto 0; max-width: 560px; display: flex; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px; }
.hero-search input[type=search] { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; padding: 0 14px; font-size: 16px; border-radius: 10px; }
.hero-search button { height: 48px; padding: 0 22px; border-radius: 10px; font-size: 16px; }
.home-section { padding: 48px 0 8px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.section-head h2 { margin: 0; font-size: 28px; font-weight: 700; }
.section-head a { font-weight: 600; }

.feature { display: flex; flex-wrap: wrap; gap: 32px; text-decoration: none; background: var(--chalk); color: var(--on-brand); border-radius: 22px; padding: 28px; }
.feature:hover { color: var(--on-brand); box-shadow: 0 0 0 3px var(--brand); }
.feature-thumb { flex: 1 1 420px; min-width: 0; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #24463a; }
.feature-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-body { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.feature-meta { font-weight: 600; font-size: 14px; color: #3d5a4d; }
.feature-title { font-family: var(--display); font-size: clamp(28px, 3.4vw, 36px); font-weight: 700; line-height: 1.1; }
.feature-text { font-size: 17px; line-height: 1.55; color: #2e4439; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feature-parts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.feature-parts span { border: 1px solid #b9c2bb; border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 500; }
.feature-cta { align-self: flex-start; margin-top: 8px; background: var(--bg); color: var(--chalk); border-radius: 12px; padding: 14px 22px; font-weight: 600; }
.more-series { margin-top: 28px; }

.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.how-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.how-step { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--brand); }
.how-pic { aspect-ratio: 16 / 9; border-radius: 10px; background: var(--deep); display: flex; align-items: center; justify-content: center; padding: 14px; }
.how-card p { margin: 0; color: var(--soft); line-height: 1.55; }
.how-q { background: var(--chalk); color: var(--on-brand); border-radius: 10px; padding: 12px 14px; width: 100%; max-width: 260px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.how-q strong { font-size: 14px; }
.how-q span { border: 1px solid #c8cfc9; border-radius: 6px; padding: 5px 8px; }
.how-q span.picked { border: 2px solid var(--on-brand); padding: 4px 8px; font-weight: 600; }
.how-next { background: var(--brand); color: var(--on-brand); border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 14px; }
.card .thumb { border: 1px solid var(--line); }
.token-new { border-color: var(--brand); margin-top: 16px; }
.token-new input { font-family: ui-monospace, monospace; margin: 8px 0; }
.transcript { margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.transcript summary { cursor: pointer; font-weight: 600; }
.transcript ol { list-style: none; margin: 12px 0 0; padding: 0; max-height: 420px; overflow-y: auto; display: grid; gap: 6px; }
.transcript li { display: grid; grid-template-columns: 56px 1fr; gap: 10px; line-height: 1.5; }
.transcript button { font-variant-numeric: tabular-nums; text-align: left; }

/* Stats */
.period { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.period a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--soft); text-decoration: none; font-size: 14px; }
.period a.on { border-color: var(--brand); color: var(--brand); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.tile-label { font-size: 14px; color: var(--muted); }
.tile-value { font-family: var(--display); font-size: 28px; font-weight: 600; color: var(--text); }
.tile-note, .tile-delta { font-size: 13px; color: var(--muted); }
.tile-delta.up { color: var(--ok); }
.tile-delta.down { color: var(--bad); }
.chart { position: relative; width: 100%; min-height: 220px; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-axis { fill: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.chart-line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-area { fill: var(--brand); opacity: .1; }
.chart-bar { fill: var(--brand); }
.chart-marker { stroke: var(--muted); stroke-width: 1; opacity: .6; }
.chart-cross { stroke: var(--soft); stroke-width: 1; }
.chart-dot { fill: var(--brand); stroke: var(--surface); stroke-width: 2; }
.chart-tip { position: absolute; z-index: 2; pointer-events: none; max-width: 260px; padding: 8px 10px; background: var(--deep); border: 1px solid var(--line); border-radius: 8px; font-size: 13px; color: var(--text); box-shadow: 0 4px 16px rgba(0,0,0,.35); }
.chart-table { margin-top: 10px; }
.chart-table summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.stats-table td:not(:first-child), .stats-table th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.stats-table td:not(:first-child) { white-space: nowrap; }

/* Tag suggestions */
.tag-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -6px 0 16px; }
.tag-suggest #tag-chips { display: contents; }
.tag-chip { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--soft); font-size: 14px; font-weight: 500; cursor: pointer; }
.tag-chip:hover, .tag-chip:focus-visible { border-color: var(--brand); color: var(--brand); background: transparent; }
.tag-chip.existing { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); color: var(--text); }
.tag-chip.keyword { border-style: dashed; }

