/* USPTO free-start example run: nine prompts, two columns, one lamp.
   -------------------------------------------------------------------------
   GRAMMAR: a split stage. The chat on the left, the servers on the right, held
   in tension for the whole page and resolved at the close, where the divider
   travels to the left edge and the servers' column takes the full width. The
   divider is the chrome: it carries both labels and the state of the argument
   (which part, which servers are connected). No bar, no readout, no folio.

   WHAT THE ENGINE IS ASKED TO DO, and what it is not. --sc-p is written on the
   hero, the nine turns, the boundary, the peak and the close, and READ by
   exactly two things: the score ruler (ten 64px thumbnails on `transform`)
   and the close (two text layers and one backdrop on `transform`). No panel
   is ever transformed, clipped or faded; every panel is static markup. There
   is one pinned stage at the peak and one at the close, no sticky folio, no
   scroll container inside a panel. Breakpoints are the site's 640/900/1200.

   The panel chrome (.us-panel, .up-tools, .up-behind, .up-result, .up-hits,
   .hg-*) comes from ../uspto/panels.css, shared with the Full case study. The
   Patent Search views' own look is redrawn here from the view source
   (patent_grants_mcp ui/views.py _BASE_CSS, ui/drawings_view.py _CSS). */

/* --- 1. Tokens: two grounds, one per side --------------------------------- */
:root {
    --sc-canvas: #f4f3ee;
    --sc-surface: #ffffff;
    --sc-ink: #1c1a17;
    --sc-ink-soft: #565f59;
    --sc-accent: #1f4d3d;
    --sc-accent-ink: #ffffff;
    --sc-font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua",
        Palatino, Georgia, "Times New Roman", serif;
    --sc-font-text: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
    --sc-font-mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    --sc-section: clamp(0.6rem, 1.2vw, 1.1rem);
    --up-rule: #ddd6c9;
    --up-rule-soft: #ece6da;
    --up-paper: #f4f3ee;
    --up-paper-alt: #ece9e1;
    --up-paper-cool: #e9edf1;
    /* The chat's ground and the servers' ground. They hold the whole way down. */
    --ur-chat: #f4f3ee;
    --ur-servers: #e9edf1;
    --ur-line: #1c1a17;
    --ur-ps-dark: #003366;
    --ur-ps-mid: #2f6db5;
    /* The state pill is 24px tall and sits 18px off the viewport's foot. */
    --ur-pill-band: 48px;
}

/* Site chrome pinned to the light palette on this page only (the example-run
   convention: the header, notice and footer never flip under a light page). */
.site-header,
.notice-strip {
    background: #ffffff;
    color: #16181d;
    font-family: var(--sc-font-text);
}
.site-footer {
    background: #f6f7f4;
    color: #16181d;
    font-family: var(--sc-font-text);
}
.site-header .brand,
.site-header nav a,
.site-header nav .linklike,
.site-header nav summary,
.notice-strip,
.site-footer,
.site-footer a {
    color: #16181d;
}
.site-header,
.notice-strip,
.site-footer {
    --color-bg: #ffffff;
    --color-text: #16181d;
    --color-muted: #5d6570;
    --color-border: #e3e6e2;
    --color-surface: #f6f7f4;
    --color-accent: #1f4d3d;
    --color-accent-strong: #163a2e;
    --color-accent-soft: #e9f2ec;
    --color-accent-contrast: #ffffff;
}

main.ur-main {
    max-width: none;
    padding: 0;
    overflow-x: clip;
    font-family: var(--sc-font-text);
    color: var(--sc-ink);
    background: var(--ur-chat);
}

/* --- 2. The split ---------------------------------------------------------- */
.ur-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
}
.ur-col {
    min-width: 0;
    padding: clamp(1.2rem, 3vw, 2.6rem) clamp(1rem, 3vw, 3rem);
    /* The divider's state pill sits at the foot of the viewport. Every column
       ends with a band at least the pill's height plus a margin, so a column's
       last line never sits under it. */
    padding-bottom: calc(clamp(1.2rem, 3vw, 2.6rem) + var(--ur-pill-band));
}
.ur-col--chat { background: var(--ur-chat); }
.ur-col--servers { background: var(--ur-servers); }
.ur-col > .ur-inner { max-width: 46rem; }
.ur-col--chat > .ur-inner { margin-left: auto; }
.ur-col--servers > .ur-inner { margin-right: auto; }
/* Every turn's servers column is at least as tall as its chat column and the
   grounds meet at the divider, so neither side is ever a caption for the other. */
.ur-turn { min-height: 60vh; }

/* The divider: the page's only chrome. Fixed, so it is the one line that never
   scrolls; it clears the site header rather than sliding under it. */
.ur-divider {
    position: fixed;
    top: var(--site-header-h, 0px);
    bottom: 0;
    left: 50%;
    width: 0;
    border-left: 1px solid var(--ur-line);
    /* Over the engine's copy layer (20) and the stages (1), under the site
       header (50). */
    z-index: 40;
    pointer-events: none;
    opacity: 0;
    transition: opacity 240ms ease;
}
.sc-ready .ur-divider { opacity: 1; }
.sc-ready .ur-divider--off { opacity: 0; }
.ur-divider > span {
    position: absolute;
    z-index: 1;
    font-family: var(--sc-font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sc-ink);
    white-space: nowrap;
    background: inherit;
}
.ur-divider__left {
    right: 10px;
    top: 50%;
    transform: rotate(-90deg) translate(50%, 0);
    transform-origin: right center;
}
.ur-divider__right {
    left: 10px;
    top: 50%;
    transform: rotate(90deg) translate(-50%, 0);
    transform-origin: left center;
}
.ur-divider__state {
    z-index: 1;
    left: 0;
    bottom: 12px;
    height: 24px;
    line-height: 16px;
    transform: translateX(-50%);
    background: var(--ur-line);
    color: #fff;
    padding: 4px 10px;
    letter-spacing: 0.08em;
    box-sizing: border-box;
}

/* The reserved band: a strip across the foot of the viewport in each column's
   own ground, with the pill on it. Copy scrolls under the band, never under
   the pill, and every column ends with --ur-pill-band of padding so its last
   line is never behind it either. */
.ur-divider > .ur-divider__band {
    position: absolute;
    left: -50vw;
    width: 100vw;
    bottom: 0;
    height: var(--ur-pill-band);
    background: linear-gradient(90deg, var(--ur-chat) 0%, var(--ur-chat) 50%, var(--ur-servers) 50%, var(--ur-servers) 100%);
    border-top: 1px solid var(--up-rule);
    z-index: 0;
}
.ur-divider { background: none; }

/* --- 3. Hero: the split established at 50/50, both headlines readable ------- */
.ur-hero .ur-col {
    min-height: calc(100svh - var(--site-header-h, 0px));
    display: flex;
    align-items: flex-end;
    padding-bottom: calc(clamp(1.2rem, 3vw, 2.6rem) + var(--ur-pill-band));
}
.ur-kicker {
    font-family: var(--sc-font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sc-ink-soft);
    margin: 0 0 10px;
}
.ur-hero h1,
.ur-hero h2 {
    font-family: var(--sc-font-display);
    font-weight: 400;
    font-size: clamp(2rem, 4.6vw, 4rem);
    line-height: 1.02;
    letter-spacing: -0.01em;
    margin: 0 0 0.5em;
}
.ur-stand {
    font-size: clamp(1rem, 1.35vw, 1.15rem);
    line-height: 1.5;
    max-width: 34rem;
    margin: 0 0 1.2em;
}
.ur-plate {
    border-top: 1px solid var(--ur-line);
    padding-top: 10px;
    font-family: var(--sc-font-mono);
    font-size: 11px;
    line-height: 1.6;
    color: var(--sc-ink-soft);
    max-width: 36rem;
}
.ur-plate b { color: var(--sc-ink); font-weight: 700; }

/* --- 4. A turn ------------------------------------------------------------ */
.ur-folio {
    font-family: var(--sc-font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sc-ink-soft);
    margin: 0 0 14px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--up-rule);
}
.ur-folio b { color: var(--sc-ink); font-weight: 700; }
.ur-col--chat .up-bubble { font-size: 0.98rem; line-height: 1.55; }
.ur-col--chat .up-bubble h3 {
    font-family: var(--sc-font-display);
    font-weight: 400;
    font-size: 1.25rem;
    margin: 1em 0 0.4em;
}
.ur-col--chat .up-bubble h3:first-child { margin-top: 0; }
.ur-col--chat .up-bubble a { color: var(--sc-accent); }
.ur-unlinked {
    border-bottom: 1px dotted var(--sc-ink-soft);
    cursor: help;
}
.ur-col--chat .up-table { font-size: 0.86em; }
.ur-col--chat .up-turn--user .up-bubble ol { font-family: var(--sc-font-mono); font-size: 0.82em; }
.ur-side-note {
    font-size: 0.9em;
    color: var(--sc-ink-soft);
    border-left: 3px solid var(--up-rule);
    padding: 2px 0 2px 12px;
    margin: 0 0 14px;
}
.ur-side-note b { color: var(--sc-ink); }
.ur-h {
    font-family: var(--sc-font-display);
    font-weight: 400;
    font-size: 1.15rem;
    margin: 18px 0 8px;
}
.ur-h:first-child { margin-top: 0; }
.up-tool--noted { border-left-color: #9a9184; }
.up-cite--text { color: var(--sc-ink-soft); }

/* A captured image: the browser page, the reader's drawing, a screenshot. */
.ur-shot {
    margin: 0 0 14px;
    border: 1px solid var(--up-rule);
    background: #fff;
}
.ur-shot img { display: block; width: 100%; height: auto; }
.ur-shot figcaption {
    font-family: var(--sc-font-mono);
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: var(--sc-ink-soft);
    padding: 6px 10px;
    border-top: 1px solid var(--up-rule-soft);
}
.ur-shot--drawing { max-width: 30rem; }

/* --- 5. The Patent Search views, redrawn from their source ------------------- */
.us-panel--ps { font-size: 13px; color: #1a1a2e; background: #f7f8fa; }
.ps-header {
    background: var(--ur-ps-dark);
    color: #fff;
    padding: 9px 14px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.ps-header h4 { font-size: 14px; margin: 0; font-weight: 600; font-family: var(--sc-font-text); color: #fff; }
.ps-badge { background: var(--ur-ps-mid); border-radius: 4px; padding: 1px 7px; font-size: 11px; }
.ps-bar {
    background: #e8eef5;
    border-bottom: 1px solid #c5d3e6;
    padding: 6px 14px;
    font-size: 12px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}
.ps-note { background: #f4f5f7; border-bottom: 1px solid #e3e5e9; padding: 5px 14px; font-size: 11px; color: #555; }
.ps-wrap { padding: 10px 14px; }
.ps-card { background: #fff; border: 1px solid #dde3ed; border-radius: 6px; padding: 9px 11px; margin-bottom: 8px; }
.ps-num { font-family: var(--sc-font-mono); color: var(--ur-ps-mid); font-weight: 700; font-size: 12px; }
.ps-num a { color: inherit; }
.ps-title { font-weight: 600; margin: 3px 0; }
.ps-meta { color: #666; font-size: 11px; }
.ps-snip { margin-top: 4px; color: #333; }
.ps-btns { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.ps-btn {
    display: inline-block;
    border: 1px solid #c5d3e6;
    background: #eef3fa;
    color: var(--ur-ps-dark);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 11px;
    text-decoration: none;
    font-family: var(--sc-font-text);
}
.ps-btn:hover { background: #dce7f5; }
.ps-card--theme { border-left: 3px solid var(--ur-ps-mid); }
.ps-chips span { display: inline-block; background: #eef3fa; border-radius: 10px; padding: 1px 7px; margin: 2px 3px 0 0; font-size: 11px; }
.ps-empty { padding: 4px 0 6px; color: #555; }
.ps-more > summary { list-style: none; cursor: pointer; }
.ps-more > summary::-webkit-details-marker { display: none; }
.ps-capnote {
    text-align: center;
    padding: 10px;
    margin: 4px 0 8px;
    background: #f4f7fd;
    border: 1px solid #dde3ed;
    border-radius: 4px;
    font-size: 11px;
    color: #556;
}
.ps-capnote__link { color: #1a3a6b; font-weight: 700; text-decoration: underline; }
.ps-more[open] > summary .ps-capnote__link { display: none; }
.ps-status { background: #fff8e1; border: 1px solid #f0d080; border-radius: 5px; padding: 7px 10px; margin-bottom: 8px; font-size: 12px; }
.ps-claim { background: #fff; border: 1px solid #e3e7ee; border-radius: 5px; padding: 7px 10px; margin-bottom: 5px; line-height: 1.45; }
.ps-claim--dep { margin-left: 26px; background: #fbfcfe; }
/* Drawing Search */
.ps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.ps-hit { background: #fff; border: 1px solid #dde3ed; border-radius: 6px; padding: 8px; display: flex; flex-direction: column; gap: 3px; }
.ps-pair { display: flex; gap: 4px; }
.ps-fig { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ps-cap { font-size: 10px; color: #666; text-align: center; }
.ps-thumb { border: 1px solid #e3e7ee; background: #fff; border-radius: 4px; padding: 2px; height: 120px; display: flex; align-items: center; justify-content: center; width: 100%; }
.ps-thumb img { max-width: 100%; max-height: 114px; width: auto; height: auto; object-fit: contain; }
.ps-score { font-family: var(--sc-font-mono); font-size: 11px; color: var(--ur-ps-dark); }
.ps-form { background: #fff; border: 1px solid #dde3ed; border-radius: 6px; padding: 10px 12px; margin: 10px 0 0; }
.ps-form h5 { font-size: 13px; margin: 0 0 8px; color: var(--ur-ps-dark); font-family: var(--sc-font-text); }
.ps-confidential { border: 2px solid #d9a21b; border-left-width: 6px; background: #fff8e6; border-radius: 6px; padding: 8px 10px; margin: 0 0 10px; font-size: 12px; color: #3a2c00; }
.ps-confidential b { display: block; font-size: 13px; margin-bottom: 4px; color: #6b4a00; }
.ps-zone { border: 2px dashed #c5d3e6; border-radius: 6px; padding: 10px 12px; background: #fbfcfe; }
.ps-zone__label { font-weight: 600; display: block; margin-bottom: 6px; }
.ps-fakefile { font-size: 12px; color: #333; }
.ps-fakebtn, .ps-fakeinput, .ps-go {
    display: inline-block;
    font: inherit;
    font-size: 12px;
    padding: 3px 6px;
    border: 1px solid #c5d3e6;
    border-radius: 4px;
    background: #fff;
    vertical-align: middle;
}
.ps-fakebtn { background: #efefef; margin-right: 6px; }
.ps-fakeinput--wide { min-width: 9em; color: #999; }
.ps-fakeinput--narrow { min-width: 4em; min-height: 1.4em; }
.ps-go { background: var(--ur-ps-dark); color: #fff; border-color: var(--ur-ps-dark); font-weight: 600; padding: 4px 14px; }
.ps-or { color: #666; font-size: 11px; margin: 8px 0 2px; }
.ps-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.ps-row__label { font-weight: 600; }

/* The hypergraph panel's empty state, as the real view paints it. */
.us-panel--graph-empty .empty-result {
    margin: 0;
    padding: 18px 16px 22px;
    font-size: 13px;
    color: #333;
    background: #fff;
}
.up-result--hg { max-width: none; }
.up-result--empty { font-style: italic; }
.up-result--facets { max-width: none; }

/* --- 6. The signature move: the score ruler --------------------------------- */
/* Ten drawing sheets, pasted into the chat as a ranked list, settle onto the
   axis the list hides: their scores. At p = 0 they stand in rank order, evenly
   spaced; at p = 1 each sits at its own score, and the paper crane light is
   alone on the right with 0.0493 of empty axis behind it while nine others
   pile into 0.0304. Chips move on `transform` only, from --sc-p, inside a
   container-query track so the axis is the track's own width. */
.ur-ruler-act { margin: 0; }
.ur-ruler-stage {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 clamp(1rem, 3vw, 3rem) var(--ur-pill-band);
    background: var(--ur-servers);
}
.ur-ruler-stage > .ur-inner { max-width: 46rem; width: 100%; margin: 0 auto 0 0; }
.ur-ruler__title {
    font-family: var(--sc-font-display);
    font-weight: 400;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    line-height: 1.1;
    margin: 0 0 6px;
}
.ur-ruler__lede { font-size: 0.95rem; color: var(--sc-ink-soft); max-width: 40rem; margin: 0 0 18px; }
.ur-ruler {
    /* --sc-p is INHERITED from the act element, where the engine writes it;
       a default here would shadow it. The fallbacks below cover no-script. */
    position: relative;
    container-type: inline-size;
    height: 380px;
    margin: 0 0 10px;
}
.ur-ruler__axis {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 36px;
    border-bottom: 2px solid #9aa4ad;
    opacity: var(--sc-p, 1);
}
.ur-ruler__tick {
    position: absolute;
    bottom: -22px;
    transform: translateX(-50%);
    font-family: var(--sc-font-mono);
    font-size: 10px;
    color: var(--sc-ink-soft);
    padding-top: 4px;
    border-top: 1px solid #9aa4ad;
}
.ur-chip {
    position: absolute;
    left: 0;
    bottom: 44px;
    width: 64px;
    text-align: center;
    will-change: transform;
    /* rank position (0..1, left to right) blends into score position (0..1). */
    --ur-x: calc(var(--ur-rank) * (1 - var(--sc-p, 1)) + var(--ur-at) * var(--sc-p, 1));
    transform: translate(calc(var(--ur-x) * (100cqw - 64px)), calc(-1 * var(--ur-row) * 74px * var(--sc-p, 1)));
}
.ur-chip img {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #c9d1d9;
    border-radius: 4px;
    padding: 2px;
    box-sizing: border-box;
}
.ur-chip--one img { border-color: var(--sc-accent); border-width: 2px; }
.ur-chip__label {
    display: block;
    font-family: var(--sc-font-mono);
    font-size: 9px;
    line-height: 1.2;
    color: var(--sc-ink);
    margin-top: 3px;
    white-space: nowrap;
}
.ur-chip__score { display: block; font-size: 9px; color: var(--sc-ink-soft); }
.ur-chip--one .ur-chip__label { color: var(--sc-accent); font-weight: 700; }
/* The two brackets: the lead and the spread. They are the argument. */
.ur-bracket {
    position: absolute;
    bottom: 10px;
    height: 10px;
    border: 1px solid var(--sc-ink);
    border-top: 0;
    opacity: var(--sc-p, 1);
    font-family: var(--sc-font-mono);
    font-size: 10px;
    color: var(--sc-ink);
}
.ur-bracket > span {
    position: absolute;
    left: 50%;
    top: 12px;
    transform: translateX(-50%);
    white-space: nowrap;
}
.ur-bracket--lead { color: var(--sc-accent); border-color: var(--sc-accent); }
.ur-ruler__quote {
    font-size: 0.92rem;
    line-height: 1.5;
    max-width: 40rem;
    border-left: 3px solid var(--sc-accent);
    padding-left: 12px;
    margin: 36px 0 0;
    color: var(--sc-ink);
}
.ur-ruler__quote cite { display: block; font-style: normal; font-family: var(--sc-font-mono); font-size: 10px; color: var(--sc-ink-soft); margin-top: 4px; }

/* --- 7. The hypergraph's regime readout and its hand-driven dial ------------ */
.ur-shifts { list-style: none; margin: 0 0 14px; padding: 0; }
.ur-shift {
    background: #fff;
    border: 1px solid var(--up-rule);
    border-left: 4px solid #2e6b45;
    padding: 9px 12px;
    margin: 0 0 8px;
    font-size: 0.9em;
    line-height: 1.45;
}
.ur-shift--not_yet_in_effect { border-left-color: #8a7433; }
.ur-shift--already_superseded { border-left-color: #7c7268; }
.ur-shift b { display: block; }
.ur-shift .when { display: block; font-family: var(--sc-font-mono); font-size: 10px; color: #6b6459; }
.ur-shift .desc { display: block; margin-top: 4px; }
.ur-shift .cite { display: block; margin-top: 4px; font-size: 0.92em; color: var(--sc-ink-soft); }
.ur-regime {
    background: #fff;
    border: 1px solid var(--up-rule);
    padding: 14px 16px 16px;
    margin: 0 0 16px;
    --ur-dial-p: 1;
    --ur-dial-step: 1;
}
.ur-regime__summary { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 12px; font-size: 0.92em; }
.ur-regime__count b { font-size: 1.25em; }
.ur-regime__count--force b { color: #2e6b45; }
.ur-regime__count--future b { color: #8a7433; }
.ur-regime__count--past b { color: #7c7268; }
.ur-regime__asof { font-family: var(--sc-font-mono); font-size: 11px; color: var(--sc-ink-soft); align-self: center; }
.ur-spine {
    position: relative;
    container-type: inline-size;
    height: 46px;
    border-bottom: 2px solid #cbc2b2;
    margin: 6px 0 8px;
}
.ur-spine__tick {
    position: absolute;
    bottom: 0;
    transform: translateX(-50%);
    font-family: var(--sc-font-mono);
    font-size: 10px;
    color: #9a9184;
    padding: 0 0 3px 4px;
    border-left: 1px solid #d9d1c2;
    white-space: nowrap;
}
.ur-spine__tick--start { transform: none; border-left: 0; padding-left: 0; font-weight: 700; color: #6b6459; }
.ur-spine__tick--end { transform: translateX(-100%); border-left: 0; border-right: 1px solid #d9d1c2; padding: 0 4px 3px 0; font-weight: 700; color: #6b6459; }
.ur-spine__rule {
    position: absolute;
    bottom: 8px;
    width: 6px;
    height: 14px;
    transform: translateX(-50%);
    border-radius: 2px;
    background: #2e6b45;
}
.ur-spine__rule--past { background: #7c7268; height: 9px; }
.ur-spine__marker {
    position: absolute;
    top: 0;
    bottom: -6px;
    width: 2px;
    background: var(--sc-accent);
    transform: translateX(-1px);
}
.ur-spine__marker::after {
    content: "";
    position: absolute;
    top: -5px;
    left: -4px;
    width: 10px;
    height: 10px;
    background: var(--sc-accent);
    border-radius: 50%;
}
.ur-dial__control {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    align-items: center;
    gap: 10px;
    margin: 10px 0 4px;
}
.ur-dial__label {
    font-family: var(--sc-font-mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sc-ink-soft);
}
.ur-dial__control input[type="range"] { width: 100%; accent-color: var(--sc-accent); margin: 0; cursor: pointer; }
.ur-dial__readout {
    font-family: var(--sc-font-mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--sc-accent);
    font-variant-numeric: tabular-nums;
}
.ur-buckets { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 12px; margin-top: 12px; align-items: start; }
.ur-bucket { border: 1px solid var(--up-rule); background: #fdfcf9; padding: 10px 12px; }
.ur-bucket h4 { font-family: var(--sc-font-mono); font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; margin: 0 0 6px; }
.ur-bucket--force { border-left: 4px solid #2e6b45; }
.ur-bucket--force h4 { color: #2e6b45; }
.ur-bucket--future { border-left: 4px solid #8a7433; }
.ur-bucket--future h4 { color: #8a7433; }
.ur-bucket--past { border-left: 4px solid #7c7268; }
.ur-bucket--past h4 { color: #7c7268; }
.ur-regime .up-rules { list-style: none; margin: 0; padding: 0; }
.ur-regime .up-rule-card { border-top: 1px solid var(--up-rule-soft); padding: 5px 0; font-size: 0.84em; line-height: 1.4; }
.ur-regime .up-rule-card:first-child { border-top: 0; padding-top: 0; }
.ur-regime .up-rule-card b { display: block; }
.ur-regime .up-rule-card .cite { display: block; color: var(--sc-ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ur-regime .up-rule-card .when { font-family: var(--sc-font-mono); font-size: 10px; color: #9a9184; }
.up-rule-card--superseded .when { text-decoration: line-through; }
/* The one state change the dial drives: a rule dated after the chosen day
   dims. Stepped in 24ths so the cards change in groups, not every pixel. */
[data-ur-dial] .up-rule-card[style] {
    opacity: max(0.34, calc((var(--ur-dial-step, 1) - var(--ur-at, 0) + 0.05) * 26 + 0.34));
}

/* The pull-out: the page's own ink and mono, a rule on the left, no new colour. */
.ur-callout {
    border: 1px solid var(--ur-line);
    border-left-width: 6px;
    background: #fff;
    padding: 14px 18px 12px;
    margin: 18px 0 16px;
    max-width: 46rem;
}
.ur-callout .ur-kicker { color: var(--sc-ink); margin-bottom: 8px; font-weight: 700; }
.ur-callout p:last-child { margin: 0; font-size: 1rem; line-height: 1.55; }
.ur-callout--notice { max-width: 60rem; margin-top: 22px; }
.ur-callout--notice p:last-child { font-family: var(--sc-font-display); font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.35; }
.ur-regime__server { font-family: var(--sc-font-mono); font-size: 11px; color: var(--sc-ink-soft); margin: -4px 0 10px; }
.ur-nearest { list-style: none; margin: 6px 0 10px; padding: 0; font-size: 0.86em; line-height: 1.45; }
.ur-nearest:empty { display: none; }
.ur-nearest__rule { border-left: 3px solid #2e6b45; padding: 3px 0 3px 10px; margin: 0 0 4px; }
.ur-nearest__rule--not-yet-in-effect { border-left-color: #8a7433; }
.ur-nearest__rule--already-superseded { border-left-color: #7c7268; }
.ur-nearest__rule b { font-weight: 700; }
.ur-nearest__rule span { color: var(--sc-ink-soft); font-family: var(--sc-font-mono); font-size: 10px; }

/* --- 8. The Part B boundary and the close --------------------------------- */
.ur-boundary .ur-col { padding-top: clamp(2rem, 6vw, 5rem); padding-bottom: clamp(2rem, 6vw, 5rem); }
.ur-boundary h2 {
    font-family: var(--sc-font-display);
    font-weight: 400;
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    line-height: 1.05;
    margin: 0 0 0.4em;
}
.ur-boundary ul { margin: 0; padding-left: 1.1em; }
.ur-plan {
    display: inline-block;
    font-family: var(--sc-font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid var(--ur-line);
    padding: 4px 10px;
    margin: 0 8px 8px 0;
    color: var(--sc-ink);
    text-decoration: none;
}
.ur-plan--on { background: var(--ur-line); color: #fff; }

/* The collapse. The chat layer slides off left, the servers' ground grows from
   the divider to the left edge (a plain backdrop on scaleX), the divider line
   itself travels to the edge, and the links live in the servers' column. */
.ur-close { --sc-p: 1; }
.ur-close-stage {
    /* Sticky and clipped by .sc-stage (scrollcraft.css); a position here would
       un-pin it, which is exactly what the first shoot found. The absolute
       layers below use the sticky stage as their containing block. */
    background: var(--ur-chat);
}
.ur-close__ground {
    position: absolute;
    inset: 0 0 0 50%;
    background: var(--ur-servers);
    transform-origin: right center;
    transform: scaleX(calc(1 + var(--sc-p)));
    will-change: transform;
}
.ur-close__line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: var(--ur-line);
    transform: translateX(calc(-50cqw * var(--sc-p)));
    will-change: transform;
}
.ur-close__chat {
    position: absolute;
    inset: 0 50% 0 0;
    display: flex;
    align-items: center;
    padding: 0 clamp(1rem, 3vw, 3rem);
    transform: translateX(calc(-100% * var(--sc-p)));
    opacity: calc(1 - var(--sc-p));
    will-change: transform;
}
.ur-close__chat > .ur-inner { max-width: 46rem; margin-left: auto; }
.ur-close__servers {
    position: absolute;
    inset: 0 0 0 50%;
    display: flex;
    align-items: center;
    padding: 0 clamp(1rem, 3vw, 3rem);
    transform: translateX(calc(-50cqw * var(--sc-p)));
    will-change: transform;
}
.ur-close-stage { container-type: inline-size; }
.ur-close__servers > .ur-inner { max-width: 46rem; }
.ur-close h2 {
    font-family: var(--sc-font-display);
    font-weight: 400;
    font-size: clamp(1.6rem, 3.2vw, 2.8rem);
    line-height: 1.05;
    margin: 0 0 0.4em;
}
.ur-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 0; }
.ur-cta {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid var(--ur-line);
    color: var(--sc-ink);
    text-decoration: none;
    font-size: 0.95rem;
}
.ur-cta--on { background: var(--ur-line); color: #fff; }
.ur-cta:hover { text-decoration: underline; }

/* The production note, in the servers' column after the collapse. */
.ur-colophon { padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 3rem); background: var(--ur-servers); }
.ur-colophon > .ur-inner { max-width: 60rem; }
.ur-colophon h2 { font-family: var(--sc-font-display); font-weight: 400; font-size: 1.6rem; margin: 0 0 0.5em; }
.ur-colophon .up-table { font-size: 0.86em; }
.ur-colophon .up-table th { text-align: left; }
.ur-colophon p { max-width: 70ch; }

/* --- 9. Phones, motion ------------------------------------------------------ */
@media (max-width: 900px) {
    .ur-split { grid-template-columns: 1fr; }
    .ur-divider { display: none; }
    .ur-hero .ur-col { min-height: 0; }
    .ur-col--chat > .ur-inner, .ur-col--servers > .ur-inner { margin: 0; }
    .ur-turn { min-height: 0; }
    .ur-col--servers::before {
        content: "The servers";
        display: block;
        font-family: var(--sc-font-mono);
        font-size: 10px;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--sc-ink-soft);
        margin: 0 0 10px;
    }
    .ur-col--chat::before {
        content: "The chat";
        display: block;
        font-family: var(--sc-font-mono);
        font-size: 10px;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--sc-ink-soft);
        margin: 0 0 10px;
    }
    .ur-hero .ur-col::before { content: none; }
    .ur-ruler { height: 360px; }
    .ur-close__chat { display: none; }
    .ur-close__ground, .ur-close__line { display: none; }
    .ur-close__servers { position: static; transform: none; padding: clamp(1.5rem, 5vw, 3rem) clamp(1rem, 3vw, 3rem); background: var(--ur-servers); }
    .ur-close-stage { position: static; height: auto; }
}
@media (max-width: 640px) {
    .ur-chip { width: 48px; }
    .ur-chip img { width: 48px; height: 48px; }
    .ur-chip { transform: translate(calc(var(--ur-x) * (100cqw - 48px)), calc(-1 * var(--ur-row) * 62px * var(--sc-p, 1))); }
    .ur-chip__label { font-size: 8px; }
    .ur-spine__tick:not(.ur-spine__tick--start):not(.ur-spine__tick--end) { display: none; }
    .ur-dial__control { grid-template-columns: minmax(0, 1fr) max-content; }
    .ur-dial__label { grid-column: 1 / -1; }
    .ps-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .ur-ruler-act, .ur-close { --sc-p: 1 !important; }
    .ur-chip, .ur-close__ground, .ur-close__line, .ur-close__chat, .ur-close__servers { will-change: auto; }
    .ur-divider { transition: none; }
}

/* --- Dark mode: this page stays light ------------------------------------
   The transcript is a printed object: cream chat column, cool servers column,
   dark ink, and a hundred-odd fixed colours in the panels. None of it has a
   dark counterpart, and under the device's dark setting the site's body went
   near-black while this sheet kept its light ink, so every run of text with
   no ground of its own landed as grey on black (John, phone, 2026-10-18).
   Rather than invent a second palette, the page pins the site's tokens back
   to their light values and tells the browser so; the header and footer
   follow, so the whole page reads as one light document. The values are the
   light set from style.css, repeated here because a token declared in a
   dark-media block there wins over the light :root unless re-declared later
   in the cascade, which this sheet is. */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: light;
        --color-bg: #ffffff;
        --color-text: #16181d;
        --color-muted: #5d6570;
        --color-border: #e3e6e2;
        --color-accent: #1f4d3d;
        --color-accent-strong: #163a2e;
        --color-accent-soft: #e9f2ec;
        --color-accent-contrast: #ffffff;
        --color-surface: #f6f7f4;
        --color-warning-bg: #fff7e6;
        --color-warning-border: #e8b93a;
        --color-success-bg: #eaf6ee;
        --color-success-text: #1f4d3d;
    }
    body {
        background:
            radial-gradient(1100px 480px at 50% -120px,
                #e6f1ea 0%, #f4f9f5 45%, rgba(255, 255, 255, 0) 78%) no-repeat,
            var(--color-bg);
    }
}
