/* ds.css: the compact system (UXR, owner 12 Nov 2026: "more compact, tidy layouts, little scrolling, the user should see most things at once").
   Loaded last, so a rule here meets an older rule of the same weight and wins by order. It adds no hue and no font: the tokens of styles.css stay, and a page's own
   colour (--c) is used more (see "colour and feel").
   One scale for everything a page draws:
     type   11 labels · 12 meta and hints · 13 body, buttons and list values (mono) · 14 card titles · 16 to 19 a stat's value (display) · 20 the page title · 26 a page's one headline
     gaps   4 · 8 · 12 · 16
     radii  20 the page card · 14 a card · 10 a control or a box inside a card · 999 a pill
   Every page rule starts at .ds, the page card's class (src/places/shell.js). A phone keeps its floors (12 px of type, 44 px controls): the smaller
   sizes are inside (min-width: 901px) and (pointer: fine). Nothing is hidden for good: long text sits behind a "?" or in a disclosure a tap opens. */
:root { --ds-card: #fff; --ds-sunk: rgba(42, 32, 24, 0.045); --ds-r: 14px; --ds-r-in: 10px; --ds-gap: 12px; --ds-pad: 14px; }

/* ---- the frame: the card starts right under the top bar, always at the same height, so the title does not jump from page to page; it grows down to the frame's foot and scrolls past it */
@media (min-width: 901px) {
  .apply.place { top: calc(66px + env(safe-area-inset-top, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .apply-card.place-card.ds { --pl-pad-l: 20px; --pl-pad-r: 20px; --pl-head-pt: 0px; margin-top: 0; margin-bottom: auto; padding: 0 20px 10px; border-radius: 20px; }
}
.apply-card.place-card.ds { gap: var(--ds-gap); }
/* ---- a short window (a 768 px laptop: the window is about 657 px high and the card 577): the same pages with less air, so most of them fit and the rest run a few
   lines over (measured 13 Nov at 1366 x 657: every page ran 6% to 25% past the card). Only gaps, paddings and row heights change here: no font and no control
   gets smaller. The owner's own window (777 px high) is not touched */
@media (min-width: 901px) and (max-height: 740px) {
  .apply-card.place-card.ds { --ds-gap: 8px; padding-bottom: 6px; }
  .ds .pl-head { min-height: 38px; }
  .ds .pl-body > .pl-stats > .pl-stat { gap: 0; padding-top: 5px; padding-bottom: 6px; }
  .ds :is(.pl-body, .pl-col, .pl-duo) > .pl-section { gap: 6px; padding-top: 9px; padding-bottom: 9px; }
  .ds .pl-kv > div { min-height: 22px; padding-top: 2px; padding-bottom: 2px; }
  .ds .lad { gap: 3px; }
}
/* owner, 12 Nov ("move the Local world button up, so the pages can run down to the menu's foot"): the local-world badge (made only in the local world) goes up into
   the top bar's row, left of the right-hand controls, and its drawer opens downwards; a page card then ends where the menu beside it ends, as it does in production */
@media (min-width: 901px) {
  body.has-side[data-mode]:has(.world-dev) .apply { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  body.has-side[data-mode] .world-dev { top: calc(16px + env(safe-area-inset-top, 0px)); bottom: auto; left: auto; right: calc(var(--bar-right) + 8px); }
  body.has-side[data-mode] .world-dev .drawer { top: calc(100% + 8px); bottom: auto; left: auto; right: 0; }
  body.has-side[data-mode]:has(.world-dev) .mode-bar { right: calc(var(--bar-right) + 128px); }
}

/* ---- the head: one row. The title, the page's kicker beside it, the lead behind a "?" (it was a paragraph on a wide window and not shown at all on a phone) */
.ds .pl-head { display: flex; flex-flow: row nowrap; align-items: center; gap: 10px; min-height: 44px; padding-top: 0; padding-bottom: 0; }
.ds .pl-head h1 { order: 1; flex: 0 1 auto; min-width: 0; margin: 0; font: 800 20px/1.3 var(--display); letter-spacing: -0.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds .pl-head .kicker { order: 2; flex: 0 1 auto; min-width: 0; margin: 0; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds .pl-head .qhint { order: 3; flex: none; margin-left: -2px; }
.ds .pl-head-tools { order: 4; flex: none; margin-left: auto; display: flex; align-items: center; gap: 6px; }
@container (max-width: 559px) { .ds .pl-head .kicker { display: none; } }
@media (max-width: 900px) { .ds .pl-head { min-height: 48px; } }

/* ---- the body: a wrapping row of cards, 12 px apart. A card says how many twelfths it wants (data-w); a card left alone on its row takes the whole row, so no row is
   half empty, and a row that gets too narrow for its cards breaks by itself (each card has a floor). Reading order is the order in the page: nothing is re-packed. */
.ds .pl-body { display: flex; flex-flow: row wrap; align-items: stretch; gap: var(--ds-gap); }
.ds .pl-body > *, .ds .pl-col > * { box-sizing: border-box; }
.ds .pl-body > * { flex: 1 1 100%; min-width: 0; }
.ds .pl-body > :is(.pl-section, .pl-step, .pl-hero):not([data-w]) { flex: 6 1 calc(50% - 6.5px); min-width: min(100%, 320px); }
.ds .pl-body > .pl-section:not([data-w]):has(.pl-list, .pl-goats, .lad, .pl-seg, .lb-table) { flex-basis: 100%; }
.ds .pl-body > [data-w] { flex: var(--w, 12) 1 calc((100% + 12px) * var(--w, 12) / 12 - 12.5px); min-width: min(100%, var(--wmin, 320px)); }
.ds .pl-body > [data-w="3"] { --w: 3; --wmin: 230px; }
.ds .pl-body > [data-w="4"] { --w: 4; --wmin: 280px; }
.ds .pl-body > [data-w="5"] { --w: 5; }
.ds .pl-body > [data-w="6"] { --w: 6; }
.ds .pl-body > [data-w="7"] { --w: 7; }
.ds .pl-body > [data-w="8"] { --w: 8; }
.ds .pl-body > [data-w="9"] { --w: 9; }
/* cards stacked beside a taller card */
.ds .pl-col { display: flex; flex-direction: column; gap: var(--ds-gap); min-width: 0; }
.ds .pl-col > * { flex: none; min-width: 0; }
.ds .pl-col > .fill { flex: 1 1 auto; }
/* a row of short cards inside a column (two cards over a slim one, beside a taller card); they stack when the column is narrow */
.ds .pl-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: var(--ds-gap); min-width: 0; }
.ds .pl-duo > * { box-sizing: border-box; min-width: 0; }

/* ---- a card: white, one hairline, one radius. A section that only holds entity cards (a list of Barns, goats, lots) is a group: a title over its cards, no box round boxes */
.ds :is(.pl-body, .pl-col, .pl-duo) > .pl-section { gap: 8px; padding: 12px var(--ds-pad); border-radius: var(--ds-r); background: var(--ds-card); border: 1px solid var(--line); }
.ds :is(.pl-body, .pl-col, .pl-duo) > .pl-section:has(> .pl-list:not(.pl-lines), > .pl-goats) { padding: 0; border: 0; border-radius: 0; background: none; }
.ds .pl-section > h3 { align-items: center; gap: 8px; font: 700 14px/1.3 var(--display); }
.ds .pl-section > h3 small { font-size: 11px; }
/* a card's title row when the card has its own small actions: title left, actions right, on one line */
.ds .pl-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.ds .pl-card-head > h3 { margin: 0; font: 700 14px/1.3 var(--display); }
.ds .pl-card-head > .pl-actions { gap: 4px 14px; }
/* an address in a title row: the whole of it, in mono; its label is for a screen reader (the card's title names it for the eye) */
.ds .pl-addr { display: flex; flex: 1 1 auto; min-width: 0; margin: 0; }
.ds .pl-addr dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ds .pl-addr dd { margin: 0; min-width: 0; font: 500 12.5px/1.3 var(--mono); overflow-wrap: anywhere; }
.ds .pl-entry { border-radius: var(--ds-r); }
/* a list inside a card: plain lines with a hairline between them */
/* align-items: a wide page's card grid (places.css .pl-list) starts its cards at the top; in a column of lines that left every line as wide as its own
   words, so the rules between them ended at different places. A line runs the whole width of its list */
.ds .pl-list.pl-lines { display: flex; flex-direction: column; gap: 0; align-items: stretch; }
.ds .pl-lines > .pl-entry { padding: 7px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.ds .pl-lines > .pl-entry:first-child { border-top: 0; padding-top: 0; }
.ds .pl-lines > .pl-entry:last-child { padding-bottom: 0; }
/* a form that is the card's own content needs no well of its own; a form inside an entity card keeps it */
.ds :is(.pl-body, .pl-col, .pl-duo) > .pl-section:not(:has(> .pl-list:not(.pl-lines), > .pl-goats)) > .pl-form { padding: 0; border-radius: 0; background: none; }
.ds .pl-form { border-radius: var(--ds-r-in); }
/* two small tools side by side inside one card: equal boxes, their buttons on one line; they stack when the card is narrow. A form in a pair keeps one column */
.ds .pl-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--ds-gap); align-items: stretch; min-width: 0; }
.ds .pl-pair > * { min-width: 0; }
.ds .pl-pair .pl-form:has(> .pl-quote) { display: flex; align-items: stretch; }
.ds .pl-form .row-max { flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.ds .pl-pair > .pl-form > .btn:last-child, .ds .pl-pair > .pl-col > .pl-form:last-child > .btn:last-child { margin-top: auto; }
.ds .pl-pair > .pl-col > .pl-form:last-child { flex: 1 1 auto; }

/* ---- the stat strip: ONE card with hairline cells (label, value, one sub-line). --k is how many cells a row takes; the cells of a short last row grow, so a row
   is never half empty. Inside a card the same stats are a plain grid: no box in a box */
.ds .pl-body > .pl-stats { --k: 2; display: flex; flex-flow: row wrap; gap: 0; border: 1px solid var(--line); border-radius: var(--ds-r); background: var(--ds-card); overflow: hidden; }
.ds .pl-body > .pl-stats > .pl-stat { box-sizing: border-box; flex: 1 1 calc(100% / var(--k) - 1px); min-width: 0; padding: 9px var(--ds-pad) 10px; gap: 2px; border-radius: 0; background: none; box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line); }
.ds .pl-body > .pl-stats > .pl-stat.hot { background: color-mix(in srgb, var(--c) 8%, #fff); }
.ds .pl-body > .pl-stats > .pl-stat b { font-size: 17px; }
@container (min-width: 560px) {
  .ds .pl-body > .pl-stats { --k: 3; }
  .ds .pl-body > .pl-stats:has(> :nth-child(2):last-child) { --k: 2; }
  .ds .pl-body > .pl-stats:has(> :nth-child(4):last-child), .ds .pl-body > .pl-stats:has(> :nth-child(7):last-child), .ds .pl-body > .pl-stats:has(> :nth-child(8):last-child) { --k: 4; }
}
@container (min-width: 940px) {
  .ds .pl-body > .pl-stats, .ds .pl-body > .pl-stats:has(> :nth-child(4):last-child) { --k: 6; }
  .ds .pl-body > .pl-stats:has(> :nth-child(7)) { --k: 4; }
  .ds .pl-body > .pl-stats:has(> :nth-child(9)) { --k: 5; }
  .ds .pl-body > .pl-stats > .pl-stat { padding-left: 12px; padding-right: 12px; }
  .ds .pl-body > .pl-stats > .pl-stat b { font-size: 16px; }
}
@container (min-width: 1100px) {
  .ds .pl-body > .pl-stats > .pl-stat { padding-left: var(--ds-pad); padding-right: var(--ds-pad); }
  .ds .pl-body > .pl-stats > .pl-stat b { font-size: 18px; }
}
@container (min-width: 1200px) { .ds .pl-body > .pl-stats > .pl-stat b { font-size: 19px; } }
.ds .pl-section .pl-stats { gap: 10px 16px; }
.ds .pl-section .pl-stat { padding: 0; border-radius: 0; background: none; }
.ds .pl-section .pl-stat.hot { padding: 6px 8px; border-radius: 8px; background: color-mix(in srgb, var(--c) 10%, #fff); }
.ds .pl-stat em { line-height: 1.35; }

/* ---- key and value lines (label left, value right, a hairline between) */
.ds .pl-kv { display: flex; flex-direction: column; margin: 0; }
.ds .pl-kv > div { display: flex; flex-flow: row wrap; align-items: baseline; justify-content: space-between; gap: 0 12px; min-height: 26px; padding: 4px 0; border-top: 1px solid var(--line); }
.ds .pl-kv > div:first-child { border-top: 0; }
.ds .pl-kv dt { font-size: 12.5px; color: var(--ink-2); }
/* a value too long to sit beside its label drops under it as one piece, still on the right: neither is squeezed into a narrow column */
.ds .pl-kv dd { margin: 0 0 0 auto; max-width: 100%; font: 500 13px/1.3 var(--mono); text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
/* a line of its own under a pair (a range, a rule, an owner): printed, in the body face */
.ds .pl-kv .pl-kv-note { flex: none; width: 100%; margin: 1px 0 0; font: 400 12px/1.4 var(--body); color: var(--ink-2); text-align: left; }
.ds .pl-kv dd .link { font: 500 12px/1.3 var(--body); }

/* ---- a legend: a colour, a name, a share, an amount on one line (the supply's parts). The colour is a one-part .supply-bar, so it is the bar's own */
.ds .pl-legend { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.ds .pl-legend > li { display: flex; align-items: center; gap: 10px; min-height: 25px; border-top: 1px solid var(--line); }
.ds .pl-legend > li:first-child { border-top: 0; }
.ds .pl-legend .supply-bar { flex: none; width: 10px; height: 10px; margin: 0; border-radius: 3px; }
.ds .pl-legend b { flex: 1 1 auto; min-width: 0; font: 500 12.5px/1.3 var(--body); color: var(--ink); }
.ds .pl-legend em { flex: none; width: 56px; font: 500 12px/1.3 var(--mono); color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
.ds .pl-legend li > span:last-child { flex: none; width: 96px; font: 500 12.5px/1.3 var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.ds .pl-section > .supply-bar { height: 12px; margin: 0; border-radius: 6px; }

/* ---- small charts: they take the room their card has left, so a card beside a taller one is not half empty */
.ds .pl-section > .pl-charts { flex: 1 1 auto; grid-template-rows: 1fr 1fr; gap: 8px; }
.ds .pl-curve { display: flex; flex-direction: column; gap: 2px; margin: 0; min-height: 0; }
.ds .pl-section > .pl-curve { flex: 1 1 auto; }
.ds .pl-curve svg { flex: 1 1 auto; height: 60px; min-height: 60px; }

/* ---- the page's own headline and its next step: two cards on one row */
.ds .pl-step { display: flex; flex-flow: row wrap; align-items: center; gap: 6px 12px; padding: 12px var(--ds-pad); border-radius: var(--ds-r); background: var(--ds-card); border: 1px solid var(--line); border-left: 4px solid var(--c, #4f6b8f); }
.ds .pl-step[data-tone="warn"] { border-left-color: #d99a1e; }
.ds .pl-step[data-tone="bad"] { border-left-color: var(--accent); }
.ds .pl-step[data-tone="ok"] { border-left-color: #3f8a3c; }
.ds .pl-step .mini-title { flex: 1 1 100%; }
.ds .pl-step p { flex: 1 1 240px; margin: 0; font-size: 13.5px; line-height: 1.4; }
.ds .pl-step .btn { flex: none; }
.ds .pl-hero { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 12px var(--ds-pad); border-radius: var(--ds-r); background: var(--ds-card); border: 1px solid var(--line); }
.ds .pl-big { font-size: 26px; }
.ds .pl-hero[data-trek] { flex-flow: row wrap; align-items: center; justify-content: flex-start; gap: 2px 14px; }
.ds .pl-hero[data-trek] > .mini-title { flex: 1 1 100%; }
.ds .pl-hero[data-trek] > .pl-big { flex: none; }
.ds .pl-hero[data-trek] > .pl-hint { flex: 1 1 260px; min-width: 0; }

/* ---- notes, states, controls: one radius, less air */
.ds .pl-connect { min-height: 36px; padding: 5px 6px 5px var(--ds-pad); border-radius: var(--ds-r-in); font-size: 13px; }
.ds .pl-warn, .ds .pl-error { padding: 8px 12px; border-radius: var(--ds-r-in); }
.ds .pl-empty { padding: 12px var(--ds-pad); border-radius: var(--ds-r); }
.ds .pl-hint, .ds .pl-dial { line-height: 1.45; }
.ds .btn, .ds .input, .ds .pl-seg { border-radius: var(--ds-r-in); }
.ds .pl-seg button { border-radius: 7px; }
/* a phone: a page's tabs stay on ONE row (three tabs took two rows; the labels may break inside their tab before the bar does) */
@media (max-width: 600px) {
  .ds .pl-body > .pl-seg[role="tablist"] { flex-wrap: nowrap; }
  .ds .pl-body > .pl-seg[role="tablist"] > button { flex: 1 1 auto; min-width: 0; padding-inline: 6px; }
}

/* a quote's line, everywhere as it is on a phone: the label left, the value right in one piece; a value too long for the line drops under its label
   (in a narrow quote box the older two-column grid broke "1,084.58 CSM" in the middle) */
.ds .pl-quote div:not(:has(> button)) { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1px 12px; }
.ds .pl-quote div:not(:has(> button)) > b { margin-left: auto; max-width: 100%; text-align: right; }

/* ---- a disclosure: long words wait behind one line (a tap or Enter opens it; the shell keeps it open across a redraw, by its data-more) */
.ds .pl-more { margin: 0; border-top: 1px solid var(--line); }
.ds .pl-more > summary { display: flex; align-items: center; gap: 8px; min-height: 30px; cursor: pointer; list-style: none; font: 600 12.5px/1.3 var(--body); color: var(--ink-2); }
.ds .pl-more > summary::-webkit-details-marker { display: none; }
.ds .pl-more > summary::before { content: ""; flex: none; width: 6px; height: 6px; margin: 0 2px 2px 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; rotate: -45deg; }
.ds .pl-more[open] > summary::before { rotate: 45deg; }
.ds .pl-more > :not(summary) { margin: 0 0 8px; }
.ds .pl-more:first-child { border-top: 0; }
@media (max-width: 900px), (pointer: coarse) { .ds .pl-more > summary { min-height: 44px; } }
/* a long paragraph of help: its first sentence, the rest under the chevron (src/places/blocks.js foldHints) */
.ds .pl-fold { margin: 0; min-width: 0; }
.ds .pl-fold > summary { display: block; cursor: pointer; list-style: none; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); border-radius: 4px; }
.ds .pl-fold > summary::-webkit-details-marker { display: none; }
.ds .pl-fold > summary::after { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 2px 2px 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; rotate: 45deg; }
.ds .pl-fold[open] > summary::after { rotate: -135deg; margin-bottom: -1px; }
.ds .pl-fold > .pl-hint { margin: 4px 0 0; }
@media (max-width: 900px), (pointer: coarse) { .ds .pl-fold > summary { padding: 6px 0; } }
/* CHECK-1116 finding 20: that line is 30 px high (one line of 12.5 px text and its 6 px above and below); on touch it has a 44 px hit area, with no taller row.
   Right under the summary of the disclosure it sits in (no gap between them), the area goes down only, so it takes none of that summary's taps */
@media (max-width: 900px), (pointer: coarse) {
  .ds .pl-fold > summary { position: relative; }
  .ds .pl-fold > summary::before { content: ""; position: absolute; inset: -7px 0; }
  .ds .pl-more > summary + .pl-fold > summary::before { inset: 0 0 -14px; }
}
/* the ladder: a band is two lines (its name and range; its bar and what is left), and one line on a wide card */
.ds .lad { gap: 5px; }
.ds .lad-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; }
.ds .lad-head { grid-column: 1 / -1; }
@container (min-width: 1150px) {
  .ds .lad-row { grid-template-columns: minmax(0, 360px) minmax(60px, 1fr) minmax(0, 190px); }
  .ds .lad-head { grid-column: auto; flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
  .ds .lad-note { text-align: right; }
}
/* a card beside a longer column keeps its own height (it does not stretch into an empty box) */
.ds .pl-body > .pl-section.pl-side { align-self: flex-start; }
.ds .pl-section.pl-side > .pl-curve svg { flex: none; height: 72px; }

/* ---- "Recent changes": a quiet pill at the right of the page's head (it was a strip of 39 px plus its gap under eight pages; before that a block of 106 px). Its list
   opens as the first card of the page, under the head. On a finger the pill keeps its look and gets a 44 px hit area */
.ds .pl-pill { position: relative; flex: none; display: inline-flex; align-items: center; min-height: 30px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 500 12px/1.3 var(--body); color: var(--ink-2); white-space: nowrap; cursor: pointer; }
.ds .pl-pill[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper-solid, #fff); }
.ds .pl-pill:focus-visible { outline: 2px solid var(--c-line, var(--ink)); outline-offset: 2px; }
.ds .pl-head > .pl-pill { order: 5; margin-left: auto; }
.ds .pl-head > .pl-head-tools + .pl-pill { margin-left: 0; }
@media (hover: hover) { .ds .pl-pill:not([aria-expanded="true"]):hover { border-color: rgba(42, 32, 24, 0.35); color: var(--ink); } }
@media (max-width: 900px), (pointer: coarse) { .ds .pl-pill::before { content: ""; position: absolute; inset: -7px -4px; } }
@media (min-width: 901px) and (pointer: fine) { .ds .pl-pill { min-height: 26px; padding: 3px 11px; } }

/* ---- a page's own tool in its head (spec.tools): one small button on the right of the title row */
.ds .pl-head-tools .btn { min-height: 44px; padding: 6px 12px; font-size: 13px; white-space: nowrap; }

/* ---- Records Hall (src/places/records.js): four tabs on one row; a group is a card that opens and shuts; a setting is a pair with its range under it and, on
   the right of that line, when a change takes effect; the long lists (the ledger's knobs, the registry's keys) run in columns when there is room */
@media (max-width: 600px) {
  .ds .pl-seg.rec-tabs { flex-wrap: nowrap; }
  .ds .pl-seg.rec-tabs button { flex: 1 1 auto; padding-inline: 6px; }
}
@container (min-width: 1180px) { .ds .pl-body > .rec-facts { --w: 3; --wmin: 250px; } }
.ds .rec-card > .rec-group { margin: 0; border-top: 0; min-width: 0; }
.ds .rec-card > .rec-group[open] > summary { margin-bottom: 2px; }
.ds .rec-card > .rec-group > summary small { font-size: 11px; }
.ds .rec-meta { font: 400 12px/1.3 var(--body); color: var(--ink-2); }
.ds .rec-line { display: flex; flex-flow: row wrap; align-items: center; justify-content: space-between; gap: 2px 10px; }
.ds .rec-foot { color: var(--ink-3); }
/* Records Hall: a record with a line under it (who owns it, a range) is two tight lines: the Contracts tab ran 32 px past the window, and Owner powers had 3 px to spare */
.ds .rec-card .pl-kv > div:has(> .pl-kv-note) { min-height: 0; padding-top: 3px; padding-bottom: 3px; }
.ds .rec-card .pl-kv > div > .pl-kv-note { margin-top: 0; line-height: 1.3; }
.ds .rec-wide .pl-kv { display: block; columns: 330px 2; column-gap: 28px; }
.ds .rec-wide .pl-kv > div { break-inside: avoid; }
.ds .rec-keys .pl-kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); column-gap: 28px; }
.ds .rec-wide .pl-kv > div, .ds .rec-keys .pl-kv > div { border-top: 0; border-bottom: 1px solid var(--line); }

/* ---- Gatehouse (src/places/gatehouse.js) */
/* Gatehouse (src/places/gatehouse.js): the colour of each leg beside its share in "Each Trek's split", the same colour as its part of the bar above (places.css .place-card i.t / i.p / i.v) */
.ds .gat-sw { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 2px; vertical-align: 1px; }

/* ---- Grazing (src/places/grazing.js, src/chain/grazeInfo.js) */
/* ---- Grazing (src/places/grazing.js, id goats): Stay active is one slim line under the stat strip (the date, its "?", What a reset takes, Check in now); the bound goats
   are one card of lines, a goat to a line on a wide card (its name, its Forage a day, its three money figures, its pill and Manage; its reset date on a second line). */
/* Stay active (src/chain/grazeInfo.js stayHtml): one wrapping row; an opened rule takes the row under it; a warning keeps its colour, an overdue date is in the warning's ink */
.ds .pl-body > .pl-section.gz-stay { flex-flow: row wrap; align-items: center; gap: 4px 12px; padding-top: 6px; padding-bottom: 6px; }
.ds .gz-stay > h3 { flex: none; margin: 0; }
.ds .gz-stay > .pl-warn { flex: none; margin: 0; padding: 3px 10px; }
.ds .gz-stay > .gz-when { flex: 1 1 auto; min-width: 0; margin: 0; }
.ds .gz-stay[data-stay="late"] > .gz-when { color: var(--accent); font-weight: 600; }
.ds .gz-stay > .pl-more { flex: none; border-top: 0; }
.ds .gz-stay > .pl-more[open] { order: 5; width: 100%; }
.ds .gz-stay > .pl-more[open] > .pl-hint { margin: 0 0 4px; }
.ds .gz-stay > .btn { flex: none; margin-left: auto; }
.ds .gz-stay[data-stay="warn"] { border-left: 4px solid #d99a1e; }
.ds .gz-stay[data-stay="late"] { border-left: 4px solid var(--accent); }

/* the bound goats: one card, a hairline between goats, the open goat tinted with a mark in the page colour */
.ds .pl-list.gz-herd { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: var(--ds-r); background: var(--ds-card); }
.ds .gz-herd > .pl-entry { gap: 6px; padding: 8px 12px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.ds .gz-herd > .pl-entry:first-child { border-top: 0; border-radius: var(--ds-r) var(--ds-r) 0 0; }
.ds .gz-herd > .pl-entry:last-child { border-radius: 0 0 var(--ds-r) var(--ds-r); }
.ds .gz-herd > .pl-entry:only-child { border-radius: var(--ds-r); }
.ds .gz-herd > .pl-entry.sel { background: color-mix(in srgb, var(--c) 5%, #fff); box-shadow: inset 3px 0 0 var(--c-line); }
.ds .gz-herd :is(.gz-fl, .gz-reset) { margin: 0; font-size: 12px; line-height: 1.4; color: var(--ink-3); }
.ds .gz-herd .gz-reset[data-soon] { color: var(--accent); font-weight: 600; }
.ds .gz-herd .pl-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@container (min-width: 600px) { .ds .gz-herd .pl-rows { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ds .gz-herd .pl-drops { margin-top: 0; }
@media (hover: hover) { .ds .gz-herd > .pl-entry:not(.sel):hover { background: color-mix(in srgb, var(--c) 4%, #fff); } }
/* a wide card: a goat is ONE line: its name, its three money figures, its drops, Manage. What an opened goat adds (its Forage line, its reset date, its
   actions, a form, its Bell) takes the width under the line; an opened list of drops takes the whole width too */
@container (min-width: 900px) {
  .ds .gz-herd > .pl-entry { display: grid; grid-template-columns: 28px minmax(150px, 1fr) minmax(0, 2.6fr) auto auto auto; align-items: center; gap: 4px 14px; padding: 7px 14px; }
  .ds .gz-herd > .pl-entry > * { grid-column: 1 / -1; min-width: 0; }
  .ds .gz-herd > .pl-entry > .pl-item-top { display: contents; }
  .ds .gz-herd > .pl-entry > .pl-item-top > canvas { grid-column: 1; grid-row: 1; }
  .ds .gz-herd > .pl-entry > .pl-item-top > .grow { grid-column: 2; grid-row: 1; }
  .ds .gz-herd > .pl-entry > .pl-rows { grid-column: 3; grid-row: 1; }
  .ds .gz-herd > .pl-entry > .pl-item-top > span { grid-column: 4; grid-row: 1; } /* the pill of a goat that is not grazing (a span; only places.css names its class) */
  .ds .gz-herd > .pl-entry > .pl-drops { padding-top: 0; border-top: 0; }
  .ds .gz-herd > .pl-entry > .pl-drops:not([open]) { grid-column: 5; grid-row: 1; }
  .ds .gz-herd > .pl-entry > .pl-item-top > .btn { grid-column: 6; grid-row: 1; }
  .ds .gz-herd > .pl-entry > :is(.gz-fl, .gz-reset) { grid-column: 2 / -1; }
}
/* a wide window with a mouse: the small sizes */
@media (min-width: 901px) and (pointer: fine) {
  .ds .gz-stay > .btn { min-height: 30px; padding: 5px 12px; font-size: 12.5px; }
  .ds .gz-herd .pl-drops summary { min-height: 24px; font-size: 12px; }
}

/* ---- Leaderboard (src/chain/censusUi.js leaderboardHtml) */
/* ---- Leaderboard (src/chain/censusUi.js leaderboardHtml; UXR 12 Nov): the stats and the tools (tabs, Find a wallet) on one row; the board is one card with its
   title row (window, Back, Next), your row as one tinted line, then the table (a wide window with a mouse, rows of 28 px) or two-line rows (a phone, a finger) */
.ds .lbd-bar { display: flex; flex-flow: row wrap; align-items: center; gap: 8px 12px; }
.ds .lbd-bar > .pl-seg { flex: none; }
.ds .lbd-bar > .pl-seg button { white-space: nowrap; }
.ds .lbd-bar > .pl-picker-bar { flex: 1 1 auto; min-width: min(100%, 260px); }
@media (max-width: 600px) { .ds .lbd-bar > .pl-seg { flex: 1 1 auto; } }
.ds .lbd-board > .pl-card-head > h3 small { font: 500 12px var(--mono); color: var(--ink-3); }
.ds .lbd-board > .pl-card-head > .pl-actions { align-items: center; }
/* your row: one tinted line, not a card in the card */
.ds .lbd-me { display: flex; flex-flow: row wrap; align-items: center; gap: 4px 10px; }
.ds .lbd-me > .pl-entry { flex: 1 1 auto; min-width: 0; padding: 6px 10px; border: 0; border-radius: var(--ds-r-in); background: color-mix(in srgb, var(--c) 10%, #fff); box-shadow: none; }
/* a wallet's line (the phone's list and your row): rank, wallet and the ranked figure; the counts and figures under it as one wrapping run */
.ds :is(.lb-cards, .lbd-me) > .pl-entry { gap: 3px; }
.ds :is(.lb-cards, .lbd-me) .pl-item-top { gap: 8px; }
.ds :is(.lb-cards, .lbd-me) .pl-item-top > .grow { flex-basis: auto; min-width: 0; }
.ds :is(.lb-cards, .lbd-me) .pl-item-top b { font: 600 13.5px/1.3 var(--body); }
.ds :is(.lb-cards, .lbd-me) .lb-line2 { display: block; font: 400 12px/1.4 var(--body); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.ds :is(.lb-cards, .lbd-me) .lb-line2 span { font: inherit; }
.ds .pl-list.pl-lines.lb-cards > .pl-entry.sel { background: color-mix(in srgb, var(--c) 10%, #fff); box-shadow: -8px 0 0 color-mix(in srgb, var(--c) 10%, #fff), 8px 0 0 color-mix(in srgb, var(--c) 10%, #fff); }
@media (min-width: 901px) and (pointer: fine) {
  /* the list is .pl-lines (the system shows it as a column), so the table's own switch needs the weight back */
  .ds .pl-list.pl-lines.lb-cards { display: none; }
  .ds .lbd-board > .pl-card-head > h3 small { font-size: 11.5px; }
  .ds .lbd-board > .pl-card-head .btn { min-height: 30px; padding: 4px 12px; font-size: 12.5px; }
  .ds .lbd-me > .pl-entry { flex-flow: row wrap; align-items: center; column-gap: 10px; padding: 3px 8px; }
  .ds .lbd-me .pl-item-top { flex: none; }
  .ds .lbd-me .pl-rank { min-width: 24px; height: 20px; }
  /* the card is the frame: the table has no box of its own; rows of 28 px */
  .ds .lbd-board .lb-table { border: 0; border-radius: 0; background: none; overflow: visible; }
  /* a list longer than the window: its column heads stay under the page's head while the rows scroll. Only on a card of 1000 px and more, where the table has no
     sideways scroller of its own: inside that scroller a sticky head stood 44 px down, over the second row (seen at 1280 x 720, 13 Nov) */
  .ds .lbd-board .lb-table thead th { background: linear-gradient(rgba(42, 32, 24, 0.045), rgba(42, 32, 24, 0.045)), #fff; }
  @container (min-width: 1000px) {
    .ds .lbd-board .lb-scroll { overflow: visible; }
    .ds .lbd-board .lb-table thead th { position: sticky; top: var(--pl-head-h, 44px); z-index: 2; }
  }
  .ds .lbd-board .lb-table th, .ds .lbd-board .lb-table td { height: 28px; }
  .ds .lbd-board .lb-table thead th { height: 26px; }
  .ds .lbd-board .lb-table td .pl-rank { min-width: 24px; height: 20px; font-size: 11.5px; }
  /* UXR (13 Nov): the two figures are one slim line beside the tools (they were tiles of 82 px, so the tools' row was 82 px too): the label, its "?" and the
     figure. The tile's third line is what the "?" already says, so it is kept for a screen reader only. src/places/leaderboard.js counts on this row (LB_ROOM) */
  .ds .pl-body > .pl-stats.lbd-stats { flex: 0 0 auto; min-width: 0; align-self: center; }
  .ds .pl-body > .lbd-bar { flex: 1 1 0; }
  .ds .pl-body > .pl-stats.lbd-stats > .pl-stat { flex: 0 0 auto; flex-direction: row; align-items: baseline; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .ds .pl-body > .pl-stats.lbd-stats > .pl-stat b { font-size: 15px; }
  .ds .pl-body > .pl-stats.lbd-stats > .pl-stat > em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (hover: hover) {
  .ds .lbd-board .lb-table tbody tr:not(.sel):hover > * { background: color-mix(in srgb, var(--c) 6%, #fff); }
}

/* ---- Registry (src/chain/censusUi.js registryHtml) */
/* ---- Registry (src/chain/censusUi.js registryHtml; UXR 12 Nov): the tabs (data-w 4) and the search (data-w 8) on one row; one card whose title row holds the window
   and the paging; a record is a line (name, state, holder, a Barn's balance) with its figures under it, read down three columns on a wide card, one column on a phone */
.ds .reg-board > .pl-card-head > h3 small { font: 500 12px var(--mono); color: var(--ink-3); }
.ds .reg-board > .pl-card-head > .pl-actions { align-items: center; gap: 4px 10px; font-size: 12.5px; color: var(--ink-2); }
.ds .pl-list.pl-lines.reg-list { display: block; columns: 300px 3; column-gap: 28px; }
.ds .pl-list.pl-lines.reg-list > .pl-entry { box-sizing: border-box; min-height: 44px; justify-content: center; gap: 2px; padding: 5px 0; border-top: 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.ds .pl-list.pl-lines.reg-list > .pl-entry.sel { background: color-mix(in srgb, var(--c) 10%, #fff); box-shadow: -6px 0 0 color-mix(in srgb, var(--c) 10%, #fff), 6px 0 0 color-mix(in srgb, var(--c) 10%, #fff); }
.ds .reg-list .pl-item-top { gap: 4px 8px; }
.ds .reg-list .pl-item-top > .grow { flex-basis: auto; min-width: 0; font-size: 12.5px; }
.ds .reg-list .pl-item-top b { font: 600 13.5px/1.3 var(--body); }
/* a record's name is never broken; its holder gives way first (an address is cut with an ellipsis, the whole of it is on its page); the figures under it are in
   the body face, so the line fits a column of 380 px */
.ds .reg-list .pl-item-top { flex-wrap: nowrap; }
.ds .reg-list .pl-item-top > b { flex: none; white-space: nowrap; }
.ds .reg-list .pl-item-top > .grow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds .reg-list > .pl-entry > .meta { font: 400 12px/1.35 var(--body); font-variant-numeric: tabular-nums; color: var(--ink-2); }
@media (min-width: 901px) and (pointer: fine) {
  .ds .reg-board > .pl-card-head > h3 small { font-size: 11.5px; }
  .ds .reg-board > .pl-card-head .btn { min-height: 30px; padding: 4px 12px; font-size: 12.5px; }
  .ds .pl-list.pl-lines.reg-list > .pl-entry { min-height: 0; padding: 4px 0; }
}
@media (hover: hover) {
  .ds .pl-list.pl-lines.reg-list > .pl-entry:not(.sel):hover { background: color-mix(in srgb, var(--c) 6%, transparent); box-shadow: -6px 0 0 color-mix(in srgb, var(--c) 6%, transparent), 6px 0 0 color-mix(in srgb, var(--c) 6%, transparent); }
}

/* ---- Auctions (src/places/auctions.js) */
/* Auctions (src/places/auctions.js, UXR): the order filler's form opens inside a disclosure on the Permit card's "Your orders" tab; it is the card's own
   content there, so it takes no well of its own (no box inside a box). */
.ds [data-lot="permits"] > .pl-more > .pl-form { padding: 0; border-radius: 0; background: none; }

/* ---- Trek (src/places/trek.js): the Trek and the Season beside a column: issuance and your share side by side, the settle as one slim card under them (its
   words left, its button right). A shut button's reason is the card's own line, so the shell prints no second one */
.ds .pl-col > .pl-section.trk-settle { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center; align-items: center; gap: 2px 14px; }
.ds .trk-settle > h3, .ds .trk-settle > .pl-hint { grid-column: 1; margin: 0; }
.ds .trk-settle > .btn { grid-column: 2; grid-row: 1 / span 2; }
.ds .trk-settle > .why { grid-column: 1 / -1; }
@container (max-width: 559px) {
  .ds .pl-col > .pl-section.trk-settle { grid-template-columns: minmax(0, 1fr); }
  .ds .trk-settle > .btn { grid-column: 1; grid-row: auto; }
}
/* Trek, the lower card (UXR, 13 Nov): ONE card with three tabs (the past Treks, the public jobs, the public upkeep). The tabs, the chosen tab's own words and its
   button share the head row; a tab's list has the card's whole width, so on a wide window a job is one line and two short rows stand side by side */
.ds .trk-more > .pl-card-head { justify-content: flex-start; gap: 6px 12px; }
.ds .trk-more > .pl-card-head > .pl-seg { flex: none; max-width: 100%; }
.ds .trk-more > .pl-card-head > .pl-seg button { white-space: nowrap; }
.ds .trk-more > .pl-card-head > .trk-what { min-width: 0; font: 500 11.5px/1.5 var(--mono); color: var(--ink-3); }
.ds .trk-more > .pl-card-head > :is(.btn, .trk-acts) { margin-left: auto; }
.ds .trk-acts { display: flex; flex-flow: row wrap; align-items: center; justify-content: flex-end; gap: 4px 14px; }
.ds .trk-acts > .link { font-size: 12.5px; }
.ds .trk-pane { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ds .trk-pane .pl-item-top b { font: 600 13.5px/1.35 var(--body); }
@media (max-width: 900px) {
  .ds .trk-more > .pl-card-head > .pl-seg { flex-wrap: nowrap; width: 100%; }
  .ds .trk-more > .pl-card-head > .pl-seg button { flex: 1 1 auto; min-width: 0; padding-inline: 6px; }
}
@container (min-width: 760px) {
  .ds .trk-more { min-height: 174px; }
  .ds .trk-pane .pl-lines > .pl-entry { padding: 4px 0; }
  .ds .trk-pane .pl-lines > .pl-entry:first-child { padding-top: 0; }
  .ds .trk-pane .pl-item-top > .grow { display: flex; flex-flow: row wrap; align-items: baseline; gap: 0 14px; }
  .ds .trk-pane .pl-item-top > .grow > * { min-width: 0; }
  .ds .trk-pane .pl-list.pl-lines.trk-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .ds .trk-pane .trk-rows > .pl-entry, .ds .trk-pane .trk-rows > .pl-entry:first-child { padding: 4px 0; border-top: 1px solid var(--line); }
  .ds .trk-pane .pl-lines + .trk-rows { margin-top: -8px; }
}

/* ---- Hay Bales (src/places/haybales.js): a Bale is one line: its icon, name and maturity, its four figures side by side, its rate, its small buttons at the
   right; on a narrow card the parts wrap to further lines in the same order (the name keeps room to be read) */
.ds .hay-bale > .pl-item-top { flex-wrap: wrap; row-gap: 6px; }
.ds .hay-bale > .pl-item-top > .grow { min-width: min(100%, 170px); }
.ds .hay-bale .hay-figs { display: flex; flex-flow: row wrap; gap: 4px 18px; }
/* ---- Auctions: the history a reader opens is three lists side by side on a wide card (Barns sold, Permit stalls bought, past rolls), each plain lines:
   the name and its figure on one line, the details under them. It was thirteen full-width cards under each other, 800 px of mostly empty rows */
.ds .hist-cols { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 12px 28px; }
.ds .hist-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ds .hist-col .pl-lines > .pl-entry { padding: 5px 0; }
.ds .hist-col .pl-item-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 0 10px; }
.ds .hist-col .pl-item-top > .grow { display: contents; }
.ds .hist-col .pl-item-top > .grow > b { grid-column: 1; grid-row: 1; min-width: 0; }
/* the row's figure (its pill, the last thing in the row): named by its place, since only places.css may style the pill itself (fx4-tagclass) */
.ds .hist-col .pl-item-top > :last-child { grid-column: 2; grid-row: 1; }
.ds .hist-col .pl-item-top > .grow > .meta { grid-column: 1 / -1; grid-row: 2; }
@container (min-width: 900px) { .ds .hist-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* the maturity ladder under the rate: its dates run in columns across the card (each date was a line of its own in a list 210 px wide) */
.ds .pl-list.pl-lines.hay-lad { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 24px; }
.ds .hay-lad > .pl-entry { padding: 5px 0; }

/* ---- Barns (src/places/barns.js, UXR 12 Nov): the strip and "Stay active" share the first row (half and half); a Barn is a card of two lines (its name, pill and ten
   stalls; its three money lines and its buttons), two to a row on a wide card; the rest of a Barn is under Manage; drops, closed Barns, Deed transfers and
   "For a Safe" are one row of disclosures at the foot (data-w="3" each while shut) */
/* Stay active: the title, the earliest date and Check in now on one line; a warning, a failed read and "The 90-day rule" under it, across the card */
.ds .pl-body > .pl-step.brn-stay { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t b" "w w"; align-items: center; gap: 6px 12px; }
@container (min-width: 1100px) { .ds .pl-body > .pl-step.brn-stay { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "t w b"; } }
.ds .brn-stay > h3 { grid-area: t; margin: 0; font: 700 14px/1.3 var(--display); white-space: nowrap; }
.ds .brn-stay > .brn-when { grid-area: w; margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.ds .brn-stay > .btn { grid-area: b; justify-self: end; }
.ds .brn-stay > :nth-child(n + 4) { grid-column: 1 / -1; margin: 0; }
.ds .brn-stay > .pl-more { border-top: 1px solid var(--line); }
/* the list: two cards to a row once a card can be 520 px wide; the open card spans the row (places.css) */
.ds .brn-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); }
/* line 1: the stalls take their own row on a narrow card, a fixed strip beside the name on a wider one */
.ds .brn-barn > .pl-item-top { flex-wrap: wrap; row-gap: 8px; }
.ds .brn-barn > .pl-item-top > .stalls { width: 100%; gap: 3px; }
@container (min-width: 560px) { .ds .brn-barn > .pl-item-top > .stalls { width: 190px; } }
/* line 2: the money lines as short pairs (label over value), the buttons on the right */
.ds .brn-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
@container (min-width: 560px) { .ds .brn-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; } }
.ds .brn-barn > .brn-line > .brn-figs { display: flex; flex-wrap: wrap; gap: 4px 16px; min-width: 0; }
.ds .brn-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.ds .brn-acts .btn { white-space: nowrap; }
/* a wide page (two cards to a row): the buttons go up beside the stalls, so the three money lines have the whole second line and none drops under the others */
@container (min-width: 1100px) {
  .ds .brn-barn { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; }
  .ds .brn-barn > * { grid-column: 1 / -1; min-width: 0; }
  .ds .brn-barn > .pl-item-top { grid-column: 1; grid-row: 1; }
  .ds .brn-barn > .brn-line { display: contents; }
  .ds .brn-barn > .brn-line > .brn-acts { grid-column: 2; grid-row: 1; }
  .ds .brn-barn > .brn-line > .brn-figs { grid-column: 1 / -1; grid-row: 2; }
}
/* the opened Barn's actions: the "?" of a shut button sits beside it, the reason the shell prints goes under the row */
.ds .brn-do > .pl-actions > .qhint { order: 2; flex: none; align-self: center; }
.ds .brn-do > .pl-actions > .why { order: 3; }
/* the opened Barn: what it has (left) beside what to do (right) on a wide page; one column under each other when the card is narrow */
.ds .brn-open { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ds .brn-open > * { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
@container (min-width: 1100px) {
  .ds .brn-open { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: 8px 24px; }
  .ds .brn-about > .brn-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* the Goats form: its groups of goats (in this Barn, grazing, in the wallet) stand side by side, each under its own title */
  .ds .brn-do > .pl-form:has(> .pl-goats ~ .pl-goats) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 6px 16px; }
  .ds .brn-do > .pl-form:has(> .pl-goats ~ .pl-goats) > * { grid-column: 1 / -1; min-width: 0; }
  .ds .brn-do > .pl-form:has(> .pl-goats ~ .pl-goats) > .mini-title { grid-column: auto; grid-row: 2; }
  .ds .brn-do > .pl-form:has(> .pl-goats ~ .pl-goats) > .pl-goats { grid-column: auto; grid-row: 3; }
}
/* the foot row of disclosures */
.ds .pl-body > .brn-fold { border-top: 1px solid var(--line); }

/* ---- a single record's page (one Barn, one goat, one wallet: src/places/barnview.js, goatview.js, src/chain/censusUi.js walletHtml). Its head is ONE row: the
   picture, the name and its state, then the holder's own button and the page's two links on the right. No second title, no full-width button under the page */
.ds .pl-body > .vw-head { display: flex; flex-flow: row wrap; align-items: center; gap: 6px 12px; padding: 10px var(--ds-pad); border-radius: var(--ds-r); background: color-mix(in srgb, var(--c) 5%, var(--ds-card)); border: 1px solid var(--line); }
.ds .vw-head > .pl-art { width: 44px; height: 44px; margin: 0; }
.ds .vw-head > .pl-big { min-width: 0; margin: 0; font-size: 20px; line-height: 1.25; }
.ds .vw-head > .pl-big code.rec-addr { font-size: 17px; }
.ds .vw-head > .pl-big .link { font: 500 12.5px/1.3 var(--body); letter-spacing: 0; }
.ds .vw-head > .pl-actions { margin-left: auto; align-items: center; gap: 6px 14px; }
.ds .vw-head[data-state="none"] > .pl-big, .ds .vw-head[data-state="unread"] > .pl-big { font-size: 16px; }
/* a holder in a stat: its address, Copy and the explorer link are small type, never the value's display face */
.ds .pl-body > .pl-stats > .pl-stat b:has(> code.rec-addr) { font: 500 12.5px/1.6 var(--body); letter-spacing: 0; }
.ds .pl-body > .pl-stats > .pl-stat b:has(> code.rec-addr) > b { font: 600 12px/1.6 var(--body); color: var(--c-ink); }
/* six figures beside a card: three to a row */
@container (min-width: 900px) {
  .ds .pl-body > .pl-stats.three[data-w] { --k: 3; }
  .ds .pl-body > .pl-stats.three[data-w] > .pl-stat > b:not(:has(> code.rec-addr)) { font-size: 16px; }
}
/* a wallet's Barns and goats: a line each, the name left and its figures right, in columns when there are many */
.ds .pl-list.pl-lines.vw-list { display: block; columns: 240px 3; column-gap: 24px; }
.ds .pl-list.pl-lines.vw-list > .pl-entry { box-sizing: border-box; padding: 6px 0; border-top: 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.ds .vw-list .pl-item-top { flex-wrap: wrap; gap: 2px 10px; }
.ds .vw-list .pl-item-top b { font: 600 13px/1.3 var(--body); }
.ds .vw-list .pl-item-top .meta { margin-left: auto; font-size: 12px; text-align: right; }
@media (min-width: 901px) and (pointer: fine) {
  .ds .vw-head > .pl-actions > .btn { min-height: 30px; padding: 5px 12px; font-size: 12.5px; }
  .ds .pl-list.pl-lines.vw-list > .pl-entry { padding: 4px 0; }
}

/* ---- an opened Barn's or goat's form runs in two columns on a wide page: the fields left, the quote right. The form is half as tall, and a
   stepper no longer sits alone in a line 1200 px wide. A warning and the button keep the whole width under them */
@container (min-width: 1100px) {
  .ds :is(.brn-do, .gz-herd > .pl-entry.sel) > .pl-form:has(> .pl-field):has(> .pl-quote) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 10px 28px; }
  .ds :is(.brn-do, .gz-herd > .pl-entry.sel) > .pl-form:has(> .pl-field):has(> .pl-quote) > * { grid-column: 1 / -1; min-width: 0; }
  .ds :is(.brn-do, .gz-herd > .pl-entry.sel) > .pl-form:has(> .pl-field):has(> .pl-quote) > .pl-field { grid-column: 1; }
  .ds :is(.brn-do, .gz-herd > .pl-entry.sel) > .pl-form:has(> .pl-field):has(> .pl-quote) > .pl-quote { grid-column: 2; grid-row: 1 / span 2; }
}

/* ---- a goat's wallet form is two halves on a wide page: what its wallet holds, the sweep and its allowances on the left; Goat Street (the rewards, the
   registration, the election) on the right. As one column it was a screen and a half tall, with the quote alone at the top right */
.ds .gz-wal > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
@container (min-width: 1100px) {
  .ds .gz-herd > .pl-entry.sel > .pl-form.gz-wal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 10px 28px; }
}

/* ---- several warnings in a row read as ONE block (five boxes under each other were a wall): the gap between them closes, only the block's ends are round */
.ds .pl-form > .pl-warn + .pl-warn { margin-top: -10px; padding-top: 2px; border-top-left-radius: 0; border-top-right-radius: 0; }
.ds .pl-form > .pl-warn:has(+ .pl-warn) { padding-bottom: 4px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
/* an opened goat's cash-out on a wide page: what it pays (the quote) on the left, what to know first (the warnings) on the right, the button under both */
@container (min-width: 1100px) {
  .ds .gz-herd > .pl-entry.sel > .pl-form:has(> .pl-quote):has(> .pl-warn):not(:has(> .pl-field)) { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: 10px 28px; }
  .ds .gz-herd > .pl-entry.sel > .pl-form:has(> .pl-quote):has(> .pl-warn):not(:has(> .pl-field)) > * { grid-column: 2; min-width: 0; }
  .ds .gz-herd > .pl-entry.sel > .pl-form:has(> .pl-quote):has(> .pl-warn):not(:has(> .pl-field)) > .pl-quote { grid-column: 1; grid-row: 1 / span 4; }
  .ds .gz-herd > .pl-entry.sel > .pl-form:has(> .pl-quote):has(> .pl-warn):not(:has(> .pl-field)) > .btn { grid-column: 1 / -1; }
}

/* ---- colour and feel (owner, 12 Nov: simpler, more attractive colour, hovers and effects, fewer words, no clutter). A page takes the colour of its place (--c, the
   colour of its icon in the menu): the title band, the chosen tab, the cap of the stat strip, the charts. No new hue: the place colours and the pills' own tones.
   The numbers that matter are bigger and in the display face. A "?" is a quiet ring until it is pointed at. A hover is for a mouse (hover: hover) and moves nothing;
   the one entrance (a page or a tab coming in, the shell's ds-in) is off under reduced motion. */
/* the card takes its page's colour (the shell sets --c on the page's root; places.css gave every card the same brown). --c is for fills, tints and edges; --c-line
   is the same colour deep enough for a line or a mark on white (3 to 1 for every place colour); --c-ink deep enough for small text, or for white text on it (4.5 to 1) */
.apply-card.place-card.ds { --c: inherit; --c-line: color-mix(in srgb, var(--c) 82%, var(--ink)); --c-ink: color-mix(in srgb, var(--c) 60%, var(--ink)); }
.ds .pl-head .kicker { color: var(--c-ink); }
.ds .chip.on { background: var(--c-ink); border-color: var(--c-ink); }
.ds .pl-curve { color: var(--c-line); }
.ds .pl-meter i { background: var(--c-line); }
.ds .xfocus { outline-color: var(--c-line); }
.ds .pl-goat-tile[aria-pressed="true"] { border-color: var(--c-line); }
.ds .pl-goat-tile[aria-pressed="true"]::after { color: var(--c-ink); }
.ds .pl-entry.sel { border-color: var(--c-line); }
/* an opened entry is brought into view (blocks.js reveal): a little air under it, the head's own height above it (the card's scroll-padding) */
.ds .pl-entry.sel, .ds .auc-hist, .ds .trk-more { scroll-margin-bottom: 10px; }
/* a card has a margin of the head's height for a jump to its title (places.css .pl-section); the card's scroll-padding gives that room already, and both
   together would leave the opened card 60 px short of the top */
.ds .auc-hist, .ds .trk-more { scroll-margin-top: 0; }
.ds .pl-head { background: color-mix(in srgb, var(--c) 9%, var(--paper-solid)); }
.ds .pl-seg button { transition: background-color 0.15s, color 0.15s, box-shadow 0.15s; }
.ds .pl-seg button[aria-selected="true"] { background: color-mix(in srgb, var(--c) 9%, #fff); box-shadow: 0 1px 3px rgba(42, 32, 24, 0.12), inset 0 0 0 1px color-mix(in srgb, var(--c) 32%, transparent); }
.ds .pl-body > .pl-stats { border-top: 2px solid color-mix(in srgb, var(--c) 62%, #fff); }
.ds .pl-stat b { font: 700 16px/1.2 var(--display); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.ds .qhint { background: none; box-shadow: inset 0 0 0 1px rgba(42, 32, 24, 0.22); color: var(--ink-3); }
.ds .qhint:focus-visible, .ds .qhint[aria-describedby] { background: var(--ink); box-shadow: none; color: var(--paper-solid, #fff); }
.ds :is(.pl-body, .pl-col, .pl-duo) > .pl-section, .ds .pl-body > .pl-stats > .pl-stat, .ds .pl-kv > div, .ds .pl-legend > li { transition: background-color 0.15s, border-color 0.18s, box-shadow 0.18s; }
@media (hover: hover) {
  .ds .qhint:hover { background: var(--ink); box-shadow: none; color: var(--paper-solid, #fff); }
  .ds :is(.pl-body, .pl-col, .pl-duo) > .pl-section:not([data-recent-changes]):not(:has(> .pl-list:not(.pl-lines), > .pl-goats)):hover { border-color: color-mix(in srgb, var(--c) 34%, var(--line)); box-shadow: 0 6px 18px rgba(70, 45, 20, 0.07); }
  .ds .pl-body > .pl-stats > .pl-stat:hover { background: color-mix(in srgb, var(--c) 6%, #fff); }
  .ds .pl-kv > div:hover, .ds .pl-legend > li:hover { background: color-mix(in srgb, var(--c) 6%, transparent); box-shadow: -6px 0 0 color-mix(in srgb, var(--c) 6%, transparent), 6px 0 0 color-mix(in srgb, var(--c) 6%, transparent); }
}
@keyframes ds-in { from { opacity: 0; transform: translateY(6px); } }
.ds.ds-in .pl-body > * { animation: ds-in 0.26s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.ds.ds-in .pl-body > :nth-child(2) { animation-delay: 0.03s; }
.ds.ds-in .pl-body > :nth-child(3) { animation-delay: 0.06s; }
.ds.ds-in .pl-body > :nth-child(4) { animation-delay: 0.09s; }
.ds.ds-in .pl-body > :nth-child(5) { animation-delay: 0.12s; }
.ds.ds-in .pl-body > :nth-child(n + 6) { animation-delay: 0.15s; }
@media (prefers-reduced-motion: reduce) { .ds.ds-in .pl-body > * { animation: none; } }

/* ---- a wide window with a mouse: the small sizes */
@media (min-width: 901px) and (pointer: fine) {
  .ds .pl-stat span { font-size: 11px; }
  .ds .pl-stat em { font-size: 11px; }
  .ds .pl-hint, .ds .pl-dial, .ds .pl-fold > summary { font-size: 12px; }
  .ds .pl-head-tools .btn, .ds .brn-acts .btn, .ds .gz-herd > .pl-entry > .pl-item-top > .btn, .ds .trk-settle > .btn, .ds .pl-card-head > .btn, .ds .trk-acts > .btn { min-height: 30px; padding: 5px 12px; font-size: 12.5px; }
  .ds .rec-card > .rec-group > summary { min-height: 22px; padding: 0; }
}
