@font-face{font-family:"Schibsted Grotesk";font-style:normal;font-display:swap;font-weight:400 900;src:url(fonts/schibsted-grotesk-latin-wght-normal.4c8b93f431.woff2) format("woff2");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:"Schibsted Grotesk";font-style:normal;font-display:swap;font-weight:400 900;src:url(fonts/schibsted-grotesk-latin-ext-wght-normal.ee9eeb232c.woff2) format("woff2");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}
@font-face{font-family:"Schibsted Grotesk";font-style:italic;font-display:swap;font-weight:400 900;src:url(fonts/schibsted-grotesk-latin-wght-italic.4c72510c1a.woff2) format("woff2");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:"Schibsted Grotesk";font-style:italic;font-display:swap;font-weight:400 900;src:url(fonts/schibsted-grotesk-latin-ext-wght-italic.30f8012bb4.woff2) format("woff2");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}
@font-face{font-family:"Spline Sans Mono";font-style:normal;font-display:swap;font-weight:300 700;src:url(fonts/spline-sans-mono-latin-wght-normal.46b7dcafe3.woff2) format("woff2");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:"Spline Sans Mono";font-style:normal;font-display:swap;font-weight:300 700;src:url(fonts/spline-sans-mono-latin-ext-wght-normal.0ca9a39890.woff2) format("woff2");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}
/* The Discourse Atlas map (atlas-v4, 5 Dec 2026): atlas-v3's look, rebuilt. The map is WebGL2 (ground, dots, words, names, the focus and its
   marks); cards, the panel, the jig and the strip are DOM. White cards with ink borders and hard offset shadows are
   for controls and cards only, never for labels on the map. */
:root {
  color-scheme: light;
  --ground: #E6E1D2; --mapbg: #EEEAE0; --white: #FFFFFF; --ink: #1E1E2E; --ink-soft: #33354A; --ink-2: #3B372F; --muted: #6C6F85; --muted-2: #4C4F69;
  --sel: #F9E2AF; --hit: #F5C2E7;
  --surface-2: #F6F3EA; --rule: #DCD5C3; --focus: #1E66F5;
  --side-r: #8839EF; --side-b: #E2580A;
  --font-body: "Schibsted Grotesk", system-ui, sans-serif; --font-mono: "Spline Sans Mono", ui-monospace, monospace;
  --bar: 48px; --jig-w: 256px; --panel-w: 372px;
}
* { box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body { margin: 0; background: var(--mapbg); color: var(--ink); font-family: var(--font-body); -webkit-text-size-adjust: 100%; }
a { color: var(--ink); text-decoration-color: color-mix(in oklab, var(--ink) 40%, transparent); }
h1, h2, h3 { margin: 0; }
.mono, .num { font-family: var(--font-mono); }
button { font-family: inherit; color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.btn { min-height: 28px; padding: 0 11px; border: 1.5px solid var(--ink); border-radius: 14px; background: var(--white); box-shadow: 2px 2px 0 var(--ink); font-size: 12.5px; cursor: pointer; }
.btn:hover { background: var(--surface-2); }
.btn:active, .btn[aria-pressed="true"] { background: var(--sel); box-shadow: none; transform: translate(2px, 2px); }
.seg { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 14px; background: var(--white); overflow: hidden; }
.seg button { background: var(--white); font-size: 12px; padding: 2px 9px; border: 0; cursor: pointer; }
.seg button + button { border-left: 1.5px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--sel); font-weight: 600; }
.seg[hidden], .btn[hidden], [hidden] { display: none !important; }
.model-tag { display: inline-flex; align-items: center; gap: 5px; background: var(--white); border: 1px dashed var(--ink); color: var(--muted-2); font-size: 11px; padding: 0 6px; white-space: nowrap; }
.model-tag::before { content: ""; width: 6px; height: 6px; background: var(--ink); transform: rotate(45deg); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: .06em; color: var(--muted-2); margin: 0; }
/* items: every item leads to its source */
.items { list-style: none; margin: 0; padding: 0; display: grid; }
.item { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 2px 10px; padding: 6px 0; border-top: 1px solid var(--rule); }
.item:first-child { border-top: 0; }
.item .side-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; display: inline-block; }
.item-title { font-weight: 500; font-size: 13.5px; line-height: 1.35; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.item-title:hover { text-decoration: underline; }
.item-title::after { content: " \2197"; color: var(--muted); font-size: .85em; }
.item-meta { grid-column: 2; display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12px; color: var(--muted); }
/* the tooltip: one per page */
.tip { position: fixed; z-index: 50; pointer-events: none; max-width: 340px; padding: 8px 10px; background: var(--white); border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); font-size: 13px; line-height: 1.4; }
.tip .tip-sub { color: var(--muted-2); font-size: 12px; }
.tip .tip-side { display: inline-flex; align-items: center; gap: 6px; }
.tip .tip-side i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.tip .tip-pin { font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); margin-top: 3px; }

/* ---------- the top bar ---------- */
.topbar { position: fixed; z-index: 40; top: 0; left: 0; right: 0; height: var(--bar); display: flex; align-items: center; gap: 16px; padding: 0 14px 0 18px; background: var(--ground); border-bottom: 1.5px solid var(--ink); font-size: 14px; }
.topbar .name { font-weight: 600; white-space: nowrap; }
.topbar nav.about { display: flex; gap: 16px; margin-left: auto; flex: none; }
.topbar nav.about button { font-size: 13.5px; background: none; border: 0; padding: 0; cursor: pointer; }
.topbar nav.about button:hover { text-decoration: underline; text-underline-offset: 3px; }
.fnav { display: flex; gap: 4px; flex: none; }
.fnav button { width: 26px; height: 26px; border: 1.5px solid var(--ink); background: var(--white); font-size: 16px; line-height: 1; cursor: pointer; padding: 0; box-shadow: 1.5px 1.5px 0 var(--ink); }
.fnav button[disabled] { opacity: .35; cursor: default; box-shadow: none; }
.combo { position: relative; display: flex; align-items: center; flex: 1 1 auto; min-width: 0; max-width: 880px; }
.fbar { display: flex; align-items: center; gap: 5px; width: 100%; height: 34px; padding: 0 6px; border: 1.5px solid var(--ink); border-radius: 17px; background: var(--white); box-shadow: 2px 2px 0 var(--ink); min-width: 0; }
.fbar:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.fchips { display: flex; align-items: center; gap: 4px; min-width: 0; flex: 0 1 auto; }
.fchip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 1px 0 8px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--sel); font-size: 12.5px; white-space: nowrap; min-width: 0; max-width: 270px; }
.fchip .fk { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .06em; color: var(--muted-2); flex: none; }
.fchip .fl { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fchip button, .lchip button.lx { border: 0; background: none; font-size: 15px; line-height: 1; cursor: pointer; padding: 0 6px 1px 4px; flex: none; }
.fbar input { flex: 1 1 110px; min-width: 60px; height: 28px; border: 0; padding: 0 4px; background: transparent; font: inherit; font-size: 13.5px; outline: none; color: var(--ink); }
.fbar input::placeholder { color: var(--muted-2); }
.fbar .kbd { font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); pointer-events: none; flex: none; }
.frule { width: 1.5px; height: 22px; background: var(--ink); opacity: .35; flex: none; margin: 0 2px; }
.lchips { display: flex; align-items: center; gap: 4px; flex: none; }
.lchip { display: inline-flex; align-items: center; height: 24px; border: 1px solid var(--muted); border-radius: 12px; background: var(--white); font-size: 12px; white-space: nowrap; color: var(--ink-2); }
.lchip > button.lv { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; padding: 0 9px; height: 100%; border-radius: 12px; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.lchip[data-on="1"] { border: 1.5px solid var(--ink); background: var(--surface-2); color: var(--ink); font-weight: 600; }
.lchip[data-on="1"] > button.lv { padding-right: 0; }
.fpop, .opts { position: absolute; z-index: 62; top: calc(100% + 8px); right: 0; margin: 0; padding: 4px 0; background: var(--white); border: 1.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); max-height: 60vh; overflow-y: auto; }
.fpop { min-width: 190px; }
.fpop .ph { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; color: var(--muted-2); padding: 6px 12px 2px; }
.fpop button { display: block; width: 100%; text-align: left; font-size: 13px; border: 0; background: none; padding: 5px 12px; cursor: pointer; }
.fpop button:hover, .fpop button[aria-pressed="true"] { background: var(--sel); }
.combo .model-tag { position: absolute; left: 10px; top: calc(100% + 4px); }
/* the sources list (sources.js): in the bar's popover, and in the phone sheet's Sources tab */
.fpop.wide { width: 452px; max-width: 92vw; padding: 10px 14px 10px; max-height: calc(100vh - var(--bar) - 24px); }
.srcl { display: grid; gap: 10px; font-size: 13px; }
.srcl-pre { display: flex; flex-wrap: wrap; gap: 5px; }
.fpop .srcl-pre button.srcp, .srcp { display: inline-block; width: auto; font: inherit; font-size: 12px; line-height: 1.5; padding: 0 9px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--white); cursor: pointer; }
.fpop .srcl-pre button.srcp:hover, .srcp:hover { background: var(--surface-2); }
.fpop .srcl-pre button.srcp[aria-pressed="true"], .srcp[aria-pressed="true"] { background: var(--sel); font-weight: 600; }
.srcl-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 0 20px; align-items: start; border-top: 1.5px solid var(--ink); padding-top: 4px; }
.srcl-kind { display: grid; padding-top: 6px; }
.srcl-row { display: grid; grid-template-columns: 13px minmax(0, 1fr) auto; align-items: center; gap: 0 8px; min-height: 22px; cursor: pointer; }
.srcl-row .lab { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srcl-row .n { font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); }
.srcl-row[data-zero="1"] .lab { color: var(--muted); }
.srcl-row:hover .lab { text-decoration: underline; text-underline-offset: 3px; }
.srcl-h .lab { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; font-weight: 500; }
.srcl-d .lab { font-weight: 500; }
.srcl-in { padding-left: 21px; }
.srcl-h { margin-top: 2px; }
.srcl-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: 1px; }
.srcl input { appearance: none; -webkit-appearance: none; margin: 0; width: 13px; height: 13px; border: 1.5px solid var(--ink); border-radius: 2px; background: var(--white); cursor: pointer; }
.srcl input:checked { background: var(--ink); box-shadow: inset 0 0 0 2px var(--white); }
.srcl input:indeterminate { background: linear-gradient(var(--ink), var(--ink)) center / 7px 1.5px no-repeat var(--white); }
.srcl-note { margin: 0; font-size: 11.5px; line-height: 1.4; color: var(--muted-2); }
.tab[data-tab="sources"] { display: none; }
.opts { width: 34rem; max-width: 92vw; list-style: none; }
.opt { display: grid; grid-template-columns: 5rem minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 6px 14px; cursor: pointer; font-size: 14px; }
.opt[aria-selected="true"] { background: var(--sel); }
.opt .k { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted-2); letter-spacing: .04em; }
.opt .n { font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); }
.opt .lab { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt-h { display: flex; align-items: center; gap: 8px; padding: 9px 14px 3px; font-size: 12.5px; font-weight: 600; border-top: 1.5px solid var(--ink); }
.opt-h:first-child { border-top: 0; }
.opts .more { padding: 6px 14px; font-size: 12px; color: var(--muted); }
.jigbtn { flex: none; font-family: var(--font-mono); font-size: 11.5px; background: var(--white); border: 1.5px solid var(--ink); border-radius: 12px; padding: 3px 11px; cursor: pointer; box-shadow: 2px 2px 0 var(--ink); }
body:not(.jig-avail) .jigbtn, body:not(.jig-avail) #jig-tab { display: none; }
.jigbtn[aria-pressed="true"] { background: var(--sel); box-shadow: none; transform: translate(2px, 2px); }

/* ---------- the stage ---------- */
.stage { position: fixed; top: var(--bar); left: 0; right: 0; bottom: 0; overflow: hidden; background: var(--mapbg); outline: none; touch-action: none; }
.stage canvas { position: absolute; left: 0; top: 0; display: block; }
#gl { cursor: grab; }
#ov { pointer-events: none; }
.stage.is-panning #gl { cursor: grabbing; }
.stage.is-boxing #gl, .stage.is-shift #gl { cursor: crosshair; }
.stage.is-hot #gl { cursor: pointer; }
.stage:focus-visible { outline: 2px solid var(--focus); outline-offset: -3px; }
.nogl { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); max-width: 420px; background: var(--white); border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); padding: 14px 18px; font-size: 14px; line-height: 1.5; z-index: 20; }
.ring { position: absolute; left: 0; top: 0; border: 1.5px solid var(--ink); border-radius: 50%; pointer-events: none; z-index: 4; }
.ov { position: absolute; z-index: 5; }
.intro { top: 12px; width: 320px; display: grid; gap: 5px; padding: 2px 0; background: rgba(238, 234, 224, .86); box-shadow: 0 0 22px 16px rgba(238, 234, 224, .86); }
.intro[data-open="0"] { background: none; box-shadow: none; }
.intro h1 { font-weight: 400; font-size: 24px; line-height: 1.05; letter-spacing: -0.015em; }
.intro p { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.intro .row { display: flex; gap: 12px; align-items: center; }
.intro button { font-size: 12px; background: none; border: 0; padding: 0; color: var(--muted-2); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.intro[data-open="0"] > :not(.row) { display: none; }
.intro .howto { font-size: 12px; color: var(--muted-2); }
.intro[data-open="0"] .howto { display: none; }
.intro .row h2 { display: none; font-size: 14px; font-weight: 600; }
.intro[data-open="0"] .row h2 { display: inline; }
.legend { top: 16px; display: grid; gap: 8px; justify-items: end; font-size: 12px; color: var(--ink-2); text-align: right; pointer-events: none; }
.legend .lg { display: grid; gap: 3px; justify-items: end; }
.legend .lg-h { font-family: var(--font-mono); font-size: 10px; letter-spacing: .05em; color: var(--muted-2); }
.legend .sw { display: inline-flex; align-items: center; gap: 6px; text-shadow: 0 0 4px var(--mapbg), 0 0 2px var(--mapbg); }
.legend .dt { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.legend .num { font-size: 10.5px; color: var(--muted-2); }
.legend .sizes { display: inline-flex; align-items: baseline; gap: 10px; }
.where { bottom: 90px; transform: translateX(-50%); pointer-events: none; font-size: 12.5px; color: var(--ink-2); display: flex; gap: 6px; align-items: baseline; white-space: nowrap; text-shadow: 0 0 4px var(--mapbg), 0 0 3px var(--mapbg); }
.where button { pointer-events: auto; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--ink) 35%, transparent); text-underline-offset: 3px; }
.where .mono { font-size: 11px; color: var(--muted-2); }
.zoomctl { display: grid; gap: 6px; justify-items: end; }
.sq { width: 32px; height: 32px; border: 1.5px solid var(--ink); background: var(--white); box-shadow: 2px 2px 0 var(--ink); font-size: 17px; cursor: pointer; padding: 0; }
.sq.wide { width: auto; padding: 0 9px; font-size: 12.5px; }
.sq:active, .sq[aria-pressed="true"] { background: var(--sel); box-shadow: none; transform: translate(2px, 2px); }
.hint { left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 13px; background: var(--white); border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); padding: 6px 12px; pointer-events: none; }
.tstrip { bottom: 14px; background: var(--white); border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); padding: 6px 10px 4px; display: grid; gap: 4px; }
.tstrip .ts-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); white-space: nowrap; min-width: 0; }
.tstrip .ts-row strong { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.tstrip .ts-row .grow { flex: 1 1 auto; }
.tstrip .seg button { font-size: 11px; padding: 1px 7px; }
.tstrip .btn { min-height: 22px; font-size: 11.5px; padding: 0 9px; box-shadow: 1.5px 1.5px 0 var(--ink); }
.tl { display: block; width: 100%; height: 40px; cursor: ew-resize; touch-action: none; user-select: none; }
.tl[data-mode="decay"] { cursor: default; }
.tl text { font-family: var(--font-mono); font-size: 9px; fill: var(--muted-2); }
.tl .yr { fill: var(--ink); font-weight: 600; }
.qs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.qcell { font: inherit; text-align: left; background: var(--white); border: 1.5px solid var(--ink); padding: 2px 4px; cursor: pointer; display: grid; gap: 1px; min-width: 0; }
.qcell[aria-pressed="true"] { background: var(--sel); }
.qcell .qn { font-size: 11px; font-weight: 600; display: flex; justify-content: space-between; gap: 4px; white-space: nowrap; overflow: hidden; }
.qcell .qn .mono { font-weight: 400; font-size: 9px; color: var(--muted-2); }
.qcell svg { display: block; width: 100%; height: 18px; }
/* the pinned work: its card beside its dot */
.pin-card { position: fixed; z-index: 26; width: 330px; max-width: calc(100vw - 32px); background: var(--white); border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); padding: 8px 34px 9px 12px; font-size: 13px; line-height: 1.4; }
.pin-card .item { border-top: 0; padding: 0; }
.pin-card .item-title { font-weight: 600; font-size: 14px; }
.pin-card .pin-meta { font-size: 12px; color: var(--ink-2); margin-top: 5px; display: grid; gap: 3px; }
.pin-card .pin-x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; font-size: 16px; line-height: 1; background: var(--white); border: 1.5px solid var(--ink); cursor: pointer; }
.linkbtn { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-align: left; }
.dbg-log { position: absolute; left: 268px; bottom: 96px; z-index: 30; width: 480px; max-height: 250px; overflow: hidden; margin: 0; padding: 6px 8px; font: 400 10.5px/1.35 var(--font-mono); background: rgba(255, 253, 246, 0.93); border: 1px solid var(--ink); pointer-events: none; white-space: pre-wrap; }

/* ---------- the jig (left) and the panel island (right) ---------- */
.jig { position: fixed; z-index: 30; top: var(--bar); bottom: 0; left: 0; width: var(--jig-w); background: var(--white); border-right: 1.5px solid var(--ink); display: flex; flex-direction: column; min-height: 0; font-family: var(--font-mono); font-size: 11px; }
.side { position: fixed; z-index: 30; right: 12px; top: calc(var(--bar) + 12px); width: var(--panel-w); max-height: calc(100vh - var(--bar) - 24px); background: var(--white); border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); display: flex; flex-direction: column; min-height: 0; }
body:not(.jig-on) .jig, body:not(.panel-on) .side { display: none; }
.dock-tab { position: fixed; z-index: 29; top: calc(var(--bar) + 14px); writing-mode: vertical-rl; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; background: var(--white); border: 1.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); padding: 10px 4px; cursor: pointer; }
.dock-tab.left { left: 0; border-left: 0; transform: rotate(180deg); box-shadow: -2px -2px 0 var(--ink); }
.dock-tab.right { right: 0; border-right: 0; }
body.jig-on .dock-tab.left, body.panel-on .dock-tab.right { display: none; }
.jig-head { flex: none; background: var(--ink); color: var(--white); display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 6px 8px; }
.jig-head strong { letter-spacing: .08em; font-weight: 600; margin-right: auto; }
.jig-head button { font: inherit; font-size: 10.5px; background: var(--white); border: 1.5px solid var(--white); border-radius: 10px; padding: 0 6px; cursor: pointer; }
.jig-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; flex: 1 1 auto; }
.jig-sec { border-bottom: 1.5px solid var(--ink); padding: 8px 10px 10px; display: grid; gap: 6px; }
.jig-sec > h3 { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; }
.jig-sec > h3 button { all: unset; cursor: pointer; display: flex; justify-content: space-between; width: 100%; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; }
.jig-sec > h3 button::after { content: "−"; font-weight: 400; }
.jig-sec[data-closed="1"] > h3 button::after { content: "+"; }
.jig-sec[data-closed="1"] > :not(h3) { display: none; }
.jig-sec.focus-sec { background: color-mix(in oklab, var(--sel) 45%, var(--white)); }
.jrow { display: grid; grid-template-columns: 78px minmax(0, 1fr) 32px; gap: 6px; align-items: center; min-height: 22px; }
.jrow.wide, .jrow.stack { grid-template-columns: minmax(0, 1fr); }
.jrow.stack { gap: 3px; }
.jrow.stack .seg { justify-self: start; }
.jrow.segrow { grid-template-columns: 78px minmax(0, 1fr); }
.jrow > label { color: var(--muted-2); }
.jrow > .jv { text-align: right; }
.jrow input[type="range"] { width: 100%; accent-color: var(--ink); margin: 0; }
.jrow input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--ink); margin: 0; }
.jig .seg { border-radius: 10px; flex-wrap: wrap; }
.jig .seg button { font-family: var(--font-mono); font-size: 10.5px; padding: 1px 6px; }
.jig-presets { display: flex; flex-wrap: wrap; gap: 5px; }
.jig-presets button { font: inherit; font-size: 10.5px; border: 1.5px solid var(--ink); background: var(--white); box-shadow: 2px 2px 0 var(--ink); padding: 2px 7px; cursor: pointer; }
.jig-presets button[aria-pressed="true"] { background: var(--sel); box-shadow: none; transform: translate(2px, 2px); }
.jig-note { color: var(--muted-2); font-size: 10.5px; line-height: 1.4; margin: 0; }
.jig-note b { color: var(--ink); font-weight: 600; }
.jig-note button { font: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.pals { display: grid; gap: 3px; }
.pals button { font: inherit; font-size: 10px; text-align: left; display: flex; align-items: center; gap: 5px; border: 1.5px solid var(--ink); background: var(--white); padding: 3px 5px; cursor: pointer; min-width: 0; }
.pals button span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pals button[aria-pressed="true"] { background: var(--sel); font-weight: 600; }
.pals i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.side-head { flex: none; display: flex; align-items: stretch; border-bottom: 1.5px solid var(--ink); }
.grab { display: none; }
.tabs { display: flex; flex: 1 1 auto; min-width: 0; padding: 0 4px; overflow-x: auto; scrollbar-width: none; }
.tab { font-size: 13px; color: var(--ink-2); background: none; border: 0; border-bottom: 3px solid transparent; padding: 9px 8px 7px; cursor: pointer; display: inline-flex; gap: 5px; align-items: baseline; white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.tab .num { font-size: 10.5px; color: var(--muted-2); font-weight: 400; }
.side-x { flex: none; font-size: 18px; width: 38px; background: none; border: 0; border-left: 1.5px solid var(--ink); cursor: pointer; }
.scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; flex: 1 1 auto; display: grid; align-content: start; }
.sec { padding: 14px 16px; border-top: 1.5px solid var(--ink); display: grid; gap: 8px; min-width: 0; }
.sec:first-child { border-top: 0; }
.sec h3 { font-size: 14px; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.sec p { margin: 0; }
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.ph-big { font-size: 22px; line-height: 1.15; font-weight: 400; letter-spacing: -0.01em; }
.small { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.small b { font-weight: 600; color: var(--ink); }
.sub { font-size: 12px; color: var(--muted); }
.empty { font-size: 13px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { font: inherit; font-size: 12.5px; line-height: 1.5; padding: 0 9px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--white); white-space: nowrap; cursor: pointer; }
.chip:hover { background: var(--surface-2); }
.chip b { font-family: var(--font-mono); font-weight: 400; font-size: 11px; color: var(--muted-2); margin-left: 5px; }
.more { justify-self: start; }
.wtag { font-family: var(--font-mono); font-size: 10.5px; border: 1px solid var(--ink); padding: 0 5px; background: var(--white); letter-spacing: .03em; }
.rank { color: var(--ink-2); }
.copylink { font: 12px/1 var(--font-mono); background: var(--white); border: 1.5px solid var(--ink); box-shadow: 1.5px 1.5px 0 var(--ink); padding: 4px 8px; cursor: pointer; }
.copylink[data-done="1"] { background: var(--sel); box-shadow: none; transform: translate(1.5px, 1.5px); }
.fx-headrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* the start (entry.js) and the picks of a focus */
.entry { gap: 10px; }
.entry .finding { display: grid; gap: 3px; padding-top: 2px; }
.entry .finding h3 { font-size: 14px; }
.entry .finding h3 .sub { font-size: 11px; font-weight: 400; }
.entry-places { margin: 0; font-size: 13px; line-height: 1.45; }
.entry-places .sep { color: var(--muted); }
.placelink { font: inherit; font-weight: 500; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--ink) 35%, transparent); text-underline-offset: 3px; }
.placelink:hover { text-decoration-color: var(--ink); }
.entry-top { font-size: 12.5px; line-height: 1.4; }
.entry-top .item-title { font-size: 12.5px; }
.entry-why { color: var(--muted-2); }
.entry-lede { margin: 0; }
.entry-echoes { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 11px; }
.entry-echoes .echo { display: grid; gap: 3px; font-size: 12.5px; line-height: 1.4; }
.echo-now .item-title { font-size: 13.5px; font-weight: 500; }
.echo-then { padding-left: 10px; border-left: 2px solid var(--rule); }
.echo[data-dir="lag"] .echo-then { border-left-color: var(--side-b); }
.echo[data-dir="echo"] .echo-then { border-left-color: var(--side-r); }
.echo-lead { color: var(--ink-2); }
.echo-map { display: inline-flex; vertical-align: -1px; color: var(--muted-2); padding: 0 2px; }
.echo-map:hover { color: var(--ink); }
.entry-echoes .echo[hidden] { display: none; }
.echo-more { font: 11.5px/1 var(--font-mono); background: var(--white); border: 1.5px solid var(--ink); padding: 3px 7px; margin-right: 8px; cursor: pointer; }
.entry-six { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.entry-six li { display: grid; gap: 1px; font-size: 13px; }
.sec.picks .item.pick { padding: 8px 0 9px; gap: 3px 10px; }
.pick .item-title { font-size: 14px; line-height: 1.38; }
.pick .pick-why { grid-column: 2; font-size: 12.5px; line-height: 1.45; color: var(--muted-2); }
.sec.picks h3 { font-size: 13px; }
.about p { font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.about code { overflow-wrap: anywhere; font-family: var(--font-mono); font-size: 11.5px; }
.guide-row { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 13px; line-height: 1.45; }
.fx-trail { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-2); min-width: 0; }
.fx-trail .hb { flex: none; border: 1.5px solid var(--ink); background: var(--white); font-size: 11.5px; padding: 1px 7px; cursor: pointer; }
.fx-trail .hb[disabled] { opacity: .35; cursor: default; }
.fx-crumbs { display: flex; align-items: baseline; gap: 5px; min-width: 0; overflow: hidden; white-space: nowrap; }
.fx-crumbs button { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--ink) 35%, transparent); text-underline-offset: 3px; overflow: hidden; text-overflow: ellipsis; max-width: 13em; }
.fx-crumbs .now { font-weight: 600; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fx-kick { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; color: var(--muted-2); margin: 0; }
.fx-title { font-size: 21px; line-height: 1.2; font-weight: 400; letter-spacing: -0.01em; }
.fx-count { font-size: 13px; color: var(--ink-2); }
.fx-count b { font-family: var(--font-mono); font-weight: 500; color: var(--ink); }
.fx-sides { display: grid; gap: 4px; }
.fx-sides .rw { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.fx-sides .rw b { font-weight: 600; color: var(--ink); }
.fx-sides .rw .mono { font-size: 11.5px; }
.fx-bar { position: relative; height: 10px; display: flex; border: 1px solid var(--ink); }
.fx-bar span { display: block; height: 100%; }
.fx-bar i { position: absolute; top: -5px; width: 2px; height: 18px; margin-left: -1px; background: var(--ink); }
.fx-sides .tk { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.fx-find { font-size: 13px; line-height: 1.45; border-left: 3px solid var(--ink); padding-left: 10px; display: grid; gap: 4px; }
.fx-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-acts .btn { min-height: 26px; font-size: 12px; }
.fx-ask { background: var(--sel); border: 1.5px solid var(--ink); padding: 8px 10px; display: grid; gap: 7px; font-size: 13px; line-height: 1.4; }
.fx-ask .btns { display: flex; flex-wrap: wrap; gap: 6px; }
/* the Jev compass */
.compass-slot { display: grid; align-content: start; min-width: 0; min-height: 40px; }
.cmp-trail { display: flex; flex-wrap: wrap; gap: 2px 6px; align-items: baseline; font-size: 12px; color: var(--muted-2); }
.cmp-trail button { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; max-width: 14em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-trail .now { font-weight: 600; color: var(--ink); max-width: 16em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-status { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.cmp-fixed { font-size: 11.5px; font-weight: 600; background: var(--ink); color: var(--white); padding: 1px 8px; border-radius: 10px; }
.cmp-asking { font-family: var(--font-mono); font-size: 12px; background: var(--sel); border: 1.5px solid var(--ink); padding: 6px 10px; }
.cmp-asking::after { content: ""; display: inline-block; width: 1.4em; animation: cmpdots 1.2s steps(4, end) infinite; }
@keyframes cmpdots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.cmp-note { font-size: 12px; color: var(--ink-2); border-left: 3px solid var(--ink); padding: 2px 0 2px 9px; line-height: 1.45; }
.cmp-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.cmp-chip { font: inherit; font-size: 12.5px; line-height: 1.5; padding: 0 8px; border-radius: 12px; white-space: nowrap; cursor: pointer; display: inline-flex; gap: 5px; align-items: baseline; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.cmp-chip.in { background: var(--white); border: 1.5px solid var(--ink); }
.cmp-chip.mid { background: transparent; border: 1px solid var(--muted); color: var(--ink-2); }
.cmp-chip.hid { background: transparent; border: 1px dashed var(--muted); color: var(--muted-2); }
.cmp-chip:hover, .cmp-chip:focus-visible { background: var(--sel); border-color: var(--ink); color: var(--ink); opacity: 1 !important; }
.cmp-chip .w { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted-2); }
.cmp-link { font: inherit; font-size: 12.5px; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; justify-self: start; text-align: left; }
.cmp-ex { display: grid; gap: 4px; justify-items: start; }

/* ---------- a phone (ruling, 5 Dec 2026): the jig closed, the panel a bottom sheet with a handle, the strip compact ---------- */
@media (max-width: 700px) {
  :root { --bar: 52px; }
  .topbar { gap: 8px; padding: 0 8px; }
  .topbar .name, .topbar nav.about, .fbar .kbd, .frule, .lchips, .jigbtn { display: none; }
  .fnav button { width: 30px; height: 30px; }
  .fbar { height: 38px; }
  .fchip { max-width: 150px; }
  .jig { width: min(86vw, 300px); box-shadow: 4px 0 0 var(--ink); }
  .dock-tab.left { display: none; }
  .side { left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: none; height: var(--sheet-h, 46vh); border-width: 1.5px 0 0; box-shadow: 0 -3px 0 var(--ink); }
  body.sheet-min .side { height: 44px; overflow: hidden; }
  .grab { display: block; flex: none; width: 44px; border: 0; border-right: 1.5px solid var(--ink); background: var(--surface-2); cursor: pointer; font-size: 15px; }
  .dock-tab.right { top: auto; bottom: 120px; }
  .intro, .legend, .where { display: none; }
  .tstrip { padding: 4px 8px 3px; }
  .tstrip #presets { display: none; }
  .tl { height: 30px; }
  .opts { position: fixed; left: 8px; right: 8px; top: calc(var(--bar) + 4px); width: auto; }
  .tab[data-tab="sources"] { display: inline-flex; }
  .srcl-cols { grid-template-columns: minmax(0, 1fr); }
  .srcl-row { min-height: 34px; font-size: 14.5px; grid-template-columns: 18px minmax(0, 1fr) auto; }
  .srcl input { width: 18px; height: 18px; }
  .srcp { font-size: 13.5px; line-height: 2; }
  .opt { grid-template-columns: 4rem minmax(0, 1fr) auto; font-size: 15px; padding: 9px 12px; }
  .pin-card { width: calc(100vw - 24px); }
  .sq { width: 40px; height: 40px; }
  .dbg-log { left: 8px; width: calc(100vw - 16px); }
}
/* while the data loads: the intro and a loading line; no controls that cannot work yet */
body.loading .combo, body.loading .fnav, body.loading #jig-open, body.loading #legend, body.loading #zoomctl, body.loading #time,
body.loading #jig, body.loading .side-head, body.loading .dock-tab, body.loading #how-to, body.loading #intro-x { visibility: hidden; }
/* the first paint: the poster sits where the map will draw, under the canvas, and fades once the map is up */
.poster { position: absolute; z-index: 0; pointer-events: none; user-select: none; transition: opacity .35s ease-out; }
/* placed by CSS alone before any script, by view.js's homeView with the jig closed and the panel open (insets: right
   384, top 44, bottom 100 on a laptop; top 10, bottom 131 on a phone); poster.js then sets the same numbers exactly */
.stage { container-type: size; }
.poster { --px: -0.14; --py: -0.0878; --pw: 1.28; --ph: 1.2278; }
.poster { --s0: min(100cqw - 494px, 100cqh - 160px);
  left: calc((100cqw - 384px) / 2 - var(--s0) / 2 + var(--px) * var(--s0)); top: calc(44px + (100cqh - 144px) / 2 - var(--s0) / 2 + var(--py) * var(--s0));
  width: calc(var(--pw) * var(--s0)); height: calc(var(--ph) * var(--s0)); }
@media (max-width: 700px) { .poster { --s0: min(100cqw - 16px, 100cqh - 157px);
  left: calc(100cqw / 2 - var(--s0) / 2 + var(--px) * var(--s0)); top: calc(10px + (100cqh - 141px) / 2 - var(--s0) / 2 + var(--py) * var(--s0)); } }
.poster[data-off] { opacity: 0; }
body.loading #gl { opacity: 0; }
#gl { transition: opacity .35s ease-out; }
.loading-note { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); margin: 0; font-size: 13px; color: var(--muted-2); font-family: var(--font-mono); }
body:not(.loading) .loading-note { display: none; }
.errnote { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60; max-width: min(460px, calc(100vw - 32px)); background: var(--white); border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); padding: 10px 14px; font-size: 13px; line-height: 1.45; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.errnote .btn { flex: none; }
