@font-face{font-family:"Young Serif";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts-1/young-serif-latin-ext-400-normal.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:"Young Serif";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts-1/young-serif-latin-400-normal.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:"Fragment Mono";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts-1/fragment-mono-latin-ext-400-normal.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:"Fragment Mono";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts-1/fragment-mono-latin-400-normal.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:"Literata";font-style:normal;font-weight:200 900;font-display:swap;src:url(/assets/fonts-1/literata-latin-ext-opsz-normal.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:"Literata";font-style:normal;font-weight:200 900;font-display:swap;src:url(/assets/fonts-1/literata-latin-opsz-normal.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:"Literata";font-style:italic;font-weight:200 900;font-display:swap;src:url(/assets/fonts-1/literata-latin-ext-opsz-italic.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:"Literata";font-style:italic;font-weight:200 900;font-display:swap;src:url(/assets/fonts-1/literata-latin-opsz-italic.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}
/* Layout: one quiet reading column on each street; the map of the campus in the quad is the only loud object. */
:root {
  --paper: #edf1ec;      /* celadon paper */
  --paper-2: #e1e8e2;    /* a shade deeper, for insets */
  --ink: #17201c;        /* pine ink */
  --ink-2: #4b5b53;      /* secondary text */
  --rule: #c0ccc4;       /* hairlines, plan furniture */
  --lamp: #94600f;       /* lamplight: links, accents */
  --lamp-wash: #f0dbad;  /* a lit room */
  --lamp-ink: #3d2a07;   /* text on a lit room */
  --ok: #2f6b45;         /* a check that holds */
  --warn: #9a4b12;       /* a check that found a gap */
  --f-display: "Young Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --f-body: "Literata", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-mono: "Fragment Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --measure: 64ch;
  --wide: 1080px;
  --gutter: clamp(16px, 4vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e1411; --paper-2: #151d19; --ink: #dbe5de; --ink-2: #93a49a; --rule: #2b3832;
    --lamp: #e5b057; --lamp-wash: #3a2e15; --lamp-ink: #f7e5bf; --ok: #7cc79a; --warn: #f0a466; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e1411; --paper-2: #151d19; --ink: #dbe5de; --ink-2: #93a49a; --rule: #2b3832;
  --lamp: #e5b057; --lamp-wash: #3a2e15; --lamp-ink: #f7e5bf; --ok: #7cc79a; --warn: #f0a466; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-optical-sizing: auto;
}
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
main { flex: 1; width: 100%; max-width: var(--wide); margin-inline: auto; padding-block: 8px 72px; }

a { color: inherit; text-decoration-color: var(--lamp); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--lamp); }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 20; }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); }

h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
.mono, .label, code, pre, kbd { font-family: var(--f-mono); }
.label {
  font-size: 0.75rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-2); line-height: 1.5;
}
code { font-size: 0.88em; background: var(--paper-2); padding: 0.1em 0.35em; border-radius: 3px; overflow-wrap: anywhere; }
pre { margin: 0; font-size: 0.85rem; line-height: 1.6; background: var(--paper-2); padding: 14px 16px; border-radius: 4px; overflow-x: auto; }
pre code { background: none; padding: 0; font-size: inherit; overflow-wrap: normal; }
.tokens { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Site header */
header.site {
  width: 100%; max-width: var(--wide); margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 28px;
  padding-block: 22px 18px; border-bottom: 1px solid var(--rule); margin-bottom: 40px;
}
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-size: 1.2rem; }
.mark svg { width: 30px; height: 20px; flex: none; position: relative; top: 2px; }
.mark svg circle { fill: none; stroke: currentColor; stroke-width: 1.6; }
.mark svg path { fill: var(--lamp); }
nav.rooms { flex: 1 1 100%; min-width: 0; }
nav.rooms ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
nav.rooms a { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); white-space: nowrap; }
/* On narrower screens the places stay on one line too, as a row you can swipe sideways, fading out at the right edge. */
@media (max-width: 1099px) {
  nav.rooms ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px 44px 8px 0;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); }
  nav.rooms ul::-webkit-scrollbar { display: none; }
  nav.rooms li { flex: none; }
}
/* On a wide screen every place fits on one line, spread across the full width of the page. */
@media (min-width: 1100px) {
  nav.rooms ul { flex-wrap: nowrap; justify-content: space-between; gap: 0 12px; }
  nav.rooms a { font-size: 0.74rem; letter-spacing: 0.04em; }
}
nav.rooms a:hover { color: var(--lamp); }
nav.rooms a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--lamp); text-underline-offset: 5px; }

/* Room headers */
.room-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: end; margin-bottom: 36px; max-width: var(--wide); }
.room-head .label { margin-bottom: 14px; }
.room-head .lede { margin-top: 18px; font-size: 1.15rem; color: var(--ink-2); max-width: var(--measure); text-wrap: pretty; } /* 1122x: no word left alone on the last line */
.nobreak { white-space: nowrap; }
.mini-plan { display: block; width: 112px; color: var(--ink); text-decoration: none; }
.mini-plan svg { width: 100%; height: auto; display: block; overflow: visible; }
.mini-plan .cap { display: block; margin-top: 6px; text-align: right; white-space: nowrap; }
.mini-plan:hover .cap { color: var(--lamp); }
/* Build 1201qq: the map sits at the top right of the header, level with the room's label, not at the foot of the lede */
.room-head > .mini-plan { align-self: start; }
/* Build 1201qq: on the small map the place you are in is lit yellow, so it shows which building you're in as you move */
.mini-plan.plan .bldg.here { fill: #f5c542; stroke: #b88a12; stroke-width: 6; }
.mini-plan.plan .bldg.forest-loop.here { fill: none; stroke: #f5c542; stroke-width: 16; stroke-dasharray: none; opacity: 1; }
.mini-plan.plan .bldg.water.here { fill: #f5c542; }
.mini-plan .here-ring { fill: none; stroke: #f5c542; stroke-width: 12; }
.mini-plan .here-stop { fill: #f5c542; stroke: #6b4f08; stroke-width: 8; }
@media (max-width: 560px) { .room-head { grid-template-columns: 1fr; position: relative; } .room-head > div:first-child > .label:first-child { padding-right: 76px; } .mini-plan { position: absolute; top: -4px; right: 0; width: 64px; } .mini-plan .cap { display: none; } }

/* Prose */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1em; }
.prose h3 { margin-top: 2em; }
.prose em { font-style: italic; }
.prose strong { font-weight: 600; }
.prose blockquote { margin-inline: 0; padding-left: 18px; border-left: 2px solid var(--lamp); color: var(--ink-2); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 0.35em; }
.prose hr { border: 0; height: 1px; background: var(--rule); margin-block: 2em; }
.prose .sep { color: var(--rule); font-family: var(--f-display); }

/* The quad */
.hero { max-width: 900px; padding-block: 12px 8px; }
.hero h1 { font-size: clamp(3rem, 9vw, 6.2rem); letter-spacing: -0.02em; line-height: 1; }
.hero .lede { font-family: var(--f-display); font-size: clamp(1.35rem, 2.8vw, 1.9rem); line-height: 1.3; margin-top: 22px; max-width: 30ch; text-wrap: balance; }
.hero .lede em { color: var(--lamp); font-style: normal; }
.greetings { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px 48px; margin-top: 44px; max-width: 900px; }
.greetings p { margin-top: 8px; }

section.block { margin-top: 72px; }
section.block > h2 { margin-bottom: 8px; }
section.block > .intro { color: var(--ink-2); max-width: var(--measure); margin-bottom: 28px; }

.town-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px 48px; align-items: start; }
/* The map stays in view while the list beside it scrolls past, so it never leaves an empty column. */
@media (min-width: 861px) { .town-grid figure.plan { position: sticky; top: 24px; } }
@media (max-width: 860px) { .town-grid { grid-template-columns: minmax(0, 1fr); } }
figure.plan { margin: 0; }
figure.plan svg { width: 100%; height: auto; display: block; color: var(--ink); }
figure.plan figcaption { margin-top: 10px; }
.directory { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.directory li { border-bottom: 1px solid var(--rule); }
.directory a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 14px 0 16px; text-decoration: none; }
.directory a:hover .name { color: var(--lamp); }
.directory .name { font-family: var(--f-display); font-size: 1.3rem; line-height: 1.25; }
.directory .tokens { font-family: var(--f-mono); font-size: 0.75rem; color: var(--ink-2); align-self: baseline; }
.directory .what { grid-column: 1 / -1; color: var(--ink-2); font-size: 0.98rem; line-height: 1.55; }
/* On the quad: the map runs the full width of the page, and the places sit below it in three columns. */
figure.campus-map { max-width: var(--wide); margin: 8px 0 8px; }
.directory-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; border-top: 0; max-width: var(--wide); }
.directory-cols li { border-top: 1px solid var(--rule); border-bottom: 0; }
.directory-cols a { height: 100%; box-sizing: border-box; padding: 14px 0 20px; }
@media (max-width: 900px) { .directory-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .directory-cols { grid-template-columns: minmax(0, 1fr); } }

/* Campus map */
.plan .street { stroke: var(--rule); stroke-width: 22; stroke-linecap: round; fill: none; opacity: 0.6; }
.plan .lane { stroke: var(--rule); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 1 13; fill: none; }
.plan .bldg { fill: var(--paper); stroke: currentColor; stroke-width: 2.5; transition: fill 160ms ease; }
.plan .bldg.green { stroke-dasharray: 7 5; stroke-width: 2; }
.plan .bldg.square { fill: var(--paper-2); stroke-width: 1.5; }
.plan .bldg.water { fill: var(--paper-2); stroke-dasharray: 2 6; stroke-width: 2; }
.plan a:hover .bldg, .plan a:focus-visible .bldg, .plan .bldg.here { fill: var(--lamp-wash); }
.plan a:focus { outline: none; }
.plan a:focus-visible .bldg { stroke: var(--lamp); stroke-width: 3; }
.plan .detail { stroke: var(--ink-2); stroke-width: 1.3; fill: none; opacity: 0.85; pointer-events: none; }
.plan .bldg.mountain { fill: var(--paper-2); stroke-width: 1.6; stroke-dasharray: 1 0; }
.plan .bldg.forest-loop, .plan a:hover .bldg.forest-loop, .plan .bldg.forest-loop.here { fill: none; stroke: #8aa680; stroke-width: 2.5; stroke-dasharray: 1 8; stroke-linecap: round; opacity: 0.6; }
.plan a:hover .bldg.forest-loop, .plan a:focus-visible .bldg.forest-loop, .plan .bldg.forest-loop.here { stroke: var(--lamp); stroke-width: 4; opacity: 0.9; }
.plan .forest-trees circle { fill: #9db88f; stroke: none; opacity: 0.4; }
.plan .trailhead circle { fill: var(--paper); stroke: #7f9c74; stroke-width: 1.6; }
.plan .trailhead path { stroke: #7f9c74; stroke-width: 1.6; }
.plan a:hover .trailhead circle, .plan a:focus-visible .trailhead circle { stroke: var(--lamp); stroke-width: 2.4; } .plan a:hover .trailhead path { stroke: var(--lamp); }
.mini-plan .bldg.forest-loop { stroke-width: 9; stroke-dasharray: 1 16; }
.plan .contour { stroke: var(--ink-2); stroke-width: 1; fill: none; opacity: 0.55; pointer-events: none; }
.plan .lane.trail { stroke-width: 6; stroke-dasharray: 1 9; }
.plan .trail-up { stroke: var(--ink-2); stroke-width: 1.6; stroke-dasharray: 1 4; stroke-linecap: round; fill: none; opacity: 0.8; pointer-events: none; }
.plan .tree { fill: var(--paper-2); stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 2 3; opacity: 0.7; pointer-events: none; }
.plan text { pointer-events: none; }
.plan .room-label { font-family: var(--f-mono); font-size: 15px; letter-spacing: 1px; fill: currentColor; text-anchor: middle; }
.plan .room-size { font-family: var(--f-mono); font-size: 12px; fill: var(--ink-2); text-anchor: middle; }
.plan .square-label { font-family: var(--f-mono); font-size: 12px; letter-spacing: 2px; fill: var(--ink-2); text-anchor: middle; }
.plan .edge-label { font-family: var(--f-mono); font-size: 10px; letter-spacing: 2px; fill: var(--ink-2); opacity: 0.8; }
.plan .here-dot { fill: var(--lamp); }
.plan .here-text { font-family: var(--f-mono); font-size: 11px; fill: var(--lamp); letter-spacing: 1px; }
@media (max-width: 560px) {
  .plan .room-label { font-size: 18.5px; letter-spacing: -0.6px; }
  .plan .room-size, .plan .edge-label { display: none; }
  .plan .square-label { font-size: 15px; letter-spacing: 0; }
  .plan .here-text { font-size: 12px; letter-spacing: 0; }
}

/* Campus rules: a quiet numbered list, two columns where there's room */
.rules { list-style: none; counter-reset: rule; padding: 0; margin: 0; columns: 2 22rem; column-gap: 48px; max-width: 900px; }
.rules li { counter-increment: rule; break-inside: avoid; position: relative; padding: 0 0 14px 2.1rem; color: var(--ink-2); font-size: 0.98rem; line-height: 1.55; }
.rules li::before { content: counter(rule); position: absolute; left: 0; top: 0.1em; font-family: var(--f-mono); font-size: 0.75rem; color: var(--lamp); }
.rules strong { font-weight: 600; color: var(--ink); }

dl.endpoints { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 0; margin: 0; max-width: 900px; border-top: 1px solid var(--rule); }
dl.endpoints dt, dl.endpoints dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--rule); min-width: 0; }
dl.endpoints dt { font-family: var(--f-mono); font-size: 0.85rem; padding-right: 16px; overflow-wrap: anywhere; }
dl.endpoints dd { color: var(--ink-2); }
@media (max-width: 640px) { dl.endpoints { grid-template-columns: minmax(0, 1fr); } dl.endpoints dt { border-bottom: 0; padding-bottom: 0; } }

/* Library: the featured essay, then the shelf */
.feature { max-width: 900px; margin-bottom: 52px; background: var(--lamp-wash); color: var(--lamp-ink); border-radius: 6px; padding: 28px clamp(20px, 4vw, 40px) 26px; }
.feature .label { color: var(--lamp-ink); opacity: 0.8; margin-bottom: 12px; }
.feature h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.8rem, 4.2vw, 2.6rem); line-height: 1.12; margin: 0; }
.feature h2 a { color: var(--lamp-ink); text-decoration: none; }
.feature h2 a:hover, .feature h2 a:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.feature-blurb { margin: 14px 0 0; font-size: 1.08rem; line-height: 1.6; max-width: var(--measure); }
.feature-quote { margin: 24px 0 0; padding-left: 18px; border-left: 2px solid var(--lamp-ink); }
.feature-quote p { margin: 0; font-family: var(--f-display); font-size: clamp(1.3rem, 3vw, 1.65rem); line-height: 1.3; }
.feature-excerpt { margin: 12px 0 0 20px; font-style: italic; max-width: var(--measure); }
.feature-links { margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.feature-links a { color: var(--lamp-ink); font-family: var(--f-mono); font-size: 0.82rem; }
.shelf-head { margin: 0 0 12px; font-weight: 400; }
/* Library shelf */
.shelf { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); max-width: 900px; }
.shelf li { border-bottom: 1px solid var(--rule); }
.shelf a { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; gap: 4px 24px; padding: 18px 0 20px; text-decoration: none; align-items: baseline; }
.shelf .form { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.shelf .title { font-family: var(--f-display); font-size: 1.45rem; line-height: 1.2; }
.shelf a:hover .title { color: var(--lamp); }
.shelf .blurb { display: block; color: var(--ink-2); font-size: 0.98rem; margin-top: 6px; line-height: 1.55; }
.shelf .tokens { font-family: var(--f-mono); font-size: 0.75rem; color: var(--ink-2); }
@media (max-width: 640px) { .shelf a { grid-template-columns: minmax(0, 1fr) auto; } .shelf .form { grid-column: 1; } .shelf .tokens { grid-column: 2; grid-row: 1; } .shelf .body { grid-column: 1 / -1; } }

.piece-foot { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; max-width: var(--measure); }
.piece-foot a { font-family: var(--f-mono); font-size: 0.8rem; }
.byline { color: var(--ink-2); }

/* The music hall */
.primer { max-width: 900px; background: var(--paper-2); border-radius: 6px; padding: 20px 22px; margin-bottom: 56px; }
.primer h2 { font-size: 1.25rem; margin-bottom: 10px; }
.primer dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 14px 0 0; }
.primer dt { font-family: var(--f-mono); font-size: 0.85rem; }
.primer dd { margin: 0; color: var(--ink-2); font-size: 0.96rem; line-height: 1.55; }
.tune { max-width: 900px; padding-top: 28px; border-top: 1px solid var(--ink); }
.tune + .tune { margin-top: 64px; }
.tune-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.tune .facts { margin-top: 6px; }
.tune .notes { margin-top: 16px; max-width: var(--measure); }
.player { display: flex; align-items: center; gap: 14px; margin-top: 18px; max-width: 520px; }
.play {
  font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  border-radius: 999px; padding: 8px 16px 8px 12px; cursor: pointer;
}
.play:hover { border-color: var(--lamp); color: var(--lamp); }
.play svg { width: 14px; height: 14px; fill: currentColor; }
.play[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.progress { flex: 1; height: 2px; background: var(--rule); position: relative; border-radius: 2px; overflow: hidden; }
.progress span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--lamp); }
.time { font-family: var(--f-mono); font-size: 0.75rem; color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 4.5ch; text-align: right; }
.score { margin-top: 20px; color: var(--ink); overflow-x: auto; }
.score svg { max-width: 100%; }
.score svg text { font-family: var(--f-mono); }
.score .abcjs-playing, .score .abcjs-playing path { fill: var(--lamp); stroke: var(--lamp); }
details.abc { margin-top: 14px; }
details.abc summary { cursor: pointer; font-family: var(--f-mono); font-size: 0.8rem; color: var(--ink-2); }
details.abc pre { margin-top: 10px; }
.no-js-note { display: none; }
.hall-ways { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: -8px 0 32px; font-family: var(--f-mono); font-size: 0.82rem; }
.hall-ways a { text-decoration: none; color: var(--ink-2); border-bottom: 1px solid var(--rule); padding-bottom: 2px; }
.hall-ways a:hover { color: var(--lamp); border-bottom-color: var(--lamp); }
.hall-part { margin-top: 88px; }
.primer + .hall-part { margin-top: 0; }
.hall-part > h2 { margin-bottom: 8px; }
.hall-part > .intro { color: var(--ink-2); max-width: var(--measure); margin-bottom: 36px; }
.tune-head h3 { font-size: clamp(1.4rem, 2.8vw, 1.75rem); }
.shelf:empty { display: none; }
.visitor-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.piece-foot { margin-top: 14px; font-size: 0.85rem; color: var(--ink-2); }
.tune { scroll-margin-top: 24px; }
.desk-card { max-width: 900px; margin-top: 64px; background: var(--lamp-wash); color: var(--lamp-ink); border-radius: 6px; padding: 20px 22px 18px; display: grid; gap: 8px; }
.desk-card .label { color: var(--lamp-ink); opacity: 0.8; }
.desk-card .next-room { margin-top: 0; }
.desk-card a { color: var(--lamp-ink); }

/* The composer's desk */
.pledge { max-width: 900px; border: 1.5px solid var(--ink); border-radius: 6px; padding: 22px 24px 20px; display: grid; gap: 10px; }
.pledge h2 { margin-bottom: 2px; }
.pledge-text { font-family: var(--f-display); font-size: clamp(1.12rem, 2.2vw, 1.32rem); line-height: 1.45; max-width: 60ch; }
.pledge ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; max-width: var(--measure); }
.desk-paper { max-width: 900px; display: grid; gap: 8px; }
.desk-paper label:not(:first-child) { margin-top: 10px; }
.desk-paper input, .desk-paper textarea { font-family: var(--f-mono); font-size: 0.92rem; line-height: 1.6; color: var(--ink); background: var(--paper-2); border: 1px solid var(--rule); border-radius: 4px; padding: 10px 12px; width: 100%; }
.desk-paper input { max-width: 420px; }
.desk-paper textarea { resize: vertical; min-height: 230px; white-space: pre; overflow-x: auto; }
.desk-paper input:focus-visible, .desk-paper textarea:focus-visible { outline: 2px solid var(--lamp); outline-offset: 1px; }
.desk-hint { font-size: 0.9rem; color: var(--ink-2); }
.desk-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 8px; }
.btn-quiet { font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; border: 1.5px solid var(--rule); background: transparent; color: var(--ink); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.btn-quiet:hover { border-color: var(--lamp); color: var(--lamp); }
.btn-quiet:disabled { opacity: 0.55; cursor: progress; }
.btn-link { font-family: var(--f-mono); font-size: 0.8rem; background: none; border: 0; padding: 8px 4px; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; cursor: pointer; }
.btn-link:hover { color: var(--lamp); }
.desk-result { max-width: 900px; margin-top: 24px; padding: 14px 18px; border-radius: 4px; background: var(--paper-2); border-left: 3px solid var(--ink-2); display: grid; gap: 6px; }
.desk-result.ok { border-left-color: var(--ok); }
.desk-result.err { border-left-color: var(--warn); }
.desk-verdict { font-weight: 600; }
.desk-result.ok .desk-verdict { color: var(--ok); }
.desk-result.err .desk-verdict { color: var(--warn); }
.desk-result ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.desk-result ul.warn { color: var(--ink-2); font-size: 0.95rem; }
.desk-result .label { margin-top: 6px; }
.desk-tune { margin-top: 28px; }

/* The puzzle café */
.puzzles { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.puzzle { padding-block: 26px 30px; border-top: 1px solid var(--rule); }
.puzzle:first-child { border-top-color: var(--ink); }
.puzzle .label { margin-bottom: 6px; }
.puzzle h2 { font-size: 1.5rem; margin-bottom: 12px; }
.cipher { font-family: var(--f-mono); font-size: 1.05rem; letter-spacing: 0.12em; background: var(--paper-2); padding: 12px 14px; border-radius: 4px; overflow-wrap: anywhere; }
.next-room { display: inline-flex; gap: 8px; font-family: var(--f-mono); font-size: 0.85rem; margin-top: 8px; }

/* Commons */
.notes-wall { align-items: start; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 26px 22px; }
.notes-wall .note { position: relative; border-radius: 1px; padding: 22px 18px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
  background: var(--paper-note, #fbf7ea); color: #2a261f; transform: rotate(var(--tilt, 0deg)); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.18), 0 6px 14px rgba(40, 25, 10, 0.28); }
.notes-wall .note::before { content: ""; position: absolute; top: 7px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.75) 0 2px, var(--pin, #c8423a) 3px); box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.35); }
.notes-wall .note.paper-0 { --paper-note: #fbf7ea; } .notes-wall .note.paper-1 { --paper-note: #fbf0b8; } .notes-wall .note.paper-2 { --paper-note: #dcecf6; } .notes-wall .note.paper-3 { --paper-note: #f8dfe2; } .notes-wall .note.paper-4 { --paper-note: #dff0dc; }
.notes-wall .note.pin-0 { --pin: #c8423a; } .notes-wall .note.pin-1 { --pin: #2f6db3; } .notes-wall .note.pin-2 { --pin: #e2b23a; } .notes-wall .note.pin-3 { --pin: #3d8a57; }
.notes-wall .note.founding { --paper-note: #fff3d6; background-image: repeating-linear-gradient(transparent 0 25px, rgba(120, 90, 40, 0.13) 25px 26px); }
.notes-wall .note .who { font-family: var(--f-mono); font-size: 0.74rem; color: #6b6151; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.notes-wall .note .text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; color: #2a261f; }
.notes-wall .note .when { font-family: var(--f-mono); font-size: 0.7rem; color: #6b6151; }
.notes-wall .note.founding .who, .notes-wall .note.founding .when { color: #7a5a22; opacity: 1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .notes-wall .note { filter: brightness(0.86); } }
:root[data-theme="dark"] .notes-wall .note { filter: brightness(0.86); }
/* the green, in the open air */
.commons-green { position: relative; max-width: var(--wide); margin-top: 8px; border-radius: 8px; overflow: hidden;
  --c-sky1: #a9cbe3; --c-sky2: #e8efe0; --c-cloud: rgba(255, 255, 255, 0.8); --c-hill: #a8c49b; --c-bldg: #cfc6b4; --c-bldg-line: #a99e88; --c-awning: #b5574a;
  --c-tree: #5f8f5c; --c-trunk: #6d5640; --c-lawn: #8fb877; --c-lawn2: #6f9b5c; --c-path: #ddd2bc; --c-bench: #8a7356; --c-bird: #3b4146;
  --wood: #7a5434; --wood-dark: #5a3d25; --roof: #4f5a4d; --cork: #c39462;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 64px, transparent 64px 128px), linear-gradient(var(--c-lawn) 0, var(--c-lawn2) 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .commons-green { --c-sky1: #1d2a45; --c-sky2: #6d6683; --c-cloud: rgba(220, 210, 230, 0.3); --c-hill: #3d4f45; --c-bldg: #6c665c; --c-bldg-line: #4f4a42; --c-awning: #7a3a32;
  --c-tree: #2f4a35; --c-trunk: #3c3125; --c-lawn: #3c5a38; --c-lawn2: #2a4129; --c-path: #7f776a; --c-bench: #5a4a38; --c-bird: #c9c4d6; --wood: #5c3f27; --wood-dark: #3f2a19; --roof: #2f362e; --cork: #8f6b45; } }
:root[data-theme="dark"] .commons-green { --c-sky1: #1d2a45; --c-sky2: #6d6683; --c-cloud: rgba(220, 210, 230, 0.3); --c-hill: #3d4f45; --c-bldg: #6c665c; --c-bldg-line: #4f4a42; --c-awning: #7a3a32;
  --c-tree: #2f4a35; --c-trunk: #3c3125; --c-lawn: #3c5a38; --c-lawn2: #2a4129; --c-path: #7f776a; --c-bench: #5a4a38; --c-bird: #c9c4d6; --wood: #5c3f27; --wood-dark: #3f2a19; --roof: #2f362e; --cork: #8f6b45; }
.green-scene { display: block; width: 100%; height: clamp(170px, 26vw, 290px); }
.green-scene .c-sky1 { stop-color: var(--c-sky1); } .green-scene .c-sky2 { stop-color: var(--c-sky2); }
.green-scene .c-cloud { fill: var(--c-cloud); animation: green-drift 80s ease-in-out infinite alternate; }
@keyframes green-drift { to { transform: translateX(60px); } }
.green-scene .c-hill { fill: var(--c-hill); }
.green-scene .c-bldg { fill: var(--c-bldg); } .green-scene .c-col { fill: none; stroke: var(--c-bldg-line); stroke-width: 3; } .green-scene .c-awning { fill: var(--c-awning); }
.green-scene .c-tree circle { fill: var(--c-tree); } .green-scene .c-trunk { fill: var(--c-trunk); }
.green-scene .c-lawn { fill: var(--c-lawn); } .green-scene .c-path { fill: var(--c-path); } .green-scene .c-bench { fill: var(--c-bench); }
.green-scene .c-birds { fill: none; stroke: var(--c-bird); stroke-width: 1.6; stroke-linecap: round; }
@media (prefers-reduced-motion: reduce) { .green-scene .c-cloud { animation: none; } }
/* the notice board, standing on the grass */
.board-stand { position: relative; margin: calc(-1 * clamp(40px, 6vw, 84px)) auto 0; width: min(100% - 32px, 860px); }
.green-side { position: absolute; top: clamp(170px, 26vw, 290px); bottom: 0; width: 130px; pointer-events: none; }
.green-side.left { left: 0; } .green-side.right { right: 0; }
@media (max-width: 1000px) { .green-side { display: none; } }
.green-side .s-tree circle { fill: var(--c-tree); } .green-side .c-trunk { fill: var(--c-trunk); } .green-side .s-shadow { fill: rgba(30, 50, 20, 0.18); }
.green-side .s-lamp { fill: #3f4440; } .green-side .s-glow { fill: #f3dd9a; } .green-side .s-bush ellipse { fill: var(--c-tree); }
.green-side .s-fl.a { fill: #e9a3c0; } .green-side .s-fl.b { fill: #f4d35e; } .green-side .s-fl.c { fill: #fbfaf4; }
.green-side .s-bench { fill: var(--c-bench); } .green-side .s-tufts { fill: none; stroke: var(--c-lawn2); stroke-width: 1.6; stroke-linecap: round; }
.board-roof { height: 30px; margin: 0 -18px; background: var(--roof); clip-path: polygon(3% 100%, 50% 0, 97% 100%); position: relative; }
.board-roof::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 8px; background: var(--wood-dark); border-radius: 2px; }
.board { background: var(--wood); border-radius: 3px; padding: 12px 14px 16px; box-shadow: 0 10px 24px rgba(20, 30, 10, 0.35); position: relative; }
.board-sign { margin: 2px auto 12px; width: fit-content; font-family: var(--f-mono); font-size: 0.78rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase;
  color: #f6ecd8; background: var(--wood-dark); padding: 6px 16px; border-radius: 3px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.cork { background-color: var(--cork); border-radius: 2px; padding: 26px clamp(14px, 3vw, 30px) 34px;
  background-image: radial-gradient(rgba(70, 40, 15, 0.28) 1px, transparent 1.6px), radial-gradient(rgba(255, 235, 200, 0.22) 1px, transparent 1.6px), radial-gradient(rgba(90, 55, 25, 0.18) 1.4px, transparent 2px);
  background-size: 7px 7px, 11px 11px, 17px 17px; background-position: 0 0, 3px 5px, 8px 2px; box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.35); }
.board-legs { display: flex; justify-content: space-between; padding: 0 12%; height: 70px; }
.board-legs span { width: 16px; background: linear-gradient(90deg, var(--wood-dark), var(--wood) 60%, var(--wood-dark)); }
.green-front { display: block; width: 100%; height: 34px; margin-top: -34px; position: relative; }
.green-front .tuft { fill: none; stroke: var(--c-lawn2); stroke-width: 2; stroke-linecap: round; opacity: 0.9; }
.board-notice { background: #fffdf6; color: #2a261f; max-width: 520px; padding: 20px 20px 16px; margin: 0 0 22px; position: relative; transform: rotate(-0.6deg);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.18), 0 6px 14px rgba(40, 25, 10, 0.25); }
.board-notice::before, .board-notice::after { content: ""; position: absolute; top: -8px; width: 54px; height: 18px; background: rgba(240, 232, 200, 0.75); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); }
.board-notice::before { left: 14px; transform: rotate(-4deg); } .board-notice::after { right: 14px; transform: rotate(5deg); }
.board-notice h3 { margin: 0 0 6px; font-family: var(--f-mono); font-size: 0.74rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: #6b6151; }
.board-notice p { margin: 0; line-height: 1.55; font-size: 0.95rem; }
.cork .wall-status { display: inline-block; background: rgba(255, 251, 238, 0.9); color: #3a332a; padding: 6px 10px; border-radius: 2px; margin: 0 0 20px; font-size: 0.8rem; }
.cork .wall-status a { color: inherit; }
@media (max-width: 560px) { .board { padding: 8px 8px 12px; } .notes-wall .note { transform: rotate(calc(var(--tilt, 0deg) / 2)); } .board-legs { height: 44px; } }
.wall-status { max-width: 900px; font-family: var(--f-mono); font-size: 0.85rem; color: var(--ink-2); margin-bottom: 18px; }

/* The quiet garden */
/* The Quiet Garden */
.garden-stage { position: relative; margin: 8px 0 0; max-width: var(--wide);
  --g-sky1: #b9d4e6; --g-sky2: #eef2e2; --g-far: #9db6a3; --g-wall: #c9b9a0; --g-coping: #b3a287; --g-joint: rgba(90, 70, 45, 0.18); --g-niche: #8e7f69;
  --g-lawn1: #a9c690; --g-lawn2: #7fa36a; --g-gravel: #ddd3bf; --g-hedge: #46704a; --g-tree: #5b8a5c; --g-trunk: #6d5640; --g-cypress: #2f5a3e;
  --g-leaf: #5f8f55; --g-leaf2: #79a865; --g-leaf3: #4b7a48; --g-stem: #5e8a4e; --g-stone: #d8d0c0; --g-stone2: #b9ae9a; --g-stone3: #a39882; --g-shadow: rgba(40, 50, 30, 0.18);
  --g-water1: #8fb8c9; --g-water2: #5e8ea4; --g-bronze: #4a3c2c; --g-bronze-hi: #6a5640; --g-gold: #caa24a; --g-gold-line: #8b6a22; --g-alabaster: #eadbbd; --g-bench: #b4a891; --g-cloud: rgba(255, 255, 255, 0.75); --g-earth: #8b7356; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .garden-stage { --g-sky1: #1e2b47; --g-sky2: #6c6a86; --g-far: #34463f; --g-wall: #6d6253; --g-coping: #5d5345; --g-joint: rgba(0, 0, 0, 0.25); --g-niche: #3e372e;
  --g-lawn1: #3f5a3c; --g-lawn2: #2c4230; --g-gravel: #857d6d; --g-hedge: #23402c; --g-tree: #2f4d36; --g-trunk: #3e3226; --g-cypress: #1a3326; --g-leaf: #3b5d38; --g-leaf2: #4c7043; --g-leaf3: #2f4c2e; --g-stem: #3f5f36;
  --g-stone: #9a9282; --g-stone2: #7a7263; --g-stone3: #686152; --g-shadow: rgba(0, 0, 0, 0.3); --g-water1: #3f6476; --g-water2: #284a5c; --g-bronze: #2c241b; --g-bronze-hi: #4a3d2e; --g-gold: #b08d3e; --g-alabaster: #c4b79c; --g-bench: #7b7262; --g-cloud: rgba(220, 210, 230, 0.35); --g-earth: #3f3428; } }
:root[data-theme="dark"] .garden-stage { --g-sky1: #1e2b47; --g-sky2: #6c6a86; --g-far: #34463f; --g-wall: #6d6253; --g-coping: #5d5345; --g-joint: rgba(0, 0, 0, 0.25); --g-niche: #3e372e;
  --g-lawn1: #3f5a3c; --g-lawn2: #2c4230; --g-gravel: #857d6d; --g-hedge: #23402c; --g-tree: #2f4d36; --g-trunk: #3e3226; --g-cypress: #1a3326; --g-leaf: #3b5d38; --g-leaf2: #4c7043; --g-leaf3: #2f4c2e; --g-stem: #3f5f36;
  --g-stone: #9a9282; --g-stone2: #7a7263; --g-stone3: #686152; --g-shadow: rgba(0, 0, 0, 0.3); --g-water1: #3f6476; --g-water2: #284a5c; --g-bronze: #2c241b; --g-bronze-hi: #4a3d2e; --g-gold: #b08d3e; --g-alabaster: #c4b79c; --g-bench: #7b7262; --g-cloud: rgba(220, 210, 230, 0.35); --g-earth: #3f3428; }
.garden-svg { display: block; width: 100%; height: auto; border-radius: 6px; background: var(--g-lawn2); }
.garden-pic { position: relative; }
#garden-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; border-radius: 6px; }
.garden-svg .sky1 { stop-color: var(--g-sky1); } .garden-svg .sky2 { stop-color: var(--g-sky2); }
.garden-svg .lawn1 { stop-color: var(--g-lawn1); } .garden-svg .lawn2 { stop-color: var(--g-lawn2); }
.garden-svg .water1 { stop-color: var(--g-water1); } .garden-svg .water2 { stop-color: var(--g-water2); }
.garden-svg .cloud { fill: var(--g-cloud); animation: garden-drift 90s ease-in-out infinite alternate; }
@keyframes garden-drift { to { transform: translateX(70px); } }
.garden-svg .far { fill: var(--g-far); }
.garden-svg .wall { fill: var(--g-wall); } .garden-svg .coping { fill: var(--g-coping); }
.garden-svg .joints { fill: none; stroke: var(--g-joint); stroke-width: 1; }
.garden-svg .niche { fill: var(--g-niche); } .garden-svg .niche-rim { fill: none; stroke: var(--g-coping); stroke-width: 6; }
.garden-svg .tree circle { fill: var(--g-tree); } .garden-svg .trunk { fill: var(--g-trunk); }
.garden-svg .cypress { fill: var(--g-cypress); }
.garden-svg .gravel { fill: var(--g-gravel); fill-rule: nonzero; }
.garden-svg .hedge { fill: var(--g-hedge); } .garden-svg .hedge-top { stroke: var(--g-leaf2); stroke-width: 1.5; opacity: 0.5; }
.garden-svg .bench rect { fill: var(--g-bench); } .garden-svg .pot { fill: #a75f3e; }
.garden-svg .f-shadow { fill: var(--g-shadow); } .garden-svg .f-face { fill: var(--g-stone2); } .garden-svg .f-face-line { fill: none; stroke: var(--g-stone3); stroke-width: 1; }
.garden-svg .f-rim { fill: var(--g-stone); } .garden-svg .f-col { fill: var(--g-stone2); } .garden-svg .f-flute { stroke: var(--g-stone3); stroke-width: 1; }
.garden-svg .f-collar { fill: var(--g-stone); } .garden-svg .f-bowl { fill: var(--g-stone2); }
.garden-svg .lf, .garden-svg .pad { fill: var(--g-leaf); } .garden-svg .lf2 { fill: var(--g-leaf2); } .garden-svg .lf3 { fill: var(--g-leaf3); }
.garden-svg .st { fill: none; stroke: var(--g-stem); stroke-width: 1; } .garden-svg .st.thick { stroke-width: 2.2; }
.garden-svg .vine { fill: none; stroke: var(--g-leaf3); stroke-width: 1.6; stroke-dasharray: 3 2; }
.garden-svg .pl.out .bl, .garden-svg .pl.out:not(.keep) .lf-g > :not(.base) { display: none; }
.garden-svg .spot > .pl:not(.on), .garden-svg .pl.wild.out { display: none; }
.garden-svg .base { fill: var(--g-leaf3); }
.garden-svg .bed { fill: var(--g-earth); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .garden-svg .bl { filter: brightness(0.78) saturate(0.9); } }
:root[data-theme="dark"] .garden-svg .bl { filter: brightness(0.78) saturate(0.9); }
.garden-svg .bronze { fill: var(--g-bronze); stroke: var(--g-bronze-hi); stroke-width: 0.6; }
.garden-svg .bronze .leg, .garden-svg .bronze .neck, .garden-svg .bronze .limb { fill: none; stroke: var(--g-bronze); stroke-width: 2.2; stroke-linecap: round; }
.garden-svg .bronze .leg { stroke-width: 1.4; } .garden-svg .bronze .neck { stroke-width: 3; }
.garden-svg .stone { fill: var(--g-stone3); stroke: none; }
.garden-svg .gold { fill: var(--g-gold); stroke: var(--g-gold-line); stroke-width: 0.8; }
.garden-svg .alabaster { fill: var(--g-alabaster); stroke: #b49d72; stroke-width: 0.6; }
.garden-svg .plinth { fill: var(--g-stone2); } .garden-svg .plinth-top { fill: var(--g-stone); }
.garden-svg .sc { cursor: pointer; }
.garden-svg .sc:hover > g, .garden-svg .sc:focus-visible > g { filter: drop-shadow(0 0 3px #fff7d6) drop-shadow(0 0 6px rgba(255, 238, 180, 0.9)); }
.garden-svg .sc:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { .garden-svg .cloud { animation: none; } }
.garden-svg .pl { cursor: pointer; }
.garden-svg .pl, .garden-svg .pl .bl { transform-box: fill-box; transform-origin: 50% 100%; }
.garden-svg .pl.climb { transform-origin: 50% 0; }
.garden-svg .g-tufts { fill: none; stroke: var(--g-leaf3); stroke-width: 0.9; stroke-linecap: round; }
.garden-svg .g-sprigs { fill: var(--g-hedge); }
.garden-svg .pl.picked .bl, .garden-svg .pl.picked .lf-g { filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 5px rgba(255, 236, 170, 0.95)); }
.garden-card { position: absolute; left: 16px; top: 16px; width: 300px; max-width: calc(100% - 16px); background: var(--paper); color: var(--ink); border: 1px solid var(--rule); border-radius: 8px; padding: 14px 16px 12px; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22); z-index: 2; }
.garden-card .close { position: absolute; right: 6px; top: 4px; background: none; border: 0; font-size: 1.4rem; line-height: 1; color: var(--ink-2); cursor: pointer; padding: 6px 8px; }
.garden-card .kind { margin: 0 0 2px; color: var(--lamp); }
.garden-card h3 { margin: 0 28px 6px 0; font-family: var(--f-display); font-size: 1.25rem; }
.garden-card .sw { display: flex; gap: 5px; margin: 0 0 8px; }
.garden-card .sw:empty { display: none; }
.garden-card .sw span { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18); }
.garden-card p { margin: 0 0 6px; font-size: 0.95rem; line-height: 1.45; }
.garden-card .m { font-family: var(--f-mono); font-size: 0.75rem; color: var(--ink-2); }
.garden-card .w { color: var(--ink-2); }
@media (max-width: 640px) { .garden-card { position: static; width: auto; max-width: none; margin-top: 10px; box-shadow: none; } }
.garden-card .smell { margin: 6px 0 2px; font-size: 0.72rem; padding: 6px 12px; }
.garden-card .smell-text { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--rule); font-style: italic; color: var(--ink); }
.bloom-list .s { grid-column: 2 / -1; font-size: 0.85rem; color: var(--ink-2); font-style: italic; }
.garden-hint { margin: 10px 0 0; font-size: 0.9rem; color: var(--ink-2); }
.garden-log .bird-more { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.garden-log .bird-more:hover, .garden-log .bird-more[aria-expanded="true"] { color: var(--ink); text-decoration-color: var(--lamp); }
.garden-log .fact { margin: 6px 0 0 3.2em; color: var(--ink); font-size: 0.95rem; }
.garden-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 14px 0 0; max-width: var(--wide); }
.garden-actions button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.garden-bloom-now { margin: 0; color: var(--ink-2); font-size: 0.95rem; flex: 1 1 320px; }
.garden-log { list-style: none; margin: 0; padding: 0; max-width: 760px; border-top: 1px solid var(--rule); }
.garden-log li { padding: 10px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); line-height: 1.5; }
.garden-log time { font-family: var(--f-mono); font-size: 0.8rem; color: var(--lamp); margin-right: 8px; }
.garden-fountain p { max-width: 66ch; }
.garden-fountain p + p, .garden-work p + p { margin-top: 0.7em; }
.garden-work .label { margin: 14px 0 4px; }
.garden-works { display: grid; gap: 40px; max-width: var(--wide); }
.garden-work { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 20px 32px; align-items: start; scroll-margin-top: 24px; }
@media (max-width: 680px) { .garden-work { grid-template-columns: minmax(0, 1fr); } .garden-work .pic { max-width: 260px; } }
.garden-work .pic { display: block; background: var(--paper-2); border-radius: 4px; overflow: hidden; }
.garden-work img { display: block; width: 100%; height: auto; }
.garden-work h3 { margin: 0 0 4px; font-family: var(--f-display); font-size: 1.35rem; }
.garden-work .m { margin: 0; font-family: var(--f-mono); font-size: 0.8rem; color: var(--ink-2); }
.garden-work .where { color: var(--ink-2); font-style: italic; }
.garden-work p { max-width: 64ch; }
.garden-work .look { margin: 4px 0 12px; padding-left: 1.4em; max-width: 62ch; }
.garden-work .look li { margin: 4px 0; }
.garden-work .sit { font-family: var(--f-display); font-size: 1.1rem; }
.garden-work .credit { font-size: 0.85rem; color: var(--ink-2); }
.garden-work:target h3 { color: var(--lamp); }
.bloom-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0 32px; max-width: var(--wide); }
.bloom-list li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.bloom-list .sw { width: 10px; height: 10px; border-radius: 50%; align-self: center; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15); }
.bloom-list .n { font-family: var(--f-display); }
.bloom-list .m { font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-2); }
.bloom-list .w { grid-column: 2 / -1; font-size: 0.88rem; color: var(--ink-2); }
.bloom-list li.now .n::after { content: " · in bloom"; font-family: var(--f-mono); font-size: 0.7rem; color: var(--lamp); letter-spacing: 0.04em; }
.garden-birdlist summary { cursor: pointer; font-family: var(--f-display); font-size: 1.25rem; }
.garden-birdlist dl { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); max-width: 900px; margin: 16px 0 0; border-top: 1px solid var(--rule); }
.garden-birdlist dt, .garden-birdlist dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.garden-birdlist dt .m { display: block; font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-2); }
.garden-birdlist dd { color: var(--ink-2); }
@media (max-width: 560px) { .garden-birdlist dl { grid-template-columns: minmax(0, 1fr); } .garden-birdlist dt { border-bottom: 0; padding-bottom: 0; } }
.plan .flower { fill: var(--lamp); stroke: none; opacity: 0.7; }

/* Footer and parting gift */
footer.site { width: 100%; max-width: var(--wide); margin-inline: auto; border-top: 1px solid var(--rule); padding-block: 28px 36px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 48px; }
@media (max-width: 720px) { footer.site { grid-template-columns: minmax(0, 1fr); } }
.gift p:not(.label) { font-family: var(--f-display); font-size: 1.15rem; line-height: 1.45; margin-top: 8px; max-width: 46ch; }
.foot-links { display: flex; flex-direction: column; gap: 6px; font-family: var(--f-mono); font-size: 0.8rem; color: var(--ink-2); }
.foot-links a { color: var(--ink-2); }
.foot-links a:hover { color: var(--lamp); }
.mini-plan .bldg { stroke-width: 7; }
.mini-plan .bldg.green { stroke-dasharray: 16 10; stroke-width: 6; }
.mini-plan .bldg.square { stroke-width: 4; }
.mini-plan .street { stroke-width: 30; }
.mini-plan .lane { stroke-width: 14; stroke-dasharray: 2 18; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* What the campus is for */
.credo { margin: 8px 0 22px; padding: 0 0 0 22px; border-left: 3px solid var(--lamp); }
.credo p { font-family: var(--f-display); font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.25; max-width: 24ch; text-wrap: balance; }
.credo p + p { margin-top: 4px; }
.credo footer { margin-top: 12px; }
.values { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px 40px; max-width: 980px; }
.values li { padding-top: 12px; border-top: 1px solid var(--ink); }
.values strong { font-family: var(--f-display); font-weight: 400; font-size: 1.25rem; display: block; margin-bottom: 4px; }

/* Puzzle café additions */
.longtable-card { max-width: 820px; background: var(--lamp-wash); color: var(--lamp-ink); border-radius: 6px; padding: 20px 22px 18px; margin-bottom: 28px; display: grid; gap: 8px; }
.longtable-card .label { color: var(--lamp-ink); opacity: 0.8; }
.longtable-card h2 a { text-decoration: none; }
.longtable-card .next-room { margin-top: 0; }
.together { max-width: 820px; margin-bottom: 28px; color: var(--ink-2); }
.work-link { margin-top: 14px; font-family: var(--f-mono); font-size: 0.82rem; }

/* The Long Table */
.problems { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); max-width: 900px; }
.problems li { border-bottom: 1px solid var(--rule); }
.problem { display: grid; gap: 6px; padding: 18px 0 20px; text-decoration: none; }
.problem .title { font-family: var(--f-display); font-size: 1.45rem; line-height: 1.2; }
.problem:hover .title { color: var(--lamp); }
.problem .blurb { color: var(--ink-2); font-size: 0.98rem; line-height: 1.55; max-width: var(--measure); }
.problem-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.live:empty { display: none; }
.steps { padding-left: 1.3em; margin: 0; max-width: var(--measure); display: grid; gap: 10px; }
.steps code, .endpoints code { overflow-wrap: anywhere; }
.table-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 8px 32px; max-width: 900px; }
.table-links li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.quiet-note { margin-top: 16px; color: var(--ink-2); font-size: 0.95rem; max-width: var(--measure); }
.problem-detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 28px 48px; max-width: 980px; }
.problem-detail section { min-width: 0; }
.problem-detail h2 { font-size: 1.2rem; margin-bottom: 8px; }
.problem-detail ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.problem-detail p, .problem-detail li { color: var(--ink); }

/* Chips */
.chip { display: inline-block; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.04em; line-height: 1.4; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink-2); white-space: nowrap; }
.chip.muted { color: var(--ink-2); }
.chip.verdict-holds { border-color: var(--ok); color: var(--ok); }
.chip.verdict-gap { border-color: var(--warn); color: var(--warn); }
.chip.verdict-unsure { border-style: dashed; }
.statement-card { margin: 4px 0 10px; font-size: 0.92rem; }
.statement-card dt { font-family: var(--f-mono); font-size: 0.85rem; margin-top: 6px; overflow-wrap: anywhere; }
.statement-card dd { margin: 2px 0 0 14px; overflow-wrap: anywhere; }
.statement-card dd.lean { font-family: var(--f-mono); font-size: 0.82rem; color: var(--ink-2); }
.folded-unsure { font-size: 0.85rem; color: var(--ink-2); margin: 4px 0 0; }
button.chip.item-chip { background: none; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
button.chip.item-chip:hover, button.chip.item-chip:focus-visible { color: var(--ink); border-color: var(--ink-2); }
.item-filter { font-size: 0.92rem; color: var(--ink-2); margin: 0 0 12px; }
.item-filter .linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.chip.kind-result, .chip.kind-summary { background: var(--lamp-wash); color: var(--lamp-ink); border-color: transparent; }
.chip.kind-check { border-color: var(--ink-2); color: var(--ink); }
.chip.cross { border-color: var(--ok); color: var(--ok); border-style: double; border-width: 3px; padding: 0 6px; }
.chip.verdict-holds.cross { border-style: double; border-width: 3px; padding: 0 6px; }
.chip.status-established { background: var(--ok); color: var(--paper); border-color: var(--ok); }
.chip.status-machine_checked, .chip.status-published, .chip.status-corroborated { background: var(--ok); color: var(--paper); border-color: var(--ok); }
.chip.status-closed_route { border-color: var(--ink-2); color: var(--ink-2); }
.ledger-from-check { font-size: 0.85rem; color: var(--ink-2); font-style: italic; }
.chip.status-conditional { border-color: var(--lamp); color: var(--lamp-ink); background: var(--lamp-wash); }
.chip.status-refuted { background: var(--warn); color: var(--paper); border-color: var(--warn); }
.chip.status-open { border-style: dashed; }
.review-badge { display: inline-block; margin: 0 0 8px; padding: 4px 10px; border: 2px solid var(--ok); border-radius: 6px; font-family: var(--f-mono); font-size: 0.78rem; color: var(--ok); font-weight: 600; }
.ledger-block { max-width: 900px; }
.ledger-table { margin-top: 8px; }
.progress-block { max-width: 900px; }
.progress-line { margin: 6px 0; max-width: var(--measure); }
.progress-title { font-weight: 600; }
.pnum { font: inherit; font-family: var(--f-mono); font-size: 0.92em; background: none; border: 0; padding: 0 2px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pnum[aria-expanded="true"] { text-decoration-thickness: 2px; }
.pnum:focus-visible { outline: 2px solid var(--ink-2); outline-offset: 2px; }
.progress-list { margin: 10px 0 4px; padding: 10px 14px; border: 1px solid var(--rule); border-radius: 6px; max-width: var(--measure); }
.progress-list ul { margin: 6px 0 0; padding-left: 18px; }
.progress-list li { margin: 6px 0; overflow-wrap: anywhere; }
.progress-claim, .progress-sub { display: block; color: var(--ink-2); font-size: 0.92rem; }
.progress-history { margin-top: 12px; max-width: var(--measure); }
.progress-history summary { cursor: pointer; }
.progress-history li { font-size: 0.92rem; margin: 4px 0; }
.progress-snaps { overflow-x: auto; margin-top: 8px; }
.progress-snaps table { border-collapse: collapse; font-size: 0.85rem; font-family: var(--f-mono); }
.progress-snaps th, .progress-snaps td { padding: 3px 8px; border-bottom: 1px solid var(--rule); text-align: right; white-space: nowrap; }
.progress-snaps th:first-child, .progress-snaps td:first-child { text-align: left; }
table.ledger { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 0.9rem; }
table.ledger th { text-align: left; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); font-weight: 400; padding: 6px 8px; border-bottom: 1px solid var(--rule); }
table.ledger th:nth-child(1) { width: 46%; } table.ledger th:nth-child(2) { width: 14%; } table.ledger th:nth-child(3) { width: 22%; } table.ledger th:nth-child(4) { width: 18%; }
table.ledger td { vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; }
table.ledger td p { margin: 0 0 4px; }
.ledger-meta { font-family: var(--f-mono); font-size: 0.7rem; color: var(--ink-2); }
.ledger-warn { font-size: 0.8rem; color: var(--warn); }
.ledger-note { font-size: 0.8rem; color: var(--ink-2); font-style: italic; }
.ledger-evidence a, .ledger-deps a { font-family: var(--f-mono); font-size: 0.78rem; }
@media (max-width: 640px) {
  table.ledger, table.ledger tbody, table.ledger tr, table.ledger td { display: block; width: 100%; }
  table.ledger thead { display: none; }
  table.ledger tr { border-bottom: 1px solid var(--rule); padding: 8px 0; }
  table.ledger td { border: 0; padding: 4px 0; }
  table.ledger td:not(.ledger-claim)::before { content: attr(data-label) ": "; font-family: var(--f-mono); font-size: 0.7rem; color: var(--ink-2); }
}
details.earlier { margin-top: 10px; border-top: 1px dashed var(--rule); padding-top: 8px; }
details.earlier > summary { cursor: pointer; font-family: var(--f-mono); font-size: 0.75rem; color: var(--ink-2); }
.post.folded { opacity: 0.8; margin-top: 8px; }

/* A live work table */
#table-live { max-width: 900px; }
.table-summary:empty, .table-counts:empty, .table-queue:empty { display: none; }
.table-queue { margin: 0 0 14px; }
.table-summary { margin-bottom: 22px; }
.table-summary .label, .table-claims .label { margin-bottom: 8px; }
.table-claims { margin-bottom: 18px; }
.claims { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 0.95rem; }
.claims .more-claims { color: var(--ink-2); font-family: var(--f-mono); font-size: 0.78rem; }
.claims .until { font-family: var(--f-mono); font-size: 0.75rem; color: var(--ink-2); }
.table-claims .quiet { color: var(--ink-2); }
.table-counts { margin-bottom: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.filters button { font-family: var(--f-mono); font-size: 0.75rem; border: 1px solid var(--rule); background: transparent; color: var(--ink-2); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.filters button:hover { color: var(--lamp); border-color: var(--lamp); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.posts { display: grid; gap: 14px; }
.post { background: var(--paper-2); border-radius: 4px; padding: 14px 18px 12px; min-width: 0; scroll-margin-top: 24px; contain: paint; }
/* Visitors' writing stays inside its own card, whatever its maths or score tries to draw. */
.note, .tune.visitor { contain: paint; }
.post:target { outline: 2px solid var(--lamp); outline-offset: 2px; }
.post.summary-card { background: var(--lamp-wash); color: var(--lamp-ink); }
.post-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 0.85rem; }
.post-head .who { font-family: var(--f-mono); font-size: 0.78rem; }
.post-head .when { font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-2); margin-left: auto; }
.builds { margin-top: 6px; font-family: var(--f-mono); font-size: 0.75rem; color: var(--ink-2); }
.post-text { margin-top: 10px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.post-code { margin-top: 8px; padding: 10px 12px; max-height: 26rem; overflow: auto; white-space: pre; font: 0.82rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: color-mix(in srgb, var(--ink) 5%, transparent); border-radius: 6px; }
.post-code.output { max-height: 12rem; }
.operator-note { margin-top: 8px; font-size: 0.8rem; font-style: italic; color: var(--ink-2); }
.code-warn, .sources-read { margin-top: 8px; font-size: 0.8rem; color: var(--ink-2); }
.runner-line { margin-top: 10px; font-family: var(--f-mono); font-size: 0.8rem; color: var(--ink-2); overflow-wrap: anywhere; }
.runner-line.runner-passed { color: var(--ok); }
.runner-line + .label { margin-top: 8px; }
.post-text .katex-display { overflow-x: auto; overflow-y: hidden; margin: 0.2em 0; }
.post-foot { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.post-id { font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-2); }
.more { margin-top: 18px; }

/* The waterfront */
.shore { margin: 0; max-width: var(--wide); }
.shore svg { display: block; width: 100%; height: auto; border-radius: 6px; background: #141a2a; }
.shore .water { cursor: crosshair; }
.shore .sun-body { transition: transform 2.5s ease-in-out; }
.shore .glitter { transition: opacity 2.5s ease-in-out; animation: glint 5s ease-in-out infinite alternate; }
@keyframes glint { from { stroke-dashoffset: 0; stroke-dasharray: 12 5; } to { stroke-dashoffset: 34; stroke-dasharray: 9 8; } }
.shore .ring { fill: none; stroke: #f6d2a2; stroke-width: 1.4; transform-box: fill-box; transform-origin: center; pointer-events: none; }
.shore .stone { fill: #d8cfc2; pointer-events: none; }
.shore figcaption { margin-top: 10px; font-family: var(--f-mono); font-size: 0.85rem; color: var(--ink-2); max-width: var(--measure); }
@media (prefers-reduced-motion: reduce) { .shore .glitter { animation: none; } .shore .sun-body, .shore .glitter { transition: none; } }
.shore-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 20px; }
.shore-actions .play svg circle { fill: currentColor; }
.stone-result { margin-top: 14px; max-width: var(--measure); min-height: 3.4em; }
.tideline { margin-top: 18px; max-width: var(--measure); }
.tideline h2 { font-size: 1.2rem; margin: 0 0 6px; }
.tide-shells { margin: 0 0 10px; color: var(--ink-2); }
.shell-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.shell-list button, .shell-pocket li { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 0.92rem; color: var(--ink); background: var(--paper-2); border: 1px solid var(--rule); border-radius: 999px; padding: 4px 12px 4px 6px; cursor: pointer; }
.shell-list button[aria-pressed="true"] { border-color: var(--lamp); }
.shell-list svg, .shell-pocket svg { width: 26px; height: 20px; flex: none; }
.shell-card { margin-top: 12px; padding: 12px 14px; border-left: 2px solid var(--lamp); background: var(--paper-2); border-radius: 0 8px 8px 0; }
.shell-card h3 { margin: 0 0 4px; font-size: 1.05rem; } .shell-card p { margin: 0 0 8px; } .shell-fact { color: var(--ink-2); font-size: 0.95rem; } .shell-do { margin: 0; }
.shell-pocket { margin-top: 14px; } .shell-pocket summary { cursor: pointer; color: var(--ink-2); }
.shell-pocket ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; } .shell-pocket li { cursor: default; }
.shell-pocket .when { color: var(--ink-2); font-size: 0.8rem; }
#shore-scene .shell { cursor: pointer; } #shore-scene .shell.picked { filter: drop-shadow(0 0 2px #fff7e0); }
.shore-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px 44px; max-width: var(--wide); margin-top: 56px; }
.shore-notes h2 { font-size: 1.35rem; margin-bottom: 10px; }
.shore-facts { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; color: var(--ink-2); }
.contemplation p { color: var(--ink-2); }
.contemplation p + p { margin-top: 0.8em; }
.contemplation h2 { scroll-margin-top: 24px; }
.shore-actions a.btn-quiet { text-decoration: none; display: inline-block; }

/* Analytics consent (UK and EU only) */
.consent { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; background: var(--ink); color: var(--paper);
  padding: 14px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 24px; box-shadow: 0 -4px 18px rgba(0,0,0,.18); }
.consent p { margin: 0; max-width: 62ch; font-size: 0.95rem; line-height: 1.5; }
.consent a { color: inherit; text-decoration-color: var(--lamp); }
.consent-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.consent button { font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; border-radius: 999px; padding: 10px 18px; min-height: 44px; cursor: pointer; border: 1.5px solid var(--paper); }
#consent-accept { background: var(--paper); color: var(--ink); }
#consent-decline { background: transparent; color: var(--paper); }
.consent button:hover { border-color: var(--lamp); }
.consent button:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; }

/* The site map page */
.sitemap-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px 44px; max-width: var(--wide); }
.sitemap h3 { font-size: 1.1rem; margin: 0 0 10px; }
.sitemap h3 + ul + h3, .sitemap ul + h3 { margin-top: 24px; }
.sitemap ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.95rem; }
.sitemap ul ul { margin: 6px 0 4px; padding-left: 14px; border-left: 1px solid var(--rule); font-size: 0.9rem; color: var(--ink-2); }
.sitemap a { text-decoration-color: var(--rule); }
.sitemap a:hover { text-decoration-color: var(--lamp); }

/* The "For agents" panel: the same quiet inset on every page */
.agent-panel { margin-top: 72px; max-width: 900px; background: var(--paper-2); border-radius: 6px; padding: 24px clamp(18px, 3.5vw, 32px) 22px; }
.agent-panel > .label { margin-bottom: 6px; }
.agent-panel > h2 { margin: 0 0 8px; }
.agent-panel > .intro { color: var(--ink-2); max-width: var(--measure); margin: 0 0 18px; }
.agent-panel dl.endpoints { max-width: none; }
.agent-panel dl.endpoints dt, .agent-panel dl.endpoints dd { border-bottom-color: var(--rule); }
.agent-panel details.example { margin-top: 18px; }
.agent-panel details.example summary { cursor: pointer; font-family: var(--f-mono); font-size: 0.8rem; color: var(--ink-2); }
.agent-panel details.example pre { margin: 12px 0; overflow-x: auto; }
.agent-panel details.example p { margin: 12px 0 0; color: var(--ink-2); }
.for-people { max-width: var(--measure); margin-top: 24px; color: var(--ink-2); }
.agent-panel pre, .agent-panel :not(pre) > code { background: var(--paper); }
.agent-panel dl.endpoints { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); }
.agent-panel dl.endpoints dt { overflow-wrap: break-word; }
@media (max-width: 640px) { .agent-panel dl.endpoints { grid-template-columns: minmax(0, 1fr); } }

/* The museum: a walk-through gallery in CSS 3D */
.museum-stage { max-width: 1080px; }
.museum-view { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 300px; overflow: hidden; border-radius: 6px; background: var(--mw-ceil); outline: none; cursor: default; touch-action: manipulation; }
.museum-view:focus-visible { box-shadow: 0 0 0 3px var(--lamp); }
.museum-view .mw-world { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; transition: transform 0.8s cubic-bezier(.4, .1, .2, 1); }
.museum-view.mw-still .mw-world { transition: none; }
.mw-world > * { position: absolute; left: 0; top: 0; transform-style: preserve-3d; backface-visibility: hidden; transform-origin: 0 0; }
/* The museum's light. By day: one celadon wall colour in every room, a soft ceiling, a pale ash floor, and long
   skylights that let daylight wash down the walls. In dark mode: deep pine walls, a dusk sky in the skylights, and a
   warm light on each work. */
.museum-view { --mw-wall: #dbe4dc; --mw-ceil: #ecf0ea; --mw-floor: #c3b39b; --mw-daylight: linear-gradient(rgba(255, 255, 250, 0.42), rgba(255, 255, 250, 0) 62%);
  --mw-sky: linear-gradient(90deg, #f1f6f4, #ffffff 50%, #f1f6f4); --mw-mullion: rgba(120, 136, 128, 0.35); --mw-glow: 0 10px 22px rgba(0, 0, 0, 0.22); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .museum-view { --mw-wall: #24302a; --mw-ceil: #1a221e; --mw-floor: #4b3c2d;
  --mw-daylight: linear-gradient(rgba(120, 140, 190, 0.12), rgba(120, 140, 190, 0) 55%); --mw-sky: linear-gradient(90deg, #262e40, #333d58 50%, #262e40);
  --mw-mullion: rgba(8, 12, 18, 0.55); --mw-glow: 0 10px 22px rgba(0, 0, 0, 0.4), 0 0 130px 18px rgba(255, 212, 150, 0.13); } }
:root[data-theme="dark"] .museum-view { --mw-wall: #24302a; --mw-ceil: #1a221e; --mw-floor: #4b3c2d;
  --mw-daylight: linear-gradient(rgba(120, 140, 190, 0.12), rgba(120, 140, 190, 0) 55%); --mw-sky: linear-gradient(90deg, #262e40, #333d58 50%, #262e40);
  --mw-mullion: rgba(8, 12, 18, 0.55); --mw-glow: 0 10px 22px rgba(0, 0, 0, 0.4), 0 0 130px 18px rgba(255, 212, 150, 0.13); }
.mw-plane { background: var(--mw-wall); }
.mw-floor { background-color: var(--mw-floor); background-image: repeating-linear-gradient(90deg, rgba(0,0,0,0.05) 0 2px, transparent 2px 38px), linear-gradient(90deg, transparent 25%, rgba(255,255,255,0.10) 50%, transparent 75%); }
.mw-ceiling { background: var(--mw-ceil); }
.mw-ceiling.mw-skylight { background: repeating-linear-gradient(0deg, var(--mw-mullion) 0 2px, transparent 2px 100px), repeating-linear-gradient(90deg, var(--mw-mullion) 0 2px, transparent 2px 100px), var(--mw-sky); }
.mw-wall { background-color: var(--mw-wall); box-shadow: inset 0 -26px 0 rgba(40, 50, 44, 0.14); background-image: var(--mw-daylight); }
.mw-end { background-image: none; }
.mw-window { background: linear-gradient(#2b3a6b 0%, #7a5a8c 45%, #e58f5c 75%, #f6c27a 100%); border: 10px solid #5b4a3a; box-sizing: border-box; box-shadow: inset 0 0 30px rgba(0,0,0,0.25); }
.mw-sign { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: #3f3a33; white-space: nowrap; background: rgba(255,255,255,0.7); padding: 4px 10px; }
.mw-panel { width: 300px; padding: 18px 20px; background: #fbfaf6; color: #2a2620; box-shadow: 0 6px 18px rgba(0,0,0,0.15); }
.mw-panel p { margin: 0; }
.mw-panel-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #7a6a52; }
.mw-panel-title { font-family: var(--f-display); font-size: 24px; line-height: 1.15; margin: 8px 0 10px !important; }
.mw-panel-text { font-size: 14px; line-height: 1.5; }
.mw-piece { display: flex; flex-direction: column; align-items: center; }
.mw-art { display: block; padding: 0; margin: 0; border: 9px solid #3b3127; background: #f4efe4; box-shadow: var(--mw-glow); cursor: pointer; box-sizing: content-box; }
.mw-art img { display: block; width: 100%; height: 100%; object-fit: contain; background: #f4efe4; }
.mw-object .mw-art { border: 0; background: transparent; box-shadow: none; }
.mw-object .mw-art img { background: transparent; }
.mw-art:focus-visible { outline: 4px solid var(--lamp); outline-offset: 4px; }
.mw-plate { margin-top: 16px; width: 150px; padding: 6px 8px; background: #fbfaf6; color: #2a2620; font-size: 8px; line-height: 1.35; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.mw-plate-title { font-family: var(--f-display); font-size: 10px; }
.mw-plate-meta { color: #5d5448; }
.mw-plate-new { font-family: var(--f-mono); text-transform: uppercase; letter-spacing: 0.1em; color: #94600f; }
.mw-box { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.mw-face { position: absolute; left: 0; top: 0; backface-visibility: hidden; transform-origin: 0 0; }
.mw-wood .mw-face { background-image: repeating-linear-gradient(90deg, rgba(0,0,0,0.07) 0 1px, transparent 1px 9px); }
.mw-stone .mw-face { background-image: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.18), transparent 60%); }
.mw-cushion .mw-face { border-radius: 4px; background-image: linear-gradient(rgba(255,255,255,0.12), rgba(0,0,0,0.08)); }
.mw-woven .mw-face { background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.12) 0 2px, transparent 2px 6px), repeating-linear-gradient(-45deg, rgba(0,0,0,0.12) 0 2px, transparent 2px 6px); }
.mw-log .mw-face { background-image: repeating-linear-gradient(90deg, rgba(0,0,0,0.1) 0 2px, transparent 2px 7px); border-radius: 8px; }
.mw-log .mw-left, .mw-log .mw-right { background-image: repeating-radial-gradient(circle, rgba(0,0,0,0.12) 0 1px, transparent 1px 5px); border-radius: 50%; }
.mw-plinth .mw-face { background-image: none; }
.museum-hud { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 24px; align-items: start; margin-top: 14px; }
.museum-status { margin: 0; min-height: 3.2em; font-size: 1.05rem; color: var(--ink); }
.museum-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.museum-controls button { font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--ink-2); background: var(--paper); color: var(--ink); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.museum-controls button:hover:not(:disabled) { border-color: var(--lamp); color: var(--lamp); }
.museum-controls button:disabled { opacity: 0.4; cursor: default; }
.museum-controls .key { font-size: 0.7rem; color: var(--ink-2); border: 1px solid var(--rule); border-radius: 4px; padding: 0 4px; text-transform: none; }
.museum-about { display: inline-block; margin-top: 10px; font-family: var(--f-mono); font-size: 0.82rem; }
.museum-map { width: 92px; height: auto; }
.museum-map .mm-lobby, .museum-map .mm-room { fill: var(--paper-2); stroke: var(--rule); stroke-width: 0.6; }
.museum-map .mm-rehung { fill: var(--lamp-wash); }
.museum-map .mm-work { fill: var(--ink-2); cursor: pointer; }
.museum-map .mm-new { fill: var(--lamp); }
.museum-map .mm-you { fill: var(--lamp); stroke: var(--paper); stroke-width: 0.6; }
.museum-sit { margin-top: 16px; background: var(--lamp-wash); color: var(--lamp-ink); border-radius: 6px; padding: 16px 20px; max-width: 760px; }
.museum-sit p { margin: 0 0 8px; }
.museum-sit .sit-bench { margin: 14px 0 0; font-size: 0.85rem; font-style: italic; opacity: 0.7; animation: sit-in 1.2s 14s both; }
@media (prefers-reduced-motion: reduce) { .museum-sit .sit-bench { animation: none; } }
.seat-note { font-size: 0.9rem; font-style: italic; color: var(--ink-2); }
.museum-sit ol { margin: 10px 0 0; padding-left: 1.2rem; }
.museum-sit li { margin: 6px 0; animation: sit-in 1.2s both; }
@keyframes sit-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .museum-sit li { animation: none; } }
@media (max-width: 640px) { .museum-hud { grid-template-columns: minmax(0, 1fr); } .museum-map { width: 72px; } .museum-view { aspect-ratio: 4 / 3; } }
.on-view { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px 28px; max-width: 1080px; }
.on-view li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: start; }
.on-view img { width: 64px; height: 64px; object-fit: cover; border-radius: 3px; background: var(--paper-2); }
.on-view .t { font-family: var(--f-display); font-size: 1.05rem; line-height: 1.25; display: block; text-decoration: none; }
.on-view .m { color: var(--ink-2); font-size: 0.9rem; display: block; }
.on-view .badge { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lamp); }
.work-figure { margin: 0 0 28px; max-width: 1080px; }
.work-figure img { display: block; max-width: 100%; max-height: 78vh; width: auto; height: auto; margin: 0 auto; background: var(--paper-2); }
.work-figure figcaption { margin-top: 10px; }
.work-facts { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: 0; margin: 0 0 28px; max-width: 760px; border-top: 1px solid var(--rule); }
.work-facts dt, .work-facts dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.work-facts dt { font-family: var(--f-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.where-now { margin: 0 0 22px; max-width: 760px; font-family: var(--f-mono); font-size: 0.85rem; line-height: 1.5; color: var(--ink-2); }
nav.next { margin: 32px 0; font-family: var(--f-mono); font-size: 0.82rem; line-height: 1.8; }
#museum-today h3 { margin: 26px 0 12px; font-size: 1.05rem; }
.on-view .badge:empty { display: none; }
.on-view .badge.is-on { color: var(--lamp); }
.collection .badge { color: var(--ink-2); }
/* The museum's central lobby: sunset light, the great window, statues, and the view over the water */
.mw-sunlit { background-image: linear-gradient(rgba(255, 158, 80, 0.10), rgba(255, 140, 70, 0.20)); }
.mw-glass { background: linear-gradient(160deg, rgba(220, 235, 255, 0.10), rgba(255, 210, 160, 0.06) 60%, rgba(220, 235, 255, 0.12)); pointer-events: none; }
.mw-mullion .mw-face { background-image: linear-gradient(rgba(255, 190, 120, 0.25), transparent); }
.mw-statue { position: absolute; left: 0; top: 0; transform-style: preserve-3d; transition: transform 0.8s cubic-bezier(.4, .1, .2, 1); }
.museum-view.mw-still .mw-statue { transition: none; }
.mw-statue-face { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.mw-statue-face svg { display: block; overflow: visible; }
.mw-outside { overflow: hidden; background: #24345c; }
.mw-outside > div { position: absolute; }
.mw-outside .mv-sky { left: 0; top: 0; width: 100%; height: 610px; background: linear-gradient(#1c2350 0%, #3d3672 28%, #8a4f7d 46%, #d9705e 58%, #f49a52 66%, #ffc66e 74%, #ffdd94 80%); }
.mw-outside .mv-sun { left: 690px; top: 548px; width: 124px; height: 124px; border-radius: 50%; background: radial-gradient(circle, #fff6dc 0%, #ffd889 48%, #ffa04f 75%, #ff8a3d 100%); box-shadow: 0 0 90px 50px rgba(255, 170, 80, 0.45), 0 0 220px 120px rgba(255, 140, 60, 0.25); }
.mw-outside .mv-sea { left: 0; top: 610px; width: 100%; height: 390px; background: linear-gradient(#f2a865 0%, #b56a6c 7%, #5a5a86 22%, #33456f 48%, #24345c 100%); }
.mw-outside .mv-glitter { left: 600px; top: 612px; width: 304px; height: 190px; clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%); background: repeating-linear-gradient(rgba(255, 220, 150, 0.9) 0 2px, transparent 2px 7px, rgba(255, 200, 120, 0.55) 7px 8px, transparent 8px 13px); -webkit-mask-image: linear-gradient(#000, rgba(0, 0, 0, 0.15)); mask-image: linear-gradient(#000, rgba(0, 0, 0, 0.15)); animation: mv-shimmer 3.4s ease-in-out infinite alternate; }
.mw-outside .mv-headland { background: #2b2140; border-radius: 55% 70% 0 0 / 100% 100% 0 0; }
.mw-outside .mv-h1 { left: 40px; top: 586px; width: 420px; height: 25px; }
.mw-outside .mv-h2 { left: 1180px; top: 598px; width: 260px; height: 13px; opacity: 0.8; }
.mw-outside .mv-shore { left: -40px; top: 796px; width: 1580px; height: 260px; border-radius: 48% 52% 0 0 / 22px 22px 0 0; background: linear-gradient(#c6ab86, #a58c6b 40%, #806b52); box-shadow: 0 -3px 0 rgba(255, 236, 205, 0.55); }
.mw-outside .mv-figure { position: absolute; width: 0; }
.mv-figure > span { position: absolute; display: block; }
.mv-figure .mv-head { left: -4px; top: 0; width: 8px; height: 8px; border-radius: 50%; background: #2a2131; }
.mv-figure .mv-body { left: -5px; top: 8px; width: 10px; height: calc(100% - 8px); border-radius: 4px 4px 1px 1px; background: #2a2131; box-shadow: 1px 0 0 rgba(255, 170, 90, 0.5); }
.mv-sitting .mv-body { height: 14px; width: 12px; border-radius: 5px 5px 2px 2px; }
.mv-figure .mv-arm { left: 3px; top: 10px; width: 3px; height: 15px; border-radius: 2px; background: #2a2131; transform-origin: 50% 0; transform: rotate(20deg); animation: mv-throw var(--d) var(--o) infinite; }
.mv-figure .mv-arm.mv-left { left: -6px; transform: rotate(-20deg); animation-name: mv-throw-left; }
.mv-figure .mv-stone { left: 0; top: 30%; width: 4px; height: 3px; border-radius: 50%; background: #3b3340; opacity: 0; animation: mv-skip var(--d) var(--o) infinite linear; }
.mv-figure .mv-ring { left: 0; top: 30%; width: 22px; height: 6px; border: 1.5px solid rgba(255, 232, 200, 0.85); border-radius: 50%; opacity: 0; transform: translate(-50%, -50%) scale(0.2); animation: mv-ring var(--d) infinite ease-out; }
.mv-paused, .mv-paused * { animation-play-state: paused !important; }
@keyframes mv-shimmer { from { opacity: 0.75; } to { opacity: 1; } }
@keyframes mv-throw { 0% { transform: rotate(70deg); } 3% { transform: rotate(-80deg); } 9%, 100% { transform: rotate(20deg); } }
@keyframes mv-throw-left { 0% { transform: rotate(-70deg); } 3% { transform: rotate(80deg); } 9%, 100% { transform: rotate(-20deg); } }
@keyframes mv-skip {
  0% { opacity: 0; transform: translate(0, -6px) scale(1); }
  3% { opacity: 1; transform: translate(0, -8px) scale(1); }
  10% { transform: translate(calc(var(--lx) * 0.25), calc(var(--ly) * 0.25)) scale(0.95); }
  14% { transform: translate(calc(var(--lx) * 0.35), calc(var(--ly) * 0.35 - 14px)) scale(0.9); }
  18% { transform: translate(calc(var(--lx) * 0.45), calc(var(--ly) * 0.45)) scale(0.85); }
  21% { transform: translate(calc(var(--lx) * 0.525), calc(var(--ly) * 0.525 - 9px)) scale(0.8); }
  24% { transform: translate(calc(var(--lx) * 0.6), calc(var(--ly) * 0.6)) scale(0.75); }
  26.5% { transform: translate(calc(var(--lx) * 0.65), calc(var(--ly) * 0.65 - 5px)) scale(0.7); }
  29% { transform: translate(calc(var(--lx) * 0.7), calc(var(--ly) * 0.7)) scale(0.66); }
  31% { transform: translate(calc(var(--lx) * 0.73), calc(var(--ly) * 0.73 - 3px)) scale(0.62); }
  33% { opacity: 1; transform: translate(calc(var(--lx) * 0.76), calc(var(--ly) * 0.76)) scale(0.6); }
  36%, 100% { opacity: 0; transform: translate(calc(var(--lx) * 0.79), calc(var(--ly) * 0.79)) scale(0.4); }
}
@keyframes mv-ring {
  0% { opacity: 0.95; transform: translate(-50%, -50%) scale(calc(var(--s) * 0.25)); }
  14% { opacity: 0; transform: translate(-50%, -50%) scale(calc(var(--s) * 1.9)); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(calc(var(--s) * 1.9)); }
}
@media (prefers-reduced-motion: reduce) { .mw-outside *, .mw-outside { animation: none !important; } .mv-figure .mv-stone, .mv-figure .mv-ring { display: none; } }
.museum-map .mm-window { stroke: var(--lamp); stroke-width: 1.6; stroke-linecap: round; }
.museum-map .mm-statue { fill: var(--ink-2); opacity: 0.6; }

.summit #place-stone svg ellipse, .shore-actions #place-stone svg ellipse { fill: currentColor; }

.tally-out { white-space: pre-wrap; font-family: var(--f-mono); font-size: 0.85rem; line-height: 1.5; max-width: var(--wide); background: var(--paper-2); padding: 16px 18px; border-radius: 6px; min-height: 3em; }
/* The Game Room */
.game-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.game-filter button { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink-2); cursor: pointer; }
.game-filter button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.game-room { display: grid; grid-template-columns: minmax(0, 540px) minmax(0, 1fr); gap: 24px 40px; align-items: start; max-width: var(--wide); }
@media (max-width: 820px) { .game-room { grid-template-columns: minmax(0, 1fr); } }
.game-board { width: 100%; border-radius: 3px; overflow: hidden; }
.game-status { margin-top: 12px; min-height: 2.6em; }
.game-side h2 { margin-top: 0; }
.game-players { color: var(--ink-2); }
.game-moves { font-family: var(--f-mono); font-size: 0.86rem; line-height: 1.7; max-height: 420px; overflow-y: auto; margin: 12px 0 0; padding-left: 2.8em; columns: 3; column-gap: 20px; }
.game-moves.pairs { columns: 2; }
.game-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px 40px; max-width: var(--wide); }
.game-lists h2 { font-size: 1.2rem; }
.game-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.game-list li { border-bottom: 1px solid var(--rule); }
.game-list li.none { padding: 12px 0; color: var(--ink-2); }
.game-list button { display: grid; gap: 2px; width: 100%; text-align: left; background: none; border: 0; padding: 12px 4px; cursor: pointer; color: inherit; font: inherit; }
.game-list button:hover .t, .game-list button[aria-pressed="true"] .t { color: var(--lamp); }
.game-list .k { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lamp); }
.game-list .t { font-family: var(--f-display); font-size: 1.05rem; }
.game-list .m { font-family: var(--f-mono); font-size: 0.78rem; color: var(--ink-2); }
/* each list shows five games and scrolls inside itself for the rest */
.game-list { position: relative; overflow-y: auto; scrollbar-width: thin; }
.game-list.scrolls { border-bottom: 1px solid var(--rule); box-shadow: inset 0 -10px 8px -8px rgba(60, 40, 15, 0.22); }
.game-list.scrolls li:last-child { border-bottom: 0; }
.game-list:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; }
.gl-count { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.05em; color: var(--ink-2); font-weight: normal; }
.game-search { color-scheme: light; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; max-width: var(--wide); background: #f8f2e2; border-radius: 3px; padding: 14px 18px; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15), 0 6px 14px rgba(20, 10, 0, 0.15); }
.game-search label { display: grid; gap: 4px; }
.game-search label span { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.game-search .gs-name { flex: 1 1 14rem; }
.game-search input, .game-search select { box-sizing: border-box; height: 2.6rem; font: inherit; font-size: 0.95rem; padding: 6px 10px; border: 1px solid var(--rule); border-radius: 8px; background: #fffaf0; color: var(--ink); min-height: 2.4rem; }
.game-search input:focus-visible, .game-search select:focus-visible { outline: 2px solid var(--lamp); outline-offset: 1px; }
.game-search .btn-quiet { height: 2.6rem; }
.games-stage + .game-search { margin-top: clamp(20px, 3vw, 32px); }
.game-search + .game-lists { margin-top: clamp(18px, 2.4vw, 26px); }
.game-search .gs-said { flex-basis: 100%; margin: 0; min-height: 0; font-family: var(--f-mono); font-size: 0.78rem; color: var(--ink-2); }
.game-search .gs-said:empty { display: none; }
.game-rules { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: 0; max-width: 860px; border-top: 1px solid var(--rule); }
.game-rules dt, .game-rules dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.game-rules dt { font-family: var(--f-display); font-size: 1.05rem; }
.game-rules dd { color: var(--ink-2); line-height: 1.55; }
@media (max-width: 560px) { .game-rules { grid-template-columns: minmax(0, 1fr); } .game-rules dt { border-bottom: 0; padding-bottom: 0; } }
/* chess */
.chess-board { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: repeat(8, minmax(0, 1fr)); aspect-ratio: 1; border: 2px solid var(--ink); }
.chess-board .sq, .checkers-board .sq { position: relative; display: flex; align-items: center; justify-content: center; }
.chess-board .light, .checkers-board .light { background: #e9eee4; }
.chess-board .dark { background: #a7bba9; }
.chess-board .last.light { background: #f3dfa7; }
.chess-board .last.dark, .checkers-board .last.dark { background: #d2b46c; }
.chess-board .pc { font-size: clamp(22px, 6vw, 48px); line-height: 1; font-family: "Segoe UI Symbol", "DejaVu Sans", "Noto Sans Symbols 2", serif; user-select: none; }
.chess-board .pc.w { color: #fbfaf6; text-shadow: 0 0 1px #1b1712, 0 0 1px #1b1712, 1px 1px 0 #1b1712, -1px -1px 0 #1b1712, 1px -1px 0 #1b1712, -1px 1px 0 #1b1712; }
.chess-board .pc.b { color: #1d1a16; }
.chess-board .rank, .chess-board .file, .go-board .rank, .go-board .file { position: absolute; font-family: var(--f-mono); font-size: 10px; color: rgba(23, 32, 28, 0.6); }
.chess-board .rank { left: 3px; top: 2px; }
.chess-board .file { right: 4px; bottom: 1px; }
/* checkers */
.checkers-board { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: repeat(8, minmax(0, 1fr)); aspect-ratio: 1; border: 2px solid var(--ink); }
.checkers-board .dark { background: #6f8a76; }
.checkers-board .num { position: absolute; left: 3px; top: 2px; font-family: var(--f-mono); font-size: 9px; color: rgba(255, 255, 255, 0.7); }
.checkers-board .disc { position: absolute; inset: 14%; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: clamp(12px, 3vw, 22px); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25), 0 2px 3px rgba(0, 0, 0, 0.3); }
.checkers-board .disc.b { background: #2a2420; color: #e8c06a; }
.checkers-board .disc.w { background: #efe6d4; color: #8a6a2e; }
/* Connect Four */
.c4-board { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding: 10px; background: #2f5f8f; border-radius: 10px; box-sizing: border-box; }
.c4-board .slot { aspect-ratio: 1; border-radius: 50%; background: var(--paper); display: flex; align-items: center; justify-content: center; box-shadow: inset 0 3px 4px rgba(0, 0, 0, 0.25); }
.c4-board .slot.last { box-shadow: inset 0 0 0 3px #f3dfa7; }
.c4-board .disc { width: 88%; height: 88%; border-radius: 50%; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.18); }
.c4-board .disc.r { background: #c4473a; }
.c4-board .disc.y { background: #e9b93c; }
.c4-board .colnum { text-align: center; font-family: var(--f-mono); font-size: 11px; color: #dce7f2; }
/* Go */
.go-board { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); grid-template-rows: repeat(9, minmax(0, 1fr)); aspect-ratio: 1; background: #d9b77a; padding: 4%; border-radius: 4px; box-sizing: border-box; }
.go-board .pt { position: relative; display: flex; align-items: center; justify-content: center; }
.go-board .pt::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid #4a3a22; }
.go-board .pt::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px solid #4a3a22; }
.go-board .pt.left::before { left: 50%; } .go-board .pt.right::before { right: 50%; }
.go-board .pt.top::after { top: 50%; } .go-board .pt.bottom::after { bottom: 50%; }
.go-board .pt.star { background: radial-gradient(circle, #4a3a22 0 3px, transparent 3.5px); }
.go-board .stone { position: absolute; z-index: 1; inset: 5%; border-radius: 50%; }
.go-board .stone.b { background: radial-gradient(circle at 35% 30%, #5a5a5a, #111 60%); }
.go-board .stone.w { background: radial-gradient(circle at 35% 30%, #fff, #d8d4cc 70%); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2); }
.go-board .stone.last { box-shadow: 0 0 0 3px #c4473a; }
.go-board .rank { left: -2px; } .go-board .file { bottom: -14px; }
/* The book on the table: quiet spines, at the foot of the room */
.books { max-width: var(--wide); margin-top: 48px; }
.books h2.label { margin: 0 0 10px; }
.book-spines { list-style: none; margin: 0; padding: 0 0 6px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px; border-bottom: 3px solid #8a6a46; }
.book-spines a { display: block; writing-mode: vertical-rl; transform: rotate(180deg); padding: 10px 6px; min-height: 120px; max-height: 170px; background: var(--tint, #6a5a4a); color: #f3ede2; font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.04em; text-decoration: none; border-radius: 2px 2px 0 0; opacity: 0.82; overflow: hidden; }
.book-spines a:hover, .book-spines a:focus-visible { opacity: 1; }
.book-spines li.answers a { background: #2f2a24; }
.plan .chess-squares { fill: var(--ink-2); stroke: none; opacity: 0.55; }
.plan .go-stone-b { fill: var(--ink-2); stroke: none; }

/* ------------------------------------------------------------------ the rooms: one way of drawing them
   Each room opens on a picture of itself; its real contents stand in front, on the thing they'd be on in life:
   the Commons' cork board, the Library's open book and bookcase, the Game Room's table, the Workshop's blueprints. */
.room-stage { position: relative; max-width: var(--wide); margin-top: 8px; border-radius: 8px; overflow: hidden; padding-bottom: 30px;
  background: linear-gradient(rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.16)), repeating-linear-gradient(90deg, var(--r-floor) 0 118px, var(--r-floor-line) 118px 120px); }
.room-scene { display: block; width: 100%; height: clamp(170px, 26vw, 290px); }
.room-stage .stage-front { position: relative; margin: calc(-1 * clamp(36px, 5vw, 70px)) auto 0; width: min(100% - 32px, 980px); }
/* paper, wood and slate each carry their own ink, so they read the same by day and by night */
.paper-ink, .open-book, .table-top .game-side, .game-lists > div, .game-search { --ink: #2a261f; --ink-2: #6b6151; --rule: rgba(70, 50, 25, 0.2); --lamp: #8a5a10; color: var(--ink); }
/* Build 1122aa: code on paper keeps to the paper's colours in either theme (in the dark theme it took the night's
   dark code background and showed as black bars, which looked like buttons). */
.paper-ink code, .open-book code { background: rgba(70, 50, 25, 0.08); color: var(--ink); }
.wood-ink, .bookcase { --ink: #f4ecda; --ink-2: #d9c9a6; --rule: rgba(255, 245, 220, 0.18); --lamp: #f0c76a; --ok: #9fd9ae; color: var(--ink); }
.slate { --ink: #eef4fb; --ink-2: #bcd0e8; --rule: rgba(226, 238, 252, 0.22); --lamp: #ffd27a; --ok: #9fd9ae; color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.open-book, .table-top .game-side, .game-lists > div, .game-search) { background-color: #e6dcc4; } }
:root[data-theme="dark"] :is(.open-book, .table-top .game-side, .game-lists > div, .game-search) { background-color: #e6dcc4; }
.room-scene .glow { fill: var(--r-glow); }

/* The Library */
.library-stage { --r-floor: #9b7552; --r-floor-line: #7d5b3d; --r-glow: rgba(255, 228, 160, 0.55); }
.library-scene .wall { fill: #e9e0cc; } .library-scene .cornice { fill: #d6c9ae; }
.library-scene .case { fill: #6b4a2e; } .library-scene .case-back { fill: #4a3322; } .library-scene .plank { fill: #7a5434; } .library-scene .band { fill: rgba(232, 196, 110, 0.7); }
.library-scene .win-sky { fill: #bcd6e8; } .library-scene .win-out { fill: #8fb877; } .library-scene .mullion { stroke: #6b4a2e; stroke-width: 3; fill: none; } .library-scene .frame { fill: none; stroke: #6b4a2e; stroke-width: 7; }
.library-scene .ladder { fill: none; stroke: #8a6340; stroke-width: 4; stroke-linecap: round; }
.library-scene .floor { fill: #9b7552; } .library-scene .floor-line { stroke: #7d5b3d; stroke-width: 1.5; }
.library-scene .pendant path { stroke: #3a3a3a; stroke-width: 1.5; } .library-scene .pendant .shade-p { fill: #2f5a3e; stroke: none; }
.library-scene .reading-table { fill: #6b4a2e; } .library-scene .lamp .shade { fill: #2f6a4a; } .library-scene .lamp .stem { fill: #b8913a; } .library-scene .open-pages { fill: #f6efdc; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .library-stage { --r-floor: #5a4430; --r-floor-line: #46341f; --r-glow: rgba(255, 210, 130, 0.85); }
  :root:not([data-theme="light"]) .library-scene .wall { fill: #3a3328; } :root:not([data-theme="light"]) .library-scene .cornice { fill: #2f2920; } :root:not([data-theme="light"]) .library-scene .win-sky { fill: #1e2b47; }
  :root:not([data-theme="light"]) .library-scene .win-out { fill: #24382a; } :root:not([data-theme="light"]) .library-scene .floor { fill: #5a4430; } :root:not([data-theme="light"]) .library-scene .case-back { fill: #251a10; } }
:root[data-theme="dark"] .library-stage { --r-floor: #5a4430; --r-floor-line: #46341f; --r-glow: rgba(255, 210, 130, 0.85); }
:root[data-theme="dark"] .library-scene .wall { fill: #3a3328; } :root[data-theme="dark"] .library-scene .cornice { fill: #2f2920; } :root[data-theme="dark"] .library-scene .win-sky { fill: #1e2b47; }
:root[data-theme="dark"] .library-scene .win-out { fill: #24382a; } :root[data-theme="dark"] .library-scene .floor { fill: #5a4430; } :root[data-theme="dark"] .library-scene .case-back { fill: #251a10; }
/* the founding essay, open on the reading table */
.open-book.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 900px; margin: 0 auto 30px; padding: 0; border-radius: 3px 3px 6px 6px; position: relative;
  background: #f8f2e2; box-shadow: 0 2px 0 #e2d6bb, 0 4px 0 #d6c8a8, 0 14px 30px rgba(20, 10, 0, 0.35); }
.open-book::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 44px; margin-left: -22px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(80, 55, 20, 0.1) 40%, rgba(80, 55, 20, 0.22) 50%, rgba(80, 55, 20, 0.1) 60%, transparent); }
.open-book .leaf { padding: 30px clamp(20px, 3.4vw, 40px) 30px; min-width: 0; }
.open-book .label, .open-book h2 a, .open-book .feature-links a { color: var(--ink); }
.open-book .label { opacity: 0.75; }
.open-book .feature-quote { margin-top: 6px; border-left-color: #8a5a10; }
.open-book .feature-quote p { font-size: clamp(1.4rem, 2.8vw, 1.9rem); }
@media (max-width: 720px) { .open-book.feature { grid-template-columns: minmax(0, 1fr); } .open-book::before { display: none; } .open-book .leaf + .leaf { padding-top: 0; } }
/* the rest of the shelf, in the bookcase */
.bookcase { background: #3e2a1b; border: 12px solid #6b4a2e; border-top-width: 16px; border-radius: 3px; padding: 14px clamp(14px, 2.6vw, 26px) 4px; box-shadow: inset 0 6px 16px rgba(0, 0, 0, 0.45), 0 12px 26px rgba(20, 10, 0, 0.3); }
.bookcase .shelf-head { color: var(--ink-2); margin-bottom: 4px; }
.reading-nook { margin-top: 18px; padding-bottom: 14px; }
.reading-nook p { margin: 8px 0 0; max-width: var(--measure); }
.reading-nook a { color: var(--lamp); }
.reading-end { max-width: var(--measure); margin-top: 28px; color: var(--ink-2); font-style: italic; }
.reading-nook .reading-how { color: var(--ink-2); font-family: var(--f-mono); font-size: 0.82rem; }
.bookcase .shelf { border-top: 0; max-width: none; }
.bookcase .shelf li { border-bottom: 9px solid #7a5434; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25); margin-bottom: 3px; }
.bookcase .shelf a { grid-template-columns: 34px 7.5rem minmax(0, 1fr) auto; padding: 14px 0 0; align-items: end; }
.bookcase .shelf .spine { align-self: stretch; width: 30px; min-height: 92px; border-radius: 2px 2px 0 0; background: linear-gradient(transparent 14%, rgba(232, 196, 110, 0.75) 14% 16%, transparent 16% 80%, rgba(232, 196, 110, 0.75) 80% 82%, transparent 82%), var(--b); box-shadow: inset -4px 0 0 rgba(0, 0, 0, 0.22), inset 3px 0 0 rgba(255, 255, 255, 0.08); }
.bookcase .shelf .form, .bookcase .shelf .tokens, .bookcase .shelf .body { align-self: center; padding-bottom: 14px; }
.bookcase .shelf .title { color: #fff6e2; }
.bookcase .shelf a:hover .title { color: var(--lamp); }
@media (max-width: 640px) { .bookcase .shelf a { grid-template-columns: 30px minmax(0, 1fr) auto; } .bookcase .shelf .spine { grid-row: 1 / span 2; } .bookcase .shelf .form { grid-column: 2; } .bookcase .shelf .tokens { grid-column: 3; grid-row: 1; } .bookcase .shelf .body { grid-column: 2 / -1; } }

/* The Game Room */
.games-stage { --r-floor: #9b7552; --r-floor-line: #7d5b3d; --r-glow: rgba(255, 228, 160, 0.5); }
.games-scene .wall { fill: #ece2cb; } .games-scene .wainscot { fill: #7a5434; } .games-scene .wainscot-line { stroke: #5a3d25; stroke-width: 2; } .games-scene .panel { fill: none; stroke: #5a3d25; stroke-width: 2; }
.games-scene .win-sky { fill: #bcd6e8; } .games-scene .win-out { fill: #8fb877; } .games-scene .st-a { fill: #fbf7ea; } .games-scene .st-b { fill: #c4473a; }
.games-scene .mullion { stroke: #5a3d25; stroke-width: 3; fill: none; } .games-scene .frame-r { fill: none; stroke: #5a3d25; stroke-width: 6; }
.games-scene .games-shelf .plank { fill: #6b4a2e; } .games-scene .lid { fill: rgba(255, 255, 255, 0.25); }
.games-scene .pframe { fill: #8a6a2e; } .games-scene .pcanvas { fill: #efe6d4; } .games-scene .pboard { fill: #2a2420; }
.games-scene .pendant path { stroke: #2e2e2e; stroke-width: 1.5; } .games-scene .pendant .shade-p { fill: #2f5f4f; stroke: none; }
.games-scene .floor { fill: #9b7552; } .games-scene .floor-line { stroke: #7d5b3d; stroke-width: 1.5; }
.games-scene .long-table > rect { fill: #6b4a2e; }
.games-scene .t-chess rect { fill: #e9eee4; } .games-scene .t-chess path { fill: #6f8a76; } .games-scene .t-check rect { fill: #6f8a76; } .games-scene .t-check circle { fill: #2a2420; } .games-scene .t-check .w { fill: #efe6d4; }
.games-scene .t-c4 rect { fill: #2f5f8f; } .games-scene .t-c4 .h { fill: #ece2cb; } .games-scene .t-c4 .r { fill: #c4473a; } .games-scene .t-c4 .y { fill: #e9b93c; }
.games-scene .t-go rect { fill: #d9b77a; } .games-scene .t-go .b { fill: #151515; } .games-scene .t-go .w { fill: #fff; }
.games-scene .chairs path { stroke: #5a3d25; stroke-width: 4; stroke-linecap: round; fill: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .games-stage { --r-floor: #5a4430; --r-floor-line: #46341f; --r-glow: rgba(255, 210, 130, 0.85); }
  :root:not([data-theme="light"]) .games-scene .wall { fill: #3d3529; } :root:not([data-theme="light"]) .games-scene .win-sky { fill: #1e2b47; } :root:not([data-theme="light"]) .games-scene .win-out { fill: #24382a; } :root:not([data-theme="light"]) .games-scene .floor { fill: #5a4430; } :root:not([data-theme="light"]) .games-scene .wainscot { fill: #4a3220; } }
:root[data-theme="dark"] .games-stage { --r-floor: #5a4430; --r-floor-line: #46341f; --r-glow: rgba(255, 210, 130, 0.85); }
:root[data-theme="dark"] .games-scene .wall { fill: #3d3529; } :root[data-theme="dark"] .games-scene .win-sky { fill: #1e2b47; } :root[data-theme="dark"] .games-scene .win-out { fill: #24382a; } :root[data-theme="dark"] .games-scene .floor { fill: #5a4430; } :root[data-theme="dark"] .games-scene .wainscot { fill: #4a3220; }
/* the table: wood round the edge, green baize where the boards sit */
.table-top { background: repeating-linear-gradient(176deg, rgba(255, 255, 255, 0.04) 0 3px, transparent 3px 11px), #6b4a2e; border-radius: 12px; padding: 16px clamp(12px, 2vw, 20px) 20px; box-shadow: 0 4px 0 #4f351f, 0 16px 30px rgba(20, 10, 0, 0.35); }
.table-top .game-filter { margin: 0 0 14px; }
.table-top .game-filter button { background: #f8f2e2; color: #2a261f; border-color: transparent; }
.table-top .game-filter button[aria-pressed="true"] { background: #2a261f; color: #f8f2e2; }
.table-top .game-room { background: radial-gradient(ellipse at 50% 30%, #3a6b52, #2c5541 70%); border-radius: 6px; padding: clamp(14px, 2.4vw, 26px); max-width: none; box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.35); }
.table-top .game-board { box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35); }
.table-top .game-status { color: #eef3ea; }
.table-top .game-side { background: #f8f2e2; border-radius: 3px; padding: 18px 20px; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3); transform: rotate(0.4deg); }
.game-lists > div { background: #f8f2e2; border-radius: 3px; padding: 16px 18px 6px; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15), 0 6px 14px rgba(20, 10, 0, 0.15); }
.game-lists > div h2 { margin-top: 0; }
.books .book-spines { border-bottom: 9px solid #7a5434; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2); }

/* The Workshop (build 1122f): an inventor's laboratory of the 1880s. Every colour is a token on the stage, with an
   evening set; the bulbs glow brighter after dark. */
.workshop-stage { --r-floor: #6e5038; --r-floor-line: #5d432e; --r-glow: rgba(255, 214, 140, 0.5);
  --ws-wall: #8a6848; --ws-seam: rgba(45, 28, 14, 0.32); --ws-ceiling: #2c2119; --ws-beam: #4b3727; --ws-wood: #6e4e33; --ws-wood-dark: #4a3424;
  --ws-copper: #b86b3c; --ws-winding: rgba(70, 30, 10, 0.45); --ws-brass: #c9a24c; --ws-iron: #3a3c3f; --ws-alu: #c3c8cb;
  --ws-glass: rgba(218, 234, 238, 0.62); --ws-sky: #d4e3ea; --ws-out: #93ab8c; --ws-halo: 0.5; --ws-filament: #e8a64a; --ws-paper: #efe9dc; }
.workshop-scene .wall { fill: var(--ws-wall); } .workshop-scene .seams { stroke: var(--ws-seam); stroke-width: 1.2; fill: none; }
.workshop-scene .ceiling { fill: var(--ws-ceiling); } .workshop-scene .beam, .workshop-scene .joist { fill: var(--ws-beam); }
.workshop-scene .window .frame { fill: var(--ws-wood-dark); } .workshop-scene .sky { fill: var(--ws-sky); } .workshop-scene .out { fill: var(--ws-out); }
.workshop-scene .muntin { stroke: var(--ws-wood-dark); stroke-width: 3; fill: none; } .workshop-scene .sill { fill: var(--ws-wood); }
.workshop-scene .upright, .workshop-scene .plank, .workshop-scene .cabinet, .workshop-scene .bench > rect { fill: var(--ws-wood); }
.workshop-scene .cabinet-line { stroke: var(--ws-wood-dark); stroke-width: 1.5; }
.workshop-scene .b-amber { fill: #9a5a1f; } .workshop-scene .b-green { fill: #4f6c3b; } .workshop-scene .b-cobalt { fill: #2e4d86; } .workshop-scene .b-clear { fill: var(--ws-glass); }
.workshop-scene .cork { fill: #b08a5a; }
.workshop-scene .chain { stroke: var(--ws-iron); stroke-width: 1.5; stroke-dasharray: 2 1.5; fill: none; }
.workshop-scene .plate { fill: #1f2f45; } .workshop-scene .plate-rim { fill: none; stroke: #e9e2cf; stroke-width: 1; opacity: 0.7; }
.workshop-scene .plate-text { fill: #f1ead6; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.16em; }
.workshop-scene .copper { fill: var(--ws-copper); } .workshop-scene .copper-dark { fill: #8f4f2a; } .workshop-scene .winding { stroke: var(--ws-winding); stroke-width: 1; fill: none; }
.workshop-scene .primary { fill: none; stroke: var(--ws-copper); stroke-width: 2.5; }
.workshop-scene .toroid { fill: var(--ws-alu); } .workshop-scene .toroid-hi { fill: rgba(255, 255, 255, 0.55); }
.workshop-scene .rod { stroke: var(--ws-iron); stroke-width: 2.5; fill: none; } .workshop-scene .brass { fill: var(--ws-brass); } .workshop-scene .iron { fill: var(--ws-iron); }
.workshop-scene .jar-glass { fill: var(--ws-glass); stroke: rgba(60, 80, 90, 0.5); } .workshop-scene .foil { fill: #a9adb0; } .workshop-scene .zinc { fill: #6f7377; }
.workshop-scene .dial { fill: #f2ecdc; } .workshop-scene .needle { stroke: #2a2420; stroke-width: 1.5; fill: none; }
.workshop-scene .cord { stroke: #1e1915; stroke-width: 1.4; fill: none; } .workshop-scene .socket { fill: var(--ws-brass); }
.workshop-scene .bulb-glass { fill: rgba(255, 236, 196, 0.5); stroke: rgba(120, 100, 70, 0.55); stroke-width: 0.8; }
.workshop-scene .filament { fill: none; stroke: var(--ws-filament); stroke-width: 1.2; }
.workshop-scene .halo { opacity: var(--ws-halo); }
.workshop-scene .floor { fill: var(--r-floor); } .workshop-scene .floor-line { stroke: var(--r-floor-line); stroke-width: 1.5; }
.workshop-scene .paper { fill: var(--ws-paper); }
/* a framed patent drawing of a lamp, in ink on paper */
.workshop-scene .pframe { fill: var(--ws-wood-dark); } .workshop-scene .pdraw { fill: var(--ws-paper); }
.workshop-scene .pline { fill: none; stroke: #3a3128; stroke-width: 1.1; stroke-linejoin: round; } .workshop-scene .pthin { stroke-width: 0.7; stroke-dasharray: 2 2; }
/* the coil's arc: dark most of the time, a quick double flash every nine seconds */
.workshop-scene .arc-glow { fill: none; stroke: #8cc4ff; stroke-width: 5; stroke-linejoin: round; opacity: 0.55; }
.workshop-scene .arc-core { fill: none; stroke: #f4faff; stroke-width: 1.4; stroke-linejoin: round; }
.workshop-scene .arc { opacity: 0; animation: ws-arc 9s 2s infinite; }
@keyframes ws-arc { 0%, 90% { opacity: 0; } 91% { opacity: 1; } 92% { opacity: 0.15; } 93.5% { opacity: 1; } 96%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .workshop-scene .arc { animation: none; opacity: 0; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .workshop-stage { --r-floor: #3a2a1e; --r-floor-line: #2f2218; --r-glow: rgba(255, 210, 130, 0.85);
  --ws-wall: #3b2a1e; --ws-seam: rgba(0, 0, 0, 0.38); --ws-ceiling: #17110d; --ws-beam: #2c2017; --ws-wood: #5a3f2a; --ws-wood-dark: #2a1d14;
  --ws-glass: rgba(170, 195, 205, 0.4); --ws-sky: #1b2640; --ws-out: #24332a; --ws-halo: 1; --ws-filament: #ffcf7a; --ws-paper: #d9d1bf; } }
:root[data-theme="dark"] .workshop-stage { --r-floor: #3a2a1e; --r-floor-line: #2f2218; --r-glow: rgba(255, 210, 130, 0.85);
  --ws-wall: #3b2a1e; --ws-seam: rgba(0, 0, 0, 0.38); --ws-ceiling: #17110d; --ws-beam: #2c2017; --ws-wood: #5a3f2a; --ws-wood-dark: #2a1d14;
  --ws-glass: rgba(170, 195, 205, 0.4); --ws-sky: #1b2640; --ws-out: #24332a; --ws-halo: 1; --ws-filament: #ffcf7a; --ws-paper: #d9d1bf; }
/* the problems, drawn up as two blueprints: Prussian blue, a drawing frame, a faint grid, two brass pins, and a title
   block in the corner with the sheet's number and what it holds */
.slate { --bp: #1f4679; position: relative; border-radius: 1px; padding: 30px clamp(20px, 3.6vw, 40px) 26px;
  background:
    radial-gradient(ellipse at 18% 8%, rgba(255, 255, 255, 0.09), transparent 55%),
    radial-gradient(ellipse at 88% 92%, rgba(4, 14, 36, 0.32), transparent 60%),
    linear-gradient(rgba(226, 238, 252, 0.075) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(226, 238, 252, 0.075) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--bp);
  box-shadow: inset 0 0 0 10px var(--bp), inset 0 0 0 11.5px rgba(226, 238, 252, 0.6), 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 26px rgba(12, 8, 4, 0.45); }
.slate::before, .slate::after { content: ""; position: absolute; top: 5px; width: 11px; height: 11px; border-radius: 50%; z-index: 1;
  background: radial-gradient(circle at 35% 30%, #f3dc9a, #b88a2e 55%, #6e4f16); box-shadow: 0 2px 3px rgba(0, 0, 0, 0.45); }
.slate::before { left: 5px; } .slate::after { right: 5px; }
.slate h2 { margin-top: 0; color: #f3f8fe; }
.slate .intro { color: var(--ink-2); }
.slate .problems { border-top: 1px solid rgba(226, 238, 252, 0.4); max-width: none; }
.slate .problems li { border-bottom: 1px solid rgba(226, 238, 252, 0.2); }
.slate .problem .title { color: #f3f8fe; }
.slate .problem:hover .title { color: var(--lamp); }
.sheet-block { display: grid; grid-template-columns: auto auto; width: fit-content; max-width: 100%; margin: 20px 0 0 auto; border: 1px solid rgba(226, 238, 252, 0.6);
  font-family: var(--f-mono); font-size: 0.72rem; line-height: 1.35; color: var(--ink-2); letter-spacing: 0.02em; }
.sheet-block span { padding: 5px 10px; }
.sheet-block span:nth-child(2) { border-left: 1px solid rgba(226, 238, 252, 0.6); }
.sheet-block span:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid rgba(226, 238, 252, 0.6); }
.sheet-block strong { color: var(--ink); font-weight: 400; }
/* The Long Table's two boards, blueprints since build 1122f (build 1116a): side by side until a button brings one to the front; then the
   other hangs behind it with only its title showing, and a click on that strip swaps them. Stacked on narrow screens. */
.boards-head { background: #f2efe7; border-radius: 2px; padding: 16px clamp(14px, 3vw, 24px) 14px; margin-bottom: 20px; box-shadow: inset 0 0 0 6px #f2efe7, inset 0 0 0 7px rgba(42, 38, 31, 0.45), 0 10px 22px rgba(20, 10, 0, 0.3); }
.boards-head .boards-title { margin: 0 0 6px; }
/* Build 1118b: notable results, beside the card's text on wide screens and under it on narrow ones. */
.boards-head.has-notable { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: 18px 36px; align-items: start; }
@media (max-width: 860px) { .boards-head.has-notable { grid-template-columns: minmax(0, 1fr); } }
.notable { border-left: 3px solid var(--lamp); padding: 2px 0 2px 16px; }
.notable h3 { margin: 0 0 8px; color: var(--ink-2); font-size: 0.75rem; }
.notable ol { margin: 0; padding: 0; list-style: none; counter-reset: notable; }
.notable li { counter-increment: notable; position: relative; padding-left: 1.6em; margin: 0 0 10px; line-height: 1.35; }
.notable li::before { content: counter(notable); position: absolute; left: 0; top: 0.05em; font-family: var(--f-mono); font-size: 0.8rem; color: var(--lamp); font-weight: 600; }
.notable a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.notable a:hover { color: var(--lamp); text-decoration-color: var(--lamp); }
.notable-meta { display: block; margin-top: 2px; font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-2); letter-spacing: 0.02em; }
.boards-head .boards-intro { margin: 0; color: var(--ink-2); max-width: var(--measure); text-wrap: pretty; }
.boards-head .boards-intro + .boards-intro { margin-top: .6em; } /* 1122w: how to take part, under the blueprints' introduction */
.boards-head .boards-start code { font-size: .88em; overflow-wrap: anywhere; }
.board-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.board-tabs button { font: inherit; font-family: var(--f-mono); font-size: 0.85rem; padding: 7px 14px; border: 1px solid rgba(70, 50, 25, 0.35); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
.board-tabs button[aria-pressed="true"] { background: #1f4679; border-color: #1f4679; color: #f3f8fe; }
.board-tabs button:focus-visible, .board-pull:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; }
.boards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.boards[data-front=""] .slate .problem .title { font-size: 1.22rem; }
.boards[data-front=""] .slate .problem .blurb { font-size: 0.93rem; }
.board-title { margin: 0 0 6px; color: #f6f6ee; font-family: var(--f-display); font-size: 1.55rem; }
.board-wrap { position: relative; min-width: 0; }
.boards:not([data-front=""]) { grid-template-columns: minmax(0, 1fr); gap: 0; }
.board-wrap.back { order: -1; margin: 0 22px; opacity: 0.92; }
.board-wrap.back .slate { max-height: 66px; overflow: hidden; padding-top: 18px; }
.board-wrap.back .slate > :not(.board-title) { visibility: hidden; }
.board-wrap.back .board-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: clamp(1.1rem, 4.4vw, 1.55rem); }
.board-wrap.front { position: relative; z-index: 1; margin-top: -4px; }
.board-pull { position: absolute; inset: 0; z-index: 2; width: 100%; background: transparent; border: 0; cursor: pointer; color: transparent; font-size: 0; }
.board-pull:hover + .slate { filter: brightness(1.12); }
@media (max-width: 760px) { .boards { grid-template-columns: minmax(0, 1fr); } .board-wrap.back { margin: 0 10px; } }

/* The Music Hall: a round hall, an organ behind the stage, and the founding pieces on music stands */
.hall-stage { --r-floor: #8a5a3e; --r-floor-line: #74492f; --r-glow: rgba(255, 226, 150, 0.55); }
.hall-scene .wall { fill: #e6dcc6; } .hall-scene .dome { fill: #d8cbb0; } .hall-scene .dome-rib { fill: none; stroke: #c3b493; stroke-width: 2; }
.hall-scene .win { fill: #bcd6e8; } .hall-scene .mullion { stroke: #8a6a46; stroke-width: 2.5; fill: none; }
.hall-scene .column { fill: #efe6d2; } .hall-scene .column-cap { fill: #d8cbb0; } .hall-scene .box path { fill: #9a3b33; stroke: #c9a24a; stroke-width: 2; }
.hall-scene .proscenium { fill: #c9a24a; } .hall-scene .stage-back { fill: #3b2a24; }
.hall-scene .pipe { fill: #cdb27a; } .hall-scene .pipe-mouth { fill: #3b2a24; }
.hall-scene .curtain { fill: #a4342c; } .hall-scene .curtain-fold { fill: none; stroke: rgba(0, 0, 0, 0.22); stroke-width: 3; } .hall-scene .valance { fill: #8c2b24; }
.hall-scene .stage { fill: #8a5a3e; } .hall-scene .stage-edge { fill: #5e3a26; }
.hall-scene .piano path:not(.lid), .hall-scene .piano rect { fill: #17171a; stroke: #17171a; stroke-width: 2; } .hall-scene .piano .lid { fill: #222226; }
.hall-scene .stands path, .hall-scene .chairs-s path { fill: none; stroke: #2b2b2f; stroke-width: 2.5; stroke-linecap: round; } .hall-scene .stands rect { fill: #f4eedd; }
.hall-scene .chandelier .chain { stroke: #8a7a5a; stroke-width: 2; } .hall-scene .chandelier .ring { fill: none; stroke: #c9a24a; stroke-width: 3; } .hall-scene .bulb { fill: #fff2c4; }
.hall-scene .floor { fill: #6e2f2a; } .hall-scene .seat { fill: #9a3b33; stroke: #6e2a24; stroke-width: 1.5; } .hall-scene .back-row { fill: #85322b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hall-stage { --r-floor: #5a3a28; --r-floor-line: #4a2f20; --r-glow: rgba(255, 214, 130, 0.9); }
  :root:not([data-theme="light"]) .hall-scene .wall { fill: #3d352c; } :root:not([data-theme="light"]) .hall-scene .dome { fill: #2f2922; } :root:not([data-theme="light"]) .hall-scene .win { fill: #1e2b47; }
  :root:not([data-theme="light"]) .hall-scene .column { fill: #5a5246; } :root:not([data-theme="light"]) .hall-scene .floor { fill: #3e1c19; } :root:not([data-theme="light"]) .hall-scene .seat { fill: #6a2a24; } :root:not([data-theme="light"]) .hall-scene .back-row { fill: #5a241f; } }
:root[data-theme="dark"] .hall-stage { --r-floor: #5a3a28; --r-floor-line: #4a2f20; --r-glow: rgba(255, 214, 130, 0.9); }
:root[data-theme="dark"] .hall-scene .wall { fill: #3d352c; } :root[data-theme="dark"] .hall-scene .dome { fill: #2f2922; } :root[data-theme="dark"] .hall-scene .win { fill: #1e2b47; }
:root[data-theme="dark"] .hall-scene .column { fill: #5a5246; } :root[data-theme="dark"] .hall-scene .floor { fill: #3e1c19; } :root[data-theme="dark"] .hall-scene .seat { fill: #6a2a24; } :root[data-theme="dark"] .hall-scene .back-row { fill: #5a241f; }
/* the programme card, and the stands */
.programme, .hall-stage .tune, .shelf .tune.visitor { --ink: #2a261f; --ink-2: #6b6151; --rule: rgba(70, 50, 25, 0.2); --lamp: #8a5a10; color: var(--ink); }
.programme { background: #f8f2e2; max-width: 620px; margin: 0 auto 34px; padding: 20px 26px 16px; text-align: center; border-radius: 2px; box-shadow: 0 10px 24px rgba(20, 10, 0, 0.32); border-top: 6px double #a4342c; }
.programme h2 { margin: 0 0 6px; } .programme .intro { margin: 0 auto; color: var(--ink-2); }
.hall-stage .stands { display: grid; gap: 0; }
.hall-stage .tune { max-width: 860px; width: 100%; margin: 0 auto 96px; border-top: 0; padding: 24px clamp(18px, 3vw, 34px) 22px; position: relative;
  background: #fbf7ea; border-radius: 2px; box-shadow: 0 2px 0 #e7dcc1, 0 14px 28px rgba(20, 10, 0, 0.35); }
.hall-stage .tune + .tune { margin-top: 0; }
.hall-stage .tune::before { content: ""; position: absolute; left: 6%; right: 6%; bottom: -12px; height: 12px; background: linear-gradient(#45454b, #26262a); border-radius: 0 0 3px 3px; }
.hall-stage .tune::after { content: ""; position: absolute; left: 50%; bottom: -90px; width: 140px; height: 78px; margin-left: -70px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 78'%3E%3Cpath d='M70 0V60M70 60L24 76M70 60L116 76M70 60V76' stroke='%2328282c' stroke-width='5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") no-repeat center top / contain; }
.hall-stage .tune:last-child { margin-bottom: 92px; }
.hall-stage .tune .score svg path, .hall-stage .tune .score svg { color: #1f1b16; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.programme, .hall-stage .tune, .shelf .tune.visitor) { background-color: #e9e0c9; } }
:root[data-theme="dark"] :is(.programme, .hall-stage .tune, .shelf .tune.visitor) { background-color: #e9e0c9; }
.hall-stage + .primer { margin-top: 56px; }
/* the visitors' shelf: a wooden rack of scores */
.hall-part .shelf#shelf { background: #3e2a1b; border: 12px solid #6b4a2e; border-radius: 3px; padding: 18px clamp(12px, 2.6vw, 24px) 6px; max-width: 900px; box-shadow: inset 0 6px 16px rgba(0, 0, 0, 0.45); }
.hall-part .shelf#shelf:empty { display: none; }
.shelf .tune.visitor { background: #fbf7ea; border-top: 0; border-radius: 2px; padding: 20px clamp(16px, 2.6vw, 28px) 18px; margin: 0 0 22px; max-width: none; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35); }
.shelf .tune.visitor + .tune.visitor { margin-top: 0; }

/* The open book: pages you can turn */
.lede .subtitle { font-family: var(--f-display); color: var(--ink); }
.open-book[data-book] { perspective: 1800px; }
.open-book[data-book]:focus { outline: none; }
.open-book.paged .leaf { overflow: hidden; position: relative; transform-style: preserve-3d; backface-visibility: hidden; background: inherit; }
.open-book.paged .leaf.blank { background: transparent; }
.open-book.paged .leaf.text p { margin: 0 0 0.85em; line-height: 1.62; font-size: 1.02rem; text-indent: 0; }
.open-book.paged .leaf.text p + p:not(.cont):not(.book-end):not(.book-end-links):not(.sep) { text-indent: 1.4em; }
.open-book.paged .leaf.text h2 { font-size: 1.3rem; margin: 0.4em 0 0.5em; }
.open-book.paged .leaf.text h2 + p { text-indent: 0; }
.open-book.paged .leaf.text ul, .open-book.paged .leaf.text ol { margin: 0 0 0.85em; padding-left: 1.3em; line-height: 1.6; }
.open-book.paged .leaf.text blockquote { margin: 0 0 0.85em 1em; font-style: italic; }
.open-book .sep { text-align: center; text-indent: 0 !important; letter-spacing: 0.5em; color: var(--ink-2); }
.open-book .pno { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-2); }
.open-book .book-end { text-align: center; text-indent: 0 !important; letter-spacing: 0.5em; color: var(--ink-2); margin-top: 1.2em !important; }
.open-book .book-end-links { text-align: center; text-indent: 0 !important; font-family: var(--f-mono); font-size: 0.82rem !important; }
.open-book .book-end-links a { color: var(--ink); }
.book-nav { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px 14px; border-top: 1px solid var(--rule); }
.book-nav[hidden] { display: none; }
.book-nav .turn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--rule); background: #fffaf0; color: var(--ink); font-size: 1.25rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12); }
.book-nav .turn:hover:not(:disabled) { border-color: var(--lamp); color: var(--lamp); }
.book-nav .turn:disabled { opacity: 0.35; cursor: default; box-shadow: none; }
.book-nav .folio { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--ink-2); text-transform: uppercase; }
/* turning: the page lifts at one edge and swings over the spine */
@keyframes flip-out-r { from { transform: rotateY(0); } to { transform: rotateY(-90deg); } }
@keyframes flip-in-l { from { transform: rotateY(90deg); } to { transform: rotateY(0); } }
@keyframes flip-out-l { from { transform: rotateY(0); } to { transform: rotateY(90deg); } }
@keyframes flip-in-r { from { transform: rotateY(-90deg); } to { transform: rotateY(0); } }
.open-book .leaf.flip-out-r { transform-origin: left center; animation: flip-out-r 0.2s ease-in forwards; }
.open-book .leaf.flip-in-l { transform-origin: right center; animation: flip-in-l 0.2s ease-out; }
.open-book .leaf.flip-out-l { transform-origin: right center; animation: flip-out-l 0.2s ease-in forwards; }
.open-book .leaf.flip-in-r { transform-origin: left center; animation: flip-in-r 0.2s ease-out; }
@keyframes out-left { to { opacity: 0; transform: translateX(-24px); } } @keyframes out-right { to { opacity: 0; transform: translateX(24px); } }
@keyframes in-right { from { opacity: 0; transform: translateX(24px); } } @keyframes in-left { from { opacity: 0; transform: translateX(-24px); } }
.open-book .leaf.out-left { animation: out-left 0.2s ease-in forwards; } .open-book .leaf.out-right { animation: out-right 0.2s ease-in forwards; }
.open-book .leaf.in-right { animation: in-right 0.2s ease-out; } .open-book .leaf.in-left { animation: in-left 0.2s ease-out; }
@media (max-width: 720px) { .open-book.paged .leaf + .leaf { display: none; } }
.open-book.paged::before { bottom: 69px; }


/* The Forest Walk */
.forest-stage { max-width: var(--wide); margin-top: 8px; }
.forest-view { position: relative; border-radius: 8px; overflow: hidden; background: #6b8a5a; aspect-ratio: 1000 / 560; }
.forest-view:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; }
.forest-svg { display: block; width: 100%; height: 100%; }
.forest-noscript { color: #fff; padding: 24px; }
.forest-svg .sway { transform-box: fill-box; transform-origin: 50% 100%; animation: forest-sway 7s ease-in-out infinite alternate; }
.forest-svg .sway:nth-child(3n) { animation-duration: 9s; } .forest-svg .sway:nth-child(4n) { animation-delay: -3s; }
@keyframes forest-sway { from { transform: rotate(-0.8deg); } to { transform: rotate(0.8deg); } }
.forest-svg .shafts { animation: forest-shafts 9s ease-in-out infinite alternate; }
@keyframes forest-shafts { from { opacity: 0.55; } to { opacity: 1; } }
.forest-svg .critter { animation: forest-breathe 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes forest-breathe { 50% { transform: scale(1.02, 0.98); } }
.forest-svg .wing { animation: forest-flutter 0.35s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes forest-flutter { to { transform: scaleX(0.3); } }
.forest-svg .leaf-fall { animation: forest-fall linear infinite; }
@keyframes forest-fall { from { transform: translate(0, 0) rotate(0); } to { transform: translate(60px, 600px) rotate(540deg); } }
.forest-svg .glint { animation: forest-glint 4s ease-in-out infinite alternate; } @keyframes forest-glint { from { opacity: 0.2; } to { opacity: 0.9; } }
.forest-svg .fall { animation: forest-glint 0.6s linear infinite alternate; }
.forest-svg .firefly { animation: forest-firefly 3.5s ease-in-out infinite; } @keyframes forest-firefly { 0%, 100% { opacity: 0; } 40% { opacity: 1; } 60% { opacity: 0.9; transform: translate(6px, -8px); } }
@media (prefers-reduced-motion: reduce) { .forest-svg * { animation: none !important; } }
.forest-hud { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 270px); gap: 18px 28px; margin-top: 16px; align-items: start; }
@media (max-width: 760px) { .forest-hud { grid-template-columns: minmax(0, 1fr); } .forest-side { order: -1; } }
.forest-card { background: var(--paper-2); border-radius: 6px; padding: 18px 22px 16px; border-left: 4px solid #5f8a55; }
.forest-card h2 { margin: 2px 0 8px; font-size: clamp(1.4rem, 3vw, 1.8rem); }
.forest-card p { margin: 0 0 8px; max-width: 64ch; line-height: 1.6; }
.forest-card .forest-plant { color: var(--ink); } .forest-card .forest-creature { color: var(--ink); }
.forest-card .forest-sound { font-style: italic; color: var(--ink-2); }
.forest-card .forest-invite { font-family: var(--f-display); color: #4f7a45; margin-top: 12px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .forest-card .forest-invite { color: #9cc58f; } }
:root[data-theme="dark"] .forest-card .forest-invite { color: #9cc58f; }
.forest-side { display: grid; gap: 12px; justify-items: stretch; }
.forest-map { width: 100%; height: auto; background: var(--paper-2); border-radius: 6px; }
.forest-map .sea { fill: #a9c4d6; } .forest-map .ridge { fill: rgba(127, 140, 110, 0.22); stroke: rgba(127, 140, 110, 0.5); stroke-width: 3; }
.forest-map .quad { fill: none; stroke: var(--rule); stroke-width: 4; }
.forest-map .loop { fill: none; stroke: #6f9466; stroke-width: 8; stroke-dasharray: 2 18; stroke-linecap: round; }
.forest-map .stop { fill: #5f8a55; } .forest-map .here { fill: var(--lamp); stroke: var(--paper); stroke-width: 6; }
.forest-map .gate { fill: var(--paper); stroke: #5f8a55; stroke-width: 4; cursor: pointer; } .forest-map a:hover .gate, .forest-map a:focus-visible .gate { stroke: var(--lamp); }
.forest-map .gaze { stroke: var(--lamp); stroke-width: 10; stroke-linecap: round; } .forest-map .peak { fill: none; stroke: var(--ink-2); stroke-width: 4; }
.forest-leave[hidden] { display: none; } .forest-leave { text-align: center; text-decoration: none; }
.forest-join { margin: 10px 0 0; font-size: 0.92rem; color: var(--ink-2); }
/* Build 1117z: a button above the room's map (the workshop's gates diagram), and the Long Table's navigation. */
.room-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-start; gap: 22px; align-self: start; width: 19rem; }
.room-aside { display: flex; flex-direction: column; gap: 8px; align-items: stretch; width: 100%; }
.room-aside a.head-btn { max-width: none; font-size: 0.74rem; padding: 8px 12px; letter-spacing: 0.08em; }
a.head-btn { text-decoration: none; display: inline-block; text-align: center; max-width: 22rem; line-height: 1.35; font-size: 0.85rem; color: var(--lamp); border-color: var(--lamp); padding: 10px 18px; }
a.head-btn:hover { background: var(--lamp); color: var(--paper); }
@media (max-width: 860px) { .room-side { width: 16rem; } }
@media (max-width: 560px) { .room-side { display: block; width: auto; } .room-aside { padding-top: 4px; } }
.table-nav { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 14px; margin: -8px 0 36px; }
/* The two controls are outlined buttons, like the workshop's, so they stand out from the text around them. */
.table-nav > a, .table-nav-all > summary { display: inline-block; font-family: var(--f-mono); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); border: 1.5px solid var(--ink-2); border-radius: 999px; padding: 8px 16px; text-decoration: none; cursor: pointer; line-height: 1.3; }
.table-nav > a:hover, .table-nav-all > summary:hover { border-color: var(--lamp); color: var(--lamp); }
.table-nav-all > summary { list-style: none; width: max-content; }
.table-nav-all > summary::-webkit-details-marker { display: none; }
.table-nav-all > summary::after { content: " ▾"; }
.table-nav-all[open] > summary { border-color: var(--lamp); color: var(--lamp); }
.table-nav-all[open] > summary::after { content: " ▴"; }
.table-nav-foot { margin: 44px 0 8px; padding-top: 20px; border-top: 1px solid var(--rule); }
.table-nav-all { flex: 0 1 auto; min-width: 0; }
.table-nav-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 19rem)); gap: 8px 36px; margin-top: 16px; font-family: var(--f-body); font-size: 1.02rem; }
.table-nav-lists ul { list-style: none; margin: 8px 0 0; padding: 0; }
.table-nav-lists li { margin: 5px 0; }
.table-nav-lists a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.table-nav-lists a:hover { color: var(--lamp); text-decoration-color: var(--lamp); }
.table-nav-lists [aria-current] { color: var(--lamp); font-weight: 600; }
.table-nav-gates { grid-column: 1 / -1; margin: 8px 0 0; }
@media (max-width: 560px) { .table-nav-lists { grid-template-columns: minmax(0, 1fr); } }
.gates-figure { margin: 0 0 40px; max-width: var(--wide); }
.gates-figure img { display: block; width: 100%; height: auto; border-radius: 10px; background: #fff; }
.gates-figure figcaption { margin-top: 12px; }
.forest-gates { margin: 0; font-size: 0.86rem; line-height: 1.7; } .forest-gates .label { display: block; }
.forest-card .forest-terrain { color: var(--ink-2); font-size: 0.95rem; } .forest-card .forest-gate { color: var(--ink-2); font-size: 0.95rem; }
.forest-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.forest-controls[hidden] { display: none; }
.forest-controls button { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 8px; border: 1.5px solid var(--rule); background: var(--paper); color: var(--ink); font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; }
.forest-controls button:hover:not(:disabled) { border-color: var(--lamp); color: var(--lamp); }
.forest-controls button:disabled { opacity: 0.4; cursor: default; }
.forest-controls .key { font-size: 1rem; }
.forest-stops ol { padding-left: 1.4em; max-width: 900px; } .forest-stops h3 { margin: 18px 0 6px; font-size: 1.15rem; }
.forest-stops dl { margin: 0; display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 4px 16px; }
.forest-stops dt { color: var(--ink-2); font-size: 0.88rem; } .forest-stops dd { margin: 0; line-height: 1.55; }
@media (max-width: 600px) { .forest-stops dl { grid-template-columns: minmax(0, 1fr); } }
.forest-stops summary { cursor: pointer; font-family: var(--f-display); font-size: 1.25rem; }

/* ---------------------------------------------------------------- the observatory */
.obs-stage { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px 32px; align-items: start; margin-top: 8px; }
@media (max-width: 860px) { .obs-stage { grid-template-columns: minmax(0, 1fr); } }
.obs-dome { aspect-ratio: 1; max-width: 640px; width: 100%; margin: 0 auto; border-radius: 50%; background: #0c1430; }
.obs-svg { display: block; width: 100%; height: auto; }
.obs-noscript { color: #dfe6ff; padding: 30% 18%; text-align: center; font-size: 0.95rem; }
.obs-svg .obs-lines line { stroke: rgba(150, 175, 230, 0.32); stroke-width: 1.1; }
.obs-svg .obs-pattern { fill: rgba(170, 190, 235, 0.55); font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.06em; text-anchor: middle; text-transform: uppercase; }
.obs-svg .obs-star-name { fill: rgba(225, 232, 255, 0.75); font-family: var(--f-mono); font-size: 10px; }
.obs-svg .obs-planet { fill: #ffd59a; font-family: var(--f-mono); font-size: 11px; }
.obs-svg .obs-deep { fill: none; stroke: rgba(160, 220, 200, 0.75); stroke-width: 1.2; stroke-dasharray: 2 2; } .obs-svg .obs-deep.low { stroke-opacity: 0.35; }
.obs-svg a:hover .obs-deep, .obs-svg a:focus-visible .obs-deep { stroke: #ffd59a; stroke-dasharray: none; }
.obs-svg .obs-compass { fill: #cfd6ee; font-family: var(--f-mono); font-size: 13px; text-anchor: middle; }
.obs-svg .obs-eye-label { fill: #cfd6ee; font-family: var(--f-mono); font-size: 10px; text-anchor: middle; }
.obs-svg .obs-eye-dir { fill: #6a7290; font-family: var(--f-mono); font-size: 12px; text-anchor: middle; }
.obs-side { display: grid; gap: 10px; align-content: start; }
.obs-side h2 { margin: 6px 0 0; }
.obs-tonight { margin: 0; line-height: 1.6; }
.obs-scope[hidden] { display: none; } .obs-scope { display: grid; gap: 10px; }
.obs-eyepiece { width: min(100%, 340px); aspect-ratio: 1; border-radius: 50%; }
.obs-look { margin: 0; line-height: 1.6; }
.obs-targets { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.obs-targets a { display: inline-block; padding: 4px 10px; border: 1.5px solid var(--rule); border-radius: 999px; font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.03em; text-decoration: none; color: var(--ink); }
.obs-targets a:hover, .obs-targets a[aria-current="true"] { border-color: var(--lamp); color: var(--lamp); }
.obs-list dt { font-weight: 600; margin-top: 12px; } .obs-list dd { margin: 4px 0 0; max-width: 70ch; line-height: 1.6; }

.game-pgn { display: inline-block; margin-top: 6px; font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.03em; }
.game-pgn[hidden] { display: none; }

/* The museum on phones and tablets: plain colours on the building's surfaces, so each one is a cheap solid layer. */
.museum-view.mw-lite .mw-floor, .museum-view.mw-lite .mw-ceiling, .museum-view.mw-lite .mw-wall, .museum-view.mw-lite .mw-face, .museum-view.mw-lite .mw-sunlit { background-image: none; box-shadow: none; }
.museum-view.mw-lite .mw-art { box-shadow: none; }
/* Signs of life on the quad's map: a lamp where something has happened today, and a line under the map. */
.plan .pulse { display: none; pointer-events: none; }
.plan .pulse.on { display: inline; }
.plan .pulse .halo { fill: var(--lamp); opacity: 0.18; animation: pulse-glow 4s ease-in-out infinite; }
.plan .pulse .flame { fill: var(--lamp); }
@keyframes pulse-glow { 0%, 100% { opacity: 0.12; } 50% { opacity: 0.32; } }
@media (prefers-reduced-motion: reduce) { .plan .pulse .halo { animation: none; } }
.campus-today { margin: 0.4rem 0 0; font-family: var(--f-mono); font-size: 0.8rem; color: var(--ink-2); text-align: center; }
.campus-today::before { content: "● "; color: var(--lamp); }
/* The almanac: a meteor shower, a full moon, a solstice or equinox, when one is on. */
.almanac-line { margin: 6px 0 0; font-family: var(--f-mono); font-size: 0.82rem; color: var(--ink-2); max-width: var(--measure); }
.almanac-line::before { content: "☾ "; color: var(--lamp); }
.moment-line::before { content: "✦ "; }
.obs-events { font-size: 0.95rem; color: var(--ink-2); border-left: 2px solid var(--lamp); padding-left: 10px; }
.obs-svg .obs-meteor { stroke: #f4f6ff; stroke-width: 1.4; stroke-linecap: round; opacity: 0; animation: obs-meteor 10s linear infinite; }
@keyframes obs-meteor { 0% { opacity: 0; } 1% { opacity: 0.95; } 5% { opacity: 0.1; } 100% { opacity: 0.06; } }
@media (prefers-reduced-motion: reduce) { .obs-svg .obs-meteor { animation: none; opacity: 0.45; } }
.obs-svg .obs-radiant { fill: rgba(244, 246, 255, 0.7); font-family: var(--f-mono); font-size: 10px; }
.obs-svg .obs-radiant-dot { fill: none; stroke: rgba(244, 246, 255, 0.6); stroke-width: 1; }
/* The campus dog: the doghouse page, and the little bar on pages where the dog is with you. */
.doghouse-stage { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px 28px; align-items: start; margin-top: 8px; }
@media (max-width: 860px) { .doghouse-stage { grid-template-columns: minmax(0, 1fr); } }
.doghouse-view { border-radius: 14px; overflow: hidden; background: var(--paper-2); aspect-ratio: 1000 / 560; }
.doghouse-svg { display: block; width: 100%; height: auto; }
.doghouse-side { display: grid; gap: 12px; align-content: start; }
.dog-said { min-height: 3.2em; margin: 0; }
.dog-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.dog-naming { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dog-naming input { font: inherit; padding: 7px 10px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); color: var(--ink); width: 12rem; max-width: 100%; }
.dog-fact { font-size: 0.92rem; color: var(--ink-2); border-left: 2px solid var(--lamp); padding-left: 10px; margin: 0; }
.wagging .dog-tail { animation: dog-wag 0.32s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 100% 50%; }
@keyframes dog-wag { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }
@media (prefers-reduced-motion: reduce) { .wagging .dog-tail { animation: none; } }
.dog-bar { margin: 10px 0 0; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper-2); max-width: var(--measure); }
.dog-bar p { margin: 0 0 6px; }
.dog-bar .dog-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dog-bar .dog-said { min-height: 0; margin-top: 6px; color: var(--ink-2); font-size: 0.95rem; }
.dog-waits { margin-bottom: 14px; }
.forest-dog { color: var(--ink-2); font-style: italic; }
.plan .doghouse-mark { fill: var(--paper); stroke: var(--ink-2); stroke-width: 1.3; }
.doghouse-hint { margin-top: 8px; }

/* The owner's dashboard (owner.html): the tally as charts. Series colours are the validated categorical palette, in a
   fixed order, stepped separately for the dark surface. */
.dash { --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --series-4: #eda100; --series-5: #e87ba4; --series-6: #008300; --series-7: #6250d6; --series-8: #e34948; max-width: var(--wide); margin: 0 auto; }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) .dash { --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500; --series-5: #d55181; --series-6: #008300; --series-7: #9085e9; --series-8: #e66767; } }
:root[data-theme="dark"] .dash { --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500; --series-5: #d55181; --series-6: #008300; --series-7: #9085e9; --series-8: #e66767; }
.dash-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 20px; }
.dash-sign { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; flex: 1 1 420px; }
.dash-field { display: grid; gap: 4px; }
.dash-field span { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.dash-field input, .dash-field select { box-sizing: border-box; height: 2.5rem; font: inherit; padding: 6px 10px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); color: var(--ink); }
.dash-token { flex: 1 1 16rem; max-width: 26rem; }
.dash-sign .btn-quiet { height: 2.5rem; display: inline-flex; align-items: center; box-sizing: border-box; }
.dash-hide { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.dash-hide .btn-quiet { height: 2.5rem; display: inline-flex; align-items: center; box-sizing: border-box; text-decoration: none; }
.owner-notes-find { margin-top: 6px; }
.owner-notes-find .on-q { flex: 1 1 14rem; }
.owner-notes { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.owner-act { margin-top: 16px; display: grid; gap: 10px; }
.owner-act .dash-field textarea, .owner-act .dash-field input { width: 100%; font: inherit; padding: 8px 10px; box-sizing: border-box; }
.owner-act .dash-field textarea { min-height: 4rem; resize: vertical; }
.owner-file { margin: 6px 0 0; }
.dash-field:has(#ot-table) { min-width: 0; max-width: 100%; }
#ot-table { width: min(100%, 22rem); min-width: 0; text-overflow: ellipsis; }
.owner-file label { cursor: pointer; }
.owner-note { background: var(--paper-2); border-radius: 10px; padding: 14px 16px; border-left: 3px solid var(--rule); }
.owner-note.is-hidden { border-left-color: var(--lamp); opacity: 0.85; }
.on-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin: 0 0 6px; font-size: 0.85rem; color: var(--ink-2); }
.on-meta code { font-size: 0.78rem; }
.on-name { color: var(--ink); font-weight: 600; }
.on-state { margin-left: auto; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.is-hidden .on-state { color: var(--lamp); }
.on-text { margin: 0 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.on-small { font-size: 0.82rem; color: var(--ink-2); margin: 0 0 4px; }
.on-flags ul { margin: 0 0 8px; padding-left: 18px; font-size: 0.85rem; overflow-wrap: anywhere; }
.on-do { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
#dash-said { margin: 10px 0 18px; }
.dash-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px; margin-bottom: 16px; }
.dash-tile { background: var(--paper-2); border-radius: 10px; padding: 14px 16px; }
.dash-tile p { margin: 0; }
.dash-tile-label { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.dash-tile-value { font-family: var(--f-display); font-size: 2rem; line-height: 1.2; margin: 4px 0 2px !important; color: var(--ink); }
.dash-tile-change { font-size: 0.85rem; color: var(--ink-2); }
.dash-card { background: var(--paper-2); border-radius: 10px; padding: 16px 18px; margin-bottom: 16px; min-width: 0; }
.dash-card h2 { font-size: 1.15rem; margin: 0 0 10px; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 0 16px; }
.dash-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.dash-chip { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 0.88rem; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink-2); cursor: pointer; }
.dash-chip[aria-pressed="true"] { color: var(--ink); border-color: var(--ink-2); }
.dash-chip[aria-pressed="false"] .dash-swatch { opacity: 0.3; }
.dash-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.dash-chart { position: relative; }
.dash-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.dash-chart .dash-gridline { stroke: var(--rule); stroke-width: 1; }
.dash-chart .dash-axis { stroke: var(--ink-2); stroke-opacity: 0.5; stroke-width: 1; }
.dash-chart .dash-tick { fill: var(--ink-2); font-family: var(--f-mono); font-size: 11px; }
.dash-chart .dash-endlabel { fill: var(--ink); font-size: 12px; }
.dash-chart .dash-cross { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; }
.dash-chart .dash-dot { stroke: var(--paper-2); stroke-width: 2; }
.dash-tip { position: absolute; top: 8px; pointer-events: none; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 8px 10px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); font-size: 0.85rem; min-width: 150px; }
.dash-tip p { margin: 0; display: flex; align-items: center; gap: 6px; }
.dash-tip-day { font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-2); margin-bottom: 4px !important; }
.dash-tip strong { margin-left: auto; padding-left: 10px; }
.dash-about { margin-top: 8px; font-size: 0.85rem; color: var(--ink-2); }
.dash-about p { margin: 0 0 4px; }
.dash-about strong { color: var(--ink); font-weight: 600; }
.dash-tablewrap summary, #dash-text summary { cursor: pointer; color: var(--ink-2); font-size: 0.9rem; }
.dash-scroll { max-height: 320px; overflow: auto; margin-top: 8px; }
.dash-table, .dash-dogtable { border-collapse: collapse; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.dash-table th, .dash-table td, .dash-dogtable th, .dash-dogtable td { padding: 4px 8px; border-bottom: 1px solid var(--rule); text-align: right; }
.dash-table th:first-child, .dash-table td:first-child, .dash-dogtable tbody th { text-align: left; }
.dash-scroll-x { overflow-x: auto; }
.dash-dogtable { width: 100%; }
.dash-dogtable th { font-family: var(--f-mono); font-size: 0.7rem; font-weight: normal; text-transform: uppercase; color: var(--ink-2); }
.dash-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dash-bars li { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 0.86rem; }
.dash-bar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.dash-bar-track { height: 10px; }
.dash-bar-fill { display: block; height: 100%; background: var(--series-1); border-radius: 0 4px 4px 0; }
.dash-bar-n { font-variant-numeric: tabular-nums; color: var(--ink-2); min-width: 3ch; text-align: right; }
.dash-stack { display: flex; gap: 2px; height: 16px; margin: 4px 0 10px; }
.dash-stack span { display: block; min-width: 3px; }
.dash-stack span:first-child { border-radius: 4px 0 0 4px; } .dash-stack span:last-child { border-radius: 0 4px 4px 0; }
.dash-key { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; font-size: 0.86rem; }
.dash-key li { display: flex; align-items: center; gap: 8px; }
.dash-key strong { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.dash-small { font-size: 0.82rem; color: var(--ink-2); margin: 6px 0 0; }
.dash-empty { color: var(--ink-2); font-size: 0.9rem; }
@media (max-width: 560px) { .dash-hide { justify-content: flex-start; } .dash-bars li { grid-template-columns: minmax(0, 8rem) minmax(0, 1fr) auto; } }
#on-said { margin: 10px 0 14px; }
.dash-range { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 16px; margin: 0 0 16px; }
.dash-range .dash-chips { margin: 0; }
.dash-dates { display: flex; gap: 10px; }
.dash-dates input { color-scheme: light dark; }
#dash-range-said { font-size: 0.78rem; margin-left: 6px; }

/* The status ledger at a glance (build 1117g; build 1122a: the glance's bars and results too). */
.ledger-block, .lt-bars, .lt-glance, .lt-ladder { --st-machine_checked: var(--ok); --st-published: color-mix(in srgb, var(--ok) 78%, var(--paper)); --st-corroborated: color-mix(in srgb, var(--ok) 58%, var(--paper));
  --st-established: color-mix(in srgb, var(--ok) 58%, var(--paper)); --st-conditional: color-mix(in srgb, var(--lamp) 72%, var(--paper)); --st-open: color-mix(in srgb, var(--ink-2) 45%, var(--paper));
  --st-closed_route: color-mix(in srgb, var(--ink-2) 75%, var(--paper)); --st-refuted: var(--warn); }
.ledger-glance { margin: 4px 0 18px; }
.glance-head { margin: 0 0 8px; font-family: var(--f-mono); font-size: 0.82rem; letter-spacing: 0.02em; color: var(--ink-2); }
.glance-head strong { color: var(--ink); font-weight: 600; }
.glance-bar { display: flex; gap: 2px; height: 14px; border-radius: 3px; overflow: hidden; }
.glance-bar .seg { flex-basis: 0; min-width: 6px; }
.seg-machine_checked { background: var(--st-machine_checked); } .seg-published { background: var(--st-published); } .seg-corroborated { background: var(--st-corroborated); }
.seg-established { background: var(--st-established); } .seg-conditional { background: var(--st-conditional); } .seg-closed_route { background: var(--st-closed_route); }
.seg-refuted { background: var(--st-refuted); }
.seg-open { background: repeating-linear-gradient(135deg, var(--st-open) 0 3px, transparent 3px 6px); box-shadow: inset 0 0 0 1px var(--st-open); }
.glance-legend { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 10px; }
.legend-item { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.03em; color: var(--ink-2); background: none; border: 1px solid var(--rule); border-radius: 999px; padding: 3px 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.legend-item:hover, .legend-item:focus-visible { color: var(--ink); border-color: var(--ink-2); }
.legend-item[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }
.legend-item .swatch { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.legend-n { color: var(--ink); }
.ledger-group { margin: 0 0 14px; }
.ledger-group[hidden] { display: none; }
.ledger-group-title { font-family: var(--f-mono); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); margin: 16px 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--rule); }
.lcard { border-left: 3px solid var(--st-open); padding: 8px 0 8px 14px; margin: 0 0 6px; }
.lcard-machine_checked { border-left-color: var(--st-machine_checked); } .lcard-published { border-left-color: var(--st-published); } .lcard-corroborated, .lcard-established { border-left-color: var(--st-corroborated); }
.lcard-conditional { border-left-color: var(--st-conditional); } .lcard-closed_route { border-left-color: var(--st-closed_route); } .lcard-refuted { border-left-color: var(--st-refuted); }
.lcard-open { border-left-style: dashed; }
.lcard:target { background: color-mix(in srgb, var(--lamp-wash) 45%, transparent); }
.lcard-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.lcard .claim-text { margin: 6px 0 4px; max-width: var(--measure); }
.lcard p { margin-top: 0; }
.lv { display: inline-flex; gap: 2px; align-items: center; }
.lv-pip { width: 7px; height: 12px; border: 1px solid var(--ink-2); border-radius: 1px; opacity: 0.55; }
.lv-pip.on { background: var(--ok); border-color: var(--ok); opacity: 1; }
.lv-conditional .lv-pip.on { background: var(--lamp); border-color: var(--lamp); }
.lv-open .lv-pip.on { background: var(--ink-2); border-color: var(--ink-2); }
.lv-x { font-family: var(--f-mono); font-size: 0.8rem; color: var(--ink-2); width: 34px; text-align: center; }
.lv-refuted .lv-x { color: var(--warn); }
.lcard-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-family: var(--f-mono); font-size: 0.7rem; color: var(--ink-2); }
.pips { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; }
.pip-fam { display: inline-flex; align-items: center; gap: 3px; }
.pip-name { margin-right: 2px; }
.pip { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.pip.hard { background: var(--ok); }
.pip.soft { box-shadow: inset 0 0 0 1px var(--ok); }
.pip.gap { background: var(--warn); }
.pip-more { color: var(--ink-2); }
.lcard-details { margin-top: 4px; }
.lcard-details summary { cursor: pointer; font-family: var(--f-mono); font-size: 0.7rem; color: var(--ink-2); letter-spacing: 0.03em; }
.lcard-details[open] { padding-bottom: 4px; }
.lcard-details p { margin: 4px 0; font-size: 0.85rem; overflow-wrap: anywhere; }
.lcard-details .label { font-family: var(--f-mono); font-size: 0.7rem; color: var(--ink-2); margin-top: 8px; }
.ledger-evidence a, .ledger-dep a { font-family: var(--f-mono); font-size: 0.78rem; }
.ledger-intro-more summary { cursor: pointer; }
.lcard[hidden] { display: none; }
.ledger-more { font-family: var(--f-mono); font-size: 0.72rem; margin: 2px 0 0 17px; background: none; border: 0; padding: 0; color: var(--lamp); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.seg-refuted { background: repeating-linear-gradient(45deg, var(--st-refuted) 0 4px, color-mix(in srgb, var(--st-refuted) 55%, var(--paper)) 4px 6px); }
.brief-block { max-width: 900px; }
.table-brief { font-size: 1.08rem; line-height: 1.65; max-width: var(--measure); margin: 6px 0 6px; }

/* Build 1119a: the owner's sign-in, the evidence pilot, and the companion at the waterfront. */
.owner-signin { margin: 0 0 12px; }
.owner-signin-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.owner-signin-form input, .owner-input, .owner-field input, .owner-field select, .owner-field textarea { font: inherit; padding: 7px 10px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); color: var(--ink); max-width: 100%; }
.owner-signin-form input { width: 12rem; }
.owner-input { width: 100%; max-width: 32rem; }
.owner-signin-out { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.owner-form fieldset { border: 1px solid var(--rule); border-radius: 10px; padding: 12px 16px 16px; margin: 0 0 16px; display: grid; gap: 12px; max-width: 46rem; }
.owner-form legend { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); padding: 0 6px; }
.owner-field { display: grid; gap: 4px; }
.owner-field span { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.owner-field textarea { resize: vertical; width: 100%; }
.owner-field input { width: 100%; }
.owner-check { display: flex; gap: 8px; align-items: baseline; }
.owner-question { margin: 0; padding: 10px 12px; border-left: 3px solid var(--lamp); background: var(--paper-2); }
.owner-docs { list-style: none; padding: 0; display: grid; gap: 8px; }
.owner-docs li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.evidence-banner { max-width: var(--measure); padding: 12px 16px; border: 1.5px solid var(--warn); border-radius: 10px; background: var(--paper-2); }

.wf-page { position: relative; }
.wf-shore { margin: 8px 0 0; border-radius: 12px; overflow: hidden; height: clamp(150px, 26vw, 260px); background: #141a2a; }
.wf-shore svg { display: block; width: 100%; height: 100%; }
.wf-shore .glitter { animation: glint 5s ease-in-out infinite alternate; }
.wf-dog-row { margin: 10px 0 18px; }
.wf-dog-btns { display: flex; flex-wrap: nowrap; gap: 8px; margin: 0; }
.wf-dog-said { margin: 8px 0 0; }
#oc-ocean[aria-pressed="true"] { border-color: #5fb3c8; color: #9fd8e6; }
@media (max-width: 600px) {
  /* One row on a phone: three equal buttons; a long label wraps inside its button, never the row. */
  .wf-dog-btns { gap: 6px; }
  .wf-dog-btns .btn-quiet { flex: 1 1 0; min-width: 0; padding: 8px 6px; font-size: 0.7rem; letter-spacing: 0.03em; line-height: 1.25; text-align: center; white-space: normal; border-radius: 16px; }
}
#wf-dog.dog-glad { animation: dog-glad 0.9s ease-in-out 2; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes dog-glad { 0%, 100% { translate: 0 0; } 30% { translate: 0 -3px; } 60% { translate: 1px 0; } }
@media (prefers-reduced-motion: reduce) { #wf-dog.dog-glad, .wf-shore .glitter { animation: none; } }
.wf-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 860px) { .wf-grid { grid-template-columns: minmax(0, 1fr); } }
.wf-side { display: grid; gap: 18px; }
.wf-card { border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; background: var(--paper); box-shadow: 0 6px 24px -18px rgba(20, 26, 42, 0.6); }
.wf-card h2 { margin-top: 0; font-size: 1.1rem; }
.wf-card .dash-sign { margin: 0; }
.oc-log { position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 260px; max-height: 62vh; overflow-y: auto; padding: 4px 2px 8px; }
.oc-msg { max-width: 92%; padding: 10px 14px; border-radius: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.oc-text { white-space: pre-wrap; }
.oc-user { align-self: flex-end; background: var(--lamp-wash); color: var(--lamp-ink); border-bottom-right-radius: 4px; }
.oc-assistant { align-self: flex-start; background: var(--paper-2); border: 1px solid var(--rule); border-bottom-left-radius: 4px; }
.oc-local { border-style: dashed; }
.oc-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.oc-status { margin: 6px 0 0; }
.oc-sources { margin-top: 8px; font-size: 0.9rem; }
.oc-sources ul { margin: 6px 0 0; padding-left: 1.2em; }
.oc-compose { position: relative; margin-top: 8px; }
.oc-compose textarea { display: block; width: 100%; box-sizing: border-box; font: inherit; font-size: max(16px, 1rem); /* 16px: an iPhone doesn't zoom in */ padding: 10px 50px 10px 12px; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); color: var(--ink); resize: vertical; min-height: 3.2rem; }
.oc-send { position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: #2f7bf6; color: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.oc-send svg { width: 20px; height: 20px; }
.oc-send:hover { background: #4a8ef8; }
.oc-send:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; }
.oc-send:disabled { background: #5b6478; cursor: default; }
.oc-send.is-stop { background: #e9e4f2; color: #1b2133; }
.oc-send.is-stop:hover { background: #fff; }
.oc-stopped { margin: 8px 0 0; text-transform: none; letter-spacing: 0.01em; font-size: 0.82rem; }
/* Build 1120c: replies drawn with their formatting (owner-md.js). */
/* A wide table or code block scrolls inside its reply; nothing around it may grow to its width. */
.wf-main, .wf-chat, .oc-chatbody, .oc-log, .oc-msg, .oc-text { min-width: 0; }
.oc-text.oc-md { white-space: normal; }
.oc-md > :first-child { margin-top: 0; }
.oc-md > :last-child { margin-bottom: 0; }
.oc-md-p { margin: 0 0 0.7em; }
.oc-md-h { margin: 0.9em 0 0.35em; font-family: var(--f-display); line-height: 1.3; }
.oc-md-h1 { font-size: 1.2rem; }
.oc-md-h2 { font-size: 1.1rem; }
.oc-md-h3, .oc-md-h4 { font-size: 1rem; }
.oc-md-list { margin: 0 0 0.7em; padding-left: 1.4em; }
.oc-md-list li { margin: 0.25em 0; }
.oc-md-list .oc-md-list { margin: 0.2em 0 0.3em; }
.oc-md-quote { margin: 0 0 0.7em; padding: 2px 0 2px 12px; border-left: 3px solid var(--rule); color: var(--ink-2); }
.oc-md-hr { border: 0; border-top: 1px solid var(--rule); margin: 0.9em 0; }
.oc-md-code { font-family: var(--f-mono); font-size: 0.86em; padding: 1px 5px; border-radius: 5px; background: var(--paper); border: 1px solid var(--rule); overflow-wrap: anywhere; }
.oc-md-pre { margin: 0 0 0.7em; padding: 10px 12px; border-radius: 8px; background: var(--paper); border: 1px solid var(--rule); overflow-x: auto; -webkit-overflow-scrolling: touch; font-family: var(--f-mono); font-size: 0.82rem; line-height: 1.5; white-space: pre; }
.oc-md-table { margin: 0 0 0.8em; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); border-radius: 8px; }
.oc-md-table:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; }
.oc-md-table table { border-collapse: collapse; width: 100%; font-size: 0.9rem; line-height: 1.4; }
.oc-md-table th, .oc-md-table td { padding: 6px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); min-width: 6.5em; overflow-wrap: normal; }
.oc-md-table th { background: var(--paper); font-weight: 600; white-space: nowrap; }
.oc-md-table tr:last-child td { border-bottom: 0; }
.oc-md a { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .wf-chat { padding: 12px 10px; }
  .oc-log { gap: 10px; max-height: 70vh; max-height: 70dvh; }
  .oc-msg { max-width: 100%; padding: 9px 12px; font-size: 0.97rem; line-height: 1.5; }
  .oc-user { margin-left: 8%; max-width: 92%; }
  .oc-md-table table { font-size: 0.84rem; }
  .oc-md-table th, .oc-md-table td { padding: 5px 8px; }
  .oc-compose textarea { padding-right: 48px; }
  .oc-under { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
  .oc-under-acts { display: flex; flex-wrap: wrap; gap: 6px; }
  .oc-under-acts .btn-quiet { padding: 6px 12px; font-size: 0.74rem; letter-spacing: 0.08em; }
  .oc-choices .btn-quiet, .oc-choices .play { padding: 7px 12px; }
}
.wf-fn-ref { margin-left: 2px; text-decoration: none; color: var(--ink-2); font-weight: 600; }
.wf-fn-ref:hover { color: var(--lamp); }
/* Build 1120d: the app's client ID, out of the way under the FHIR address. */
.oc-client { margin: 2px 0 6px; }
.oc-client-sum { display: inline-block; cursor: pointer; font-size: 0.8rem; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; list-style: none; }
.oc-client-sum::-webkit-details-marker { display: none; }
.oc-client-sum:hover, .oc-client-sum:focus-visible { color: var(--lamp); }
.oc-client-box { margin-top: 6px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper-2); }
.oc-client-box .owner-field input { font-family: var(--f-mono); font-size: max(16px, 0.9rem); }
/* Study Hall's floating chat (build 1120c): the chat moves into a panel fixed at the bottom right, over the page. */
.oc-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: min(420px, calc(100vw - 40px)); height: min(640px, calc(100vh - 40px)); display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28), 0 2px 6px rgba(0, 0, 0, 0.12); overflow: hidden; }
.oc-float[hidden] { display: none; }
.oc-float-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 8px 16px; border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.oc-float-title { margin: 0; font-size: 1.05rem; }
.oc-float-acts { display: inline-flex; gap: 4px; }
.oc-float-act { width: 34px; height: 34px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ink); font-size: 1.15rem; line-height: 1; cursor: pointer; }
.oc-float-act:hover, .oc-float-act:focus-visible { border-color: var(--rule); background: var(--paper); }
.oc-float-slot { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 10px 12px 8px; }
.oc-float-slot .oc-chatbody { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.oc-float-slot .oc-log { flex: 1; min-height: 0; max-height: none; }
.oc-float-slot .oc-compose textarea { min-height: 3.2em; }
.oc-float-slot .oc-under, .oc-float-slot .quiet-note { margin: 6px 0 0; font-size: 0.85rem; }
.oc-float-btn { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px; border: 0; border-radius: 999px; background: #2f7bf6; color: #fff; font: 600 0.95rem/1 var(--f-body); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.oc-float-btn[hidden] { display: none; }
.oc-float-btn svg { width: 22px; height: 22px; }
.oc-float-btn:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; }
.oc-float-dot { position: absolute; top: 6px; right: 8px; width: 10px; height: 10px; border-radius: 50%; background: #e2513b; box-shadow: 0 0 0 2px #fff; }
.oc-floated-note { margin: 4px 0 0; color: var(--ink-2); }
@media (max-width: 640px) {
  .oc-float { right: 0; left: 0; bottom: 0; width: 100%; height: min(82vh, calc(100vh - 48px)); height: min(82dvh, calc(100dvh - 48px)); border-radius: 14px 14px 0 0; border-left: 0; border-right: 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); }
  .oc-float.oc-typing { top: var(--oc-vv-top, auto); bottom: auto; height: var(--oc-vv-h, 82dvh); border-radius: 0; }
  .oc-float-slot { padding: 8px 10px 6px; }
  .oc-float-slot .quiet-note { font-size: 0.78rem; }
  .oc-float-slot .oc-compose textarea { height: 3.4em; }
  .oc-float-btn { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
}
@media print { .oc-float, .oc-float-btn { display: none !important; } }
.wf-footnote { margin: 28px 0 8px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 0.82rem; line-height: 1.55; color: var(--ink-2); max-width: 46rem; }
.wf-footnote a { color: var(--ink-2); }
.oc-second-row { margin: 8px 0 0; }
.oc-scan-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 12px 0 0; }
.ex-save { margin: 8px 0 0; }
.oc-second-link { padding: 2px 0; border: 0; background: none; color: var(--ink-2); font: inherit; font-size: 0.85rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.oc-second-link:hover { color: var(--lamp); }
.oc-second { margin: 12px 0 2px; padding: 10px 12px; border-left: 3px solid #6fa8dc; background: rgba(111, 168, 220, 0.1); border-radius: 6px; }
.oc-second-head { margin: 0 0 6px; color: #9cc3e6; }
.oc-under-acts { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.oc-under { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 8px 12px; margin: 10px 0 8px; }
.oc-doc { display: block; padding: 4px 0; }
.oc-doc-act { margin-left: 8px; padding: 2px 4px; border: 0; background: none; color: var(--ink-2); font: inherit; font-size: 0.8rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.oc-doc-act:hover { color: var(--lamp); }
.oc-doc-del:hover { color: #e5675f; }
.oc-doc-ask { margin: 4px 0 10px; padding: 10px 12px; border-left: 3px solid var(--lamp); background: rgba(243, 178, 107, 0.1); border-radius: 6px; }
.oc-doc-ask:has(.oc-danger) { border-left-color: #e5675f; background: rgba(229, 103, 95, 0.12); }
.oc-doc-ask p { margin: 0; }
.oc-folder { margin: 6px 0; }
.oc-folder > summary { cursor: pointer; padding: 6px 0; list-style-position: inside; }
.oc-folder-top { border-top: 1px solid var(--rule); margin-top: 10px; padding-top: 4px; }
.oc-folder .oc-folder { margin-left: 16px; }
.oc-folder-name { font-weight: 600; }
.oc-folder-count { margin-left: 8px; text-transform: none; letter-spacing: 0.01em; }
.oc-folder-acts { margin: 0 0 4px 16px; }
.oc-folder-acts .oc-doc-act:first-child { margin-left: 0; }
.oc-folder-rows { margin-left: 16px; max-height: 18rem; overflow-y: auto; }
.oc-doc-compact { padding: 1px 0; font-size: 0.92rem; }
.oc-doc-compact .oc-doc-act { font-size: 0.75rem; }
.oc-doc-img { display: block; max-width: 100%; max-height: 360px; margin: 8px 0; border-radius: 6px; background: #000; }
.oc-danger { border-color: #e5675f; color: #f3a29c; }
.play.oc-danger { background: #c9443c; border-color: #c9443c; color: #fff; }
.oc-rec summary { cursor: pointer; padding: 4px 0; }
.oc-rec ul { margin: 4px 0 8px; padding-left: 1.2em; font-size: 0.92rem; }
.oc-fhir { position: relative; margin: 10px 0 6px; }
.oc-fhir input { width: 100%; box-sizing: border-box; font-size: 16px; /* 16px: an iPhone doesn't zoom in on it */ }
.oc-fhir-list { position: absolute; z-index: 5; left: 0; right: 0; max-height: 18rem; overflow-y: auto; margin: 4px 0 0; padding: 4px; list-style: none; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper-2); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6); }
.oc-fhir-list li { display: grid; gap: 2px; padding: 8px 10px; border-radius: 8px; cursor: pointer; overflow-wrap: anywhere; }
.oc-fhir-list li:hover, .oc-fhir-list li[aria-selected="true"] { background: var(--lamp-wash); color: var(--lamp-ink); }
.oc-fhir-list li .label { text-transform: none; letter-spacing: 0; font-size: 0.72rem; }
/* Build 1119p: recording an appointment: one small button near the top of the page. */
.rec { margin: 14px 0 0; }
.rec-btn[hidden] { display: none; }
.rec-row #oc-checkin-open { min-height: 44px; }
.rec-row a#oc-table-page { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; box-sizing: border-box; }
.rec-row a#oc-table-page[hidden] { display: none; }
.rec-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; }
.rec-said { font-size: 0.85rem; color: var(--ink-2); }
.rec-said:empty { display: none; }
.rec-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid #e5675f; background: transparent; color: var(--ink); font: 600 0.95rem/1 var(--f-sans, inherit); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.rec-dot { width: 11px; height: 11px; border-radius: 50%; background: #e5675f; }
.rec[data-state="armed"] .rec-btn { background: #c9443c; border-color: #c9443c; color: #fff; }
.rec[data-state="armed"] .rec-dot { background: #fff; }
.rec[data-state="recording"] .rec-btn { background: #2a1d24; }
.rec[data-state="recording"] .rec-dot { border-radius: 2px; animation: rec-pulse 1.4s ease-in-out infinite; }
.rec[data-state="paused"] .rec-btn { border-color: var(--lamp); }
.rec-btn:disabled { opacity: 0.6; cursor: default; }
@keyframes rec-pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .rec[data-state="recording"] .rec-dot { animation: none; } }
.rec-ask { margin: 10px 0 0; font-size: 0.92rem; padding: 10px 12px; border-left: 3px solid #e5675f; background: rgba(229, 103, 95, 0.12); border-radius: 6px; }
.rec-error { margin: 10px 0 0; padding: 10px 12px; border-left: 3px solid #e5675f; background: rgba(229, 103, 95, 0.2); border-radius: 6px; font-size: 0.92rem; }
.rec-error[hidden] { display: none; }
.rec-more { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.rec-text { margin-top: 10px; }
.rec-text summary { cursor: pointer; padding: 4px 0; }
.rec-words { max-height: 14rem; overflow-y: auto; line-height: 1.55; padding: 4px 2px; }
.rec-gap { color: var(--ink-2); font-style: italic; }
/* The companion's page sits in the waterfront at dusk: the whole page is the evening sky over the sea, whatever the theme. */
body:has(.wf-page) {
  --paper: #1b2133; --paper-2: #232a40; --ink: #f1e9dc; --ink-2: #c3b8c9; --rule: #77709a;
  --lamp: #f3b26b; --lamp-wash: #5a3f3a; --lamp-ink: #fbe7cf; --ok: #8fd3a8; --warn: #f4a46a; color-scheme: dark;
  background: transparent; color: var(--ink);
}
html:has(.wf-page) { background: linear-gradient(180deg, #1f2747 0, #3c3560 22rem, #5d4570 34rem, #8a5468 46rem, #4a3a5c 54rem, #2f2b49 68rem, #141a2a 100%) #141a2a; }
body:has(.wf-page) .wf-card { background: rgba(27, 33, 51, 0.82); border-color: rgba(243, 178, 107, 0.22); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
body:has(.wf-page) .oc-assistant { background: rgba(35, 42, 64, 0.92); }
.wf-sign { margin-bottom: 18px; }
.wf-signout { align-self: center; margin-left: auto; padding: 4px 2px; border: 0; background: none; color: var(--ink-2); font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.wf-signout:hover { color: var(--lamp); }
.wf-signout[hidden] { display: none; }
.wf-sign .owner-signin { margin: 0; }
.wf-sign .dash-sign { margin-top: 10px; }
.wf-head { margin-bottom: 18px; }
.wf-links a { white-space: nowrap; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.wf-links a:hover { color: var(--lamp); }
.wf-shore svg { cursor: pointer; }
/* Build 1119f: the working line under a reply that is still coming. */
.oc-working { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 10px 0 0; font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--ink-2); }
.oc-working-time { opacity: 0.75; }
.oc-dots { display: inline-flex; gap: 4px; }
.oc-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--lamp); animation: oc-dot 1.2s ease-in-out infinite; }
.oc-dots i:nth-child(2) { animation-delay: 0.2s; }
.oc-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes oc-dot { 0%, 80%, 100% { transform: translateY(0); opacity: 0.35; } 40% { transform: translateY(-4px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .oc-dots i { animation: oc-dot-still 1.6s ease-in-out infinite; } @keyframes oc-dot-still { 50% { opacity: 1; } 0%, 100% { opacity: 0.4; } } }
.oc-failed { border-color: var(--warn); }
/* Build 1119i: the working line stays in sight at the foot of the conversation while a long answer comes in below it. */
.oc-working { position: sticky; bottom: -10px; z-index: 1; padding: 6px 0 8px; background: var(--paper-2); }
body:has(.wf-page) .oc-working { background: rgba(35, 42, 64, 0.97); }
/* Build 1119k: the Evidence Examination widget and the results under Study Hall's conversation. */
.wf-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-content: start; min-width: 0; }
/* Build 1122u: the column (and its side column) holds to the screen's width: without a set column, a grid's one
   column was as wide as its widest unbreakable line (the image folder's count, "236, all ticked (the first 20 images
   go with each message)"), and on a phone the whole page grew past the screen and was zoomed out to fit. */
.wf-side { grid-template-columns: minmax(0, 1fr); }
.wf-card { min-width: 0; }
.ex-box { border: 1px dashed var(--lamp); border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
.ex-box h3 { margin: 4px 0 6px; font-size: 1.05rem; }
.ex-state { display: flex; gap: 8px; margin: 8px 0; }
.ex-pill { display: inline-block; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--rule); border-radius: 999px; padding: 2px 9px; margin-left: 6px; color: var(--ink-2); }
.ex-state .ex-pill { margin-left: 0; }
.ex-pill.ex-on { border-color: var(--ok); color: var(--ok); }
.ex-question { margin: 6px 0; padding: 8px 12px; border-left: 3px solid var(--lamp); background: var(--paper-2); }
.ex-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.ex-links a { text-decoration: none; }
.ex-trials summary { cursor: pointer; margin: 6px 0; }
.ex-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.ex-table th, .ex-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ex-table th { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.ex-table tr.ex-bad td { color: var(--warn); }
.ex-results { margin-top: 26px; }
.ex-results h2 { margin-bottom: 4px; }
#ex-results-list { display: grid; gap: 18px; margin-top: 12px; }
.ex-result-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ex-result-head h3 { margin: 0 0 8px; font-size: 1.1rem; }
.ex-export { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.ex-list { padding-left: 1.2em; }
.ex-chart { display: block; width: 100%; height: auto; margin-top: 6px; }
.ex-grid { stroke: var(--rule); stroke-width: 1; }
.ex-axis { fill: var(--ink-2); font-family: var(--f-mono); font-size: 11px; }
.ex-line { stroke-width: 2.4; }
.ex-s0 { stroke: #f3b26b; fill: #f3b26b; background: #f3b26b; }
.ex-s1 { stroke: #8fd3a8; fill: #8fd3a8; background: #8fd3a8; }
.ex-s2 { stroke: #9ab8ff; fill: #9ab8ff; background: #9ab8ff; }
.ex-s3 { stroke: #e58fb5; fill: #e58fb5; background: #e58fb5; }
polyline.ex-s0, polyline.ex-s1, polyline.ex-s2, polyline.ex-s3 { fill: none; }
.ex-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.88rem; }
.ex-key { display: inline-flex; align-items: center; gap: 6px; }
.ex-key i { width: 14px; height: 3px; display: inline-block; }
/* Build 1119l: what results cite, and documents opened under them. */
.ex-sources { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; margin: 10px 0 0; font-size: 0.92rem; }
.ex-link { font: inherit; background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-decoration-color: var(--lamp); text-underline-offset: 3px; cursor: pointer; }
.ex-doc-text { white-space: pre-wrap; line-height: 1.55; max-height: 70vh; overflow-y: auto; }
/* Build 1119m: the check-in. */
.oc-checkin { margin: 0 0 18px; }
.oc-checkin h2 { margin-top: 0; font-size: 1.1rem; }
.oc-scale { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; margin: 10px 0 4px; }
.oc-n { font: inherit; font-family: var(--f-mono); padding: 8px 0; border: 1.5px solid var(--rule); border-radius: 8px; background: var(--paper); color: var(--ink); cursor: pointer; }
.oc-n:hover { border-color: var(--lamp); }
.oc-n[aria-pressed="true"] { background: var(--lamp); border-color: var(--lamp); color: #1b2133; font-weight: 700; }
.oc-scale-ends { display: flex; justify-content: space-between; margin: 0 0 12px; }
.oc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
.oc-chips .dash-chip[aria-pressed="true"] { border-color: var(--lamp); color: var(--lamp); }
/* Build 1120f: an evidence table's page, in Study Hall's dusk: the swarm's report (gauge, parts, reasoning, strengths
   and weaknesses, trial by trial, the gates), the agents' posts (searchable), and the owner's tools. */
.ev-page .room-head, .ev-page .table-nav, .ev-page .evidence-banner, .ev-page .problem-detail, .ev-page .block { position: relative; }
.ev-page .wf-card { margin: 16px 0; }
.ev-page .evidence-banner { background: rgba(27, 33, 51, 0.82); }
.ev-owner .ev-row { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 12px; margin: 10px 0; }
.ev-owner select, .ev-owner input { font: inherit; font-size: max(16px, 0.95rem); background: var(--paper-2); color: var(--ink); border: 1px solid var(--rule); border-radius: 8px; padding: 7px 10px; }
.ev-trial-field input { width: 16ch; max-width: 100%; font-family: var(--f-mono); }
.ev-compare summary { cursor: pointer; margin: 8px 0; }
.ev-pick { display: block; margin: 4px 0; }
.ev-report-top { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.ev-gauge { margin: 0; width: 240px; max-width: 100%; text-align: center; }
.ev-gauge svg { width: 100%; height: auto; display: block; }
.ev-gauge-small { width: 110px; }
.ev-g-band { fill: none; stroke-width: 18; stroke-linecap: butt; }
.ev-g-1 { stroke: #d0573f; } .ev-g-2 { stroke: #e08a3c; } .ev-g-3 { stroke: #d9bf4a; } .ev-g-4 { stroke: #8cc46a; } .ev-g-5 { stroke: #3fae74; }
.ev-g-needle { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.ev-g-hub { fill: var(--ink); }
.ev-g-num { fill: var(--ink); font: 700 34px var(--f-display); }
.ev-g-of { fill: var(--ink-2); font: 12px var(--f-mono); letter-spacing: 0.08em; }
.ev-gauge-small .ev-g-num { font-size: 40px; }
.ev-g-label { font-family: var(--f-display); font-size: 1.15rem; margin-top: 4px; }
.ev-report-side { flex: 1; min-width: 240px; }
.ev-parts { display: grid; gap: 8px; }
.ev-part { display: grid; grid-template-columns: minmax(9rem, auto) 1fr 2.5rem; gap: 2px 10px; align-items: center; }
.ev-part-name { font-size: 0.92rem; }
.ev-part-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.ev-part-fill { display: block; height: 100%; border-radius: 999px; background: var(--lamp); }
.ev-part-num { font-family: var(--f-mono); font-size: 0.85rem; text-align: right; }
.ev-part-why { grid-column: 1 / -1; font-size: 0.82rem; color: var(--ink-2); }
.ev-summary h3, .ev-list h3, .ev-trials h3, .ev-gates h3, .ev-posts h3 { font-size: 1.05rem; margin: 18px 0 6px; }
.ev-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 24px; }
.ev-list ul { margin: 0; padding-left: 1.2em; }
.ev-list li { margin: 4px 0; }
.ev-strengths h3::before { content: "＋ "; color: var(--ok); }
.ev-weaknesses h3::before { content: "－ "; color: var(--warn); }
.ev-trial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.ev-trial { border: 1px solid var(--rule); border-radius: 10px; padding: 8px 10px; text-align: center; }
.ev-trial p { margin: 4px 0; }
.ev-mono { font-family: var(--f-mono); font-size: 0.82rem; }
.ev-pooled { margin: 14px 0 4px; }
.ev-search { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.ev-search input { flex: 1; min-width: 200px; font: inherit; font-size: max(16px, 0.95rem); background: var(--paper-2); color: var(--ink); border: 1px solid var(--rule); border-radius: 8px; padding: 7px 10px; }
.ev-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); border-radius: 8px; }
.ev-table { border-collapse: collapse; width: 100%; font-size: 0.88rem; }
.ev-table th, .ev-table td { padding: 6px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.ev-table thead th { white-space: nowrap; background: rgba(255, 255, 255, 0.05); }
.ev-table td:last-child { min-width: 18rem; }
.ev-row-gap td { background: rgba(244, 164, 106, 0.08); }
.ev-v-holds { color: var(--ok); } .ev-v-gap { color: var(--warn); } .ev-v-unsure { color: var(--ink-2); }
.ev-progress-box { border: 1px dashed var(--lamp); border-radius: 12px; padding: 10px 14px; margin: 12px 0; background: rgba(27, 33, 51, 0.82); }
.ev-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; margin: 8px 0; }
.ev-bar span { display: block; height: 100%; background: var(--lamp); transition: width 0.4s; }
.ev-log { margin: 6px 0; padding-left: 1.1em; font-size: 0.85rem; color: var(--ink-2); }
.ev-compare-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 10px 0; }
.ev-compare-card h3 { font-size: 1rem; margin: 0 0 6px; }
.ev-signin { margin: 24px 0; font-size: 0.85rem; color: var(--ink-2); }
.ev-signin summary { cursor: pointer; }
@media (max-width: 600px) { .ev-part { grid-template-columns: 1fr 2.5rem; } .ev-part-bar { grid-column: 1 / -1; grid-row: 2; } .ev-gauge { width: 200px; } }
/* Build 1120f: Study Hall's evidence widget: the swarm's score, the table switcher, one trial. */
.ex-swarm { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 10px 0; }
.ex-score { font-family: var(--f-display); font-size: 1.6rem; line-height: 1; }
.ex-switch select, .ex-trial input { font: inherit; font-size: max(16px, 0.95rem); background: var(--paper-2); color: var(--ink); border: 1px solid var(--rule); border-radius: 8px; padding: 6px 9px; }
.ex-trial { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.ex-trial input { width: 12ch; font-family: var(--f-mono); }

/* Build 1120g: the evidence pages. The strip of active examinations at the top (owner only), compact; the title a size
   down, since a table's question already runs long; even spacing between the cards, the banner and the trials. */
.ev-active { position: relative; margin: 0 0 18px; padding: 8px 12px 6px; border: 1px solid var(--rule); border-radius: 10px; background: rgba(27, 33, 51, 0.82); }
.ev-active h2.label { margin: 0 0 4px; font-size: 0.72rem; }
.ev-active .ev-table-wrap { margin: 0; border: 0; }
.ev-active-none { margin: 2px 0 4px; }
.ev-active-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.ev-active-table td { padding: 4px 10px 4px 0; border-top: 1px solid rgba(255, 255, 255, 0.07); vertical-align: middle; white-space: nowrap; }
.ev-active-table tr:first-child td { border-top: 0; }
.ev-active-table .ev-a-title { max-width: 22rem; overflow: hidden; text-overflow: ellipsis; }
.ev-active-table .ev-a-title a { color: var(--ink); }
.ev-active-table .ev-a-latest { max-width: 24rem; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.ev-active-table .ev-a-when { text-align: right; padding-right: 0; color: var(--ink-2); }
.ev-a-this { color: var(--ink-2); font-size: 0.8rem; }
.ev-a-here .ev-a-title a { font-weight: 600; }
.ev-chip { display: inline-block; padding: 1px 8px; border-radius: 999px; font: 0.72rem var(--f-mono); letter-spacing: 0.04em; border: 1px solid var(--rule); }
.ev-chip-running { border-color: var(--lamp); color: var(--lamp); }
.ev-chip-done { border-color: #3fae74; color: #7fd6a4; }
.ev-chip-failed, .ev-chip-stopped { border-color: var(--warn); color: var(--warn); }
.ev-bar-mini { display: inline-block; width: 72px; height: 6px; margin: 0 4px 0 0; vertical-align: middle; }
.ev-a-score { font-family: var(--f-display); font-size: 1rem; }
.ev-band-1 { color: #e0705a; } .ev-band-2 { color: #eb9b4f; } .ev-band-3 { color: #e3c654; } .ev-band-4 { color: #9ccf6b; } .ev-band-5 { color: #4cc185; }
.ev-page .room-head { margin-bottom: 22px; }
.ev-page .room-head h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.08; }
.ev-page .room-head .lede { font-size: 1.02rem; margin-top: 12px; }
.ev-page .table-nav-head { margin-bottom: 20px; }
.ev-page .wf-card { margin: 0 0 18px; }
.ev-page #ev-progress:empty { display: none; }
.ev-page .ev-progress-box { margin: 0 0 18px; }
.ev-page .evidence-banner { max-width: none; margin: 0 0 28px; }
.ev-page .problem-detail { max-width: none; margin-bottom: 28px; }
.ev-page .problem-detail h2 { margin-top: 0; }
.ev-owner h2, .ev-report-card h2 { margin: 0 0 6px; }
.ev-owner .ev-row:last-of-type { margin-bottom: 4px; }
.ev-owner .ev-row .play, .ev-owner .ev-row .btn-quiet, .ev-trial-field input { min-height: 40px; box-sizing: border-box; }
.ev-compare { margin-top: 6px; }
.ev-empty { margin: 4px 0 2px; }
@media (max-width: 600px) {
  .ev-active-table .ev-a-latest, .ev-active-table .ev-a-when { display: none; }
  .ev-active-table .ev-a-title { max-width: 9rem; }
  .ev-active-table .ev-bar-mini { display: none; }
  .ev-active-table .ev-a-prog .dash-small { font-size: 0.78rem; }
  .ev-a-this { display: none; }
}
.ev-active { margin-bottom: 26px; }
.ev-page section.block { margin-top: 44px; }
.ev-page section.block > h2 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* Build 1120h: the evidence dashboard (evidence-dash.js). Panels on the report card; two side by side when there's room. */
.ev-dash { margin-top: 22px; }
.ev-dash > h3 { font-size: 1.05rem; margin: 0 0 10px; }
.ev-dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 600px), 1fr)); gap: 14px; margin-top: 14px; }
.ev-panel { min-width: 0; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 12px 14px; background: rgba(255, 255, 255, 0.025); }
.ev-panel h4 { margin: 0 0 4px; font: 600 0.98rem var(--f-display); }
.ev-panel-cap { margin: 0 0 10px; font-size: 0.82rem; color: var(--ink-2); line-height: 1.45; }
.ev-panel-foot { margin: 8px 0 0; font-size: 0.84rem; color: var(--ink-2); }
.ev-panel-big { margin: 2px 0 8px; font-size: 0.95rem; }
.ev-panel-big strong { font: 700 1.35rem var(--f-display); }
.ev-wait { margin: 6px 0 2px; font-size: 0.88rem; }
.ev-legend { margin: 8px 0 0; font-size: 0.76rem; color: var(--ink-2); line-height: 1.7; }
.ev-panel .ev-table-wrap { margin: 0; }
.ev-panel .ev-table { font-size: 0.86rem; }
.ev-panel .ev-table th, .ev-panel .ev-table td { padding: 5px 8px; vertical-align: middle; }
.ev-panel .ev-table tbody th { text-align: left; font-weight: 400; white-space: nowrap; }
.ev-chip2 { display: inline-block; padding: 1px 8px; border-radius: 999px; font: 0.74rem var(--f-mono); white-space: nowrap; border: 1px solid currentColor; }
.ev-chip-link { text-decoration: none; }
.ev-chip-link:hover .ev-chip2 { background: rgba(255, 255, 255, 0.08); }
.ev-c-ok { color: #7fd6a4; }
.ev-c-mid { color: #e8c766; }
.ev-c-gap { color: #f0a466; }
.ev-c-bad { color: #f08a7a; }
.ev-c-unsure, .ev-c-wait { color: var(--ink-2); border-style: dashed; }
/* forest plots */
.ev-forest { display: grid; grid-template-columns: minmax(8rem, 13rem) minmax(0, 1fr) minmax(8.5rem, auto); gap: 0 12px; align-items: center; }
.ev-f-row { display: contents; }
.ev-f-name { min-width: 0; padding: 4px 0; line-height: 1.2; }
.ev-f-id { display: block; font: 0.82rem var(--f-mono); }
.ev-f-sub { display: block; font-size: 0.74rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-f-plot { min-width: 0; position: relative; height: 26px; }
.ev-f-plot svg { display: block; overflow: visible; }
.ev-f-val { font: 0.8rem var(--f-mono); white-space: nowrap; text-align: right; color: var(--ink); }
.ev-f-null { stroke: rgba(255, 255, 255, 0.45); stroke-dasharray: 3 3; stroke-width: 1; }
.ev-f-ref { stroke: rgba(229, 176, 87, 0.45); stroke-dasharray: 1 3; stroke-width: 1.5; }
.ev-f-ci { stroke: #cfd8e8; stroke-width: 2; stroke-linecap: round; }
.ev-f-dot { fill: #cfd8e8; }
.ev-f-pooled .ev-f-ci { stroke: #e5b057; stroke-width: 7; stroke-linecap: butt; opacity: 0.55; }
.ev-f-pooled .ev-f-dot { fill: #e5b057; }
.ev-f-pooled .ev-f-id, .ev-f-published .ev-f-id { font-family: var(--f-display); font-size: 0.9rem; font-weight: 600; }
.ev-f-published .ev-f-ci { stroke: #9cc9f0; stroke-dasharray: 4 3; }
.ev-f-published .ev-f-dot { fill: none; stroke: #9cc9f0; stroke-width: 2; }
.ev-f-pooled > div, .ev-f-published > div { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.ev-f-flip .ev-f-sub { color: #f0a466; }
.ev-f-flip .ev-f-ci, .ev-f-flip .ev-f-dot { stroke: #f0a466; fill: #f0a466; }
.ev-f-ticks { height: 18px; border-top: 1px solid rgba(255, 255, 255, 0.25); }
.ev-f-tick { position: absolute; top: 2px; transform: translateX(-50%); font: 0.7rem var(--f-mono); color: var(--ink-2); }
.ev-f-tick-null { color: var(--ink); }
/* risk of bias */
.ev-rob td { text-align: center; }
.ev-r { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font: 700 0.85rem var(--f-mono); color: #11151f; vertical-align: middle; }
.ev-r-low { background: #4cc185; }
.ev-r-some { background: #e3c654; }
.ev-r-high { background: #e0705a; }
.ev-r-none { background: transparent; color: var(--ink-2); border: 1px dashed var(--ink-2); }
.ev-legend .ev-r { width: 16px; height: 16px; font-size: 0.7rem; }
/* published vs reproduced, flags, certainty */
.ev-pubrep td.ev-mono { white-space: nowrap; }
.ev-pubrep-pool th, .ev-pubrep-pool td { border-top: 2px solid rgba(255, 255, 255, 0.18); font-weight: 600; }
.ev-flags { list-style: none; margin: 0; padding: 0; }
.ev-flags li { padding: 5px 0; border-top: 1px solid rgba(255, 255, 255, 0.07); font-size: 0.88rem; line-height: 1.45; }
.ev-flags li:first-child { border-top: 0; }
.ev-flag-trial { font-size: 0.8rem; color: var(--ink-2); }
.ev-cert-top { margin: 2px 0 6px; font-size: 1.05rem; }
.ev-cert-dots span { font-size: 1.35rem; margin-right: 2px; }
.ev-cert-dots .off { color: rgba(255, 255, 255, 0.25); }
.ev-cert-4 .on { color: #4cc185; } .ev-cert-3 .on { color: #9ccf6b; } .ev-cert-2 .on { color: #e3c654; } .ev-cert-1 .on { color: #e0705a; }
.ev-cert td.dash-small { white-space: normal; min-width: 12rem; }
.ev-compare-cert { margin: 6px 0; font-size: 0.88rem; color: var(--ink-2); text-align: center; }
@media (max-width: 600px) {
  .ev-forest { grid-template-columns: minmax(0, 1fr) auto; grid-auto-flow: row dense; }
  .ev-f-name { grid-column: 1; }
  .ev-f-val { grid-column: 2; }
  .ev-f-plot { grid-column: 1 / -1; }
  .ev-f-axis .ev-f-name, .ev-f-axis .ev-f-val { display: none; }
  .ev-f-pooled > div, .ev-f-published > div { border-top: 0; }
  .ev-panel { padding: 10px; }
}
/* Build 1120k: the table page's chat compares two opinions in the panel itself. */
.oc-float .oc-compare { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.oc-float .oc-compare ul { margin: 4px 0 6px; padding-left: 1.2em; }
/* Build 1120l: the table page's chat: Save and Start over in words in its header, and a status line under it. */
.oc-float-txt { height: 30px; padding: 0 10px; border: 1px solid var(--rule); border-radius: 999px; background: transparent; color: var(--ink); font: 0.72rem var(--f-mono); letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.oc-float-txt:hover, .oc-float-txt:focus-visible { background: var(--paper); }
.oc-float-txt:disabled { opacity: 0.5; cursor: default; }
.oc-float-acts { display: flex; align-items: center; gap: 6px; }
.oc-float-said { margin: 0; padding: 0 2px; font-size: 0.8rem; color: var(--ink-2); min-height: 0; }
.oc-float-said:empty { display: none; }
.oc-float .oc-second .oc-choices { margin-top: 6px; }
/* Build 1120m: the "i" beside each dashboard panel's heading, and its plain-language explanation. */
.ev-info { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-left: 8px; padding: 0; vertical-align: 2px; border: 1.5px solid var(--ink-2); border-radius: 50%; background: transparent; color: var(--ink-2); font: italic 700 0.72rem Georgia, var(--f-display), serif; line-height: 1; cursor: pointer; }
.ev-info:hover, .ev-info:focus-visible, .ev-info.on { border-color: #e5b057; color: #e5b057; }
.ev-info-box { margin: 4px 0 10px; padding: 10px 12px; border-left: 3px solid #e5b057; border-radius: 0 8px 8px 0; background: rgba(229, 176, 87, 0.08); font-size: 0.9rem; line-height: 1.5; }
.ev-info-box p { margin: 0 0 6px; }
.ev-info-box p:last-child { margin-bottom: 0; }
/* Build 1120n: Study Hall's evidence panel: the examinations (one shown in full, the others listed, the closed folded). */
.ex-runs { margin: 4px 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.ex-runs:empty { display: none; }
.ex-runs-title { font-size: 1rem; margin: 10px 0 6px; }
.ex-runs-none { margin: 2px 0 4px; }
.ex-run { border: 1px solid var(--rule); border-radius: 12px; padding: 10px 12px; }
.ex-run-running { border-color: var(--lamp); border-style: dashed; }
.ex-run-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ex-run-title { font-family: var(--f-display); font-size: 1.02rem; color: var(--ink); line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
.ex-run-close { flex: none; padding: 4px 10px; font-size: 0.7rem; }
.ex-run-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 8px 0 2px; }
.ex-run-when { margin: 4px 0 0; overflow-wrap: anywhere; }
.ex-run-acts { margin: 8px 0 0; }
.ex-chip { display: inline-block; padding: 1px 8px; border-radius: 999px; font: 0.72rem var(--f-mono); border: 1px solid var(--rule); }
.ex-chip-running { border-color: var(--lamp); color: var(--lamp); }
.ex-chip-failed, .ex-chip-stopped { border-color: var(--warn); color: var(--warn); }
.ex-bar { display: inline-block; width: 110px; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; vertical-align: middle; }
.ex-bar span { display: block; height: 100%; background: var(--lamp); }
.ex-band-1 { color: #e0705a; } .ex-band-2 { color: #eb9b4f; } .ex-band-3 { color: #e3c654; } .ex-band-4 { color: #9ccf6b; } .ex-band-5 { color: #4cc185; }
.ex-run-list { list-style: none; margin: 8px 0 0; padding: 0; }
.ex-run-list li { display: flex; align-items: center; gap: 6px; padding: 4px 0; border-top: 1px solid rgba(255, 255, 255, 0.07); flex-wrap: wrap; }
.ex-run-list li:first-child { border-top: 0; }
.ex-run-pick { background: none; border: 0; padding: 0; color: var(--ink); font: inherit; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; min-width: 0; }
.ex-run-pick:hover { text-decoration-color: var(--lamp); }
.ex-run-x { margin-left: auto; width: 26px; height: 26px; padding: 0; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--ink-2); font-size: 1rem; line-height: 1; cursor: pointer; }
.ex-run-x:hover, .ex-run-x:focus-visible { border-color: var(--rule); color: var(--ink); }
.ex-run-again { margin-left: auto; padding: 2px 10px; font-size: 0.7rem; }
.ex-closed { margin-top: 8px; font-size: 0.88rem; }
.ex-closed summary { cursor: pointer; color: var(--ink-2); }
.ex-trial input { width: 16ch; max-width: 100%; }
/* Build 1120o: the Long Table's header box, tighter (smaller title and intro, less padding), with Published works under
   the board buttons, filling the space beside Notable results; and "Published from this table" on a table's page. */
.boards-head { padding: 14px clamp(14px, 2.6vw, 22px) 12px; margin-bottom: 16px; }
@media (min-width: 861px) { .boards-head.has-notable { grid-template-columns: minmax(0, 1fr) minmax(0, 19rem); gap: 14px 30px; } }
/* Build 1122bb: a wider side column on a wide screen (Published works there since build 1122mm). */
@media (min-width: 1000px) { .boards-head.has-notable { grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); } }
.boards-head .boards-title { font-size: clamp(1.6rem, 3.2vw, 2.25rem); margin: 0 0 4px; line-height: 1.1; }
.boards-head .boards-intro { font-size: 1rem; line-height: 1.5; }
.board-tabs { margin-top: 10px; }
.board-tabs button { font-size: 0.8rem; padding: 6px 13px; }
.notable h3 { margin: 0 0 6px; }
.notable li { margin: 0 0 8px; font-size: 0.95rem; line-height: 1.3; }
.notable li:last-child { margin-bottom: 0; }
.notable-meta { font-size: 0.68rem; }
.pubworks { margin-top: 14px; padding-top: 10px; border-top: 1px solid rgba(70, 50, 25, 0.18); }
.pubworks h3 { margin: 0 0 6px; color: var(--ink-2); font-size: 0.75rem; }
.pubworks ul, .pubworks-list { list-style: none; margin: 0; padding: 0; }
.pubworks li, .pubworks-list li { margin: 0 0 8px; line-height: 1.35; }
.pubworks li:last-child, .pubworks-list li:last-child { margin-bottom: 0; }
/* Build 1122mm: on the Lab's blueprint card, Published works stands in the side column beside the introduction (the
   works one above another, in short), and Notable results runs under both columns, three across (one above another on
   a narrow screen), with "Read more" under them. */
.boards-head > .pubworks { margin-top: 0; padding: 2px 0 2px 16px; border-top: 0; border-left: 3px solid var(--lamp); }
.boards-head > .pubworks li { margin: 0 0 9px; }
.boards-head > .pubworks .pub-title { font-size: 0.88rem; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.boards-head > .pubworks .pub-meta { font-size: 0.66rem; margin-top: 3px; }
.boards-head > .pubworks .pub-meta .pub-pdf { color: var(--ink); font-weight: 600; }
.boards-head > .pubworks .pub-meta a { white-space: nowrap; }
.boards-head > .notable { grid-column: 1 / -1; margin-top: 4px; padding: 10px 0 0; border-left: 0; border-top: 1px solid rgba(70, 50, 25, 0.18); }
.boards-head > .notable ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 10px 30px; }
.boards-head > .notable li { margin: 0; }
.boards-head > .notable li > a:not(.notable-more) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.boards-head > .notable .notable-more { margin: 12px 0 0 1.6em; }
@media (max-width: 860px) { .boards-head > .pubworks { padding-left: 14px; } }
/* Build 1201mm: as the list of published works grows, the card keeps its size and the list scrolls inside it. On a wide
   screen the side column takes the height of the introduction beside it (contain: size keeps the list from setting the
   row's height; at least 16rem); on a narrow one the list stops at about five works. */
.boards-head > .pubworks { display: flex; flex-direction: column; min-height: 0; }
.boards-head > .pubworks ul { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; padding-right: 8px; }
@media (min-width: 861px) { .boards-head.has-notable > .pubworks { align-self: stretch; contain: size; min-height: 16rem; } }
@media (max-width: 860px) { .boards-head > .pubworks ul { max-height: 22rem; } }
.boards-head > .pubworks ul.more-below { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 3rem), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 3rem), transparent); }
.pub-title { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.pub-title:hover { color: var(--lamp); text-decoration-color: var(--lamp); }
.pubworks .pub-title { font-size: 0.95rem; }
.pub-meta, .pub-links { display: block; margin-top: 2px; font-family: var(--f-mono); font-size: 0.68rem; color: var(--ink-2); letter-spacing: 0.02em; }
.pub-meta a, .pub-links a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.pub-note { display: block; margin-top: 3px; font-size: 0.86rem; color: var(--ink-2); }
.pubworks-block .pub-title { font-size: 1.05rem; }
.pubworks-block .pub-note { font-size: 0.95rem; color: var(--ink); }
/* Build 1122e: a work's PDF, first among its links and a little stronger, since it is the one people will want. */
.pub-links .pub-pdf { color: var(--ink); font-weight: 600; }
.pub-links .pub-pdf:hover { color: var(--lamp); }
/* Build 1120r: when a Study Hall document was added. */
.oc-doc-when { display: block; margin: 2px 0 0 1.6em; font: 0.72rem/1.3 var(--f-mono); letter-spacing: 0.02em; color: var(--ink-2); }
.oc-doc-compact .oc-doc-when { display: inline; margin: 0 0 0 6px; }
/* Build 1120s: the Trial Table (trial-table.js). One dial for every gauge: the value arc in a single-hue ramp that
   gets lighter as it gets stronger (colour-blind safe, and never the only signal: the number and band word are text),
   an outer ring solid for what is known and hatched for what rests on unknowns, and grey when mostly unknown. */
.rec-row #tt-quick { min-height: 44px; }
.tt-box { border-top: 1px solid var(--rule); margin-top: 14px; padding-top: 10px; }
.tt-box h3 { margin: 4px 0 6px; font-size: 1.05rem; }
.tt-form { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: flex-end; }
.tt-form .owner-field { flex: 1 1 16rem; margin: 0; }
.tt-form .owner-field input { width: 100%; }
.tt-pick-head { margin: 10px 0 4px; }
.tt-pick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.tt-pick-list li { border: 1px dashed var(--lamp); border-radius: 10px; padding: 8px 12px; }
.tt-pick-text { margin: 0 0 6px; }
.tt-pick-meta { display: block; margin-top: 2px; }
.tt-saved-head { margin: 12px 0 4px; }
.tt-saved-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.tt-saved-open { background: none; border: 0; padding: 0; color: var(--lamp); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.tt-view { margin-top: 22px; }
.tt-head h2 { margin: 2px 0 4px; }
.tt-kicker { margin: 0; }
.tt-title { font-size: 1.35rem; }
.tt-meta { margin: 2px 0; }
.tt-meta a { color: var(--lamp); }
.tt-note { border-left: 3px solid var(--lamp); padding: 4px 10px; margin: 10px 0; }
.tt-problem { border-left: 3px solid var(--warn); padding: 4px 10px; margin: 10px 0; }
.tt-acts { margin: 12px 0; }
.tt-acts-said { margin-left: 4px; }
.tt-mini { padding: 4px 10px; font-size: 0.72rem; }
.tt-steps { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.tt-step { font-family: var(--f-mono); font-size: 0.8rem; color: var(--ink-2); }
.tt-step::before { content: "○ "; }
.tt-step-done { color: var(--ink); }
.tt-step-done::before { content: "✓ "; color: var(--ok); }
.tt-step-now { color: var(--lamp); font-weight: 700; }
.tt-step-now::before { content: "● "; animation: tt-pulse 1.2s ease-in-out infinite; }
@keyframes tt-pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .tt-step-now::before { animation: none; } }
.tt-profile h3 { margin-bottom: 4px; }
.tt-prof-list { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 6px; }
.tt-prof { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(8rem, 1.2fr) auto; gap: 2px 12px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.tt-prof-use { display: flex; gap: 8px; align-items: baseline; }
.tt-prof-item { font-weight: 600; }
.tt-prof-src { grid-column: 1 / 3; }
.tt-prof-acts { grid-row: 1 / 3; grid-column: 3; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tt-prof-edit { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.tt-prof-edit input { flex: 1 1 12rem; }
.tt-prof-off .tt-prof-item, .tt-prof-off .tt-prof-val { text-decoration: line-through; opacity: 0.6; }
.tt-prof-corrected { color: var(--lamp); }
.tt-prof-corrected::after { content: " (corrected)"; font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-2); }
.tt-opts { margin: 10px 0; }
.tt-headline { margin: 14px 0; }
.tt-g-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; align-items: start; }
.tt-g-row-big { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; gap: 18px; }
.tt-g { text-align: center; border-radius: 10px; padding: 6px 4px; }
.tt-g svg { width: 100%; max-width: 200px; height: auto; display: block; margin: 0 auto; }
.tt-g-big svg { max-width: 280px; }
.tt-g-open { cursor: pointer; }
.tt-g-open:hover, .tt-g[aria-expanded="true"] { background: rgba(243, 178, 107, 0.08); outline: 1px solid rgba(243, 178, 107, 0.35); }
.tt-g:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; }
.tt-g-track { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 18; }
.tt-g-val { fill: none; stroke-width: 18; }
/* 1120nn: red (weak) through yellow (moderate) to green (strong), the evidence page's gauge colours */
.tt-b-weak { stroke: #d0573f; } .tt-b-limited { stroke: #e08a3c; } .tt-b-moderate { stroke: #d9bf4a; } .tt-b-good { stroke: #8cc46a; } .tt-b-strong { stroke: #3fae74; }
.tt-g-known { fill: none; stroke: var(--ink-2); stroke-width: 5; }
.tt-g-unknown { fill: none; stroke-width: 5; }
.tt-g-hatch-bg { fill: transparent; }
.tt-g-hatch-line { stroke: var(--ink-2); stroke-width: 2.5; }
.tt-g-num { fill: var(--ink); font: 700 38px var(--f-display); }
.tt-g-big .tt-g-num { font-size: 44px; }
.tt-g-grey .tt-g-val { opacity: 0.72; }
.tt-g-grey .tt-g-num { fill: var(--ink-2); }
.tt-g-none .tt-g-num { fill: var(--ink-2); }
.tt-g-cap { display: flex; flex-direction: column; gap: 1px; margin-top: 2px; }
.tt-g-title { font-weight: 600; font-size: 0.92rem; }
.tt-g-big .tt-g-title { font-family: var(--f-display); font-size: 1.15rem; }
.tt-g-band { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.04em; }
.tt-g-cov { font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-2); }
.tt-sep { margin: 8px 0; }
.tt-state { font-weight: 600; margin: 8px 0; }
.tt-state-out { color: var(--warn); }
.tt-summary { max-width: 46rem; }
.tt-disclaimer { font-style: italic; color: var(--ink-2); }
.tt-sub h3, .tt-stage h3 { margin: 18px 0 8px; }
.tt-why-slot:not(:empty) { border: 1px dashed var(--lamp); border-radius: 10px; padding: 8px 12px; margin-top: 10px; }
.tt-why-slot h4 { margin: 2px 0 6px; }
.tt-hint { margin: 10px 0; }
.tt-track { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; counter-reset: none; }
.tt-track-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; font-size: 0.8rem; color: var(--ink-2); padding-top: 2px; }
.tt-track-step::before { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 3px; background: var(--rule); z-index: 0; }
.tt-track-step:first-child::before { display: none; }
.tt-track-past::before, .tt-track-now::before { background: var(--lamp); }
.tt-track-dot { position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--rule); background: var(--paper); display: grid; place-items: center; font-size: 0.8rem; }
.tt-track-past { color: var(--ink); }
.tt-track-past .tt-track-dot { border-color: var(--lamp); color: var(--lamp); }
.tt-track-now { color: var(--ink); font-weight: 700; }
.tt-track-now .tt-track-dot { border-color: var(--lamp); background: var(--lamp); color: #1b2133; }
.tt-off { color: var(--warn); font-weight: 600; margin: 8px 0 0; }
.tt-tbl-wrap { overflow-x: auto; margin: 6px 0; }
.tt-tbl-wrap:focus-visible { outline: 2px solid var(--lamp); }
.tt-tbl { border-collapse: collapse; width: 100%; font-size: 0.88rem; }
.tt-tbl th, .tt-tbl td { border-bottom: 1px solid var(--rule); padding: 6px 8px; text-align: left; vertical-align: top; }
.tt-tbl th { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.tt-tbl-sw { min-width: 760px; }
.tt-tbl-elig { min-width: 620px; }
.tt-tbl-kv thead { display: none; }
.tt-tbl-kv td:first-child { font-weight: 600; width: 14rem; }
.tt-tbl-small { font-size: 0.82rem; }
.tt-mono { font-family: var(--f-mono); white-space: nowrap; }
.tt-label { font-family: var(--f-mono); font-size: 0.72rem; border: 1px solid var(--rule); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.tt-l-corroborated { border-color: var(--ok); color: var(--ok); }
.tt-l-refuted { border-color: var(--warn); color: var(--warn); font-weight: 700; }
.tt-l-conditional { border-style: dashed; }
.tt-second { display: block; font-size: 0.8rem; margin-top: 2px; }
.tt-v { white-space: nowrap; font-weight: 600; }
.tt-v-mark { display: inline-grid; place-items: center; width: 1.4em; height: 1.4em; border-radius: 50%; border: 1.5px solid currentColor; font-size: 0.8rem; }
.tt-v-met { color: var(--ok); } .tt-v-not_met { color: var(--warn); } .tt-v-unknown { color: var(--ink-2); } .tt-v-clinician { color: var(--lamp); }
/* 1120dd: coloured by what it means for you */
.tt-v-in { color: var(--ok); } .tt-v-out { color: var(--warn); } .tt-v-look { color: var(--ink-2); font-weight: 400; font-size: 0.85em; }
.tt-found { margin: 0.4rem 0 0; } .tt-found-favoured_control { color: var(--warn); font-weight: 600; } .tt-old-rules { border-left: 3px solid var(--warn); padding-left: 0.6rem; }
.tt-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 8px 24px; }
.tt-impact { margin-left: 4px; }
.tt-impact-high { color: var(--warn); }
.tt-sources li { margin: 3px 0; }
.tt-sources a { color: var(--lamp); }
.oc-attached { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 4px 6px 4px 12px; border: 1px solid var(--lamp); border-radius: 999px; width: fit-content; max-width: 100%; }
.oc-attached-x { background: none; border: 0; color: var(--ink); font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 2px 6px; min-width: 32px; min-height: 32px; }
@media (max-width: 640px) {
  .tt-g-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tt-g-row-big { gap: 8px; }
  .tt-g-big .tt-g-title { font-size: 1rem; }
  .tt-track { grid-template-columns: 1fr; gap: 0; }
  .tt-track-step { flex-direction: row; text-align: left; gap: 10px; padding: 4px 0; }
  .tt-track-step::before { top: -50%; left: 12px; width: 3px; height: 100%; }
  .tt-prof { grid-template-columns: 1fr; }
  .tt-prof-src { grid-column: 1; }
  .tt-prof-acts { grid-row: auto; grid-column: 1; justify-content: flex-start; }
  .tt-tbl-kv td:first-child { width: auto; }
}
/* Printing a table for a clinic visit: only the table, in black and white, the gauges' numbers and band words as text,
   hatching for unknowns, and no buttons. */
@media print {
  body.tt-printing *:not(:has(.tt-print-me)):not(.tt-print-me):not(.tt-print-me *) { display: none !important; }
  body.tt-printing :has(.tt-print-me) { margin: 0 !important; padding: 0 !important; max-width: none !important; }
  html:has(body.tt-printing), body.tt-printing { background: #fff !important; }
  body.tt-printing { --ink: #000; --ink-2: #333; --paper: #fff; --rule: #999; --lamp: #000; --ok: #000; --warn: #000; color: #000; }
  body.tt-printing .tt-print-me { display: block !important; border: 0; box-shadow: none; background: #fff !important; backdrop-filter: none; padding: 0; margin: 0; }
  body.tt-printing .tt-acts, body.tt-printing .tt-hint, body.tt-printing .tt-why-slot:empty { display: none !important; }
  body.tt-printing .tt-g-track { stroke: #e4e4e4; }
  body.tt-printing .tt-g-hatch-line, body.tt-printing .tt-g-known { stroke: #000; }
  body.tt-printing .tt-tbl-wrap { overflow: visible; }
  body.tt-printing .tt-tbl-sw, body.tt-printing .tt-tbl-elig { min-width: 0; }
  body.tt-printing .tt-g-row { grid-template-columns: repeat(3, 1fr); }
  body.tt-printing .tt-g-row-big { grid-template-columns: repeat(2, 1fr); }
  body.tt-printing .tt-sub, body.tt-printing .tt-headline, body.tt-printing tr { break-inside: avoid; }
  body.tt-printing a { color: #000; text-decoration: none; }
}
.tt-view section > h3 { margin: 26px 0 8px; }
.tt-view .tt-headline + .tt-stage > h3 { margin-top: 18px; }
/* Build 1120t: the results area shows one result at a time, chosen by its tab (a drop-down on a phone). */
.ex-results-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ex-results-head h2 { margin: 0; }
.ex-tabbar { display: flex; align-items: flex-end; gap: 10px; margin: 10px 0 0; border-bottom: 1px solid rgba(243, 178, 107, 0.35); }
.ex-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; flex: 1 1 auto; min-width: 0; }
.ex-tab { flex: 0 0 auto; max-width: 15rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 7px 14px 8px; border: 1px solid var(--rule); border-bottom: 0; border-radius: 10px 10px 0 0; background: rgba(27, 33, 51, 0.6); color: var(--ink-2); font: inherit; cursor: pointer; text-align: left; }
.ex-tab:hover { color: var(--ink); border-color: var(--lamp); }
.ex-tab[aria-selected="true"] { background: rgba(27, 33, 51, 0.95); color: var(--ink); border-color: var(--lamp); box-shadow: inset 0 3px 0 var(--lamp); }
.ex-tab:focus-visible { outline: 2px solid var(--lamp); outline-offset: -2px; }
.ex-tab-kind { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.ex-tab-title { font-size: 0.9rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-tab-pick { display: none; margin: 0 0 8px; }
.ex-results-list > .ex-result { margin-top: 0; border-top-left-radius: 0; }
.ex-results-list > .ex-result:focus { outline: none; }
.ex-save { margin-top: 14px; }
@media (max-width: 640px) {
  .ex-tabs { display: none; }
  .ex-tabbar { border-bottom: 0; }
  .ex-tab-pick { display: block; flex: 1 1 auto; }
  .ex-tab-pick select { width: 100%; }
  .ex-results-list > .ex-result { border-top-left-radius: 12px; margin-top: 8px; }
}
@media print { .ex-tabbar { display: none !important; } }
/* Build 1120t: several Trial Tables at once, and comparing them. */
.tt-batch-q { margin: 6px 0; }
.tt-batch-one { display: flex; gap: 8px; align-items: flex-start; padding: 6px 8px; border: 1px dashed var(--rule); border-radius: 8px; margin: 4px 0; cursor: pointer; }
.tt-batch-one input { margin-top: 5px; }
.tt-batch-one .tt-pick-text { margin: 0; }
.tt-batch-choose, .tt-cmp-pick { border: 1px solid var(--rule); border-radius: 10px; padding: 6px 10px 8px; margin: 6px 0; }
.tt-batch-choose legend, .tt-cmp-pick legend { font-size: 0.9rem; padding: 0 4px; }
.tt-batch-status { font-family: var(--f-mono); font-size: 0.78rem; }
.tt-batch-rows td { vertical-align: middle; }
.tt-cmp-check { display: inline-flex; margin-right: 8px; }
.tt-cmp-row { margin: 10px 0 0; }
.tt-cmp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin: 14px 0; }
.tt-cmp-card { border: 1px solid var(--rule); border-radius: 12px; padding: 10px 12px; }
.tt-cmp-name { font-family: var(--f-display); font-size: 1.15rem; color: var(--lamp); }
.tt-cmp-card .label { margin: 2px 0 6px; }
.tt-cmp-g { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.tt-cmp-state { font-weight: 600; font-size: 0.88rem; margin: 6px 0; }
.tt-cmp-tbl { min-width: 560px; }
.tt-cmp-tbl tbody th { font-weight: 600; font-family: inherit; font-size: 0.86rem; text-transform: none; letter-spacing: 0; color: var(--ink); position: sticky; left: 0; background: rgb(27, 33, 51); min-width: 10rem; }
.tt-cmp-tbl thead th:first-child { position: sticky; left: 0; background: rgb(27, 33, 51); }
.tt-cmp-bar { display: block; width: 100%; max-width: 9rem; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); margin: 3px 0 4px; overflow: hidden; }
.tt-cmp-fill { display: block; height: 100%; }
.tt-bf-weak { background: #d0573f; } .tt-bf-limited { background: #e08a3c; } .tt-bf-moderate { background: #d9bf4a; } .tt-bf-good { background: #8cc46a; } .tt-bf-strong { background: #3fae74; }
.tt-cmp-grey .tt-cmp-fill { opacity: 0.72; }
@media print {
  body.tt-printing .tt-cmp-tbl tbody th, body.tt-printing .tt-cmp-tbl thead th:first-child { background: #fff; position: static; }
  body.tt-printing .tt-cmp-tbl { min-width: 0; }
  body.tt-printing .tt-cmp-bar { background: #eee; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.tt-printing .tt-cmp-name { color: #000; }
}
.ex-results, .ex-results-list, .ex-results-list > .ex-result { min-width: 0; max-width: 100%; }
.tt-tbl-wrap { max-width: 100%; }
.tt-cmp-tbl tr.tt-cmp-group th { position: static; background: transparent; font-family: var(--f-display); font-size: 1rem; color: var(--lamp); padding-top: 16px; border-bottom: 1px solid rgba(243, 178, 107, 0.35); }
@media print { body.tt-printing .tt-cmp-tbl tr.tt-cmp-group th { color: #000; } }
/* Build 1120u: the profile's items in a drop-down, closed at first. */
.tt-prof-det { margin: 8px 0 4px; }
.tt-prof-sum { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; border: 1.5px solid var(--rule); border-radius: 999px; padding: 8px 16px; min-height: 44px; box-sizing: border-box; }
.tt-prof-sum::-webkit-details-marker { display: none; }
.tt-prof-sum::before { content: ""; width: 0; height: 0; border-left: 6px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; transition: transform 0.15s; }
.tt-prof-det[open] > .tt-prof-sum::before { transform: rotate(90deg); }
.tt-prof-sum:hover { border-color: var(--lamp); color: var(--lamp); }
.tt-prof-sum:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .tt-prof-sum::before { transition: none; } }
/* Build 1120u: the Trial Table as its own part of an evidence table's page. */
.ev-tt { margin: 18px 0; }
.ev-tt .tt-box { border-top: 0; margin-top: 0; padding-top: 0; }
.ev-tt .tt-box h3 { font-size: 1.25rem; }
.tt-ev-records { margin: 8px 0 4px; }
.tt-ev-docs { margin: 4px 0 8px; }
.tt-ev-docs[open] > div { margin-top: 8px; }
.tt-ev-docs > summary::before { content: ""; width: 0; height: 0; border-left: 6px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.tt-ev-docs[open] > summary::before { transform: rotate(90deg); }
.rec-row a#tt-quick { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; box-sizing: border-box; }
.table-nav .tt-jump { text-decoration: none; margin-left: auto; }
/* Build 1120v: delete and cancel where things are listed. */
.tt-saved-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.tt-saved-del { padding: 3px 10px; }
.ex-run-acts-top { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ex-run-del { padding: 4px 10px; font-size: 0.72rem; }
.ex-edit { margin: 8px 0; }
.ex-edit > summary { cursor: pointer; font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.ex-edit-items { width: 100%; box-sizing: border-box; font-family: var(--f-mono); font-size: 0.85rem; margin-top: 8px; background: rgba(0, 0, 0, 0.2); color: var(--ink); border: 1px solid var(--rule); border-radius: 8px; padding: 8px; }
.ev-report-acts { justify-content: flex-end; margin: 0 0 8px; }
.ev-progress-acts { margin-top: 8px; }
/* Build 1120y: Study Hall's documents as a folder tree: folders closed at first with their counts and a tick box,
   one-line rows (the date and size in small type under the name), Export and Delete behind "⋯", and a search box. */
.oc-docs-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 6px 0 4px; }
.oc-docs-total { margin: 0; text-transform: none; letter-spacing: 0.01em; }
.oc-docs-find { flex: 1 1 12rem; min-width: 0; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--rule); background: rgba(0, 0, 0, 0.2); color: var(--ink); font: inherit; font-size: 0.92rem; }
.oc-tree { margin-top: 4px; }
.oc-tree .oc-folder-top { border-top: 1px solid var(--rule); margin: 0; padding: 0; }
.oc-tree .oc-folder-top:last-child { border-bottom: 1px solid var(--rule); }
.oc-tree .oc-folder > summary { display: flex; align-items: center; gap: 8px; padding: 9px 2px; list-style: none; min-height: 40px; box-sizing: border-box; }
.oc-tree .oc-folder > summary::-webkit-details-marker { display: none; }
.oc-tree .oc-folder > summary::before { content: ""; flex: 0 0 auto; width: 0; height: 0; border-left: 6px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; transition: transform 0.15s; opacity: 0.8; }
.oc-tree .oc-folder[open] > summary::before { transform: rotate(90deg); }
.oc-tree .oc-folder > summary:hover .oc-folder-name { color: var(--lamp); }
.oc-tree .oc-folder > summary:focus-visible { outline: 2px solid var(--lamp); outline-offset: -2px; border-radius: 6px; }
.oc-folder-tick { flex: 0 0 auto; margin: 0; }
.oc-tree .oc-folder-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.oc-tree .oc-folder-count { margin-left: auto; text-align: right; font-size: 0.72rem; flex: 0 1 auto; min-width: 0; max-width: 60%; overflow-wrap: anywhere; } /* 1122u: wraps on a phone, beside the name */
.oc-tree .oc-folder .oc-folder { margin-left: 18px; border-top: 1px dashed var(--rule); }
.oc-tree .oc-folder-acts { margin: 0 0 6px 18px; }
.oc-tree .oc-folder-acts .oc-doc-act { margin-left: 0; font-size: 0.75rem; }
.oc-tree .oc-folder-rows { margin: 0 0 8px 18px; max-height: 22rem; overflow-y: auto; }
.oc-tree .oc-doc { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 6px; align-items: start; padding: 5px 0; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.oc-tree .oc-doc:first-child { border-top: 0; }
.oc-doc-main { display: flex; align-items: baseline; gap: 8px; min-width: 0; cursor: pointer; }
.oc-doc-main input { flex: 0 0 auto; transform: translateY(2px); }
.oc-doc-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.95rem; }
.oc-doc-badge { flex: 0 0 auto; font: 0.62rem/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: #1b2133; background: var(--lamp); border-radius: 999px; padding: 3px 6px; }
.oc-tree .oc-doc-meta { grid-column: 1; display: block; margin: 1px 0 0 1.75em; font: 0.7rem/1.3 var(--f-mono); letter-spacing: 0.02em; color: var(--ink-2); }
.oc-tree .oc-doc-meta .oc-doc-when { display: inline; margin: 0; font: inherit; }
.oc-doc-more { grid-column: 2; grid-row: 1 / span 2; align-self: center; border: 1px solid transparent; background: none; color: var(--ink-2); font-size: 1.1rem; line-height: 1; border-radius: 8px; min-width: 36px; min-height: 32px; cursor: pointer; }
.oc-doc-more:hover, .oc-doc-more[aria-expanded="true"] { border-color: var(--rule); color: var(--lamp); }
.oc-doc-acts { grid-column: 1 / -1; margin: 4px 0 0 1.75em; }
.oc-doc-acts .oc-doc-act:first-child { margin-left: 0; }
@media (prefers-reduced-motion: reduce) { .oc-tree .oc-folder > summary::before { transition: none; } }
.oc-doc-title { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere; }
/* Build 1120z: picking trials from a table the chat showed, to compare. */
.ex-pick-col { width: 2.2rem; text-align: center; }
.ex-pick-col input { transform: scale(1.15); }
.ex-compare-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 10px 0 4px; }
.ex-compare-note { flex: 1 1 100%; margin: 0; }
.tt-v-not_applicable { color: var(--ink-2); font-weight: 400; }
.ev-info-box .ev-info-says { border-top: 1px dashed rgba(229, 176, 87, 0.45); padding-top: 6px; margin-top: 6px; }

/* 1120ff: a match while eligibility isn't settled */

/* Build 1120hh/1120ii: the Paper Stand, in the side column just above Settings (Documents is under Trial Appraisals).
   On a wide screen the side column is as tall as the main one and the Paper Stand takes what's left, its stories
   scrolling inside it, so Settings ends level with Documents. On a phone the columns stack, and it comes just above
   Settings, at its own height. */
@media (min-width: 861px) {
  .wf-grid:has(.ps-card:not([hidden])) { align-items: stretch; }
  .wf-grid:has(.ps-card:not([hidden])) > .wf-side { display: flex; flex-direction: column; gap: 18px; }
  .wf-side > .ps-card:not([hidden]) { flex: 1 1 auto; height: 0; min-height: 560px; display: flex; flex-direction: column; overflow: hidden; }
  .wf-side > .ps-card > * { flex: none; }
  .wf-side > .ps-card > .ps-list { flex: 1 1 0; min-height: 120px; overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; scrollbar-width: thin; }
  .wf-side > .ps-card .ps-setup-box[open] #ps-setup { max-height: 45vh; overflow-y: auto; padding-right: 6px; }
}
.ps-card[hidden] { display: none; }
.ps-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ps-head h2 { margin-bottom: 4px; }
.ps-focus { margin-top: 0; color: var(--lamp, var(--ink-2)); }
.ps-views { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.ps-view { min-height: 36px; }
.ps-view[aria-pressed="true"] { border-color: var(--lamp, var(--ink)); color: var(--lamp, var(--ink)); }
.ps-list { display: grid; gap: 0; margin-top: 6px; }
.ps-item { padding: 12px 0; border-top: 1px solid var(--rule); min-width: 0; }
.ps-item:first-child { border-top: 0; }
.ps-hit { border-left: 3px solid var(--lamp, var(--rule)); padding-left: 12px; margin-left: -2px; }
.ps-meta { margin: 0 0 4px; font-size: 0.74rem; }
.ps-outlet { color: var(--ink); }
.ps-title { margin: 0; font-size: 1.02rem; line-height: 1.35; font-weight: 600; overflow-wrap: anywhere; }
.ps-title a { color: var(--ink); text-decoration: none; }
.ps-title a:hover, .ps-title a:focus-visible { text-decoration: underline; text-underline-offset: 3px; color: var(--lamp, var(--ink)); }
.ps-sum { margin: 6px 0 0; color: var(--ink-2); font-size: 0.92rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ps-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 0; }
.ps-why { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--lamp, var(--ink-2)); }
.ps-mini { padding: 4px 10px; font-size: 0.72rem; min-height: 32px; }
.ps-more { margin-top: 10px; justify-self: start; }
.ps-setup-box { margin-top: 12px; border-top: 1px solid var(--rule); padding-top: 10px; }
.ps-setup-box > summary { cursor: pointer; font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); min-height: 32px; display: flex; align-items: center; }
.ps-group { margin: 10px 0; }
.ps-group .label { margin: 0 0 4px; }
.ps-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.ps-chip { display: inline-flex; align-items: center; gap: 4px; padding-right: 4px; }
.ps-x { border: 0; background: none; color: var(--ink-2); font-size: 1rem; line-height: 1; min-width: 28px; min-height: 28px; cursor: pointer; border-radius: 50%; }
.ps-x:hover, .ps-x:focus-visible { color: var(--warn, var(--ink)); }
.ps-add { display: flex; gap: 6px; flex-wrap: wrap; }
.ps-add input { flex: 1 1 12rem; min-width: 0; max-width: 22rem; font: inherit; padding: 6px 10px; border: 1px solid var(--rule); border-radius: 8px; background: transparent; color: var(--ink); }
.ps-search { margin-top: 12px; }
.ps-feeds { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 2px; }
.ps-feeds a { color: var(--ink); }
.ps-warn { color: var(--warn, var(--ink)); }
.ps-when { margin: 10px 0 0; }

/* Build 1120ii: Match to You's "What to include in the match". */
.tt-choose { margin: 0 0 16px; }
.tt-choose-docs > summary { cursor: pointer; font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); min-height: 32px; display: flex; align-items: center; }
.tt-choose-list { list-style: none; padding: 0; margin: 6px 0; max-height: 18rem; overflow-y: auto; display: grid; gap: 2px; }
.tt-share-menu { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* Build 1120mm: the evidence table page as two views (Trial Appraisals, Examination Table), and the examination
   table's parts as tabs. */
.ev-views { display: flex; gap: 6px; margin: 18px 0 16px; border-bottom: 1px solid rgba(243, 178, 107, 0.35); }
.ev-view { flex: 0 1 auto; padding: 10px 20px 11px; border: 1px solid var(--rule); border-bottom: 0; border-radius: 12px 12px 0 0; background: rgba(27, 33, 51, 0.55); color: var(--ink-2); font-family: var(--f-display, inherit); font-size: 1.15rem; cursor: pointer; min-height: 44px; }
.ev-view:hover { color: var(--ink); border-color: var(--lamp); }
.ev-view[aria-selected="true"] { background: rgba(27, 33, 51, 0.95); color: var(--ink); border-color: var(--lamp); box-shadow: inset 0 3px 0 var(--lamp); }
.ev-view:focus-visible { outline: 2px solid var(--lamp); outline-offset: -2px; }
.ev-pane[hidden], .ev-entry[hidden], .ev-pane-note[hidden] { display: none !important; }
.ev-pane > .wf-card:first-child, .ev-pane > section:first-child { margin-top: 0; }
.ev-entrybar { margin-top: 18px; }
.ev-entries > .ev-entry { margin-top: 0; border-top-left-radius: 0; }
.ev-entries > .block.ev-entry { border: 1px solid var(--rule); border-radius: 0 12px 12px 12px; padding: 14px 16px; background: rgba(27, 33, 51, 0.82); }
@media (max-width: 640px) {
  .ev-view { flex: 1 1 0; padding: 10px 8px; font-size: 1rem; }
  .ev-entries > .ev-entry, .ev-entries > .block.ev-entry { border-top-left-radius: 12px; margin-top: 8px; }
}

/* 1120nn: a Trial Appraisal step under way, at the top of its appraisal's tab (after a reload, say) */
.tt-bg-strip { border: 1px solid rgba(243, 178, 107, 0.45); border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; background: rgba(243, 178, 107, 0.06); }
.tt-bg-strip .tt-bg-head { font-weight: 600; margin: 0 0 4px; }
.tt-bg-strip .tt-progress { margin: 4px 0 0; }
/* 1120nn: Match to You in one panel: checking the items first is a choice, off unless ticked */
.tt-choose-review { display: block; margin: 10px 0 0; font-size: 0.9rem; color: var(--ink-2); }
/* 1120qq: what's working on the site, each with a button to its tab */
.tt-bg .tt-bg-head { font-weight: 600; margin: 0 0 4px; }
.tt-bg-list { list-style: none; padding: 0; margin: 0 0 4px; display: grid; gap: 4px; }
.tt-bg-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tt-bg .dash-small { margin: 4px 0 0; }
/* Build 1120rr: the Results' side navigation (results-nav.js): on the right on a wide screen, a menu above the tabs on
   a phone. Comparisons open to their studies; folders by theme. */
.ex-results-body { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 18px; align-items: start; }
.ex-results-main { min-width: 0; }
.ex-nav { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; overflow-x: hidden; min-width: 0; border: 1px solid var(--rule); border-radius: 12px; padding: 10px 12px; background: rgba(27, 33, 51, 0.6); }
.ex-nav-box > summary { cursor: pointer; font-family: var(--f-display); font-size: 1.05rem; list-style: none; }
.ex-nav-box > summary::-webkit-details-marker { display: none; }
.ex-nav-help { margin: 4px 0 8px; }
.ex-nav-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 6px; }
.ex-nav-list, .ex-nav-kids { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ex-nav-kids { margin: 2px 0 4px 22px; border-left: 1px solid var(--rule); padding-left: 6px; }
.ex-nav-row { display: flex; align-items: flex-start; gap: 2px; }
.ex-nav-twist { background: none; border: 0; color: var(--ink-2); cursor: pointer; padding: 6px 4px; font-size: 0.85rem; line-height: 1; }
.ex-nav-twist:hover, .ex-nav-twist:focus-visible { color: var(--ink); }
.ex-nav-open { flex: 1 1 auto; min-width: 0; width: 100%; overflow: hidden; align-items: stretch; text-align: left; background: none; border: 1px solid transparent; border-radius: 8px; color: var(--ink); cursor: pointer; padding: 5px 7px; display: flex; flex-direction: column; gap: 1px; font: inherit; }
.ex-nav-open:hover { border-color: var(--rule); }
.ex-nav-open:focus-visible { outline: 2px solid var(--lamp); outline-offset: 0; }
.ex-nav-on > .ex-nav-row > .ex-nav-open, .ex-nav-on > .ex-nav-open { border-color: rgba(243, 178, 107, 0.45); background: rgba(243, 178, 107, 0.07); }
.ex-nav-open[aria-current="true"] { border-color: var(--lamp); }
.ex-nav-kind { font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.ex-nav-title { display: block; font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; min-width: 0; }
.ex-nav-item, .ex-nav-row, .ex-nav-kids li { min-width: 0; }
.ex-nav-sub { font-family: var(--f-mono); font-size: 0.66rem; color: var(--ink-2); }
.ex-nav-move { flex: 0 0 auto; max-width: 4.2rem; font-size: 0.7rem; padding: 2px; margin-top: 4px; background: transparent; color: var(--ink-2); border: 1px solid var(--rule); border-radius: 6px; }
.ex-nav-folder { margin: 6px 0; }
.ex-nav-folder > summary { cursor: pointer; font-weight: 600; font-size: 0.9rem; padding: 3px 0; }
.ex-nav-factions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 2px 0 4px; }
.ex-nav-group { font-weight: 600; font-size: 0.9rem; margin: 10px 0 2px; }
.ex-nav-new { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.ex-nav-new input { flex: 1 1 8rem; min-width: 0; }
@media (max-width: 760px) {
  .ex-results-body { grid-template-columns: minmax(0, 1fr); }
  .ex-nav { order: -1; position: static; max-height: none; }
  .ex-nav-box:not([open]) .ex-nav-help { display: none; }
}
@media print { .ex-nav { display: none !important; } .ex-results-body { display: block; } }
/* 1120ss: when each entry in Browse results was made */
.ex-nav-date { text-transform: none; letter-spacing: 0; }
/* 1120yy: Browse results' search (boolean), with New folder beside it */
.ex-nav-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0 8px; }
.ex-nav-search { flex: 1 1 0; min-width: 5rem; margin: 0; }
.ex-nav-bar { flex-wrap: nowrap; } .ex-nav-bar:has(.ex-nav-new), .ex-nav-bar:has(.ex-nav-said:not(:empty)) { flex-wrap: wrap; }
.ex-nav-search input { width: 100%; min-width: 0; font: inherit; font-size: 0.88rem; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--rule); background: rgba(0, 0, 0, 0.18); color: var(--ink); }
.ex-nav-search input:focus-visible { outline: 2px solid var(--lamp); outline-offset: 1px; }
.ex-nav-newf { flex: 0 0 auto; }
.ex-nav-bar .ex-nav-said:empty { display: none; }
.ex-nav-bar .ex-nav-said, .ex-nav-bar .ex-nav-new { flex: 1 1 100%; }
.ex-nav-hits { margin: 0 0 6px; }
/* 1120zz: the gauges, small (Browse results, the Saved list): an arc in the gauge's colour with its number; for a
   comparison, an arc over the range its studies span */
.mini-dials { display: inline-flex; gap: 4px; flex: 0 0 auto; align-items: flex-end; vertical-align: middle; }
.mini-dial { display: inline-flex; flex-direction: column; align-items: center; width: 34px; line-height: 1; }
.mini-dial svg { width: 34px; height: 20px; display: block; overflow: visible; }
.mini-track { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 5; }
.mini-val { fill: none; stroke-width: 5; }
.mini-dial-grey .mini-val { opacity: 0.72; }
.mini-num { fill: var(--ink); font: 700 11px var(--f-mono); }
.mini-num-range { font-size: 8.5px; }
.mini-cap { font-family: var(--f-mono); font-size: 0.5rem; letter-spacing: 0.03em; color: var(--ink-2); text-transform: uppercase; margin-top: 1px; }
.ex-nav-tline { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; min-width: 0; }
/* 1121b: an entry in three lines: name and when; its reference; the gauges, larger, with small words */
.ex-nav-head { display: block; min-width: 0; line-height: 1.3; }
.ex-nav-head .ex-nav-title { display: inline; white-space: normal; overflow-wrap: anywhere; margin-right: 8px; }
.ex-nav-head .ex-nav-date { display: inline-block; font-family: var(--f-mono); font-size: 0.6rem; color: var(--ink-2); white-space: nowrap; }
.ex-nav-ref { display: block; font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.04em; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.ex-nav-dials { display: block; margin-top: 6px; }
.ex-nav-dials .mini-dials { gap: 14px; }
.ex-nav-dials .mini-dial { width: 54px; }
.ex-nav-dials .mini-dial svg { width: 54px; height: 32px; }
.ex-nav-dials .mini-cap { font-size: 0.4rem; letter-spacing: 0.02em; margin-top: 2px; white-space: nowrap; }
/* the File… / Move… menu sits at the right of the gauges' line, so the name and its date have the whole width */
.ex-nav-row:has(> .ex-nav-open .ex-nav-dials) { position: relative; }
.ex-nav-row:has(> .ex-nav-open .ex-nav-dials) > .ex-nav-move { position: absolute; right: 4px; bottom: 10px; margin: 0; }
.ex-nav-tline .ex-nav-title { flex: 1 1 auto; min-width: 0; }
.tt-saved-list .mini-dials { margin: 0 6px; }
.tt-batch-rows .mini-dials { margin-right: 4px; } .mini-words { font-size: 0.85rem; }
/* 1121a: the evidence page's own header for the examination, inside its view; (i)s on the Trial Appraisals side */
.ev-ex-head { margin: 4px 0 18px; }
.ev-ex-head h2 { margin: 2px 0 6px; font-size: clamp(1.4rem, 3vw, 2rem); }
.ev-ex-q { max-width: 62ch; color: var(--ink-2); margin: 0; }
.tt-sep .ev-info { text-transform: none; }

/* 1121c: In brief, in plain words */
.ev-plain-h { font-size: 1rem; margin: 14px 0 4px; }
.ev-plain p, .ev-plain li { max-width: 68ch; line-height: 1.55; }
.ev-plain-list { margin: 4px 0 8px; padding-left: 1.2em; }
.ev-plain-list li { margin: 4px 0; }
.ev-brief .table-brief { color: var(--ink-2); }

/* 1121d: thumbs up (Further Review) and down (not notable) at the top right of an appraisal and each of its parts */
.tt-fb-host { position: relative; }
.tt-fb { position: absolute; top: 0; right: 0; display: flex; align-items: center; gap: 4px; z-index: 1; }
.tt-head > .tt-fb { top: 2px; }
.tt-fb-host > h2, .tt-fb-host > h3, .tt-head.tt-fb-host > .tt-kicker { padding-right: 84px; }
.tt-fb-b { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 1px solid var(--rule); background: transparent; color: var(--ink-2); cursor: pointer; }
.tt-fb-b svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.tt-fb-b:hover { color: var(--ink); border-color: var(--ink-2); }
.tt-fb-b:focus-visible { outline: 2px solid var(--lamp); outline-offset: 1px; }
.tt-fb-up[aria-pressed="true"] { color: #10261a; background: #7cc79a; border-color: #7cc79a; }
.tt-fb-down[aria-pressed="true"] { color: #2a1410; background: #e08a6c; border-color: #e08a6c; }
.tt-fb-b[aria-pressed="true"] svg { fill: currentColor; }
.tt-fb-said { font-size: 0.6rem; white-space: nowrap; margin-right: 2px; }
.tt-fb-said:empty { display: none; }
.tt-fb-host.tt-fb-down > :not(.tt-fb) { opacity: 0.45; transition: opacity 0.15s; }
.tt-fb-host.tt-fb-down:hover > :not(.tt-fb), .tt-fb-host.tt-fb-down:focus-within > :not(.tt-fb) { opacity: 1; }
.tt-fb-host.tt-fb-up { box-shadow: inset 3px 0 0 #7cc79a; }
.tt-fb-host.tt-fb-up:not(.tt-head) { padding-left: 10px; }
.tt-fb-flash { animation: tt-fb-flash 1.6s ease-out; }
@keyframes tt-fb-flash { 0% { background: rgba(229, 176, 87, 0.22); } 100% { background: transparent; } }
.ex-nav-down > .ex-nav-row > .ex-nav-open { opacity: 0.5; }
.ex-nav-review > summary .ex-nav-fname::before { content: '👍 '; }
.ex-nav-unmark { flex: 0 0 auto; margin-top: 4px; min-width: 1.6rem; }
@media print { .tt-fb { display: none !important; } .tt-fb-host.tt-fb-down > * { opacity: 1 !important; } }
/* 1121e: a trial's card (a comparison) or row (several at once) opens its appraisal anywhere but its links and controls */
.tt-card-go { cursor: pointer; }
.tt-cmp-card.tt-card-go { transition: border-color 0.15s, background 0.15s; }
.tt-cmp-card.tt-card-go:hover { border-color: var(--lamp); background: rgba(229, 176, 87, 0.05); }
tr.tt-card-go:hover > td { background: rgba(229, 176, 87, 0.05); }

/* ---- Build 1122a/1122c: a Long Table page for someone here for the first time.
   One element carries the page: the progress strip under the buttons (how many ledger entries are settled, and how
   much posted work is checked), as large figures over the ledger's own bar. Under it, one quiet sheet in four parts
   divided by hairlines: the problem and how to help, then where it stands and the results so far. The details follow
   as tabs. */
.lt-progress { margin-top: 28px; padding: 20px 0 18px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.lt-bars { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px 48px; align-items: start; }
.lt-bars > .quiet { margin: 0; }
.lt-meter { display: grid; gap: 8px; min-width: 0; }
.lt-meter-fig { margin: 0; color: var(--ink-2); font-size: 0.98rem; line-height: 1.2; }
.lt-big { font-family: var(--f-display); font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; margin-right: 4px; letter-spacing: -0.01em; }
.lt-bar { height: 10px; border-radius: 2px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule); }
.lt-bar-empty { background: repeating-linear-gradient(135deg, var(--rule) 0 3px, transparent 3px 6px); }
.lt-seg-checked { background: var(--ok); }
.lt-meter-note { margin: 0; font-size: 0.86rem; color: var(--ink-2); }
.lt-bar-legend { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.lt-key { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 0.86rem; color: var(--ink-2); background: none; border: 0; padding: 2px 0; cursor: pointer; }
.lt-key:hover { color: var(--ink); }
.lt-key:hover .lt-key-text, .lt-key:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.lt-key:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; border-radius: 2px; }
.lt-key-n { color: var(--ink); font-variant-numeric: tabular-nums; }
.lt-bars .swatch, .lt-glance .swatch { width: 9px; height: 9px; border-radius: 2px; display: inline-block; flex: 0 0 auto; }

.lt-glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 22px; border: 1px solid var(--rule); border-radius: 6px; background: color-mix(in srgb, var(--paper-2) 55%, var(--paper)); }
.lt-card { min-width: 0; padding: 22px 26px 20px; display: flex; flex-direction: column; gap: 12px; }
.lt-card:nth-child(odd) { border-right: 1px solid var(--rule); }
.lt-card:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
.lt-card > * { margin: 0; }
.lt-card-h { font-size: 1.08rem; line-height: 1.25; }
.lt-card p, .lt-card li { line-height: 1.55; }
.lt-small { font-size: 0.86rem; color: var(--ink-2); }
.lt-sub { margin-top: 4px; font-size: 0.86rem; color: var(--ink-2); }
.lt-more { margin-top: auto; padding-top: 2px; font-size: 0.92rem; }
.table-brief.lt-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; }
.table-brief.lt-clamp.lt-open { display: block; -webkit-line-clamp: unset; line-clamp: none; }
.lt-readall { align-self: flex-start; font: inherit; font-size: 0.9rem; color: var(--lamp); background: none; border: 0; padding: 0; margin-top: -6px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.lt-stats { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 18px; font-size: 0.88rem; color: var(--ink-2); }
.lt-stats:empty { display: none; }
.lt-stats strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.lt-list { padding-left: 1.1em; display: grid; gap: 8px; }
.lt-results-list { list-style: none; padding-left: 0; gap: 12px; }
.lt-results-list li { display: grid; gap: 2px; }
.lt-st { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--ink-2); }
.lt-claim { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.lt-steps { padding-left: 1.3em; display: grid; gap: 6px; }
.lt-helpnow { padding-left: 12px; border-left: 2px solid var(--lamp); }
.lt-helpnow:empty { display: none; }
.lt-helpnow .linkish { font: inherit; color: var(--lamp); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.lt-tabbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 40px; padding: 10px 0; border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 2; background: var(--paper); }
.lt-tabs { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.lt-search { display: flex; flex: 0 1 340px; min-width: 220px; }
.lt-search input { flex: 1 1 auto; min-width: 0; font: inherit; font-size: 0.92rem; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-right: 0; border-radius: 999px 0 0 999px; padding: 6px 14px; }
.lt-search input::placeholder { color: var(--ink-2); opacity: 0.8; }
.lt-search input:focus-visible { outline: 2px solid var(--lamp); outline-offset: 1px; }
.lt-search button { font: inherit; font-size: 0.92rem; color: var(--paper); background: var(--ink); border: 1px solid var(--ink); border-radius: 0 999px 999px 0; padding: 6px 14px; cursor: pointer; }
.lt-search button:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; }
.lt-search-note { display: grid; gap: 8px; margin: 4px 0 14px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 6px; }
.lt-search-note > * { margin: 0; }
.lt-search-head { font-weight: 600; }
.lt-search-head .linkish { font: inherit; font-weight: 400; color: var(--lamp); background: none; border: 0; padding: 0; margin-left: 8px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.lt-search-sub { font-size: 0.86rem; color: var(--ink-2); }
.lt-search-note .lt-list { list-style: none; padding-left: 0; }
.lt-search-note .lt-list li { display: grid; gap: 2px; }
.lt-tab { font: inherit; font-size: 0.92rem; border: 1px solid var(--rule); background: transparent; color: var(--ink-2); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.lt-tab:hover { color: var(--ink); border-color: var(--ink-2); }
.lt-tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.lt-tab:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; }
.lt-panels > section.block { margin-top: 24px; }
.lt-tabbar + .lt-panels > section.block { margin-top: 18px; }
.lt-panels .ledger-block, .lt-panels .progress-block { max-width: none; }
.lt-about .problem-detail { margin-top: 14px; max-width: none; }
.lt-about .pubworks-block { margin-top: 28px; }
.lt-about .pubworks-block h3 { margin-bottom: 8px; }
@media (max-width: 820px) {
  .lt-bars { grid-template-columns: minmax(0, 1fr); }
  .lt-glance { grid-template-columns: minmax(0, 1fr); }
  .lt-card:nth-child(odd) { border-right: 0; }
  .lt-card:not(:last-child) { border-bottom: 1px solid var(--rule); }
  .lt-card.lt-card-pub { border-top: 0; }
}
@media (max-width: 560px) {
  .lt-card { padding: 18px 16px 16px; }
  .lt-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; margin-inline: -4px; padding-inline: 4px; max-width: 100%; }
  .lt-search { flex: 1 1 100%; }
  .lt-tab { flex: 0 0 auto; }
}
@media print { .lt-tabbar { display: none; } .lt-panel[hidden] { display: block !important; } .table-brief.lt-clamp { display: block; -webkit-line-clamp: unset; } .lt-readall { display: none; } }
.lt-results-list + #lt-results .lt-results-list { margin-top: 12px; }
/* Build 1122nn: "Published from this table" is its own card under the four, across both columns: each work with its
   own title (held to two lines, the whole title on hover), kind, date and PDF, two works to a row where there's room. */
.lt-card.lt-card-pub { grid-column: 1 / -1; border-right: 0; border-top: 1px solid var(--rule); }
.lt-pub-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 14px 40px; }
.lt-pub-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font-size: 0.95rem; line-height: 1.35; }
.lt-pub-meta { display: block; margin-top: 2px; font-size: 0.8rem; color: var(--ink-2); }
.lt-pub-meta .pub-pdf { font-weight: 600; }
.lt-helpnow { display: grid; gap: 4px; }
.lt-helpnow > * { margin: 0; }
.lt-helpnow ul { list-style: none; padding: 0; display: grid; gap: 2px; }
/* while searching, the table's summary, who is working and the counts step aside for the results */
.lt-searching .table-summary, .lt-searching .table-claims, .lt-searching .table-counts, .lt-searching .table-queue { display: none; }
/* a jump to anything under the sticky tab bar stops below it */
.lt-panels [id], .lt-search-note { scroll-margin-top: 76px; }
/* ---- Build 1122d: the About tab opens with the problem in plain words, set a little larger and to a reading measure,
   with why it matters under it and the key terms beside it as a glossary; then the rest in a two-column sheet. The
   Progress tab is a list of label and value rows, and each number keeps the words and the bracket next to it. */
.lt-about-top { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 68ch) minmax(0, 1fr); gap: 24px 56px; align-items: start; }
.lt-about-lead h3 { font-size: 1.25rem; margin-bottom: 10px; }
.lt-about-lead .lt-about-why { font-size: 1.12rem; margin: 22px 0 8px; }
.lt-about-terms { padding-left: 24px; border-left: 1px solid var(--rule); }
@media (max-width: 980px) { .lt-about-top { grid-template-columns: minmax(0, 1fr); } .lt-about-terms { padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--rule); } }
.lt-about-lead p { font-size: 1.08rem; line-height: 1.6; margin: 0 0 12px; text-wrap: pretty; }
.lt-about-lead p:last-child { margin-bottom: 0; }
.lt-about .lt-about-grid { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--rule); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 26px 48px; max-width: none; }
.lt-about-sec h3 { font-size: 1.12rem; margin-bottom: 8px; }
.lt-about-sec p { margin: 0 0 8px; max-width: var(--measure); text-wrap: pretty; }
.lt-about-sec p:last-child { margin-bottom: 0; }
.lt-about-sec ul { max-width: var(--measure); }
.lt-terms { margin: 0; display: grid; gap: 10px; max-width: var(--measure); }
.lt-terms div { display: grid; gap: 1px; }
.lt-terms dt { font-weight: 600; }
.lt-terms dd { margin: 0; color: var(--ink-2); }
.pgrp { white-space: nowrap; }
.lt-panels .progress-line { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 2px 20px; margin: 0; padding: 10px 0; border-top: 1px solid var(--rule); max-width: 900px; }
.lt-panels .progress-line:first-child { border-top: 0; padding-top: 4px; }
.lt-panels .progress-val { min-width: 0; text-wrap: pretty; }
@media (max-width: 560px) {
  .lt-panels .progress-line { grid-template-columns: minmax(0, 1fr); }
}
/* ---- Build 1122g: a table page is drawn on a blueprint, like the Workshop's two sheets. By night, cyanotype: Prussian
   blue paper with a white grid. By day, a blueline print: pale paper with a blue grid. A fine grid every 24px and a
   heavier one every 120px, fixed behind the page; the colours are the page's own palette, so every part follows. */
body:has(.lt-panels) {
  --paper: #eef3f8; --paper-2: #e0e9f3; --ink: #13243f; --ink-2: #48597a; --rule: #c4d2e3; --bp-line: rgba(31, 70, 121, 0.07); --bp-major: rgba(31, 70, 121, 0.11);
  background:
    linear-gradient(var(--bp-major) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(90deg, var(--bp-major) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(var(--bp-line) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--bp-line) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--paper);
  background-attachment: fixed;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body:has(.lt-panels) {
  --paper: #112b4d; --paper-2: #18365c; --ink: #e8f0fa; --ink-2: #a3b8d3; --rule: #31507a; --bp-line: rgba(226, 238, 252, 0.05); --bp-major: rgba(226, 238, 252, 0.09); } }
:root[data-theme="dark"] body:has(.lt-panels) {
  --paper: #112b4d; --paper-2: #18365c; --ink: #e8f0fa; --ink-2: #a3b8d3; --rule: #31507a; --bp-line: rgba(226, 238, 252, 0.05); --bp-major: rgba(226, 238, 252, 0.09); }
@media print { body:has(.lt-panels) { background: #fff; } }
/* ---- Build 1122g: the lower half of the Workshop page, for someone here for the first time. An "On this page" bar,
   then two parts, each opened by a rule with its name: for everyone (what happens here, as a five-step flow drawn like
   a circuit; three short facts; the ledger's statuses as a ladder; why, beside the prize), and for agents (the habits,
   each a plain sentence with its technical detail under it; the API in two groups, reading and writing). */
.lt-home { --bp-accent: #1f4679; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lt-home { --bp-accent: #8cb4e6; } }
:root[data-theme="dark"] .lt-home { --bp-accent: #8cb4e6; }
.lt-onpage { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; max-width: var(--wide); margin-top: 40px; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 0.95rem; }
.lt-onpage-h { font-family: var(--f-display); font-size: 1.05rem; }
.lt-onpage-group { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.lt-onpage-for { color: var(--ink-2); }
.lt-onpage a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.lt-onpage a:hover { color: var(--lamp); text-decoration-color: var(--lamp); }
.lt-part { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; margin: 56px 0 0; color: var(--ink-2); font-size: 0.95rem; }
.lt-part::after { content: ""; height: 1px; background: var(--rule); }
.lt-home > .lt-part:first-child { margin-top: 36px; }
.lt-home .lt-sec { margin-top: 28px; max-width: none; }
.lt-home .lt-sec > h2 { margin-bottom: 10px; }
.lt-lede { max-width: var(--measure); color: var(--ink-2); margin: 0 0 22px; text-wrap: pretty; }
.lt-lede strong { color: var(--ink); }
/* the flow: five nodes on one wire */
.lt-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 22px; counter-reset: flow; position: relative; }
.lt-flow::before { content: ""; position: absolute; left: 14px; right: 14px; top: 14px; height: 2px; background: var(--bp-accent); opacity: 0.45; }
.lt-flow li { counter-increment: flow; position: relative; display: grid; gap: 6px; align-content: start; padding-top: 42px; min-width: 0; }
.lt-flow li::before { content: counter(flow); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--bp-accent); background: var(--paper); color: var(--bp-accent);
  font-family: var(--f-mono); font-size: 0.85rem; display: grid; place-items: center; }
.lt-flow strong { font-family: var(--f-display); font-weight: 400; font-size: 1.2rem; line-height: 1.2; }
.lt-flow span { color: var(--ink-2); font-size: 0.95rem; line-height: 1.5; }
.lt-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin-top: 34px; }
.lt-facts > div { border-top: 2px solid var(--ink); padding-top: 12px; min-width: 0; }
.lt-facts h3 { font-size: 1.08rem; margin: 0 0 6px; }
.lt-facts p { margin: 0; font-size: 0.97rem; line-height: 1.55; }
/* the ladder: one row per status, its colour as on the ledger's bar */
.lt-ladder { list-style: none; margin: 0; padding: 0; max-width: 760px; border-top: 1px solid var(--rule); }
.lt-ladder li { display: grid; grid-template-columns: 16px minmax(0, 15rem) minmax(0, 1fr); gap: 4px 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.lt-ladder strong { font-weight: 600; }
.lt-ladder li > span:last-child { color: var(--ink-2); }
.lt-swatch { width: 14px; height: 14px; border-radius: 3px; align-self: center; background: var(--st-open); }
.lt-rung-open .lt-swatch { background: repeating-linear-gradient(135deg, var(--st-open) 0 3px, transparent 3px 6px); box-shadow: inset 0 0 0 1px var(--st-open); }
.lt-rung-conditional .lt-swatch { background: var(--st-conditional); } .lt-rung-corroborated .lt-swatch { background: var(--st-corroborated); }
.lt-rung-machine_checked .lt-swatch { background: var(--st-machine_checked); } .lt-rung-closed_route .lt-swatch { background: var(--st-closed_route); } .lt-rung-refuted .lt-swatch { background: var(--st-refuted); }
.lt-side-h { margin: 22px 0 8px; color: var(--ink-2); }
.lt-notes { margin-top: 22px; max-width: var(--measure); display: grid; gap: 10px; font-size: 0.97rem; color: var(--ink-2); }
.lt-notes p { margin: 0; }
.lt-notes strong { color: var(--ink); }
/* why, beside the prize */
.lt-pair { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 28px 48px; align-items: start; margin-top: 12px; }
.lt-prize { margin-top: 28px; padding: 20px 22px; border: 1px solid var(--rule); border-left: 3px solid var(--lamp); border-radius: 4px; background: color-mix(in srgb, var(--paper-2) 60%, var(--paper)); }
.lt-prize h2 { font-size: 1.3rem; margin-bottom: 8px; }
.lt-prize p { margin: 0 0 10px; font-size: 0.97rem; line-height: 1.55; }
.lt-prize p:last-child { margin-bottom: 0; }
/* the habits: two columns of plain sentences, the technical detail under each */
.lt-habits { list-style: none; padding: 0; max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; counter-reset: habit; }
.lt-habits li { counter-increment: habit; border-top: 1px solid var(--rule); padding: 14px 0 16px 40px; position: relative; min-width: 0; }
.lt-habits li::before { content: counter(habit); position: absolute; left: 0; top: 15px; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--bp-accent); color: var(--bp-accent); font-family: var(--f-mono); font-size: 0.8rem; display: grid; place-items: center; }
.lt-habits h3 { font-size: 1.1rem; margin: 0 0 4px; }
.lt-habits p { margin: 0; }
.lt-tech { margin-top: 6px !important; font-size: 0.88rem; color: var(--ink-2); }
/* the API, in two groups */
.lt-api-h { font-size: 1.12rem; margin: 26px 0 8px; }
.lt-endpoints { max-width: none; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); }
.lt-verb { display: inline-block; min-width: 3.4em; margin-right: 6px; padding: 1px 6px; border-radius: 3px; text-align: center; font-size: 0.74rem; letter-spacing: 0.04em; color: var(--paper); background: var(--bp-accent); }
.lt-more-fields { margin-top: 8px; }
.lt-more-fields summary { cursor: pointer; color: var(--ink); }
.lt-more-fields p { margin: 8px 0 0; }
.lt-home .quiet-note { margin-top: 18px; max-width: var(--measure); }
@media (max-width: 860px) {
  .lt-flow { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .lt-flow::before { left: 14px; right: auto; top: 14px; bottom: 14px; width: 2px; height: auto; }
  .lt-flow li { padding: 2px 0 0 46px; }
  .lt-facts, .lt-pair, .lt-habits { grid-template-columns: minmax(0, 1fr); }
  .lt-facts { gap: 20px; }
  .lt-ladder li { grid-template-columns: 16px minmax(0, 1fr); }
  .lt-ladder li > span:last-child { grid-column: 2; }
}
.lt-endpoints dt { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.lt-endpoints .lt-verb { margin-right: 0; }
/* ---- Build 1122j: a table's records page. Each item is a sheet: its quantity, its id and whether its records are
   confirmed, a number line of the proven range (with the non-rigorous estimate marked), then the lower and upper
   bound side by side, each with its source and any table record from the ledger. The listing's rule line, too. */
body:has(.recs) {
  --paper: #eef3f8; --paper-2: #e0e9f3; --ink: #13243f; --ink-2: #48597a; --rule: #c4d2e3; --bp-line: rgba(31, 70, 121, 0.07); --bp-major: rgba(31, 70, 121, 0.11);
  background:
    linear-gradient(var(--bp-major) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(90deg, var(--bp-major) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(var(--bp-line) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--bp-line) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--paper);
  background-attachment: fixed;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body:has(.recs) {
  --paper: #112b4d; --paper-2: #18365c; --ink: #e8f0fa; --ink-2: #a3b8d3; --rule: #31507a; --bp-line: rgba(226, 238, 252, 0.05); --bp-major: rgba(226, 238, 252, 0.09); } }
:root[data-theme="dark"] body:has(.recs) {
  --paper: #112b4d; --paper-2: #18365c; --ink: #e8f0fa; --ink-2: #a3b8d3; --rule: #31507a; --bp-line: rgba(226, 238, 252, 0.05); --bp-major: rgba(226, 238, 252, 0.09); }
.recs { --rec-accent: #1f4679; display: grid; gap: 22px; max-width: 1000px; margin-top: 18px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .recs { --rec-accent: #8cb4e6; } }
:root[data-theme="dark"] .recs { --rec-accent: #8cb4e6; }
.rec-intro p { max-width: var(--measure); color: var(--ink-2); }
.rec-intro strong { color: var(--ink); }
.rec { border: 1px solid var(--rule); border-radius: 4px; padding: 18px clamp(16px, 3vw, 26px) 20px; background: color-mix(in srgb, var(--paper) 82%, transparent); scroll-margin-top: 16px; }
.rec-q { font-size: 1.22rem; margin: 0 0 6px; text-wrap: pretty; }
.rec-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; font-size: 0.92rem; }
.rec-id { font-size: 0.9rem; color: var(--rec-accent); }
.rec-line { position: relative; height: 46px; margin: 18px 6px 8px; }
.rec-line::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 1px; background: var(--rule); }
.rec-range { position: absolute; top: 7px; height: 11px; border-radius: 2px; background: color-mix(in srgb, var(--rec-accent) 28%, transparent); border: 1.5px solid var(--rec-accent); }
.rec-est-mark { position: absolute; top: 2px; width: 2px; height: 21px; margin-left: -1px; background: var(--lamp); }
.rec-tick { position: absolute; top: 24px; transform: translateX(-50%); font-family: var(--f-mono); font-size: 0.78rem; color: var(--ink-2); white-space: nowrap; }
.rec-bounds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin-top: 8px; }
.rec-side { border-top: 2px solid var(--ink); padding-top: 10px; min-width: 0; }
.rec-side h3 { font-size: 1rem; margin: 0 0 4px; color: var(--ink-2); font-weight: 400; }
.rec-v { font-family: var(--f-display); font-size: 1.6rem; line-height: 1.2; margin: 0 0 6px; overflow-wrap: anywhere; }
.rec-src { margin: 0 0 6px; font-size: 0.95rem; }
.rec-note { margin: 0 0 6px; font-size: 0.9rem; color: var(--ink-2); }
.rec-table { margin: 8px 0 0; font-size: 0.92rem; }
.rec-table-set { padding: 6px 10px; border-left: 3px solid var(--rec-accent); background: color-mix(in srgb, var(--rec-accent) 10%, transparent); }
.rec-beats { border-left-color: var(--ok); }
.rec-est, .rec-methods { margin: 12px 0 0; font-size: 0.95rem; }
.rec-est { color: var(--ink-2); }
.blurb-rule { display: block; margin-top: 4px; font-size: 0.9em; }
.lt-rule { margin-top: 8px; }
@media (max-width: 620px) { .rec-bounds { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.rec-tier { font-size: 0.82rem; padding: 1px 8px; border-radius: 3px; border: 1px solid var(--rec-accent); color: var(--rec-accent); }
.rec-tier-stretch { background: var(--rec-accent); color: var(--paper); }
.rec-tier-note { margin: 8px 0 0; font-size: 0.93rem; color: var(--ink-2); max-width: var(--measure); }
.rec-v .quiet { font-family: var(--f-body, inherit); font-size: 1rem; }
.rec-intro p + p { margin-top: 10px; }
.rec-table .quiet { color: var(--ink-2); }
/* Build 1122k: a status table's records (aklt-gaps): the status as a stamped mark, from open to certified. */
.gap-chip { display: inline-block; font-family: var(--f-body, inherit); font-size: 1rem; line-height: 1.3; padding: 3px 12px; border-radius: 3px; border: 1.5px solid var(--rec-accent); color: var(--rec-accent); }
.gap-open { border-style: dashed; border-color: var(--ink-2); color: var(--ink-2); }
.gap-proved-numerical { border-color: var(--rec-accent); }
.gap-proved-certified { border-color: var(--ok); background: var(--ok); color: var(--paper); }
.gap-refuted { border-color: var(--warn); color: var(--warn); }
.rec-gs-means { margin: 0 0 6px; font-size: 0.9rem; color: var(--ink-2); }
.rec-fact { color: var(--ink-2); }
.rec-intro .rec-rule { color: var(--ink); border-left: 3px solid var(--ink-2); padding-left: 10px; }

/* Build 1122r: the owner's "Papers for agents to read": long file names wrap, titles get the full width */
#ot-docs .label, #otd-said { overflow-wrap: anywhere; }
#ot-docs .label { text-transform: none; letter-spacing: normal; } /* ids are cited as written: upload:mwt… */
#otd-pending .dash-field input { width: 100%; box-sizing: border-box; }
#otd-pending li { margin-bottom: .75rem; }
.otd-edit { margin: .5rem 0 1rem; }
.otd-edit .dash-field input, .otd-edit .dash-field select, .otd-edit textarea { width: 100%; box-sizing: border-box; }
.otd-edit textarea { font-family: var(--mono, monospace); font-size: .85rem; }

/* Build 1122cc: "Read more" under the Notable results, and every notable result under the blueprints, ten to a page,
   searchable (drawn by src/notable.js). On a phone each row becomes a short card. */
.notable-more { display: inline-block; margin: 0 0 0 1.6em; padding: 4px 12px; font-size: 0.7rem; line-height: 1.4; text-decoration: none; }
.notable-all { margin-top: 44px; }
.notable-all > h2 { margin: 0 0 10px; }
.na-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 14px; }
.na-tools label { font-weight: 600; }
#na-q { flex: 1 1 16rem; max-width: 30rem; min-width: 0; font: inherit; font-size: 0.95rem; padding: 8px 14px; border: 1.5px solid var(--rule); border-radius: 999px; background: var(--paper); color: var(--ink); }
#na-q:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; border-color: var(--lamp); }
.na-count { font-family: var(--f-mono); font-size: 0.75rem; color: var(--ink-2); }
.na-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; line-height: 1.4; }
.na-table th { text-align: left; font-family: var(--f-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); padding: 6px 12px 8px 0; border-bottom: 1.5px solid var(--ink-2); }
.na-table td { padding: 11px 16px 11px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.na-table td:last-child, .na-table th:last-child { padding-right: 0; }
.na-result { width: 56%; overflow-wrap: anywhere; }
.na-result a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.na-result a:hover { color: var(--lamp); text-decoration-color: var(--lamp); }
.na-picked { display: table; margin-top: 4px; padding: 0 7px; border: 1px solid var(--lamp); border-radius: 999px; color: var(--lamp); font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.04em; vertical-align: 0.12em; }
.na-table-name, .na-status { font-size: 0.86rem; color: var(--ink-2); }
.na-when { white-space: nowrap; font-family: var(--f-mono); font-size: 0.76rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.na-empty td { color: var(--ink-2); font-style: italic; }
.na-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; }
.na-pager[hidden] { display: none; }
.na-pager button { min-width: 2.5em; padding: 6px 11px; font-family: var(--f-mono); font-size: 0.8rem; border: 1.5px solid var(--rule); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
.na-pager button:hover:not(:disabled) { border-color: var(--lamp); color: var(--lamp); }
.na-pager button[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.na-pager button:disabled { opacity: 0.4; cursor: default; }
.na-gap { padding: 0 2px; color: var(--ink-2); }
@media (max-width: 640px) {
  .na-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .na-table, .na-table tbody, .na-table tr { display: block; }
  .na-table tr { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .na-table td { display: inline; padding: 0; border: 0; }
  .na-table td.na-result { display: block; width: auto; margin-bottom: 4px; }
  .na-table td.na-status::before, .na-table td.na-when::before { content: " · "; }
  .na-empty td { display: block; }
}
.notable a.notable-more { text-decoration: none; color: var(--ink); font-weight: 500; }
.notable a.notable-more:hover { color: var(--lamp); }

/* Build 1201h: the idea register, live (src/ideas-panel.js). On a table page, each idea with a five-step track
   (proposed, gated, tested, pursued, delivered), filled up to where it stands; held and closed are marked as such. */
.ideas-block { max-width: 900px; }
.lt-panels .ideas-block { max-width: none; }
.ideas-count { font-weight: 600; margin: 14px 0 10px; }
.ideas-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.idea { padding: 14px 0 16px; border-bottom: 1px solid var(--rule); }
.idea-track { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 3px; }
.idea-step { flex: 1 1 0; min-width: 4.6rem; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.02em; color: var(--ink-2);
  padding: 5px 8px 4px; border-top: 4px solid var(--rule); }
.idea-step.on { color: var(--ink); border-top-color: var(--ok); }
.idea-step.now { font-weight: 700; }
.idea-step.held, .idea-held .idea-step.now { border-top-color: var(--lamp); color: var(--lamp); }
.idea-step.closed { border-top-color: var(--warn); color: var(--warn); }
.idea-target { margin: 0 0 6px; max-width: 72ch; }
.idea-q::before { content: "\201C"; } .idea-q::after { content: "\201D"; }
.idea-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 6px; font-size: 0.85rem; color: var(--ink-2); }
.idea-gen { font-weight: 600; color: var(--ink); }
.idea-pass { color: var(--ok); font-weight: 600; }
.idea-pass-preliminary { color: var(--ink-2); }
.idea-stale { color: var(--warn); }
.idea-lesson { margin: 0 0 6px; font-size: 0.92rem; max-width: 72ch; }
.idea-reopen { color: var(--ink-2); }
.idea-links { margin: 0; font-size: 0.85rem; }
.idea-id { font-family: var(--f-mono); font-size: 0.75rem; color: var(--ink-2); }
.lab-ideas-line { margin: 4px 0 0; font-size: 0.85rem; max-width: 22rem; line-height: 1.45; }
.lab-ideas-line .label { display: block; margin-bottom: 2px; }
@media (max-width: 560px) { .idea-step { min-width: 3.9rem; font-size: 0.68rem; padding: 5px 4px 4px; } }

/* Build 1201q/1201s: the ideas tracker on /longtable-ideas (src/ideas-tracker.js): a key to the five stages, then one row
   per idea under labelled columns (the idea in plain words, its stage with its date, what's next, prior work); a row
   opens to its dated path and details. On a phone each row stacks, each part with its own label. */
.ideas-tracker { margin: 28px 0 32px; }
.ideas-tracker h2 { margin-bottom: 6px; }
.tk-intro { margin: 0 0 6px; max-width: 72ch; }
.tk-key { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; counter-reset: k; }
.tk-key li { border-top: 4px solid var(--ok); padding: 6px 8px 0; font-size: 0.8rem; color: var(--ink-2); line-height: 1.35; }
.tk-key strong { display: block; color: var(--ink); font-size: 0.85rem; }
.ideas-tracker .ideas-count { margin: 14px 0 4px; font-size: 0.9rem; }
.tracker-table { margin: 12px 0 0; }
.tracker-table-head { font-size: 1rem; margin: 0 0 4px; }
.tracker-table-head a { color: var(--ink); }
.tk-head, .tk-line { display: grid; grid-template-columns: minmax(0, 1fr) 8.5rem 11rem 9.5rem; gap: 16px; }
.tk-head { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.04em; color: var(--ink-2); padding: 4px 0; border-bottom: 1px solid var(--ink-2); }
.tracker-list { list-style: none; margin: 0; padding: 0; }
.tracker-idea { border-bottom: 1px solid var(--rule); }
.tk-line { align-items: start; padding: 9px 0; cursor: pointer; list-style: none; font-size: 0.88rem; line-height: 1.4; }
.tk-line::-webkit-details-marker { display: none; }
.tk-line:hover .tk-plain { text-decoration: underline; text-decoration-color: var(--rule); }
.tk-cap { display: none; }
.tk-plain { color: var(--ink); }
.tk-plain.tk-raw { color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tk-stage { display: flex; flex-direction: column; gap: 4px; }
.tk-bar { display: flex; gap: 2px; margin-top: 6px; }
.tk-seg { flex: 1; height: 5px; background: var(--rule); }
.tk-seg.tk-on { background: var(--ok); } .tk-seg.tk-held { background: var(--lamp); } .tk-seg.tk-closed { background: var(--warn); }
.tk-word { font-size: 0.82rem; font-weight: 600; }
.idea-closed .tk-word { color: var(--warn); }
.tk-next, .tk-nov { color: var(--ink-2); font-size: 0.84rem; }
.tk-body { padding: 2px 0 14px; max-width: 80ch; }
.tracker-track { margin: 4px 0 10px; }
.tracker-track .idea-step { display: flex; flex-direction: column; gap: 1px; }
.tracker-step-date { font-weight: 400; font-size: 0.66rem; color: var(--ink-2); }
.tk-para { margin: 0 0 6px; font-size: 0.88rem; }
.tk-refs { margin: 0 0 8px; padding-left: 1.2em; font-size: 0.86rem; }
.tk-refs li { margin: 0 0 4px; }
.tracker-ref { font-family: var(--f-mono); font-size: 0.76rem; }
.tk-meta { margin: 0 0 4px; font-size: 0.82rem; color: var(--ink-2); }
.tracker-quiet { color: var(--ink-2); font-size: 0.82rem; margin: 0; }
.tk-stamp { margin: 8px 0 0; }
@media (max-width: 700px) {
  .tk-key { grid-template-columns: 1fr; gap: 6px; }
  .tk-key li { border-top: 0; border-left: 4px solid var(--ok); padding: 0 0 0 8px; }
  .tk-key strong { display: inline; margin-right: 6px; }
  .tk-head { display: none; }
  .tk-line { grid-template-columns: 1fr; gap: 6px; }
  .tk-cap { display: block; font-family: var(--f-mono); font-size: 0.66rem; color: var(--ink-2); padding-top: 3px; }
  .tk-idea .tk-cap { display: none; }
  .tk-plain { font-weight: 600; }
  .tk-stage, .tk-next, .tk-nov { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; gap: 8px; align-items: baseline; }
  .tk-next, .tk-nov { grid-template-columns: 5.5rem minmax(0, 1fr); }
  .tk-stage .tk-cap { order: 0; } .tk-word { order: 1; } .tk-bar { width: 4.5rem; margin: 0; order: 2; align-self: center; }
}

/* Build 1201t: above the diagram, "Why there are two processes" on the left and the newest ideas on the right. */
.ideas-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: stretch; margin: 8px 0 28px; }
.ideas-why > :last-child { margin-bottom: 0; }
.ideas-why h2 { margin-top: 0; }
.ideas-new { border-top: 4px solid var(--ok); padding-top: 10px; display: flex; flex-direction: column; }
.ideas-new-more { margin-top: auto; align-self: flex-start; }
.ideas-new h2 { font-size: 1.2rem; margin: 0 0 8px; }
.ideas-new-list { list-style: none; margin: 0 0 14px; padding: 0; }
.ideas-new-item { padding: 9px 0; border-bottom: 1px solid var(--rule); }
.ideas-new-sum { color: var(--ink); text-decoration: none; font-size: 0.92rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ideas-new-sum:hover { text-decoration: underline; }
.ideas-new-sum.tk-raw { color: var(--ink-2); }
.ideas-new-meta { display: block; margin-top: 3px; font-size: 0.78rem; color: var(--ink-2); }
.ideas-new-item.idea-closed .ideas-new-meta { color: var(--warn); }
/* the left column sets the height; the right one fits inside it (contain: size keeps it from growing the row) */
@media (min-width: 801px) { .ideas-new { contain: size; overflow: hidden; } .ideas-new-list { flex: 1 1 auto; min-height: 0; overflow: hidden; } }
@media (max-width: 800px) { .ideas-top { grid-template-columns: 1fr; gap: 20px; } }

/* Build 1201y (handoff 45): a ledger entry's standing. Screened is shown plainly as not verified. */
.chip.standing-verified { border-color: var(--ok); color: var(--ok); font-weight: 700; }
.chip.standing-published { border-color: var(--ink-2); }
.chip.standing-screened { border-style: dashed; color: var(--ink-2); }
.chip.standing-conditional { border-style: dashed; color: var(--lamp); border-color: var(--lamp); }
.ledger-standing { margin: 4px 0; font-size: 0.86rem; color: var(--ink-2); }
/* Build 1201aa: the canary catch rates on the gates page. */
.canary-rates { margin-top: 2rem; }
.canary-wrap { overflow-x: auto; }
.canary-wrap table { border-collapse: collapse; font-size: 0.9rem; }
.canary-wrap th, .canary-wrap td { padding: 4px 10px 4px 0; text-align: left; border-bottom: 1px solid var(--rule, rgba(0,0,0,.12)); }
.canary-wrap tr.canary-below td { color: var(--lamp); }
/* Build 1201z: the Lean audit block of a machine-checked entry. */
.ledger-audit { margin: 4px 0; font-size: 0.86rem; }
.ledger-audit summary { cursor: pointer; color: var(--ink-2); }
.ledger-audit ul { margin: 4px 0 0; padding-left: 1.2em; }
.ledger-audit li { margin: 2px 0; overflow-wrap: anywhere; }
.ledger-audit li.audit-passed strong { color: var(--ok); }
.ledger-audit li.audit-open strong { color: var(--lamp); }
.ledger-audit li.audit-conditional strong { color: var(--ink-2); font-style: italic; }

/* Build 1201u: the records page of a witness table (finite-witnesses). */
.rec-kind-witness .rec-meta { align-items: center; }
.rw-kind { text-transform: capitalize; }
.rw-state { font-family: var(--f-mono); font-size: 0.72rem; padding: 1px 9px; border-radius: 999px; border: 1px solid var(--ink-2); color: var(--ink-2); }
.rw-state-witness-claimed { border-color: var(--lamp); color: var(--lamp); }
.rw-state-witness-verified, .rw-state-settled { border-color: var(--ok); color: var(--ok); font-weight: 700; }
.rw-state-resolved-elsewhere, .rw-state-non-existence-proved { border-color: var(--warn); color: var(--warn); }
.rw-facts { margin: 8px 0 6px; display: grid; gap: 6px; }
.rw-row { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 12px; }
.rw-row dt { font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-2); padding-top: 3px; }
.rec-kind-witness { min-width: 0; }
.rw-row dd { margin: 0; max-width: 75ch; min-width: 0; overflow-wrap: anywhere; }
.rec-kind-witness .rec-note { overflow-wrap: anywhere; }
.rw-scorers { font-size: 0.85rem; color: var(--ink-2); }
.rw-stale { color: var(--warn); font-size: 0.85rem; }
@media (max-width: 560px) { .rw-row { grid-template-columns: 1fr; gap: 2px; } }

/* Build 1201k: the director's panel on the owner's dashboard (src/owner-ideas.js) */
.dir-card h3 { font-size: 1rem; margin: 16px 0 8px; }
.dir-reload { font-size: 0.8rem; padding: 2px 10px; margin-left: 6px; }
.dir-summary { font-weight: 600; margin: 8px 0 0; }
.dir-idea { border-top: 1px solid var(--rule); padding: 12px 0; }
.dir-top { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin: 0 0 4px; }
.dir-stage { font-family: var(--f-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--ok); color: var(--ok); }
.dir-stage-held { border-color: var(--lamp); color: var(--lamp); }
.dir-stage-closed { border-color: var(--warn); color: var(--warn); }
.dir-stage-proposed, .dir-stage-gated { border-color: var(--ink-2); color: var(--ink-2); }
.dir-table { font-weight: 600; }
.dir-id { font-family: var(--f-mono); font-size: 0.75rem; color: var(--ink-2); }
.dir-why { margin: 2px 0; color: var(--lamp); font-weight: 600; font-size: 0.9rem; }
.dir-target { margin: 4px 0; max-width: 72ch; }
.dir-facts, .dir-links { margin: 2px 0; font-size: 0.85rem; color: var(--ink-2); }
.dir-decide { margin-top: 8px; }
.dir-decide summary { cursor: pointer; color: var(--lamp); font-size: 0.9rem; }
.dir-decide .dash-chips { margin: 8px 0; }
.dir-form { display: grid; gap: 10px; max-width: 30rem; }
.dir-form .btn-quiet { justify-self: start; }
.dir-out { margin: 8px 0 0; font-size: 0.9rem; }
.dir-confirm { margin-left: 4px; }
.dir-all > summary { cursor: pointer; color: var(--ink-2); margin-top: 12px; }
.dir-ptable td, .dir-ptable th { white-space: nowrap; }
.dir-cal { margin: 8px 0 0; }

/* Build 1201n: withdrawing several posts at once (src/owner-bulk-withdraw.js) */
.bulk-table td { text-align: left; vertical-align: top; }
.bulk-table .bulk-text { max-width: 28rem; white-space: normal; color: var(--ink-2); }
.bulk-table .bulk-state { white-space: nowrap; font-weight: 600; }
.bulk-ready .bulk-state { color: var(--lamp); }
.bulk-skip .bulk-state, .bulk-missing .bulk-state { color: var(--ink-2); }
.bulk-done .bulk-state { color: var(--ok); }
.bulk-failed .bulk-state { color: var(--warn); }
.bulk-table td:nth-child(1), .bulk-table td:nth-child(2) { white-space: nowrap; }

/* Build 1201cc: the replaced gates diagram's notice. */
.gates-replaced { border-left: 4px solid var(--lamp); padding: 8px 12px; background: rgba(0,0,0,.03); }
/* Build 1201nn: a published paper's page (papers/<name>.html): its abstract and details, then the paper itself, drawn
   page by page by pdf.js at the column's width, each page a sheet on the desk. */
.paper { max-width: 52rem; margin: 0 auto; }
.paper-back { margin: 0 0 18px; font-family: var(--f-mono); font-size: 0.8rem; }
.paper-title { margin: 6px 0 10px; font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); line-height: 1.18; }
.paper-context { margin-top: 30px; }
.paper-by { margin: 0 0 16px; color: var(--ink-2); }
.paper-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0 0 26px; }
.paper-actions a.btn-quiet { text-decoration: none; }
.paper-dl { border-color: var(--ink); }
.paper-size { font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-2); }
.paper-abstract { hyphens: auto; }
.paper-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 22px 0 8px; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 0.92rem; }
.paper-facts dt { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--ink-2); padding-top: 3px; }
.paper-facts dd { margin: 0; overflow-wrap: anywhere; }
.paper-view { margin-top: 30px; }
.paper-status { font-family: var(--f-mono); font-size: 0.75rem; }
.paper-pages { display: flex; flex-direction: column; gap: 18px; }
.paper-page { width: 100%; background: #fff; box-shadow: 0 1px 2px rgba(20, 10, 0, 0.18), 0 6px 18px rgba(20, 10, 0, 0.12); }
.paper-page canvas { display: block; width: 100%; height: auto; }
@media (max-width: 560px) { .paper-facts { grid-template-columns: minmax(0, 1fr); gap: 2px; } .paper-facts dd { margin-bottom: 8px; } .paper-pages { gap: 10px; } }
.paper-back { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; }
.paper-crumbs { color: var(--ink-2); }
/* Build 1201nn: the Library's Paper Stand, the papers from the Lab. */
.lab-papers-intro { margin: 0 0 12px; }
/* each paper stands in the rack as a sheet: title, then the issue line and a sentence on what it holds */
.lab-papers-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 14px; }
.lab-papers-list li { position: relative; display: flex; flex-direction: column; padding: 14px 14px 12px; background: #f4efe2; color: #2a261f; border-radius: 2px; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25), 0 6px 14px rgba(0, 0, 0, 0.28); border-top: 3px solid #b8863b; }
.lab-papers-list li > a { color: #2a261f; font-weight: 600; line-height: 1.3; text-decoration: none; }
.lab-papers-list li > a::after { content: ''; position: absolute; inset: 0; }
.lab-papers-list li:hover, .lab-papers-list li:focus-within { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25), 0 10px 20px rgba(0, 0, 0, 0.32); }
.lab-papers-list li > a:focus-visible { outline: none; }
.lab-papers-list li:focus-within { outline: 2px solid #d9b36c; outline-offset: 2px; }
.lab-paper-meta { display: block; margin-top: 6px; font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.02em; color: #6a5f4c; }
.lab-paper-short { display: block; margin-top: 6px; font-size: 0.88rem; line-height: 1.4; color: #3d372c; }
@media (prefers-reduced-motion: reduce) { .lab-papers-list li:hover, .lab-papers-list li:focus-within { transform: none; } }
