:root {
  --bg: #fbfaf7; --surface: #ffffff; --ink: #1d2128; --ink-2: #4a5160; --ink-3: #7b8394;
  --line: #e4e1d8; --accent: #2f5fd0; --accent-ink: #ffffff; --warn: #b4560a;
  --shadow: 0 1px 2px rgb(20 24 32 / .06), 0 6px 20px rgb(20 24 32 / .06);
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: Charter, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sat: 55%; --lum: 52%;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #14171c; --surface: #1b1f26; --ink: #e8eaee; --ink-2: #b4bac6; --ink-3: #848c9c; --line: #2c323c; --accent: #7fa2ff; --accent-ink: #0d1424; --warn: #f0a35e; --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 6px 20px rgb(0 0 0 / .35); --sat: 48%; --lum: 62%; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 4.5rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
kbd { font: 600 .68rem/1 var(--mono); padding: .18rem .3rem; border: 1px solid var(--line); border-radius: 4px; margin-right: .4rem; color: var(--ink-3); background: var(--bg); }
.muted { color: var(--ink-3); font-size: .875rem; }

/* ---- top bar ---- */
.bar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar-in { max-width: 70rem; margin: 0 auto; padding: .6rem 1rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 650; letter-spacing: -.01em; margin-right: auto; }
.brand-mark { width: 1.25rem; height: 1.25rem; border-radius: 6px; background: var(--accent); position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 5px 4px; background: linear-gradient(var(--accent-ink) 0 2px, transparent 2px 4px, var(--accent-ink) 4px 6px, transparent 6px); opacity: .9; }
.levels { display: inline-flex; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.lv { border: 0; background: transparent; padding: .38rem .8rem; border-radius: 7px; cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--ink-2); transition: background .2s, color .2s; display: inline-flex; align-items: center; }
.lv:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.lv[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); }
.lv[aria-checked="true"] kbd { color: var(--accent-ink); background: transparent; border-color: color-mix(in srgb, var(--accent-ink) 40%, transparent); }
.lv:disabled { opacity: .4; cursor: not-allowed; }
.bar-actions { display: flex; gap: .5rem; }
.btn { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: .4rem .8rem; cursor: pointer; font-size: .875rem; font-weight: 550; }
.btn:hover:not(:disabled) { border-color: var(--accent); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; text-decoration: underline; }
.menu { position: relative; }
.pop { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 40; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: .5rem; min-width: 16rem; }
.pop table { border-collapse: collapse; width: 100%; }
.pop td { padding: .2rem .25rem; font-size: .875rem; }
.pop td:first-child { padding-right: .8rem; color: var(--ink-2); }
.pop .btn { padding: .25rem .6rem; }

/* ---- intake ---- */
.intake-in { max-width: 44rem; margin: 0 auto; padding: 4rem 1rem 3rem; }
.intake h1 { font: 700 clamp(1.8rem, 4vw, 2.6rem)/1.1 var(--serif); letter-spacing: -.02em; margin: 0 0 .8rem; }
.lede { color: var(--ink-2); font-size: 1.1rem; margin: 0 0 1.6rem; max-width: 36rem; }
.drop { border: 2px dashed var(--line); border-radius: 14px; padding: 2.2rem 1rem; text-align: center; display: grid; gap: .3rem; background: var(--surface); transition: border-color .2s, background .2s; }
.drop.over, .drop:focus-visible { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.paste { margin: 1rem 0; }
.paste summary { cursor: pointer; color: var(--ink-2); }
textarea { width: 100%; margin-top: .6rem; padding: .7rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: .85rem/1.45 var(--mono); }
.row { display: flex; gap: .8rem; align-items: center; margin-top: .6rem; flex-wrap: wrap; }
.fields input { width: 4.5rem; padding: .3rem .4rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font: inherit; }
.recent { margin-top: 1.5rem; }
.recent h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 0 0 .4rem; }
.recent button { display: block; width: 100%; text-align: left; padding: .5rem .7rem; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; margin-bottom: .35rem; cursor: pointer; }
.recent button:hover { border-color: var(--accent); }
.privacy { margin-top: 2rem; font-size: .8rem; color: var(--ink-3); max-width: 36rem; }
body.has-paper .intake { display: none; }

/* ---- level 0 header ---- */
.l0 { max-width: 70rem; margin: 0 auto; padding: 1.4rem 1rem .6rem; }
.l0-title { font: 600 .8rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); margin: 0 0 .2rem; }
.l0-paper { font: 700 1.25rem/1.25 var(--serif); margin: 0 0 .9rem; }
.thesis { font: 1.15rem/1.45 var(--serif); margin: 0 0 1rem; padding-left: .9rem; border-left: 3px solid var(--accent); max-width: 52rem; }
.thesis.empty { color: var(--ink-3); font-style: italic; border-color: var(--line); }
.lists { display: grid; gap: .4rem; margin: 0 0 1rem; }
.list-pill { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .45rem .7rem; font-size: .92rem; }
.list-pill summary { cursor: pointer; display: flex; gap: .5rem; align-items: baseline; }
.list-pill .tag { font: 700 .65rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.list-pill ol { margin: .4rem 0 .1rem 1.2rem; padding: 0; color: var(--ink-2); }
.list-pill .go { margin-left: auto; font-size: .8rem; }
.budget { margin: .6rem 0 .3rem; }
.budget-head { display: flex; justify-content: space-between; align-items: baseline; font-size: .82rem; color: var(--ink-3); margin-bottom: .3rem; gap: 1rem; flex-wrap: wrap; }
.cells { display: grid; grid-template-columns: repeat(var(--cells), 1fr); grid-template-rows: 1.5rem auto; column-gap: 2px; row-gap: .35rem; }
.cell { grid-row: 1; }
.seg-label { font-size: .72rem; line-height: 1.25; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-top: 2px solid hsl(var(--hue) var(--sat) var(--lum)); padding-top: .2rem; cursor: pointer; min-width: 0; }
.seg-label:hover { color: var(--ink); }
.cell { background: hsl(var(--hue) var(--sat) var(--lum)); border-radius: 2px; cursor: pointer; transition: transform .15s, opacity .15s; }
.cells:hover .cell { opacity: .45; }
.cells .cell:hover, .cells .cell.hl { opacity: 1; transform: scaleY(1.25); }
.legend { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin-top: .45rem; font-size: .78rem; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: .3rem; cursor: pointer; }
.legend i { width: .7rem; height: .7rem; border-radius: 2px; background: hsl(var(--hue) var(--sat) var(--lum)); }
.cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 1rem; }
.cta p { margin: 0; color: var(--ink-2); font-size: .92rem; flex: 1 1 18rem; }
.progress { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; flex: 1 1 12rem; }
.progress > i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .3s; }
.banner { background: color-mix(in srgb, var(--warn) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 45%, var(--line)); border-radius: 10px; padding: .45rem .7rem; font-size: .85rem; margin-bottom: .8rem; }
.l0 .pages { font-size: .82rem; color: var(--ink-3); }
.l0 .pages input { width: 3.6rem; padding: .1rem .3rem; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--ink); font: inherit; }

/* ---- paper ---- */
.paper { max-width: 52rem; margin: 0 auto; padding: 1rem 1rem 6rem; }
body[data-level="3"] .paper { max-width: 70rem; }
.paper { transition: max-width .45s ease; }
.sec { margin-top: 1.2rem; border-top: 1px solid var(--line); }
.sec-head { display: flex; align-items: baseline; gap: .8rem; padding: .8rem .2rem; --h: hsl(var(--hue) var(--sat) var(--lum)); }
body[data-level="3"] .sec-head, .sec[data-lv="l1"] .sec-head { cursor: pointer; }
.sec-head:hover .sec-name { color: var(--accent); }
.c-title { flex: 1 1 16rem; min-width: 0; display: flex; gap: .6rem; align-items: baseline; }
.sec-num { font: 700 .8rem/1 var(--mono); color: var(--accent-ink); background: var(--h); padding: .22rem .4rem; border-radius: 4px; min-width: 2rem; text-align: center; }
.sec-name { font: 700 1.3rem/1.2 var(--serif); letter-spacing: -.01em; transition: color .15s; }
.c-q { flex: 0 0 3.2rem; text-align: right; font: 600 .85rem/1 var(--mono); color: var(--ink-2); }
.c-floats, .c-purpose { flex: 0 0 0; max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; font-size: .9rem; color: var(--ink-2); transition: flex .45s ease, max-width .45s ease, opacity .3s; }
.c-floats::after { content: ""; }
body[data-level="3"] .sec[data-lv="l1"] .c-floats { flex: 0 0 8.5rem; max-width: 8.5rem; opacity: 1; }
body[data-level="3"] .sec[data-lv="l1"] .c-purpose { flex: 2 1 0; max-width: 40rem; opacity: 1; white-space: normal; }
body[data-level="3"] .sec[data-lv="l1"] .c-title { flex: 1 1 0; }
body[data-level="3"] .sec[data-lv="l1"] .sec-name { font-size: 1.05rem; }
.sec .badge, .grp .badge { font: 600 .66rem/1 var(--sans); padding: .2rem .4rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); color: var(--accent); background: transparent; cursor: pointer; white-space: nowrap; }
.badge:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.flash { animation: flash 1.4s ease; }
@keyframes flash { 0%, 60% { background: color-mix(in srgb, var(--accent) 18%, transparent); } 100% { background: transparent; } }

/* collapsible rows: 1fr -> 0fr animates height without measuring */
.cx { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .5s ease, opacity .35s ease; }
.cx > .cx-in { overflow: hidden; min-height: 0; }
.sec[data-lv="l1"] > .sec-body { grid-template-rows: 0fr; opacity: 0; transition-delay: .3s; }
.sec[data-lv="open"] > .sec-body { transition-delay: 0s; }

.grp { margin: .2rem 0 1.1rem; }
.grp-title { font: 650 1rem/1.3 var(--sans); margin: .8rem 0 .4rem; color: var(--ink-2); }
.grp-title .gl { font-family: var(--mono); color: var(--ink-3); margin-right: .4rem; }
.grp-richwrap, .grp-titlewrap { grid-template-rows: 0fr; opacity: 0; }
.grp[data-lv="l2"] .grp-richwrap, .grp[data-ov] .grp-richwrap { grid-template-rows: 1fr; opacity: 1; transition-delay: .3s; }
.grp:not([data-lv="l2"]) .grp-titlewrap { grid-template-rows: 1fr; opacity: 1; }
.grp[data-lv="l2"] .grp-titlewrap { transition-delay: 0s; }
.grp-rich { display: flex; align-items: baseline; gap: .7rem; width: 100%; text-align: left; border: 0; background: transparent; padding: .45rem .5rem; margin: 0; border-radius: 8px; cursor: pointer; }
.grp[data-lv="l2"] .grp-rich:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.gid { font: 600 .75rem/1 var(--mono); color: var(--ink-3); min-width: 3.2rem; }
.glabel { font: 600 1.02rem/1.35 var(--sans); }
.grp[data-ov] .grp-rich .glabel { font-weight: 500; font-size: .82rem; color: var(--ink-3); }
.grp[data-ov]:not([data-lv="l2"]) .grp-rich::after { content: "collapse"; margin-left: auto; font-size: .72rem; color: var(--accent); }
.grp[data-lv="l2"] .grp-rich::after { content: "expand"; margin-left: auto; font-size: .72rem; color: var(--ink-3); opacity: 0; transition: opacity .2s; }
.grp[data-lv="l2"] .grp-rich:hover::after { opacity: 1; }
.grp[data-lv="l2"] > .grp-body { grid-template-rows: 0fr; opacity: 0; transition-delay: .3s; }
.grp:not([data-lv="l2"]) > .grp-body { transition-delay: 0s; }

.para { display: grid; margin: 0 0 .9rem; position: relative; }
.para > * { grid-area: 1 / 1; }
.para-text { font: 1.02rem/1.6 var(--serif); margin: 0; text-align: justify; hyphens: auto; transition: filter .4s ease, opacity .4s ease; }
.para-claim { align-self: center; display: flex; gap: .4rem; align-items: baseline; font: 600 1.06rem/1.4 var(--sans); padding: .1rem .3rem; opacity: 0; pointer-events: none; transition: opacity .35s ease; z-index: 1; }
.claim-text { outline: none; border-radius: 4px; text-shadow: 0 0 10px var(--bg), 0 0 4px var(--bg); }
.claim-text[contenteditable="true"] { background: var(--surface); box-shadow: 0 0 0 2px var(--accent); padding: .1rem .3rem; text-shadow: none; }
.claim-tools { display: inline-flex; gap: .15rem; opacity: 0; transition: opacity .2s; flex: none; }
.para:hover .claim-tools, .para.editing .claim-tools, .claim-tools:focus-within { opacity: 1; }
.tool { border: 0; background: var(--surface); border-radius: 6px; width: 1.55rem; height: 1.55rem; cursor: pointer; color: var(--ink-2); font-size: .8rem; box-shadow: 0 0 0 1px var(--line); }
.tool:hover { color: var(--accent); }
.mark { font-size: .78rem; cursor: help; }
.mark.warn { color: var(--warn); }
.mark.edit { color: var(--accent); }
.run { font: 600 .8rem var(--sans); color: var(--ink-3); }

.grp[data-lv="l3"] .para-text, .grp[data-lv="l2"] .para-text { filter: blur(6px); opacity: .55; user-select: none; }
.grp[data-lv="l3"] .para-claim, .grp[data-lv="l2"] .para-claim { opacity: 1; pointer-events: auto; }
.grp[data-lv="full"] .para-text { transition-delay: .2s; }
/* peek: show the original under the sentence */
.grp[data-lv="l3"] .para:hover .para-text, .grp[data-lv="l3"] .para.peek .para-text { filter: none; opacity: 1; }
.grp[data-lv="l3"] .para:hover .para-claim:not(:focus-within), .grp[data-lv="l3"] .para.peek .para-claim { opacity: 0; }
.grp[data-lv="l3"] .para:hover .claim-tools { opacity: 0; }
.grp[data-lv="l3"] .para.editing .para-claim { opacity: 1 !important; align-self: start; background: color-mix(in srgb, var(--bg) 92%, transparent); }
.grp[data-lv="l3"] .para.editing .para-text { filter: blur(3px); opacity: .5; }
.grp[data-lv="l3"] .para .para-claim.pinned { opacity: 1; }
.para-claim .tool { pointer-events: auto; }
.refs-note { color: var(--ink-3); font-size: .9rem; }
.grp.refs .para-text { font-size: .86rem; line-height: 1.45; text-align: left; margin-bottom: .1rem; }

/* ---- debug ---- */
.debug { position: fixed; z-index: 25; right: 0; top: 3.6rem; bottom: 0; width: min(46rem, 100vw); background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow); overflow: auto; padding: 1rem; font-size: .82rem; }
.debug h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 1.2rem 0 .4rem; }
.debug h2:first-child { margin-top: 0; }
.debug table { border-collapse: collapse; width: 100%; font-family: var(--mono); font-size: .74rem; }
.debug th, .debug td { text-align: left; padding: .15rem .35rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.debug td.t { font-family: var(--serif); font-size: .8rem; word-break: break-word; }
.debug .k-heading td:first-child { color: var(--accent); font-weight: 700; }
.debug .k-dropped, .debug .k-debris { color: var(--ink-3); }
.debug .k-caption { color: var(--warn); }
.debug select, .debug input { font: inherit; padding: .2rem; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 5px; }
.debug pre { white-space: pre-wrap; margin: 0; font: .76rem/1.5 var(--mono); }

.turnstile { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; }
.toast { position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: 10px; max-width: min(34rem, 92vw); box-shadow: var(--shadow); font-size: .9rem; }

@media (max-width: 40rem) {
  .bar-in { gap: .5rem; }
  .brand { width: 100%; }
  .levels { flex: 1; }
  .lv { flex: 1; justify-content: center; padding: .38rem .3rem; }
  .c-q { flex-basis: 2.6rem; }
  body[data-level="3"] .sec[data-lv="l1"] .sec-head { flex-wrap: wrap; }
  body[data-level="3"] .sec[data-lv="l1"] .c-purpose { flex: 1 1 100%; max-width: none; order: 5; }
  body[data-level="3"] .sec[data-lv="l1"] .c-floats { flex: 0 0 auto; max-width: none; }
  .para-text { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; }
}

/* ---- paper view ---- */
.views { box-shadow: none; }
.pages { max-width: 58rem; margin: 0 auto; padding: 1rem 1rem 6rem; display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.pg { position: relative; width: 100%; background: #fff; color: #15181d; border: 1px solid var(--line); border-radius: 3px; box-shadow: var(--shadow); container-type: inline-size; overflow: hidden; --pgsat: 55%; --pglum: 52%; }
@media (prefers-color-scheme: dark) { .pg { background: #f6f4ee; } }
.pg-no { position: absolute; right: 3.5cqw; bottom: 1.6cqw; font: 600 1.6cqw var(--mono); color: #8a8f99; }
.pg-band { position: absolute; background: hsl(var(--hue) 60% 55% / .16); cursor: pointer; transition: background .4s ease; }
.pg-line { position: absolute; z-index: 1; white-space: nowrap; line-height: 1.12; font-family: "Times New Roman", Times, "Nimbus Roman", serif; transition: filter .45s ease, opacity .45s ease; }
.pg-line.b, .pg-line.k-heading { font-weight: 700; }
.pg-line.k-debris { color: #5a606c; }
.pg-line.k-caption { color: #8a4a08; }
.pg-claim, .pg-label, .pg-sec { position: absolute; z-index: 2; opacity: 0; pointer-events: none; transition: opacity .4s ease; }
.pg-claim { display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 600; line-height: 1.25; font-family: var(--sans); padding: .6cqw 1cqw; overflow: hidden; }
.pg-claim-text { outline: none; color: #101318; text-shadow: 0 0 .8cqw #fff, 0 0 .4cqw #fff; border-radius: 3px; }
.pg-claim-text[contenteditable="true"] { background: #fff; box-shadow: 0 0 0 2px var(--accent); text-shadow: none; padding: 0 .6cqw; }
.pg-claim.edited .pg-claim-text::after { content: " \25cf"; color: var(--accent); font-size: .7em; }
.pg-label { display: flex; gap: 1cqw; align-items: baseline; font: 700 2.3cqw/1.25 var(--sans); background: hsl(var(--hue) 70% 94%); color: #101318; border-left: .8cqw solid hsl(var(--hue) 55% 48%); padding: .5cqw 1cqw; cursor: pointer; }
.pg-label i { font: 600 1.5cqw var(--mono); color: #5a606c; font-style: normal; }
.pg-sec { background: hsl(var(--hue) 70% 94%); border-left: .9cqw solid hsl(var(--hue) 55% 48%); padding: .6cqw 1.2cqw; font: 500 1.9cqw/1.3 var(--sans); color: #101318; display: grid; gap: .3cqw; }
.pg-sec b { font-size: 2.4cqw; }
/* levels: blur the printed text, bring up the overlay for that level */
body[data-level="1"] .pg-line:not(.k-heading), body[data-level="2"] .pg-line:not(.k-heading), body[data-level="3"] .pg-line:not(.k-heading) { filter: blur(.7cqw); opacity: .5; }
body[data-level="1"] .pg-claim { opacity: 1; pointer-events: auto; }
body[data-level="2"] .pg-label { opacity: 1; pointer-events: auto; }
body[data-level="3"] .pg-sec { opacity: 1; }
body[data-level="3"] .pg-line { filter: blur(.9cqw); opacity: .3; }
body[data-level="3"] .pg-line.k-heading { opacity: .0; }
body[data-level="1"] .pg-band, body[data-level="2"] .pg-band { background: hsl(var(--hue) 60% 55% / .26); }
body[data-level="3"] .pg-band { background: hsl(var(--hue) 60% 55% / .5); }
body[data-level="1"] .pg-claim:hover { opacity: 0; }
.pg-line.peek { filter: none !important; opacity: 1 !important; }
.pg-claim.editing { opacity: 1 !important; background: rgb(255 255 255 / .9); }
body[data-level="2"] .pg-claim, body[data-level="3"] .pg-claim { opacity: 0; pointer-events: none; }
@media (max-width: 40rem) { .views { display: none; } .pages { padding-inline: .4rem; } }

/* ---- overview strip ---- */
.overview { max-width: 70rem; margin: 0 auto; padding: .2rem 1rem 0; }
.ov-row { display: flex; gap: .6rem; overflow-x: auto; padding: .3rem 0 .5rem; }
.ov-page { position: relative; flex: 0 0 6.4rem; padding: 0; border: 1px solid var(--line); border-radius: 3px; background: #f6f4ee; box-shadow: var(--shadow); cursor: pointer; overflow: hidden; }
.ov-page:hover, .ov-page.here { border-color: var(--accent); outline: 2px solid var(--accent); }
.ov-no { position: absolute; left: 3px; top: 1px; font: 600 .55rem/1 var(--mono); color: #5a606c; z-index: 3; }
.ov-band { position: absolute; background: hsl(var(--hue) 60% 55% / .45); }
.ov-line { position: absolute; background: rgb(20 24 32 / .45); z-index: 1; }
.ov-line.k-heading { background: rgb(20 24 32 / .9); }
.ov-line.k-caption, .ov-line.k-debris { background: rgb(138 74 8 / .5); }
.ov-sec { position: absolute; z-index: 2; font: 700 .55rem/1 var(--mono); color: #101318; background: #fffc; padding: 0 2px; }
.ov-note { margin: 0; font-size: .78rem; color: var(--ink-3); }
