:root {
  --ground: #EDF1EF; --surface: #FFFFFF; --surface-2: #E4EAE6;
  --ink: #121715; --ink-2: #5A645F; --ink-3: #8A938E; --rule: #D2D9D5;
  --accent: #136A48; --accent-ink: #FFFFFF; --accent-soft: #DCEDE4;
  --warn: #8A5A11; --warn-soft: #F5E9D4; --danger: #A3312A;
  --heat-0: #DFE6E2; --heat-1: #AFD9A8; --heat-2: #7CD164; --heat-3: #4FC42E; --heat-4: #2FA320;
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: 16px;
  color-scheme: light;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0C100E; --surface: #141917; --surface-2: #1D2320;
    --ink: #E3EAE6; --ink-2: #99A49E; --ink-3: #6D7872; --rule: #252D29;
    --accent: #57D69B; --accent-ink: #06140D; --accent-soft: #16261F;
    --warn: #D9A855; --warn-soft: #2A2114; --danger: #F08A80;
    --heat-0: #1F2723; --heat-1: #2E5A33; --heat-2: #3C9440; --heat-3: #40C42E; --heat-4: #40F522;
    color-scheme: dark;
  }
}
/* The player is dark regardless of system theme: people watch in dark rooms (spec §11). */
:root[data-theme="dark"], .player-body {
  --ground: #0C100E; --surface: #141917; --surface-2: #1D2320;
  --ink: #E3EAE6; --ink-2: #99A49E; --ink-3: #6D7872; --rule: #252D29;
  --accent: #57D69B; --accent-ink: #06140D; --accent-soft: #16261F;
  --warn: #D9A855; --warn-soft: #2A2114; --danger: #F08A80;
  --heat-0: #1F2723; --heat-1: #2E5A33; --heat-2: #3C9440; --heat-3: #40C42E; --heat-4: #40F522;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--f-body); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--accent); }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button { font: inherit; color: inherit; }
q { quotes: "“" "”"; }
kbd { font-family: var(--f-mono); font-size: .8em; border: 1px solid var(--rule); border-radius: 3px; padding: 0 4px; }

.mono { font-family: var(--f-mono); font-size: .86em; letter-spacing: .01em; }
.meta { color: var(--ink-2); font-size: .92em; }
.small { font-size: .82rem; }
.muted { color: var(--ink-3); }
.warn { color: var(--warn); }
.label, .kicker {
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); font-weight: 600; margin: 0 0 10px;
}
.kicker { color: var(--accent); }

/* ---- chrome ---- */
.top { border-bottom: 1px solid var(--rule); background: var(--ground); position: sticky; top: 0; z-index: 20; }
.top-in { max-width: 1080px; margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-family: var(--f-display); font-weight: 700; letter-spacing: -.01em; font-size: 17px; }
.top-nav { display: flex; align-items: center; gap: 14px; }
.icon-btn { text-decoration: none; color: var(--ink); font-size: 20px; line-height: 1; padding: 4px; }
.me-link { font-family: var(--f-mono); font-size: 13px; text-decoration: none; }
.foot { border-top: 1px solid var(--rule); margin-top: 64px; }
.foot-in { max-width: 1080px; margin: 0 auto; padding: 24px var(--gutter) 48px; color: var(--ink-2); font-size: 14px; }
.foot-in p { max-width: 70ch; }

.page { max-width: 1080px; margin: 0 auto; padding: 28px var(--gutter) 0; }
.page.narrow { max-width: 680px; }
.page section { margin-top: 40px; }
.crumbs { font-family: var(--f-mono); font-size: 13px; margin: 0 0 16px; color: var(--ink-2); }
.crumbs a { text-decoration: none; }
h1, h2, h3 { font-family: var(--f-display); letter-spacing: -.018em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(30px, 6vw, 48px); margin: 0 0 10px; font-weight: 700; }
h2 { font-size: 22px; }
.prose p, .prose li { max-width: 66ch; }

.btn {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  font-family: var(--f-display); font-weight: 600; font-size: 15px; padding: 9px 16px; border-radius: 6px; cursor: pointer; text-decoration: none;
}
.btn.ghost { background: transparent; color: var(--accent); }
.btn:disabled { opacity: .5; cursor: default; }
.badge { display: inline-block; font-family: var(--f-mono); font-size: 12px; border: 1px solid var(--rule); background: var(--surface); border-radius: 3px; padding: 1px 7px; margin: 0 4px 4px 0; }
.tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; color: var(--ink-2); }
.tag.pending { color: var(--warn); } .tag.hidden { color: var(--danger); }

/* ---- heat strip ---- */
.heat { display: flex; gap: 2px; height: 30px; margin: 14px 0; align-items: stretch; }
.heat > * { flex: 1; min-width: 2px; border-radius: 1px; background: var(--heat-0); position: relative; }
.heat .h1 { background: var(--heat-1); } .heat .h2 { background: var(--heat-2); }
.heat .h3 { background: var(--heat-3); } .heat .h4 { background: var(--heat-4); }
.heat .pk::after { content: ""; position: absolute; left: 50%; top: -6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.heat a:hover { outline: 1px solid var(--ink); }
.ep-card .heat { height: 18px; margin: 10px 0 0; }

/* ---- home ---- */
.hero { padding: 20px 0 8px; }
.hero h1 { max-width: 18ch; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 58ch; margin: 0; }
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.ep-card, .moment-card {
  display: grid; gap: 4px; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px;
  padding: 14px 16px; text-decoration: none; color: var(--ink);
}
.ep-card:hover, .moment-card:hover { border-color: var(--accent); }
.ep-card .play { color: var(--accent); font-size: 14px; }
.ep-title { font-family: var(--f-display); font-weight: 600; font-size: 18px; }
.moments { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.moment-card q { font-family: var(--f-display); font-weight: 600; font-size: 19px; line-height: 1.25; }
.moment-card .mono { color: var(--accent); }
.moment-card .quote { font-style: italic; color: var(--ink-2); }
.title-list { list-style: none; padding: 0; margin: 0; columns: 2 260px; }
.title-list li { padding: 5px 0; break-inside: avoid; }

/* ---- title / episode ---- */
.title-head { display: flex; gap: 20px; align-items: flex-start; }
.poster { border-radius: 4px; flex: none; }
.where { margin: 10px 0; }
.where .label { display: inline; margin-right: 8px; }
.line-search .row { display: flex; gap: 8px; }
.line-search input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 9px 12px; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); color: var(--ink); }
.line-search button { font-family: var(--f-display); font-weight: 600; border: 0; border-radius: 6px; background: var(--accent); color: var(--accent-ink); padding: 0 16px; cursor: pointer; }
.ep-list, .peak-list, .related, .line-hits, .profile-list, .queue { list-style: none; padding: 0; margin: 0; }
.ep-list li a, .ep-list li > span { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); flex-wrap: wrap; }
.ep-list .meta { margin-left: auto; }
.ep-h1 .mono { color: var(--accent); font-size: .5em; vertical-align: middle; }
.stats { font-family: var(--f-mono); font-size: 14px; margin: 14px 0 0; }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 12px; }
.door { display: grid; gap: 2px; padding: 16px; border-radius: 8px; border: 1px solid var(--rule); background: var(--surface); text-decoration: none; color: var(--ink); }
.door strong { font-family: var(--f-display); font-size: 17px; }
.door span { color: var(--ink-2); font-size: 14px; }
.door.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.door.primary span { color: var(--accent-ink); opacity: .8; }
.promise { font-family: var(--f-mono); font-size: 13.5px; background: var(--accent-soft); border-left: 3px solid var(--accent); padding: 10px 14px; margin: 0 0 12px; border-radius: 0 4px 4px 0; }
.peak-list li a, .related li a { display: block; padding: 8px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.peak-list .mono, .related .mono { color: var(--accent); }
.line-hits li a { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.line-hits q { font-family: var(--f-display); font-size: 18px; font-weight: 600; }

/* ---- comments ---- */
.cmt { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; margin: 0 0 8px; }
.cmt header { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-2); }
.cmt .who { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font-weight: 500; }
.cmt .at { margin-left: auto; }
.cmt .at a { color: var(--ink-2); text-decoration: none; }
.cmt p { margin: 4px 0 2px; white-space: pre-wrap; overflow-wrap: anywhere; }
.cmt footer { display: flex; gap: 14px; font-family: var(--f-mono); font-size: 12.5px; }
.cmt footer button { background: none; border: 0; padding: 4px 0; color: var(--ink-2); cursor: pointer; }
.cmt footer .vote.on { color: var(--accent); }
.cmt .tag.rw { color: var(--warn); }
.cmt.mine { border-color: var(--accent); }
.cmt .held { font-family: var(--f-mono); font-size: 11.5px; color: var(--warn); }
.spoiler-body { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; position: relative; }
.spoiler-body p { filter: blur(6px); user-select: none; }
.spoiler-body .tag { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 1; color: var(--ink); }
.spoiler-body.revealed p { filter: none; user-select: text; }
.spoiler-body.revealed .tag { display: none; }
.reply { margin-left: 22px; }
.mark { border-radius: 3px; vertical-align: middle; flex: none; }

/* ---- moment ---- */
.moment h1 { font-size: clamp(26px, 5vw, 40px); }
.moment-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 22px; }
.moment-nav { display: flex; justify-content: space-between; gap: 8px; font-family: var(--f-mono); font-size: 13px; margin: 20px 0; }
.rail.static { max-width: 680px; }

/* ---- auth / profile / admin ---- */
.auth form { display: grid; gap: 14px; margin: 20px 0; }
.auth label { display: grid; gap: 4px; font-family: var(--f-mono); font-size: 13px; color: var(--ink-2); }
.auth input { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); color: var(--ink); }
.form-error { color: var(--danger); margin: 0; font-size: 15px; }
.profile-head { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.profile-head h1 { margin: 0; }
.profile-list li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.profile-list q { display: block; color: var(--ink-2); margin: 4px 0 8px; }
.q-item { border: 1px solid var(--rule); border-radius: 8px; padding: 12px 14px; margin: 0 0 10px; background: var(--surface); }
.q-item.focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.q-item.done { opacity: .4; }
.q-body { font-size: 18px; margin: 6px 0; white-space: pre-wrap; }
.tablewrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); margin: 12px 0 24px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14px; }
th { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; text-align: left; padding: 10px 12px; background: var(--surface-2); color: var(--ink-2); }
td { padding: 9px 12px; border-top: 1px solid var(--rule); vertical-align: top; }
td.num { font-variant-numeric: tabular-nums; text-align: right; font-family: var(--f-mono); }

/* ---- toast / sheet ---- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--ground); font-family: var(--f-mono); font-size: 13.5px;
  padding: 10px 16px; border-radius: 6px; z-index: 100; max-width: calc(100vw - 32px); box-shadow: 0 6px 24px rgb(0 0 0 / .25); }
.sheet-backdrop { position: fixed; inset: 0; background: rgb(0 0 0 / .55); z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--surface); color: var(--ink); width: 100%; max-width: 520px; border-radius: 14px 14px 0 0; border: 1px solid var(--rule); padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); max-height: 88vh; overflow-y: auto; }
@media (min-width: 720px) { .sheet-backdrop { align-items: center; } .sheet { border-radius: 14px; } }
.sheet h2 { font-size: 18px; margin: 0 0 10px; }
.sheet select, .sheet textarea { width: 100%; font: inherit; font-size: 16px; padding: 8px; border-radius: 6px; border: 1px solid var(--rule); background: var(--ground); color: var(--ink); margin: 0 0 10px; }
.sheet-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }

/* ============================================================================
   player — one screen, three zones: read, navigate, write (spec §11)
   ============================================================================ */
.player-body { height: 100dvh; overflow: hidden; }
.watch-app { height: 100dvh; display: grid; grid-template-rows: auto 1fr auto auto; max-width: 720px; margin: 0 auto; }
.p-head { display: flex; align-items: center; gap: 10px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; border-bottom: 1px solid var(--rule); background: var(--ground); }
.p-head .back { text-decoration: none; font-family: var(--f-mono); font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.p-clock { margin: 0 auto; background: none; border: 1px solid transparent; border-radius: 6px; font-family: var(--f-mono); font-size: 22px; font-weight: 600;
  letter-spacing: .02em; padding: 2px 10px; cursor: pointer; font-variant-numeric: tabular-nums; }
.p-clock:hover { border-color: var(--rule); }
.p-clock.paused { color: var(--warn); }
.p-clock.archive { color: var(--ink-2); }
.p-sync { background: none; border: 1px solid var(--rule); border-radius: 6px; font-family: var(--f-mono); font-size: 13px; padding: 6px 10px; cursor: pointer; white-space: nowrap; }
.p-rail { overflow-y: auto; padding: 12px; overscroll-behavior: contain; position: relative; }
.p-rail .empty { color: var(--ink-3); font-family: var(--f-mono); font-size: 13px; text-align: center; margin: 40px 16px; }
.p-rail .more { display: block; margin: 0 auto 10px; background: none; border: 1px dashed var(--rule); border-radius: 6px; padding: 6px 12px; font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.p-rail .bucket-mark { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); text-align: center; margin: 14px 0 8px; letter-spacing: .08em; }
.cmt.fresh { animation: fresh .5s ease-out; }
@keyframes fresh { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cmt.fresh { animation: none; } }
.chip { position: sticky; bottom: 8px; display: block; margin: 0 auto; width: max-content; max-width: 100%; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px;
  padding: 7px 14px; font-family: var(--f-mono); font-size: 13px; cursor: pointer; box-shadow: 0 4px 14px rgb(0 0 0 / .35); z-index: 5; }
.chip.soft { background: var(--surface-2); color: var(--ink); border: 1px solid var(--rule); }
.p-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 0 12px; }
.p-chips .chip { position: static; margin: 6px 0 0; }

.p-nav { border-top: 1px solid var(--rule); padding: 8px 12px 6px; display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; }
.p-nav .jump { background: none; border: 1px solid var(--rule); border-radius: 6px; width: 38px; height: 38px; font-size: 18px; cursor: pointer; }
.scrub { position: relative; height: 38px; cursor: pointer; touch-action: none; }
.scrub .heat { height: 100%; margin: 0; gap: 1px; }
.scrub .heat > * { pointer-events: none; }
.scrub .you { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); margin-left: -1px; pointer-events: none; box-shadow: 0 0 0 1px var(--ground); }
.scrub .you::after { content: "you"; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); font-family: var(--f-mono); font-size: 10px; color: var(--ink-2); }
.scrub .ahead { position: absolute; top: 0; bottom: 0; right: 0; background: repeating-linear-gradient(135deg, transparent 0 4px, rgb(0 0 0 / .25) 4px 6px); pointer-events: none; }
.peek { position: absolute; bottom: calc(100% + 8px); transform: translateX(-50%); background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 8px 10px;
  width: min(280px, 80vw); font-size: 14px; z-index: 10; pointer-events: none; box-shadow: 0 6px 20px rgb(0 0 0 / .4); }
.peek .mono { color: var(--accent); display: block; }

.p-compose { border-top: 1px solid var(--rule); padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--ground); }
.p-compose form { display: grid; gap: 6px; }
.p-compose textarea { width: 100%; resize: none; font: inherit; font-size: 16px; line-height: 1.4; padding: 9px 11px; border-radius: 8px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); min-height: 44px; max-height: 120px; }
.p-compose .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-2); }
.p-compose label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.p-compose .send { margin-left: auto; padding: 6px 14px; font-size: 14px; }
.anchor-chip { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--rule); border-radius: 999px; padding: 1px 4px 1px 10px; }
.anchor-chip button { background: none; border: 0; cursor: pointer; font-family: var(--f-mono); font-size: 13px; padding: 2px 6px; color: var(--accent); }
.anchor-adjust { display: flex; align-items: center; gap: 8px; }
.anchor-adjust input { flex: 1; accent-color: var(--accent); }
.replying { font-family: var(--f-mono); font-size: 12px; color: var(--accent); }
.replying button { background: none; border: 0; color: var(--ink-2); cursor: pointer; }
.signin-note { font-family: var(--f-mono); font-size: 13px; text-align: center; margin: 4px 0; }

/* armed / overlays */
.p-stage { padding: 24px 16px; overflow-y: auto; }
.p-stage h1 { font-size: 26px; }
.p-stage .instruction { font-family: var(--f-display); font-size: 21px; line-height: 1.3; margin: 18px 0; }
.versions { display: grid; gap: 8px; margin: 12px 0 20px; }
.versions label { display: flex; gap: 10px; align-items: center; border: 1px solid var(--rule); border-radius: 8px; padding: 12px 14px; cursor: pointer; background: var(--surface); }
.versions input { accent-color: var(--accent); }
.big-start { width: 100%; justify-content: center; font-size: 20px; padding: 18px; border-radius: 10px; }
.alt-starts { display: grid; gap: 8px; margin-top: 18px; }
.alt-starts .btn { justify-content: center; }
.time-entry { display: flex; gap: 8px; margin-top: 8px; }
.time-entry input { flex: 1; font-family: var(--f-mono); font-size: 18px; padding: 8px 10px; border-radius: 6px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); min-width: 0; }
.overlay-end { position: fixed; inset: 0; background: rgb(0 0 0 / .7); display: flex; align-items: center; justify-content: center; z-index: 70; padding: 16px; }
.overlay-end .sheet { border-radius: 14px; }

/* resync sheet */
.resync-list { list-style: none; padding: 0; margin: 0 0 10px; }
.resync-list button { width: 100%; text-align: left; background: var(--ground); border: 1px solid var(--rule); border-radius: 8px; padding: 12px; margin: 0 0 6px; cursor: pointer; display: grid; gap: 2px; }
.resync-list button q { font-family: var(--f-display); font-weight: 600; font-size: 17px; line-height: 1.25; }
.resync-list .mono { color: var(--ink-3); font-size: 12px; }
.resync-list .est { border-color: var(--accent); }
.resync-list .est .mono::after { content: " ◀ est."; color: var(--accent); }
.resync-tools { display: flex; justify-content: space-between; gap: 8px; }
.resync-tools button { background: none; border: 0; font-family: var(--f-mono); font-size: 13px; color: var(--accent); cursor: pointer; padding: 6px 0; }
.resync-search { display: flex; gap: 6px; margin: 8px 0; }
.resync-search input { flex: 1; font: inherit; font-size: 16px; padding: 8px 10px; border-radius: 6px; border: 1px solid var(--rule); background: var(--ground); color: var(--ink); min-width: 0; }

/* ============================================================================
   timeline (archive mode)
   ============================================================================ */
.timeline-app { max-width: 1080px; margin: 0 auto; padding: 16px var(--gutter) 160px; }
.gate { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 18px; margin: 12px 0 20px; }
.gate h1 { font-size: 26px; margin-bottom: 6px; }
.gate-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.gate-row input[type=range] { flex: 1; accent-color: var(--accent); }
.gate-row output { font-family: var(--f-mono); font-size: 18px; font-weight: 600; min-width: 80px; text-align: right; }
.gate-sticky { position: sticky; top: 49px; z-index: 10; background: var(--ground); border-bottom: 1px solid var(--rule); padding: 8px 0; display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 13px; }
.gate-sticky input { flex: 1; accent-color: var(--accent); }
.tl-grid { display: grid; grid-template-columns: minmax(0, 1fr) 36px; gap: 16px; }
.tl-main { min-width: 0; max-width: 680px; }
.landmark-divider { margin: 28px 0 12px; display: grid; gap: 2px; }
.landmark-divider .mono { color: var(--accent); font-size: 12px; }
.landmark-divider q { font-family: var(--f-display); font-weight: 600; font-size: 19px; line-height: 1.25; }
.tl-bucket { scroll-margin-top: 110px; margin: 0 0 6px; }
.tl-bucket > h3 { font-family: var(--f-mono); font-size: 12px; font-weight: 500; color: var(--ink-3); margin: 14px 0 6px; display: flex; justify-content: space-between; letter-spacing: .06em; }
.tl-bucket > h3 button { background: none; border: 0; color: var(--accent); font-family: var(--f-mono); font-size: 12px; cursor: pointer; }
.tl-stop { font-family: var(--f-mono); font-size: 13px; text-align: center; color: var(--ink-2); border: 1px dashed var(--rule); border-radius: 8px; padding: 18px; margin: 20px 0; }
.minimap { position: sticky; top: 110px; height: calc(100vh - 140px); display: flex; flex-direction: column; gap: 1px; }
.minimap a { flex: 1; min-height: 1px; background: var(--heat-0); border-radius: 1px; }
.minimap .h1 { background: var(--heat-1); } .minimap .h2 { background: var(--heat-2); } .minimap .h3 { background: var(--heat-3); } .minimap .h4 { background: var(--heat-4); }
.minimap .locked { opacity: .25; pointer-events: none; }
.minimap .here { outline: 2px solid var(--ink); outline-offset: 1px; }
.tl-compose { position: fixed; left: 0; right: 0; bottom: 0; background: var(--ground); border-top: 1px solid var(--rule); z-index: 30; }
.tl-compose .p-compose { max-width: 720px; margin: 0 auto; border-top: 0; }

@media (max-width: 520px) {
  .doors { grid-template-columns: 1fr; }
  .title-head { flex-direction: column; }
  .p-clock { font-size: 19px; padding: 2px 6px; }
  .tl-grid { grid-template-columns: minmax(0, 1fr) 18px; gap: 8px; }
}
