/* GENERATED by tools/build-website-guides.py from tools/web_mockups/*.css, in name order.
   Do not edit it here: edit the plugin's own .css and rebuild. */

/* ── tools/web_mockups/assay.css ── */
/* assay.py's kinds (prefix asy-). Every rule sits under .story; colours and sizes are the window's tokens (the
   WEB-THEME block of site.css, --w-*): never a raw hex. The shared pieces — the title bar, the app header, the kit's
   buttons, chips, segmented track, search box, table, group rows and statuses — are site.css's, used as they are. */

/* the stage and the window (BimInspectorWindow: 1500 wide, so the whole stage; the body's 28,10,28,18) */
.story .asy-stage { width: 100%; display: flex; justify-content: center; min-width: 0; }
.story .asy-win { width: 100%; }
.story .asy-body { padding: 10px 28px 18px; display: flex; flex-direction: column; min-width: 0;
  font-size: var(--w-fs-body); color: var(--w-text-primary); }

/* the header: the stamp under the sentence (12.5, secondary, «  ·  » tertiary) and the health badge, centred on the
   header's height (Grid.Column 1, VerticalAlignment Center): BgSurface, StrokeSubtle, corner 12, 16,8 */
.story .asy-win .apphdr-end { grid-row: 1 / span 2; align-self: center; }
.story .asy-win .apphdr-ctx { font-size: 12.5px; }
.story .asy-hl2 { color: var(--w-text-secondary); }
.story .asy-hl3 { color: var(--w-text-tertiary); white-space: pre; }
.story .asy-badge { display: inline-flex; align-items: center; padding: 8px 16px; border-radius: var(--w-radius-card);
  background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle); white-space: nowrap; }
.story .asy-hdot { flex: none; width: 9px; height: 9px; margin-right: 9px; border-radius: 50%; background: var(--w-success); }
.story .asy-hdot.warn { background: var(--w-warning); }
.story .asy-hdot.bad { background: var(--w-danger); }
.story .asy-badge b { font-size: 20px; font-weight: var(--w-fw-bold); line-height: 1; color: var(--w-text-primary); }
.story .asy-badge > span { margin-left: 4px; font-size: 11.5px; color: var(--w-text-tertiary); white-space: pre; }

/* the KPI tiles (KpiTile: 120 tall, Radius.Card, Shadow.Card, 20,20,20,16; the count 36 bold, the label 11 semibold,
   the 4-px stripe in the severity's brush) */
.story .asy-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.story .asy-kpi { position: relative; box-sizing: border-box; height: 120px; padding: 20px 20px 20px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; background: var(--w-bg-surface);
  border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-card); box-shadow: var(--w-shadow-card); }
.story .asy-kpi b { font-size: 36px; font-weight: var(--w-fw-bold); line-height: 1.15; color: var(--w-text-primary);
  font-variant-numeric: tabular-nums; }
.story .asy-kpi span { margin-top: 6px; font-size: 11px; font-weight: var(--w-fw-semibold); color: var(--w-text-secondary); }
.story .asy-kpi i { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--w-text-tertiary); }
.story .asy-kpi.crit i { background: var(--w-danger); }
.story .asy-kpi.err i { background: var(--w-warning); }
.story .asy-kpi.warn i { background: var(--w-severity-minor); }
.story .asy-kpi.inv i { background: var(--w-accent); }

/* the toolbar: the mode track, then the search box filling the row with the row count over its right end */
.story .asy-bar { display: flex; align-items: center; gap: 12px; margin-top: 16px; min-width: 0; }
.story .asy-bar .seg { flex: none; }
.story .asy-search { flex: 1 1 auto; min-width: 0; padding-right: 12px; }
.story .asy-search > span.asy-q { color: var(--w-text-primary); }
.story .asy-search > em { flex: none; margin-left: auto; padding-left: 12px; font-style: normal; font-size: 11.5px;
  color: var(--w-text-tertiary); }

/* the filter row (a WrapPanel): the chips, the 1×20 divider (4,0,10,0), the filter chips with their funnel, Clear */
.story .asy-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.story .asy-div { flex: none; width: 1px; height: 20px; margin: 0 10px 0 4px; background: var(--w-stroke-subtle); }
.story .asy-filters > .hbtn { margin-left: 4px; }
.story .mk-chip.asy-fchip > svg { flex: none; width: var(--w-size-icon-in-button-compact); height: var(--w-size-icon-in-button-compact); }
/* Warning's dot is SeverityMinor, the yellow — the kit's tones stop at Warning's amber */
.story .mk-chip.dot.asy-minor::before, .story .mk-status.asy-minor::before { background: var(--w-severity-minor); }

/* the content card (CornerRadius 8) and its tables: fixed columns, one line a cell, trimmed */
.story .asy-content { position: relative; margin-top: 12px; min-width: 0; }
.story .asy-content > .mk-table { border-radius: var(--w-radius-medium); }
.story .asy-grid table.dg { table-layout: fixed; width: 100%; }
.story .asy-grid thead th { overflow: hidden; text-overflow: ellipsis; }
.story .asy-grid tbody td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .asy-grid tbody tr.grp td { overflow: visible; }
/* GridGroups.HeaderTemplate: the kind's area after the count, AppleText.CellSecondary, 12 after the fold's block */
.story .asy-garea { margin-left: 12px; font-size: var(--w-fs-callout); font-weight: var(--w-fw-regular);
  color: var(--w-text-secondary); }
/* a crop that goes on below: the table fades out */
.story .asy-cut > .mk-table { -webkit-mask-image: linear-gradient(to bottom, var(--w-text-primary) 72%, transparent);
  mask-image: linear-gradient(to bottom, var(--w-text-primary) 72%, transparent); }

/* what lies over the table: the inline progress (ProgressOverlay, BgSurface), the first-run and no-match states */
.story .asy-veiled > .mk-table { min-height: 300px; }
/* the menu opens downwards from its row: the card is the window's, taller than two findings */
.story .asy-content:has(> .asy-menu) > .mk-table { min-height: 250px; }
.story .asy-prog, .story .asy-state { position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; border-radius: var(--w-radius-medium); }
.story .asy-prog { background: var(--w-bg-surface); }
.story .asy-pin { width: 420px; max-width: calc(100% - 32px); }
.story .asy-ph { font-size: 13px; font-weight: var(--w-fw-semibold); color: var(--w-text-primary); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.story .asy-pbar { height: 6px; margin-top: 12px; border-radius: 3px; overflow: hidden; background: var(--w-stroke-subtle); }
.story .asy-pbar > i { display: block; height: 100%; border-radius: 3px; background: var(--w-accent); }
.story .asy-pf { display: flex; align-items: flex-start; justify-content: space-between; margin-top: 8px;
  font-size: 11.5px; color: var(--w-text-tertiary); }
.story .asy-state { flex-direction: column; padding: 36px 24px 0; text-align: center; }
.story .asy-glyph { font-size: 42px; line-height: 1.1; color: var(--w-text-tertiary); }
.story .asy-et { margin: 10px 0 4px; font-size: 17px; font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .asy-eb { max-width: 420px; font-size: 12px; line-height: 1.45; color: var(--w-text-secondary); }
.story .asy-state > .hbtn { margin-top: 16px; min-width: var(--w-size-button-min-width-wide); justify-content: center; }
.story .asy-nmt { font-size: 13px; color: var(--w-text-secondary); }
.story .asy-state.asy-nm > .hbtn { margin-top: 8px; min-width: 0; }

/* the row's context menu (AppleContextMenu), opened at the pointer on the first finding's lower edge: under the
   row's words, never through them */
.story .asy-menu { position: absolute; left: 30%; top: 106px; z-index: 3; display: flex; flex-direction: column;
  min-width: 190px; padding: 4px; background: var(--w-bg-elevated); border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-medium); box-shadow: var(--w-shadow-popover); font-size: var(--w-fs-callout); }
.story .asy-menu > span { padding: 7px 10px; border-radius: var(--w-radius-small); color: var(--w-text-primary);
  white-space: nowrap; }
.story .asy-menu > span:first-child { background: var(--w-bg-hover); }
.story .asy-menu > i { display: block; height: 1px; margin: 4px 6px; background: var(--w-separator); }

/* the footer: Select in Revit · Zoom to (14 after it) · the status | Export CSV · Export HTML · Scan */
.story .asy-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.story .asy-fl { flex: 1 1 260px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.story .asy-fl > .hbtn:nth-child(2) { margin-right: 6px; }
.story .asy-fr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.story .asy-st { flex: 1 1 150px; min-width: 0; font-size: 11.5px; line-height: 1.4; color: var(--w-text-tertiary); }
.story .hbtn.asy-wide { min-width: var(--w-size-button-min-width-wide); justify-content: center; }

/* narrower stages: the tiles keep their row and lose height; the tables scroll inside their card */
@media (max-width: 900px) {
  .story .asy-body { padding: 8px 14px 14px; }
  .story .asy-kpis { gap: 8px; }
  .story .asy-kpi { height: 84px; padding: 12px; }
  .story .asy-kpi b { font-size: 24px; }
  .story .asy-kpi span { font-size: 9.5px; }
}
@media (max-width: 560px) {
  .story .asy-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .story .asy-bar { flex-wrap: wrap; }
  .story .asy-win .apphdr-end { grid-row: auto; grid-column: 2; justify-self: start; margin-top: 8px; }
}

/* ── the exported report (HtmlExportEngine), a page in a browser: its cards, its tiles, its head ── */
.story .asy-rep { width: 100%; }
.story .asy-rbody { padding: 0 20px 22px; color: var(--w-text-primary); }
.story .asy-sech { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 18px 2px 12px; }
.story .asy-sech h2 { margin: 0; font-size: 19px; font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .asy-rcap { font-size: 12.5px; color: var(--w-text-tertiary); }
.story .asy-rcard { min-width: 0; overflow: hidden; background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-card); box-shadow: var(--w-shadow-card); }
.story .asy-rch { display: flex; align-items: center; gap: 9px; padding: 14px 17px; border-bottom: 1px solid var(--w-stroke-subtle); }
.story .asy-rch h3 { margin: 0; font-size: 14.5px; font-weight: var(--w-fw-semibold); }
.story .asy-rbadge { margin-left: auto; padding: 3px 9px; border-radius: var(--w-radius-pill); background: var(--w-bg-hover);
  font-size: 11.5px; font-weight: var(--w-fw-semibold); color: var(--w-text-secondary); font-variant-numeric: tabular-nums; }
.story .asy-rcb { padding: 16px 17px; }
/* metricTiles: .mgrid · .mtile (BgSubtle, corner 12, 13,15), the light 9 px at the top right */
.story .asy-mgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.story .asy-mt { position: relative; padding: 13px 15px; background: var(--w-bg-subtle); border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-card); }
.story .asy-mn { padding-right: 16px; font-size: var(--w-fs-callout); font-weight: var(--w-fw-medium); color: var(--w-text-secondary); }
.story .asy-mv { margin-top: 2px; font-size: 23px; font-weight: var(--w-fw-bold); line-height: 1.1; letter-spacing: -.02em;
  color: var(--w-text-primary); font-variant-numeric: tabular-nums; }
.story .asy-md { margin-top: 2px; font-size: 11px; color: var(--w-text-tertiary); }
.story .asy-ms { position: absolute; right: 13px; top: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--w-success); }
.story .asy-ms.warn { background: var(--w-warning); }
.story .asy-ms.bad { background: var(--w-danger); }
/* the head: the top bar (the symbol, «Assay · model audit», the search, the theme), the hero, the six stat cards */
.story .asy-rtop { display: flex; align-items: center; gap: 14px; margin: 0 -20px; padding: 10px 20px;
  background: var(--w-bg-surface); border-bottom: 1px solid var(--w-stroke-subtle); }
.story .asy-rbrand { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: var(--w-fw-semibold);
  white-space: nowrap; }
.story .asy-rbrand > svg { flex: none; display: block; width: 22px; height: 22px; }
.story .asy-rbrand small { font-size: 13px; font-weight: var(--w-fw-medium); color: var(--w-text-secondary); }
.story .asy-sp { flex: 1 1 auto; }
/* .search: a filled box (the page's hover tint, no edge, corner 9), the glyph in ink3, the placeholder 13.5;
   .iconbtn: a 34-px square on the card colour with its hairline, the moon in ink2 */
.story .asy-rsearch { display: inline-flex; align-items: center; gap: 7px; width: 210px; max-width: 40%; height: 32px;
  box-sizing: border-box; padding: 0 11px; border: 1px solid transparent; border-radius: var(--w-radius-button);
  background: var(--w-bg-hover); font-size: 13px; color: var(--w-text-tertiary); white-space: nowrap; overflow: hidden; }
.story .asy-rsearch > svg { flex: none; width: 14px; height: 14px; }
.story .asy-rmoon { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; box-sizing: border-box;
  border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-button); background: var(--w-bg-surface);
  font-size: 15px; color: var(--w-text-secondary); }
/* buildNav: the sections' bar under the stats (.nav), edge to edge with its hairline; the section in view in ink with
   the accent under it */
.story .asy-rnav { display: flex; gap: 2px; margin: 22px -20px 0; padding: 0 18px; overflow: hidden;
  border-bottom: 1px solid var(--w-stroke-subtle); }
.story .asy-rtop + .asy-rnav { margin-top: 0; }
.story .asy-rnav > span { padding: 11px 14px; font-size: 13px; font-weight: var(--w-fw-medium); color: var(--w-text-secondary);
  border-bottom: 2px solid transparent; white-space: nowrap; }
.story .asy-rnav > span.on { color: var(--w-text-primary); border-bottom-color: var(--w-accent); }
.story .asy-hero { padding: 26px 2px 4px; }
.story .asy-eyebrow { font-size: var(--w-fs-callout); font-weight: var(--w-fw-semibold); letter-spacing: .06em;
  text-transform: uppercase; color: var(--w-accent-ink); }
.story .asy-hero h1 { margin: 7px 0 3px; font-size: 28px; font-weight: var(--w-fw-bold); line-height: 1.15; color: var(--w-text-primary); }
.story .asy-hsub { font-size: 13.5px; color: var(--w-text-secondary); }
.story .asy-stats { display: grid; gap: 12px; margin-top: 18px; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.story .asy-stat { position: relative; padding: 15px 17px; overflow: hidden; background: var(--w-bg-surface);
  border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-card); box-shadow: var(--w-shadow-card); }
.story .asy-lab { display: flex; align-items: center; gap: 6px; font-size: var(--w-fs-callout); font-weight: var(--w-fw-medium);
  color: var(--w-text-secondary); }
.story .asy-num { margin-top: 3px; font-size: 29px; font-weight: var(--w-fw-bold); line-height: 1.1; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; }
.story .asy-of { font-size: 15px; font-weight: var(--w-fw-regular); color: var(--w-text-tertiary); }
.story .asy-ssub { margin-top: 2px; font-size: 11.5px; color: var(--w-text-tertiary); }
/* the report's dots: a stat's colour, a severity's own fill (SEVFILL: SeverityMinor for Warning, grey for Info) */
.story .asy-cd { flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--w-text-tertiary); }
.story .asy-cd.ok { background: var(--w-success); }
.story .asy-cd.warn, .story .asy-cd.sv-err { background: var(--w-warning); }
.story .asy-cd.bad, .story .asy-cd.sv-crit { background: var(--w-danger); }
.story .asy-cd.acc { background: var(--w-accent); }
.story .asy-cd.violet { background: var(--w-violet); }
.story .asy-cd.sv-warn { background: var(--w-severity-minor); }
/* the Overview's first row: Health & narrative (the ring, the grade, narrative(), the tags), Findings by severity */
.story .asy-g2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.story .asy-health { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.story .asy-ring { flex: none; width: 96px; height: 96px; }
.story .asy-ring circle { fill: none; stroke-width: 8; }
.story .asy-ring .asy-rt { stroke: var(--w-bg-hover); }
.story .asy-ring .asy-rv { stroke: var(--w-success); stroke-linecap: round; }
.story .asy-ring .asy-rv.warn { stroke: var(--w-warning); }
.story .asy-ring .asy-rv.bad { stroke: var(--w-danger); }
.story .asy-ring .asy-rn { font-size: 22px; font-weight: var(--w-fw-bold); fill: var(--w-text-primary); }
.story .asy-ring .asy-rs { font-size: 8.5px; fill: var(--w-text-tertiary); }
.story .asy-htxt { flex: 1 1 200px; min-width: 0; }
.story .asy-htxt h3 { margin: 0 0 3px; font-size: 16px; font-weight: var(--w-fw-semibold); }
.story .asy-htxt p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--w-text-secondary); }
.story .asy-htxt p b { color: var(--w-text-primary); }
.story .asy-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.story .asy-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--w-radius-pill);
  background: var(--w-bg-hover); font-size: 11.5px; font-weight: var(--w-fw-medium); color: var(--w-text-secondary); }
.story .asy-donut { display: block; width: 132px; height: 132px; margin: 0 auto; }
.story .asy-donut circle { fill: none; stroke-width: 16; }
.story .asy-donut .asy-dt { stroke: var(--w-bg-hover); }
.story .asy-donut .asy-da { stroke-linecap: round; stroke: var(--w-text-tertiary); }
.story .asy-donut .asy-da.sv-crit { stroke: var(--w-danger); }
.story .asy-donut .asy-da.sv-err { stroke: var(--w-warning); }
.story .asy-donut .asy-da.sv-warn { stroke: var(--w-severity-minor); }
.story .asy-donut .asy-dn { font-size: 26px; font-weight: var(--w-fw-bold); fill: var(--w-text-primary); }
.story .asy-donut .asy-dl { font-size: 10px; fill: var(--w-text-tertiary); }
.story .asy-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }
.story .asy-legend > span { display: inline-flex; align-items: center; gap: 6px; font-size: var(--w-fs-callout);
  color: var(--w-text-secondary); }

/* ── assay-scope: the eleven passes, a figure of the app's own words (no window: no window shows this) ── */
.story .asy-scope { width: 560px; max-width: 100%; box-sizing: border-box; padding: 16px 18px; color: var(--w-text-primary);
  background: var(--w-bg-window); border: 1px solid var(--w-stroke-default); border-radius: var(--w-radius-window);
  box-shadow: var(--w-shadow-window); }
.story .asy-stamp { font-size: 12.5px; color: var(--w-text-secondary); }
.story .asy-passes { display: grid; margin-top: 12px; border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-card); background: var(--w-bg-surface); overflow: hidden; }
.story .asy-pass { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; min-height: 34px; padding: 6px 14px;
  box-sizing: border-box;
  border-bottom: 1px solid var(--w-stroke-subtle); font-size: var(--w-fs-callout); }
.story .asy-pass:last-child { border-bottom: 0; }
.story .asy-pn { flex: none; width: 18px; font-size: 11px; font-weight: var(--w-fw-semibold); color: var(--w-text-tertiary);
  font-variant-numeric: tabular-nums; }
.story .asy-pt { flex: 1 1 150px; min-width: 0; }
.story .asy-ptag { flex: 0 1 auto; margin-left: auto; font-size: 11.5px; color: var(--w-text-tertiary); white-space: nowrap; }
.story .asy-pass.asy-pv { background: var(--w-accent-subtle); }
.story .asy-pass.asy-pv .asy-pt { font-weight: var(--w-fw-semibold); }
.story .asy-pass.asy-pv .asy-ptag { font-weight: var(--w-fw-semibold); color: var(--w-accent-ink); }
.story .asy-saside { margin-top: 12px; }
.story .asy-saside .asy-mgrid { grid-template-columns: minmax(0, 260px); }

/* ── tools/web_mockups/atlas.css ── */
/* atlas.py's one kind, misc-atlas: Atlas's card over a little Revit (.rv-win, .rv-bar, .rv-tabs, .rv-canvas come
   from site.css through ctx.revit_shot). Every rule sits under .story and the at- prefix, every colour comes from
   the site's tokens. The numbers in the comments are ViewMinimapService.cs's. */

/* ── the little Revit: one drawing area, or two side by side (a split window) ── */
.story .at-shot { width: 100%; container-type: inline-size; }
.story .at-shot .rv-win > .rv-tabs:empty { display: none; }   /* each pane carries its own tab strip */
.story .at-panes { display: flex; }
.story .at-pane { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.story .at-two .at-pane + .at-pane { border-left: 1px solid var(--line); }
.story .at-pane .rv-tabs { flex: none; }
.story .at-canvas { height: auto; display: block; overflow: hidden; background: var(--card); }
.story .at-canvas > .at-draw { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (max-width: 700px) {
  /* a split window on a phone: the two areas one above the other (each keeps its own shape) */
  .story .at-two .at-panes { flex-direction: column; }
  .story .at-two .at-pane { flex: none; }
  .story .at-two .at-pane + .at-pane { border-left: 0; border-top: 1px solid var(--line); }
}

/* ── the drawings: lines keep their screen weight at any zoom, as Revit draws them ── */
.story .at-draw path, .story .at-draw text { vector-effect: non-scaling-stroke; }
.story .at-draw .at-wl { fill: var(--ink); stroke: var(--ink); stroke-width: .7; }
.story .at-draw .at-pt { fill: color-mix(in srgb, var(--ink) 70%, var(--card));
  stroke: color-mix(in srgb, var(--ink) 70%, var(--card)); stroke-width: .5; }
.story .at-draw .at-co { fill: var(--ink); }
.story .at-draw .at-ln { fill: none; stroke: color-mix(in srgb, var(--ink) 68%, transparent); stroke-width: .6; }
.story .at-draw .at-fu { fill: none; stroke: color-mix(in srgb, var(--ink) 40%, transparent); stroke-width: .5; }
.story .at-draw .at-dr { fill: none; stroke: color-mix(in srgb, var(--ink) 70%, transparent); stroke-width: .6; }
.story .at-draw .at-sw { fill: none; stroke: color-mix(in srgb, var(--ink) 38%, transparent); stroke-width: .5; }
.story .at-draw .at-gz { fill: none; stroke: color-mix(in srgb, var(--ink) 55%, transparent); stroke-width: .5; }
.story .at-draw .at-gr { fill: none; stroke: color-mix(in srgb, var(--ink) 34%, transparent); stroke-width: .5;
  stroke-dasharray: 10 3 2 3; }
.story .at-draw .at-lv { fill: none; stroke: color-mix(in srgb, var(--ink) 45%, transparent); stroke-width: .5;
  stroke-dasharray: 12 3 2 3; }
.story .at-draw .at-bu { fill: var(--card); stroke: color-mix(in srgb, var(--ink) 55%, transparent); stroke-width: .6; }
.story .at-draw .at-ha { fill: none; stroke: color-mix(in srgb, var(--ink) 32%, transparent); stroke-width: .4; }
.story .at-draw .at-tx { fill: color-mix(in srgb, var(--ink) 72%, transparent); font-family: var(--font);
  font-weight: 600; text-anchor: middle; dominant-baseline: central; }
.story .at-draw .at-tb-no { font-weight: 700; }
/* the massing: three tones, light on top */
.story .at-draw .at-t1 { fill: color-mix(in srgb, var(--ink) 5%, var(--card));
  stroke: color-mix(in srgb, var(--ink) 55%, transparent); stroke-width: .6; }
.story .at-draw .at-t2 { fill: color-mix(in srgb, var(--ink) 15%, var(--card));
  stroke: color-mix(in srgb, var(--ink) 55%, transparent); stroke-width: .6; }
.story .at-draw .at-t3 { fill: color-mix(in srgb, var(--ink) 27%, var(--card));
  stroke: color-mix(in srgb, var(--ink) 55%, transparent); stroke-width: .6; }
.story .at-draw .at-ml { fill: none; stroke: color-mix(in srgb, var(--ink) 24%, transparent); stroke-width: .4; }
/* a sheet: the paper (the title block's edge), the title block, and the crossed frame of a heavy viewport */
.story .at-draw .at-pp { fill: var(--card); stroke: color-mix(in srgb, var(--ink) 30%, transparent); stroke-width: .7; }
.story .at-draw .at-tb { fill: none; stroke: color-mix(in srgb, var(--ink) 70%, transparent); stroke-width: .6; }
.story .at-draw .at-xf { fill: none; stroke: color-mix(in srgb, var(--ink) 50%, var(--card)); stroke-width: .8; }
.story .at-draw .at-xc { fill: none; stroke: color-mix(in srgb, var(--ink) 25%, var(--card)); stroke-width: .7; }
/* the thumbnail is a picture Revit exports, black on white in any theme (the strips around it are the card's):
   in the dark theme its own ink and paper stay those of the light one */
.story .at-draw .at-im { fill: var(--card); }
:root[data-theme="dark"] .story .at-pic { --ink: var(--bg); --card: var(--accent-ink); }

/* ── the card: bottom-right of its drawing area, 2 px in (EdgeGap), drawn at the app's own pixel sizes ── */
.story .at-card { position: absolute; right: 2px; bottom: 2px; z-index: 2;
  width: auto;           /* the map's width, or what the bar asks if more (atlas.py sets both in px) */
  background: color-mix(in srgb, var(--card) 95%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--card));   /* EdgeTint */
  border-radius: 9px;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--ink) 22%, transparent); }
:root[data-theme="dark"] .story .at-card { box-shadow: 0 4px 20px color-mix(in srgb, var(--bg) 85%, transparent); }
/* the bar: ONE row, caption left and six buttons right, stacked above the map and opaque (HeadTint 10 %);
   14 px high, 1 px above and 1 + 3 below (HeadRow, the head's padding and margin) */
.story .at-bar { display: flex; align-items: center; height: 14px; padding: 1px 0 4px; box-sizing: content-box;
  background: color-mix(in srgb, var(--accent) 10%, var(--card)); border-radius: 8px 8px 0 0; cursor: move; }
/* (the bar has no hover look of its own: under the pointer it only shows its tooltip and the four-way cursor) */
/* the caption: 10 px, cut with an ellipsis; never under 40 px (CaptionFloor), never over what the buttons leave.
   Caption, symbols and messages are TextSecondaryBrush: the suite's own token (--w-text-secondary), which no site
   token matches in both themes */
.story .at-cap { flex: 1 1 auto; min-width: 40px; margin: 0 6px 0 4px; font-size: 10px; line-height: 14px;
  color: var(--w-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .at-btns { display: flex; flex: none; }
/* six buttons of 18 x 14, 1 px apart, their symbols in a 10 px box (ButtonW, ButtonGap, GlyphSize) */
.story .at-btn { width: 18px; height: 14px; margin-left: 1px; display: grid; place-items: center;
  color: var(--w-text-secondary); cursor: pointer; }
.story .at-btn svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.2;
  stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.story .at-btn svg .at-fine { stroke-width: 1; stroke-linecap: butt; stroke-linejoin: miter; }   /* FitPage: a thinner frame */
.story .at-btn.at-on { color: var(--accent); }   /* the pin, on: turned to stick in, in AccentBrush (ApplyPin) */
/* A plain WPF Button (no AppleWindow, so no suite style): under the pointer Windows fills it with its own pale blue,
   in any theme, and leaves the symbol's colour alone */
.story .at-btn.at-hov { background: color-mix(in srgb, var(--w-info) 35%, var(--accent-ink)); }
/* the thumbnail, with the shape of its drawing area, and the box over what the area shows */
.story .at-map { position: relative; overflow: hidden; margin: 0 auto; background: var(--card);
  border-radius: 0 0 8px 8px; }   /* centred when the bar is wider than the map */
.story .at-map > .at-draw { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.story .at-box { position: absolute; box-sizing: border-box; border: 1.25px solid var(--accent); border-radius: 2px;
  background: color-mix(in srgb, var(--accent) 10%, transparent); }
.story .at-hd { position: absolute; width: 4.5px; height: 4.5px; border-radius: 50%; transform: translate(-50%, -50%);
  background: var(--accent-text);                                   /* AccentInk */
  box-shadow: 0 0 0 .8px color-mix(in srgb, var(--accent-ink) 55%, transparent); }
/* a message in place of the thumbnail */
.story .at-hint { margin: 8px 6px; max-width: 190px; font-size: 10.5px; line-height: 1.4;
  color: var(--w-text-secondary); }

/* ── a tooltip, under what the pointer is on. The card is a plain WPF window, not an AppleWindow, so its
   tooltips are Windows' own: square, a grey edge, 9 pt, and one line per line of text (no wrapping) ── */
.story .at-tip { position: absolute; z-index: 4; width: max-content; white-space: nowrap; padding: 2px 6px 3px;
  font-size: 12px; line-height: 1.35; color: var(--ink); background: var(--card);
  border: 1px solid color-mix(in srgb, var(--ink) 45%, var(--card)); border-radius: 0;
  box-shadow: 1px 2px 5px color-mix(in srgb, var(--ink) 18%, transparent); }
/* Windows draws them light in any theme (the system's tooltip colour), so the dark page keeps them light */
:root[data-theme="dark"] .story .at-tip { --ink: var(--bg); --card: var(--accent-ink);
  box-shadow: 1px 2px 5px color-mix(in srgb, var(--bg) 80%, transparent); }
.story .at-tip-btn { top: 27px; right: max(3px, calc(var(--at-i) * 19px - 40px)); }
.story .at-tip-bar { top: 27px; right: 3px; display: flex; flex-direction: column; }
.story .at-tip-edge { top: 42%; right: calc(100% + 12px); }
/* the cursors: white with a dark edge, in both themes, as Windows draws them */
.story .at-cur { position: absolute; z-index: 5; pointer-events: none; fill: var(--accent-ink);
  stroke: var(--ink); stroke-width: 1.1; stroke-linejoin: round; }
:root[data-theme="dark"] .story .at-cur { stroke: var(--bg); }
.story .at-cur-btn { width: 13px; height: 16px; top: 7px; right: calc(var(--at-i) * 19px + 1px); }
.story .at-cur-bar { width: 15px; height: 15px; left: 50px; top: 9px; transform: translate(-50%, -50%); }
.story .at-cur-box { width: 15px; height: 15px; transform: translate(-50%, -50%); }
.story .at-cur-edge { width: 18px; height: 10px; left: 0; top: 55%; transform: translate(-50%, -50%); }

/* ── a narrow screen: the stage shrinks and the card goes with it, so it covers what it covers in Revit ── */
@container (max-width: 640px) { .story .at-card { transform: scale(.8); transform-origin: 100% 100%; } }
@container (max-width: 470px) { .story .at-card { transform: scale(.64); } }

/* ── tools/web_mockups/bimio-suite.css ── */
/* bimio-suite.py's kinds (prefix sux-). Every rule sits under .story; colours and sizes are the window's tokens (the
   WEB-THEME block of site.css, --w-*): never a raw hex. The title bar, the app header, the buttons, the group bar,
   the segmented tracks, the ticks, the switches, the fields, the table, its funnels and the filter menu are the kit's
   (site.css «THE CONTROLS»), used as they are; this file only places them and draws the few things the kit has no
   piece for — AppleSettingRow, the section labels, the status card of the licence, the brand column. */

/* composition and the window */
.story .sux-stage { width: 100%; display: flex; justify-content: center; min-width: 0; }
.story .sux-stack { display: grid; gap: 18px; justify-items: center; width: 100%; min-width: 0; }
.story .sux-stack > .stagecard { width: 100%; }
.story .sux-body { padding: 16px 24px 18px; display: flex; flex-direction: column; gap: 0; color: var(--w-text-primary);
  font-family: var(--w-font-sans), var(--font); font-size: var(--w-fs-body); }
.story .sux-sp { flex: 1 1 0; min-width: 8px; }
.story .sux-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.story .sux-ter, .story .dg tbody td.sux-ter { color: var(--w-text-tertiary); }
.story .sux-acc, .story .dg tbody td.sux-acc { color: var(--w-accent-text); }
.story .dg tbody td.sux-sec { color: var(--w-text-secondary); }
.story .ck.sux-off { opacity: var(--w-opacity-disabled); }
.story .hbtn.sux-wide { min-width: var(--w-size-button-min-width-wide); justify-content: center; }
.story .hbtn.link.sux-lnk { font-size: var(--w-fs-body); font-weight: var(--w-fw-medium); height: auto; padding: 0;
  min-width: 0; }
.story .sux-t3 { font-size: var(--w-fs-title3); font-weight: var(--w-fw-semibold); line-height: 1.3;
  color: var(--w-text-primary); }

/* the brand pieces: BimioMark (hero: its shadow) and BimioWordmark (Field) — drawn by the generator's brand helpers */
.story .sux-mark { display: block; width: 104px; height: 104px; margin: 0 auto; border-radius: 26px;
  box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--w-accent) 55%, transparent); }
.story .sux-mark svg { display: block; width: 100%; height: 100%; }
.story .sux-wm { display: flex; justify-content: center; height: var(--w-size-wordmark-hero); margin: 22px 0 10px; }
.story .sux-wm svg { height: 100%; }
/* AppleStatusPlate on NeutralSubtle: the version in the accent's ink */
.story .sux-plate { display: inline-block; align-self: center; margin-top: 10px; padding: 3px 9px;
  border-radius: var(--w-radius-small); background: var(--w-neutral-subtle); color: var(--w-accent-ink);
  font-size: var(--w-fs-footnote); font-weight: var(--w-fw-semibold); line-height: 1.4; }
.story .sux-plate.sm { font-size: 11.5px; margin-top: 14px; }

/* ── About › Licence (ActivationWindow: 32,22,32,24) ── */
.story .sux-lic .sux-body { padding: 22px 32px 24px; }
.story .sux-lstat { display: flex; gap: 12px; margin-top: 16px; padding: 12px 14px; border-radius: 10px;
  background: var(--w-bg-subtle); border: 1px solid var(--w-stroke-subtle); }
.story .sux-ldot { flex: none; width: 12px; height: 12px; margin-top: 3px; border-radius: 50%; background: var(--w-success); }
.story .sux-ldot.warn { background: var(--w-warning); }
.story .sux-lh { font-size: 14.5px; font-weight: var(--w-fw-semibold); color: var(--w-text-primary); line-height: 1.35; }
.story .sux-ld { margin-top: 3px; font-size: 12.5px; color: var(--w-text-secondary); line-height: 1.45; }
.story .sux-lkl { margin: 20px 0 6px; font-size: var(--w-fs-callout); color: var(--w-text-secondary); }
.story .sux-key { display: flex; width: 100%; box-sizing: border-box; font-family: var(--w-font-mono); }
.story .sux-lfoot { display: flex; align-items: center; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
/* in a beat's narrow column the 560-wide window gives up its margins and the buttons their floor before the row
   breaks: the window's one row of buttons stays one row */
.story .capwin.sux-lic { container-type: inline-size; }
@container (max-width: 520px) {
  .story .sux-lic .sux-body { padding: 18px 20px 20px; }
  .story .sux-lic .hbtn.sux-wide { min-width: 0; }
  .story .sux-lic .sux-lfoot { gap: 8px; }
}

/* ── BIMIO Setup (820 × 560: the 248 brand column, the content at 36,14,36,22) ── */
:root .story .capwin.sux-setup .capbar .cb-r :is(.cb-moon, .cb-sun) { display: none; }
.story .sux-setup .sux-body { padding: 0; }
.story .sux-setup-grid { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 524px; }
.story .sux-sbrand { display: grid; grid-template-rows: 1fr auto 1fr auto; padding: 0 24px;
  border-right: 1px solid var(--w-stroke-subtle); }
.story .sux-hero { grid-row: 2; display: flex; flex-direction: column; align-items: center; text-align: center; }
.story .sux-hero .sux-wm { margin: 22px 0 0; }
.story .sux-tag { margin-top: 18px; font-size: var(--w-fs-callout); color: var(--w-text-secondary); }
.story .sux-sfoot { grid-row: 4; padding: 16px 0 26px; border-top: 1px solid var(--w-stroke-subtle); }
.story .sux-figs { display: grid; grid-template-columns: 1fr 1fr; }
.story .sux-figs b { display: block; font-size: 28px; font-weight: var(--w-fw-semibold); line-height: 1.25;
  color: var(--w-accent-ink); }
.story .sux-figs span, .story .sux-url, .story .sux-fn { font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); }
.story .sux-url { margin-top: 14px; }
.story .sux-smain { display: flex; flex-direction: column; padding: 14px 36px 22px; min-width: 0; }
.story .sux-lt { font-size: var(--w-fs-large-title); font-weight: var(--w-fw-bold); line-height: 1.25;
  color: var(--w-text-primary); }
.story .sux-sub { margin-top: 6px; font-size: var(--w-fs-callout); color: var(--w-text-secondary); line-height: 1.45; }
.story .sux-scard { margin-top: 22px; padding: 20px 22px; background: var(--w-bg-surface);
  border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-card); box-shadow: var(--w-shadow-card); }
.story .sux-sl0, .story .sux-sl { font-size: var(--w-fs-subhead); font-weight: var(--w-fw-semibold);
  color: var(--w-text-secondary); letter-spacing: .02em; }
.story .sux-years { margin-top: 14px; display: grid; gap: 8px; }
.story .sux-scard .sux-fn { margin-top: 16px; line-height: 1.45; }
.story .sux-sbtns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.story .hbtn.sux-w104 { min-width: 104px; justify-content: center; }
.story .hbtn.sux-w124 { min-width: 124px; justify-content: center; }
@media (max-width: 720px) {
  .story .sux-setup-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .story .sux-sbrand { border-right: 0; border-bottom: 1px solid var(--w-stroke-subtle); padding-top: 22px; }
  .story .sux-smain { padding: 14px 20px 20px; }
}

/* ── About BIMIO (32,24,32,22; columns 300 + 28 · *) ── */
.story .sux-aboutw .sux-body { padding: 24px 32px 22px; }
.story .sux-about { display: grid; grid-template-columns: 300px minmax(0, 1fr); column-gap: 28px; }
.story .sux-aleft { display: flex; min-width: 0; }
.story .sux-acol { display: flex; flex-direction: column; justify-content: space-between; width: 100%; }
.story .sux-aid { display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-top: calc(var(--w-fs-subhead) * 1.4 + 6px); }   /* the hidden section label that levels it with PRIVACY */
.story .sux-atag { margin-top: 2px; font-size: var(--w-fs-body); color: var(--w-text-secondary); }
.story .sux-amotto { margin-top: 4px; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); }
.story .sux-aid .hbtn.link { margin-top: 8px; }
.story .sux-acred { text-align: center; padding-top: 22px; }
.story .sux-hair { height: 1px; margin: 0 24px; background: var(--w-stroke-subtle); }
.story .sux-acr { margin-top: 14px; font-size: var(--w-fs-subhead); color: var(--w-text-secondary); }
.story .sux-acp { margin-top: 3px; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); white-space: pre; }
.story .sux-adoors { display: flex; justify-content: center; align-items: center; margin-top: 14px; }
.story .sux-dot { margin: 0 8px; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); }
.story .sux-aright { min-width: 0; }
.story .sux-sl { margin: 16px 0 6px 4px; }
.story .sux-aright > .sux-sl:first-child { margin-top: 0; }
.story .sux-card { padding: 4px 18px; background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-card); box-shadow: var(--w-shadow-card); }
/* AppleSettingRow: 0,10 of its own, a hairline above unless it is the first */
.story .sux-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px;
  padding: 10px 0; border-top: 1px solid var(--w-separator); }
.story .sux-row.first { border-top: 0; }
.story .sux-rn { font-size: var(--w-fs-body); color: var(--w-text-primary); }
.story .sux-rd { margin-top: 2px; font-size: var(--w-fs-subhead); color: var(--w-text-secondary); line-height: 1.45; }
.story .sux-rc { display: flex; align-items: center; justify-content: flex-end; }
.story .sux-afoot { display: flex; justify-content: flex-end; margin-top: 18px; }
@media (max-width: 760px) {
  .story .sux-about { grid-template-columns: minmax(0, 1fr); row-gap: 22px; }
  .story .sux-aid { padding-top: 0; }
  .story .sux-row { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
  .story .sux-rc { justify-content: flex-start; }
}

/* ── AppleErrorDialog.Confirm, Info (460 wide; 28,12,28,20) ── */
.story .sux-cd .sux-body { padding: 20px 28px 20px; }
.story .sux-cd-head { display: flex; align-items: flex-start; gap: 16px; }
.story .sux-cd-disc { flex: none; width: 40px; height: 40px; margin-top: 2px; border-radius: 50%; display: grid;
  place-items: center; background: var(--w-accent); color: var(--w-text-on-accent); font-size: 22px;
  font-weight: var(--w-fw-bold); line-height: 1; }
/* the heading sits at the top of its row, not centred on the disc (HeadingText in a StackPanel; the disc 2 lower) */
.story .sux-cd-head .sux-t3 { padding-top: 0; }
.story .sux-cd-body { margin: 6px 0 16px 56px; font-size: var(--w-fs-body); color: var(--w-text-secondary);
  line-height: 1.45; }
.story .sux-cd-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }

/* ── the view picker (ViewPickerWindow: 20,16,20,16) ── */
.story .sux-picker .sux-body { padding: 16px 20px; }
.story .sux-ph { margin-bottom: 14px; }
.story .sux-pht { font-size: 20px; font-weight: var(--w-fw-semibold); color: var(--w-text-primary); line-height: 1.3; }
.story .sux-phs { margin-top: 3px; font-size: var(--w-fs-callout); color: var(--w-text-tertiary); line-height: 1.45; }
.story .sux-av { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px;
  background: var(--w-bg-subtle); }
.story .sux-avn { font-size: var(--w-fs-body); font-weight: var(--w-fw-medium); color: var(--w-text-primary); }
.story .sux-avd { font-size: var(--w-fs-subhead); color: var(--w-text-tertiary); }
.story .sux-psearch { display: flex; align-items: center; gap: 8px; margin: 12px 0 10px; }
.story .sux-grow { flex: 1 1 auto; min-width: 0; }
.story .mk-field.sux-grow { display: flex; }
.story .sux-ptwrap { position: relative; }
/* the table takes the window's spare height (Height="*" of a 620-tall window), so the open menu sits inside it */
.story .sux-ptwrap > .tablewrap { min-height: 330px; }
/* the columns as the XAML sizes them: the tick 80 (GridFilters widens a tick column with a tick-all box to carry its
   funnel), View the rest, Type 200 */
.story .sux-ptable table.dg { table-layout: fixed; }
.story .sux-ptable thead th:first-child { width: 80px; }
.story .sux-ptable td:nth-child(2) { color: var(--w-text-primary); }
/* the Type column's menu, open under its funnel (the table's right edge, past its header) */
.story .sux-fmenu { position: absolute; z-index: 4; top: 40px; right: 6px; width: 250px; }
.story .sux-fmenu .mk-menu { box-shadow: var(--w-shadow-popover); }
.story .sux-pfoot { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.story .sux-psum { font-size: var(--w-fs-callout); color: var(--w-text-secondary); }
@media (max-width: 600px) {
  .story .sux-fmenu { position: static; width: auto; margin-top: 10px; }
}

/* ── Misc › Worksets (22,10,22,16) ── */
.story .sux-ws .sux-body { padding: 10px 22px 16px; gap: 0; }
.story .sux-ws .apphdr { margin-bottom: 0; }
.story .sux-wsnote { display: block; margin-top: 2px; font-size: var(--w-fs-subhead); line-height: 1.45; }
.story .sux-wcard { margin-top: 12px; padding: 10px 14px; background: var(--w-bg-surface);
  border: 1px solid var(--w-stroke-subtle); border-radius: 10px; }
/* one row, as the XAML's grid: the two fields are 200* columns capped at 200 — they YIELD, the buttons do not
   (WorksetOwnershipWindow.xaml, 2026-09-19: in Spanish «Guardar las marcas» used to lose its end) */
.story .sux-wsets { display: flex; align-items: center; gap: 8px; }
.story .sux-wsets > :is(.mk-combo, .mk-field) { flex: 0 1 200px; min-width: 0; }
.story .sux-wsets > :is(.mk-combo, .mk-field) > span, .story .sux-wsets > .mk-field { overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.story .sux-wsets > .hbtn, .story .sux-wsets > .sux-wsl { flex: none; }
.story .sux-wsets > .sux-sp { min-width: 12px; }
.story .sux-wsl { font-size: var(--w-fs-subhead); font-weight: var(--w-fw-semibold); color: var(--w-text-secondary);
  margin-right: 2px; }
.story .sux-warm { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.story .sux-whint { font-size: var(--w-fs-callout); color: var(--w-text-secondary); min-width: 0; }
.story .sux-wtabs { margin-top: 12px; display: flex; max-width: 100%; overflow-x: auto; }
.story .sux-wsearch { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.story .sux-wshow { display: grid; grid-template-columns: 220px 220px; gap: 4px 0; margin-top: 6px; }
.story .sux-wfoot { display: flex; align-items: center; gap: 8px 14px; margin-top: 14px; flex-wrap: wrap; }
.story .sux-wcount { font-size: var(--w-fs-subhead); color: var(--w-text-secondary); }
/* the columns as the XAML sizes them: the bare tick column 40 (no tick-all box: GridFilters gives it the funnel
   alone), Name the rest, then 130 · 100 · 160 · 100 */
.story .sux-wtable table.dg { table-layout: fixed; }
.story .sux-wtable .dg thead th.fl.tick.sux-bare { width: 40px; min-width: 40px; padding: 0; }
.story .sux-wfoot .hbtn:not(.link) + .hbtn { margin-left: -6px; }
@media (max-width: 760px) {
  .story .sux-wshow { grid-template-columns: minmax(0, 1fr); }
  .story .sux-wsets { flex-wrap: wrap; }
}

/* ── tools/web_mockups/bloat.css ── */
/* bloat.py's kinds (prefix blx-). Every rule sits under .story; colours and sizes are the window's tokens (the
   WEB-THEME block of site.css, --w-*): never a raw hex. The shared pieces — the title bar, the app header, the kit
   (.hbtn, .mk-table, .dg, mk_th's funnels) — are site.css's, used as they are. */

.story .blx-stage { width: 100%; display: flex; justify-content: center; min-width: 0; }
.story .blx-stack { display: grid; gap: 18px; width: 100%; min-width: 0; justify-items: center; }
.story .blx-stack > .stagecard { width: 100%; }
/* the window keeps its own width in a wide beat too (site.css stretches every .capwin there to the column) */
.story .blx-stage .blx-win { width: min(100%, var(--blx-width, 900px)); min-width: 0; }

/* the main window: Margin 20,16,20,14 — the header, the buttons' row, the model line, the bullets, the cards */
.story .blx-body { padding: 16px 20px 14px; display: flex; flex-direction: column; min-width: 0;
  font-size: var(--w-fs-body); color: var(--w-text-primary); }
.story .blx-body .apphdr-ctx { font-size: var(--w-fs-body); color: var(--w-text-secondary); margin-top: 6px; }
.story .blx-win.blx-crop { -webkit-mask-image: linear-gradient(to bottom, var(--w-text-primary) calc(100% - 44px), transparent);
  mask-image: linear-gradient(to bottom, var(--w-text-primary) calc(100% - 44px), transparent); }
.story .blx-win.blx-crop .blx-body { padding-bottom: 30px; }

/* row 1: a right-aligned WrapPanel, 8 between — Measure sizes and Export report… at the wide floor */
.story .blx-acts { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-top: 10px; }
.story .blx-acts .hbtn { min-width: var(--w-size-button-min-width); justify-content: center; }
.story .blx-acts .hbtn.blx-wide-btn, .story .blx-acts > .hbtn:nth-child(2) { min-width: var(--w-size-button-min-width-wide); }
.story .blx-tipat { position: relative; display: inline-flex; }
.story .blx-tip { position: absolute; left: 0; top: calc(100% + 6px); z-index: 3; width: 320px; padding: 8px 10px;
  border-radius: var(--w-radius-medium); background: var(--w-bg-elevated); border: 1px solid var(--w-stroke-default);
  box-shadow: var(--w-shadow-popover); font-size: var(--w-fs-callout); line-height: 1.45; color: var(--w-text-primary);
  white-space: normal; text-align: left; }

/* row 2: SourceInfo (11, tertiary, trimmed) and the size pass's Progress line (11.5 semibold, AccentText) */
.story .blx-src { margin-top: 10px; font-size: 11px; color: var(--w-text-tertiary); white-space: pre; overflow: hidden;
  text-overflow: ellipsis; }
.story .blx-prog { margin-top: 4px; font-size: 11.5px; font-weight: var(--w-fw-semibold); color: var(--w-accent-text);
  line-height: 1.4; }

/* row 3: the headline bullets (0,2 each): an accent «•», 8 to the sentence, 12.5 */
.story .blx-heads { margin-top: 10px; display: flex; flex-direction: column; }
.story .blx-hl { display: flex; align-items: baseline; margin: 2px 0; font-size: 12.5px; line-height: 1.45;
  color: var(--w-text-primary); }
.story .blx-dot { flex: none; margin-right: 8px; color: var(--w-accent-text); font-weight: var(--w-fw-bold); }

/* row 4: the cards, each BgElevated, StrokeSubtle, radius 10, 12 apart; the 4-px bar at the left in the severity's colour */
.story .blx-scroll { margin-top: 14px; min-width: 0; }
.story .blx-scroll.blx-more { -webkit-mask-image: linear-gradient(to bottom, var(--w-text-primary) calc(100% - 70px), transparent);
  mask-image: linear-gradient(to bottom, var(--w-text-primary) calc(100% - 70px), transparent); }
.story .blx-card { position: relative; margin-bottom: 12px; border-radius: 10px; background: var(--w-bg-elevated);
  border: 1px solid var(--w-stroke-subtle); overflow: hidden; min-width: 0; }
.story .blx-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--w-success); }
.story .blx-card.note::before { background: var(--w-text-tertiary); }
.story .blx-card.watch::before { background: var(--w-warning); }
.story .blx-card.heavy::before { background: var(--w-danger); }
.story .blx-cin { padding: 10px 14px 12px 18px; min-width: 0; }
.story .blx-ch { display: flex; align-items: center; min-width: 0; }
.story .blx-pill { flex: none; display: inline-flex; align-items: center; padding: 1px 7px; margin-right: 10px;
  border-radius: 7px; background: var(--w-neutral-subtle); color: var(--w-text-secondary); font-size: 10px;
  font-weight: var(--w-fw-bold); line-height: 1.4; }
.story .blx-card.watch .blx-pill, .story .blx-pill.watch, .story .blx-vb.watch .blx-pill {
  background: var(--w-warning-subtle); color: var(--w-warning-ink); }
.story .blx-card.heavy .blx-pill, .story .blx-pill.heavy, .story .blx-vb.heavy .blx-pill {
  background: var(--w-danger-subtle); color: var(--w-danger); }
.story .blx-cl { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .blx-ct { flex: none; margin-left: 10px; font-size: 12.5px; color: var(--w-text-secondary); white-space: nowrap; }
.story .blx-adv { margin-top: 5px; font-size: 12.5px; line-height: 1.45; color: var(--w-text-secondary); }

/* a card's table: Apple.DataGrid on an AppleCard (Padding 0), 8 under the advice — Item 2* · value 110 · Detail 1.6* */
.story .blx-tab { margin-top: 8px; }
.story .blx-tab .tscroll { overflow: hidden; }
.story .blx-tab table.dg { width: 100%; min-width: 0; table-layout: fixed; }
.story .blx-tab col.blx-c1 { width: 48%; }
.story .blx-tab col.blx-c2 { width: 110px; }
.story .blx-tab .dg td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .blx-tab .dg thead th { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .blx-tab .dg td.num { text-align: right; color: var(--w-text-secondary); font-variant-numeric: tabular-nums; }

/* «Working…» (SuiteProgressDialog, Width 600, Margin 28,8,28,20) */
.story .blx-dlg .blx-body { padding: 8px 28px 20px; }
.story .blx-p1 { display: flex; align-items: flex-start; gap: 12px; margin-top: 4px; }
.story .blx-ph { flex: 1 1 auto; min-width: 0; font-size: var(--w-fs-title2); font-weight: var(--w-fw-semibold);
  line-height: 1.3; color: var(--w-text-primary); }
.story .blx-p1 .hbtn { flex: none; }
.story .blx-p2 { display: flex; align-items: center; margin-top: 14px; min-width: 0; }
.story .blx-pph { flex: none; margin-right: 10px; font-size: var(--w-fs-subhead); font-weight: var(--w-fw-semibold);
  color: var(--w-accent-text); }
.story .blx-pst { flex: 1 1 auto; min-width: 0; font-size: var(--w-fs-body); color: var(--w-text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .blx-p3 { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; }
.story .blx-pclock { flex: 1 1 auto; min-width: 0; font-size: var(--w-fs-footnote); color: var(--w-text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .blx-ppct { flex: none; font-size: var(--w-fs-subhead); font-weight: var(--w-fw-semibold); color: var(--w-text-primary);
  font-variant-numeric: tabular-nums; }
.story .blx-pbar { height: 6px; border-radius: 3px; background: var(--w-bg-hover); overflow: hidden; }
.story .blx-pbar i { display: block; height: 100%; border-radius: 3px; background: var(--w-accent-text); }
.story .blx-pbar.ind i { width: 28%; margin-left: 36%; }
.story .blx-phint { margin-top: 14px; font-size: var(--w-fs-footnote); line-height: 1.45; color: var(--w-text-secondary);
  text-align: center; }

/* a diagram, not a window: no title bar, a dashed edge, the guide's own words around the app's */
.story .blx-dia { width: min(100%, 900px); box-sizing: border-box; padding: 16px 18px; border-radius: var(--w-radius-card);
  background: var(--w-bg-surface); border: 1px dashed var(--w-stroke-default); color: var(--w-text-primary);
  font-size: var(--w-fs-body); }
.story .blx-dh { font-size: var(--w-fs-title3); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .blx-dh2 { margin-top: 16px; font-size: var(--w-fs-body); }
.story .blx-steps { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.story .blx-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px;
  border-radius: var(--w-radius-pill); background: var(--w-bg-elevated); border: 1px solid var(--w-stroke-subtle);
  font-size: var(--w-fs-callout); color: var(--w-text-primary); }
.story .blx-steps li i { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px;
  border-radius: 50%; background: var(--w-accent); color: var(--w-text-on-accent); font-style: normal;
  font-size: var(--w-fs-subhead); font-weight: var(--w-fw-semibold); }
.story .blx-path { margin-top: 12px; font-family: Consolas, "Cascadia Mono", monospace; font-size: var(--w-fs-subhead);
  color: var(--w-text-tertiary); overflow-wrap: anywhere; }
.story .blx-dx { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; padding: 8px 12px;
  border-radius: var(--w-radius-medium); background: var(--w-bg-elevated); border: 1px solid var(--w-stroke-subtle); }
.story .blx-dx b { font-weight: var(--w-fw-semibold); }
.story .blx-dx span { color: var(--w-text-secondary); font-size: var(--w-fs-callout); font-variant-numeric: tabular-nums; }
.story .blx-dx em { margin-left: auto; font-style: normal; font-weight: var(--w-fw-semibold); color: var(--w-accent-text); }
.story .blx-dfoot { margin-top: 10px; font-size: var(--w-fs-callout); line-height: 1.45; color: var(--w-text-secondary); }

/* the ladder: one row per category, the three thresholds as the window's pills; the four verdicts under it */
.story .blx-lt { margin-top: 10px; overflow-x: auto; }
.story .blx-lt table { width: 100%; border-collapse: collapse; font-size: var(--w-fs-callout); }
.story .blx-lt th { padding: 6px 4px; text-align: left; font-size: var(--w-fs-subhead); font-weight: var(--w-fw-semibold);
  color: var(--w-text-secondary); border-bottom: 1px solid var(--w-stroke-default); line-height: 1.25; }
.story .blx-lt th:first-child, .story .blx-lt td:first-child { padding-left: 8px; }
.story .blx-lt td { padding: 7px 4px; border-bottom: 1px solid var(--w-stroke-subtle); vertical-align: middle; }
.story .blx-lt tr:last-child td { border-bottom: none; }
.story .blx-lt .ctr { text-align: center; width: 64px; }
.story .blx-lt td.ctr .blx-pill { padding: 1px 6px; white-space: nowrap; }
.story .blx-lt td .blx-pill { margin: 0; }
.story .blx-lc { font-weight: var(--w-fw-semibold); }
.story .blx-lt em { display: block; margin-top: 2px; font-style: normal; font-size: var(--w-fs-subhead);
  color: var(--w-text-tertiary); }
.story .blx-vbands { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.story .blx-vb { display: inline-flex; align-items: center; padding: 5px 10px 5px 6px; border-radius: var(--w-radius-medium);
  background: var(--w-bg-elevated); border: 1px solid var(--w-stroke-subtle); font-size: var(--w-fs-callout); }
.story .blx-vb .blx-pill { margin-right: 8px; }

/* the exported report (BloatHtmlReport), in a browser: its own page — paper, cards with a 5-px edge, a chip */
.story .blx-repwin { overflow: hidden; }
.story .blx-rpage { padding: 22px 26px 24px; background: var(--w-bg-window); color: var(--w-text-primary);
  font-size: 13.5px; line-height: 1.5; text-align: left; }
.story .blx-rpage.blx-more { -webkit-mask-image: linear-gradient(to bottom, var(--w-text-primary) calc(100% - 80px), transparent);
  mask-image: linear-gradient(to bottom, var(--w-text-primary) calc(100% - 80px), transparent); }
.story .blx-rbrand { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: var(--w-fw-semibold);
  color: var(--w-text-secondary); }
.story .blx-wm { display: inline-flex; color: var(--w-text-primary); }
.story .blx-wm svg { display: block; }
.story .blx-rh1 { margin: 8px 0 4px; font-size: 24px; font-weight: var(--w-fw-bold); line-height: 1.25; }
.story .blx-rmeta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 12.5px; color: var(--w-text-secondary); }
.story .blx-rmeta b { font-weight: var(--w-fw-semibold); }
.story .blx-rov, .story .blx-rcard { margin: 14px 0; padding: 12px 18px; border-radius: 14px; background: var(--w-bg-elevated);
  border: 1px solid var(--w-stroke-subtle); border-left: 5px solid var(--w-success); }
.story .blx-rov { padding: 14px 20px; margin-bottom: 8px; }
.story .blx-rov.note, .story .blx-rcard.note { border-left-color: var(--w-text-tertiary); }
.story .blx-rov.watch, .story .blx-rcard.watch { border-left-color: var(--w-warning); }
.story .blx-rov.heavy, .story .blx-rcard.heavy { border-left-color: var(--w-danger); }
.story .blx-rv { font-size: 18px; font-weight: var(--w-fw-bold); margin-bottom: 4px; }
.story .blx-rov ul { margin: 6px 0 0; padding-left: 18px; }
.story .blx-rch { display: flex; align-items: center; gap: 10px; }
.story .blx-rch b { font-size: 16px; }
.story .blx-rtot { margin-left: auto; font-size: 13px; color: var(--w-text-secondary); font-variant-numeric: tabular-nums;
  white-space: nowrap; }
.story .blx-rchip { flex: none; padding: 2px 8px; border-radius: 8px; font-size: 11px; font-weight: var(--w-fw-bold);
  letter-spacing: .04em; background: var(--w-neutral-subtle); color: var(--w-text-secondary); }
.story .blx-rcard.ok .blx-rchip { background: var(--w-success); color: var(--w-text-on-accent); }
.story .blx-rcard.watch .blx-rchip { background: var(--w-warning); color: var(--w-text-primary); }
:root[data-theme="dark"] .story .blx-rcard.watch .blx-rchip { color: var(--w-bg-window); }
.story .blx-rcard.heavy .blx-rchip { background: var(--w-danger); color: var(--w-text-on-danger); }
.story .blx-rcard p { margin: 6px 0 8px; font-size: 13px; color: var(--w-text-secondary); }
.story .blx-rcard table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.story .blx-rcard th:first-child { width: 52%; }
.story .blx-rcard th, .story .blx-rcard td { padding: 6px 10px; text-align: left; border-bottom: 1px solid var(--w-stroke-subtle);
  vertical-align: top; overflow-wrap: break-word; }
.story .blx-rcard th { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--w-text-secondary);
  font-weight: var(--w-fw-semibold); }
.story .blx-rcard th:nth-child(2) { width: 110px; }
.story .blx-rcard tr:last-child td { border-bottom: none; }
.story .blx-rcard .num { text-align: right; font-variant-numeric: tabular-nums; }
.story .blx-rcard .det { color: var(--w-text-secondary); font-size: 12.5px; }
.story .blx-rfoot { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--w-stroke-subtle); font-size: 12px;
  color: var(--w-text-secondary); }

/* A phone. The app never gets this narrow (BloatWindowFactory: MinWidth 720), so the window reflows instead of being
   scaled to an unreadable size: the card's total drops under its name (it was clipped, nowrap, beside a name squeezed
   to one word a line), the table keeps its Detail column (48% + 110 px left it nothing), the tooltip opens leftwards
   from Measure sizes (it ran out of the window), and the report's columns size to their words — "anywhere" let the
   table squeeze Detail to one letter a line (break-word does not lower a column's minimum). */
@media (max-width: 640px) {
  .story .blx-ch, .story .blx-rch { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .story .blx-ct, .story .blx-rtot { grid-column: 1 / -1; margin: 2px 0 0; white-space: normal; }
  .story .blx-tab col.blx-c1 { width: 40%; }
  .story .blx-tab col.blx-c2 { width: 64px; }
  .story .blx-tip { left: auto; right: 0; width: min(320px, 62vw); }
  .story .blx-rcard th:first-child, .story .blx-rcard th:nth-child(2) { width: auto; }
  .story .blx-rpage { padding: 18px 14px 20px; }
  .story .blx-rov, .story .blx-rcard { padding: 10px 12px; }
  .story .blx-rcard th, .story .blx-rcard td { padding: 6px 5px; }
}

/* ── tools/web_mockups/canon.css ── */
/* canon.py's kinds (prefix cnx-). Every rule sits under .story; colours and sizes are the window's tokens (the
   WEB-THEME block of site.css, --w-*): never a raw hex. The shared pieces — the title bar, the app header, the
   controls kit (.hbtn, .mk-*, .dg, .ck, .seg), .dlgrow/.dlgcell/.mt-cap — are site.css's, used as they are. */

/* the stage and the window's width (the XAML's Width, at 1:1; .capwin keeps max-width: 100%) */
.story .cnx-stage { width: 100%; display: flex; justify-content: center; min-width: 0; }
.story .cnx-win { min-width: 0; }
.story .cnx-win.cnx-dlg { width: 470px; }
.story .cnx-win.cnx-w440 { width: 440px; }
.story .cnx-win.cnx-w600 { width: 600px; }
.story .cnx-win.cnx-w640 { width: 640px; }
.story .cnx-win.cnx-w660 { width: 660px; }
.story .cnx-win.cnx-crop { width: 620px; }
.story .cnx-win.cnx-main, .story .cnx-win.cnx-editor { width: 100%; }
.story .cnx-row .cnx-cell { flex: 1 1 300px; max-width: 460px; }
/* dialogs side by side are narrower than their XAML: the margins of a dialog shrink to the row's 20 */
.story .cnx-row .cnx-dlg .cnx-body { padding: 8px 20px 18px; }
.story .cnx-row .cnx-win { width: 100%; }
.story .cnx-body { padding: 8px 24px 18px; display: flex; flex-direction: column; gap: 12px; color: var(--w-text-primary);
  font-size: var(--w-fs-body); min-width: 0; }
.story .cnx-dlg .cnx-body { padding: 8px 28px 22px; }
.story .cnx-body .apphdr { margin-bottom: 2px; }
.story .cnx-live { color: var(--w-text-primary); }
.story .cnx-sp { flex: 1 1 0; min-width: 8px; }
.story .cnx-dim { color: var(--w-text-secondary); white-space: nowrap; }
.story .cnx-pre { white-space: pre-wrap; }

/* a dialog's heading (AppleText.Title2) and its message (AppleText.Subhead, TextSecondary) */
.story .cnx-dh { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.story .cnx-h2 { font-size: var(--w-fs-title2); font-weight: var(--w-fw-semibold); line-height: 1.25; color: var(--w-text-primary); }
.story .cnx-msg { font-size: var(--w-fs-subhead); line-height: 1.45; color: var(--w-text-secondary); }

/* a footer: file actions at the left, Dismiss then Confirm at the right */
.story .cnx-foot { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; margin-top: 6px; }
.story .cnx-foot > .hbtn:not(.compact) { min-width: var(--w-size-button-min-width); }
.story .cnx-fst { font-size: var(--w-fs-callout); color: var(--w-text-secondary); }

/* ── Starter rule packs: the review tick, then one card per pack (BgSurface, StrokeSubtle, 10 corner) ── */
.story .cnx-packs { display: flex; flex-direction: column; gap: 8px; }
.story .cnx-review { margin: 0 0 2px 2px; }
.story .cnx-pack { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 12px; border-radius: 10px;
  background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle); }
.story .cnx-pack-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.story .cnx-pack-t b { font-size: var(--w-fs-body); font-weight: var(--w-fw-semibold); color: var(--w-text-primary);
  white-space: pre-wrap; }
.story .cnx-pack-t span { font-size: 11.5px; line-height: 1.4; color: var(--w-text-secondary); }
.story .cnx-pack > .hbtn { flex: none; min-width: 72px; }

/* ── Draft with AI: the provider badge, the pasted text (AppleTextArea), Generate · Load PDF… and the status,
      the drafts in their card (BgSurface, 12 corner), each draft a card of its own (BgWindow, 9 corner) ── */
.story .cnx-chiprow { display: flex; margin-top: -2px; }
.story .cnx-area { min-height: 110px; padding: 8px 10px; border: 1px solid var(--w-stroke-default);
  border-radius: var(--w-radius-button); background: var(--w-bg-surface); font-size: var(--w-fs-callout); line-height: 1.5;
  color: var(--w-text-primary); display: flex; flex-direction: column; gap: 4px; }
.story .cnx-gen { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.story .cnx-gen .cnx-wide { min-width: var(--w-size-button-min-width-wide); }
.story .cnx-gst { flex: 1 1 160px; margin-left: 6px; font-size: 12.5px; color: var(--w-text-secondary); min-width: 0; }
.story .cnx-results { padding: 10px 12px; border-radius: var(--w-radius-card); background: var(--w-bg-surface);
  border: 1px solid var(--w-stroke-subtle); display: flex; flex-direction: column; gap: 8px; }
.story .cnx-draft { padding: 10px 12px; border-radius: 9px; background: var(--w-bg-window); border: 1px solid var(--w-stroke-subtle); }
.story .cnx-draft-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.story .cnx-draft-h b { font-size: 13.5px; font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .cnx-draft-h i { font-style: normal; font-size: 11.5px; color: var(--w-text-secondary); }
.story .cnx-dsev { display: inline-flex; align-items: center; height: 18px; padding: 0 8px; border-radius: 7px;
  font-size: 10.5px; font-weight: var(--w-fw-semibold); }
.story .cnx-dsev.bad { background: var(--w-danger-subtle); color: var(--w-danger); }
.story .cnx-dsev.warn { background: var(--w-warning-subtle); color: var(--w-warning-ink); }
.story .cnx-dsev.info { background: var(--w-info-subtle); color: var(--w-info); }
.story .cnx-dsev.ok { background: var(--w-success-subtle); color: var(--w-success); }
.story .cnx-draft-m { margin-top: 6px; font-size: 12.5px; line-height: 1.45; color: var(--w-text-secondary); }
.story .cnx-draft-d { margin-top: 4px; font-size: 11.5px; color: var(--w-text-secondary); }
.story .cnx-draft-empty { font-size: 12.5px; color: var(--w-text-secondary); }

/* ── the main windows (Rules, Model health): a toolbar row, the table on its card, the footer ── */
.story .cnx-tb { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.story .cnx-tb .mk-search { flex: none; }
.story .cnx-tbr { margin-left: auto; display: inline-flex; align-items: center; gap: 8px 12px; flex-wrap: wrap;
  justify-content: flex-end; }
/* Model health's toolbar is ONE grid row in the XAML (the search is its * column). A guide's wide beat is narrower
   than the window, so the row breaks after the Show waived · Waivers… bar and the batch actions keep the right edge. */
.story .cnx-tb.cnx-one-line .cnx-grow { flex: 1 1 200px; }
.story .cnx-grow { flex: 1 1 200px; min-width: 0; display: flex; }
.story .cnx-grow .mk-search { flex: 1 1 auto; width: 100%; }
.story .cnx-scan { min-width: 150px; }
.story .cnx-split { display: inline-flex; align-items: center; }
.story .cnx-split .cnx-split-a { border-top-right-radius: 0; border-bottom-right-radius: 0; min-width: var(--w-size-button-min-width-wide); }
.story .cnx-split .cnx-split-b { width: 28px; min-width: 0; padding: 0; border-top-left-radius: 0; border-bottom-left-radius: 0;
  margin-left: 1px; }
.story .cnx-split .cnx-split-b i { display: inline-block; width: 9px; height: 6px; background: currentColor;
  -webkit-mask: var(--mk-ico-chev) center / contain no-repeat; mask: var(--mk-ico-chev) center / contain no-repeat; }
.story .cnx-id { font-family: var(--w-font-mono), Consolas, monospace; font-size: 12.5px;
  font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .cnx-2l { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.story .cnx-2l b { font-size: var(--w-fs-body); font-weight: var(--w-fw-semibold); color: var(--w-text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .cnx-2l span { font-size: var(--w-fs-footnote); color: var(--w-text-secondary); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; }
.story .cnx-rules .cnx-2l span { font-size: 11px; }
.story .dg td.cnx-sec { color: var(--w-text-secondary); }
.story .cnx-acts { display: inline-flex; align-items: center; gap: 8px; }

/* the Rules window's footer: the summary and «N selected», the folder · discipline · packs row, the switch · OK row */
.story .cnx-rfoot { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
.story .cnx-sumline { display: flex; align-items: center; gap: 0; font-size: var(--w-fs-callout);
  font-weight: var(--w-fw-medium); color: var(--w-text-secondary); flex-wrap: wrap; }
.story .cnx-vsep { display: inline-block; width: 1px; height: 14px; margin: 0 10px; background: var(--w-stroke-subtle); }
.story .cnx-selchip { display: inline-flex; align-items: center; height: 18px; padding: 0 8px; border-radius: 6px;
  background: var(--w-bg-hover); font-size: 11px; font-weight: var(--w-fw-semibold); color: var(--w-text-secondary); }
.story .cnx-frow { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.story .cnx-folder { font-weight: var(--w-fw-regular); font-size: var(--w-fs-callout); max-width: 100%; }
.story .cnx-folder .cnx-path { color: var(--w-text-primary); overflow: hidden; text-overflow: ellipsis; }
.story .cnx-disc { display: inline-flex; align-items: center; gap: 6px; font-size: var(--w-fs-callout); }
.story .cnx-rfoot .mk-swl { color: var(--w-text-primary); gap: 10px; }

/* ── the rule editor: the heading, the fields, the cards (AppleCardExpander), Cancel · Done ── */
.story .cnx-eh { margin: 4px 0 0; }
.story .cnx-scroll { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.story .cnx-fl { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; }
.story .cnx-fl .mk-field { width: 100%; }
/* FieldLabel (Rule name, Disciplines, Rule type, When I…, Enforce that the) is AppleText.Subhead: 11, regular;
   the card-inner labels (Severity, Message, How the value is chosen) are 11 SemiBold in the XAML */
.story .cnx-fld { font-size: var(--w-fs-subhead); font-weight: var(--w-fw-regular); color: var(--w-text-secondary); }
.story .cnx-flab { font-size: 11px; font-weight: var(--w-fw-semibold); color: var(--w-text-secondary); }
.story .cnx-it { font-style: italic; }
.story .cnx-flab.cnx-gap { margin-top: 8px; }
.story .cnx-fhint { font-size: 11px; line-height: 1.45; color: var(--w-text-secondary); }
.story .cnx-xcard { border-radius: var(--w-radius-card); background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle); }
.story .cnx-xh { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: var(--w-fs-body); }
.story .cnx-xh b { font-weight: var(--w-fw-semibold); color: var(--w-text-primary); white-space: nowrap; }
/* the header is one line in the app: on a narrow beat the summary gives way, never the title */
.story .cnx-xsum { font-size: var(--w-fs-callout); color: var(--w-text-secondary); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; min-width: 0; }
.story .cnx-chev { flex: none; width: 14px; height: 14px; background: var(--w-text-secondary);
  -webkit-mask: var(--mk-ico-chev) center / 11px 8px no-repeat; mask: var(--mk-ico-chev) center / 11px 8px no-repeat; }
.story .cnx-xcard.shut .cnx-chev { transform: rotate(-90deg); }
.story .cnx-xbody { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.story .cnx-xbody > :is(.hbtn, .seg) { align-self: flex-start; }
.story .cnx-when { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-bottom: 2px; }
.story .cnx-when > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.story .cnx-when .mk-combo { min-width: 220px; max-width: 100%; }
/* ConditionTemplate / a standard row: a Grid of * and Auto — the controls wrap in the star column, the Add · Remove
   pair (or the row's Remove) keeps the Auto column at the right edge */
.story .cnx-cond { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 8px;
  padding: 8px 10px; border-radius: 8px; background: var(--w-bg-window); border: 1px solid var(--w-stroke-subtle); }
.story .cnx-cl { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.story .cnx-cond .mk-combo { min-width: 120px; }
.story .cnx-if { font-size: var(--w-fs-callout); color: var(--w-text-secondary); margin-right: 2px; }
.story .cnx-pm { padding: 2px; gap: 2px; }
.story .cnx-ib { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px;
  border-radius: var(--w-radius-small); color: var(--w-accent-text); }
.story .cnx-ib svg { width: 14px; height: 14px; }
.story .cnx-ib-solo { width: 24px; height: 24px; color: var(--w-text-secondary); }
.story .cnx-help { padding: 8px 10px; border-radius: 8px; background: var(--w-bg-subtle); font-size: 11px; line-height: 1.45;
  color: var(--w-text-secondary); margin-top: 2px; }
.story .cnx-ta { min-height: 56px; padding: 8px 10px; border: 1px solid var(--w-stroke-default); border-radius: var(--w-radius-button);
  background: var(--w-bg-surface); font-size: 14px; line-height: 1.4; color: var(--w-text-primary); }
.story .cnx-inl { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: var(--w-fs-callout); }
.story .cnx-radios { display: flex; gap: 8px 14px; flex-wrap: wrap; font-size: var(--w-fs-callout); }
.story .cnx-radios .mk-radio { font-size: var(--w-fs-callout); }
.story .cnx-std { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border-radius: 8px;
  background: var(--w-bg-window); border: 1px solid var(--w-stroke-subtle); }
.story .cnx-std-l { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 8px;
  font-size: var(--w-fs-callout); }
.story .cnx-std-l b { font-weight: var(--w-fw-semibold); }
.story .cnx-std-l .mk-check { margin-left: 6px; font-size: 11px; }
.story .cnx-std .cnx-cond { background: transparent; }

/* ── Test rule (an AppleWindow, 24,18 margins): the headline (20 semibold), the rule, the hint, the box of rows ── */
.story .cnx-test .cnx-body { padding: 8px 20px 18px; }
.story .cnx-test .cnx-foot { flex-wrap: nowrap; }
.story .cnx-test .cnx-foot .hbtn.plain { padding: 0 6px; }
.story .cnx-th { font-size: 20px; font-weight: var(--w-fw-semibold); line-height: 1.25; color: var(--w-text-primary); }
.story .cnx-tsub { font-size: var(--w-fs-callout); color: var(--w-text-secondary); margin-top: -8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .cnx-thint { font-size: 11px; color: var(--w-text-secondary); margin-top: -2px; }
.story .cnx-box { padding: 6px; min-height: 120px; border-radius: 8px; background: var(--w-bg-window);
  border: 1px solid var(--w-stroke-subtle); display: flex; flex-direction: column; gap: 4px; }
.story .cnx-trow { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; background: var(--w-bg-subtle); }
.story .cnx-trow .cnx-2l { flex: 1 1 auto; }
.story .cnx-trow .cnx-2l span { font-size: 11px; }
.story .cnx-tid { flex: none; font-family: var(--w-font-mono), Consolas, monospace; font-size: 11px; color: var(--w-text-secondary); }
.story .cnx-empty { margin: auto; padding: 16px; text-align: center; font-size: var(--w-fs-body); line-height: 1.5;
  color: var(--w-text-secondary); }

/* ── Rule conflicts: the amber card (WarningSubtle / WarningInk), one card per conflict ── */
.story .cnx-amber { padding: 9px 12px; border-radius: 8px; background: var(--w-warning-subtle); color: var(--w-warning-ink);
  font-size: var(--w-fs-callout); line-height: 1.45; margin-top: -4px; }
.story .cnx-conf { margin: 4px; padding: 10px 12px; border-radius: 8px; background: var(--w-bg-subtle); }
.story .cnx-conf-h { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.story .cnx-conf-h i { font-size: 11px; color: var(--w-text-secondary); }
.story .cnx-cbadge { display: inline-flex; align-items: center; height: var(--w-size-badge); padding: 0 8px;
  border-radius: var(--w-radius-small); font-size: var(--w-fs-badge); font-weight: var(--w-fw-semibold); }
.story .cnx-cbadge.bad { background: var(--w-danger-subtle); color: var(--w-danger); }
.story .cnx-cbadge.warn { background: var(--w-warning-subtle); color: var(--w-warning); }
.story .cnx-conf-p { font-size: var(--w-fs-body); font-weight: var(--w-fw-semibold); line-height: 1.4; color: var(--w-text-primary);
  white-space: pre-wrap; }
.story .cnx-conf-p span { color: var(--w-text-secondary); }
.story .cnx-conf-r { margin-top: 4px; font-size: var(--w-fs-callout); line-height: 1.45; color: var(--w-text-secondary); }

/* ── Choose rules folder: the path box, the hint under it ── */
.story .cnx-pathbox .mk-field { width: 100%; }
.story .cnx-pathbox + .cnx-fhint { margin: -4px 0 0 2px; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); }

/* ── Information (AppleErrorDialog): the blue «i» in its 40 circle, the heading (Title3), the body under it ── */
.story .cnx-alert { display: flex; align-items: flex-start; gap: 16px; margin-top: 8px; }
.story .cnx-ai { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--w-accent); color: var(--w-text-on-accent); font-size: 22px; font-weight: var(--w-fw-bold); }
.story .cnx-alert b { font-size: var(--w-fs-title3); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); padding-top: 9px; }
.story .cnx-abody { margin: -14px 0 0 56px; font-size: var(--w-fs-body); line-height: 1.45; color: var(--w-text-secondary); }

/* ── the waiver: the question keeps its line break, the reason box, «Expires:» and its choice ── */
.story .cnx-reason { min-height: 66px; font-size: var(--w-fs-body); }
.story .cnx-exp { margin-top: -2px; }

/* ── Model health: the scoreboard card, the grouped table, the footer ── */
.story .cnx-board { display: flex; align-items: center; gap: 10px 20px; flex-wrap: wrap; padding: 12px 18px;
  border-radius: var(--w-radius-card); background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle); }
.story .cnx-big { font-size: var(--w-fs-title1); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); white-space: nowrap; }
.story .cnx-comp { display: flex; flex-direction: column; margin-left: -8px; }
.story .cnx-comp b { font-size: var(--w-fs-subhead); font-weight: var(--w-fw-regular); color: var(--w-text-secondary); }
.story .cnx-comp span { font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); white-space: nowrap; }
.story .cnx-chips { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.story .cnx-fchip svg { width: 14px; height: 14px; flex: none; }
.story .cnx-gap14 { margin-right: 8px; }
/* fixed layout: the header row sets the columns (the XAML's widths), a group's header never widens the table */
.story .cnx-health table.dg, .story .cnx-rules table.dg { table-layout: fixed; width: 100%; }
.story .cnx-health .dg td, .story .cnx-rules .dg td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .cnx-health .cnx-grp td { padding-right: 8px; }
.story .cnx-gh { display: inline-flex; align-items: center; gap: 8px; width: calc(100% - 24px); vertical-align: middle; min-width: 0; }
.story .cnx-gh .grp-n { white-space: pre; }
.story .cnx-gh .mk-badge { margin-left: 0; }
.story .cnx-gmsg { flex: 1 1 auto; min-width: 0; margin-left: 8px; font-size: var(--w-fs-footnote); font-weight: var(--w-fw-regular);
  color: var(--w-text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .cnx-gacts { flex: none; display: inline-flex; gap: 6px; }
.story .cnx-dot { flex: none; display: inline-block; width: var(--w-size-status-dot); height: var(--w-size-status-dot);
  border-radius: 50%; background: var(--w-text-tertiary); }
.story .cnx-dot.bad { background: var(--w-danger); } .story .cnx-dot.warn { background: var(--w-warning); }
.story .cnx-dot.info { background: var(--w-info); } .story .cnx-dot.ok { background: var(--w-success); }
.story .dg td.cnx-fixc { padding: 0 4px; }
.story .dg td.cnx-fixc .mk-combo, .story .dg td.cnx-fixc .mk-field { width: 100%; }
.story .cnx-hfoot { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 0 2px; font-size: var(--w-fs-footnote);
  color: var(--w-text-secondary); }
.story .cnx-acc { color: var(--w-accent-text); }

/* ── a toast (CanonToast): 300 at most, the 9 corner, a 3-px accent bar, the glyph, 10.5-px words; its fix ── */
.story .cnx-toast { position: relative; display: flex; align-items: stretch; max-width: 300px; min-width: 220px; box-sizing: border-box;
  border-radius: 9px; border: 1px solid var(--w-stroke-subtle); overflow: hidden; text-align: left;
  box-shadow: 0 2px 14px color-mix(in srgb, var(--w-shadow-colour) 16%, transparent);
  --cnx-t: var(--w-info); background: color-mix(in srgb, var(--cnx-t) 6%, var(--w-bg-elevated)); }
.story .cnx-toast.warn { --cnx-t: var(--w-warning); }
.story .cnx-toast.bad { --cnx-t: var(--w-danger); }
.story .cnx-toast.ok { --cnx-t: var(--w-success); }
.story .cnx-tbar { flex: none; width: 3px; background: var(--cnx-t); }
.story .cnx-tg { flex: none; width: 22px; display: flex; align-items: center; justify-content: center; font-size: 11px;
  font-weight: var(--w-fw-bold); color: var(--cnx-t); }
.story .cnx-tt > span:first-child { white-space: pre-wrap; }
.story .cnx-tt { flex: 1 1 auto; min-width: 0; padding: 5px 11px 5px 3px; font-size: 10.5px; line-height: 13px;
  color: var(--w-text-primary); display: flex; flex-direction: column; justify-content: center; }
.story .cnx-tfix { display: flex; align-items: center; gap: 5px; margin-top: 6px; }
.story .cnx-tcombo { display: inline-flex; align-items: center; justify-content: space-between; gap: 6px; box-sizing: border-box;
  width: 124px; height: 22px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--w-stroke-default);
  background: var(--w-bg-surface); font-size: 10px; color: var(--w-text-primary); }
.story .cnx-tcombo > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .cnx-tcombo > i { flex: none; width: 8px; height: 5px; background: var(--w-text-secondary);
  -webkit-mask: var(--mk-ico-chev) center / contain no-repeat; mask: var(--mk-ico-chev) center / contain no-repeat; }
.story .cnx-tbtn { display: inline-flex; align-items: center; justify-content: center; height: 22px; padding: 0 12px;
  border-radius: 6px; background: var(--cnx-t); color: var(--w-text-on-accent); font-size: 10px; font-weight: var(--w-fw-semibold); }
.story .cnx-fan { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.story .cnx-fan .cnx-toast { width: 100%; }
.story .cnx-sevtag { display: flex; justify-content: center; }
.story .cnx-one { flex-direction: column; align-items: center; gap: 10px; }
.story .cnx-one .cnx-toast { width: 300px; }

/* ── the HTML report in a browser: its top bar, the hero, a section's heading, its cards, the rules table ── */
.story .cnx-repwin { width: 100%; }
.story .cnx-rep { padding: 0 0 16px; background: var(--w-bg-window); color: var(--w-text-primary); font-size: 13px; }
.story .cnx-rtop { display: flex; align-items: center; gap: 8px; padding: 9px 20px; border-bottom: 1px solid var(--w-stroke-subtle);
  background: var(--w-bg-surface); }
.story .cnx-rtop svg { flex: none; width: 22px; height: 22px; }
.story .cnx-rtop b { font-size: 14px; font-weight: var(--w-fw-bold); }
.story .cnx-rtop small { font-size: 12px; color: var(--w-text-secondary); }
.story .cnx-rsearch { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; min-width: 150px;
  border-radius: 9px; background: var(--w-bg-subtle); color: var(--w-text-tertiary); font-size: 12px; }
.story .cnx-rsearch svg { width: 14px; height: 14px; }
.story .cnx-rtheme { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px;
  border: 1px solid var(--w-stroke-subtle); background: var(--w-bg-surface); color: var(--w-text-secondary); font-size: 13px; }
/* the KPI cards (.stats: auto-fit, 158 at the page's size), the section nav (.nav, its first tab on) */
.story .cnx-stats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); padding: 16px 20px 0; }
.story .cnx-stat { padding: 11px 13px; border-radius: 14px; background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle);
  box-shadow: var(--w-shadow-card); min-width: 0; }
.story .cnx-stat .lab { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: var(--w-fw-medium);
  color: var(--w-text-secondary); }
.story .cnx-stat .num { margin-top: 3px; font-size: 23px; font-weight: var(--w-fw-bold); line-height: 1.1; color: var(--w-text-primary);
  font-variant-numeric: tabular-nums; }
.story .cnx-stat .sub { margin-top: 2px; font-size: 10.5px; color: var(--w-text-tertiary); }
.story .cnx-rdot { flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--w-text-tertiary); }
.story .cnx-rdot.ok { background: var(--w-success); } .story .cnx-rdot.warn { background: var(--w-warning); }
.story .cnx-rdot.bad { background: var(--w-danger); } .story .cnx-rdot.acc { background: var(--w-accent); }
.story .cnx-rdot.vio { background: var(--w-violet); }
.story .cnx-rnav { display: flex; gap: 2px; margin-top: 18px; padding: 0 14px; border-bottom: 1px solid var(--w-stroke-subtle); }
.story .cnx-rnav span { padding: 10px 12px; font-size: 12px; font-weight: var(--w-fw-medium); color: var(--w-text-secondary);
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.story .cnx-rnav span.on { color: var(--w-text-primary); border-bottom-color: var(--w-accent); }
.story .cnx-hero { padding: 20px 20px 4px; }
.story .cnx-hero .ey { font-size: 11px; font-weight: var(--w-fw-semibold); letter-spacing: .06em; text-transform: uppercase;
  color: var(--w-accent-text); }
.story .cnx-hero h3 { margin: 4px 0 2px; font-size: 24px; font-weight: var(--w-fw-bold); line-height: 1.15; color: var(--w-text-primary); }
.story .cnx-hero .sb { font-size: 12.5px; color: var(--w-text-secondary); }
.story .cnx-sech { display: flex; align-items: baseline; gap: 10px; padding: 16px 20px 8px; }
.story .cnx-sech b { font-size: 16px; font-weight: var(--w-fw-bold); }
.story .cnx-sech span { font-size: 12px; color: var(--w-text-tertiary); }
.story .cnx-rcard { margin: 0 20px; border-radius: 14px; background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle);
  box-shadow: var(--w-shadow-card); overflow: hidden; min-width: 0; }
/* .grid.g2: two cards side by side, one column on a narrow page (the report's own break is 820) */
.story .cnx-g2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin: 0 20px; }
.story .cnx-g2 .cnx-rcard { margin: 0; }
.story .cnx-g2 + .cnx-rcard { margin-top: 14px; }
@media (max-width: 900px) { .story .cnx-g2 { grid-template-columns: minmax(0, 1fr); } }
.story .cnx-rcb { padding: 14px 15px; }
.story .cnx-rcap { font-size: 11px; color: var(--w-text-tertiary); }
.story .cnx-rch { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--w-stroke-subtle); }
.story .cnx-rch b { font-size: 13.5px; font-weight: var(--w-fw-semibold); }
.story .cnx-rbadge { margin-left: auto; padding: 2px 8px; border-radius: 20px; background: var(--w-bg-subtle); font-size: 11px;
  font-weight: var(--w-fw-semibold); color: var(--w-text-secondary); font-variant-numeric: tabular-nums; }
/* Issues by severity: the donut (16-wide arcs) and its legend; the bar lists (label · track · count) */
.story .cnx-donutbox { display: flex; justify-content: center; }
.story .cnx-donut { width: 132px; height: 132px; }
.story .cnx-donut .bg { fill: none; stroke: var(--w-bg-hover); stroke-width: 16; }
.story .cnx-donut .arc { fill: none; stroke-width: 16; stroke-linecap: round; stroke: var(--w-accent); }
.story .cnx-donut .arc.bad { stroke: var(--w-danger); } .story .cnx-donut .arc.warn { stroke: var(--w-warning); }
.story .cnx-donut .n { font-size: 26px; font-weight: var(--w-fw-bold); fill: var(--w-text-primary); }
.story .cnx-donut .s { font-size: 10px; fill: var(--w-text-tertiary); }
.story .cnx-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; margin-top: 12px; }
.story .cnx-legend > span { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--w-text-secondary); }
.story .cnx-bars { display: flex; flex-direction: column; gap: 9px; }
.story .cnx-bar { display: grid; grid-template-columns: minmax(0, 132px) minmax(0, 1fr) 30px; align-items: center; gap: 10px; }
.story .cnx-bar .bl { font-size: 12px; color: var(--w-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .cnx-bar .bt { height: 9px; border-radius: 6px; background: var(--w-bg-hover); overflow: hidden; }
.story .cnx-bar .bt i { display: block; height: 100%; border-radius: 6px; background: var(--w-warning); }
.story .cnx-bar .bt i.bad { background: var(--w-danger); }
.story .cnx-bar .bv { font-size: 11.5px; color: var(--w-text-secondary); text-align: right; font-variant-numeric: tabular-nums; }
.story .cnx-rempty { margin: 0; padding: 20px; text-align: center; font-size: 12.5px; color: var(--w-text-tertiary); }
/* All rules: the table in its own bordered box inside the card (.tbl-wrap) */
.story .cnx-tblwrap { border: 1px solid var(--w-stroke-subtle); border-radius: 10px; overflow: hidden; }
.story .cnx-health-c { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.story .cnx-health-c > div { flex: 1 1 200px; min-width: 0; }
.story .cnx-health-c h4 { margin: 0 0 4px; font-size: 14px; font-weight: var(--w-fw-semibold); }
.story .cnx-health-c p { margin: 0 0 10px; font-size: 12.5px; line-height: 1.55; color: var(--w-text-secondary); }
.story .cnx-health-c p b { color: var(--w-text-primary); font-weight: var(--w-fw-semibold); }
.story .cnx-ring { flex: none; width: 112px; height: 112px; }
.story .cnx-ring .bg { fill: none; stroke: var(--w-bg-hover); stroke-width: 9; }
.story .cnx-ring .fg { fill: none; stroke: var(--w-success); stroke-width: 9; stroke-linecap: round; }
.story .cnx-ring.warn .fg { stroke: var(--w-warning); } .story .cnx-ring.bad .fg { stroke: var(--w-danger); }
.story .cnx-ring .n { font-size: 27px; font-weight: var(--w-fw-bold); fill: var(--w-text-primary); }
.story .cnx-ring .s { font-size: 9px; fill: var(--w-text-tertiary); }
.story .cnx-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.story .cnx-tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 11px;
  background: var(--w-bg-subtle); font-size: 11.5px; color: var(--w-text-primary); }
.story .cnx-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--w-text-tertiary); }
.story .cnx-tag.ok::before { background: var(--w-success); } .story .cnx-tag.bad::before { background: var(--w-danger); }
.story .cnx-tag.warn::before { background: var(--w-warning); } .story .cnx-tag.acc::before { background: var(--w-accent); }
.story .cnx-tag.ok.on { background: var(--w-success-subtle); }
.story .cnx-tag.bad.on { background: var(--w-danger-subtle); }
.story table.cnx-rt { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 12.5px; }
.story .cnx-rt th { padding: 8px 11px; text-align: left; font-size: 11px; font-weight: var(--w-fw-semibold); color: var(--w-text-secondary);
  background: var(--w-bg-subtle); border-bottom: 1px solid var(--w-stroke-subtle); white-space: nowrap; }
.story .cnx-rt th .ar { margin-left: 4px; font-size: 9px; }
.story .cnx-rt td { padding: 8px 11px; border-bottom: 1px solid var(--w-stroke-subtle); color: var(--w-text-primary); }
.story .cnx-rt tr:last-child td { border-bottom: 0; }
/* the counts are .tnum: tabular figures, left-aligned like every other cell of the page's table */
.story .cnx-rt .num { font-variant-numeric: tabular-nums; }
.story .cnx-rt .cnx-mono { font-family: var(--w-font-mono), Consolas, monospace; font-size: 11.5px; color: var(--w-text-secondary); }
.story .cnx-rpill { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 10px; font-size: 11px;
  font-weight: var(--w-fw-semibold); }
.story .cnx-rpill.warn { background: color-mix(in srgb, var(--w-warning) 16%, transparent); color: var(--w-warning); }
.story .cnx-rpill.bad { background: color-mix(in srgb, var(--w-danger) 16%, transparent); color: var(--w-danger); }
.story .cnx-rpill.info { background: color-mix(in srgb, var(--w-accent) 16%, transparent); color: var(--w-accent); }
.story .cnx-cbar { display: flex; align-items: center; gap: 8px; }
.story .cnx-cbar .t { flex: 1; min-width: 56px; height: 8px; border-radius: 6px; background: var(--w-bg-hover); overflow: hidden; }
.story .cnx-cbar .t i { display: block; height: 100%; background: var(--w-success); }
.story .cnx-cbar .t i.warn { background: var(--w-warning); } .story .cnx-cbar .t i.bad { background: var(--w-danger); }
.story .cnx-cbar .v { min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; }

@media (max-width: 700px) {
  .story .cnx-body { padding: 8px 14px 16px; }
  .story .cnx-dlg .cnx-body { padding: 8px 16px 18px; }
  .story .cnx-abody { margin-left: 0; margin-top: 0; }
}

/* the tick column (the select-all box and its funnel, GridFilters widens it to 80) */
.story :is(.cnx-health, .cnx-rules) .dg thead th.tick { width: 72px; }
.story :is(.cnx-health, .cnx-rules) .dg th { box-sizing: border-box; }

/* ── tools/web_mockups/chronicle.css ── */
/* chronicle.py's kinds (prefix chx-). Every rule sits under .story; colours and sizes are the window's tokens (the
   WEB-THEME block of site.css, --w-*): never a raw hex. The shared pieces — the title bar, the app header, the kit
   (.hbtn, .mk-field, .mk-search, .mk-combo, .mk-chip, .mk-badge, .mk-status, .mk-check, .mk-switch, .ck, .dg,
   .tablewrap) — are site.css's, used as they are; this file only places them where the XAML puts them, and draws
   what is Chronicle's own (the verb colours, the cards, the bands, the timeline). */

/* ── the stage: a window at its XAML width (--chx-width), narrower when the column is ── */
.story .chx-stage { width: 100%; display: flex; justify-content: center; min-width: 0; }
.story .chx-stage > .capwin { width: 100%; max-width: var(--chx-width); min-width: 0; }
.story .chx-win { color: var(--w-text-primary); font-size: var(--w-fs-body); }
.story .chx-body { min-width: 0; }
/* site.css gives every .dg a 900-px floor (the wide report tables); a window here sizes its own */
.story .chx-win table.dg { min-width: 0; width: 100%; table-layout: fixed; }
.story .chx-win .chx-trim { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .chx-win .chx-ter { color: var(--w-text-tertiary); }
.story .chx-win .chx-sec { color: var(--w-text-secondary); }
.story .chx-sp { flex: 1 1 0; min-width: 8px; }

/* the verb colours (VerbPalette: Created · Modified · Sync · Deleted · Annotate · View · Neutral) */
.story .chx-win { --chx-created: var(--w-success-ink); --chx-modified: var(--w-accent); --chx-sync: var(--w-origin-shared);
  --chx-deleted: var(--w-danger); --chx-annotate: var(--w-warning-ink); --chx-view: var(--w-teal);
  --chx-neutral: var(--w-text-tertiary); --chx-chron: var(--w-ochre); }
.story .chx-win .v-created { color: var(--chx-created); }
.story .chx-win .v-modified { color: var(--chx-modified); }
.story .chx-win :is(.v-auto, .v-neutral) { color: var(--chx-neutral); }
.story .chx-win .v-sync { color: var(--chx-sync); }
.story .chx-win .v-deleted { color: var(--chx-deleted); }
.story .chx-win .v-annotate { color: var(--chx-annotate); }
.story .chx-win .v-view { color: var(--chx-view); }

/* the small chevron (Icon.ChevronSmall): AppleExpander's fold, AppleChevronToggle */
.story .chx-chev { width: 6px; height: 8px; flex: none; overflow: visible; fill: none; stroke: var(--w-text-secondary);
  stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* an AppleExpander: the header (Padding 4,6; the chevron 2,0,9,0), the body 18 in */
.story .chx-exp { display: flex; align-items: center; min-height: 20px; padding: 6px 4px; border-radius: 6px; min-width: 0; }
.story .chx-exp > .chx-chev { margin: 0 9px 0 2px; transition: none; }
.story .chx-exp.open > .chx-chev { transform: rotate(90deg); }
.story .chx-exph { display: flex; align-items: center; gap: 0; flex: 1 1 auto; min-width: 0; font-weight: var(--w-fw-semibold); }
.story .chx-expb { margin: 2px 0 8px 18px; min-width: 0; }

/* ── the main window (ChronicleActivityWindow.xaml: header 20,14,20,0 · top bar 20,10 · cards 16,0,16,18) ── */
.story .chx-main > .chx-body { padding: 14px 0 18px; }
.story .chx-main .apphdr { margin: 0 20px; }
.story .chx-search { display: flex; align-items: center; gap: 10px; margin: 10px 20px 0; }
.story .chx-search .mk-field { flex: 1 1 auto; font-size: 13px; padding-left: 12px; }
.story .chx-notice { display: flex; align-items: flex-start; gap: 8px; margin: 9px 20px 0 22px; padding: 7px 10px;
  border: 1px solid var(--w-warning); border-radius: var(--w-radius-small); background: var(--w-warning-subtle);
  color: var(--w-warning-ink); font-size: 12px; line-height: 1.45; }
.story .chx-wico { flex: none; width: 13px; height: 13px; margin-top: 2px; fill: none; stroke: currentColor;
  stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }
.story .chx-cards { display: flex; flex-direction: column; gap: 12px; margin: 14px 16px 0; }

/* an AppleCard (BgSurface, StrokeSubtle, Radius.Card; Padding 10,4,12,10) */
.story .chx-card { background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-card);
  padding: 4px 12px 10px 10px; min-width: 0; box-shadow: var(--w-shadow-card); }
.story .chx-card > .chx-exp { padding-top: 6px; padding-bottom: 6px; }
.story .chx-ht { font-size: 15px; font-weight: var(--w-fw-semibold); color: var(--w-text-primary); white-space: nowrap; }
.story .chx-hg { flex: none; margin-right: 8px; font-size: 12px; font-weight: var(--w-fw-regular);
  font-family: "Segoe UI Symbol", var(--w-font-sans), sans-serif; }
.story .chx-hg.chron { color: var(--chx-chron); }
.story .chx-hc { flex: none; margin-right: 4px; font-size: 12px; font-weight: var(--w-fw-regular); color: var(--w-text-tertiary);
  white-space: nowrap; }
.story .chx-exph .mk-switch { margin: 0 2px 0 10px; }
.story .chx-empty { margin: 4px 0 4px 4px; font-size: 12.5px; color: var(--w-text-secondary); line-height: 1.4; }

/* the Live and Deleted tables (Apple.DataGrid): the verb is AppleStatusDot and its word */
.story .chx-tbl { box-shadow: none; }
/* a grid laid ON an AppleCard (Live, Deleted, the review's drawers: «LOCAL-OK (superficie)») has no card of its own */
.story :is(.chx-card, .chx-rcard) .chx-tbl.tablewrap { border: 0; border-radius: 0; background: transparent; }
.story .chx-tbl table.dg tbody td { font-size: 12px; }
.story .chx-st { display: inline-flex; align-items: center; gap: 8px; color: var(--w-text-primary); white-space: nowrap; }
.story .chx-st::before { content: ""; flex: none; width: var(--w-size-status-dot); height: var(--w-size-status-dot);
  border-radius: 50%; background: var(--chx-neutral); }
.story .chx-st.v-created::before { background: var(--chx-created); }
.story .chx-st.v-modified::before { background: var(--chx-modified); }
.story .chx-st.v-sync::before { background: var(--chx-sync); }
.story .chx-st.v-deleted::before { background: var(--chx-deleted); }
.story .chx-st.v-annotate::before { background: var(--chx-annotate); }
.story .chx-st.v-view::before { background: var(--chx-view); }
.story .chx-win .chx-st[class*="v-"] { color: var(--w-text-primary); }
.story .chx-win table.dg :is(th, td).chx-cv { padding: 0; text-align: center; }
.story .chx-ct-tog { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; }

/* History: the sub-cards (Project · Element · Type), the KPI row, the sync bands */
.story .chx-scopes { margin-left: 4px; }
.story .chx-st13 { font-size: 13px; font-weight: var(--w-fw-semibold); color: var(--w-text-primary); white-space: nowrap; flex: none; }
.story .chx-subj { flex: 1 1 auto; min-width: 0; margin: 0 4px 0 12px; font-size: 12px; font-weight: var(--w-fw-regular);
  color: var(--w-text-tertiary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .chx-subb { margin: 2px 0 8px 18px; }
.story .chx-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin: 2px 0 6px; }
.story .chx-kpi { display: flex; flex-direction: column; padding: 7px 10px 8px; border-radius: 10px; background: var(--w-bg-subtle); min-width: 0; }
.story .chx-kpi b { font-size: 20px; font-weight: var(--w-fw-bold); line-height: 1.2; }
.story .chx-kpi b.v-neutral { color: var(--chx-neutral); }
.story .chx-kpi span { font-size: 11px; color: var(--w-text-tertiary); }
.story .chx-band { margin-top: 8px; }
.story .chx-bandh { display: flex; align-items: center; margin: 0 2px 5px; min-width: 0; }
.story .chx-bandh .chx-fg { width: auto; margin-right: 8px; font-size: 12.5px; }
.story .chx-bu { min-width: 0; font-size: 13px; font-weight: var(--w-fw-semibold); color: var(--w-text-primary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .chx-bc { flex: none; margin: 0 8px; padding: 1px 8px 2px; border-radius: 9px; background: var(--w-bg-subtle);
  font-size: 11px; color: var(--w-text-secondary); white-space: nowrap; }
.story .chx-bw { flex: none; font-size: 11px; color: var(--w-text-tertiary); white-space: nowrap; }
.story .chx-bandb { padding: 4px 2px 5px; border-radius: 10px; background: var(--w-bg-subtle); }
.story .chx-frow { display: flex; align-items: flex-start; margin: 3px 4px 3px 6px; font-size: 12.5px; line-height: 1.35; min-width: 0; }
.story .chx-fg { flex: none; width: 18px; text-align: center; font-size: 12px; font-family: "Segoe UI Symbol", var(--w-font-sans), sans-serif; }
.story .chx-fwho { flex: none; margin: 0 6px 0 4px; font-weight: var(--w-fw-semibold); color: var(--w-text-primary); white-space: nowrap; }
.story .chx-fwhat { flex: 1 1 auto; min-width: 0; color: var(--w-text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .chx-fwhen { flex: none; margin: 0 2px 0 10px; font-size: 11px; color: var(--w-text-tertiary); white-space: nowrap; }
.story .chx-older { margin: 4px 0 2px 4px; font-size: 11px; color: var(--w-text-tertiary); }

/* What changed: the reference, the totals line (8-px dots), the top categories, the paint link and its toggles */
.story .chx-wc { margin: 2px 0 2px 4px; }
.story .chx-wref { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 2px 0 4px; }
.story .chx-wref .seg > .s { padding: 0 10px; }
.story .chx-ph .mk-combo { font-size: 12px; }
.story .chx-ph .mk-combo > span { color: var(--w-text-secondary); }
.story .chx-tot { display: flex; flex-wrap: wrap; align-items: center; margin: 6px 0 2px 2px; font-size: 12.5px;
  color: var(--w-text-secondary); }
.story .chx-dot { display: inline-block; flex: none; width: 8px; height: 8px; margin: 1px 5px 0 0; border-radius: 50%; }
.story .chx-dot.ok { background: var(--w-success); }
.story .chx-dot.warn { background: var(--w-warning); }
.story .chx-dot.bad { background: var(--w-danger); }
.story .chx-dot.out { background: var(--w-text-tertiary); }
.story .chx-mid { margin: 0 7px; color: var(--w-text-tertiary); }
.story .chx-usr { margin-left: 7px; }
.story .chx-cats { margin: 4px 0 2px; }
.story .chx-cat { display: flex; align-items: center; margin: 2px 0 2px 2px; min-width: 0; }
.story .chx-catn { flex: 1 1 auto; min-width: 0; font-size: 12.5px; color: var(--w-text-primary); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.story .chx-catc { flex: none; margin-left: 10px; font-size: 12px; color: var(--w-text-tertiary); }
.story .chx-cat .hbtn { margin-left: 10px; }
.story .chx-paint { margin: 6px 0 0 2px; }
.story .chx-paint .hbtn.link { font-size: var(--w-fs-control-compact); }
.story .chx-togs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 7px 0 0 2px; }
.story .chx-tog { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--w-text-secondary); }
.story .chx-tog .chx-dot { margin: 1px -4px 0 0; }

/* Journals: the sentence, Pick sessions… and its hint, and the timeline (ChronicleTimelineView) */
.story .chx-jdesc { margin: 0 0 10px 2px; font-size: 12.5px; line-height: 1.45; color: var(--w-text-secondary); }
.story .chx-jpick { display: flex; align-items: center; gap: 12px; margin-left: 2px; min-width: 0; }
.story .chx-jhint { min-width: 0; font-size: 12px; color: var(--w-text-tertiary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .chx-tl { margin: 10px 0 0 2px; }
.story .chx-ban { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; min-width: 0; }
.story .chx-ban.bad { background: color-mix(in srgb, var(--w-danger) 8%, transparent); }
.story .chx-ban.warn { background: color-mix(in srgb, var(--w-warning) 8%, transparent); }
.story .chx-ban.ok { background: color-mix(in srgb, var(--w-success) 8%, transparent); }
.story .chx-ban.acc { background: color-mix(in srgb, var(--w-accent) 8%, transparent); }
.story .chx-vd { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px;
  border-radius: 13px; color: var(--w-text-on-accent); font-size: 14px; font-weight: var(--w-fw-semibold); }
.story .chx-vd.bad { background: var(--w-danger); }
.story .chx-vd.warn { background: var(--w-warning); }
.story .chx-vd.ok { background: var(--w-success); }
.story .chx-vd.acc { background: var(--w-accent); }
.story .chx-bant { min-width: 0; }
.story .chx-bt { font-size: 14px; font-weight: var(--w-fw-semibold); color: var(--w-text-primary); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.story .chx-bh { font-size: 12px; color: var(--w-text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .chx-tiles { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.story .chx-tile { display: flex; flex-direction: column; padding: 7px 14px 8px 12px; border-radius: 10px; background: var(--w-bg-subtle); }
.story .chx-tile span { font-size: 11px; color: var(--w-text-secondary); }
.story .chx-tile b { margin-top: 1px; font-size: 16px; font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .chx-tlbar { display: flex; align-items: center; gap: 8px; margin: 10px 0 8px; min-width: 0; }
.story .chx-tlbar .mk-field { flex: 1 1 auto; font-size: 12px; }
.story .chx-tlbar .mk-combo { flex: none; font-size: 12px; }
.story .chx-noise { flex: none; margin-left: 2px; }
.story .chx-noise .mk-check { color: var(--w-text-secondary); }
.story .chx-ev { display: flex; align-items: flex-start; margin: 5px 6px 5px 2px; min-width: 0; }
.story .chx-evt { flex: none; width: 60px; margin-top: 2px; font-size: 12px; color: var(--w-text-secondary); font-variant-numeric: tabular-nums; }
.story .chx-evdot { flex: none; width: 9px; height: 9px; margin: 6px 10px 0 0; border-radius: 5px; background: var(--w-text-tertiary); }
.story .chx-evm { flex: 1 1 auto; min-width: 0; }
.story .chx-evl { display: flex; align-items: baseline; min-width: 0; }
.story .chx-evc { flex: none; margin-right: 8px; font-size: 11px; font-weight: var(--w-fw-semibold); }
.story .chx-evx { min-width: 0; font-size: 13px; color: var(--w-text-primary); line-height: 1.35; }
.story .chx-evd { margin-top: 1px; font-size: 12px; color: var(--w-text-secondary); line-height: 1.35; overflow-wrap: anywhere; }
.story .chx-evs { margin-top: 1px; font-size: 11px; color: var(--w-text-secondary); }
/* the category word wears the dot's own colour (its Foreground is the row's DotBrush, ColorFor) */
.story .chx-evdot.bad { background: var(--w-danger); } .story .chx-evc.bad { color: var(--w-danger); }
.story .chx-evdot.warn { background: var(--w-warning); } .story .chx-evc.warn { color: var(--w-warning); }
.story .chx-evdot.ok { background: var(--w-success); } .story .chx-evc.ok { color: var(--w-success); }
.story .chx-evdot.acc { background: var(--w-accent); } .story .chx-evc.acc { color: var(--w-accent); }
.story .chx-evdot.violet { background: var(--w-violet); } .story .chx-evc.violet { color: var(--w-violet); }
.story .chx-evdot.info { background: var(--w-info); } .story .chx-evc.info { color: var(--w-info); }
.story .chx-evdot.teal { background: var(--w-teal); } .story .chx-evc.teal { color: var(--w-teal); }
.story .chx-evdot.ochre { background: var(--w-ochre); } .story .chx-evc.ochre { color: var(--w-ochre); }
.story .chx-evc.out { color: var(--w-text-tertiary); }
.story .chx-tlfoot { display: flex; align-items: center; gap: 8px; margin-top: 8px; min-width: 0; }
.story .chx-tlcount { min-width: 0; font-size: 12px; color: var(--w-text-secondary); }

/* ── the session picker (ChronicleWindow.xaml: heading 24,20,24,6 · bar 24,6,24,10 · table 18,0 · footer BgSubtle) ── */
.story .chx-picker > .chx-body { padding: 0; }
.story .chx-phead { padding: 20px 24px 6px; }
.story .chx-ph1 { font-size: 20px; font-weight: var(--w-fw-semibold); color: var(--w-text-primary); line-height: 1.3; }
.story .chx-phsub { margin-top: 3px; font-size: 13px; color: var(--w-text-secondary); }
.story .chx-pbar { display: flex; align-items: center; gap: 0; padding: 6px 24px 10px; min-width: 0; }
.story .chx-pbar > .hbtn:first-child { margin-right: 10px; }
.story .chx-pbar .mk-search { flex: 1 1 auto; min-width: 120px; }
.story .chx-fchip { margin-left: 14px; flex: none; }
.story .chx-fchip > svg { width: var(--w-size-icon-in-button-compact); height: var(--w-size-icon-in-button-compact); }
.story .chx-pbar .hbtn.plain:not(:first-child) { margin-left: 8px; }
.story .chx-gb { flex: none; margin: 0 8px 0 14px; font-size: 12px; color: var(--w-text-secondary); white-space: nowrap; }
.story .chx-pbar .mk-combo { flex: none; }
.story .chx-ptable { padding: 0 18px; }
.story .chx-ptbl table.dg { min-width: 760px; }
.story .chx-ptbl .tscroll { overflow-x: auto; }
.story .chx-win table.dg thead th.chx-tickh { padding: 0; }
/* GridGroups' header (Apple.DataGridGroupContainer): BgSubtle, a rule under it, 14,8; the fold, the name, the count;
   then the window's own: how many models the group spans, and the tri-state Tick all at the right */
.story .chx-win table.dg tbody tr.chx-grp, .story .chx-win table.dg tbody tr.chx-grp:nth-child(even) { background: var(--w-bg-subtle); }
.story .chx-win table.dg tbody tr.chx-grp td { height: auto; padding: 8px 14px; border-bottom: 1px solid var(--w-stroke-subtle); }
.story .chx-grpin { display: flex; align-items: center; gap: 0; min-width: 0; }
.story .chx-grpin > .chx-chev { transform: rotate(90deg); margin: 0 10px 0 2px; }
.story .chx-grpin b { font-size: var(--w-fs-callout); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); white-space: nowrap; }
.story .chx-grpin .mk-badge { margin-left: 10px; }
.story .chx-gnote { flex: 1 1 auto; min-width: 0; margin: 0 12px; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .chx-grpin .mk-check { flex: none; font-size: 12.5px; }
.story .chx-pfoot { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 24px 14px;
  background: var(--w-bg-subtle); border-radius: 0 0 var(--w-radius-window) var(--w-radius-window); }
.story .chx-pcount { min-width: 0; font-size: 13px; color: var(--w-text-secondary); }

/* ── the progress dialog (SuiteProgressDialog.xaml: 28,8,28,20) ── */
.story .chx-prog > .chx-body { padding: 8px 28px 20px; }
.story .chx-pr1 { display: flex; align-items: flex-start; gap: 12px; margin-top: 4px; }
.story .chx-prh { flex: 1 1 auto; min-width: 0; font-size: var(--w-fs-title2); font-weight: var(--w-fw-semibold);
  color: var(--w-text-primary); line-height: 1.3; }
.story .chx-pr1 .hbtn { flex: none; }
.story .chx-pr2 { display: flex; align-items: center; margin-top: 14px; min-width: 0; }
.story .chx-prph { flex: none; margin-right: 10px; font-size: var(--w-fs-subhead); font-weight: var(--w-fw-semibold);
  color: var(--w-accent-text); max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .chx-prst { flex: 1 1 auto; min-width: 0; font-size: var(--w-fs-body); color: var(--w-text-secondary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .chx-pr3 { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; }
.story .chx-prclock { flex: 1 1 auto; min-width: 0; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary);
  overflow: hidden; text-overflow: ellipsis; white-space: pre; }
.story .chx-prpct { flex: none; font-size: var(--w-fs-subhead); font-weight: var(--w-fw-semibold); color: var(--w-text-primary);
  font-variant-numeric: tabular-nums; }
.story .chx-prbar { height: 6px; border-radius: 3px; background: var(--w-bg-hover); overflow: hidden; }
.story .chx-prbar > i { display: block; height: 100%; border-radius: 3px; background: var(--w-accent-text); }
.story .chx-prhint { margin-top: 14px; text-align: center; font-size: var(--w-fs-footnote); line-height: 1.45;
  color: var(--w-text-secondary); }

/* ── «What this synchronisation brought» (SyncReviewWindow.xaml: header 20,14,20,0 · summary 20,10,20,6 · list 20,0 ·
   footer: a rule above, 20,10) ── */
.story .chx-review > .chx-body { padding: 0; }
.story .chx-rtop { padding: 14px 20px 0; }
.story .chx-rsum { padding: 10px 20px 6px; font-size: 15px; font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .chx-rtrunc { margin: -2px 20px 6px; font-size: var(--w-fs-footnote); color: var(--w-warning); }
.story .chx-rlist { padding: 0 26px 0 20px; }
.story .chx-rcard { margin-bottom: 10px; padding: 8px 12px; background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-card); box-shadow: var(--w-shadow-card); min-width: 0; }
.story .chx-ru { min-width: 0; font-size: 15px; font-weight: var(--w-fw-semibold); color: var(--w-text-primary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .chx-rc { flex: none; margin-left: 12px; font-size: var(--w-fs-footnote); font-weight: var(--w-fw-regular);
  color: var(--w-text-tertiary); white-space: nowrap; }
.story .chx-rgroups { margin: 6px 0 4px 18px; }
.story .chx-rg { margin: 2px 0; }
.story .chx-rgb { margin: 2px 0 6px 18px; }
.story .chx-rtbl .hbtn { min-width: 0; }
.story .chx-rfoot { display: flex; align-items: center; gap: 8px; padding: 10px 20px; border-top: 1px solid var(--w-separator); }
.story .chx-rfoot .mk-check { min-width: 0; }

/* ── «Chronicle settings» (ChronicleSettingsWindow.xaml: on BgSurface, 24,4,24,18; rows 44; Lens's teal switches) ── */
.story .chx-set > .chx-body { padding: 4px 24px 18px; background: var(--w-bg-surface); border-radius: 0 0 var(--w-radius-window) var(--w-radius-window); }
/* the window's own AccentBrush is Lens's teal (<SolidColorBrush x:Key="AccentBrush" Color="{DynamicResource Teal}"/>), so
   everything that paints with it — the switches AND the primary button, Done — is teal here */
.story .chx-set .mk-switch.on { background: var(--w-teal); }
.story .chx-set .hbtn.primary { background: var(--w-teal); border-color: transparent; color: var(--w-text-on-accent); }
.story .chx-shead { margin: 6px 0 4px; }
.story .chx-sh { font-size: var(--w-fs-title2); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); line-height: 1.3; }
.story .chx-ssub { margin-top: 2px; font-size: var(--w-fs-subhead); line-height: 1.45; color: var(--w-text-secondary); }
/* the ScrollViewer: 8 under the heading, a 14 gutter at the right (Padding 0,0,14,0) the footer does not have */
.story .chx-sscroll { margin-top: 8px; padding-right: 14px; }
.story .chx-ssec { margin: 14px 0 6px; font-size: 11.5px; font-weight: var(--w-fw-semibold); color: var(--w-ochre); letter-spacing: .02em; }
/* every label and value here is AppleText.Subhead, whose ink is TextSecondary */
.story .chx-srow { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 44px;
  font-size: var(--w-fs-subhead); color: var(--w-text-secondary); }
.story .chx-ssep { height: 1px; background: var(--w-separator); }
.story .chx-step { display: inline-flex; align-items: center; flex: none; }
.story .chx-stepbox { display: inline-flex; align-items: stretch; border: 1px solid var(--w-stroke-subtle); border-radius: 6px; overflow: hidden; }
.story .chx-stepbox b { display: inline-flex; align-items: center; justify-content: center; width: 26px; font-weight: var(--w-fw-regular);
  color: var(--w-text-secondary); }
.story .chx-stepbox span { min-width: 34px; padding: 4px 0; text-align: center; border-left: 1px solid var(--w-stroke-subtle);
  border-right: 1px solid var(--w-stroke-subtle); font-size: var(--w-fs-subhead); color: var(--w-text-secondary); }
.story .chx-step em { margin-left: 6px; font-style: normal; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); }
.story .chx-srename { display: flex; align-items: center; justify-content: space-between; height: 52px;
  font-size: var(--w-fs-subhead); color: var(--w-text-secondary); }
.story .chx-ster { font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); line-height: 1.45; }
.story .chx-sgo .chx-chev { stroke: var(--w-text-tertiary); }
.story .chx-slegh { margin: 10px 0 4px; }
.story .chx-slegend { display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: var(--w-fs-footnote);
  font-family: "Segoe UI Symbol", var(--w-font-sans), sans-serif; }
.story .chx-lg.ok { color: var(--w-success); }
.story .chx-lg.acc { color: var(--w-accent-text); }
.story .chx-lg.warn { color: var(--w-warning); }
.story .chx-lg.teal { color: var(--w-teal); }
.story .chx-lg.violet { color: var(--w-violet); }
.story .chx-lg.out { color: var(--w-text-tertiary); }
.story .chx-lg.shared { color: var(--w-origin-shared); }
.story .chx-shint { margin: 8px 0 6px; }
.story .chx-ssec2 { margin-bottom: 8px; font-size: var(--w-fs-footnote); line-height: 1.45; color: var(--w-text-secondary); }
.story .chx-steam { min-width: 150px; }
.story .chx-sfoot { display: flex; align-items: center; gap: 6px; margin-top: 14px; }
.story .chx-sok { font-size: 12px; color: var(--w-success); }
.story .chx-sfoot .hbtn.primary { min-width: 92px; }

/* ── «Team change-history folder» (TeamFolderDialog.xaml: 28,8,28,24) ── */
.story .chx-team > .chx-body { padding: 8px 28px 24px; }
.story .chx-th { margin: 8px 0 4px; font-size: var(--w-fs-title2); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); line-height: 1.3; }
/* AppleText.Subhead: TextSecondary */
.story .chx-tsub { margin-bottom: 16px; font-size: var(--w-fs-subhead); line-height: 1.5; color: var(--w-text-secondary); }
.story .chx-tpath { display: flex; align-items: center; height: 40px; padding: 0 12px; box-sizing: border-box;
  border: 1px solid var(--w-accent); border-radius: var(--w-radius-button); background: var(--w-bg-surface);
  box-shadow: 0 0 0 3px var(--w-focus-ring); font-size: 13px; color: var(--w-text-primary); white-space: nowrap; overflow: hidden; }
.story .chx-caret { display: inline-block; width: 1px; height: 16px; margin-left: 1px; background: var(--w-text-primary); }
.story .chx-thint { margin: 8px 0 0 2px; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); white-space: pre-wrap; }
.story .chx-tfoot { display: flex; align-items: center; gap: 8px; margin-top: 20px; }
.story .chx-tfoot .hbtn { min-width: 92px; }
.story .chx-tfoot .hbtn.primary { min-width: 150px; }

/* ── the exported post-mortem, in a browser (ChronicleHtml.Build's page — its inline style re-read with the site's
   tokens: topbar 10,24 · hero 34,24,6 · stats minmax(150px,1fr) gap 12 · nav · main 22,24 · cards Radius 16) ── */
.story .chx-rep > .chx-body { padding: 0; }
.story .chx-xpage { background: var(--w-bg-window); color: var(--w-text-primary); font-size: 13px; min-width: 0;
  border-radius: 0 0 var(--w-radius-window) var(--w-radius-window); overflow: hidden; }
.story .chx-xtop { display: flex; align-items: center; gap: 14px; padding: 10px 24px; background: var(--w-bg-surface);
  border-bottom: 1px solid var(--w-stroke-subtle); min-width: 0; }
.story .chx-xbrand { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: var(--w-fw-semibold);
  white-space: nowrap; }
.story .chx-xbrand small { font-size: 15px; font-weight: var(--w-fw-medium); color: var(--w-text-secondary); }
.story .chx-xbrand svg { flex: none; width: 22px; height: 22px; }
.story .chx-xtop .mk-search { flex: 0 1 200px; min-width: 120px; }
.story .chx-xtheme { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-button); background: var(--w-bg-surface);
  color: var(--w-text-secondary); font-size: 15px; }
.story .chx-xhero { padding: 30px 24px 4px; min-width: 0; }
.story .chx-xeye { font-size: 12px; font-weight: var(--w-fw-semibold); letter-spacing: .06em; text-transform: uppercase;
  color: var(--w-accent-text); }
.story .chx-xh1 { margin: 7px 0 3px; font-size: 28px; font-weight: var(--w-fw-bold); line-height: 1.2; letter-spacing: -.02em;
  overflow-wrap: anywhere; }
.story .chx-xsub { font-size: 14px; color: var(--w-text-secondary); }
.story .chx-xstats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 18px 24px 0; }
.story .chx-xstat { min-width: 0; padding: 13px 15px; background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-card); box-shadow: var(--w-shadow-card); }
.story .chx-xlab { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: var(--w-fw-medium);
  color: var(--w-text-secondary); }
.story .chx-xlab i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--w-text-tertiary); }
.story .chx-xlab i.ok { background: var(--w-success); }
.story .chx-xlab i.warn { background: var(--w-warning); }
.story .chx-xlab i.bad { background: var(--w-danger); }
.story .chx-xlab i.acc { background: var(--w-accent); }
.story .chx-xlab i.info { background: var(--w-info); }
.story .chx-xnum { margin-top: 3px; font-size: 25px; font-weight: var(--w-fw-bold); line-height: 1.15; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; }
/* the status is a word, at 19 in a 27 figure */
.story .chx-xnum.word { font-size: 18px; line-height: 1.3; padding: 3px 0 2px; }
.story .chx-xsl { margin-top: 2px; font-size: 11.5px; color: var(--w-text-tertiary); }
.story .chx-xnav { display: flex; gap: 2px; margin-top: 20px; padding: 0 18px; border-bottom: 1px solid var(--w-stroke-subtle);
  overflow-x: auto; }
.story .chx-xnav span { padding: 11px 13px; font-size: 13.5px; font-weight: var(--w-fw-medium); color: var(--w-text-secondary);
  border-bottom: 2px solid transparent; white-space: nowrap; }
.story .chx-xnav span.on { color: var(--w-text-primary); border-bottom-color: var(--w-accent); }
.story .chx-xmain { padding: 0 24px 24px; min-width: 0; }
.story .chx-xsec { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 24px 2px 12px; }
.story .chx-xh2 { font-size: 18px; font-weight: var(--w-fw-semibold); letter-spacing: -.02em; }
.story .chx-xcap { font-size: 12.5px; color: var(--w-text-tertiary); }
.story .chx-xg2 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (max-width: 820px) { .story .chx-xg2 { grid-template-columns: minmax(0, 1fr); } }
.story .chx-xcard { min-width: 0; overflow: hidden; background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-card); box-shadow: var(--w-shadow-card); }
.story .chx-xcardh { display: flex; align-items: center; gap: 9px; padding: 13px 16px; border-bottom: 1px solid var(--w-stroke-subtle); }
.story .chx-xcardh b { font-size: 14px; font-weight: var(--w-fw-semibold); white-space: nowrap; }
.story .chx-xcardh .chx-xcap { font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .chx-xbadge { flex: none; margin-left: auto; padding: 3px 9px; border-radius: var(--w-radius-pill); background: var(--w-bg-hover);
  font-size: 11.5px; font-weight: var(--w-fw-semibold); color: var(--w-text-secondary); font-variant-numeric: tabular-nums; }
.story .chx-xcardb { padding: 14px 16px; }
.story .chx-xcardb p { margin: 0 0 4px; font-size: 13.5px; line-height: 1.5; color: var(--w-text-primary); }
.story .chx-xflag { display: flex; align-items: flex-start; gap: 9px; padding: 8px 0; font-size: 13px; line-height: 1.45;
  border-bottom: 1px solid var(--w-stroke-subtle); }
.story .chx-xflag:last-child { border-bottom: 0; }
.story .chx-xflag i { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--w-warning); }
.story .chx-xempty { padding: 22px; text-align: center; color: var(--w-text-tertiary); }

/* ── tools/web_mockups/clash.css ── */
/* clash.py's kinds (prefix clx-). Every rule sits under .story; colours and sizes are the window's tokens (the
   WEB-THEME block of site.css, --w-*): never a raw hex. The shared pieces — the title bar, the app header, the
   controls kit (.hbtn, .mk-bar, .seg, .mk-chip, .mk-badge, .mk-combo, .mk-field, .mk-search, .ck, .dg, .mk-split) — are
   site.css's, used as they are; only how Clash's own cells, rows and panes sit is here. */

/* ── composition ── */
.story .clx-stage { width: 100%; display: flex; justify-content: center; min-width: 0; }
.story .clx-stack { display: grid; gap: 18px; justify-items: center; width: 100%; min-width: 0; }
.story .clx-sp { flex: 1 1 0; min-width: 0; }
.story .clx-pre { white-space: pre; }
.story .clx-right { display: flex; justify-content: flex-end; }
.story .clx-left { display: flex; justify-content: flex-start; }
.story .clx-mt14 { margin-top: 14px; }
.story .clx-ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the windows' widths: each window carries its own (the XAML's Width, or its crop's) as a style; the column clamps it */
.story .capwin.clx-win { max-width: 100%; }
/* the tables: the site's .dg has a 900 floor (min-width) and content-box headers; Clash's columns are the XAML's,
   padding included, and a table narrower than its columns scrolls inside its card as the DataGrid does. A header too
   long for its column is CUT, as the DataGridColumnHeader's * column clips it (no ellipsis) */
.story .clx-win table.dg { min-width: 0; }
.story .clx-win table.dg th { box-sizing: border-box; overflow: hidden; text-overflow: clip; }
/* a figure in a cell is AppleText.CellNumber: right, and the secondary ink (the counts of the rules table too) */
.story .clx-win .dg tbody td.num, .story .clx-tot, .story .clx-ctd > span { color: var(--w-text-secondary); }
.story .clx-body { color: var(--w-text-primary); font-size: var(--w-fs-callout); }

/* ── the big windows, scaled whole (clash.py: THE BIG WINDOWS). The window keeps its real width (--clx-dw) and the
   wrapper scales it (zoom) to --clx-bw; the stage (a centring flex box) centres it on the column, past the column's
   edges on a big screen. The column's centre sits 27 px right of the viewport's (the beat's rail), so a width W is
   used only from a viewport of W + 90 (the rail's offset, a scroll bar, a margin); below 730 the window scrolls. ── */
.story .clx-fit { position: relative; z-index: 2; flex: none; width: var(--clx-bw); }
.story .clx-fit > .capwin.clx-win { width: var(--clx-dw); max-width: none; zoom: var(--clx-z); }
.story .clx-fit-1160 { --clx-z: 1; --clx-bw: 1160px; }
@media (max-width: 1249px) { .story .clx-fit-1160 { --clx-z: .9655; --clx-bw: 1120px; } }
@media (max-width: 1209px) { .story .clx-fit-1160 { --clx-z: .8552; --clx-bw: 992px; } }
@media (max-width: 1081px) { .story .clx-fit-1160 { --clx-z: .6897; --clx-bw: 800px; } }
@media (max-width: 889px) { .story .clx-fit-1160 { --clx-z: .5517; --clx-bw: 640px; } }
.story .clx-fit-1600 { --clx-z: .85; --clx-bw: 1360px; }
@media (max-width: 1449px) { .story .clx-fit-1600 { --clx-z: .8; --clx-bw: 1280px; } }
@media (max-width: 1369px) { .story .clx-fit-1600 { --clx-z: .7; --clx-bw: 1120px; } }
@media (max-width: 1209px) { .story .clx-fit-1600 { --clx-z: .62; --clx-bw: 992px; } }
@media (max-width: 1081px) { .story .clx-fit-1600 { --clx-z: .5; --clx-bw: 800px; } }
@media (max-width: 889px) { .story .clx-fit-1600 { --clx-z: .4; --clx-bw: 640px; } }
@media (max-width: 729px) {
  .story .clx-fit { flex: 1 1 auto; width: 100%; overflow-x: auto; padding-bottom: 18px; }
}


/* ── the dots: a severity, a status, a side ── */
.story .clx-dot { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 50%;
  background: var(--w-text-tertiary); vertical-align: middle; }
.story .clx-dot.crit { background: var(--w-danger); }
.story .clx-dot.maj { background: var(--w-warning); }
.story .clx-dot.min { background: var(--w-severity-minor); }
.story .clx-dot.clr { background: var(--w-success); }
.story .clx-dot.res { background: var(--w-state-resolved); }
.story .clx-dot.ign { background: var(--w-text-disabled); }
.story .clx-dot.acc { background: var(--w-accent); }
.story .clx-dot.clx-sidea { background: var(--w-pair-side-a); }
.story .clx-dot.clx-sideb { background: var(--w-pair-side-b); }
.story .clx-dot.clx-st-new { background: var(--w-danger); }
.story .clx-dot.clx-st-active { background: var(--w-warning); }
.story .clx-dot.clx-st-reviewed { background: var(--w-info); }
.story .clx-dot.clx-st-approved { background: var(--w-success); }
.story .clx-dot.clx-st-resolved { background: var(--w-state-resolved); }

/* ── «Edit clash rule» (ClashRuleEditor.xaml: 24,12,24,18; the heading 20 SemiBold; AppleCardExpander cards) ── */
.story .clx-editor .clx-body { padding: 12px 24px 18px; }
.story .clx-edh { font-size: 20px; font-weight: var(--w-fw-semibold); margin: 4px 0 12px; color: var(--w-text-primary); }
.story .clx-flbl { font-size: var(--w-fs-subhead); color: var(--w-text-secondary); margin-bottom: 4px; }
.story .clx-namerow { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.story .clx-namerow .mk-field { flex: 1 1 auto; }
.story .clx-swbig { flex: none; width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--w-stroke-subtle); }
.story .clx-xcard { background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-card); margin-bottom: 12px; }
.story .clx-xcard:last-child { margin-bottom: 0; }
.story .clx-xhd { display: flex; align-items: center; padding: 12px 16px; gap: 0; }
.story .clx-xhd b { font-size: 13px; font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .clx-xchev { flex: none; width: 14px; height: 14px; margin-right: 10px; display: inline-block;
  background: var(--w-text-secondary); transform: rotate(-90deg);
  -webkit-mask: var(--mk-ico-chev) center / 10px 7px no-repeat; mask: var(--mk-ico-chev) center / 10px 7px no-repeat; }
.story .clx-xcard.open .clx-xchev { transform: none; }
.story .clx-xsum { flex: none; max-width: 60%; padding: 3px 10px; border-radius: 9px; background: var(--w-bg-subtle);
  font-size: 12px; color: var(--w-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .clx-xbody { padding: 0 16px 16px; }
.story .clx-sides { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.story .clx-side { display: flex; flex-direction: column; gap: 9px; padding: 12px; border-radius: 10px;
  background: var(--w-bg-subtle); border: 1px solid var(--w-stroke-subtle); min-width: 0; }
.story .clx-sideh { display: flex; align-items: center; gap: 7px; }
.story .clx-sideh .clx-dot { width: 8px; height: 8px; }
.story .clx-sideh b { font-size: 12px; font-weight: var(--w-fw-bold); color: var(--w-text-primary); }
.story .clx-side > .seg { align-self: flex-start; }
.story .clx-side > .mk-field { width: 100%; }
.story .clx-lbl { font-size: 11px; font-weight: var(--w-fw-semibold); color: var(--w-text-secondary); margin-bottom: -3px; }
.story .clx-list { border: 1px solid var(--w-stroke-subtle); border-radius: 8px; background: var(--w-bg-surface);
  overflow: hidden; padding: 2px 0; }
.story .clx-catlist { height: 190px; }
.story .clx-li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; font-size: 12px; color: var(--w-text-primary);
  white-space: nowrap; }
.story .clx-hint { font-size: 10.5px; line-height: 1.4; color: var(--w-text-tertiary); margin-top: 5px; }
.story .clx-side .clx-hint { margin: -4px 0 1px 2px; }
.story .clx-hint.clx-c { text-align: center; }
.story .clx-w560 { max-width: 560px; }
.story .clx-srow { display: flex; gap: 6px; }
.story .clx-srow .mk-field { flex: 1 1 auto; min-width: 60px; }
.story .clx-fld { margin-bottom: 14px; display: flex; flex-direction: column; align-items: flex-start; }
.story .clx-fld:last-child { margin-bottom: 0; }
.story .clx-fld > .seg { max-width: 100%; }
.story .clx-erow { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-bottom: 0; }
/* a field in a row of fields: the row is the StackPanel, so no field of it carries the 14 under it (the bands' own
   14 is the only gap before them) */
.story .clx-erow > .clx-fld { margin-bottom: 0; }
.story .clx-erow + * { margin-top: 0; }
.story .clx-inl { display: flex; align-items: center; gap: 8px; }
.story .clx-unit { font-size: 12px; color: var(--w-text-secondary); }
.story .clx-bands { display: grid; grid-template-columns: .6fr 1fr 1fr 1fr; height: 30px; margin-top: 14px;
  border: 1px solid var(--w-stroke-subtle); border-radius: 8px; overflow: hidden; }
.story .clx-bands > span { display: flex; align-items: center; justify-content: center; font-size: 10.5px;
  font-weight: var(--w-fw-bold); white-space: nowrap; overflow: hidden; }
.story .clx-bands .clr { background: var(--w-success); color: var(--w-text-on-accent); }
.story .clx-bands .min { background: var(--w-severity-minor); color: var(--w-severity-minor-ink); }
.story .clx-bands .maj { background: var(--w-warning); color: var(--w-text-on-accent); }
.story .clx-bands .crit { background: var(--w-danger); color: var(--w-text-on-danger); }
/* the severity card: 12 under the Auto | Fixed track, 20 between the two thresholds, the hint 11 at 8 under the bands */
.story .clx-fld.clx-mb12 { margin-bottom: 12px; }
.story .clx-erow.clx-g20 { column-gap: 20px; }
.story .clx-hint.clx-severity-hint { margin-top: 8px; font-size: 11px; }
.story .clx-foot { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 14px; }
.story .clx-foot > .hbtn:not(.compact) { min-width: var(--w-size-button-min-width); }

/* ── the classic window (ClashWindow.xaml: 20,16,20,16) ── */
.story .clx-classic .clx-body { padding: 16px 20px; }
.story .clx-cls .apphdr { margin-bottom: 12px; }
.story .clx-cls .apphdr-end, .story .clx-iw .apphdr-end { align-self: center; }
/* the toolbar: ONE WrapPanel, 5 between buttons (each Margin="5,0,0,0"), 10 after «Run selected» (its own 0,0,5,0) */
.story .clx-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 5px; margin-bottom: 14px; }
.story .clx-tools > :first-child { margin-right: 5px; }
.story .clx-tablerow { display: flex; align-items: stretch; gap: 8px; }
.story .clx-tablerow > .clx-rules { flex: 1 1 auto; min-width: 0; }
.story .clx-rules table.dg { table-layout: fixed; width: 100%; }
.story .clx-rules .dg thead th.fl.tick { width: 80px; }
.story .clx-rules .dg tbody td { height: var(--w-size-grid-row-two-line); }
.story .clx-rh { display: flex; align-items: center; gap: 12px; min-width: 0; }
.story .clx-rhc { margin-left: auto; font-weight: var(--w-fw-regular); color: var(--w-text-tertiary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.story .clx-rule { display: flex; align-items: center; gap: 12px; min-width: 0; }
.story .clx-sw { flex: none; width: var(--w-size-icon-medium); height: var(--w-size-icon-medium); border-radius: var(--w-radius-small);
  border: 1px solid var(--w-stroke-subtle); background: var(--w-accent); }
.story .clx-sw-red { background: var(--w-danger); }
.story .clx-sw-teal { background: var(--w-teal); }
.story .clx-sw-purple { background: var(--w-violet); }
.story .clx-sw-blue { background: var(--w-accent); }
.story .clx-sw-orange { background: var(--w-warning); }
.story .clx-sw-green { background: var(--w-success); }
.story .clx-rn { display: flex; flex-direction: column; min-width: 0; }
.story .clx-rn b { font-size: 13.5px; font-weight: var(--w-fw-semibold); color: var(--w-text-primary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .clx-rn span { font-size: 12px; color: var(--w-text-tertiary); margin-top: 2px; white-space: pre;
  overflow: hidden; text-overflow: ellipsis; }
.story .mk-badge.clx-cmp-mm { background: var(--w-accent-subtle); color: var(--w-accent-ink); }
.story .mk-badge.clx-cmp-ml { background: var(--w-violet-subtle); color: var(--w-violet); }
.story .mk-badge.clx-cmp-ll { background: var(--w-success-subtle); color: var(--w-success-ink); }
.story .mk-badge.clx-eng { background: var(--w-bg-surface); border: 1px solid var(--w-stroke-default); color: var(--w-text-secondary); }
.story .mk-badge.clx-eng.on { background: var(--w-accent-wash); border-color: var(--w-accent-border); color: var(--w-accent-text); }
.story .clx-tol { font-size: 12.5px; color: var(--w-text-primary); }
.story .clx-tol i { font-style: normal; font-size: 11px; color: var(--w-text-tertiary); }
.story .clx-res { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.story .clx-sb { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 18px; padding: 0 6px;
  box-sizing: border-box; border-radius: var(--w-radius-small); font-size: var(--w-fs-badge); font-weight: var(--w-fw-semibold);
  font-variant-numeric: tabular-nums; }
.story :is(.clx-sb, .clx-gp).crit { background: var(--w-danger); color: var(--w-text-on-danger); }
.story :is(.clx-sb, .clx-gp).maj { background: var(--w-warning); color: var(--w-text-on-accent); }
.story :is(.clx-sb, .clx-gp).min { background: var(--w-severity-minor); color: var(--w-severity-minor-ink); }
.story :is(.clx-sb, .clx-gp).clr { background: var(--w-success); color: var(--w-text-on-accent); }
.story .clx-resd { font-size: 11px; color: var(--w-text-tertiary); }
.story .clx-notrun { font-size: 11.5px; color: var(--w-text-tertiary); }
/* Run | Edit: the interactive cell has no padding of its own — only the track's Margin="0,0,4,0" — so the 150 of
   the column hold «Ejecutar | Editar» whole; nothing to elide */
.story .clx-rules td.clx-actc { text-align: right; padding: 0 4px 0 0; text-overflow: clip; }
/* the seam handle: BROWSE, the table's height (Size.ControlInner wide, surface, a hairline) */
.story .clx-seam { flex: none; width: var(--w-size-control-inner); display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px; background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-medium); color: var(--w-text-secondary); }
.story .clx-seam > svg { width: var(--w-size-icon-small); height: var(--w-size-icon-small); }
.story .clx-seam > span { writing-mode: vertical-rl; font-size: 11px; font-weight: var(--w-fw-semibold); letter-spacing: 0; }
/* the status bar and its legend */
.story .clx-statusbar { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 9px 14px;
  background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-card); }
.story .clx-statusbar .clx-st { flex: 1 1 auto; font-size: 11.5px; color: var(--w-text-secondary); line-height: 1.4; }
.story .clx-legend { display: flex; flex: none; align-items: center; gap: 14px; }
.story .clx-legend > span { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--w-text-secondary); }
.story .clx-legend .clx-dot.res { opacity: .55; }

/* ── the clash browser (BrowserPanel: BgSurface, a hairline, the 12 corner) ── */
.story .clx-browse .clx-body { padding: 16px 20px; }
.story .clx-bp { background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle); border-radius: 12px; }
.story .clx-bph { padding: 12px 12px 8px 14px; }
.story .clx-bpt { font-size: 14px; font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .clx-bpc { font-size: 11px; color: var(--w-text-tertiary); margin-top: 2px; }
.story .clx-bph .mk-search { display: flex; width: 100%; margin-top: 8px; }
.story .clx-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 0 14px; }
.story .clx-brow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 7px 12px 8px 14px; }
.story .clx-blist { padding: 0 6px 8px; }
.story .clx-grp { background: var(--w-bg-subtle); border: 1px solid var(--w-stroke-subtle); border-radius: 10px; margin-bottom: 4px; }
.story .clx-gh { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; }
.story .clx-ght { display: flex; flex-direction: column; min-width: 0; }
.story .clx-ght b { font-size: 12.5px; font-weight: var(--w-fw-bold); color: var(--w-text-primary); white-space: nowrap; }
.story .clx-ght span { font-size: 10.5px; color: var(--w-text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .clx-ghm { display: flex; align-items: center; gap: 0; min-width: 0; overflow: hidden; }
.story .clx-gc { font-size: 11px; color: var(--w-text-tertiary); white-space: nowrap; }
.story .clx-ai { margin-left: 8px; padding: 1px 7px; border-radius: 9px; font-size: 10px; font-weight: var(--w-fw-bold);
  color: var(--w-text-on-accent); background: var(--w-text-tertiary); white-space: nowrap; }
.story .clx-ai-critical { background: var(--w-danger); }
.story .clx-ai-high { background: var(--w-warning); }
.story .clx-ai-medium { background: var(--w-severity-minor); color: var(--w-severity-minor-ink); }
.story .clx-ai-low { background: var(--w-info); }
.story .clx-own { margin-left: 6px; font-size: 10.5px; color: var(--w-text-secondary); white-space: nowrap; }
.story .clx-ghp { display: flex; gap: 4px; }
.story .clx-gp { display: inline-flex; align-items: center; padding: 1px 6px; border-radius: 9px; font-size: 10.5px;
  font-weight: var(--w-fw-bold); font-variant-numeric: tabular-nums; }
.story .clx-grows { padding: 0 6px 6px; }
.story .clx-crow { padding: 9px 10px; margin-bottom: 2px; border: 1px solid transparent; border-radius: 10px; }
.story .clx-crow.hl { background: var(--w-bg-hover); border-color: var(--w-accent-border-subtle); }
.story .clx-crow.sel { background: var(--w-accent-subtle); border-color: var(--w-accent-border); }
.story .clx-cl1 { display: flex; align-items: center; gap: 9px; }
.story .clx-cl1 b { font-size: 12.5px; font-weight: var(--w-fw-semibold); color: var(--w-text-primary); white-space: pre; }
.story .clx-cl1 span { font-size: 11px; color: var(--w-text-tertiary); }
.story .clx-meta { margin: 2px 0 0 21px; font-size: 10.5px; line-height: 1.4; color: var(--w-text-tertiary); white-space: pre-wrap; }
.story .clx-rowtools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 0 21px; }
.story .mk-bar > .hbtn.clx-sevbtn { padding: 0 9px; }
.story .clx-sevbtn .clx-dot { width: 11px; height: 11px; }
/* the assign bar: the accent's tint and its edge, the 10 corner */
.story .clx-assign { margin: 0 12px 8px 14px; padding: 10px 12px; border-radius: 10px; background: var(--w-accent-subtle);
  border: 1px solid var(--w-accent-border); }
.story .clx-ah { font-size: 12px; font-weight: var(--w-fw-semibold); color: var(--w-text-primary); margin-bottom: 8px; }
.story .clx-agrid { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 8px; }
.story .clx-al { font-size: 11px; color: var(--w-text-secondary); }
.story .clx-agrid > :is(.mk-combo, .mk-field) { width: 100%; }
.story .clx-abtns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 10px; }
/* a piece of the panel (beat 7): cut at its foot */
.story .clx-bp-cut { width: 100%; padding-top: 10px; }
.story .clx-bp-cut .clx-assign { margin-top: 0; }
.story .clx-bp-cut .clx-grp { margin: 0 6px 0; }
.story .clx-fade { -webkit-mask-image: linear-gradient(to bottom, var(--ink) 60%, transparent);
  mask-image: linear-gradient(to bottom, var(--ink) 60%, transparent); }

/* ── the issues window (ClashIssuesWindow.xaml: 22,10,22,16) ── */
.story .clx-issues .clx-body, .story .clx-detailwin .clx-body { padding: 10px 22px 16px; }
.story .clx-iw .apphdr { margin: 4px 0 0; }
.story .clx-sec { font-size: var(--w-fs-subhead); font-weight: var(--w-fw-semibold); color: var(--w-text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .clx-rbar { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
/* More… · Delete: 10 after the edit bar (its own Margin), 20 before Run all (the StackPanel's 0,0,20,0) */
.story .clx-gap20 { display: inline-flex; align-items: center; gap: 10px; margin: 0 10px 0 0; }
.story .clx-tests { margin-top: 8px; height: 210px; }
.story .clx-tests table.dg, .story .clx-issuetbl table.dg { table-layout: fixed; width: 100%; }
.story .clx-tests .dg thead th.clx-cth { padding: 0 4px; }
.story .clx-cth > span, .story .clx-ctd > span { display: inline-flex; align-items: center; gap: 6px; }
.story .clx-cth > span { margin-left: 11px; }
.story .clx-ctd > span { margin-left: 3px; font-variant-numeric: tabular-nums; }
.story .clx-cth .clx-dot, .story .clx-ctd .clx-dot, .story .clx-status .clx-dot { width: var(--w-size-status-dot); height: var(--w-size-status-dot); }
.story .clx-tot { font-variant-numeric: tabular-nums; }
.story .clx-iw .mk-split:not(.col) { height: 14px; }
.story .clx-lower { display: flex; align-items: stretch; height: 404px; }
.story .clx-ipane { flex: 0 0 780px; display: flex; flex-direction: column; min-width: 0; }
.story .clx-lower > .clx-dpane { flex: 1 1 auto; min-width: 0; }
.story .clx-ihead { display: flex; align-items: center; gap: 12px; }
.story .clx-ihead .clx-sec { flex: 1 1 auto; }
.story .clx-irow { display: flex; align-items: center; margin-top: 6px; }
.story .clx-ihead + .clx-irow { margin-top: 10px; }
.story .clx-ilbl { flex: none; width: 60px; font-size: var(--w-fs-footnote); color: var(--w-text-secondary); }
.story .clx-ilbl.clx-r { width: 62px; margin-right: 8px; text-align: right; }
.story .clx-fbar { gap: 0; }
.story .mk-bar > .hbtn.clx-fchip { color: var(--w-text-secondary); font-weight: var(--w-fw-medium); padding: 0 8px; }
.story .clx-issuetbl { flex: 1 1 auto; margin-top: 8px; }
.story .clx-status { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.story .clx-dpane { display: flex; flex-direction: column; min-width: 0; }
.story .clx-dpane > .clx-sec { margin-top: 4px; }
.story .clx-dcard { flex: 1 1 auto; margin-top: 8px; background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-card); padding: 16px 18px 18px; min-width: 0; }
.story .clx-dcard.clx-dempty { display: flex; align-items: center; justify-content: center; padding: 24px; }
.story .clx-dempty span { font-size: var(--w-fs-callout); color: var(--w-text-tertiary); text-align: center; }
.story .clx-ifoot { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.story .clx-ifoot > .mk-bar { margin-right: 6px; }
.story .clx-ifoot .clx-st { flex: 1 1 auto; min-width: 0; font-size: var(--w-fs-footnote); color: var(--w-text-secondary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .clx-ifoot > .hbtn { min-width: var(--w-size-button-min-width); }

/* ── the Detail (one issue picked) ── */
.story .clx-dtitle { font-size: var(--w-fs-headline); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .clx-dgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; align-items: start; }
.story .clx-dcol { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.story .clx-sub2x2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; padding: 10px;
  border-radius: 8px; background: var(--w-bg-subtle); }
.story .clx-sub2x2 > .hbtn { width: 100%; }
.story .clx-subbox { padding: 12px 14px; border-radius: 8px; background: var(--w-bg-subtle); min-width: 0; }
.story .clx-dcol > .clx-subbox { padding: 10px 12px; }
.story .clx-flab { font-size: var(--w-fs-body); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .clx-fn { font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); margin-top: 6px; }
.story .clx-fn2 { font-size: var(--w-fs-footnote); color: var(--w-text-secondary); margin-top: 6px; line-height: 1.4; }
.story .mk-field.clx-area { display: flex; align-items: flex-start; width: 100%; min-height: 46px; height: auto;
  padding-top: 7px; margin-top: 8px; }
.story .clx-subbox .clx-right { margin-top: 8px; }
.story .clx-stbox .clx-left { margin-top: 6px; }
.story .clx-asrow { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.story .clx-asrow .mk-combo { flex: 1 1 auto; }
.story .clx-sepl { height: 1px; margin: 12px 0 6px; background: var(--w-separator); }
.story .clx-facts { display: grid; grid-template-columns: 1fr 1fr; }
.story .clx-fact { display: flex; flex-direction: column; margin: 4px 12px 2px 0; min-width: 0; }
.story .clx-fact span { font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); }
.story .clx-fact b { font-size: var(--w-fs-footnote); font-weight: var(--w-fw-regular); color: var(--w-text-primary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .clx-subbox .clx-sideh .clx-dot { width: var(--w-size-status-dot); height: var(--w-size-status-dot); }
.story .clx-elc { margin-top: 6px; }
.story .clx-elt { font-size: var(--w-fs-subhead); color: var(--w-text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .clx-elm { font-size: var(--w-fs-footnote); color: var(--w-text-secondary); line-height: 1.4; }
.story .clx-elc .hbtn.link, .story .clx-esub .hbtn.link { font-size: var(--w-fs-footnote); font-weight: var(--w-fw-semibold); height: auto; }
.story .clx-elc .hbtn.link { margin-top: 2px; padding: 0; }
.story .clx-more { font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); margin-top: 4px; }
.story .clx-cbox { grid-column: 1 / -1; padding: 10px 0 6px; }
.story .clx-px14 { margin: 0 14px 6px; }
.story .clx-cbox .tablewrap { border: 0; border-radius: 0; background: transparent; }
.story .clx-cbox .tscroll { overflow-x: auto; }
.story .clx-ctable table.dg { table-layout: fixed; width: 1250px; }
.story .clx-ecell { min-width: 0; }
.story .clx-ecell .clx-ell { font-size: 12px; color: var(--w-text-primary); }
.story .clx-esub { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.story .clx-esub > span { flex: 1 1 auto; min-width: 0; font-size: var(--w-fs-subhead); color: var(--w-text-tertiary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .clx-detail-only .clx-dpane { width: 100%; }
.story .clx-dfoot { margin-top: 14px; }

/* ── a dialog's body (AppleErrorDialog, ClashShallowWindow: 28,12,28,20) ── */
.story .clx-w460 .clx-body, .story .clx-w480 .clx-body { padding: 12px 28px 20px; }
.story .clx-t3 { font-size: var(--w-fs-title3); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .clx-dlg > .clx-t3 { margin-top: 8px; }
.story .clx-bodytext { font-size: var(--w-fs-body); line-height: 1.45; color: var(--w-text-secondary); margin: 6px 0 14px; }
.story .clx-bands2 { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; row-gap: 4px; }
.story .clx-band { display: contents; }
.story .clx-bl { font-size: var(--w-fs-subhead); color: var(--w-text-secondary); margin-right: 12px; white-space: nowrap; }
.story .clx-bt { display: flex; align-items: center; height: 16px; }
.story .clx-bt i { display: block; max-width: 100%; height: var(--w-size-status-dot); border-radius: var(--w-radius-small);
  background: var(--w-stroke-strong); }
.story .clx-bt i.on { background: var(--w-accent); }
.story .clx-bn { margin-left: 12px; font-size: var(--w-fs-callout); color: var(--w-text-secondary); text-align: right;
  font-variant-numeric: tabular-nums; }
.story .clx-dlg .clx-flab.clx-mt14 { margin-bottom: 4px; }
.story .clx-verdict { margin-top: 10px; }
.story .clx-dlg .clx-foot { margin-top: 18px; }
.story .clx-alh { display: flex; align-items: flex-start; gap: 16px; margin-top: 8px; }
.story .clx-ali { flex: none; width: 40px; height: 40px; margin-top: 2px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; background: var(--w-warning); color: var(--w-text-on-accent); font-size: 22px; font-weight: var(--w-fw-bold); }
.story .clx-alh .clx-t3 { padding-top: 10px; }
.story .clx-alb { margin: 6px 0 16px 56px; font-size: var(--w-fs-body); line-height: 1.45; color: var(--w-text-secondary); }
.story .clx-allines { margin-top: 1.45em; }
.story .clx-alert .clx-foot { margin-top: 4px; }

/* ── the scenes ── */
.story .clx-scene { display: grid; gap: 12px; justify-items: center; padding: 18px 16px 16px; width: 100%; max-width: 460px; }
.story .clx-scn { width: 100%; max-width: 320px; height: auto; }
.story .clx-scn .beam { fill: none; stroke: var(--ink); stroke-width: 2; opacity: .55; }
.story .clx-scn .duct { fill: none; stroke: var(--teal); stroke-width: 2.4; }
.story .clx-scn .s { stroke-width: 2; }
.story .clx-scn .s.crit { fill: color-mix(in srgb, var(--bad) 32%, transparent); stroke: var(--bad); }
.story .clx-scn .s.maj { fill: color-mix(in srgb, var(--warn) 34%, transparent); stroke: var(--warn); }
.story .clx-scn .s.res { fill: color-mix(in srgb, var(--ink-3) 22%, transparent); stroke: var(--ink-3); opacity: .7; }
.story .clx-cmt { display: grid; gap: 4px; width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--card); }
.story .clx-cmt span { font-size: 11px; font-weight: 600; color: var(--ink-2); }
.story .clx-cmt code { font-family: var(--mono); font-size: 11px; line-height: 1.5; color: var(--ink); word-break: break-word; }
.story .clx-refresh { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; width: 100%; max-width: 480px; min-width: 0; }
.story .clx-ref { display: grid; gap: 10px; padding: 4px 6px; }
.story .clx-refrow { display: flex; align-items: center; gap: 12px; }
.story .clx-refl { flex: none; width: 92px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.story .clx-refd { display: flex; gap: 8px; }
.story .clx-refd .clx-dot { width: 18px; height: 18px; }
.story .capwin.clx-win.clx-report { width: 100%; }
.story .clx-rbody { padding: 14px; background: var(--w-bg-subtle); }
.story .clx-rcard { padding: 14px 16px 12px; border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-card);
  background: var(--w-bg-surface); }
.story .clx-rch { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.story .clx-rch b { font-size: 13px; font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .clx-rch span { font-size: 11px; color: var(--w-text-tertiary); }
.story .clx-burn { display: block; width: 100%; height: 110px; margin: 10px 0 8px; }
.story .clx-burn .a { fill: color-mix(in srgb, var(--w-accent) 12%, transparent); }
.story .clx-burn polyline { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.story .clx-burn .ac { stroke: var(--w-accent); stroke-width: 2.4; }
.story .clx-burn .nw { stroke: var(--w-danger); }
.story .clx-burn .rs { stroke: var(--w-success); }
.story .clx-rleg { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.story .clx-rleg > span { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--w-text-secondary); }
.story .clx-rleg .clx-dot { width: 8px; height: 8px; }

/* a phone: the side cards one under the other */
@media (max-width: 760px) { .story .clx-sides { grid-template-columns: minmax(0, 1fr); } }

/* ── tools/web_mockups/datum.css ── */
/* datum.py's kinds (prefix dmx-). Every rule sits under .story; colours and sizes are the window's tokens (the
   WEB-THEME block of site.css, --w-*): never a raw hex. The shared pieces — the title bar, the app header, the
   controls kit (.hbtn, .mk-*, .ck) — are site.css's, used as they are. The XAML's sizes are named where they are used. */

/* ── the stage and the window (DatumWindowFactory: 1380 wide; .capwin keeps max-width: 100%) ── */
.story .dmx-stage { width: 100%; display: flex; justify-content: center; min-width: 0; }
.story .dmx-win { min-width: 0; }
.story .dmx-win.dmx-main { width: 100%; }
.story .dmx-body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0;
  color: var(--w-text-primary); font-size: var(--w-fs-body); }
.story .dmx-body .apphdr { margin-bottom: 2px; }
.story .dmx-sp { flex: 1 1 0; min-width: 8px; }

/* the app header's two live lines: the verdict (13, semibold; Success when clean, Warning when not) and the status (12) */
.story .dmx-verdict { display: block; font-size: var(--w-fs-body); font-weight: var(--w-fw-semibold); line-height: 1.4;
  margin-top: 2px; }
.story .dmx-verdict.ok { color: var(--w-success); }
.story .dmx-verdict.warn { color: var(--w-warning); }
.story .dmx-status { display: block; font-size: var(--w-fs-callout); line-height: 1.4; color: var(--w-text-secondary); }

/* a card of the window: BgSurface, StrokeDefault, the card corner */
.story .dmx-card, .story .dmx-sec { background: var(--w-bg-surface); border: 1px solid var(--w-stroke-default);
  border-radius: var(--w-radius-card); min-width: 0; }

/* ── the toolbar card (16,14): row 1 = Alpha · the dropdown (flexes, ≤ 360) · six buttons; row 2 right-aligned ── */
.story .dmx-tools { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.story .dmx-tb1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.story .dmx-lbl { font-size: var(--w-fs-body); color: var(--w-text-secondary); margin-right: 2px; flex: none; }
.story .dmx-combo { flex: 1 1 120px; max-width: 360px; min-width: 120px; margin-right: 4px; display: flex; }
.story .dmx-combo .mk-combo { width: 100%; }
.story .dmx-tb2 { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap;
  margin-right: 6px; }
.story .dmx-vdiv { width: 1px; height: 22px; background: var(--w-stroke-default); margin: 0 4px; flex: none; }
.story .dmx-chn { margin-left: 3px; font-weight: var(--w-fw-bold); opacity: .6; }

/* ── a SectionCard: header 18,14 (the 11-px chevron, the title 14 semibold, «(N)» 13 tertiary), body 18,0,18,16 ── */
.story .dmx-sech { display: flex; align-items: center; gap: 6px; padding: 14px 18px; }
.story .dmx-chev { width: 13px; height: 13px; flex: none; margin-right: 4px; fill: none; stroke: var(--w-text-secondary);
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.story .dmx-sec.open .dmx-chev { transform: rotate(90deg); }
.story .dmx-sect { font-size: 14px; font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .dmx-secn { font-size: var(--w-fs-body); color: var(--w-text-tertiary); }
.story .dmx-secb { padding: 0 18px 16px; min-width: 0; }
.story .dmx-clip { overflow: hidden; display: flex; flex-direction: column; gap: 14px;
  -webkit-mask-image: linear-gradient(to bottom, currentColor 82%, transparent);
  mask-image: linear-gradient(to bottom, currentColor 82%, transparent); }
.story .dmx-bare { min-width: 0; }

/* ── the two tables: an ItemsControl of rows, not a DataGrid (no zebra, no funnels) — a header line, a hairline under
   it and under every row (Padding 0,7); headers 10.5 semibold tertiary, cells 12 secondary, the name primary ── */
.story .dmx-tscroll { overflow-x: auto; min-width: 0; }
.story .dmx-tbl { width: 100%; border-collapse: collapse; table-layout: fixed; }
.story .dmx-snap { min-width: 720px; }
.story .dmx-mtx { max-width: 680px; min-width: 400px; }
/* a header the web's narrower card cannot give its XAML width breaks at its spaces onto a second line */
.story .dmx-tbl th { font-size: var(--w-fs-footnote); font-weight: var(--w-fw-semibold); color: var(--w-text-tertiary);
  text-align: left; vertical-align: bottom; padding: 0 4px 6px; line-height: 1.3; overflow: hidden;
  border-bottom: 1px solid var(--w-stroke-default); }
.story .dmx-tbl td { font-size: var(--w-fs-callout); color: var(--w-text-secondary); padding: 7px 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid var(--w-stroke-default);
  font-variant-numeric: tabular-nums; }
/* the three coordinate cells are CellBox (DatumStyles.xaml): AppleText.SelectableSubhead — 11, the SECONDARY ink — in the
   mono face; only the model's name is primary */
.story .dmx-tbl td.mono { font-family: var(--w-font-mono); font-size: var(--w-fs-subhead); color: var(--w-text-secondary); }
.story .dmx-tbl td.dmx-mn { color: var(--w-text-primary); }
.story .dmx-tbl .ctr { text-align: center; }
.story .dmx-mx { font-size: 15px; font-weight: var(--w-fw-bold); line-height: 1; }
.story .dmx-mx.ok { color: var(--w-success); }
.story .dmx-mx.bad { color: var(--w-danger); }
.story .dmx-mx.na { color: var(--w-text-tertiary); }

/* ── the findings: a group's header, then its cards ── */
.story .dmx-gh { display: flex; align-items: center; gap: 4px; margin: 6px 0 8px 2px; }
.story .dmx-gh b { font-size: 14px; font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .dmx-gn { font-size: var(--w-fs-body); color: var(--w-text-tertiary); margin-right: 6px; }
.story .dmx-gh:not(:first-child) { margin-top: 12px; }
/* the severity pill: its colour at 15 %, the enum's word in the colour itself, the round end (CornerRadius 20) */
.story .dmx-sevp { display: inline-flex; align-items: center; flex: none; padding: 3px 10px; border-radius: var(--w-radius-pill);
  font-size: var(--w-fs-callout); font-weight: var(--w-fw-semibold); line-height: 1.2; }
.story .dmx-sevp.sm { font-size: var(--w-fs-subhead); padding: 2px 10px; }
.story .dmx-sevp.bad { color: var(--w-danger); background: color-mix(in srgb, var(--w-danger) 15%, transparent); }
.story .dmx-sevp.warn { color: var(--w-warning); background: color-mix(in srgb, var(--w-warning) 15%, transparent); }
/* Datum's «Info» is the system blue its converters hard-code (#007AFF), not the palette's Info: the accent is its token */
.story .dmx-sevp.info { color: var(--w-accent); background: color-mix(in srgb, var(--w-accent) 15%, transparent); }
/* a finding card: BgSurface, StrokeDefault, the 4-px band in the severity's colour down its left, 20,16 inside; a grid of
   an 86-px key column and the values */
.story .dmx-fc { position: relative; background: var(--w-bg-surface); border: 1px solid var(--w-stroke-default);
  border-radius: var(--w-radius-card); margin-bottom: 12px; overflow: hidden; }
.story .dmx-fc::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--w-accent); }
.story .dmx-fc.bad::before { background: var(--w-danger); }
.story .dmx-fc.warn::before { background: var(--w-warning); }
.story .dmx-fgrid { display: grid; grid-template-columns: 86px minmax(0, 1fr); padding: 16px 20px 16px 24px; }
.story .dmx-code { font-family: var(--w-font-mono); font-size: var(--w-fs-body); font-weight: var(--w-fw-bold);
  color: var(--w-text-primary); align-self: center; margin-bottom: 10px; }
.story .dmx-ftop { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; min-width: 0; }
.story .dmx-ftop b { flex: 1 1 auto; min-width: 0; font-size: var(--w-fs-title3); font-weight: var(--w-fw-semibold);
  color: var(--w-text-primary); line-height: 1.3; }
.story .dmx-fk { font-size: var(--w-fs-callout); font-weight: var(--w-fw-semibold); color: var(--w-text-tertiary);
  padding: 4px 0; }
.story .dmx-fv { font-size: var(--w-fs-body); color: var(--w-text-primary); line-height: 1.45; padding: 4px 0; min-width: 0; }
/* TOOL: the same FieldValSelectable (AppleText.Selectable, Body 13) with only the face changed to mono */
.story .dmx-fv.mono { font-family: var(--w-font-mono); font-size: var(--w-fs-body); }
.story .dmx-show { margin-top: 12px; display: flex; justify-content: flex-start; }
.story .dmx-empty { margin: 0; padding: 4px 0; font-size: var(--w-fs-body); line-height: 1.5; color: var(--w-text-secondary); }

/* ── the World Map: the status bar (BgSurface, 20,10, 13 secondary), then the page — always light (a WebView2 page, not
   themed), so it is painted with the sheet tokens ── */
.story .dmx-mapwin .dmx-mbody { padding: 0; }
.story .dmx-mstatus { padding: 10px 20px; font-size: var(--w-fs-body); color: var(--w-text-secondary);
  background: var(--w-bg-surface); border-bottom: 1px solid var(--w-stroke-default); }
.story .dmx-map { position: relative; height: 340px; overflow: hidden; border-radius: 0 0 var(--w-radius-window) var(--w-radius-window);
  background-color: color-mix(in srgb, var(--w-sheet-paper) 88%, var(--w-success) 12%);
  background-image:
    linear-gradient(115deg, transparent 47%, var(--w-sheet-paper) 47.4%, var(--w-sheet-paper) 48.6%, transparent 49%),
    linear-gradient(28deg, transparent 61%, var(--w-sheet-paper) 61.3%, var(--w-sheet-paper) 62.1%, transparent 62.4%),
    linear-gradient(170deg, transparent 30%, color-mix(in srgb, var(--w-sheet-paper) 70%, var(--w-warning) 30%) 30.4%,
      color-mix(in srgb, var(--w-sheet-paper) 70%, var(--w-warning) 30%) 31.4%, transparent 31.8%),
    linear-gradient(var(--w-sheet-line) 1px, transparent 1px), linear-gradient(90deg, var(--w-sheet-line) 1px, transparent 1px);
  background-size: auto, auto, auto, 48px 48px, 48px 48px; }
.story .dmx-poly { position: absolute; inset: 0; width: 100%; height: 100%; }
.story .dmx-poly polygon { fill: color-mix(in srgb, var(--w-accent) 10%, transparent); stroke: var(--w-accent);
  stroke-width: 2; vector-effect: non-scaling-stroke; }
/* a marker: 26 px, its kind's colour, a 2.5-px white ring, the model's number in white, bold */
.story .dmx-pin { position: absolute; width: 26px; height: 26px; box-sizing: border-box; border-radius: 50%;
  border: 2.5px solid var(--w-sheet-paper); color: var(--w-text-on-accent); font-size: 12px; font-weight: var(--w-fw-bold);
  display: flex; align-items: center; justify-content: center; transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px color-mix(in srgb, var(--w-sheet-ink) 35%, transparent); }
.story .dmx-pin.sv, .story .dmx-types i.sv { background: var(--w-accent); }   /* the page's #007AFF */
.story .dmx-pin.pb, .story .dmx-types i.pb { background: var(--w-success); }
.story .dmx-pin.io, .story .dmx-types i.io { background: var(--w-danger); }
/* Leaflet's zoom control and the tiles' credit */
.story .dmx-zoom { position: absolute; left: 10px; top: 10px; display: flex; flex-direction: column;
  background: var(--w-sheet-paper); border: 2px solid var(--w-sheet-line); border-radius: 4px; }
.story .dmx-zoom i { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 16px; font-weight: var(--w-fw-bold); color: var(--w-sheet-ink); }
.story .dmx-zoom i + i { border-top: 1px solid var(--w-sheet-line); }
.story .dmx-attr { position: absolute; right: 0; bottom: 0; padding: 1px 6px; font-size: 10px; color: var(--w-sheet-ink);
  background: color-mix(in srgb, var(--w-sheet-paper) 80%, transparent); }
/* the legend (MapHtmlBuilder: top right, 288 wide, 12-px corner, 10,12 inside) */
.story .dmx-legend { position: absolute; top: 12px; right: 12px; width: 288px; max-width: calc(100% - 60px);
  box-sizing: border-box; background: var(--w-sheet-paper); border: 1px solid var(--w-sheet-line); border-radius: 12px;
  padding: 10px 12px; font-size: 12px; color: var(--w-sheet-ink);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--w-sheet-ink) 12%, transparent); }
.story .dmx-lhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.story .dmx-lhead > span:first-child { font-size: 10.5px; font-weight: var(--w-fw-semibold); text-transform: uppercase;
  letter-spacing: .5px; color: color-mix(in srgb, var(--w-sheet-ink) 65%, var(--w-sheet-paper)); }
.story .dmx-lacts span { margin-left: 10px; font-size: 11px; color: var(--w-accent-ink); }
.story .dmx-lrow { display: flex; align-items: center; gap: 8px; padding: 3px 4px; min-width: 0; }
.story .dmx-lrow .ck { width: 14px; height: 14px; flex: none; }
.story .dmx-lnum { width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--w-sheet-ink);
  color: var(--w-text-on-accent); font-size: 10.5px; font-weight: var(--w-fw-bold); display: flex; align-items: center;
  justify-content: center; }
.story .dmx-lnm { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .dmx-types { display: flex; gap: 14px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--w-sheet-line);
  font-size: 11px; }
.story .dmx-types span { display: inline-flex; align-items: center; gap: 5px; }
.story .dmx-types i { width: 11px; height: 11px; border-radius: 50%; flex: none; }
/* a phone: the 288-px legend spans the map, so the map grows downward and the markers (placed in %) come out from
   under it — the app's window is never this narrow, the page is */
@media (max-width: 640px) { .story .dmx-map { height: 560px; } }

/* ── the HTML report, in a browser: the top bar, the hero, the five figures, the nav, a section's heading ── */
.story .dmx-browser > .dmx-body { padding: 0 0 16px; gap: 0; }
.story .dmx-rtop { display: flex; align-items: center; gap: 12px; padding: 10px 22px;
  border-bottom: 1px solid var(--w-stroke-default); background: var(--w-bg-surface); }
.story .dmx-rbrand { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-weight: var(--w-fw-semibold); }
.story .dmx-rbrand svg { width: 22px; height: 22px; flex: none; }
.story .dmx-rbrand small { font-size: var(--w-fs-body); font-weight: var(--w-fw-medium); color: var(--w-text-secondary); }
.story .dmx-rtheme { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px;
  border: 1px solid var(--w-stroke-default); color: var(--w-text-secondary); font-size: 14px; }
.story .dmx-rhero { padding: 24px 22px 4px; }
.story .dmx-reye { font-size: var(--w-fs-callout); font-weight: var(--w-fw-semibold); letter-spacing: .06em;
  text-transform: uppercase; color: var(--w-accent-ink); }
.story .dmx-rh1 { font-size: 26px; font-weight: var(--w-fw-bold); margin: 6px 0 3px; line-height: 1.15; }
.story .dmx-rsub { font-size: var(--w-fs-body); color: var(--w-text-secondary); line-height: 1.45; }
.story .dmx-rstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; padding: 16px 22px 0; }
.story .dmx-rstat { background: var(--w-bg-elevated); border: 1px solid var(--w-stroke-default); border-radius: var(--w-radius-card);
  padding: 12px 14px; min-width: 0; }
.story .dmx-rlab { display: flex; align-items: center; gap: 6px; font-size: var(--w-fs-callout); font-weight: var(--w-fw-medium);
  color: var(--w-text-secondary); }
.story .dmx-rlab i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.story .dmx-rlab i.bad { background: var(--w-danger); }
.story .dmx-rlab i.warn { background: var(--w-warning); }
.story .dmx-rlab i.info { background: var(--w-info); }
.story .dmx-rlab i.violet { background: var(--w-violet); }
.story .dmx-rlab i.acc { background: var(--w-accent); }
.story .dmx-rnum { font-size: 26px; font-weight: var(--w-fw-bold); letter-spacing: -.02em; margin-top: 3px; line-height: 1.1;
  font-variant-numeric: tabular-nums; }
.story .dmx-rsubl { font-size: var(--w-fs-subhead); color: var(--w-text-tertiary); margin-top: 2px; }
.story .dmx-rnav { display: flex; gap: 2px; margin-top: 18px; padding: 0 16px; border-bottom: 1px solid var(--w-stroke-default);
  overflow: hidden; }
.story .dmx-rnav span { padding: 10px 12px; font-size: var(--w-fs-body); font-weight: var(--w-fw-medium);
  color: var(--w-text-secondary); border-bottom: 2px solid transparent; white-space: nowrap; }
.story .dmx-rnav span.on { color: var(--w-text-primary); border-bottom-color: var(--w-accent); }
.story .dmx-rsec { display: flex; align-items: baseline; gap: 10px; padding: 20px 22px 0; }
.story .dmx-rsec b { font-size: 17px; font-weight: var(--w-fw-semibold); }
.story .dmx-rsec span { font-size: var(--w-fs-callout); color: var(--w-text-tertiary); }

/* ── the thresholds file and the report's «Report information», one under the other ── */
.story .dmx-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; width: 100%; min-width: 0; }
.story .dmx-col { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.story .dmx-file { width: 100%; }
.story .dmx-fbody { padding: 10px 14px 12px; background: var(--w-sheet-paper); color: var(--w-sheet-ink);
  border-radius: 0 0 var(--w-radius-window) var(--w-radius-window); }
.story .dmx-fl { font-family: var(--w-font-mono); font-size: var(--w-fs-callout); line-height: 1.6; white-space: pre;
  overflow: hidden; text-overflow: ellipsis; padding: 0 4px; border-radius: 3px; }
.story .dmx-fl.dmx-fcm { color: color-mix(in srgb, var(--w-sheet-ink) 60%, var(--w-sheet-paper)); }
.story .dmx-fl.chg { background: color-mix(in srgb, var(--w-accent) 14%, transparent); }
.story .dmx-path { font-family: var(--w-font-mono); font-size: var(--w-fs-subhead); color: var(--w-text-tertiary);
  padding-left: 4px; overflow-wrap: anywhere; }
.story .dmx-about { width: 100%; }
.story .dmx-about .dmx-rsec { padding-top: 14px; }
.story .dmx-rcard { margin: 12px 22px 0; background: var(--w-bg-elevated); border: 1px solid var(--w-stroke-default);
  border-radius: var(--w-radius-card); padding: 4px 16px 8px; }
.story .dmx-rch { font-size: var(--w-fs-body); font-weight: var(--w-fw-semibold); padding: 10px 0 6px; }
.story .dmx-arow { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 7px 0;
  border-top: 1px solid var(--w-stroke-subtle); font-size: var(--w-fs-callout); }
.story .dmx-arow span { color: var(--w-text-secondary); }
.story .dmx-arow b { font-weight: var(--w-fw-medium); color: var(--w-text-primary); line-height: 1.45; min-width: 0;
  overflow-wrap: anywhere; }

/* ── tools/web_mockups/dictum.css ── */
/* dictum.py's kinds (prefix dcx-). Every rule sits under .story; colours and sizes are the window's tokens (the
   WEB-THEME block of site.css, --w-*): never a raw hex. The shared pieces — the title bar, the app header, the controls
   kit (.hbtn, .mk-*, .dg, .ck, .seg) — are site.css's, used as they are. */

/* ── the stage and the window's width (the XAML's Width at 1:1; .capwin keeps max-width: 100%) ── */
.story .dcx-stage { width: 100%; display: flex; justify-content: center; min-width: 0; }
.story .dcx-stack { display: grid; gap: 18px; width: 100%; min-width: 0; }
.story .dcx-win { min-width: 0; }
.story .dcx-win.dcx-main, .story .dcx-win.dcx-wide, .story .dcx-win.dcx-browser { width: 100%; }
.story .dcx-win.dcx-w560 { width: 560px; }
.story .dcx-win.dcx-w760 { width: 760px; }
.story .dcx-win.dcx-w800 { width: 800px; }
.story .dcx-win.dcx-w860 { width: 860px; }
.story .dcx-win.dcx-w940 { width: 940px; }
.story .dcx-win.dcx-w960 { width: 960px; }
.story .dcx-win.dcx-w1000 { width: 1000px; }
/* Expedient templates is 1000 wide and its rules table has four fixed columns (474 px of them): reflowed into a
   narrower stage, «Only on sheets» shrank to nothing. Narrower than 1000 the window is scaled WHOLE (zoom), so every
   column keeps the share the app gives it. The stage is the container. */
.story .dcx-stage { container-type: inline-size; }
@container (max-width: 999px) { .story .dcx-win.dcx-w1000 { flex: none; max-width: none; zoom: .95; } }
@container (max-width: 949px) { .story .dcx-win.dcx-w1000 { zoom: .9; } }
@container (max-width: 899px) { .story .dcx-win.dcx-w1000 { zoom: .83; } }
@container (max-width: 829px) { .story .dcx-win.dcx-w1000 { zoom: .76; } }
@container (max-width: 759px) { .story .dcx-win.dcx-w1000 { zoom: .66; } }
@container (max-width: 659px) { .story .dcx-win.dcx-w1000 { zoom: .56; } }
@container (max-width: 559px) { .story .dcx-win.dcx-w1000 { zoom: .46; } }
@container (max-width: 459px) { .story .dcx-win.dcx-w1000 { zoom: .38; } }
@container (max-width: 379px) { .story .dcx-win.dcx-w1000 { zoom: .3; } }
.story .dcx-body { padding: 10px 22px 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0;
  color: var(--w-text-primary); font-size: var(--w-fs-body); }
.story .dcx-main > .dcx-body { padding: 10px 20px 16px; gap: 10px; }
.story .dcx-body .apphdr { margin-bottom: 0; }
.story .dcx-sp { flex: 1 1 0; min-width: 8px; }
.story .dcx-mono, .story .dcx-code, .story .dcx-dcode { font-family: var(--w-font-mono); }
.story .dcx-mute { color: var(--w-text-tertiary); }
/* every table of these windows is laid out by its columns' own widths (the XAML's Width, padding and funnel included),
   so a fixed column never pushes the last one out of the card */
.story .dcx-win table.dg { table-layout: fixed; width: 100%; min-width: 0; }   /* site.css gives every .dg 900 */
.story .dcx-win .dg thead th { box-sizing: border-box; overflow: hidden; text-overflow: ellipsis; }
.story .dcx-win .dg tbody td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── text styles the windows use (AppleText.*) ── */
.story .dcx-dh { display: flex; flex-direction: column; gap: 2px; }
.story .dcx-h2 { font-size: var(--w-fs-title2); font-weight: var(--w-fw-semibold); line-height: 1.25; }
.story .dcx-h3 { font-size: var(--w-fs-title3); font-weight: var(--w-fw-semibold); line-height: 1.3; }
.story .dcx-h3.dcx-mt { margin-top: 6px; }
.story .dcx-sub { font-size: var(--w-fs-subhead); line-height: 1.45; color: var(--w-text-secondary); }
.story .dcx-fn { font-size: var(--w-fs-footnote); line-height: 1.45; color: var(--w-text-tertiary); }
.story .dcx-hl { font-size: var(--w-fs-headline); font-weight: var(--w-fw-semibold); line-height: 1.35; white-space: pre-wrap; }
.story .dcx-sec { font-size: var(--w-fs-footnote); font-weight: var(--w-fw-semibold); letter-spacing: .04em;
  color: var(--w-text-tertiary); margin-bottom: 6px; }

/* the accent promise (AccentSubtle) and a tinted band (WarningSubtle / DangerSubtle), Radius.Medium */
.story .dcx-promise { background: var(--w-accent-subtle); border-radius: var(--w-radius-medium); padding: 13px 16px;
  color: var(--w-accent-ink); }
.story .dcx-ph { font-size: var(--w-fs-headline); font-weight: var(--w-fw-semibold); line-height: 1.35; }
.story .dcx-pb { margin-top: 4px; font-size: var(--w-fs-callout); line-height: 1.45; }
.story .dcx-band { border-radius: var(--w-radius-medium); padding: 10px 14px; font-size: var(--w-fs-callout);
  line-height: 1.45; }
.story .dcx-band.warn { background: var(--w-warning-subtle); color: var(--w-warning-ink); }
.story .dcx-band.bad { background: var(--w-danger-subtle); color: var(--w-danger-ink); }

/* an AppleCard: the surface, a hairline, the card corner */
.story .dcx-card { background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-card); padding: 12px 14px; min-width: 0; }

/* a footer: what the window says, then Dismiss and Confirm */
.story .dcx-foot { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; margin-top: 2px; }
.story .dcx-foot > .hbtn:not(.compact) { min-width: var(--w-size-button-min-width); }
.story .dcx-fst { flex: 1 1 200px; min-width: 0; font-size: var(--w-fs-subhead); line-height: 1.4;
  color: var(--w-text-secondary); }
.story .dcx-fst + .dcx-sp { display: none; }

/* a form row: the field label in its column, the control in the rest */
.story .dcx-form { display: flex; flex-direction: column; gap: 10px; }
.story .dcx-frow { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 12px; }
.story .dcx-frow.top { align-items: start; }
.story .dcx-frow.top > .dcx-fl { padding-top: 7px; }
.story .dcx-fl { font-size: var(--w-fs-subhead); font-weight: var(--w-fw-medium); color: var(--w-text-secondary); }
.story .dcx-fc { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.story .dcx-fc > :is(.mk-combo, .mk-field) { width: 100%; }
/* the carrier family's card: label · dropdown · the badge saying what kind of parameter it is (150 · * · Auto) */
.story .dcx-cgrid { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; gap: 10px 12px; }
.story .dcx-cgrid > .dcx-span { grid-column: 2 / span 2; min-width: 0; display: flex; }
.story .dcx-cgrid > .dcx-span > .mk-combo, .story .dcx-cgrid > .mk-combo { width: 100%; }
.story .dcx-bdg { display: flex; justify-content: flex-start; }
.story .dcx-codebig { flex: none; white-space: nowrap; font-family: var(--w-font-mono); font-size: var(--w-fs-headline); font-weight: var(--w-fw-semibold); }
.story .dcx-frow .dcx-fc:has(> .dcx-codebig) { flex-direction: row; align-items: center; gap: 10px; }
.story .dcx-area { display: block; box-sizing: border-box; min-height: 64px; padding: 8px 10px; line-height: 1.45;
  border: 1px solid var(--w-stroke-default); border-radius: var(--w-radius-button); background: var(--w-bg-surface); }
.story :is(.dcx-inline, .dcx-revpage, .dcx-two, .dcx-three) { display: grid; gap: 8px; min-width: 0; }
.story .dcx-inline { grid-template-columns: minmax(0, 1fr) auto; }
.story .dcx-revpage { grid-template-columns: minmax(0, 1fr) 110px; }
.story .dcx-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.story .dcx-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.story :is(.dcx-inline, .dcx-revpage, .dcx-two, .dcx-three) > * { width: 100%; }
.story .dcx-inline > .hbtn { width: auto; }
.story .dcx-radios { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }

/* ── the main window: the workbench row, the map's lens and legend, the metrics ── */
.story .dcx-work, .story .dcx-mapbar, .story .dcx-rec, .story .dcx-sthead, .story .dcx-rbar, .story .dcx-mfoot,
.story .dcx-dbar { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; min-width: 0; }
.story .dcx-work { margin-top: 2px; }
.story .dcx-lbl { padding: 0 8px; font-size: var(--w-fs-subhead); color: var(--w-text-secondary); white-space: nowrap; }
.story .dcx-lensbar { gap: 6px; padding-right: 4px; }
.story .dcx-lensbar .mk-combo { height: var(--w-size-control-inner); }
.story .dcx-lensbar .mk-chip { margin-left: 2px; }
.story .dcx-legend { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-left: 4px;
  font-size: var(--w-fs-footnote); color: var(--w-text-secondary); }
/* the swatch is the colour REVIT PAINTS (MapPalette): burnt orange still to say, teal told — drawn from the tokens */
.story .dcx-sw { display: inline-block; width: 16px; height: 10px; border-radius: var(--w-radius-small);
  border: 1px solid var(--w-stroke-subtle); }
.story .dcx-sw.told { margin-left: 9px; }
.story :is(.dcx-sw, .dcx-pp).miss { --dcx-paint: color-mix(in srgb, var(--w-danger) 55%, var(--w-warning)); }
.story :is(.dcx-sw, .dcx-pp).told { --dcx-paint: var(--w-teal); }
.story .dcx-sw { background: var(--dcx-paint); }
.story .dcx-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--w-bg-surface);
  border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-card); }
.story .dcx-tile { display: flex; flex-direction: column; gap: 2px; padding: 10px 18px 12px; min-width: 0; }
.story .dcx-tile + .dcx-tile { border-left: 1px solid var(--w-stroke-subtle); }
.story .dcx-tl { font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; }
.story .dcx-tn { font-size: var(--w-fs-title1); font-weight: var(--w-fw-semibold); line-height: 1.2; }
.story .dcx-tn.ok { color: var(--w-success-ink); }
.story .dcx-tn.bad { color: var(--w-danger-ink); }
.story .dcx-tn.warn { color: var(--w-warning-ink); }

/* the chips' bar and the record-keeping bar with Group by */
.story .dcx-chips .mk-bar { height: auto; flex-wrap: wrap; gap: 4px; }
.story .dcx-grp { display: inline-flex; align-items: center; }
.story .dcx-grp .dcx-lbl { padding-left: 0; }

/* the register: the code in mono, a superseded decision struck through, «Told on» red only when short */
.story .dcx-reg .dg tbody td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 0; }
.story .dcx-reg .dg tbody td.ctr { max-width: none; }
/* the tick column with its funnel: GridFilters widens it to 80, the select-all box centred over the cells' boxes */
.story .dcx-reg .dg thead th.tick { width: 80px; }
.story .dcx-code, .story .dcx-q { color: var(--w-text-secondary); }
.story .dcx-dec.gone { color: var(--w-text-tertiary); text-decoration: line-through; }
.story .dcx-told { color: var(--w-text-secondary); }
.story .dcx-told.short { color: var(--w-danger-ink); font-weight: var(--w-fw-semibold); }

/* the detail card of the selected decision */
.story .dcx-detail { display: flex; flex-direction: column; gap: 0; }
.story .dcx-dl1 { display: flex; align-items: baseline; gap: 9px; min-width: 0; }
.story .dcx-dcode { font-size: var(--w-fs-callout); color: var(--w-text-secondary); flex: none; }
.story .dcx-dtext { font-size: var(--w-fs-headline); font-weight: var(--w-fw-semibold); min-width: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.story .dcx-dl2 { display: flex; align-items: center; gap: 10px; margin-top: 5px; min-width: 0; flex-wrap: wrap; }
.story .dcx-prov { flex: 1 1 280px; min-width: 0; font-size: var(--w-fs-subhead); color: var(--w-text-secondary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .dcx-stage-l { margin-top: 7px; font-size: var(--w-fs-callout); line-height: 1.45; color: var(--w-text-secondary); }
.story .dcx-exp { margin-top: 11px; max-width: 720px; border-radius: var(--w-radius-medium); }
.story .dcx-exp .dg tbody tr.dcx-miss { background: var(--w-danger-subtle); }
.story .dcx-exp .dg tbody tr.dcx-miss .mk-status { color: var(--w-danger-ink); font-weight: var(--w-fw-semibold); }
.story .dcx-exp .dg tbody tr:not(.dcx-miss) .mk-status { color: var(--w-text-tertiary); }
.story .dcx-dbar { margin-top: 11px; }
.story .dcx-left { font-size: var(--w-fs-subhead); color: var(--w-text-tertiary); white-space: nowrap; }

/* the footer: the batch's count (BgHover, Radius.Small) beside the status line */
.story .dcx-mfoot { margin-top: 2px; }
.story .dcx-count { flex: none; padding: 2px 8px; border-radius: var(--w-radius-small); background: var(--w-bg-hover);
  font-size: var(--w-fs-footnote); font-weight: var(--w-fw-semibold); color: var(--w-text-secondary); }
.story .dcx-status { flex: 1 1 220px; min-width: 0; font-size: var(--w-fs-subhead); color: var(--w-text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .dcx-status + .dcx-sp { display: none; }
.story .dcx-mfoot > .hbtn:not(.plain) { min-width: var(--w-size-button-min-width); }

/* Stamp: the headline and the map's bar, the round's sentence and its bar, the sheets still owing */
.story .dcx-sthead .dcx-hl { flex: 1 1 200px; }
.story .dcx-rs { flex: 1 1 260px; min-width: 0; font-size: var(--w-fs-subhead); color: var(--w-text-secondary); }
/* RoundGrid: Sheet 2* · Still to say 3* · How many 110 — the first star takes its two fifths of what 110 leaves */
.story .dcx-round .dg thead th:first-child { width: 35%; }

/* the Revit view the map painted: Revit's window, the rest of the model in halftone */
.story .dcx-pair { display: grid; gap: 18px; width: 100%; min-width: 0; }
.story .dcx-win.dcx-revit { width: 640px; max-width: 100%; justify-self: center; }
.story .dcx-revit > .capbody { padding: 0; background: var(--w-sheet-paper); }
.story .dcx-plan { display: block; width: 100%; height: auto; }
.story .dcx-pw { fill: none; stroke: var(--w-sheet-line); stroke-width: 6; opacity: .35; }
.story .dcx-pt { fill: none; stroke: var(--w-sheet-line); stroke-width: 1.5; opacity: .3; }
.story .dcx-pp { fill: none; stroke: var(--dcx-paint); stroke-width: 8; }
.story .dcx-ptx { font: 600 13px var(--w-font-sans), sans-serif; fill: var(--w-sheet-ink); opacity: .45; }

/* ── the settings windows: a list on a card (AppleListBox) and its group bar ── */
.story .dcx-split { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 16px; min-width: 0; }
.story .dcx-quad { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; min-width: 0; }
@media (max-width: 760px) { .story .dcx-quad { grid-template-columns: minmax(0, 1fr); } }   /* .dcx-split is zoomed, never stacked */
.story .dcx-col { display: flex; flex-direction: column; min-width: 0; }
.story .dcx-quad .dcx-list { flex: 1 1 auto; }
.story .dcx-col > .mk-bar { margin-top: 10px; align-self: flex-start; max-width: 100%; flex-wrap: wrap; height: auto; }
.story .dcx-list { background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-card); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.story .dcx-li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--w-radius-small); }
.story .dcx-li.on { background: var(--w-bg-selected); }
.story .dcx-lt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.story .dcx-lt b { font-weight: var(--w-fw-regular); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .dcx-lt em { font-style: normal; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .dcx-tcard { display: flex; flex-direction: column; gap: 10px; }
.story .dcx-tcard .dcx-frow { grid-template-columns: 110px minmax(0, 1fr); }
.story .dcx-rhead { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; }
.story .dcx-rhead .dcx-h3 { flex: 1 1 auto; }
.story .dcx-rules + .dcx-fn { margin-top: 8px; }
.story .dcx-rules .mk-combo, .story .dcx-rules .mk-field { width: 100%; }
.story .dcx-acts { display: inline-flex; align-items: center; gap: 4px; }
.story .dcx-ib { display: inline-flex; align-items: center; justify-content: center; width: var(--w-size-control-compact);
  height: var(--w-size-control-compact); border-radius: var(--w-radius-small); color: var(--w-text-secondary); }
.story .dcx-ib svg { width: var(--w-size-icon-in-button-compact); height: var(--w-size-icon-in-button-compact); }
.story .dcx-ib.rm { margin-left: 4px; }

/* Set standing: one radio per move, its consequence under it, the revision box under the first */
.story .dcx-moves { display: flex; flex-direction: column; }
.story .dcx-blurb { margin: 2px 0 14px 26px; font-size: var(--w-fs-callout); line-height: 1.45; color: var(--w-text-secondary); }
.story .dcx-move:first-child .dcx-blurb { margin-bottom: 6px; }
.story .dcx-move:last-child .dcx-blurb { margin-bottom: 0; }
.story .dcx-revrow { display: flex; align-items: center; gap: 10px; margin: 0 0 14px 26px; }

/* the orphans' cards and their candidates (BgSubtle, Radius.Small) */
.story .dcx-cards { display: flex; flex-direction: column; gap: 10px; }
.story .dcx-osrc { margin-top: 3px; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); }
.story .dcx-overdict { margin: 8px 0 3px; font-size: var(--w-fs-subhead); color: var(--w-text-secondary); }
.story .dcx-cand { display: flex; align-items: center; gap: 10px; margin-top: 5px; padding: 7px 10px;
  border-radius: var(--w-radius-small); background: var(--w-bg-subtle); }
.story .dcx-ct { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.story .dcx-ct b { font-weight: var(--w-fw-regular); }
.story .dcx-ct em { font-style: normal; font-size: var(--w-fs-footnote); line-height: 1.4; color: var(--w-text-tertiary); }
.story .dcx-dist { flex: none; font-size: var(--w-fs-footnote); color: var(--w-text-secondary); white-space: nowrap; }

/* the carrier family: the link as it will be written (BgSubtle, InfoInk, mono) */
.story .dcx-preview { background: var(--w-bg-subtle); border-radius: var(--w-radius-medium); padding: 11px 14px;
  display: flex; flex-direction: column; gap: 5px; }
.story .dcx-pvh { font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); }
.story .dcx-pvu { font-family: var(--w-font-mono); font-size: var(--w-fs-callout); color: var(--w-info-ink); word-break: break-all; }

/* Verify: the issue card, the pairing beside the verdict */
.story .dcx-issue { display: flex; flex-direction: column; gap: 10px; }
.story .dcx-irow, .story .dcx-irow2 { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.story .dcx-irow2 { padding-left: 52px; }
.story .dcx-ihint { flex: 1 1 220px; min-width: 0; font-size: var(--w-fs-subhead); color: var(--w-text-secondary); }
.story .dcx-vsplit { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 14px; min-width: 0; }
/* The window is 1320 wide and the pairing's fixed columns ask 647 of it: on a page narrower than that, the verdict goes
   UNDER the pairing instead of squeezing the PDF column to nothing (in the app the table scrolls sideways). */
.story .dcx-wide > .dcx-body { container-type: inline-size; }
@container (max-width: 1180px) { .story .dcx-vsplit { grid-template-columns: minmax(0, 1fr); } }
.story .dcx-vleft, .story .dcx-vright { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.story .dcx-pages { overflow-x: auto; }
.story .dcx-pages .dg { min-width: 640px; }
.story .dcx-vbox { border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-medium); padding: 8px 10px;
  display: flex; flex-direction: column; gap: 7px; }
.story .dcx-vr { display: flex; gap: 6px; }
.story .dcx-vg { flex: none; width: 16px; font-weight: var(--w-fw-bold); color: var(--w-text-tertiary); }
.story .dcx-vg.ok { color: var(--w-success-ink); }
.story .dcx-vg.bad { color: var(--w-danger-ink); }
.story .dcx-vt { min-width: 0; }
.story .dcx-vl { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.story .dcx-vl b { font-weight: var(--w-fw-regular); }
.story .dcx-vw { margin-top: 2px; font-size: var(--w-fs-footnote); line-height: 1.4; color: var(--w-text-tertiary); }

/* Changes and decisions: one card per element, its sittings as lines */
.story .dcx-chead { display: flex; align-items: flex-start; gap: 14px; }
.story .dcx-chead .dcx-dh { flex: 1 1 auto; min-width: 0; }
.story .dcx-ccard { display: flex; align-items: flex-start; gap: 14px; }
.story .dcx-cl { flex: 1 1 auto; min-width: 0; }
.story .dcx-cwhat { font-size: var(--w-fs-headline); font-weight: var(--w-fw-semibold); }
.story .dcx-chl { margin-top: 3px; color: var(--w-text-secondary); white-space: pre-wrap; }
.story .dcx-cwho { margin-top: 3px; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); }
.story .dcx-sits { margin-top: 8px; display: flex; flex-direction: column; gap: 3px; }
.story .dcx-sit { display: flex; gap: 10px; font-size: var(--w-fs-footnote); color: var(--w-text-secondary); min-width: 0; }
.story .dcx-sw2 { font-family: var(--w-font-mono); color: var(--w-text-tertiary); white-space: nowrap; }
.story .dcx-swh { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── the exported register, in a browser (DictumReportHtml's page, drawn with the site's tokens) ── */
.story .dcx-browser > .capbody { padding: 0; }
.story .dcx-report { background: var(--w-bg-window); color: var(--w-text-primary); font-size: 13px; min-width: 0; }
.story .dcx-rtop { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--w-stroke-subtle);
  background: var(--w-bg-surface); }
.story .dcx-rbrand { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.story .dcx-rbrand small { font-size: 13px; color: var(--w-text-secondary); }
.story .dcx-rbrand svg { width: 20px; height: 20px; }
.story .dcx-rtheme { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-button); color: var(--w-text-secondary); }
.story .dcx-rhero { padding: 22px 22px 6px; }
.story .dcx-reye { font-size: 12px; font-weight: var(--w-fw-semibold); letter-spacing: .06em; text-transform: uppercase;
  color: var(--w-accent-text); }
.story .dcx-rh1 { margin-top: 4px; font-size: 26px; font-weight: var(--w-fw-bold); line-height: 1.2; }
.story .dcx-rsub { margin-top: 6px; color: var(--w-text-secondary); }
.story .dcx-rband { display: flex; gap: 10px; margin: 12px 22px 0; padding: 12px 14px; border-radius: var(--w-radius-card); }
.story .dcx-rband.ok { background: var(--w-success-subtle); color: var(--w-success-ink); }
.story .dcx-rband p { margin: 3px 0 0; color: var(--w-text-secondary); }
.story .dcx-ric { font-weight: var(--w-fw-bold); }
.story .dcx-rstats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 14px 22px 0; }
@media (max-width: 900px) { .story .dcx-rstats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.story .dcx-rstat { background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-card);
  padding: 10px 12px; min-width: 0; }
.story .dcx-rlab { display: flex; align-items: flex-start; gap: 6px; font-size: 11.5px; line-height: 1.3;
  color: var(--w-text-secondary); }
.story .dcx-rlab i { margin-top: 4px; }
.story .dcx-rlab i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--w-text-tertiary); }
.story .dcx-rlab i.ok { background: var(--w-success); }
.story .dcx-rlab i.acc { background: var(--w-accent); }
.story .dcx-rlab i.bad { background: var(--w-danger); }
.story .dcx-rlab i.warn { background: var(--w-warning); }
.story .dcx-rnum { margin-top: 4px; font-size: 24px; font-weight: var(--w-fw-bold); line-height: 1.15;
  font-variant-numeric: tabular-nums; }
.story .dcx-rnum.bad { color: var(--w-danger); }
.story .dcx-rnum.warn { color: var(--w-warning-ink); }
.story .dcx-rnum.sm { font-size: 15px; padding: 5px 0 3px; }
.story .dcx-rsubl { margin-top: 2px; font-size: 11.5px; line-height: 1.3; color: var(--w-text-tertiary); }
.story .dcx-rnav { display: flex; gap: 2px; margin-top: 18px; padding: 0 18px; border-bottom: 1px solid var(--w-stroke-subtle);
  overflow-x: auto; }
.story .dcx-rnav span { padding: 10px 12px; font-weight: var(--w-fw-medium); color: var(--w-text-secondary); white-space: nowrap;
  border-bottom: 2px solid transparent; }
.story .dcx-rnav span.on { color: var(--w-text-primary); border-bottom-color: var(--w-accent); }
.story .dcx-rmain { padding: 16px 22px 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.story .dcx-rsec { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.story .dcx-rh2 { font-size: 18px; font-weight: var(--w-fw-bold); }
.story .dcx-rcap { color: var(--w-text-tertiary); }
.story .dcx-rtools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.story .dcx-rinput { flex: 0 1 240px; padding: 6px 10px; border: 1px solid var(--w-stroke-default); border-radius: var(--w-radius-button);
  background: var(--w-bg-surface); color: var(--w-text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .dcx-rchip { padding: 5px 10px; border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-pill);
  font-size: 12px; font-weight: var(--w-fw-medium); color: var(--w-text-secondary); white-space: nowrap; }
/* .fchip.on: the chosen filter is the accent itself, its word on the accent */
.story .dcx-rchip.on { background: var(--w-accent); border-color: var(--w-accent); color: var(--w-text-on-accent); }
/* the section's headline (.lead.strong) and the card it opens (.card / .card-h / .card-b, the count in .badge) */
.story .dcx-rlead { margin: 0 2px; font-size: 13.5px; line-height: 1.45; color: var(--w-text-secondary); }
.story .dcx-rcard { background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-card);
  overflow: hidden; min-width: 0; }
.story .dcx-rcardh { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding: 12px 16px;
  border-bottom: 1px solid var(--w-stroke-subtle); }
.story .dcx-rcardh b { font-size: 14.5px; font-weight: var(--w-fw-semibold); }
.story .dcx-rcardh .dcx-rcap { font-size: 12px; }
.story .dcx-rcount { margin-left: auto; padding: 3px 9px; border-radius: var(--w-radius-pill); background: var(--w-bg-hover);
  font-size: 11.5px; font-weight: var(--w-fw-semibold); color: var(--w-text-secondary); font-variant-numeric: tabular-nums; }
.story .dcx-rcardb { padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.story .dcx-rtbl { overflow-x: auto; border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-medium);
  background: var(--w-bg-surface); }
.story .dcx-rtbl table { width: 100%; min-width: 0; border-collapse: collapse; font-size: 12px; }
/* the report's own th is nowrap, on a page as wide as the browser; in this narrower window a long caption («Necesaria
   para») wraps instead of pushing Provenance out of sight */
.story .dcx-rtbl th { padding: 8px 6px; text-align: left; font-size: 11.5px; font-weight: var(--w-fw-semibold);
  color: var(--w-text-secondary); background: var(--w-bg-subtle); border-bottom: 1px solid var(--w-stroke-subtle); }
/* .num-c: the code in mono, the accent's ink, semibold; .tnum: tabular figures in the body's face */
.story .dcx-rtbl td.dcx-rcode { font-family: var(--w-font-mono); font-size: 11.5px; font-weight: var(--w-fw-semibold);
  color: var(--w-accent-ink); white-space: nowrap; }
.story .dcx-rtbl td.dcx-tnum { font-variant-numeric: tabular-nums; white-space: nowrap; }
.story .dcx-rtbl td { padding: 8px 6px; vertical-align: top; border-bottom: 1px solid var(--w-stroke-subtle); }
.story .dcx-rtbl tr:last-child td { border-bottom: 0; }
.story .dcx-rtbl tr.dcx-block { background: var(--w-danger-subtle); }
.story .dcx-wrap { white-space: normal; }
.story .dcx-rtbl td.dcx-wrap:nth-child(2) { min-width: 120px; }
.story .dcx-rtbl td.dcx-wrap:nth-child(8) { min-width: 104px; overflow-wrap: anywhere; }
.story .dcx-rtbl td.dcx-rprov { min-width: 104px; overflow-wrap: anywhere; }
.story .dcx-rtbl .mk-badge { white-space: nowrap; }
.story .dcx-rprov { margin-top: 2px; font-size: 11.5px; color: var(--w-text-tertiary); }
/* .sheetpill: a sheet still owing, tinted the danger colour, its number in mono */
.story .dcx-spill { display: inline-flex; white-space: nowrap; margin: 1px 3px 1px 0; padding: 2px 7px; border-radius: var(--w-radius-small);
  background: var(--w-danger-subtle); color: var(--w-danger-ink); font-family: var(--w-font-mono); font-size: 11px;
  font-weight: var(--w-fw-semibold); }

/* ── tools/web_mockups/egress.css ── */
/* egress.py's kinds (prefix egx-). Every rule sits under .story; colours and sizes are the window's tokens (the
   WEB-THEME block of site.css, --w-*): never a raw hex. The shared pieces — the title bar, the app header, the kit
   (.hbtn, .seg, .mk-bar, .mk-field, .mk-combo, .mk-check, .mk-chip, .dg, tr.grp) — are site.css's, used as they are. */

.story .egx-stage { width: 100%; display: flex; justify-content: center; min-width: 0; }
.story .egx-win { width: 100%; min-width: 0; }

/* the main window at its XAML Width, scaled whole (egress.py: _fit). The wrapper is --egx-bw wide and zooms the
   1280-px window to it; the stage (a centring flex box) centres it on the column, past the column's edges on a big
   screen. A width W is used only from a viewport of W + 90 (the beat's rail, a scroll bar, a margin); below 730 the
   window scrolls. Outside a beat (the manual's renderer) it is 1180 wide. */
.story .egx-fit { position: relative; z-index: 2; flex: none; width: var(--egx-bw, 1180px); }
.story .egx-fit > .capwin.egx-win { width: 1280px; max-width: none; zoom: var(--egx-z, .921875); }
@media (max-width: 1269px) { .story .beat .egx-fit { --egx-z: .875; --egx-bw: 1120px; } }
@media (max-width: 1209px) { .story .beat .egx-fit { --egx-z: .775; --egx-bw: 992px; } }
@media (max-width: 1081px) { .story .beat .egx-fit { --egx-z: .625; --egx-bw: 800px; } }
@media (max-width: 889px) { .story .beat .egx-fit { --egx-z: .5; --egx-bw: 640px; } }
@media (max-width: 729px) {
  .story .beat .egx-fit { flex: 1 1 auto; width: 100%; overflow-x: auto; padding-bottom: 18px; }
}
.story .egx-win.egx-cropwin { width: min(100%, 980px); }
.story .egx-win.egx-repwin { width: min(100%, 860px); }

/* the body: Margin 20,14,20,16 — the header, the modes, the two columns, the bottom bar */
.story .egx-body { padding: 14px 20px 16px; display: flex; flex-direction: column; font-size: var(--w-fs-body);
  color: var(--w-text-primary); min-width: 0; }
.story .egx-body .apphdr { margin-bottom: 12px; }
.story .egx-cav { font-size: var(--w-fs-footnote); line-height: 1.4; color: var(--w-text-tertiary); }
.story .egx-mode { display: flex; margin-bottom: 12px; }

/* options 470 · results * (14 between); the options scroll, so they are as tall as the results and no taller */
.story .egx-cols { display: grid; grid-template-columns: 470px minmax(0, 1fr); gap: 14px;
  min-height: 600px; min-width: 0; }
.story .egx-cols.egx-crop { min-height: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; }
.story .egx-card { background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-card); min-width: 0; }
.story .egx-opts { position: relative; overflow: hidden; }
.story .egx-optin { position: absolute; left: 14px; right: 14px; top: 12px; }
.story .egx-opts::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28px;
  background: linear-gradient(to bottom, transparent, var(--w-bg-surface)); pointer-events: none; }
.story .egx-crop .egx-opts { overflow: visible; }
.story .egx-crop .egx-optin { position: static; padding: 12px 14px 14px; }
.story .egx-crop .egx-opts::after { display: none; }

/* the options card's words: SectionLabel (11 semibold) and FieldLabel (13 semibold), both in TextTertiary */
.story .egx-sl { margin: 18px 0 12px; font-size: var(--w-fs-subhead); font-weight: var(--w-fw-semibold);
  color: var(--w-text-tertiary); }
.story .egx-sl.first { margin-top: 0; margin-bottom: 8px; }
.story .egx-fl { font-size: var(--w-fs-body); font-weight: var(--w-fw-semibold); color: var(--w-text-tertiary); }
.story .egx-gap10 { margin-top: 10px; }
.story .egx-gap8 { margin-top: 8px; }
.story .egx-wide { margin-top: 2px; min-width: 0; }
.story .egx-wide .mk-combo, .story .egx-cb .mk-combo { width: 100%; }
/* MarkerTypeOption.Display puts two spaces before the count («Exit marker  (6)»): kept, as the dropdown shows them */
.story .egx-wide .mk-combo > span { white-space: pre; }
.story .egx-sh { flex: none; font-size: var(--w-fs-subhead); color: var(--w-text-secondary); white-space: nowrap; }
.story .egx-u { margin-left: 6px; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); }
.story .egx-fn { margin-top: 8px; font-size: var(--w-fs-footnote); line-height: 1.4; color: var(--w-text-tertiary); }

/* the way out: Remove · Remove all and Pick in model… on their own row, right-aligned over the list */
.story .egx-acts { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 6px; }
.story .egx-acts > * { flex: none; }
.story .egx-xl { margin-top: 8px; min-height: 86px; max-height: 150px; box-sizing: border-box; padding: 4px;
  background: var(--w-bg-subtle); border: 1px solid var(--w-stroke-subtle); border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column; }
.story .egx-xr { display: flex; align-items: center; gap: 10px; padding: 6px 8px; min-width: 0; }
.story .egx-xn { flex: 1 1 auto; min-width: 0; font-size: var(--w-fs-subhead); color: var(--w-text-primary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .egx-xi { flex: none; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); font-variant-numeric: tabular-nums; }
.story .egx-xe { margin: auto; padding: 0 16px; text-align: center; font-size: var(--w-fs-callout); line-height: 1.4;
  color: var(--w-text-secondary); }

/* MEASUREMENT: a WrapPanel of labelled boxes (0,0,18,6 each) */
.story .egx-wrap { display: flex; flex-wrap: wrap; align-items: flex-end; }
.story .egx-fld { margin: 0 18px 6px 0; }
.story .egx-in { display: flex; align-items: center; margin-top: 2px; }
.story .egx-inl { display: inline-flex; align-items: center; gap: 8px; margin: 8px 16px 4px 0; }
.story .egx-inl .egx-u { margin-left: -3px; }

/* a label · a value · a button, or a label · a dropdown (Clear width from · Categories treated as solid · Hatch…) */
.story .egx-crow { display: flex; align-items: center; gap: 10px; margin-top: 10px; min-width: 0; }
.story .egx-ct { flex: 1 1 auto; min-width: 0; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .egx-cb { flex: 1 1 auto; min-width: 0; display: flex; }
.story .egx-lead { flex: none; margin-left: 2px; }
.story .egx-lead .mk-check { font-size: var(--w-fs-body); }

/* the dropdown open (AppleComboBox's popup) and a hover tooltip */
.story .egx-open { position: relative; }
.story .egx-pop { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 3; padding: 4px;
  background: var(--w-bg-elevated); border: 1px solid var(--w-stroke-default); border-radius: var(--w-radius-medium);
  box-shadow: var(--w-shadow-popover); }
.story .egx-pi { padding: 7px 10px; border-radius: var(--w-radius-small); font-size: var(--w-fs-body);
  color: var(--w-text-primary); white-space: nowrap; }
.story .egx-pi.on { background: var(--w-bg-selected); color: var(--w-accent-ink); font-weight: var(--w-fw-semibold); }
.story .egx-tiprow { position: relative; }
/* AppleToolTip, a popup floating over the rows under the hatch dropdown and past the card, as the real one does (in
   the app it does not wrap at all — a plain string, one line; here it wraps so it stays inside the window) */
.story .egx-tip { position: absolute; left: 20%; top: calc(100% + 4px); width: calc(80% + 260px);
  max-width: calc(100vw - 120px); box-sizing: border-box; z-index: 4; padding: 5px 9px;
  border-radius: var(--w-radius-small); background: var(--w-bg-elevated); border: 1px solid var(--w-stroke-subtle);
  box-shadow: var(--w-shadow-popover); font-size: var(--w-fs-subhead); line-height: 1.45; color: var(--w-text-primary); }

/* the results: the notice card, the Reading chip, the table (a 140 floor; it gives height to the notice) */
.story .egx-res { display: flex; flex-direction: column; min-width: 0; }
.story .egx-notice { margin-bottom: 10px; padding: 10px 12px; background: var(--w-warning-subtle);
  border: 1px solid var(--w-warning); border-radius: var(--w-radius-medium); }
.story .egx-nh { font-size: var(--w-fs-headline); font-weight: var(--w-fw-semibold); color: var(--w-warning-ink); }
.story .egx-nb { margin-top: 3px; font-size: var(--w-fs-footnote); line-height: 1.4; color: var(--w-text-secondary); }
.story .egx-chiprow { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.story .egx-fchip svg { flex: none; width: 12px; height: 12px; }
.story .egx-tcard { position: relative; flex: 1 1 auto; min-height: 140px; display: flex; flex-direction: column;
  contain: size; overflow: hidden; }
.story .egx-tcard > .tablewrap { flex: 1 1 auto; }
.story .egx-tcard .tscroll { overflow: hidden; }
.story .egx-tcard table.dg { width: 100%; min-width: 0; table-layout: fixed; }
.story .egx-tcard .dg td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .egx-tcard .dg thead th { overflow: hidden; text-overflow: ellipsis; }
.story .egx-tcard .dg tr.grp td { overflow: visible; }
.story .egx-tcard .dg tr.egx-hastip td:last-child { overflow: visible; }
.story .egx-cut > .tablewrap { position: relative; }
.story .egx-cut > .tablewrap::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 36px;
  background: linear-gradient(to bottom, transparent, var(--w-bg-surface)); pointer-events: none; }
.story .egx-tipcell { position: relative; display: inline-block; }
.story .egx-ttip { position: absolute; right: -8px; bottom: calc(100% + 8px); z-index: 3; width: 380px; padding: 8px 10px;
  white-space: normal; border-radius: var(--w-radius-medium); background: var(--w-bg-elevated);
  border: 1px solid var(--w-stroke-default); box-shadow: var(--w-shadow-popover); font-size: var(--w-fs-callout);
  font-weight: var(--w-fw-regular); line-height: 1.45; color: var(--w-text-primary); text-align: left; }
.story .egx-dot { display: inline-block; width: var(--w-size-status-dot); height: var(--w-size-status-dot);
  margin-right: 8px; border-radius: 50%; vertical-align: 1px; background: var(--w-text-tertiary); }
.story .egx-dot.ok { background: var(--w-success); }
.story .egx-dot.warn { background: var(--w-warning); }
.story .egx-dot.bad { background: var(--w-danger); }
.story .egx-empty { position: absolute; left: 0; right: 0; top: var(--w-size-grid-header); bottom: 0; padding: 0 40px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; }
.story .egx-et { font-size: var(--w-fs-headline); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .egx-eb { max-width: 420px; font-size: var(--w-fs-callout); line-height: 1.45; color: var(--w-text-secondary); }

/* the bottom bar: legend · status (+ Export report…) · · · Draw on the plan · Clear the map · Measure */
.story .egx-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; min-width: 0; }
.story .egx-leg { display: inline-flex; align-items: center; flex: none; font-size: var(--w-fs-footnote);
  color: var(--w-text-secondary); white-space: nowrap; }
.story .egx-leg span { margin: 0 14px 0 6px; }
.story .egx-leg span:last-child { margin-right: 0; }
.story .egx-sw { display: inline-block; width: 11px; height: 11px; box-sizing: border-box; border-radius: 3px;
  border: 1px solid var(--w-stroke-subtle); }
.story .egx-sw.ok { background: var(--w-success); }
.story .egx-sw.warn { background: var(--w-warning); }
.story .egx-sw.bad { background: var(--w-danger); }
.story .egx-stw { flex: 1 1 200px; min-width: 0; display: flex; align-items: center; gap: 10px; margin: 0 4px 0 8px; }
.story .egx-st { min-width: 0; font-size: var(--w-fs-subhead); color: var(--w-text-secondary); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.story .egx-stw .hbtn { flex: none; }

/* the exported report, in a browser: its own page — a section heading, a plain table, a pill, a note */
.story .egx-repbody { padding: 18px 22px 20px; background: var(--w-bg-surface); }
.story .egx-rh { margin: 0 0 10px; font-size: 15px; font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .egx-rscroll { overflow-x: auto; }
.story .egx-rt { width: 100%; border-collapse: collapse; font-size: var(--w-fs-callout); color: var(--w-text-primary); }
.story .egx-rt th { padding: 6px 10px; text-align: left; font-size: var(--w-fs-subhead); font-weight: var(--w-fw-semibold);
  color: var(--w-text-secondary); border-bottom: 1px solid var(--w-stroke-default); white-space: nowrap; }
.story .egx-rt td { padding: 7px 10px; border-bottom: 1px solid var(--w-stroke-subtle); white-space: nowrap; }
.story .egx-rt .n { text-align: right; font-variant-numeric: tabular-nums; }
.story .egx-pill { display: inline-flex; align-items: center; height: 18px; padding: 0 8px; border-radius: var(--w-radius-pill);
  background: var(--w-neutral-subtle); color: var(--w-text-secondary); font-size: var(--w-fs-subhead); }
.story .egx-rn { margin: 10px 0 0; font-size: var(--w-fs-callout); line-height: 1.5; color: var(--w-text-secondary); }

/* ── tools/web_mockups/example.css ── */
/* example.py's one kind. Every rule sits under .story and a class prefix this plugin owns (wmx-), and takes
   its colours from the site's tokens: never a raw hex. */
.story .wmx-note { padding: 14px 16px; }
.story .wmx-note .wmx-h { font-weight: 600; color: var(--ink); }
.story .wmx-note p { margin: 6px 0 0; color: var(--ink-2); }

/* ── tools/web_mockups/graft.css ── */
/* graft.py's kinds (prefix gft-). Every rule sits under .story; colours and sizes are the window's tokens (the
   WEB-THEME block of site.css, --w-*): never a raw hex. The shared pieces — the title bar, the app header, .hbtn,
   .ck, .dg, .tablewrap and the mk-* controls — are site.css's, used as they are. Sizes in px are the XAML's own. */

/* ── the stage and the window ── */
.story .gft-stage { width: 100%; display: flex; justify-content: center; min-width: 0; }
.story .gft-win { width: 100%; min-width: 0; max-width: 100%; }
.story .gft-win.gft-w460 { width: 460px; }
.story .gft-win.gft-w540 { width: 540px; }
.story .gft-win.gft-w620 { width: 620px; }
.story .gft-win.gft-w680 { width: 680px; }
.story .gft-win.gft-w740 { width: 740px; }
.story .gft-win.gft-w820 { width: 820px; }
.story .gft-win.gft-w860 { width: 860px; }
.story .gft-body { padding: 20px 22px 20px; display: flex; flex-direction: column; min-width: 0;
  font-size: var(--w-fs-body); color: var(--w-text-primary); }
.story .gft-crop .gft-body { padding: 14px 16px 16px; }
.story .gft-body .apphdr { margin-bottom: 0; }
.story .gft-sp { flex: 1 1 auto; }
.story .gft-prov { font-size: 11.5px; color: var(--w-text-tertiary); }

/* ── AppleCard: the solid ground of what must be read ── */
.story .gft-card { background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-card); box-shadow: var(--w-shadow-card); min-width: 0; }
.story .gft-top { padding: 12px 16px; margin-top: 14px; }
.story .gft-list { padding: 6px 8px; margin-top: 12px; }
.story .gft-crop .gft-list { margin-top: 0; }

/* the source / profile row and the list header (one card) */
.story .gft-srcrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; min-width: 0; }
.story .gft-srcrow > .mk-combo { flex: 0 1 auto; min-width: 120px; }
.story .gft-lbl { font-size: 12.5px; font-weight: var(--w-fw-medium); color: var(--w-text-primary); margin-right: 4px; }
.story .gft-plbl { font-size: 11.5px; color: var(--w-text-secondary); margin-right: 2px; }
/* the profile strip is ONE StackPanel: when the page is narrower than the window it moves down whole */
.story .gft-prof { display: inline-flex; align-items: center; gap: 6px; flex: none; margin-left: auto; }
.story .gft-lhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.story .gft-gsearch { flex: 0 1 48%; min-width: 160px; display: flex; }
.story .gft-gsearch > .mk-search { flex: 1 1 auto; }
.story .gft-lright { display: inline-flex; align-items: center; gap: 10px; flex: none; margin-left: auto; }
.story .gft-chips { display: inline-flex; gap: 4px; }
.story .gft-only .mk-check { font-size: 11.5px; }
.story .gft-fsum { font-size: 11px; color: var(--w-text-secondary); }
.story .hbtn.gft-mute { color: var(--w-text-secondary); }

/* ── a band: its lid, its search, its cards in independent columns ── */
.story .gft-band { margin: 10px 0 6px; }
.story .gft-band:first-child { margin-top: 4px; }
.story .gft-lid { display: flex; align-items: center; margin: 0 4px; padding: 7px 9px; border-radius: 8px;
  border: 1px solid var(--w-stroke-subtle); background: var(--w-bg-surface); min-width: 0; }
.story .gft-lid b { font-size: 12.5px; font-weight: var(--w-fw-semibold); color: var(--w-text-primary); white-space: nowrap; }
.story .gft-lid-cv { font-size: 11px; color: var(--w-text-secondary); margin-right: 7px; }
.story .gft-lid-sum { font-size: 11px; color: var(--w-text-secondary); margin-left: 10px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.story .gft-bsearch { margin: 6px 4px; display: flex; }
.story .gft-bsearch > .mk-search, .story .gft-secb > .mk-search { flex: 1 1 auto; width: 100%; }
.story .gft-cols { display: grid; align-items: start; min-width: 0; }
.story .gft-cols.c2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.story .gft-cols.c1 { grid-template-columns: minmax(0, 1fr); }
.story .gft-band:not(.open) + .gft-band { margin-top: 6px; }
.story .gft-col { min-width: 0; display: flex; flex-direction: column; }
@media (max-width: 760px) { .story .gft-cols.c2 { grid-template-columns: minmax(0, 1fr); } }

/* a category card (Border BgSubtle, StrokeSubtle, corner 12) and its header */
.story .gft-sec { margin: 0 4px 8px; border-radius: 12px; background: var(--w-bg-subtle);
  border: 1px solid var(--w-stroke-subtle); min-width: 0; }
.story .gft-sech { display: flex; align-items: center; padding: 11px 12px 11px 13px; min-width: 0; }
.story .gft-sech > .ck { margin-right: 9px; }
.story .gft-sec-cv { font-size: 11px; color: var(--w-text-secondary); margin-right: 8px; }
.story .gft-sect { font-size: 13.5px; font-weight: var(--w-fw-semibold); color: var(--w-text-primary); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 40px; }
.story .gft-pills { display: inline-flex; margin-left: 12px; flex: none; }
.story .gft-pill { display: inline-flex; align-items: center; border-radius: 8px; padding: 1px 6px; margin-right: 4px;
  font-size: 10px; line-height: 1.35; white-space: nowrap; }
.story .gft-pill:last-child { margin-right: 8px; }
.story .gft-pill.ok { background: var(--w-success-subtle); color: var(--w-success-ink); }
.story .gft-pill.warn { background: var(--w-warning-subtle); color: var(--w-warning-ink); }
.story .gft-pill.info { background: var(--w-info-subtle); color: var(--w-info-ink); }
/* THE BAR: the four counts as length (star columns), 4 tall, 1 px apart */
.story .gft-bar { flex: 1 1 0; display: flex; height: 4px; margin: 0 12px 0 18px; min-width: 0; gap: 1px; }
.story .gft-bar > i { display: block; flex-basis: 0; border-radius: 2px; }
.story .gft-bar > i.ok { background: var(--w-success); }
.story .gft-bar > i.warn { background: var(--w-warning); }
.story .gft-bar > i.same { background: var(--w-stroke-subtle); }
.story .gft-bar > i.info { background: var(--w-info); }
.story .gft-ctr { font-size: 11px; color: var(--w-text-secondary); flex: none; font-variant-numeric: tabular-nums; }
.story .gft-secb { padding: 0 12px 12px 13px; display: flex; flex-direction: column; gap: 8px; }
.story .gft-rows { display: flex; flex-direction: column; }

/* a row (SrcItemTemplate): chevron 14 · tick · dot 8 · name * · use · here · ⓘ · compare */
.story .gft-row { position: relative; display: flex; align-items: center; margin: 1px 0; padding: 5px 6px;
  border-radius: 5px; min-width: 0; }
.story .gft-cv { width: 14px; flex: none; text-align: center; font-size: 10px; color: var(--w-text-secondary); }
.story .gft-row > .ck { flex: none; }
.story .gft-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; margin-left: 9px; background: var(--w-text-tertiary); }
.story .gft-dot.new { background: var(--w-success); }
.story .gft-dot.differs { background: var(--w-warning); }
.story .gft-dot.locked { background: var(--w-info); }
.story .gft-nm { flex: 1 1 auto; min-width: 0; margin-left: 9px; font-size: 12.5px; color: var(--w-text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .gft-use { flex: none; margin-left: 10px; font-size: 11px; color: var(--w-text-tertiary); white-space: nowrap; }
.story .gft-here { flex: none; margin-left: 8px; padding: 1px 6px; border-radius: 8px; background: var(--w-info-subtle);
  color: var(--w-info-ink); font-size: 10px; line-height: 1.35; white-space: nowrap; }
.story .gft-i { flex: none; margin-left: 6px; font-size: 12.5px; line-height: 1; color: var(--w-info-ink); }
.story .gft-cmp { flex: none; display: inline-flex; align-items: center; margin: 0 2px 0 6px; padding: 2px 7px;
  border-radius: 4px; background: var(--w-warning-subtle); color: var(--w-warning-ink); font-size: 10px; white-space: nowrap; }
.story .gft-cmp.lk { background: var(--w-info-subtle); color: var(--w-info-ink); }
.story .gft-cmp-g { font-size: 11px; margin-right: 4px; }
.story .gft-kids { margin: 0 0 2px 23px; }

/* AppleToolTip, open: BgElevated, a hairline, the small corner, Subhead, 9,5 — over what is under it */
.story .gft-hastip { z-index: 3; }
.story .gft-tip { position: absolute; top: calc(100% + 2px); z-index: 4; width: max-content; max-width: min(360px, 86%);
  padding: 5px 9px; border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-small);
  background: var(--w-bg-elevated); box-shadow: var(--w-shadow-popover); color: var(--w-text-primary);
  font-size: var(--w-fs-subhead); line-height: 1.4; white-space: pre-wrap; text-align: left; }
.story .gft-tip-box { left: 14px; }
.story .gft-tip-info { right: 8px; }
.story .gft-tip-btn { right: 0; top: calc(100% + 4px); max-width: min(300px, 86%); }
.story .gft-sec, .story .gft-list, .story .gft-col, .story .gft-cols { overflow: visible; }
.story .gft-crop .gft-body { overflow: visible; }

/* ── the footer (row 4) and «Rename what arrives» ── */
.story .gft-foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; min-width: 0; }
.story .gft-crop .gft-foot { margin-top: 0; }
.story .gft-hint { flex: 1 1 260px; max-width: 520px; font-size: 11px; line-height: 1.4; color: var(--w-text-tertiary); }
.story .gft-foot-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.story .gft-rcheck { margin-right: 4px; }
.story .gft-rcheck .mk-check { font-size: var(--w-fs-body); }
.story .hbtn.gft-wide { min-width: var(--w-size-button-min-width-wide); }
.story .hbtn.gft-go { min-width: 160px; white-space: pre; }
.story .gft-ren { padding: 8px 10px; margin-top: 0; box-shadow: var(--w-shadow-card); }
.story .gft-rgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.story .gft-rf { display: flex; flex-direction: column; margin-right: 8px; min-width: 0; }
.story .gft-rf:last-child { margin-right: 0; }
.story .gft-rl { font-size: 11px; color: var(--w-text-secondary); margin-bottom: 3px; }
.story .gft-rf > .mk-field { width: 100%; }
.story .gft-rex { margin-top: 6px; font-size: 11px; color: var(--w-text-secondary); }
.story .gft-ren + .gft-foot { margin-top: 10px; }

/* ── the stale note (row 1): WarningSubtle, its compact Refresh ── */
.story .gft-stale { position: relative; display: flex; align-items: center; align-self: flex-start; margin-top: 10px;
  padding: 6px 9px; border-radius: 6px; background: var(--w-warning-subtle); }
.story .gft-stale-t { max-width: 720px; font-size: 11.5px; line-height: 1.4; color: var(--w-warning-ink); }
.story .gft-stale-b { position: relative; flex: none; margin-left: 10px; }
.story .gft-cropbot .gft-body { padding-bottom: 72px; }
.story .gft-roomy .gft-body { padding-bottom: 92px; }
.story .gft-roomy-s .gft-body { padding-bottom: 60px; }

/* ── the dialogs ── */
/* Graft's three dialogs paint BgWindow on their root Border, but AppleWindow clears the paper of its content root
   (ClearPaper) while Ambient is on — the default — so the ambient field shows in them like in every window. The body's
   padding is each XAML's own root margin: diff 24,20,24,18 · conflict and summary 26,22,26,20 · input 28,12,28,20. */
.story .gft-win.gft-dlgwin > .gft-body { padding: 0; }
.story .gft-dlg { display: flex; flex-direction: column; min-width: 0; }
.story .gft-dlg-diff { padding: 20px 24px 18px; }
.story .gft-dlg-conf, .story .gft-dlg-sum { padding: 22px 26px 20px; }
.story .gft-dlg-in { padding: 12px 28px 20px; }
.story .gft-dlg-diff .gft-dfoot { margin-top: 16px; }
.story .gft-dlg-sum .gft-dfoot { margin-top: 22px; }
.story .gft-dlg-in .gft-dfoot { gap: 10px; }
.story .gft-h18 { font-size: 18px; font-weight: var(--w-fw-bold); color: var(--w-text-primary); line-height: 1.25; }
.story .gft-h19 { font-size: 19px; font-weight: var(--w-fw-bold); color: var(--w-text-primary); line-height: 1.25; }
.story .gft-dfoot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.story .gft-dfoot > .hbtn:not(.compact) { min-width: var(--w-size-button-min-width); }

/* What differs: the grouped table on its card */
.story .gft-dsub { margin-top: 3px; font-size: 13px; color: var(--w-text-secondary); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; }
.story .gft-dtable { margin-top: 16px; }
.story .gft-dtable table.dg { table-layout: fixed; width: 100%; }
.story .gft-dtable table.dg th:nth-child(1) { width: 29.4%; }
.story .gft-dtable table.dg th:nth-child(2), .story .gft-dtable table.dg th:nth-child(3) { width: 35.3%; }
.story .gft-dtable td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .gft-dtable td.gft-srcv { color: var(--w-text-secondary); }
.story .gft-dtable td.gft-dst { color: var(--w-text-secondary); }
.story .gft-dtable td.gft-dst.amber { color: var(--w-warning-ink); }
.story .gft-dtable td.gft-dst.quiet { color: var(--w-text-tertiary); }
.story .gft-dhint { margin: 8px 0 0 2px; font-size: var(--w-fs-footnote); line-height: 1.4; color: var(--w-text-tertiary); }

/* Some items already exist */
.story .gft-csum { margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--w-text-primary); }
.story .gft-cid { margin-top: 4px; font-size: 12px; line-height: 1.4; color: var(--w-text-secondary); }
.story .gft-cdec { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; }
.story .gft-cdec > span:first-child { font-size: 10px; font-weight: var(--w-fw-semibold); color: var(--w-text-tertiary); }
.story .gft-cdec .hbtn.link { font-size: var(--w-fs-control-compact); }
.story .gft-clist { padding: 4px; border-radius: 10px; background: var(--w-bg-subtle); border: 1px solid var(--w-stroke-subtle); }
.story .gft-crow { padding: 6px 8px; margin: 1px 0; border-radius: var(--w-radius-small); }
.story .gft-crow-h { display: flex; align-items: center; min-width: 0; }
.story .gft-crow-n { flex: 1 1 auto; min-width: 0; font-size: 12.5px; font-weight: var(--w-fw-medium); color: var(--w-text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .gft-crow-k { flex: none; margin: 0 4px 0 10px; font-size: 11px; color: var(--w-text-tertiary); white-space: nowrap; }
.story .gft-crow-c { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 5px; }
.story .gft-crow-c .mk-radio { font-size: 11.5px; }
.story .gft-crow-c .mk-radio.gft-dis { opacity: var(--w-opacity-disabled); }
.story .gft-crow-c .gft-asbox { width: 270px; max-width: 100%; margin-left: -8px; font-size: 11.5px; overflow: hidden;
  justify-content: flex-start; }
.story .gft-crow-c .gft-asbox.gft-dis { opacity: var(--w-opacity-disabled); }
.story .gft-crule { margin-top: 8px; font-size: 11.5px; line-height: 1.4; color: var(--w-text-secondary); }

/* Standards grafted: the four count cards, the skip line, the notes */
.story .gft-ssub { margin-top: 6px; font-size: 12.5px; line-height: 1.4; color: var(--w-text-secondary); }
.story .gft-scards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 18px; }
.story .gft-scard { border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; min-width: 0; }
.story .gft-scard b { font-size: 24px; font-weight: var(--w-fw-bold); line-height: 1.15; }
.story .gft-scard span { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .gft-scard.ok { background: var(--w-success-subtle); color: var(--w-success-ink); }
.story .gft-scard.warn { background: var(--w-warning-subtle); color: var(--w-warning-ink); }
.story .gft-scard.acc { background: var(--w-accent-subtle); color: var(--w-accent-ink); }
.story .gft-scard.skip { background: var(--w-bg-subtle); color: var(--w-text-secondary); }
.story .gft-skip { margin-top: 10px; font-size: 11px; color: var(--w-text-tertiary); }
.story .gft-notes { margin-top: 16px; display: flex; flex-direction: column; }
.story .gft-note { font-size: 11.5px; line-height: 1.4; color: var(--w-text-secondary); }

/* Save profile (AppleInputDialog): Title3, Body in the secondary ink, the box */
.story .gft-ih { margin-top: 8px; font-size: var(--w-fs-title3); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .gft-ib { margin: 6px 0 14px; font-size: var(--w-fs-body); line-height: 1.45; color: var(--w-text-secondary); }
.story .mk-field.gft-ibox { width: 100%; }

/* ── the deviation report, in a browser: its own page (header on the surface, tiles, the table) ── */
.story .gft-browser { overflow: hidden; }
.story .gft-rep { background: var(--w-bg-window); max-height: 520px; overflow: hidden; position: relative; }
.story .gft-rep::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px;
  background: linear-gradient(transparent, var(--w-bg-window)); pointer-events: none; }
.story .gft-rep-hd { background: var(--w-bg-surface); border-bottom: 1px solid var(--w-stroke-subtle); padding: 22px 24px 18px; }
.story .gft-eyebrow { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--w-text-tertiary); }
.story .gft-rep-h1 { margin: 6px 0 4px; font-size: 24px; font-weight: var(--w-fw-semibold); color: var(--w-text-primary); line-height: 1.2; }
.story .gft-rep-sub { font-size: 13px; color: var(--w-text-secondary); }
.story .gft-rep-sub b { color: var(--w-text-primary); }
.story .gft-rep-meta { margin-top: 6px; font-size: 12px; color: var(--w-text-tertiary); }
.story .gft-rep-main { padding: 0 24px 28px; }
.story .gft-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 20px 0 6px; }
@media (max-width: 760px) { .story .gft-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.story .gft-tile { background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle); border-radius: 12px; padding: 14px; min-width: 0; }
.story .gft-big { font-size: 26px; font-weight: var(--w-fw-semibold); line-height: 1.2; }
.story .gft-tl { margin-top: 2px; font-size: 12px; color: var(--w-text-secondary); }
.story .gft-tile.ok .gft-big { color: var(--w-success-ink); }
.story .gft-tile.warn .gft-big { color: var(--w-warning-ink); }
.story .gft-tile.new .gft-big { color: var(--w-teal); }
.story .gft-tile.lock .gft-big { color: var(--w-info-ink); }
.story .gft-rep-h2 { margin: 24px 0 10px; font-size: 15px; font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .gft-rep-t { width: 100%; border-collapse: collapse; background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle);
  border-radius: 12px; overflow: hidden; font-size: 13px; }
.story .gft-rep-t th, .story .gft-rep-t td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--w-stroke-subtle);
  color: var(--w-text-primary); }
.story .gft-rep-t th { font-size: 11px; font-weight: var(--w-fw-semibold); text-transform: uppercase; letter-spacing: .05em;
  color: var(--w-text-tertiary); }
.story .gft-rep-t .n { text-align: right; font-variant-numeric: tabular-nums; }
.story .gft-rep-t tr:last-child td { border-bottom: 0; }

/* ── tools/web_mockups/inlay.css ── */
/* inlay.py's kinds (prefix inx-). Every rule sits under .story; colours and sizes are the window's tokens (the
   WEB-THEME block of site.css, --w-*): never a raw hex. The shared pieces — the title bar, the app header, .hbtn,
   .ck, .dg, .tablewrap, the mk-* controls — are site.css's, used as they are. A workbook's cells are drawn on the
   sheet's own paper and ink (--w-sheet-*): the preview is white whatever the theme (TablePreviewControl), as paper
   is. The guide's notes under a window are the PAGE's (--ink, --line), not the window's. */

/* ── the stage, the windows and their widths (the XAML's, scaled to the page; .capwin keeps max-width: 100%) ── */
.story .inx-stage { width: 100%; display: flex; justify-content: center; min-width: 0; }
.story .inx-col { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; min-width: 0; }
.story .inx-win { min-width: 0; }
.story .inx-win.inx-dlg { width: 520px; }
.story .inx-win.inx-main { width: 100%; }
.story .inx-win.inx-pane { width: 520px; }
.story .inx-win.inx-view { width: 460px; }
.story .inx-win.inx-hub { width: 316px; }
.story .inx-body { font-size: var(--w-fs-callout); color: var(--w-text-primary); min-width: 0; }

/* ── «Add Excel table» (ChooseRangeDialog.xaml: Margin 22,12,22,16; Height 440, the range row takes the rest) ── */
.story .inx-dlg .inx-body { padding: 12px 22px 16px; display: flex; flex-direction: column; min-height: 380px;
  box-sizing: border-box; }
.story .inx-dh { margin-top: 4px; min-width: 0; }
.story .inx-h { font-size: var(--w-fs-headline); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .inx-file { margin-top: 3px; font-size: var(--w-fs-subhead); color: var(--w-text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .inx-fld { margin-top: 16px; display: flex; flex-direction: column; min-width: 0; }
.story .inx-fld + .inx-fld { margin-top: 14px; flex: 1 0 auto; }
/* the two captions are the XAML's own: FontSize 11, Bold, TextSecondary */
.story .inx-lb { margin-bottom: 4px; font-size: 11px; font-weight: var(--w-fw-bold); color: var(--w-text-secondary); }
.story .inx-fld .mk-combo { display: flex; width: 100%; }
/* the range box: a Border (BgSurface, StrokeSubtle, corner 8, 34 high) round a borderless box in Consolas 13 */
.story .inx-range { display: block; box-sizing: border-box; height: 34px; line-height: 32px; padding: 0 10px;
  border: 1px solid var(--w-stroke-subtle); border-radius: 8px; background: var(--w-bg-surface);
  font-family: var(--w-font-mono); font-size: 13px; color: var(--w-text-primary); }
.story .inx-hint { margin: 6px 0 0 2px; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); }
.story .inx-targets { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.story .inx-targets .mk-check { font-size: 13px; }
.story .inx-fn { margin-top: 10px; font-size: var(--w-fs-footnote); line-height: 1.4; color: var(--w-text-tertiary); }
.story .inx-foot { margin-top: 16px; display: flex; justify-content: flex-end; gap: 8px; }
.story .inx-foot > .hbtn { min-width: var(--w-size-button-min-width); }

/* ── the main window (MainPanelView.xaml): list 1.1* | the splitter's 16 | preview 1* ──
   Drawn at its real width (--inx-dw, inlay.py _MAIN_W) and scaled whole (zoom) to --inx-bw, stepping with the
   viewport; the stage (a centring flex box) centres it on the column, past the column's edges on a big screen. A width
   W is used only from a viewport of W + 90 (the beat's rail, a scroll bar, a margin); below 730 the window scrolls.
   The panes keep their XAML margins (20,16,8,16 · 8,16,20,16); the list keeps the 728 px its table needs (the
   splitter where the whole table shows), the preview takes the rest. */
.story .inx-fit { position: relative; z-index: 2; flex: none; width: var(--inx-bw); --inx-z: 1; --inx-bw: 1240px; }
.story .inx-fit > .capwin.inx-main { width: var(--inx-dw); max-width: none; zoom: var(--inx-z); }
@media (max-width: 1329px) { .story .inx-fit { --inx-z: .9032; --inx-bw: 1120px; } }
@media (max-width: 1209px) { .story .inx-fit { --inx-z: .8; --inx-bw: 992px; } }
@media (max-width: 1081px) { .story .inx-fit { --inx-z: .6452; --inx-bw: 800px; } }
@media (max-width: 889px) { .story .inx-fit { --inx-z: .5161; --inx-bw: 640px; } }
@media (max-width: 729px) {
  .story .inx-fit { flex: 1 1 auto; width: 100%; overflow-x: auto; padding-bottom: 18px; }
}
.story .inx-main .inx-body { padding: 0; }
.story .inx-panes { display: flex; align-items: stretch; padding: 16px 20px; min-width: 0; }
.story .inx-left { flex: 1.1 1 0; min-width: 736px; padding-right: 8px; display: flex; flex-direction: column;
  box-sizing: border-box; }
.story .inx-panes > .mk-split.col { min-height: 0; }
.story .inx-right { flex: 1 1 0; min-width: 0; margin-left: 8px; display: flex; flex-direction: column;
  background: var(--w-bg-subtle); }
.story .inx-left .apphdr { margin-bottom: 0; }
.story .inx-left .apphdr-ctx { font-size: var(--w-fs-subhead); line-height: 1.4; margin-top: 3px; }
.story .inx-left .apphdr-ctx:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .inx-left .apphdr-ctx:first-of-type { margin-top: 10px; }
/* the toolbar: a WrapPanel, 8 between, 6 under each (a second line in Spanish) */
.story .inx-tools { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 14px 0 4px; min-width: 0; }
.story .inx-left > .tablewrap, .story .inx-left > .inx-card { flex: 1 1 auto; min-width: 0; }
.story .inx-grid .tscroll { overflow-x: auto; }
.story .inx-grid table.dg { width: 100%; table-layout: fixed; }
/* Excel source: the file (semibold) and «sheet»!range in the mono face (AppleText.CellSecondary) */
.story .inx-src { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.story .inx-src b { font-weight: var(--w-fw-semibold); color: var(--w-text-primary); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; }
.story .inx-src code { font-family: var(--w-font-mono); font-size: 11px; color: var(--w-text-secondary); background: none;
  padding: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .inx-views { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.story .inx-grid td.inx-acts { text-align: center; padding: 0 4px; }
.story .inx-grid td { overflow: hidden; }

/* the app's empty state (AppleEmptyState: centred, MaxWidth 460) on the list's card */
.story .inx-card { box-sizing: border-box; border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-card);
  background: var(--w-bg-surface); }
.story .inx-emptycard { display: flex; align-items: center; justify-content: center; min-height: 300px; padding: 24px 16px; }
.story .inx-empty { max-width: 460px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.story .inx-etile { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 56px;
  height: 56px; margin-bottom: 4px; border-radius: 14px; background: var(--w-bg-subtle); border: 1px solid var(--w-stroke-subtle);
  font-size: 26px; line-height: 1; color: var(--w-text-tertiary); }
.story .inx-et { margin-top: 14px; font-size: var(--w-fs-title3); font-weight: var(--w-fw-semibold); color: var(--w-text-secondary); }
.story .inx-eb { margin-top: 6px; font-size: var(--w-fs-subhead); line-height: 1.45; color: var(--w-text-tertiary); }
.story .inx-empty > .hbtn { margin-top: 14px; }

/* the preview pane (BgSubtle): its header, the preview's card (BgSurface, StrokeSubtle, corner 10, 16 in) and the
   status line with Draw / Update in Revit */
.story .inx-ph { margin: 0 0 10px 4px; min-width: 0; }
.story .inx-ph b { display: block; font-size: var(--w-fs-body); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .inx-meta { display: block; min-height: 1.3em; margin-top: 2px; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .inx-pv { flex: 1 1 auto; min-height: 170px; box-sizing: border-box; padding: 16px; overflow: auto;
  border: 1px solid var(--w-stroke-subtle); border-radius: 10px; background: var(--w-bg-surface); }
.story .inx-bar { margin-top: 12px; display: flex; align-items: center; gap: 12px; min-width: 0; }
/* one line, trimmed (TextTrimming); the whole sentence is its tooltip */
.story .inx-st { flex: 1 1 auto; min-width: 0; font-size: var(--w-fs-footnote); color: var(--w-text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .inx-st.ok { color: var(--w-success); }
.story .inx-st.bad { color: var(--w-danger); }
.story .inx-st.busy { color: var(--w-accent-text); }
.story .inx-bar > .hbtn { flex: none; }

/* a workbook's cells (TablePreviewControl / TableDrawer): the sheet's paper, thin borders, a header's fill and weight,
   a number to the right; the text stays on one line (a cell trims, it does not wrap) */
.story .inx-sheet { display: inline-block; max-width: 100%; background: var(--w-sheet-paper); vertical-align: top; }
.story .inx-sheet table, .story .inx-drawn table { border-collapse: collapse; font-family: var(--w-font-sans);
  font-size: 12.5px; color: var(--w-sheet-ink); }
.story .inx-sheet td, .story .inx-drawn td { position: relative; height: 24px; padding: 0 7px; min-width: 52px;
  border: 1px solid color-mix(in srgb, var(--w-sheet-ink) 70%, transparent); white-space: nowrap; }
.story .inx-sheet td.hd, .story .inx-drawn td.hd { font-weight: var(--w-fw-bold);
  background: color-mix(in srgb, var(--w-accent) 18%, var(--w-sheet-paper)); }
.story .inx-sheet td.num, .story .inx-drawn td.num { text-align: right; font-variant-numeric: tabular-nums; }
/* under the grid, when the preview stops short: FontSize 11, a fixed grey (TablePreviewControl), on the paper */
.story .inx-trunc { margin: 8px 2px 2px; font-size: 11px; color: color-mix(in srgb, var(--w-sheet-ink) 62%, var(--w-sheet-paper)); }

/* the preview pane alone (inlay-fidelity) */
.story .inx-pane .inx-body { padding: 16px 20px; }
.story .inx-right.inx-solo { margin-left: 0; }
.story .inx-solo .inx-pv { min-height: 0; }

/* the guide's numbered discs: inside a cell, on the side its text leaves free (the right of a text, the left of a
   number); a "gap" disc sits on the cell's top-left corner, on the seam where a hidden column was */
.story .inx-mk { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  width: 17px; height: 17px; border-radius: 50%; background: var(--w-accent); color: var(--w-text-on-accent);
  font-size: 10.5px; font-weight: 700; font-style: normal; line-height: 1; font-family: var(--font); }
.story .inx-sheet td:has(> .inx-mk:not(.inx-gap)) { padding-right: 30px; }
.story .inx-sheet td.num:has(> .inx-mk:not(.inx-gap)) { padding-right: 7px; padding-left: 30px; }
.story td > .inx-mk { position: absolute; top: 50%; right: 6px; margin-top: -8.5px; z-index: 1;
  box-shadow: 0 0 0 2px var(--w-sheet-paper); }
.story td.num > .inx-mk { right: auto; left: 6px; }
.story td > .inx-mk.inx-gap { top: 0; right: auto; left: 0; margin: -8.5px 0 0 -8.5px; }

/* ── the guide's notes under a window: the page's words, in the page's style ── */
.story .inx-notes { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 520px; display: flex; flex-direction: column;
  gap: 6px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.story .inx-notes li { display: flex; align-items: flex-start; gap: 9px; }
.story .inx-notes li .inx-mk { flex: none; margin-top: 1px; }
.story .inx-notes:not(.num) li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: 7px; border-radius: 50%;
  background: var(--accent); }
.story .inx-cant { width: 100%; max-width: 520px; box-sizing: border-box; padding: 10px 13px; border-radius: 10px;
  border: 1px dashed var(--line); font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.story .inx-cant b { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 700; color: var(--ink); }

/* ── the drafting view (Revit's window: its title, its canvas, its view control bar) ── */
.story .inx-view .inx-body { padding: 0; }
/* Revit's window has nothing at the right of its title bar, so its title takes the whole bar past the lights (they end
   at 66): the shared bar keeps 100 free on each side for BIMIO's buttons, and in a beat's column (about 365 wide) that
   cut «Drafting View: Inlay - Finishes Schedule» to «… Fini…» — the view's name, the part the beat is about. */
.story .inx-view .capbar.plain .wt { left: 78px; right: 14px; }
.story .inx-canvas { padding: 22px 22px 26px; background: var(--w-sheet-paper); overflow-x: auto; }
.story .inx-drawn { position: relative; display: inline-block; }
.story .inx-pin { position: absolute; top: -18px; right: -16px; width: 16px; height: 16px; fill: none;
  stroke: var(--w-sheet-ink); stroke-width: 1.2; stroke-linejoin: round; stroke-linecap: round; }
.story .inx-vcb { display: flex; align-items: center; height: 24px; padding: 0 10px; border-top: 1px solid var(--w-stroke-subtle);
  background: var(--w-bg-subtle); font-size: 11px; color: var(--w-text-secondary); }

/* ── the types a draw leaves (a scene, no window: the page's tokens) ── */
.story .inx-scene { width: 100%; max-width: 560px; box-sizing: border-box; padding: 16px; border: 1px solid var(--line);
  border-radius: 16px; background: var(--card); color: var(--ink); }
.story .inx-tcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.story .inx-tg { min-width: 0; padding: 10px 11px; border: 1px solid var(--line); border-radius: 11px; }
.story .inx-tgh { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px;
  font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.story .inx-tgh b { font-size: 12px; color: var(--ink); }
.story .inx-tn { display: flex; align-items: center; gap: 6px; padding: 4px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.story .inx-tn:last-child { border-bottom: 0; }
.story .inx-tn code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: none; padding: 0;
  font-family: var(--w-font-mono); font-size: 10.5px; color: var(--ink); }
.story .inx-tn em { flex: none; margin-left: auto; padding: 1px 6px; border-radius: 6px; font-style: normal; font-size: 9.5px;
  font-weight: 700; color: var(--w-success-ink); background: var(--w-success-subtle); }
.story .inx-tfacts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.story .inx-tf { flex: 1 1 150px; min-width: 0; font-size: 11.5px; line-height: 1.4; color: var(--ink-2); }
.story .inx-tf b { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 700; color: var(--ink); }

/* ── the Hub's tile (DashboardWindow.BuildTile: 262 wide, corner 12, 14,12 in, BgSurface, StrokeSubtle) ── */
.story .inx-hub .inx-body { padding: 4px 12px 18px; }
.story .inx-tiles { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 12px; }
.story .inx-tile { width: 262px; box-sizing: border-box; padding: 12px 14px; margin-top: 8px; display: flex; flex-direction: column;
  border: 1px solid var(--w-stroke-subtle); border-radius: 12px; background: var(--w-bg-surface); color: var(--w-text-primary);
  font-family: var(--w-font-sans), var(--font); text-align: left; }
.story .inx-tt { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.story .inx-tt b { flex: 1 1 auto; font-size: 14px; font-weight: var(--w-fw-semibold); }
.story .inx-hd { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.story .inx-hd i { display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--w-stroke-subtle); }
.story .inx-hd i.ok { background: var(--w-success); }
.story .inx-hd i.warn { background: var(--w-warning); }
.story .inx-hd i.bad { background: var(--w-danger); }
.story .inx-hd i.off { background: var(--w-text-tertiary); }
.story .inx-hb { padding: 1px 7px; border-radius: 9px; font-size: 11px; font-weight: var(--w-fw-bold); line-height: 1.35;
  color: var(--w-text-on-accent); background: var(--w-stroke-subtle); }
.story .inx-hb.warn { background: var(--w-warning); }
.story .inx-hb.bad { background: var(--w-danger); }
.story .inx-hb.ok { background: var(--w-success); }
.story .inx-th { margin-bottom: 6px; font-size: 12.5px; line-height: 1.35; color: var(--w-text-secondary); }
.story .inx-th.ok { color: var(--w-success); }
.story .inx-th.warn { color: var(--w-warning); }
.story .inx-th.bad { color: var(--w-danger); }
.story .inx-th.off { color: var(--w-text-tertiary); }
.story .inx-kpi { display: flex; justify-content: space-between; gap: 8px; margin: 1px 0; font-size: 12px; }
.story .inx-kpi span { color: var(--w-text-secondary); }
.story .inx-kpi b { font-weight: var(--w-fw-semibold); }
.story .inx-ta { margin-top: 10px; display: flex; gap: 8px; }
.story .inx-lead { max-width: 560px; text-align: center; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.story .inx-states .inx-tile { margin-top: 0; }

/* ── tools/web_mockups/ledger.css ── */
/* ledger.py's kinds (prefix ldg-). Every rule sits under .story; colours and sizes are the window's tokens (the
   WEB-THEME block of site.css, --w-*): never a raw hex. The shared pieces — the title bar, the app header, .hbtn,
   .ck and the mk-* controls — are site.css's, used as they are. Sizes in px are the XAML's own. */

/* ── the stage and the window ── */
.story .ldg-stage { width: 100%; display: flex; justify-content: center; min-width: 0; }
.story .ldg-win { width: 100%; min-width: 0; max-width: 100%; }
.story .ldg-win.ldg-w540 { width: 540px; }
.story .ldg-win.ldg-w700 { width: 700px; }
.story .ldg-win.ldg-w760 { width: 760px; }
.story .ldg-win.ldg-w780 { width: 780px; }
.story .ldg-win.ldg-w900 { width: 900px; }
.story .ldg-body { display: flex; flex-direction: column; min-width: 0; font-size: var(--w-fs-body);
  color: var(--w-text-primary); }
/* the main window: Grid Margin 20,16,20,14 */
.story .ldg-main .ldg-body { padding: 16px 20px 14px; }
.story .ldg-main .apphdr { margin-bottom: 0; }
/* a dialog: Margin 26,22,26,20 */
.story .ldg-dlg .ldg-body { padding: 22px 26px 20px; }
/* where the window goes on below what is drawn: the last row fades out */
.story .ldg-win.ldg-cut { -webkit-mask-image: linear-gradient(to bottom, var(--w-text-primary) calc(100% - 64px), transparent);
  mask-image: linear-gradient(to bottom, var(--w-text-primary) calc(100% - 64px), transparent); }
.story .ldg-cut .ldg-body { padding-bottom: 0; }
.story .ldg-cut .ldg-edit { padding-bottom: 10px; }

.story .ldg-rule { flex: none; align-self: stretch; width: 1px; margin: 5px 4px; background: var(--w-stroke-default); }
.story .hbtn.ldg-wide { min-width: var(--w-size-button-min-width-wide); }
.story .ldg-draft { font-size: var(--w-fs-control-compact); font-weight: var(--w-fw-semibold); color: var(--w-accent-text); }

/* ── row 1: the file actions, right-aligned, reflowing ── */
.story .ldg-files { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px;
  margin-top: 10px; min-width: 0; }
/* ── row 2: the source path (AppleText.Footnote) ── */
.story .ldg-src { margin-top: 10px; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ── row 4: the search box (272) and the edit buttons, which wrap rather than squeeze it ── */
.story .ldg-edit { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; min-width: 0; }
.story .ldg-search { flex: 0 0 272px; display: flex; min-width: 0; }
/* the hint is a TextBlock laid over the box: FontSize 12.5 and Margin 11 from the box's edge (border 1 + 10 here) —
   the Spanish hint is 257 of the 261 it gets, so the site's 13 px and 10 + 10 padding cut its «…» */
.story .ldg-search > .mk-field { width: 100%; overflow: hidden; padding: 0 0 0 10px; font-size: 12.5px; }
.story .ldg-ebtns { flex: 1 1 auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; min-width: 0; }
@media (max-width: 760px) { .story .ldg-edit { flex-wrap: wrap; } .story .ldg-search { flex-basis: 100%; } }
/* ── row 5: «Show» and its toggles; the library's views at the right. A Grid of * | Auto: the views keep their line
   at the right and the toggles wrap in what is left (on a phone both wrap) ── */
.story .ldg-chips { display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 6px 8px; margin-top: 10px; min-width: 0; }
.story .ldg-cl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex: 1 1 auto; min-width: 0; }
.story .ldg-show { font-size: 12px; color: var(--w-text-tertiary); margin: 0 4px 0 2px; align-self: center; }
.story .ldg-cr { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; flex: none; margin-left: auto; }
@media (max-width: 760px) { .story .ldg-chips, .story .ldg-cr { flex-wrap: wrap; } }
.story .ldg-cr > .hbtn { min-width: var(--w-size-button-min-width-compact); }

/* ── row 6: the tree, on its BgElevated card (CornerRadius 8, Padding 6) ── */
.story .ldg-tree { margin-top: 12px; padding: 6px; border-radius: 8px; background: var(--w-bg-elevated); min-width: 0; }
/* AppleTreeViewItem: Bd Padding 2,3, the small corner; a 16 column for the fold; BgSelected when selected */
.story .ldg-tr { display: flex; align-items: center; padding: 3px 2px; border-radius: var(--w-radius-small); min-width: 0; }
.story .ldg-tr.sel { background: var(--w-bg-selected); }
.story .ldg-tv { flex: none; width: 16px; display: flex; align-items: center; justify-content: center; }
.story .ldg-tv svg { width: 6px; height: 8px; fill: none; stroke: var(--w-text-secondary); stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round; }
.story .ldg-tv.open svg { transform: rotate(90deg); }
.story .ldg-tv.leaf svg { visibility: hidden; }
.story .ldg-tc { flex: 1 1 auto; display: flex; align-items: center; min-width: 0; min-height: 24px; }
/* a keynote: dot 9 · key (Consolas 12, 60 at least) · text 12.5 · its summary 11 */
.story .ldg-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--w-text-tertiary); }
.story .ldg-dot.g { background: var(--w-success); }
.story .ldg-dot.a { background: var(--w-warning); }
.story .ldg-key { flex: none; min-width: 60px; margin-left: 10px; font-family: var(--w-font-mono); font-size: 12px;
  color: var(--w-text-secondary); white-space: nowrap; }
.story .ldg-txt { flex: 1 1 auto; min-width: 0; margin-left: 12px; font-size: 12.5px; color: var(--w-text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .ldg-cnt { flex: none; margin-left: 10px; font-size: 11px; color: var(--w-text-tertiary); white-space: nowrap; }
/* a usage row: the kind badge (66 at least) · the label · the detail, right · its button */
.story .ldg-ub { flex: none; min-width: 66px; display: flex; }
.story .ldg-ul { flex: 1 1 auto; min-width: 0; margin: 0 8px; font-size: 12.5px; color: var(--w-text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .ldg-ul.grp { color: var(--w-text-primary); font-weight: var(--w-fw-semibold); }
.story .ldg-ud { flex: 0 1 auto; min-width: 0; font-size: 11px; color: var(--w-text-tertiary); text-align: right;
  white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.story .ldg-ubtn { flex: none; margin-left: 10px; }

/* ── row 7: the legend and the hint ── */
.story .ldg-legend { margin: 12px 0 0 2px; }
.story .ldg-lg { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.story .ldg-lgi { display: inline-flex; align-items: center; font-size: 12px; color: var(--w-text-secondary); }
.story .ldg-lgi > .ldg-dot { margin-right: 7px; }
.story .ldg-lgi > b { font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
/* the Run after the bold one starts with its own space (« — a keynote tag is placed»): keep it */
.story .ldg-lgr { white-space: pre-wrap; }
.story .ldg-hint { margin-top: 8px; font-size: 11.5px; line-height: 1.4; color: var(--w-text-tertiary); }

/* ── row 3: the broken-tag card (AppleCardExpander: the surface, a hairline, Radius.Card) ── */
.story .ldg-xcard { margin-top: 12px; background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-card); min-width: 0; }
/* the header: Padding 16,12, the chevron in a 14 box and 10 after it, the Tag in 13 SemiBold; the summary right */
.story .ldg-xh { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; padding: 12px 16px; min-width: 0; }
.story .ldg-xchev { flex: none; width: 14px; height: 14px; margin-right: 10px; display: flex; align-items: center;
  justify-content: center; }
.story .ldg-xchev svg { width: 11px; height: 11px; fill: none; stroke: var(--w-text-secondary); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; }
.story .ldg-xchev.open svg { transform: rotate(90deg); }
.story .ldg-xt { font-size: 13px; font-weight: var(--w-fw-semibold); color: var(--w-text-primary); white-space: nowrap; }
.story .ldg-xsum { margin-left: auto; padding-left: 16px; display: inline-flex; align-items: center; min-width: 0; }
.story .ldg-xline { margin-left: 10px; font-size: 11.5px; color: var(--w-text-secondary); white-space: pre-wrap; }
/* the body: Padding 16,0,16,16 and the StackPanel's 8 on top */
.story .ldg-xb { padding: 8px 16px 16px; }
.story .ldg-xtools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; }
.story .ldg-xst { margin-left: 6px; font-size: 11.5px; color: var(--w-text-tertiary); }
/* the list: MaxHeight 190, scrolling past it */
.story .ldg-xlist { max-height: 190px; overflow: hidden; }
.story .ldg-xr { display: flex; align-items: center; padding: 3px 2px; min-width: 0; }
.story .ldg-xr > .ck { flex: none; margin-right: 10px; }
.story .ldg-xbd { flex: none; min-width: 84px; display: flex; }
.story .ldg-xk { flex: none; min-width: 90px; margin-left: 10px; font-family: var(--w-font-mono); font-size: 12px;
  color: var(--w-text-secondary); white-space: nowrap; }
.story .ldg-xw { flex: 1 1 auto; min-width: 0; margin: 0 8px 0 12px; font-size: 12.5px; color: var(--w-text-primary);
  white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.story .ldg-xr > .hbtn { flex: none; }
/* the badges of the card (the count, Empty / Not in file): the XAML tints the Background only, and AppleBadge.Text
   keeps the secondary ink */
.story .ldg-xcard .mk-badge.ldg-bt { color: var(--w-text-secondary); }

/* ── a dialog's head: the title 18 Bold, its sentence 12, the summary 13 ── */
.story .ldg-h { font-size: 18px; font-weight: var(--w-fw-bold); line-height: 1.25; color: var(--w-text-primary); }
.story .ldg-sub { margin-top: 6px; font-size: 12px; line-height: 1.4; color: var(--w-text-secondary); white-space: pre-wrap; }
.story .ldg-sum { margin-top: 10px; font-size: 13px; line-height: 1.35; white-space: pre-wrap; }
.story .ldg-s { font-weight: var(--w-fw-semibold); }
.story .ldg-s.rg { font-weight: var(--w-fw-regular); }
.story .ldg-s0 { color: var(--w-text-tertiary); }
/* the tones: the code's own colours (green, blue, orange, red, grey) and, in the master window, the palette's. The
   code's Blue is #007AFF, which no brush carries: the accent is its nearest (Info is a sky blue, far lighter) */
.story .ldg-s.ok { color: var(--w-success); }
.story .ldg-s.blue { color: var(--w-accent-text); }
.story .ldg-s.warn { color: var(--w-warning); }
.story .ldg-s.bad { color: var(--w-danger); }
.story .ldg-s.grey, .story .ldg-s.grey3 { color: var(--w-text-tertiary); }
.story .ldg-s.sec { color: var(--w-text-secondary); }
.story .ldg-s.acc { color: var(--w-accent-text); }

/* ── a review list: an ItemsControl on BgElevated (CornerRadius 8, Padding 4); a row is Padding 10,7 with a hairline ── */
.story .ldg-list { margin-top: 12px; padding: 4px; border-radius: 8px; background: var(--w-bg-elevated); min-width: 0;
  --ldg-c1: 86px; --ldg-c2: 80px; }
.story .ldg-list.ldg-c92 { --ldg-c1: 92px; --ldg-c2: 96px; margin-top: 10px; }
.story .ldg-list.ldg-c118 { --ldg-c1: 118px; --ldg-c2: 96px; margin-top: 10px; }
.story .ldg-list.ldg-c128 { --ldg-c1: 128px; --ldg-c2: 90px; }
.story .ldg-list.ldg-clean { display: flex; align-items: center; justify-content: center; min-height: 120px;
  font-size: 13.5px; color: var(--w-text-secondary); }
.story .ldg-lr { display: flex; align-items: flex-start; padding: 7px 10px; border-bottom: 1px solid var(--w-stroke-subtle);
  min-width: 0; }
.story .ldg-cc { flex: none; width: var(--ldg-c1); display: flex; align-items: flex-start; min-width: 0; }
.story .ldg-chip { display: inline-flex; max-width: 100%; box-sizing: border-box; padding: 2px 7px; border-radius: 4px;
  font-size: 10.5px; font-weight: var(--w-fw-semibold); line-height: 1.3; white-space: nowrap; }
.story .ldg-chip > span { min-width: 0; overflow: hidden; }
.story .ldg-chip.ok { color: var(--w-success); background: color-mix(in srgb, var(--w-success) 13%, transparent); }
.story .ldg-chip.blue { color: var(--w-accent-text); background: color-mix(in srgb, var(--w-accent-text) 13%, transparent); }
.story .ldg-chip.warn { color: var(--w-warning); background: color-mix(in srgb, var(--w-warning) 13%, transparent); }
.story .ldg-chip.bad { color: var(--w-danger); background: color-mix(in srgb, var(--w-danger) 13%, transparent); }
.story .ldg-chip.grey { color: var(--w-text-tertiary); background: color-mix(in srgb, var(--w-text-tertiary) 13%, transparent); }
/* the master window's chips are the palette's subtle brushes, not the code's colours */
.story .ldg-lb .ldg-chip.ok { color: var(--w-success); background: var(--w-success-subtle); }
.story .ldg-lb .ldg-chip.acc { color: var(--w-accent-text); background: var(--w-accent-subtle); }
.story .ldg-lb .ldg-chip.warn { color: var(--w-warning); background: var(--w-warning-subtle); }
.story .ldg-lb .ldg-chip.grey { color: var(--w-text-tertiary); background: var(--w-neutral-subtle); }
.story .ldg-lk { flex: none; min-width: var(--ldg-c2); margin: 1px 0 0 10px; font-family: var(--w-font-mono);
  font-size: 12px; color: var(--w-text-secondary); white-space: nowrap; }
.story .ldg-ld { flex: 1 1 auto; min-width: 0; margin-left: 12px; font-size: 12.5px; line-height: 1.4;
  color: var(--w-text-primary); white-space: pre-wrap; overflow-wrap: anywhere; }
.story .ldg-ls { flex: none; margin: 1px 0 0 12px; font-size: 11px; color: var(--w-text-tertiary); white-space: nowrap; }
.story .ldg-warn2 { display: block; margin-top: 2px; font-size: 11px; color: var(--w-warning); }
/* the master's list is a ListBox: rows are Margin 0,3, no hairline; the tick 4,0,8,0 */
.story .ldg-mr { display: flex; align-items: flex-start; padding: 3px 2px; min-width: 0; }
.story .ldg-mck { flex: none; display: flex; margin: 1px 8px 0 4px; }
.story .ldg-mck.off .ck { opacity: var(--w-opacity-disabled); }

/* ── a dialog's rows and footer ── */
.story .ldg-unch { margin-top: 12px; }
.story .ldg-assure { margin-top: 12px; padding: 9px 12px; border-radius: 8px; background: var(--w-bg-elevated);
  font-size: 12px; line-height: 1.4; color: var(--w-text-secondary); }
.story .ldg-mrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; min-width: 0; }
.story .ldg-mst { flex: 1 1 auto; min-width: 0; font-size: 12px; color: var(--w-text-tertiary); }
.story .ldg-cmp { display: flex; align-items: center; margin-top: 14px; min-width: 0; }
.story .ldg-cmpl { flex: none; margin-right: 8px; font-size: 12px; color: var(--w-text-tertiary); }
.story .ldg-cmpc { flex: 1 1 0; min-width: 0; display: flex; }
.story .ldg-cmpc > .mk-combo { width: 100%; }
.story .ldg-arrow { flex: none; margin: 0 10px; color: var(--w-text-tertiary); }
.story .ldg-confirm { margin-top: 14px; }
.story .ldg-confirm .mk-check { align-items: flex-start; line-height: 1.35; }
.story .ldg-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 14px; }
.story .ldg-foot.ldg-after { margin-top: 10px; }

/* ── New keynote file ── */
.story .ldg-fl { margin: 16px 0 4px; font-size: var(--w-fs-body); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .ldg-fullw { display: flex; }
.story .ldg-fullw > .mk-combo { width: 100%; }
.story .ldg-desc { margin-top: 6px; font-size: 11.5px; line-height: 1.4; color: var(--w-text-tertiary); }
.story .ldg-path { display: flex; align-items: center; gap: 8px; min-width: 0; }
.story .ldg-path > .mk-field { flex: 1 1 auto; overflow: hidden; }
.story .ldg-attach { margin-top: 16px; }
.story .ldg-foot.ldg-foot-nf { margin-top: 22px; }

/* ── tools/web_mockups/lens.css ── */
/* lens.py's kinds — Lens, Synapse, Reset View and Trace (prefix lnx-). Every rule sits under .story; colours and sizes
   are the window's tokens (the WEB-THEME block of site.css, --w-*, and the page tokens): never a raw hex. The shared
   pieces — the title bar, the app header, .hbtn, .mk-*, .ck, the Lens pane's .lxp / .lx-* — are site.css's, used as
   they are; what is here is what those do not draw. */

/* ── composition ─────────────────────────────────────────────────────────────────────────────────────────────── */
.story .lnx-stack { display: grid; gap: 18px; justify-items: center; width: 100%; min-width: 0; }
.story .lnx-stack > .stagecard { width: 100%; display: flex; justify-content: center; min-width: 0; }
.story .lnx-stack.lnx-side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (max-width: 900px) { .story .lnx-stack.lnx-side { grid-template-columns: minmax(0, 1fr); } }
.story .lnx-pair { display: grid; grid-template-columns: minmax(0, 560fr) minmax(0, 640fr); gap: 18px; width: 100%;
  align-items: start; }
.story .lnx-pair > .stagecard { min-width: 0; }
.story .lnx-pair .capwin { width: 100% !important; }
@media (max-width: 900px) { .story .lnx-pair { grid-template-columns: minmax(0, 1fr); } }
.story .lnx-win { max-width: 100%; }
.story .lnx-body { padding: 8px 22px 18px; display: flex; flex-direction: column; gap: 10px;
  font-size: var(--w-fs-callout); color: var(--w-text-primary); }
.story .lnx-sp { flex: 1 1 auto; }

/* ── the Lens pane ───────────────────────────────────────────────────────────────────────────────────────────── */
.story .lnx-pane { background: var(--w-dock-host-bg); }
.story .lnx-pbody { gap: 6px; padding: 8px 10px 10px; font-size: var(--w-fs-subhead); color: var(--w-text-primary); }

/* the two pinned rows: 3* · * columns, 24 high (Size.ButtonHeightSmall) */
.story .lnx-row2 { display: grid; grid-template-columns: 3fr 1fr; gap: 8px; height: 24px; }
.story .lnx-scope { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 2px; gap: 0;
  background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle); border-radius: 8px; min-width: 0; }
.story .lnx-scope .s { display: flex; align-items: center; justify-content: center; border-radius: 6px;
  font-size: var(--w-fs-subhead); font-weight: var(--w-fw-medium); color: var(--w-text-secondary); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.story .lnx-scope .s.on { background: var(--w-bg-selected); color: var(--w-accent-ink); font-weight: var(--w-fw-semibold); }
.story .lnx-soft { display: inline-flex; align-items: center; justify-content: center; gap: 5px; border-radius: 8px;
  background: var(--w-accent-subtle); color: var(--w-accent-text); font-size: var(--w-fs-subhead);
  font-weight: var(--w-fw-semibold); white-space: nowrap; min-width: 0; }
.story .lnx-soft.sq { flex: none; width: 28px; }
.story .lnx-share, .story .lnx-fg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round; flex: none; }
.story .lnx-ms { display: flex; gap: 8px; min-width: 0; }
.story .lnx-search { display: flex; align-items: center; gap: 7px; min-width: 0; height: 24px; box-sizing: border-box;
  padding: 0 9px; border: 1px solid var(--w-stroke-subtle); border-radius: 8px; background: var(--w-bg-surface);
  color: var(--w-text-tertiary); font-size: var(--w-fs-subhead); }
.story .lnx-search.grow { flex: 1 1 auto; }
.story .lnx-search.in { margin: 6px 8px; background: var(--w-dock-host-bg); }
.story .lnx-search.box { height: 30px; padding: 0 11px; font-size: 12px; }
.story .lnx-search span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.story .lnx-mag { width: 13px; height: 13px; flex: none; fill: none; stroke: var(--w-text-tertiary); stroke-width: 1.4;
  stroke-linecap: round; }
.story .lnx-chev { width: 6px; height: 8px; flex: none; fill: none; stroke: var(--w-text-tertiary); stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round; overflow: visible; transition: none; }
.story .lnx-disc.open .lnx-chev { transform: rotate(90deg); }

/* the AI brief (BriefCard2): a surface card, a 3-px teal bar down the left, the ✕ in the bottom-right corner */
.story .lnx-brief { position: relative; padding: 11px 13px; border-radius: var(--w-radius-card);
  background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle); }
.story .lnx-bbar { border-left: 3px solid var(--w-teal); padding: 0 18px 0 11px; min-width: 0; }
.story .lnx-bt { flex: none; width: 20px; height: 20px; border-radius: 6px; background: var(--w-teal);
  color: var(--w-text-on-accent); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.story .lnx-bh { display: flex; align-items: center; margin-bottom: 7px; min-width: 0; }
.story .lnx-bh b { margin-left: 8px; font-size: var(--w-fs-subhead); font-weight: var(--w-fw-semibold); }
.story .lnx-bl { font-size: var(--w-fs-footnote); color: var(--w-info-ink); white-space: nowrap; }
.story .lnx-bbar p { margin: 0; font-size: var(--w-fs-footnote); line-height: 16px; color: var(--w-text-secondary); }
.story .lnx-bx { position: absolute; right: 13px; bottom: 11px; width: 18px; height: 18px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 10px; color: var(--w-text-tertiary); }

/* a card of the pane (AppleCardBorder) */
.story .lnx-card { background: var(--w-bg-surface); border: 1px solid var(--w-stroke-default);
  border-radius: var(--w-radius-card); overflow: hidden; }

/* GENERAL INFO: the header, then ONE grid — label · value · offset · action — that every band shares */
.story .lnx-gih { display: flex; align-items: center; gap: 0; padding: 6px 10px 6px 6px;
  background: var(--w-header-tint-neutral); border-radius: 11px 11px 0 0; }
/* the fold of every card and sub-group: a FILLED triangle in the tertiary ink, turned 90° when open */
.story .lnx-fold { flex: none; width: 7px; height: 11px; margin-right: 9px; fill: var(--w-text-tertiary); }
.story .open > .lnx-fold, .story .open > .lnx-fold-x .lnx-fold { transform: rotate(90deg); }
.story .lnx-fold-x { display: inline-flex; visibility: hidden; }
.story .lnx-fold9 { flex: none; width: 9px; height: 9px; margin-right: 8px; fill: var(--w-text-secondary); }
.story .open > .lnx-fold9 { transform: rotate(90deg); }
.story .lnx-gih .lnx-gi { margin-right: 8px; }
.story .lnx-gi { flex: none; width: 20px; height: 20px; border-radius: 6px; background: var(--w-text-tertiary);
  color: var(--w-text-on-accent); display: inline-flex; align-items: center; justify-content: center;
  font: 700 11px/1 var(--w-font-sans); }
.story .lnx-gik { font-size: 11.5px; font-weight: var(--w-fw-semibold); color: var(--w-text-secondary); }
.story .lnx-gis { font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); }
.story .lnx-gig { display: grid; grid-template-columns: max-content minmax(0, 1fr) auto auto; column-gap: 0;
  row-gap: 2px; align-items: center; padding: 3px 12px 8px 22px; }
.story .lnx-gig .k { font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); margin-right: 14px; max-width: 140px; }
.story .lnx-gig .v { min-width: 0; display: flex; flex-direction: column; }
.story .lnx-gig .vv { font-size: var(--w-fs-subhead); color: var(--w-text-primary); min-width: 0; overflow: hidden;
  white-space: nowrap; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.story .lnx-gig .tx { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.story .lnx-gig .h { font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); }
.story .lnx-gig .o { text-align: right; }
.story .lnx-gig .o:not(:empty) { margin-left: 10px; }
.story .lnx-gig .a { display: inline-flex; justify-content: flex-end; }
.story .lnx-gig .a:not(:empty) { margin-left: 8px; }
.story .lnx-off { display: inline-block; min-width: 46px; padding: 1px 4px; border-radius: 4px; text-align: right;
  font-size: var(--w-fs-subhead); font-variant-numeric: tabular-nums; color: var(--w-text-primary); }
.story .lnx-off.focus { background: var(--w-bg-hover); box-shadow: inset 0 -1px 0 var(--w-accent); }
.story .lnx-udot { flex: none; width: 7px; height: 7px; border-radius: 50%; }
.story .lnx-band { grid-column: 1 / -1; margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--w-separator);
  font-size: var(--w-fs-footnote); font-weight: var(--w-fw-semibold); color: var(--w-text-secondary); }
.story .lnx-bandsub { grid-column: 1 / -1; margin: -1px 0 3px; font-size: var(--w-fs-footnote);
  color: var(--w-text-secondary); line-height: 1.4; }
.story .lnx-lock { display: inline-flex; align-items: center; height: 16px; padding: 0 5px; border-radius: 4px;
  background: var(--w-neutral-subtle); color: var(--w-text-secondary); font-size: 8.5px; font-weight: var(--w-fw-semibold);
  letter-spacing: .04em; }
.story .lnx-act { font-size: var(--w-fs-footnote); font-weight: var(--w-fw-semibold); color: var(--w-accent-text); }
.story .lnx-mini { flex: none; display: inline-flex; align-items: center; height: 20px; box-sizing: border-box;
  padding: 0 10px; margin-left: 6px; border-radius: var(--w-radius-small); border: 1px solid var(--w-stroke-subtle);
  background: var(--w-bg-elevated); color: var(--w-text-secondary); font-size: var(--w-fs-footnote);
  font-weight: var(--w-fw-medium); white-space: nowrap; }
.story .lnx-mini.acc { background: var(--w-accent-subtle); color: var(--w-accent-text); }

/* an app card (SectionTemplate) and the Chronicle card: enclosed in the brand (--lnx-b, set inline from the app's
   constant): the edge at 40 %, the header wash at 9 %; the dark theme lightens the brand 42 % toward white */
.story .lnx-ac { --lnx-bc: var(--lnx-b); border-radius: var(--w-radius-card); background: var(--w-bg-surface);
  border: 1px solid color-mix(in srgb, var(--lnx-bc) 40%, transparent); overflow: hidden; }
:root[data-theme="dark"] .story .lnx-ac { --lnx-bc: color-mix(in srgb, var(--lnx-b) 58%, white); }
.story .lnx-ach { display: flex; align-items: center; min-width: 0; padding: 6px 8px 6px 4px; border-radius: 11px;
  background: color-mix(in srgb, var(--lnx-bc) 9%, transparent); }
.story .lnx-ach.open { border-radius: 11px 11px 0 0; }
.story .lnx-tile { flex: none; width: 20px; height: 20px; margin-right: 8px; border-radius: 6px; background: var(--lnx-bc);
  color: var(--w-text-on-accent); display: inline-flex; align-items: center; justify-content: center; }
.story .lnx-tile svg { width: 14px; height: 14px; }
.story .lnx-acn { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.story .lnx-acn b { font-size: 11.5px; font-weight: var(--w-fw-semibold); color: var(--lnx-bc); }
.story .lnx-acn .s { font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); overflow: hidden; white-space: nowrap;
  text-overflow: ellipsis; }
.story .lnx-acn .s.l { white-space: normal; margin-top: 1px; }
.story .lnx-acb { flex: none; display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; }
.story .lnx-bpill { display: inline-flex; align-items: center; padding: 2px 9px 3px; border: 1px solid var(--lnx-bc);
  border-radius: 9px; color: var(--lnx-bc); font-size: var(--w-fs-footnote); font-weight: var(--w-fw-semibold);
  white-space: nowrap; }
.story .lnx-bpill.sq { border-radius: var(--w-radius-small); }
.story .lnx-gearb { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 26px;
  box-sizing: border-box; border-radius: var(--w-radius-small); background: var(--w-bg-surface);
  border: 1px solid var(--w-stroke-subtle); color: var(--w-text-secondary); font-size: 13px; }
.story .lnx-acbody { padding: 4px 0; }
.story .lnx-ar { display: flex; align-items: center; min-width: 0; padding: 3px 12px 3px 20px; }
.story .lnx-ar .k { flex: none; max-width: 140px; margin-right: 12px; font-size: var(--w-fs-subhead);
  color: var(--w-text-secondary); }
.story .lnx-ar .v { flex: 1 1 auto; min-width: 0; margin-right: 8px; font-size: var(--w-fs-callout);
  color: var(--w-text-primary); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.story .lnx-ar.cn .k { margin-right: 8px; font-size: var(--w-fs-footnote); }
.story .lnx-ar.cn .v { font-size: var(--w-fs-footnote); }
.story .lnx-acts { flex: none; display: inline-flex; gap: 4px; }
.story .lnx-acts .lnx-mini { margin-left: 0; }
.story .lnx-pill { flex: none; display: inline-flex; align-items: center; height: 18px; padding: 0 6px; margin-left: 3px;
  border-radius: var(--w-radius-small); background: var(--w-neutral-subtle); color: var(--w-text-secondary);
  font-size: 9px; font-weight: var(--w-fw-semibold); }
.story .lnx-ae { margin: 2px 12px 8px; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); line-height: 1.4; }
/* FjvActionIcon: a 14-px disc in the kind's colour, its glyph in white */
.story .lnx-ai { flex: none; width: 14px; height: 14px; margin-right: 15px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; font: 700 9px/1 var(--w-font-sans); color: var(--w-text-on-accent); }
.story .lnx-ai.del { background: var(--w-danger); }
.story .lnx-ai.mod { background: var(--w-warning); }
.story .lnx-ai.new { background: var(--w-success); }
.story .lnx-ai.auto { background: var(--w-text-tertiary); }
.story .lnx-ai.info { background: var(--w-info); }

/* the Chronicle card (its whole ground washed in bronze, then the header washed again) and its sub-groups */
.story .lnx-chc { background: color-mix(in srgb, var(--lnx-bc) 9%, transparent); }
.story .lnx-chbody { padding: 4px 8px 8px; }
.story .lnx-sg { background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle); border-radius: 8px;
  overflow: hidden; }
.story .lnx-sg + .lnx-sg { margin-top: 5px; }
.story .lnx-sgh { display: flex; align-items: center; min-width: 0; padding: 5px 8px; }
.story .lnx-sgh b { font-size: var(--w-fs-callout); font-weight: var(--w-fw-semibold); }
.story .lnx-sgb { border-top: 1px solid var(--w-separator); }
.story .lnx-io { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; align-items: center;
  width: 38px; height: 18px; border-radius: 9px; background: var(--w-bg-subtle); border: 1px solid var(--w-stroke-subtle);
  box-sizing: border-box; font-size: 8.5px; font-weight: var(--w-fw-bold); color: var(--w-text-tertiary); text-align: center; }
.story .lnx-io b { position: relative; z-index: 1; font-weight: inherit; }
.story .lnx-io i { position: absolute; top: 0; left: 0; width: 19px; height: 16px; border-radius: 8px;
  background: var(--w-accent); }
.story .lnx-io.on { background: var(--w-accent-subtle); }
.story .lnx-io.on b:first-child { color: var(--w-text-on-accent); }

/* History: the search, the Filters disclosure, the chips and the toggles' line */
.story .lnx-hs { padding: 6px 8px; border-bottom: 1px solid var(--w-separator); }
.story .lnx-hs .lnx-search.in { margin: 0; }
.story .lnx-hf { border-bottom: 1px solid var(--w-separator); }
.story .lnx-disc { display: flex; align-items: center; gap: 8px; padding: 4px 12px;
  font-size: var(--w-fs-subhead); font-weight: var(--w-fw-semibold); color: var(--w-text-secondary); }
.story .lnx-filt { padding: 2px 8px 8px; border-bottom: 0; }
.story .lnx-chips { display: flex; flex-wrap: wrap; gap: 3px; }
.story .lnx-dd { display: inline-flex; align-items: center; gap: 5px; padding: 3px 5px; border-radius: 6px;
  border: 1px solid var(--w-stroke-subtle); background: var(--w-bg-surface); font-size: var(--w-fs-footnote);
  color: var(--w-text-primary); }
.story .lnx-dd i { width: 7px; height: 7px; background: var(--mk-ico-chev) center / contain no-repeat; opacity: .6; }
.story .lnx-checks { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 4px; }
.story .lnx-checks .mk-check { font-size: var(--w-fs-footnote); }
.story .lnx-ghost { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 6px;
  color: var(--w-accent-text); font-size: var(--w-fs-footnote); font-weight: var(--w-fw-semibold); white-space: nowrap;
  flex: none; }
.story .lnx-gh { display: flex; align-items: center; min-width: 0; padding: 4px 12px; white-space: nowrap;
  background: var(--w-bg-surface); border-top: 1px solid var(--w-separator); }
.story .lnx-hf + .lnx-gh { border-top: 0; }
.story .lnx-gh b { font-size: var(--w-fs-subhead); font-weight: var(--w-fw-semibold); }
.story .lnx-gh span { margin-left: 6px; font-size: var(--w-fs-footnote); color: var(--w-text-secondary); overflow: hidden;
  text-overflow: ellipsis; }
.story .lnx-hr { display: flex; align-items: center; min-width: 0; padding: 3px 12px 3px 20px; }
.story .lnx-hr .tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.story .lnx-hr .l1 { font-size: var(--w-fs-subhead); color: var(--w-text-primary); overflow: hidden; white-space: nowrap;
  text-overflow: ellipsis; }
.story .lnx-hr .h { margin-top: 1px; font-size: var(--w-fs-footnote); color: var(--w-text-secondary); overflow: hidden;
  white-space: nowrap; text-overflow: ellipsis; }
.story .lnx-rowbtn { flex: none; margin-left: 8px; padding: 3px 8px; font-size: var(--w-fs-footnote);
  font-weight: var(--w-fw-medium); color: var(--w-accent-text); white-space: nowrap; }

/* Journals */
.story .lnx-jc { padding: 4px 8px 6px; }
.story .lnx-jchips { display: flex; flex-wrap: wrap; gap: 6px; padding: 3px 0 6px; }
.story .lnx-fwd { padding: 2px 4px 4px; font-size: var(--w-fs-footnote); font-weight: var(--w-fw-semibold);
  color: var(--w-accent-text); }
.story .lnx-jrow { display: grid; grid-template-columns: 32px 14px 44px minmax(0, 1fr) auto; align-items: center;
  gap: 6px; padding: 4px 4px; border-radius: 6px; font-size: var(--w-fs-footnote); }
.story .lnx-jrow.undone { opacity: var(--w-opacity-muted); }
.story .lnx-jrow .t { color: var(--w-text-tertiary); font-variant-numeric: tabular-nums; }
.story .lnx-jrow .g { text-align: center; font-size: 11px; }
.story .lnx-jrow .cmd { color: var(--w-text-primary); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.story .lnx-jrow .c { max-width: 36px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: var(--w-fs-micro); color: var(--w-text-tertiary); }
.story .lnx-now { display: flex; align-items: center; gap: 6px; margin: 1px 4px; font-size: var(--w-fs-micro);
  font-weight: var(--w-fw-semibold); color: var(--w-accent-text); }
.story .lnx-now i { flex: 1; height: 1px; background: var(--w-accent); }

/* How it was built */
.story .lnx-sc { padding: 0 0 8px; }
.story .lnx-sseg { padding: 8px; border-bottom: 1px solid var(--w-separator); }
.story .lnx-scope.five { height: 24px; box-sizing: border-box; background: var(--w-dock-host-bg); }
.story .lnx-sl { padding: 6px 10px; border-bottom: 1px solid var(--w-separator); display: flex; flex-direction: column;
  gap: 6px; }
.story .lnx-sl .mk-check { font-size: var(--w-fs-footnote); }
.story .lnx-hot { display: flex; align-items: center; gap: 6px; font-size: var(--w-fs-footnote); color: var(--w-text-secondary); }
.story .lnx-step { display: inline-flex; align-items: center; height: 18px; border: 1px solid var(--w-stroke-subtle);
  border-radius: 5px; overflow: hidden; color: var(--w-text-primary); }
.story .lnx-step i { font-style: normal; width: 16px; text-align: center; }
.story .lnx-step b { min-width: 18px; padding: 0 3px; text-align: center; font-weight: var(--w-fw-regular);
  border-left: 1px solid var(--w-stroke-subtle); border-right: 1px solid var(--w-stroke-subtle); }
.story .lnx-legend { padding: 6px 10px 2px; display: grid; gap: 2px; }
.story .lnx-lg { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto auto; align-items: center; gap: 8px;
  font-size: var(--w-fs-footnote); }
.story .lnx-lg .sw { width: 12px; height: 12px; border-radius: 3px; }
.story .lnx-lg .n { color: var(--w-text-secondary); font-variant-numeric: tabular-nums; }
.story .lnx-note { padding: 4px 10px 0; font-size: var(--w-fs-footnote); color: var(--w-text-secondary); line-height: 1.45; }
.story .lnx-clear { padding: 6px 4px 0; }

/* Deleted elements */
.story .lnx-dc { padding-bottom: 4px; }
.story .lnx-dc .lnx-hs + .lnx-gh { border-top: 0; }
.story .lnx-drow { display: flex; align-items: center; gap: 8px; padding: 5px 8px 5px 10px;
  border-top: 1px solid var(--w-separator); }
.story .lnx-drow .dl { min-width: 0; flex: 1; }
.story .lnx-drow .dh { font-size: var(--w-fs-subhead); color: var(--w-text-primary); overflow: hidden; white-space: nowrap;
  text-overflow: ellipsis; }
.story .lnx-drow .dh .u { color: var(--w-text-secondary); }
.story .lnx-drow .dm { margin-top: 1px; font-size: var(--w-fs-footnote); color: var(--w-text-secondary); }

/* the windows Lens opens: the finder, the brief, user names, the team folder */
.story .lnx-fh { font-size: 20px; font-weight: var(--w-fw-semibold); }
.story .lnx-fs { font-size: 12px; color: var(--w-text-tertiary); line-height: 1.5; margin-top: -7px; }
.story .lnx-ds { font-size: var(--w-fs-subhead); color: var(--w-text-secondary); line-height: 1.5; }
.story .lnx-fcols { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 14px; }
.story .lnx-fcol { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.story .lnx-flist { border: 1px solid var(--w-stroke-subtle); border-radius: 10px; background: var(--w-bg-surface);
  padding: 4px; min-height: 180px; }
.story .lnx-fi { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 6px; font-size: 12.5px; }
.story .lnx-fi span { min-width: 0; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.story .lnx-fi em { font-style: normal; font-size: 11px; color: var(--w-text-secondary); background: var(--w-bg-subtle);
  border-radius: 8px; padding: 0 6px 1px; }
.story .lnx-fi em.id { background: none; color: var(--w-text-tertiary); font-variant-numeric: tabular-nums; }
.story .lnx-fi.on { background: var(--w-bg-selected); color: var(--w-accent-ink); }
.story .lnx-ffoot { display: flex; align-items: center; gap: 12px; }
.story .lnx-ffoot .st { flex: 1; min-width: 0; font-size: 11.5px; color: var(--w-text-tertiary); overflow: hidden;
  white-space: nowrap; text-overflow: ellipsis; }
.story .lnx-brh { display: flex; align-items: flex-start; gap: 10px; }
.story .lnx-brt { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--w-teal);
  color: var(--w-text-on-accent); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.story .lnx-bri { font-size: var(--w-fs-title2); font-weight: var(--w-fw-semibold); line-height: 1.3; }
.story .lnx-bra { font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); margin: -3px 0 2px; white-space: pre; }
.story .lnx-brs { margin-top: 6px; font-size: var(--w-fs-footnote); font-weight: var(--w-fw-semibold);
  color: var(--w-text-tertiary); }
.story .lnx-brp { font-size: var(--w-fs-body); line-height: 1.5; }
.story .lnx-lc { display: grid; grid-template-columns: 9px minmax(0, 1fr); gap: 9px; align-items: start; }
.story .lnx-lc .d { width: 9px; height: 9px; border-radius: 50%; background: var(--w-teal); margin-top: 3px; }
.story .lnx-lc .w { font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); white-space: pre; }
.story .lnx-lc .x { font-size: var(--w-fs-subhead); margin-top: 1px; }
.story .lnx-rk { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: start;
  font-size: var(--w-fs-subhead); }
.story .lnx-rk .b { font-size: 9.5px; font-weight: var(--w-fw-bold); border-radius: 5px; padding: 1px 6px; }
.story .lnx-rk .b.warn { background: var(--w-warning-subtle); color: var(--w-warning-ink); }
.story .lnx-rk .b.acc { background: var(--w-accent-subtle); color: var(--w-accent-text); }
.story .lnx-brf { display: flex; align-items: center; gap: 14px; margin-top: 8px; padding-top: 10px;
  border-top: 1px solid var(--w-separator); font-size: var(--w-fs-footnote); color: var(--w-text-secondary); }
.story .lnx-brf span:first-child { flex: 1; }
.story .lnx-dh { font-size: var(--w-fs-title2); font-weight: var(--w-fw-semibold); }
.story .lnx-al { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center;
  font-size: var(--w-fs-subhead); }
.story .lnx-al.hd { font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); margin-top: 4px; }
.story .lnx-al .r { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .lnx-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 4px; }
.story .lnx-hint { font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); }
.story .lnx-dlg .lnx-body { gap: 9px; }

/* AppleErrorDialog: the disc, the heading, ONE block of body text under it (56 px in: the disc and its gap) */
.story .lnx-ed-head { display: flex; align-items: flex-start; gap: 16px; margin-top: 8px; }
.story .lnx-ed-disc { flex: none; width: 40px; height: 40px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; font: 700 22px/1 var(--w-font-sans); color: var(--w-text-on-accent);
  margin-top: 2px; }
.story .lnx-ed-disc.warning { background: var(--w-warning); }
.story .lnx-ed-disc.info { background: var(--w-accent); }  /* ApplySeverity: Info is the BIMIO blue */
.story .lnx-ed-disc.error { background: var(--w-danger); }
.story .lnx-ed-h { font-size: var(--w-fs-title3); font-weight: var(--w-fw-semibold); line-height: 1.3; padding-top: 9px; }
.story .lnx-ed-body { margin: 2px 0 12px 56px; font-size: var(--w-fs-body); line-height: 1.45; color: var(--w-text-secondary);
  white-space: pre-wrap; }
.story .lnx-ed-foot { display: flex; justify-content: flex-end; gap: 10px; }
.story .lnx-ed .lnx-body { padding: 4px 28px 20px; gap: 0; }

/* the project report's health ring: the track, and the arc in the tone of the score */
.story .lnx-ring .tr { stroke: var(--w-bg-subtle); }
.story .lnx-ring.ok .fg { stroke: var(--w-success); }
.story .lnx-ring.warn .fg { stroke: var(--w-warning); }
.story .lnx-ring.bad .fg { stroke: var(--w-danger); }

/* ── Synapse ─────────────────────────────────────────────────────────────────────────────────────────────────── */
.story .lnx-syn .lnx-body { padding: 10px 32px 24px; gap: 0; }
.story .lnx-intro { margin-top: 4px; font-size: 12.5px; line-height: 1.5; color: var(--w-text-secondary); }
.story .lnx-lockband { margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: var(--w-bg-subtle);
  border: 1px solid var(--w-stroke-subtle); font-size: 12.5px; color: var(--w-text-secondary); line-height: 1.45; }
.story .lnx-g { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.story .lnx-g:first-of-type { margin-top: 18px; }
.story .lnx-g .mk-combo, .story .lnx-g .mk-field, .story .lnx-pw { width: 100%; box-sizing: border-box; }
.story .lnx-g.lnx-dis:not(.lnx-cols) > :not(.lnx-fl),
.story .lnx-g.lnx-dis.lnx-cols > div > :not(.lnx-fl) { opacity: var(--w-opacity-disabled); }
.story .lnx-fl { font-size: var(--w-fs-footnote); font-weight: var(--w-fw-semibold); color: var(--w-text-secondary);
  letter-spacing: .02em; }
.story .lnx-cols { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 16px; flex-direction: row; }
.story .lnx-cols.az { grid-template-columns: minmax(0, 1fr) 200px; }
.story .lnx-cols > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.story .lnx-rel { position: relative; }
.story .mk-field.mono, .story .lnx-pw { font-family: var(--w-font-mono); }
.story .lnx-pw { display: flex; align-items: center; gap: 8px; height: var(--w-size-input-height, 32px); padding: 0 10px;
  border: 1px solid var(--w-stroke-default); border-radius: 8px; background: var(--w-bg-surface); letter-spacing: .1em;
  color: var(--w-text-primary); font-size: 11px; }
.story .lnx-pw span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.story .lnx-eye { flex: none; width: 15px; height: 15px; fill: none; stroke: var(--w-text-tertiary); stroke-width: 1.3; }
.story .lnx-pop { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; z-index: 3; padding: 4px;
  border-radius: 10px; background: var(--w-bg-elevated); border: 1px solid var(--w-stroke-subtle);
  box-shadow: var(--w-shadow-popover, var(--shadow)); font-size: var(--w-fs-callout); }
.story .lnx-pop div { padding: 6px 9px; border-radius: 6px; }
.story .lnx-pop div.on { background: var(--w-bg-selected); color: var(--w-accent-ink); }
.story .lnx-msg { margin-top: 14px; font-size: 12.5px; line-height: 1.45; }
.story .lnx-msg.ok { color: var(--w-success-ink); }
.story .lnx-msg.bad { color: var(--w-danger-ink); }
.story .lnx-syn .rl-foot { margin-top: 22px; }
.story .lnx-logo { flex: none; width: 32px; height: 32px; display: inline-flex; }

/* ── Reset View ──────────────────────────────────────────────────────────────────────────────────────────────── */
.story .lnx-rv .lnx-body { gap: 0; padding: 10px 22px 16px; }
.story .lnx-rvv { margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: var(--w-bg-elevated);
  border: 1px solid var(--w-stroke-subtle); display: flex; flex-direction: column; gap: 3px; }
.story .lnx-rvv b { font-size: 15px; font-weight: var(--w-fw-semibold); }
.story .lnx-rvv span { font-size: 12px; color: var(--w-text-secondary); }
.story .lnx-rvv i { font-style: normal; color: var(--w-text-tertiary); white-space: pre; }
.story .lnx-rvs { margin-top: 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.story .lnx-rvs > div { padding: 9px 12px; border-radius: 10px; background: var(--w-bg-elevated);
  border: 1px solid var(--w-stroke-subtle); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.story .lnx-rvs b { font-size: 22px; font-weight: var(--w-fw-semibold); line-height: 1.15; }
.story .lnx-rvs span { font-size: 11px; color: var(--w-text-secondary); }
.story .lnx-rvw { margin: 14px 0 6px; font-size: 12px; font-weight: var(--w-fw-semibold); color: var(--w-text-tertiary); }
.story .lnx-rvc { margin: 3px 0; font-size: var(--w-fs-body); }
.story .lnx-rvc.dep { margin-top: 9px; }
.story .lnx-rvc.off { opacity: var(--w-opacity-disabled); }
.story .lnx-band2 { margin-top: 12px; padding: 9px 12px; border-radius: 10px; background: var(--w-bg-subtle);
  display: flex; gap: 8px; font-size: 11.5px; line-height: 1.45; color: var(--w-text-secondary); }
.story .lnx-band2 .g { flex: none; font-size: 13px; line-height: 1.2; }
.story .lnx-band2.warn { background: var(--w-warning-subtle); color: var(--w-warning-ink); }
.story .lnx-rvr { margin-top: 12px; font-size: 12.5px; font-weight: var(--w-fw-semibold); color: var(--w-accent-text);
  line-height: 1.45; }
.story .lnx-rv .rl-foot { margin-top: 16px; }

/* the probe: the tick box, its count, the channels in their groups */
.story .lnx-probe .lnx-body { gap: 12px; }
.story .lnx-probe .rp-head { display: flex; align-items: flex-start; gap: 16px; }
.story .lnx-probe .rp-head .mk-check { flex: 1; font-size: var(--w-fs-body); }
.story .lnx-probe .rp-stat { text-transform: none; letter-spacing: 0; font-size: 11px; color: var(--w-text-secondary); }

/* ── Trace ───────────────────────────────────────────────────────────────────────────────────────────────────── */
.story .lnx-tr .lnx-body { gap: 0; padding: 10px 27px 18px; }
.story .lnx-trq { display: flex; justify-content: flex-end; margin: 10px 0 14px; }
.story .lnx-icobtn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border-radius: 8px; color: var(--w-text-secondary); }
.story .lnx-help { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.story .lnx-tri { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 8px; }
.story .lnx-tri > div { display: flex; flex-direction: column; align-items: flex-start; gap: 0; min-width: 0; }
.story .lnx-tri .mk-seg { align-self: stretch; }
.story .lnx-tri .mk-seg .s { flex: 1; justify-content: center; }
.story .lnx-tri > div > .mk-field { margin-top: 8px; align-self: stretch; }
.story .lnx-trl { margin-bottom: 6px; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); }
.story .lnx-trp { display: flex; align-items: center; gap: 6px; margin-top: 8px; min-width: 0; max-width: 100%; }
.story .lnx-trpk { margin-left: 4px; font-size: 12px; color: var(--w-text-secondary); overflow: hidden; white-space: nowrap;
  text-overflow: ellipsis; min-width: 0; }
.story .lnx-trsum { margin: 6px 0 0 2px; font-size: 11px; color: var(--w-text-secondary); }
.story .lnx-trshow { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 11px; color: var(--w-text-tertiary); }
.story .lnx-trch { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.story .lnx-trsec { margin-top: 6px; padding: 4px; border-radius: 12px; background: var(--w-bg-subtle); }
.story .lnx-trsecs { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.story .lnx-trsecs .lnx-trsec { margin-top: 0; }
.story .lnx-trvh { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.story .lnx-trvh .ch { font-size: 11px; color: var(--w-text-tertiary); }
.story .lnx-trvh b { font-size: 14px; font-weight: var(--w-fw-semibold); min-width: 0; overflow: hidden; white-space: nowrap;
  text-overflow: ellipsis; }
.story .lnx-trvh .s { margin: 0 4px 0 8px; font-size: 11px; color: var(--w-text-secondary); white-space: nowrap; }
.story .lnx-trvc { padding: 2px 0 6px 12px; }
.story .lnx-trg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .story .lnx-trg, .story .lnx-tri { grid-template-columns: minmax(0, 1fr); } }
.story .lnx-trc { margin: 7px; padding: 12px 14px; border-radius: 12px; background: var(--w-bg-surface);
  border: 1px solid var(--w-stroke-subtle); min-width: 0; }
.story .lnx-trch2 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.story .lnx-trch2 b { flex: 1; font-size: 13px; font-weight: var(--w-fw-semibold); }
.story .lnx-trb { flex: none; padding: 2px 8px; border-radius: 6px; font-size: 9px; font-weight: var(--w-fw-semibold); }
/* TraceComplexityToBrushConverter: the text in Success / Warning / Danger, the fill the same brush at 16 % */
.story .lnx-trb { background: color-mix(in srgb, currentColor 16%, transparent); }
.story .lnx-trb.ok { color: var(--w-success); }
.story .lnx-trb.warn { color: var(--w-warning); }
.story .lnx-trb.bad { color: var(--w-danger); }
.story .lnx-trr { display: grid; grid-template-columns: 22px minmax(0, 1fr); padding: 6px 0; }
.story .lnx-trr .dot { position: relative; width: 17px; height: 17px; margin-top: 1px; display: inline-flex;
  align-items: center; justify-content: center; }
.story .lnx-trr .dot i { position: absolute; inset: 0; border-radius: 50%; background: currentColor; opacity: .16; }
.story .lnx-trr .dot b { position: relative; font-size: 10.5px; font-weight: var(--w-fw-semibold); line-height: 1; }
.story .lnx-trr.ok .dot { color: var(--w-success); }
.story .lnx-trr.warn .dot { color: var(--w-warning); }
.story .lnx-trr.bad .dot { color: var(--w-danger); }
.story .lnx-trr.acc .dot { color: var(--w-accent); }
.story .lnx-trr.na .dot { color: var(--w-text-tertiary); }
.story .lnx-trr.pend .dot { color: var(--w-text-disabled); }
.story .lnx-trr > div:last-child { padding-left: 9px; min-width: 0; }
.story .lnx-trr .t { font-size: 12.5px; color: var(--w-text-primary); }
.story .lnx-trr .d { margin-top: 2px; font-size: 11px; color: var(--w-text-secondary); line-height: 1.45; }
.story .lnx-trr .a { display: flex; gap: 12px; margin-top: 4px; }
.story .lnx-lk { font-size: var(--w-fs-subhead); font-weight: var(--w-fw-semibold); color: var(--w-accent-text); }
.story .lnx-fast { display: inline-flex; align-items: center; gap: 8px; font-size: var(--w-fs-subhead);
  color: var(--w-text-secondary); }
.story .lnx-tr .rl-foot { margin-top: 16px; }

/* ── tools/web_mockups/loop.css ── */
/* loop.py's kinds (prefix lpx-). Every rule sits under .story; colours and sizes are the window's tokens (the
   WEB-THEME block of site.css, --w-*): never a raw hex. The shared pieces — the title bar, the app header, the controls
   kit (.hbtn, .mk-bar, .seg, .dg, .ck, .mk-badge, .mk-status, .mk-spill, .mk-combo, .mk-search, .mk-split, .rl-foot) —
   are site.css's, used as they are. */

/* ── the stage: the window as wide as the stage lets it; a dialog never wider than its XAML Width (--lpx-width) ── */
.story .lpx-stage { width: 100%; display: flex; justify-content: center; min-width: 0; }
.story .lpx-stage > .capwin.lpx-main, .story .lpx-stage > .capwin.lpx-review { width: 100%; }
.story .capwin.lpx-dlg { width: 100%; max-width: var(--lpx-width); }
.story .lpx-dstage { display: block; }
.story .capwin.lpx-crop { -webkit-mask-image: linear-gradient(to bottom, currentColor 74%, transparent);
  mask-image: linear-gradient(to bottom, currentColor 74%, transparent); }

/* ── the Loop shell (LoopPanelView.xaml: Margin 28,20; the selector on its own row, right; the card, Padding 10) ── */
.story .lpx-shell { padding: 20px 28px; display: flex; flex-direction: column; min-width: 0; color: var(--w-text-primary); }
.story .lpx-srow { display: flex; justify-content: flex-end; margin: 10px 0 14px; }
.story .lpx-src { position: relative; }
.story .lpx-src > .seg { height: 36px; padding: 3px; border-radius: var(--w-radius-group); }
.story .lpx-src > .seg > .s { gap: 7px; }
.story .lpx-sbadge { height: 18px; }
.story .lpx-src:has(.lpx-tip-families) > .seg > .s:nth-child(1):not(.on),
.story .lpx-src:has(.lpx-tip-schedules) > .seg > .s:nth-child(2):not(.on) { background: var(--w-bg-hover); }
/* AppleToolTip: BgElevated, Subhead, the popover shadow — where the pointer rests */
.story .lpx-tip { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; width: max-content; max-width: 380px;
  box-sizing: border-box; padding: 7px 10px; background: var(--w-bg-elevated); border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-medium); box-shadow: var(--w-shadow-popover); font-size: var(--w-fs-subhead);
  line-height: 1.5; color: var(--w-text-primary); white-space: normal; }
.story .lpx-card { min-width: 0; padding: 10px; background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-card); box-shadow: var(--w-shadow-card); }

/* ── a hosted panel's own header (the source's name in Title2, the project in Subhead) and its toolbar ── */
.story .lpx-ph { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; min-width: 0; }
.story .lpx-pht { flex: 1 1 auto; min-width: 0; }
.story .lpx-pt { font-size: var(--w-fs-title2); font-weight: var(--w-fw-semibold); line-height: 1.25; color: var(--w-text-primary); }
.story .lpx-psl { display: flex; align-items: baseline; gap: 10px; margin-top: 2px; min-width: 0; }
.story .lpx-ps { font-size: var(--w-fs-subhead); color: var(--w-text-secondary); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; min-width: 0; }
.story .lpx-prov { font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; min-width: 0; }
.story .lpx-ph > .mk-bar, .story .lpx-ph > .hbtn, .story .lpx-ph > .lpx-dd { flex: none; }
.story .lpx-tb { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; min-width: 0; }
.story .lpx-tb.lpx-scope { margin: 14px 0 10px; }
.story .lpx-tb > .mk-search { flex: 0 1 auto; min-width: 120px; }
.story .lpx-sp { flex: 1 1 0; }
.story .lpx-dim { display: inline-flex; opacity: var(--w-opacity-disabled); }
.story div.lpx-dim { display: flex; }

/* ── Schedules: the list and its footer ── */
.story .lpx-st table.dg, .story .lpx-ft table.dg, .story .lpx-rv table.dg { table-layout: fixed; }
/* a tick column with a funnel is 80 wide in the app (GridFilters.MakeRoomForATickFilter): the box stays centred and
   the funnel sits beside it, never on it */
.story .lpx-st .dg thead th.tick, .story .lpx-ft .dg thead th.tick { width: 80px; }
/* a column drawn narrower than its MinWidth trims its caption before the funnel instead of running under it */
.story :is(.lpx-st, .lpx-ft) .dg thead th.fl:not(.tick) { overflow: hidden; text-overflow: ellipsis; }
.story .lpx-st .tscroll, .story .lpx-ft .tscroll, .story .lpx-rv .tscroll { overflow-x: auto; overflow-y: hidden; }
.story .lpx-nm { font-weight: var(--w-fw-medium); overflow: hidden; text-overflow: ellipsis; }
.story .lpx-why { font-size: var(--w-fs-subhead); color: var(--w-text-tertiary); white-space: normal; line-height: 1.35;
  margin-top: 1px; }
.story .lpx-st tr.lpx-unsup td { height: var(--w-size-grid-row-two-line); padding-top: 5px; padding-bottom: 5px; }
.story .lpx-st .dg tbody td.lpx-c2 { color: var(--w-text-secondary); }   /* Category: TextSecondaryBrush */
.story .lpx-st td .hbtn.link { font-size: var(--w-fs-body); font-weight: var(--w-fw-medium); }
/* the row's status pill takes its tone's tint too (MainPanelView.xaml:470-500, the pill's DataTriggers) */
.story .lpx-st .mk-spill.ok { background: var(--w-success-subtle); }
.story .lpx-st .mk-spill.warn { background: var(--w-warning-subtle); }
.story .lpx-st .mk-spill.info { background: var(--w-info-subtle); }
.story .lpx-st .mk-spill.bad { background: var(--w-danger-subtle); }
.story .lpx-sfoot { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px 8px; margin-top: 16px; }
.story .lpx-sfl { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.story .lpx-fold { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; max-width: 100%; }
.story .lpx-sfr { display: flex; gap: 8px; margin-left: auto; }
.story .lpx-spill { max-width: 100%; }
.story .lpx-vsep { flex: none; align-self: stretch; width: 1px; margin: 5px 4px; background: var(--w-stroke-subtle); }
.story .lpx-spill .lpx-selb { background: var(--w-bg-hover); color: var(--w-text-secondary); }
.story .hbtn.lpx-chip { gap: 6px; font-weight: var(--w-fw-regular); max-width: 100%; justify-content: flex-start; }
.story .hbtn.lpx-chip > svg { width: var(--w-size-icon-in-button-compact); height: var(--w-size-icon-in-button-compact); flex: none; }
.story .lpx-chipk { color: var(--w-text-secondary); flex: none; }
.story .lpx-chipv { color: var(--w-text-primary); overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ── Families: the scope row, the rail, the table, the footer ── */
.story .hbtn.lpx-tog { font-weight: var(--w-fw-medium); flex: none; }
.story .hbtn.lpx-tog.on { background: var(--w-accent-subtle); border-color: var(--w-accent); color: var(--w-accent-text); }
.story .lpx-typed { color: var(--w-text-primary); }
/* FjvDropdownButton's face: Label · Value ▾, on the surface, the small corner */
.story .lpx-dd { display: flex; align-items: center; box-sizing: border-box; height: var(--w-size-control); min-width: 0;
  padding: 0 10px; border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-small);
  background: var(--w-bg-surface); font-size: var(--w-fs-body); white-space: nowrap; }
.story .lpx-ddl { font-weight: var(--w-fw-medium); color: var(--w-text-primary); }
.story .lpx-dot { margin: 0 6px; color: var(--w-text-tertiary); }
.story .lpx-ddv { color: var(--w-text-secondary); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.story .lpx-ddc { flex: none; width: 9px; height: 6px; margin-left: auto; background: var(--w-text-secondary);
  -webkit-mask: var(--mk-ico-chev) center / contain no-repeat; mask: var(--mk-ico-chev) center / contain no-repeat; }
.story .lpx-dd > :nth-last-child(2) { margin-right: 8px; }
.story .lpx-split { display: flex; align-items: stretch; min-width: 0; }
.story .lpx-rail { flex: 0 0 clamp(230px, 28%, 340px); box-sizing: border-box; min-width: 0; padding: 12px 14px 14px;
  background: var(--w-bg-subtle); border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-card);
  display: flex; flex-direction: column; gap: 2px; }
.story .lpx-exph { display: flex; align-items: center; gap: 6px; min-height: 28px; font-size: var(--w-fs-body);
  font-weight: var(--w-fw-semibold); color: var(--w-text-primary); white-space: nowrap; }
.story .lpx-exph > span { overflow: hidden; text-overflow: ellipsis; }
.story .lpx-chev { width: 6px; height: 8px; flex: none; margin: 0 4px 0 2px; overflow: visible; fill: none;
  stroke: var(--w-text-tertiary); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.story .lpx-exp.open .lpx-chev { transform: rotate(90deg); }
.story .lpx-expb { display: flex; flex-direction: column; gap: 6px; padding: 4px 0 10px; min-width: 0; }
.story .lpx-expb > :is(.mk-combo, .lpx-dd, .mk-search, .mk-field), .story .lpx-sub > :is(.mk-search, .lpx-dd) { width: 100%; }
.story .lpx-sub { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.story .lpx-note { font-size: var(--w-fs-footnote); line-height: 1.4; color: var(--w-text-tertiary); white-space: normal; }
.story .lpx-note.lpx-live { color: var(--w-text-secondary); }
.story .lpx-lab { font-size: var(--w-fs-footnote); color: var(--w-text-secondary); margin-top: 4px; }
.story .lpx-checks { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.story .lpx-uni > .mk-bar { display: flex; width: 100%; }
/* UniformGrid halves; when a language's words outgrow a half (the rail is drawn narrower than the app's), the longer
   word takes the room it needs rather than being cut */
.story .lpx-uni > .mk-bar > .hbtn { flex: 1 1 auto; padding: 0 4px; min-width: 0; font-size: var(--w-fs-control-compact); }
.story .lpx-right { display: flex; justify-content: flex-end; }
.story .lpx-wide > .hbtn, .story .lpx-stack > .hbtn { width: 100%; }
.story .lpx-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.story .lpx-stack { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.story .mk-badge.lpx-warnink { color: var(--w-warning-ink); }
.story .lpx-split > .mk-split.col { flex: none; }
.story .lpx-tcol { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.story .lpx-tcol > .tablewrap { flex: 1 1 auto; }
.story .lpx-ft .dg tbody td.lpx-ed { padding: 0 2px; }
.story .lpx-c { display: flex; align-items: center; box-sizing: border-box; height: 30px; padding: 0 6px 0 10px;
  border-radius: var(--w-radius-small); min-width: 0; }
.story .lpx-c.yel { background: var(--w-warning-subtle); }
.story .lpx-c.red { background: var(--w-danger-subtle); color: var(--w-danger-ink); }
.story .lpx-c.lock { color: var(--w-text-tertiary); }
.story .lpx-cv { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .lpx-wait { flex: none; margin-left: 6px; font-size: var(--w-fs-subhead); color: var(--w-warning-ink); }
/* Placed: AppleText.CellNumber (TextSecondary), WarningInk when nothing is placed */
.story .lpx-ft .dg tbody td.num { color: var(--w-text-secondary); }
.story .lpx-ft .dg tbody td.num.lpx-unpl { color: var(--w-warning-ink); }
.story .lpx-sec > .mk-status { color: var(--w-text-secondary); }
/* a status that does not fit its column ends in «…», as a trimmed TextBlock does */
.story .lpx-ft td .mk-status { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .lpx-ft td .mk-status::before { display: inline-block; margin-right: 8px; vertical-align: 1px; }
.story .lpx-ft td > .lpx-sec { display: block; min-width: 0; }
/* a tooltip the figure keeps open (the WHY of a red cell, of a locked one): BgElevated, the popover shadow */
.story .dg tbody td.lpx-tipcell { position: relative; overflow: visible; z-index: 2; }
.story .lpx-ctip { position: absolute; left: 10px; top: calc(100% - 3px); z-index: 4; width: max-content; max-width: 280px;
  box-sizing: border-box; padding: 6px 9px; background: var(--w-bg-elevated); border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-medium); box-shadow: var(--w-shadow-popover); font-size: var(--w-fs-subhead);
  font-weight: var(--w-fw-regular); line-height: 1.4; color: var(--w-text-primary); white-space: normal; text-align: left; }
.story .lpx-ft .lpx-ctip { left: auto; right: 6px; }
.story .lpx-ffoot { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px 12px; margin-top: 12px; }
.story .lpx-ffl { flex: 1 1 260px; min-width: 0; }
.story .lpx-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.story .lpx-selsum { font-size: var(--w-fs-callout); color: var(--w-text-secondary); }
.story .mk-badge.lpx-b2 { color: var(--w-text-secondary); }
.story .mk-badge.lpx-b3 { color: var(--w-text-tertiary); }
.story .lpx-pend { margin-top: 4px; font-size: var(--w-fs-footnote); color: var(--w-warning-ink); }
.story .lpx-ffr { display: flex; gap: 8px; margin-left: auto; }

/* ── the dialogs (Margin 28,8,28,24; Title2 over a Subhead; the card of a list; the footer) ── */
.story .lpx-drow { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; align-items: flex-start; width: 100%; }
/* two dialogs share a row only when each keeps room for its footer on one line (a guide's 838-px stage holds one) */
.story .lpx-dcell { flex: 1 1 430px; max-width: var(--lpx-dw); min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.story .lpx-dcell > .capwin { width: 100%; }
.story .lpx-dbody { padding: 8px 28px 24px; color: var(--w-text-primary); min-width: 0; }
.story .lpx-dh { margin: 8px 0 4px; }
.story .lpx-t2 { font-size: var(--w-fs-title2); font-weight: var(--w-fw-semibold); line-height: 1.25; color: var(--w-text-primary); }
.story .lpx-sub2 { margin-top: 8px; font-size: var(--w-fs-subhead); line-height: 1.5; color: var(--w-text-secondary); }
.story .lpx-sub2.lpx-more { margin-top: 10px; }
.story .lpx-intro { margin: 16px 0 8px; font-size: var(--w-fs-subhead); font-weight: var(--w-fw-semibold); line-height: 1.5;
  color: var(--w-text-secondary); }   /* ConfirmReexportDialog HeaderText: Subhead, Semibold */
.story .lpx-lcard { padding: 6px; background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-card); margin-top: 12px; }
.story .lpx-intro + .lpx-lcard { margin-top: 0; }
.story .lpx-li { display: flex; align-items: flex-start; gap: 8px; padding: 6px 10px; font-size: var(--w-fs-callout);
  line-height: 1.45; color: var(--w-text-primary); }
.story .lpx-ldot { flex: none; width: var(--w-size-status-dot); height: var(--w-size-status-dot); margin-top: 5px;
  border-radius: 50%; background: var(--w-warning); }
.story .lpx-ldot.bad { width: 6px; height: 6px; background: var(--w-danger); }
.story .lpx-hr { height: 1px; margin-top: 18px; background: var(--w-stroke-subtle); }
.story .lpx-errs { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.story .lpx-errlog .lpx-t2 { font-weight: var(--w-fw-bold); }
.story .lpx-errlog .lpx-sub2 { margin-top: 4px; font-size: var(--w-fs-callout); }
.story .lpx-err { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; background: var(--w-bg-surface);
  border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-medium); font-size: var(--w-fs-body);
  line-height: 1.45; color: var(--w-text-primary); overflow-wrap: anywhere; }
.story .lpx-errg { flex: none; font-size: 14px; color: var(--w-danger); }
.story .lpx-fcard { margin-top: 16px; padding: 12px 14px; background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle);
  border-radius: 10px; min-width: 0; }
.story .lpx-fcap { margin-bottom: 3px; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); }
.story .lpx-fname { font-size: var(--w-fs-body); font-weight: var(--w-fw-semibold); color: var(--w-text-primary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .lpx-fpath { margin-top: 2px; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.story .lpx-fcard.lpx-bulb { display: flex; align-items: flex-start; gap: 10px; font-size: var(--w-fs-body); line-height: 1.45;
  color: var(--w-text-secondary); }
.story .lpx-dontshow { margin-top: 16px; }
.story .lpx-dontshow .mk-check { font-size: var(--w-fs-subhead); color: var(--w-text-secondary); }
.story .lpx-dbody > .rl-foot { margin-top: 16px; flex-wrap: wrap; }

/* ── the workbook (relay-excel inside .lpx-xl): one line per cell, the sheet scrolls sideways like Excel's ── */
.story .lpx-xl { width: 100%; }
.story .lpx-xl .xls td { position: relative; }
.story .lpx-xl .xls td:has(> .xdd) { padding-right: 26px; }
.story .lpx-xl .xls .xdd { float: none; position: absolute; right: 9px; top: 50%; margin: 0; transform: translateY(-50%); }
.story .lpx-xl .tscroll { overflow-x: auto; }

/* ── «Review changes» (ImportPreviewDialog) ── */
.story .lpx-summ { font-size: var(--w-fs-callout); color: var(--w-text-secondary); white-space: pre; overflow: hidden;
  text-overflow: ellipsis; min-width: 0; }
.story .lpx-rv .dg tbody td.lpx-rid { background: var(--w-bg-subtle); border-right: 1px solid var(--w-stroke-subtle);
  font-size: var(--w-fs-subhead); color: var(--w-text-secondary); }
.story .lpx-rv .dg tbody td.lpx-rel { font-size: var(--w-fs-callout); }
.story .lpx-rk { margin-right: 6px; font-size: 14px; font-weight: var(--w-fw-semibold); }
.story .lpx-rk.add { color: var(--w-accent); }
.story .lpx-rk.rem { color: var(--w-danger); }
.story .lpx-grp { margin-left: 6px; padding: 1px 6px; border-radius: var(--w-radius-small); background: var(--w-warning-subtle);
  color: var(--w-warning-ink); font-size: var(--w-fs-footnote); font-weight: var(--w-fw-medium); }
.story .lpx-rv .dg tbody tr.lpx-rr.added { background: color-mix(in srgb, var(--w-accent) 8%, transparent); }
.story .lpx-rv .dg tbody tr.lpx-rr.removed { background: color-mix(in srgb, var(--w-danger) 8%, transparent); }
.story .lpx-rv .dg tbody td.lpx-rc { padding: 0; }
.story .lpx-rcin { display: flex; align-items: center; gap: 4px; box-sizing: border-box; height: var(--w-size-grid-row-control);
  padding: 0 8px 0 6px; min-width: 0; }
.story .lpx-rc.excel .lpx-rcin { background: color-mix(in srgb, var(--w-accent) 13%, transparent); }
.story .lpx-rc.revit .lpx-rcin { background: color-mix(in srgb, var(--w-warning) 13%, transparent); }
.story .lpx-rc.conflict .lpx-rcin { background: color-mix(in srgb, var(--w-danger) 13%, transparent); }
.story .lpx-rcv { flex: 1 1 auto; min-width: 0; margin-left: 2px; font-size: var(--w-fs-subhead); white-space: pre;
  overflow: hidden; text-overflow: ellipsis; color: var(--w-text-tertiary); }
.story .lpx-rc.excel .lpx-rcv { color: var(--w-accent); }
.story .lpx-rc.revit .lpx-rcv { color: var(--w-warning); }
.story .lpx-rc.conflict .lpx-rcv { color: var(--w-danger); }
.story .lpx-res { flex: none; display: inline-flex; gap: 2px; }
.story .lpx-res > span { padding: 1px 5px; border-radius: 4px; font-size: 9.5px; font-weight: var(--w-fw-semibold);
  color: var(--w-text-secondary); }
.story .lpx-res > span.on { background: var(--w-accent); color: var(--w-text-on-accent); }
.story .lpx-rowtip { left: 28px; }
.story .lpx-rvfoot { margin-top: 16px; flex-wrap: wrap; justify-content: flex-start; }
.story .lpx-rvnote { flex: 1 1 220px; margin: 0 6px; font-size: var(--w-fs-footnote); line-height: 1.4; color: var(--w-text-tertiary); }

/* ── «Overwrite <varies> cells?» ── */
.story .lpx-vcard { margin-top: 18px; padding: 16px 18px; background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle);
  border-radius: 10px; }
.story .lpx-vrow { font-size: var(--w-fs-headline); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .lpx-kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: baseline; margin-top: 6px; }
.story .lpx-vrow + .lpx-kv { margin-top: 10px; }
.story .lpx-kv > span { font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); }
.story .lpx-kv > b { font-size: var(--w-fs-body); font-weight: var(--w-fw-regular); color: var(--w-text-primary); }
.story .lpx-kv > b.sb { font-weight: var(--w-fw-semibold); }
.story .lpx-kv > em { font-size: var(--w-fs-body); font-style: italic; color: var(--w-text-tertiary); }
.story .lpx-blast { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; border-radius: var(--w-radius-medium);
  background: var(--w-accent-subtle); font-size: var(--w-fs-body); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .lpx-bw { flex: none; font-size: 14px; color: var(--w-warning); }
.story .lpx-qpos { margin: 12px 0 0 2px; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); }

/* ── the progress popup ── */
.story .lpx-ptitle { margin-top: 8px; }
.story .lpx-pline { display: flex; align-items: center; gap: 10px; margin-top: 12px; min-width: 0; }
.story .lpx-pcnt { flex: none; font-size: var(--w-fs-subhead); font-weight: var(--w-fw-semibold); color: var(--w-accent-text); }
.story .lpx-plab { min-width: 0; font-size: var(--w-fs-body); color: var(--w-text-secondary); overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.story .lpx-ppct { margin-top: 16px; text-align: right; font-size: var(--w-fs-subhead); font-weight: var(--w-fw-semibold);
  color: var(--w-text-primary); }
.story .lpx-bar { height: 6px; margin-top: 6px; border-radius: 3px; background: var(--w-bg-hover); overflow: hidden; }
.story .lpx-bar > i { display: block; height: 100%; border-radius: 3px; background: var(--w-accent-text); }
.story .lpx-pfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.story .lpx-pnote { font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); }

/* ── AppleErrorDialog, Warning (Margin 28,12,28,20; the 40-px circle; the body under the heading, 56 in) ── */
.story .lpx-alert .lpx-dbody { padding: 12px 28px 20px; }
.story .lpx-ahead { display: flex; align-items: flex-start; gap: 16px; margin-top: 8px; }
.story .lpx-aico { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  margin-top: 2px; border-radius: 50%; background: var(--w-warning); color: var(--w-text-on-accent); font-size: 22px;
  font-weight: var(--w-fw-bold); line-height: 1; }
.story .lpx-aheading { padding-top: 2px; font-size: var(--w-fs-title3); font-weight: var(--w-fw-semibold); line-height: 1.3;
  color: var(--w-text-primary); }
.story .lpx-abody { margin: 6px 0 16px 56px; font-size: var(--w-fs-body); line-height: 1.45; color: var(--w-text-secondary); }
.story .lpx-alert .lpx-dbody > .rl-foot { margin-top: 4px; }

/* ── tools/web_mockups/misc.css ── */
/* tools/web_mockups/misc.css — the BIMIO Misc toolbox (misc.py). Prefix: mx-.
   Sizes and colours are the suite's (the WEB-THEME tokens, --w-*), measured off MiscHubWindow.xaml: the window's grid
   margin 20,8,20,12; the search box, then the frequent chips 14 below, then list + detail 14 below them (17* · 16 ·
   7*, min 300), the footer 12 below; a section card BgSurface, corner 12, padding 8,10,8,8, 14 apart; a row padding
   10,7, corner 8, a 30 glyph column. */

/* ---- the hub window ---- */
.story .mx-stage { width: 100%; }
.story .mx-hub { width: 100%; }
.story .mx-body { padding: 8px 20px 12px; display: flex; flex-direction: column; font-size: var(--w-fs-body);
  color: var(--w-text-primary); }
.story .mx-body > .apphdr { margin: 4px 0 8px; }
/* the search box: AppleTextBox with its placeholder TextBlock (Body, tertiary, 12 in) */
.story .mx-search { position: relative; display: block; margin-top: 4px; }
.story .mx-search input { box-sizing: border-box; width: 100%; height: var(--w-size-input-height); margin: 0;
  padding: 0 11px; border: 1px solid var(--w-stroke-default); border-radius: var(--w-radius-button);
  background: var(--w-bg-surface); color: var(--w-text-primary); font: inherit; font-size: var(--w-fs-body);
  outline: none; }
.story .mx-search input:focus { border-color: var(--w-accent); box-shadow: 0 0 0 var(--w-border-focus-ring) var(--w-focus-ring); }
.story .mx-ph { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); pointer-events: none;
  font-size: var(--w-fs-body); color: var(--w-text-tertiary); }
.story .mx-ph[hidden] { display: none; }
/* AppleText.SectionLabel: Subhead, semibold, secondary (the words come upper-cased from the code or the pack) */
.story .mx-sl { font-size: var(--w-fs-subhead); font-weight: var(--w-fw-semibold); color: var(--w-text-secondary);
  line-height: 1.35; }
.story .mx-freq { margin-top: 14px; }
.story .mx-freq > .mx-sl { margin: 0 0 6px 2px; }
.story .mx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.story .mx-chip { cursor: pointer; }
.story .mx-cg { margin-right: 7px; }
.story .mx-grid { display: grid; grid-template-columns: minmax(0, 17fr) minmax(300px, 7fr); column-gap: 16px;
  margin-top: 14px; align-items: stretch; }
/* the list scrolls inside the window: full = its 1380 × 896 at opening, min = MinHeight 696 */
.story .mx-grid.full { height: 620px; }
.story .mx-grid.min { height: 430px; }
.story .mx-list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 14px;
  align-items: start; min-height: 0; overflow: auto; padding-right: 6px; }
.story .mx-col { min-width: 0; }
.story .mx-card { background: var(--w-bg-surface); border-radius: var(--w-radius-card); padding: 10px 8px 8px;
  margin-bottom: 14px; }
.story .mx-card > .mx-sl { margin: 0 0 6px 8px; }
.story .mx-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center;
  padding: 7px 10px; margin: 1px 0; border-radius: var(--w-radius-medium); cursor: default; }
.story .mx-row.on { background: var(--w-bg-selected); }
.story .mx-g { font-size: 16px; color: var(--w-text-secondary); line-height: 1; }
.story .mx-nm { display: flex; align-items: baseline; min-width: 0; white-space: nowrap; }
.story .mx-nm b { font-size: var(--w-fs-body); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); flex: none; }
.story .mx-nm span { font-size: var(--w-fs-subhead); color: var(--w-text-secondary); margin-left: 10px; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; }
.story .mx-dot { width: var(--w-size-status-dot); height: var(--w-size-status-dot); border-radius: 50%;
  background: var(--w-success); margin: 0 2px 0 10px; }
.story .mx-dot.mod { background: var(--w-warning); }
/* the detail: an AppleCard, padding 20 */
.story .mx-detail { background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-card); box-shadow: var(--w-shadow-card); padding: 20px; min-width: 0; overflow: auto; }
.story .mx-dg { font-size: 30px; line-height: 1.2; color: var(--w-accent-text); }
.story .mx-dn { font-size: var(--w-fs-title3); font-weight: var(--w-fw-semibold); color: var(--w-text-primary);
  margin-top: 8px; }
.story .mx-ds { font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); margin-top: 2px; }
.story .mx-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.story .mx-dl { font-size: var(--w-fs-body); color: var(--w-text-secondary); line-height: 1.45; margin: 14px 0 0; }
.story .mx-hw { margin: 18px 0 4px; }
.story .mx-step { font-size: var(--w-fs-subhead); color: var(--w-text-secondary); line-height: 1.45; margin-bottom: 5px;
  white-space: pre-wrap; }
.story .mx-enter { font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); margin-top: 18px; white-space: pre; }
.story .mx-empty { height: 100%; min-height: 180px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; }
.story .mx-eg { font-size: 34px; color: var(--w-text-tertiary); line-height: 1.2; }
.story .mx-empty b { font-size: var(--w-fs-headline); font-weight: var(--w-fw-semibold); color: var(--w-text-secondary);
  margin-top: 10px; }
.story .mx-empty span { font-size: var(--w-fs-subhead); color: var(--w-text-tertiary); margin-top: 4px; }
.story .mx-foot { font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); margin: 12px 0 0 2px; white-space: pre-wrap; }
@media (max-width: 760px) {
  .story .mx-grid, .story .mx-grid.full, .story .mx-grid.min { grid-template-columns: minmax(0, 1fr); height: auto; row-gap: 14px; }
  .story .mx-list { grid-template-columns: minmax(0, 1fr); max-height: 420px; }
}

/* ---- the succession ---- */
.story .mx-tools .mx-meta { margin-top: 0; justify-content: flex-end; }
.story .mx-above .mt-head { align-items: center; }
.story .mx-tools .mt-meta .mc-chip { margin-top: 0; }
.story .mx-tools .mp-row .mk-logo { flex: none; }
/* a tab strip: the library's segmented track, in the window's own row */
.story .mx-tabs { padding: 4px 16px 0; }
.story .mx-in { min-width: 64px; }
.story .mx-in em { font-style: normal; color: var(--w-text-tertiary); margin-left: 4px; }
.story .mx-sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; flex: none;
  box-shadow: inset 0 0 0 1px var(--w-stroke-default); }
.story .mx-tbl { font-size: var(--w-fs-callout); }
.story .mx-shot .mw-body .rl-foot { padding: 10px 16px 14px; }
/* Livery: nothing over the drawing area since 1 Sep 2026 (LiveryFrame.cs removed), only the tabs */
.story .mx-lv-canvas { border-width: 0; }

/* ---- a dialog's heading (no controls:AppHeader in its XAML) ---- */
.story .mx-h { margin: 16px 20px 4px; display: flex; flex-direction: column; gap: 3px; }
.story .mx-ht { font-size: var(--w-fs-title2); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); line-height: 1.25; }
.story .mx-hs { font-size: var(--w-fs-callout); color: var(--w-text-secondary); line-height: 1.4; }

/* ---- the Hub (DashboardWindow.cs): header, stat cards, tiles 262 wide ---- */
.story .mx-hbody { padding: 6px 12px 16px; }
.story .mx-hb { display: flex; flex-direction: column; gap: 4px; color: var(--w-text-primary); }
.story .mx-hbh { display: flex; align-items: center; gap: 16px; padding: 6px 0 8px; }
.story .mx-hbm { flex: none; width: 56px; height: 56px; }
.story .mx-hbm svg { display: block; width: 100%; height: 100%; }
.story .mx-hbl { flex: 1; min-width: 0; }
.story .mx-hbp { font-size: var(--w-fs-title2); font-weight: var(--w-fw-semibold); margin-bottom: 6px; }
.story .mx-hbs { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: var(--w-fs-callout);
  color: var(--w-text-tertiary); }
.story .mx-plate { font-size: var(--w-fs-callout); font-weight: var(--w-fw-semibold); padding: 2px 9px;
  border-radius: var(--w-radius-small); background: var(--w-neutral-subtle); color: var(--w-text-secondary); }
.story .mx-plate.ok { background: var(--w-success-subtle); color: var(--w-success-ink); }
.story .mx-plate.warn { background: var(--w-warning-subtle); color: var(--w-warning-ink); }
.story .mx-plate.bad { background: var(--w-danger-subtle); color: var(--w-danger-ink); }
.story .mx-hbi { font-size: var(--w-fs-callout); color: var(--w-text-secondary); }
.story .mx-hbn { flex: none; font-size: 44px; font-weight: var(--w-fw-semibold); line-height: 1; margin: 0 4px 0 16px;
  color: var(--w-text-tertiary); }
.story .mx-hbn.ok { color: var(--w-success); }
.story .mx-hbn.warn { color: var(--w-warning); }
.story .mx-hbn.bad { color: var(--w-danger); }
.story .mx-hbb { flex: none; display: flex; gap: 8px; margin-left: 12px; }
.story .mx-stats, .story .mx-tiles { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.story .mx-stat, .story .mx-tile { background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-card); box-shadow: var(--w-shadow-card); padding: 16px; box-sizing: border-box;
  margin-top: 8px; }
.story .mx-stat { width: 200px; display: flex; flex-direction: column; min-width: 0; }
.story .mx-stat b { font-size: 30px; font-weight: var(--w-fw-semibold); line-height: 1.15; color: var(--w-text-secondary); }
.story .mx-stat b.bad { color: var(--w-danger-ink); }
.story .mx-stat b.warn { color: var(--w-warning-ink); }
.story .mx-stat b.ok { color: var(--w-success-ink); }
.story .mx-stat span { font-size: var(--w-fs-callout); color: var(--w-text-secondary); }
.story .mx-stat em { font-style: normal; font-size: 11.5px; color: var(--w-text-tertiary); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .mx-tile { width: 262px; display: flex; flex-direction: column; }
.story .mx-tt { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.story .mx-tt b { flex: 1; font-size: 14px; font-weight: var(--w-fw-semibold); }
.story .mx-tb { font-size: 11px; font-weight: var(--w-fw-bold); color: var(--w-text-on-accent); border-radius: 9px;
  padding: 1px 7px; background: var(--w-stroke-subtle); }
.story .mx-tb.bad { background: var(--w-danger); }
.story .mx-tb.warn { background: var(--w-warning); }
.story .mx-tb.ok { background: var(--w-success); }
.story .mx-td { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--w-stroke-subtle); }
.story .mx-td.bad { background: var(--w-danger); }
.story .mx-td.warn { background: var(--w-warning); }
.story .mx-td.ok { background: var(--w-success); }
.story .mx-th { font-size: 12.5px; line-height: 1.35; margin-bottom: 6px; color: var(--w-text-secondary); }
.story .mx-th.bad { color: var(--w-danger); }
.story .mx-th.warn { color: var(--w-warning); }
.story .mx-th.ok { color: var(--w-success); }
.story .mx-kpi { display: flex; justify-content: space-between; gap: 8px; font-size: var(--w-fs-callout); margin: 1px 0; }
.story .mx-kpi span { color: var(--w-text-secondary); }
.story .mx-kpi b { font-weight: var(--w-fw-semibold); }
.story .mx-tsub { font-size: var(--w-fs-callout); color: var(--w-text-secondary); margin-bottom: 2px; }
.story .mx-ta { display: flex; gap: 8px; margin-top: 10px; }
@media (max-width: 760px) {
  .story .mx-hbh { flex-wrap: wrap; }
  .story .mx-hbb { margin-left: 0; }
}

/* Each window at its XAML width (the spec's `width`, written as the shot's max-width): the core's .capwin is 420 wide,
   which drew every Misc window — the 1280 of Datum Tools, the 1880 of the Hub — as a 420 column. */
.story .mx-shot { width: 100%; }
.story .mx-shot .capwin { width: 100%; }
/* the footer's status line (mk_foot): AppleText.Footnote-sized, secondary — the core gives .rl-st no size */
.story .mx-shot .rl-st { font-size: var(--w-fs-callout); color: var(--w-text-secondary); line-height: 1.4; min-width: 0;
  flex: 1 1 260px; }
.story .mx-shot .rl-foot { flex-wrap: wrap; align-items: center; }
/* a window's table fills its card and its columns share it, the text trimmed — as Apple.DataGrid does */
.story .mx-shot .mk-table table.dg { width: 100%; table-layout: fixed; }
.story .mx-shot .mk-table td, .story .mx-shot .mk-table th { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- the report window Check fills (FjvReportWindow): verdict banner, filter row, grouped grid ---- */
.story .mx-verdict { display: flex; align-items: center; gap: 12px; margin: 0 -12px; padding: 12px 24px;
  background: var(--w-success-subtle); }
.story .mx-verdict.warn { background: var(--w-warning-subtle); }
.story .mx-verdict.bad { background: var(--w-danger-subtle); }
.story .mx-vdot { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-size: 17px; font-weight: var(--w-fw-bold); color: var(--w-text-on-accent); background: var(--w-success); }
.story .mx-vdot.warn { background: var(--w-warning); }
.story .mx-vdot.bad { background: var(--w-danger); }
.story .mx-vtxt { font-size: var(--w-fs-body); color: var(--w-text-primary); line-height: 1.4; }
.story .mx-rfilter { display: flex; align-items: center; gap: 12px; margin: 8px 8px 4px; }
.story .mx-rsearch { flex: 1; }
.story .mx-rbody { margin: 8px 8px 0; }
.story .mx-gsub { font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); margin-left: 10px; font-weight: var(--w-fw-regular); }
.story .mx-sbox { margin: 0 0 8px; }
.story .mx-sbox .mk-field { width: 100%; height: 38px; font-size: 16px; }
.story .mx-hint { font-size: var(--w-fs-callout); color: var(--w-text-tertiary); }

/* ---- a window's tables and fields at the window's width (checked against the XAML, 16-Nov-2026) ----
   The site's .dg is at least 900 wide so a guide's big grids scroll; a Misc window is often 480–720 wide and its
   DataGrid fits its card (star columns), so here the table takes the card's width and no more: before this, Measure
   lost ΔY and ΔZ, and Find & Replace its After column, off the right edge. */
.story .mx-shot .mk-table table.dg { min-width: 0; }
/* a text box stretches across what its row leaves it (a TextBox in a star column) and clips what does not fit */
.story .mx-shot .mw-f-wide { min-width: 0; }
.story .mx-shot .mw-f-wide > .mx-in { flex: 1 1 auto; }
.story .mx-in > .mx-v { min-width: 0; overflow: hidden; white-space: nowrap; }
.story .mx-in > .mx-ph2 { color: var(--w-text-tertiary); }
/* a multi-line box (AppleTextArea): its fixed height, the text from the top, wrapped */
.story .mx-in.mx-area { height: 76px; align-items: flex-start; padding-top: 7px; padding-bottom: 7px; }
.story .mx-in.mx-area > .mx-v { white-space: normal; overflow-wrap: anywhere; }
/* a check with its hint under it (an ItemsControl row: CheckBox, then a Footnote) */
.story .mx-chk { display: flex; flex-direction: column; gap: 1px; flex: 1 1 100%; }
.story .mx-chint { font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); margin-left: 24px; line-height: 1.35; }
.story .mw-ctrls.mx-stack { flex-direction: column; flex-wrap: nowrap; gap: 8px; }
/* a figure under its caption: AppleText.FieldLabel over AppleText.Title3 */
.story .mx-stat2 { display: inline-flex; flex-direction: column; gap: 2px; min-width: 180px; }
.story .mx-stat2 b { font-size: var(--w-fs-title3); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
/* a group's frame: an AppleCard, or none (the controls stand on the window) */
.story .mw-grp.mx-card2 { background: var(--w-bg-surface); border-color: var(--w-stroke-subtle); box-shadow: var(--w-shadow-card); }
.story .mw-grp.mx-bare { border: 0; padding: 0; background: none; }
.story .mx-glabel { margin: 0 0 6px 2px; }
/* a split whose left column has its XAML width (Find & Replace's 300) */
.story .mw-split.mx-lw { grid-template-columns: minmax(0, var(--mx-lw)) minmax(0, 1fr); }
@media (max-width: 640px) { .story .mw-split.mx-lw { grid-template-columns: minmax(0, 1fr); } }
.story .mx-sside { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
/* a Headline line across a card (View Locator's view name) */
.story .mx-ghead { flex: 1 1 100%; font-size: var(--w-fs-headline); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
/* a status line above the footer's buttons (IDs: a StackPanel, the Footnote, then the row of buttons) */
.story .mx-stline { margin: 0 16px -4px; font-size: var(--w-fs-footnote); color: var(--w-text-secondary); line-height: 1.4; }
/* a group whose controls sit at its right end (a WrapPanel HorizontalAlignment="Right") */
.story .mw-ctrls.mx-end { justify-content: flex-end; }
.story .mx-stat2 > .mw-lb { font-size: var(--w-fs-body); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
/* a line of text in a window is a TextBlock (Subhead / Footnote), not a quotation: no bar at its left */
.story .mx-shot .mw-note-b { border-left: 0; padding-left: 0; }
/* Template Diff's own list (TemplateDiffWindow.xaml RowTpl / SectionTpl): stripe 4 · aspect * · A 168 · B 168 */
.story .mx-diff { display: flex; flex-direction: column; }
.story .mx-dtop { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 2px 10px; flex-wrap: wrap; }
.story .mx-dsum { font-size: var(--w-fs-body); color: var(--w-text-secondary); }
.story .mx-dlegs { display: inline-flex; gap: 14px; font-size: var(--w-fs-callout); color: var(--w-text-secondary); }
.story .mx-dleg { display: inline-flex; align-items: center; gap: 6px; }
.story .mx-dleg i { width: 8px; height: 8px; border-radius: 50%; background: var(--w-success); }
.story .mx-dleg i.b { background: var(--w-accent); }
.story .mx-dleg i.c { background: var(--w-warning); }
.story .mx-drow { display: grid; grid-template-columns: 4px minmax(0, 1fr) 168px 168px; align-items: center; min-height: 34px;
  background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle); border-radius: 7px; margin-bottom: 4px;
  overflow: hidden; font-size: 12.5px; color: var(--w-text-tertiary); }
.story .mx-drow > i { align-self: stretch; background: var(--w-separator); }
.story .mx-drow > span { padding: 7px 10px 7px 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  border-left: 1px solid var(--w-separator); }
.story .mx-drow > .mx-dlab { font-size: var(--w-fs-body); color: var(--w-text-primary); border-left: 0; }
.story .mx-drow.a > i { background: var(--w-success); }
.story .mx-drow.b > i { background: var(--w-accent); }
.story .mx-drow.c > i { background: var(--w-warning); }
.story .mx-drow.a > .mx-va { color: var(--w-success); font-weight: var(--w-fw-semibold); }
.story .mx-drow.b > .mx-vb { color: var(--w-accent-text); font-weight: var(--w-fw-semibold); }
.story .mx-drow.c > .mx-va, .story .mx-drow.c > .mx-vb { color: var(--w-warning); font-weight: var(--w-fw-semibold); }
.story .mx-drow.mx-dhead { background: none; border: 0; min-height: 0; margin: 0 2px 6px; }
.story .mx-drow.mx-dhead > i { background: none; }
.story .mx-drow.mx-dhead > span { border: 0; padding-top: 0; padding-bottom: 0; font-size: var(--w-fs-callout);
  font-weight: var(--w-fw-semibold); color: var(--w-text-secondary); }
.story .mx-drow.mx-dhead > .mx-dlab { font-size: var(--w-fs-footnote); font-weight: var(--w-fw-regular); }
.story .mx-dsec { margin-bottom: 14px; }
.story .mx-dst { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 7px; }
@media (max-width: 640px) { .story .mx-drow { grid-template-columns: 4px minmax(0, 1fr) 96px 96px; } }
/* a switch with its word before it (AppleText.Callout, secondary, then AppleToggleSwitch) */
.story .mx-swr { display: inline-flex; align-items: center; gap: 7px; font-size: var(--w-fs-callout); color: var(--w-text-secondary); margin-right: 6px; }
/* the tabs at the left and the window's controls at the right of one row */
.story .mx-tabsbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.story .mx-tbr { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* an AppleCard on AccentSubtle: the text at the left, the button at the right (Vigil's seal banner) */
.story .mw-grp.mx-banner { background: var(--w-accent-subtle); border-color: var(--w-stroke-subtle); padding: 11px 14px; }
.story .mw-grp.mx-banner > .mw-ctrls { flex-wrap: nowrap; align-items: center; }
.story .mw-grp.mx-banner .mw-note { flex: 1 1 auto; font-size: var(--w-fs-callout); color: var(--w-text-primary); }
/* a pane's heading (AppleText.Headline) */
.story .mx-shead { font-size: var(--w-fs-headline); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
/* a text box in a star column: it shares its row with the controls after it */
.story .mw-f-wide.mx-grow { flex: 1 1 200px; }
/* a rail row with its tick (a checklist rail, Sheet Graphics): the box at the left of the name, the hint under the
   name — the core's .mw-rr puts every <span> in column 2, the library's box included, which stacked it above */
.story .mx-shot .mw-rr > .ck { grid-column: 1; grid-row: span 2; align-self: start; margin-top: 1px; }
/* a list of ticks (a TreeView / ItemsControl of CheckBoxes): Body text, the box centred on it, no rule between rows */
.story .mw-list.mx-checks .mw-lr { align-items: center; font-size: var(--w-fs-body); color: var(--w-text-primary);
  border-bottom: 0; padding: 4px 2px; }
.story .mw-list.mx-checks .mw-lr > .ck { align-self: center; }

/* ── tools/web_mockups/mold.css ── */
/* mold.py's kinds (prefix mld-). Every rule sits under .story; colours and sizes are the window's tokens (the
   WEB-THEME block of site.css, --w-*): never a raw hex. The shared pieces — the title bar, the app header, the controls
   kit (.hbtn, .mk-bar, .mk-seg, .mk-field, .mk-combo, .mk-badge, .ck, .dg, the funnel th.fl, the group row tr.grp) —
   are site.css's, used as they are; only how Mold's own rows, cells and panes sit is here. Sizes in px are the code's
   own (MoldPanelView.xaml / .xaml.cs, MoldFormulaDialog.cs, MoldSmartRulePanel.cs, MoldExcelPreviewDialog.cs). */

/* ── composition ── */
.story .mld-stage { width: 100%; display: flex; justify-content: center; min-width: 0; }
.story .mld-stack { display: grid; gap: 18px; justify-items: center; width: 100%; min-width: 0; }
.story .mld-sp { flex: 1 1 0; min-width: 0; }
.story .mld-win { min-width: 0; }
.story .mld-body { color: var(--w-text-primary); font-size: var(--w-fs-body); }
.story .mld-win table.dg { min-width: 0; table-layout: fixed; }
.story .mld-win table.dg th { box-sizing: border-box; overflow: hidden; text-overflow: clip; }
.story .mld-win table.dg td { box-sizing: border-box; overflow: hidden; white-space: nowrap; }

/* ── the big windows, scaled whole (mold.py: THE BIG WINDOWS). The window keeps its real width (--mld-dw) and the
   wrapper scales it (zoom) to --mld-bw; the stage (a centring flex box) centres it on the column, past the column's
   edges on a big screen. A width W is used only from a viewport of W + 90 (the beat's rail, a scroll bar, a margin);
   below 730 the window scrolls. ── */
.story .mld-fit { position: relative; z-index: 2; flex: none; width: var(--mld-bw); }
.story .mld-fit > .capwin.mld-win { width: var(--mld-dw); max-width: none; zoom: var(--mld-z); }
.story .mld-fit-1460 { --mld-z: .8493; --mld-bw: 1240px; }
@media (max-width: 1339px) { .story .mld-fit-1460 { --mld-z: .7945; --mld-bw: 1160px; } }
@media (max-width: 1249px) { .story .mld-fit-1460 { --mld-z: .7671; --mld-bw: 1120px; } }
@media (max-width: 1209px) { .story .mld-fit-1460 { --mld-z: .6795; --mld-bw: 992px; } }
@media (max-width: 1081px) { .story .mld-fit-1460 { --mld-z: .5479; --mld-bw: 800px; } }
@media (max-width: 889px) { .story .mld-fit-1460 { --mld-z: .4384; --mld-bw: 640px; } }
.story .mld-fit-1500 { --mld-z: .8267; --mld-bw: 1240px; }
@media (max-width: 1339px) { .story .mld-fit-1500 { --mld-z: .7733; --mld-bw: 1160px; } }
@media (max-width: 1249px) { .story .mld-fit-1500 { --mld-z: .7467; --mld-bw: 1120px; } }
@media (max-width: 1209px) { .story .mld-fit-1500 { --mld-z: .6613; --mld-bw: 992px; } }
@media (max-width: 1081px) { .story .mld-fit-1500 { --mld-z: .5333; --mld-bw: 800px; } }
@media (max-width: 889px) { .story .mld-fit-1500 { --mld-z: .4267; --mld-bw: 640px; } }
@media (max-width: 729px) {
  .story .mld-fit { flex: 1 1 auto; width: 100%; overflow-x: auto; padding-bottom: 18px; }
}

/* ══ mold-matrix: the main window ══ */
.story .mld-main .mld-body { padding: 20px; }
.story .mld-main .apphdr { margin-bottom: 0; }
.story .mld-left { display: inline-flex; align-items: center; gap: 8px; flex: none; }

/* row 1: search · Refresh | Rules · Excel · Compare/Report · Thumbnails, one wrap panel in reading order */
.story .mld-row1 { display: flex; align-items: center; margin-top: 12px; gap: 8px; }
.story .mld-wrap { flex: 1 1 auto; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center;
  gap: 4px 8px; min-width: 0; }
.story .mld-gbar { flex: none; }
.story .mld-glbl { margin: 0 8px 0 6px; font-size: var(--w-fs-subhead); color: var(--w-text-secondary); }
.story .mld-block { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 3px 8px;
  border-radius: var(--w-radius-group); background: var(--w-bg-subtle); }

/* row 2: + Parameter · Select all · Delete · the counter | the type bar */
.story .mld-row2 { display: flex; align-items: center; margin-top: 8px; }
.story .mld-row2 .mld-left { gap: 6px; }
.story .mld-row2 .mld-left > .hbtn:nth-of-type(3) { margin-right: 6px; }
.story .mld-counter { font-size: 12px; color: var(--w-text-secondary); white-space: nowrap; }
.story .mld-tbar { display: inline-flex; align-items: center; gap: 6px; flex: 0 1 auto; min-width: 0; margin-left: 12px;
  padding: 3px 8px; border-radius: var(--w-radius-group); background: var(--w-bg-subtle); }
.story .mld-tbar.mld-hidden { visibility: hidden; }
.story .mld-tlbl { margin: 0 4px 0 2px; font-size: 12px; font-weight: var(--w-fw-medium); color: var(--w-text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* row 3: the Live banner */
.story .mld-banner { margin-top: 8px; padding: 6px 12px; border-radius: var(--w-radius-group); background: var(--w-bg-subtle);
  font-size: 11px; color: var(--w-accent-text); }

/* row 4: the chip bar */
.story .mld-chipbar { display: flex; flex-wrap: wrap; align-items: center; margin-top: 8px; font-size: 12px; }
.story .mld-flbl { margin-right: 8px; color: var(--w-text-secondary); }
.story .mld-chip { display: inline-flex; align-items: center; margin-right: 6px; padding: 3px 8px 3px 10px; border-radius: 13px;
  background: var(--w-accent-subtle); color: var(--w-accent-text); }
.story .mld-chip i { margin-left: 6px; font-size: 11px; font-style: normal; }
.story .mld-fcount { margin-left: 8px; color: var(--w-text-secondary); }
.story .mld-fclear { margin-left: 10px; color: var(--w-accent-text); }

/* row 5: the band over the type columns, and the sheet on its card */
.story .mld-mx { margin-top: 10px; }
.story .mld-band { display: flex; align-items: center; justify-content: center; height: 20px;
  margin-left: 879px; /* the six frozen columns (210 + 100 + 100 + 128 + 120 + 220) and the card's 1 px edge */
  border-radius: 6px 6px 0 0; background: var(--w-accent); opacity: .92; color: var(--w-text-on-accent);
  font-size: 10px; font-weight: var(--w-fw-bold); letter-spacing: 0; }
.story .mld-card .tscroll { overflow-x: auto; }
.story .mld-dg { width: 100%; }
.story .mld-dg thead th.mld-th { padding: 0 12px; font-size: 13px; font-weight: var(--w-fw-medium); color: var(--w-text-primary); }
.story .mld-dg thead th.mld-th.mld-sel { font-weight: var(--w-fw-bold); color: var(--w-accent-text); }
.story .mld-dg thead th.mld-fill { border-right: 0; }
.story .mld-thin { display: inline-flex; align-items: center; max-width: 100%; }
.story .mld-tn { overflow: hidden; text-overflow: ellipsis; }
.story .mld-live-dot { flex: none; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--w-accent); }
.story .mld-dup { flex: none; margin-left: 6px; font-size: 12px; color: var(--w-warning); }
/* Apple.DataGrid.Sheet: every row 23, whatever it holds */
.story .mld-win .dg.sheet.mld-dg tbody td { height: var(--w-size-grid-row-sheet); padding: 0; position: relative; }
/* the six frozen columns: BgSubtle, the secondary ink (Mold.InfoCell / Mold.InfoCellText) */
.story .mld-win .dg.mld-dg tbody td.mld-info { padding: 0 6px 0 10px; background: var(--w-bg-subtle); color: var(--w-text-secondary); }
.story .mld-dg tbody tr.mld-hl { background: var(--w-apple-data-grid-row-highlight); }
.story .mld-win .dg.mld-dg tbody tr.mld-hl td.mld-info { background: var(--w-bg-selected); }
.story .mld-win .dg.mld-dg td.mld-info.mld-name { padding-right: 76px; color: var(--w-text-primary); font-weight: var(--w-fw-medium); }
.story .mld-nm { display: block; overflow: hidden; text-overflow: ellipsis; white-space: pre; }
.story .mld-marks > span { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center;
  font-weight: var(--w-fw-regular); }
.story .mld-funnel { right: 4px; width: 22px; font-size: 11px; color: var(--w-text-disabled); }
.story .mld-funnel.mld-on { color: var(--w-accent); }
.story .mld-hyg { right: 30px; font-size: 12px; }
.story .mld-hyg.mld-warn { color: var(--w-warning); }
.story .mld-hyg.mld-err { color: var(--w-danger); }
.story .mld-diff { right: 52px; font-size: 13px; font-weight: var(--w-fw-bold) !important; color: var(--w-accent-text); }
/* f(x): the formula's text, then its marker */
.story .mld-win .dg.mld-dg td.mld-info.mld-fx { padding: 0 4px 0 8px; }
.story .mld-fxin { display: flex; align-items: center; min-width: 0; }
.story .mld-fxt { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; font-style: italic;
  color: var(--w-accent-text); }
.story .mld-mk { flex: none; margin: 0 2px 0 6px; font-size: 11px; font-style: italic; color: var(--w-text-disabled); }
.story .mld-mk.mld-mk-fx { color: var(--w-accent-text); }
.story .mld-mk.mld-mk-sr { color: var(--w-warning-ink); }
.story .mld-mk.mld-mk-sr.mld-mk-idle { opacity: .55; }
/* Controls: the count badge, Go to, Show — a 24 control in a 23 row, as the sheet clips it */
.story .mld-win .dg.mld-dg td.mld-info.mld-ctl { padding: 0 0 0 8px; }
.story .mld-ctlin { display: flex; align-items: center; }
.story .mld-cnt { flex: none; margin-right: 6px; padding: 1px 7px; border-radius: var(--w-radius-small);
  background: var(--w-neutral-subtle); font-size: 11px; color: var(--w-text-secondary); }
.story .mld-ctlin .hbtn { height: 22px; margin-right: 4px; }
.story .mld-dash { color: var(--w-text-disabled); }
/* a type's value cell: the column tint under the dependency tint */
.story .mld-dg td.mld-tc.mld-colsel { background-color: var(--w-accent-subtle); }
.story .mld-dg td.mld-tc.mld-dep-sel { background-image: linear-gradient(var(--w-accent-subtle), var(--w-accent-subtle)); }
.story .mld-dg td.mld-tc.mld-dep-anc { background-image: linear-gradient(var(--w-success-subtle), var(--w-success-subtle)); }
.story .mld-dg td.mld-tc.mld-dep-desc { background-image: linear-gradient(var(--w-warning-subtle), var(--w-warning-subtle)); }
.story .mld-val { display: block; padding: 0 30px 0 10px; overflow: hidden; text-overflow: ellipsis; color: var(--w-text-primary); }
.story .mld-val.mld-fxv { font-style: italic; color: var(--w-accent-text); }
.story .mld-ckc { display: flex; align-items: center; justify-content: center; height: 100%; }
.story .mld-pick { position: absolute; right: 6px; top: 50%; width: 30px; height: 20px; margin-top: -10px;
  display: flex; align-items: center; justify-content: center; border-radius: var(--w-radius-small);
  background: var(--w-accent-subtle); color: var(--w-accent-text); font-size: 13px; }

/* row 6: the status, then Live · Apply · Cancel · OK */
.story .mld-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.story .mld-status { min-width: 0; font-size: 11px; color: var(--w-text-secondary); }
.story .mld-foot > .hbtn { min-width: var(--w-size-button-min-width); }
.story .mld-live { font-weight: var(--w-fw-medium); }
.story .mld-live.mld-on { background: var(--w-accent-subtle); border-color: var(--w-accent); color: var(--w-accent-text); }

/* ══ mold-formula: «Formula · <parameter>» (1500 × 880, the title bar included) ══ */
.story .mld-formula .mld-body { height: calc(880px - var(--w-size-title-bar)); padding: 0; overflow: hidden; }
.story .mld-fgrid { display: grid; grid-template-columns: 1.3fr 1fr; height: 100%; min-height: 0; }
/* the palette: BgSubtle, the Parameters table (1*) beside the operators and functions (1.3*) */
.story .mld-pal { display: grid; grid-template-columns: 1fr 1.3fr; min-width: 0; min-height: 0; overflow: hidden;
  background: var(--w-bg-subtle); }
.story .mld-ppanel { display: flex; flex-direction: column; min-width: 0; min-height: 0; margin: 14px; }
.story .mld-ppanel > .mk-field { width: 100%; margin-bottom: 8px; }
.story .mld-sect { margin: 12px 0 8px; font-size: 11px; font-weight: var(--w-fw-semibold); color: var(--w-text-secondary); }
.story .mld-pgrid { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.story .mld-win .mld-pdg tbody tr { background: transparent; }
.story .mld-win .mld-pdg tbody tr:nth-child(even) { background: var(--w-apple-data-grid-row-alternate); }
.story .mld-pdg td { text-overflow: ellipsis; }
.story .mld-pdg td.mld-pn { font-weight: var(--w-fw-medium); color: var(--w-accent-text); }
.story .mld-tools { min-width: 0; margin: 14px; overflow: hidden; }
.story .mld-keypad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.story .mld-keypad .hbtn.mld-key { margin: 2px; min-width: 0; font-family: var(--w-font-mono), monospace; font-weight: var(--w-fw-regular); }
.story .mld-fn { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; margin-bottom: 6px; }
.story .mld-fn .hbtn.mld-fnb { min-width: 64px; justify-content: center; font-family: var(--w-font-mono), monospace;
  font-weight: var(--w-fw-regular); }
.story .mld-fnt { display: flex; flex-direction: column; justify-content: center; min-width: 0; margin-left: 10px; }
.story .mld-tpl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--w-font-mono), monospace;
  font-size: 11.5px; color: var(--w-text-primary); }
.story .mld-fnd { margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px;
  color: var(--w-text-tertiary); }
/* the right half: Formula | Smart rule, the rule panel, the footer */
.story .mld-fright { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.story .mld-mode { display: flex; justify-content: flex-end; margin: 16px 18px 0; }
.story .mld-rules { flex: 1 1 auto; min-height: 0; margin: 18px; overflow: hidden; }
.story .mld-rules > .mk-field { width: 100%; }
.story .mld-ffoot { display: flex; justify-content: flex-end; gap: 8px; margin: 0 18px 16px; }
.story .mld-ffoot > .hbtn.primary { min-width: 120px; }
/* MoldSmartRulePanel: its own warm palette, read here as the suite's warning tokens */
.story .mld-rlbl, .story .mld-rt, .story .mld-plh { font-size: 11px; font-weight: var(--w-fw-semibold); color: var(--w-warning-ink); }
.story .mld-rlbl { margin-bottom: 8px; }
.story .mld-rcard { margin: 8px 0 4px; padding: 16px 14px 12px; border: 1px solid color-mix(in srgb, var(--w-warning) 32%, transparent);
  border-radius: var(--w-radius-card); background: var(--w-warning-subtle); }
.story .mld-rhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.story .mld-cond { display: flex; align-items: center; margin: 3px 0; }
.story .mld-cond > .mk-combo { flex: none; margin-right: 6px; }
.story .mld-cond > .mk-field { flex: none; }
.story .mld-cond.mld-fillv > .mk-field { flex: 1 1 auto; }
.story .mld-kw { flex: none; min-width: 50px; font-size: 12px; font-weight: var(--w-fw-bold); color: var(--w-warning-ink); }
.story .mld-rmc { flex: 1 1 auto; display: flex; justify-content: center; margin-left: 4px; }
.story .mld-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: var(--w-size-control-compact);
  height: var(--w-size-control-compact); border-radius: 50%; color: var(--w-text-secondary); }
.story .mld-iconbtn > svg { width: var(--w-size-icon-in-button-compact); height: var(--w-size-icon-in-button-compact); }
.story .hbtn.mld-addc { margin: 2px 0 8px 56px; }
.story .mld-set { display: flex; align-items: center; margin-top: 2px; }
.story .mld-tgt { flex: none; margin-right: 8px; font-size: 13px; color: var(--w-accent-text); }
.story .mld-eq { flex: none; margin-right: 8px; font-family: var(--w-font-mono), monospace; font-size: 14px; }
.story .mld-set > .mk-field { flex: 1 1 auto; }
.story .hbtn.mld-addr { margin: 2px 0 10px; }
.story .mld-owl { margin: 4px 0; font-size: 11px; font-weight: var(--w-fw-semibold); color: var(--w-text-secondary); }
.story .mld-plain { margin-top: 14px; padding: 13px; border: .5px solid color-mix(in srgb, var(--w-warning) 32%, transparent);
  border-radius: 10px; background: var(--w-warning-subtle); }
.story .mld-plh { margin-bottom: 6px; }
.story .mld-plt { font-size: 13.5px; line-height: 1.4; color: var(--w-text-primary); white-space: normal; }

/* ══ mold-import-preview: «Import preview» (620 × 520, the title bar included) ══ */
.story .mld-import { max-width: 100%; }
.story .mld-import .mld-body { display: flex; flex-direction: column; height: calc(520px - var(--w-size-title-bar));
  padding: 18px; box-sizing: border-box; }
.story .mld-iph { margin-bottom: 12px; font-size: 15px; font-weight: var(--w-fw-semibold); }
/* the grid has its own 1 px edge and no card under it (MoldExcelPreviewDialog: BorderThickness 1) */
.story .mld-ipgrid { flex: 1 1 auto; min-height: 0; overflow: hidden; border: 1px solid var(--w-stroke-subtle); }
/* Apple.DataGrid: 36 a row — the group's count badge does not make it a row of controls */
.story .mld-win .dg.mld-ipdg tbody td { height: var(--w-size-grid-row); }
/* the zebra restarts in each group (mold.py): the shared nth-child count would run across the group rows */
.story .mld-win .dg.mld-ipdg tbody tr:not(.grp) { background: transparent; }
.story .mld-win .dg.mld-ipdg tbody tr.mld-alt { background: var(--w-apple-data-grid-row-alternate); }
.story .mld-ipfoot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.story .mld-ipfoot > .hbtn.mld-ipc { min-width: 92px; }
.story .mld-ipfoot > .hbtn.mld-ipa { min-width: 130px; }

/* ── tools/web_mockups/nest.css ── */
/* nest.py's kinds (prefix nst-). Every rule sits under .story; colours and sizes are the window's tokens (the WEB-THEME
   block of site.css, --w-*): never a raw hex. The shared pieces — the title bar, the app header, the controls kit
   (.hbtn, .mk-field, .mk-check, .mk-combo, .mk-seg, .mk-badge) — are site.css's, used as they are; only how Nest's own
   rows and cards sit is here. Sizes in px are the code's own (NestWindow.xaml, Controls.xaml's AppleTreeViewItem and
   AppleCard, SuiteProgressDialog.xaml). */

/* ── the stage ── */
.story .nst-stage { width: 100%; display: flex; justify-content: center; min-width: 0; }
.story .nst-win { min-width: 0; }
.story .nst-body { padding: 8px 20px 16px; color: var(--w-text-primary); font-size: var(--w-fs-body); }

/* ── the main window, drawn at 1180 (nest.py: THE SIZE) and scaled whole. Only inside a beat: the manual's figure tool
   draws it alone, at 1:1. The window keeps its real width and the wrapper scales it (zoom) to --nst-bw; the stage
   centres it on the beat's column, past the column's edges on a big screen. A width W is used only from a viewport of
   W + 90 (the beat's rail, a scroll bar, a margin); below 730 the window scrolls. ── */
.story .nst-fit { position: relative; z-index: 2; flex: none; width: var(--nst-bw, 1180px); }
.story .nst-fit > .capwin.nst-win { width: 1180px; max-width: none; zoom: var(--nst-z, 1); }
.story .beat-media .nst-fit { --nst-z: 1; --nst-bw: 1180px; }
@media (max-width: 1269px) { .story .beat-media .nst-fit { --nst-z: .8814; --nst-bw: 1040px; } }
@media (max-width: 1129px) { .story .beat-media .nst-fit { --nst-z: .7627; --nst-bw: 900px; } }
@media (max-width: 1029px) { .story .beat-media .nst-fit { --nst-z: .6949; --nst-bw: 820px; } }
@media (max-width: 939px) { .story .beat-media .nst-fit { --nst-z: .6271; --nst-bw: 740px; } }
@media (max-width: 859px) { .story .beat-media .nst-fit { --nst-z: .5593; --nst-bw: 660px; } }
@media (max-width: 779px) { .story .beat-media .nst-fit { --nst-z: .5085; --nst-bw: 600px; } }
@media (max-width: 729px) {
  .story .beat-media .nst-fit { flex: 1 1 auto; width: 100%; overflow-x: auto; padding-bottom: 18px; }
}

/* ── the header (AppHeader Margin 0,4,0,8) ── */
.story .nst-win .apphdr { margin: 4px 0 8px; }

/* ── row 1: search (240) · Unused only · Analyse all · the summary, last and trimmed ── */
.story .nst-ctl { display: flex; align-items: center; margin-bottom: 8px; min-width: 0; }
.story .nst-ctl > .mk-field { flex: none; }
.story .nst-ctl > :is(.mk-check, .hbtn) { flex: none; margin-left: 14px; }
.story .nst-sum { flex: 1 1 auto; min-width: 0; margin-left: 14px; font-size: var(--w-fs-subhead); color: var(--w-text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── the cards (AppleCard: the surface, a subtle edge, Radius.Card, Shadow.Card) ── */
.story .nst-card { box-sizing: border-box; min-width: 0; background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-card); box-shadow: var(--w-shadow-card); }
.story .nst-lbl { font-size: var(--w-fs-subhead); font-weight: var(--w-fw-semibold); color: var(--w-text-secondary); }

/* ── row 2: the tree (2*) and the detail card (1*, MinWidth 260, 12 apart) ── */
.story .nst-main { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); align-items: stretch; }
.story .nst-tree { padding: 6px; overflow: hidden; }
.story .nst-full .nst-tree { min-height: 264px; }

/* a TreeViewItem: Border padding 2,3 (the selection fills it, from the node's indent on), the 16 of the expander, then
   the row's StackPanel (Margin 0,1): name · category · usage · shared · ×N · linked · size */
.story .nst-tr { display: flex; align-items: center; min-width: 0; padding: 3px 2px;
  margin-left: calc(var(--nst-d, 0) * 16px); border-radius: var(--w-radius-small); }
.story .nst-tr.sel { background: var(--w-bg-selected); }
.story .nst-tw { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 20px; }
.story .nst-chev { width: 6px; height: 8px; fill: none; stroke: var(--w-text-secondary); stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round; }
.story .nst-chev.open { transform: rotate(90deg); }
.story .nst-rc { display: flex; align-items: center; min-width: 0; margin: 1px 0; }
.story .nst-nm { flex: 0 1 auto; min-width: 0; max-width: 460px; font-size: var(--w-fs-body); color: var(--w-text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .nst-cat { flex: none; margin-left: 8px; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); white-space: nowrap; }
.story .nst-tr .mk-badge { flex: none; }
.story .nst-tr .nst-ub { margin-left: 8px; }
.story .nst-tr :is(.nst-sb, .nst-ab) { margin-left: 6px; }
.story .nst-tr .nst-b3 { color: var(--w-text-tertiary); }
.story .nst-x { flex: none; margin-left: 8px; font-size: var(--w-fs-footnote); color: var(--w-text-secondary); white-space: nowrap; }
.story .nst-size { flex: none; margin-left: 8px; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); white-space: nowrap; }

/* the detail card (Padding 16,12; a DockPanel: title, body, the links, and «Select placed instances» docked at the foot) */
.story .nst-det { display: flex; flex-direction: column; margin-left: 12px; padding: 12px 16px; }
.story .nst-dt { font-size: var(--w-fs-subhead); font-weight: var(--w-fw-semibold); color: var(--w-text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .nst-db { margin: 6px 0 8px; font-size: var(--w-fs-footnote); line-height: 1.33; color: var(--w-text-secondary);
  white-space: pre-wrap; }
.story .nst-dl { margin: 2px 0; font-size: var(--w-fs-footnote); line-height: 1.33; color: var(--w-text-primary); white-space: pre-wrap; }
.story .nst-dsel { margin-top: auto; padding-top: 8px; overflow: hidden; }   /* a longer caption is clipped by the card */
.story .nst-dsel > .hbtn.link { font-size: var(--w-fs-body); }
.story .nst-pre { white-space: pre; }

/* ── row 3: CLEANUP (its label keeps SectionLabel's 8 below, so it sits a little high) · the total · Copy unused list ── */
.story .nst-clean { display: flex; align-items: center; margin-top: 12px; padding: 10px 16px; }
.story .nst-clean > .nst-lbl { flex: none; margin-bottom: 8px; }
.story .nst-ct { flex: 1 1 auto; min-width: 0; margin: 0 12px 0 14px; font-size: var(--w-fs-subhead); color: var(--w-text-secondary);
  white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.story .nst-clean > .hbtn { flex: none; }

/* ── row 4: the write card (Padding 16,12) ── */
.story .nst-wr { margin-top: 12px; padding: 12px 16px; }
.story .nst-wr > .nst-lbl { margin-bottom: 8px; }
.story .nst-blurb { margin: 4px 0 10px; font-size: var(--w-fs-subhead); line-height: 1.33; color: var(--w-text-secondary); }
.story .nst-prow { display: flex; align-items: center; }
.story .nst-plbl { margin-right: 10px; font-size: var(--w-fs-body); color: var(--w-text-primary); }
.story .nst-combo .mk-combo { min-width: 260px; }
.story .nst-combo .mk-combo > span { white-space: pre; }
.story .nst-prow > .seg { margin-left: 16px; }
.story .nst-pv { display: flex; align-items: center; margin-top: 10px; }
.story .nst-pvt { flex: 1 1 auto; min-width: 0; margin-right: 12px; font-size: var(--w-fs-subhead); line-height: 1.33;
  color: var(--w-text-secondary); }
.story .nst-pv > .hbtn { flex: none; }

/* ── row 5: the legend, the status line, Close. In the XAML the three share one Grid cell: the status is right-aligned
   100 from the edge (so it may take up to the row less 100), the legend left-aligned. Where the two would meet, the
   legend gives way here (in the app they overlap). ── */
.story .nst-foot { display: flex; align-items: center; min-width: 0; margin-top: 14px; }
.story .nst-leg { flex: 0 1 auto; min-width: 0; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .nst-sp { flex: 1 1 0; min-width: 8px; }
.story .nst-st { flex: 0 0 auto; min-width: 0; max-width: calc(100% - 100px); font-size: var(--w-fs-subhead);
  color: var(--w-text-secondary); white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.story .nst-foot > .hbtn { flex: none; margin-left: 12px; min-width: var(--w-size-button-min-width); }

/* ── the crops: a part of the window under its title bar ── */
.story .nst-crop .nst-tree { min-height: 0; }
.story .nst-crop-bottom .nst-clean { margin-top: 0; }

/* ══ nest-progress: SuiteProgressDialog (600 wide, Margin 28,8,28,20) ══ */
.story .nst-prog { max-width: 100%; }
.story .nst-pbody { padding: 8px 28px 20px; color: var(--w-text-primary); }
.story .nst-ph { display: flex; align-items: flex-start; gap: 12px; margin-top: 4px; }
.story .nst-pt { flex: 1 1 auto; min-width: 0; font-size: var(--w-fs-title2); font-weight: var(--w-fw-semibold); line-height: 1.33;
  color: var(--w-text-primary); }
.story .nst-ph > .hbtn { flex: none; min-width: var(--w-size-button-min-width); }
.story .nst-pst { display: flex; align-items: center; margin-top: 14px; min-width: 0; }
.story .nst-pphase { flex: none; margin-right: 10px; font-size: var(--w-fs-subhead); font-weight: var(--w-fw-semibold);
  color: var(--w-accent-text); }
.story .nst-pstep { min-width: 0; font-size: var(--w-fs-body); color: var(--w-text-secondary); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; }
.story .nst-pclk { display: flex; align-items: center; margin: 14px 0 4px; min-width: 0; }
.story .nst-ptime { flex: 1 1 auto; min-width: 0; margin-right: 12px; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary);
  white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.story .nst-ppct { flex: none; font-size: var(--w-fs-subhead); font-weight: var(--w-fw-semibold); color: var(--w-text-primary);
  font-variant-numeric: tabular-nums; }
.story .nst-pbar { height: 6px; border-radius: 3px; background: var(--w-bg-hover); overflow: hidden; }
.story .nst-pbar > i { display: block; height: 100%; border-radius: 3px; background: var(--w-accent-text); }
.story .nst-plh { margin: 16px 0 4px; font-size: var(--w-fs-footnote); font-weight: var(--w-fw-semibold); color: var(--w-text-tertiary); }
.story .nst-plog { padding: 8px 10px; border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-small);
  background: var(--w-bg-subtle); }
.story .nst-plog > div { margin: 1px 0; font-size: var(--w-fs-footnote); line-height: 1.33; color: var(--w-text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .nst-phint { margin-top: 14px; text-align: center; font-size: var(--w-fs-footnote); color: var(--w-text-secondary); }

/* ── tools/web_mockups/opes.css ── */
/* opes.py's kinds (prefix opx-). Every rule sits under .story; colours and sizes are the window's tokens (the WEB-THEME
   block of site.css, --w-*): never a raw hex. The shared pieces — the title bar, the app header, .hbtn, .mk-bar,
   .mk-badge, .mk-field, .ck, and relay-excel's sheet — are site.css's, used as they are; what is here is the layout of
   OpesWindow.xaml and of the two library dialogs Opes raises, with the XAML's own margins. */

/* ── composition ─────────────────────────────────────────────────────────────────────────────────────────────── */
.story .opx-stage { width: 100%; display: flex; justify-content: center; min-width: 0; }
.story .opx-stack { display: grid; gap: 18px; justify-items: center; width: 100%; min-width: 0; }
.story .opx-stack > .stagecard { width: 100%; display: flex; justify-content: center; min-width: 0; }
.story .opx-xl { min-width: 0; }
/* relay-excel's window fills the wrapper (its own default is 420 outside a wide beat, i.e. in a manual figure) */
.story .opx-xl .capwin { width: 100%; }
/* the workbook's caption keeps the three spaces ReviewWorkbook.Write puts between its parts; its legend (A3) is
   italic there (Style.Font.SetItalic) */
.story .opx-xl .rx-cap { white-space: pre-wrap; }
.story .opx-xl .rx-legend { font-style: italic; }
/* Excel's General alignment: numbers right (Width mm, Height mm: columns 5 and 6 after the row number), TRUE/FALSE
   centred (Approved: column 9); text, the headers included, stays left */
.story .opx-xl .xls td:nth-child(5), .story .opx-xl .xls td:nth-child(6) { text-align: right; }
.story .opx-xl .xls td:nth-child(9) { text-align: center; }
/* every window's width is its XAML Width, written inline by opes.py (_frame): the column clamps it here */
.story .opx-win { max-width: 100%; }
.story .opx-body { font-family: var(--w-font-sans), var(--font); color: var(--w-text-primary); }
.story .opx-ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ── the main window (OpesWindow.xaml: Grid Margin 20,6,20,14; header · toolbar · summary · content · footer) ── */
.story .opx-main .opx-body { padding: 6px 20px 14px; display: flex; flex-direction: column; min-width: 0; }
.story .opx-main .apphdr { margin-bottom: 10px; }

/* the toolbar: two group bars at the left, «Phase-0 spike» (Ghost) docked right — on one line in the 1320 window;
   where the page is narrower the second bar wraps under the first and the spike stays at the right of the last line */
.story .opx-tb { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; min-width: 0; }
.story .opx-spike { margin-left: auto; }

/* the run summary: Title3 · Subhead · Footnote (Margin 2,0,0,10) */
.story .opx-sum { margin: 0 0 10px 2px; min-width: 0; }
.story .opx-t3 { font-size: var(--w-fs-title3); font-weight: var(--w-fw-semibold); line-height: 1.3; color: var(--w-text-primary); }
.story .opx-sh { font-size: var(--w-fs-subhead); line-height: 1.4; color: var(--w-text-secondary); }
.story .opx-fn { font-size: var(--w-fs-footnote); line-height: 1.4; color: var(--w-text-tertiary); }
.story .opx-sum .opx-sh, .story .opx-sum .opx-fn { margin-top: 2px; }
.story .opx-body1 { font-size: var(--w-fs-body); line-height: 1.35; color: var(--w-text-primary); }

/* the content: the hosts card (360) · 16 · the selected host's card (*) — each an AppleCard */
.story .opx-cols { display: grid; grid-template-columns: minmax(0, 360fr) minmax(0, 904fr); gap: 16px; align-items: stretch;
  min-width: 0; }
@media (max-width: 760px) { .story .opx-cols { grid-template-columns: minmax(0, 1fr); } }
.story .opx-card { display: flex; flex-direction: column; min-width: 0; box-sizing: border-box; padding: 14px 12px;
  background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-card); }
.story .opx-sec { margin: 4px 8px 6px; font-size: var(--w-fs-subhead); font-weight: var(--w-fw-semibold);
  color: var(--w-text-secondary); }
.story .opx-list { position: relative; display: flex; flex-direction: column; min-width: 0; }

/* a host: its label (Body) and facts (Footnote), both trimmed, and its badge; the selected one in BgSelected */
.story .opx-hrow { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: var(--w-radius-small); min-width: 0; }
.story .opx-hrow.sel { background: var(--w-bg-selected); }
.story .opx-hl { flex: 1 1 auto; min-width: 0; }
.story .opx-hrow > .mk-badge { flex: none; }

/* the selected host: label (Title3) and facts (Subhead), the subtle group bar on its own line, the proposals, notes */
.story .opx-hh { margin: 4px 8px 8px; min-width: 0; }
.story .opx-hh .opx-sh { margin-top: 2px; }
.story .opx-hbar { margin: 0 8px 8px; }
.story .opx-prow { padding: 10px 10px; border-radius: var(--w-radius-small); min-width: 0; }
.story .opx-pl { display: flex; align-items: center; min-width: 0; }
.story .opx-pl > .ck { margin-right: 10px; }
.story .opx-mark { flex: none; margin-right: 12px; font-family: var(--w-font-mono); font-size: var(--w-fs-headline);
  font-weight: var(--w-fw-semibold); color: var(--w-text-primary); white-space: nowrap; }
.story .opx-size { display: inline-flex; align-items: center; flex: none; }
.story .opx-aside { margin: 0 4px; font-size: var(--w-fs-subhead); color: var(--w-text-secondary); }
.story .opx-svc { flex: 1 1 auto; min-width: 0; margin: 0 10px; font-size: var(--w-fs-subhead); line-height: 1.35;
  color: var(--w-text-secondary); }
.story .opx-pl > .mk-badge { flex: none; margin-right: 8px; }
.story .opx-pl > .hbtn.link { flex: none; }
/* the findings: 28 in (the box, its gap and the row's 2), Footnote, each in its own severity's ink */
.story .opx-finds { margin: 3px 0 0 28px; }
.story .opx-find { font-size: var(--w-fs-footnote); line-height: 1.45; color: var(--w-text-secondary); }
.story .opx-find.warn { color: var(--w-warning-ink); }
.story .opx-find.proh { color: var(--w-danger-ink); }
.story .opx-applied { margin: 2px 0 0 28px; font-size: var(--w-fs-footnote); color: var(--w-danger-ink); }
.story .opx-applied.ok { color: var(--w-success-ink); }
.story .opx-notes { margin: 8px 8px 4px; font-size: var(--w-fs-footnote); line-height: 1.45; color: var(--w-text-tertiary); }
/* the list's thin scroll bar, when the block shows part of a longer list */
.story .opx-thumb { position: absolute; right: -6px; width: 4px; border-radius: 2px; background: var(--w-stroke-strong); }

/* the status line (Subhead, trimmed: Margin 2,10,2,0) */
.story .opx-foot { display: flex; align-items: center; min-width: 0; margin: 10px 2px 0; }

/* ── AppleErrorDialog (460; Margin 28,12,28,20): the disc, the heading, ONE block of body text 56 in ──────── */
.story .opx-ed .opx-body { padding: 12px 28px 20px; }
.story .opx-ed-head { display: flex; align-items: flex-start; margin-top: 8px; }
.story .opx-ed-disc { flex: none; width: 40px; height: 40px; margin: 2px 16px 0 0; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; font: 700 22px/1 var(--w-font-sans); color: var(--w-text-on-accent); }
.story .opx-ed-disc.warning { background: var(--w-warning); }
.story .opx-ed-disc.info { background: var(--w-accent); }
.story .opx-ed-disc.error { background: var(--w-danger); }
.story .opx-ed-h { min-width: 0; font-size: var(--w-fs-title3); font-weight: var(--w-fw-semibold); line-height: 1.3;
  color: var(--w-text-primary); }
.story .opx-ed-body { margin: 6px 0 16px 56px; font-size: var(--w-fs-body); line-height: 1.45; color: var(--w-text-secondary);
  white-space: pre-wrap; }
.story .opx-ed-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.story .opx-ed-foot > .hbtn { min-width: var(--w-size-button-min-width); }

/* ── AppleInputDialog, multiline (620 × 460; Margin 28,12,28,20): heading, body, the text area, the hint ────── */
.story .opx-in .opx-body { display: flex; flex-direction: column; box-sizing: border-box; min-height: 400px;
  padding: 12px 28px 20px; }
.story .opx-dh { margin-top: 8px; font-size: var(--w-fs-title3); font-weight: var(--w-fw-semibold); line-height: 1.3;
  color: var(--w-text-primary); }
.story .opx-db { margin: 6px 0 14px; font-size: var(--w-fs-body); line-height: 1.45; color: var(--w-text-secondary); }
/* AppleTextArea, focused (the dialog puts the caret at the end on Loaded): the accent edge */
.story .opx-area { flex: 1 1 auto; min-height: 160px; box-sizing: border-box; padding: 8px 12px; white-space: pre-wrap;
  border: 1px solid var(--w-accent); border-radius: var(--w-radius-medium); background: var(--w-bg-surface);
  font-size: var(--w-fs-body); line-height: 1.45; color: var(--w-text-primary); }
.story .opx-caret { display: inline-block; width: 1px; height: 1.15em; margin-left: 1px; vertical-align: text-bottom;
  background: var(--w-text-primary); }
.story .opx-hint { margin: 8px 0 0 2px; font-size: var(--w-fs-footnote); color: var(--w-text-secondary); }
.story .opx-dfoot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.story .opx-dfoot > .hbtn { min-width: var(--w-size-button-min-width); }

/* ── tools/web_mockups/palette.css ── */
/* palette.py's kinds (prefix plx-). Every rule sits under .story; colours and sizes are the window's tokens (the
   WEB-THEME block of site.css, --w-*): never a raw hex. The shared pieces — the title bar, the app header, .hbtn,
   .seg, .ck, .dg, .tablewrap, the mk-* controls — are site.css's, used as they are. A filter's own colour (a swatch,
   a line preview) is sample DATA and comes inline from the media block (ctx.CL_SW). */

/* ── the stage and the window ── */
.story .plx-stage { width: 100%; display: flex; justify-content: center; min-width: 0; }
.story .plx-stack { display: grid; gap: 18px; justify-items: center; width: 100%; min-width: 0; }
.story .plx-stack > .stagecard { width: 100%; display: flex; justify-content: center; }
.story .plx-win { width: 100%; min-width: 0; }
.story .plx-win.plx-w620 { width: 560px; }
.story .plx-win.plx-w720 { width: 680px; }
.story .plx-win.plx-w860 { width: 820px; }
.story .plx-body { padding: 12px 20px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
  font-size: var(--w-fs-callout); color: var(--w-text-primary); }
.story .plx-body .apphdr { margin-bottom: 0; }
.story .plx-body .tablewrap { min-width: 0; }
.story .plx-body .tscroll { overflow-x: auto; }

/* ── rows of controls ── */
.story .plx-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.story .plx-bar.plx-right { justify-content: flex-end; }
.story .plx-bar.plx-nowrap { flex-wrap: nowrap; }
.story .plx-bar.plx-nowrap > * { flex: none; }
.story .plx-bar.plx-nowrap > .plx-sp { flex: 1 1 auto; }
.story .plx-bar.plx-nowrap > .mk-search { flex: 0 1 auto; min-width: 120px; }
.story .plx-bar > .plx-mut { white-space: nowrap; }
.story .plx-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.story .plx-sp { flex: 1 1 auto; }
.story .plx-grow { flex: 1 1 auto; min-width: 0; }
.story .plx-modes { display: flex; justify-content: flex-end; margin-top: -2px; }
.story .plx-mut { color: var(--w-text-secondary); }
.story .plx-sm { font-size: var(--w-fs-callout); }
.story .plx-xs { font-size: var(--w-fs-subhead); }
.story .plx-pre { white-space: pre; }
.story .plx-strong { font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .plx-lead { font-size: var(--w-fs-callout); color: var(--w-text-secondary); line-height: 1.45; }
.story .plx-lead b { color: var(--w-text-primary); font-weight: var(--w-fw-semibold); }
.story .plx-lead .plx-mut { margin-top: 4px; }
.story .plx-lbl { font-size: var(--w-fs-subhead); font-weight: var(--w-fw-semibold); color: var(--w-text-secondary);
  margin-bottom: 4px; }
.story .plx-lbl.plx-inl { margin: 0; }
.story .plx-lbl.plx-gap { margin-top: 10px; }
.story .plx-note, .story .plx-foot-note { font-size: var(--w-fs-subhead); color: var(--w-text-secondary); min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .plx-foot-note { color: var(--w-text-tertiary); flex: 1 1 auto; }
.story .plx-count { font-size: var(--w-fs-subhead); color: var(--w-text-secondary); }

/* AppleCard (a surface card) */
.story .plx-card { background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-card); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.story .plx-card.plx-row { flex-direction: row; align-items: center; }
.story .plx-card.plx-flush { padding: 0; gap: 0; }
.story .plx-card.plx-flush > .tablewrap { border: 0; border-radius: 0; background: none; }
.story .plx-card > .tablewrap { min-width: 0; }

/* AppleCardExpander: the chevron, the Tag, the live summary at the right */
.story .plx-xp { background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-card); min-width: 0; }
.story .plx-xp-hd { display: flex; align-items: center; gap: 10px; padding: 11px 16px; min-width: 0; }
.story .plx-xp-hd b { font-size: var(--w-fs-body); font-weight: var(--w-fw-semibold); color: var(--w-text-primary);
  white-space: nowrap; }
.story .plx-xp-sum { margin-left: auto; font-size: var(--w-fs-callout); color: var(--w-text-secondary); min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .plx-xp-body { padding: 0 16px 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.story .plx-chev { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--w-text-secondary); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; }
.story :is(.plx-xp.open, .plx-exp.open) .plx-chev { transform: rotate(90deg); }
/* AppleExpander (no card): the chevron, its words, the header's own line */
.story .plx-exp { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 2px 0; }
.story .plx-exp b { font-size: var(--w-fs-body); font-weight: var(--w-fw-semibold); white-space: nowrap; }
.story .plx-exp .plx-mut { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the source chip, the multi-edit bar, the staged dot, the icon buttons */
.story .plx-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--w-radius-small);
  background: var(--w-bg-subtle); color: var(--w-text-secondary); font-size: var(--w-fs-callout); white-space: nowrap;
  max-width: 300px; overflow: hidden; text-overflow: ellipsis; }
.story .plx-selbar { background: var(--w-accent-subtle); color: var(--w-accent-ink); border-radius: var(--w-radius-medium);
  padding: 5px 10px; font-weight: var(--w-fw-semibold); font-size: var(--w-fs-callout); }
.story .plx-dotmod { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: var(--w-accent); margin-right: 7px; vertical-align: 1px; }
.story .plx-dotsp { display: inline-block; flex: none; width: 7px; margin-right: 7px; }
.story .plx-gridrow { display: flex; align-items: center; gap: 14px; min-width: 0; }
.story .plx-gridrow > .tablewrap { flex: 1 1 auto; }
.story .plx-updown { display: flex; flex-direction: column; gap: 12px; flex: none; }
.story .plx-ibtn { display: inline-flex; align-items: center; justify-content: center; width: var(--w-size-control);
  height: var(--w-size-control); border-radius: var(--w-radius-button); border: 1px solid var(--w-stroke-default);
  background: var(--w-bg-surface); color: var(--w-text-primary); box-sizing: border-box; }
.story .plx-ibtn svg { width: 16px; height: 16px; }
.story .plx-more { display: inline-flex; color: var(--w-text-secondary); }
.story .plx-more svg { width: 16px; height: 16px; }

/* table cells */
.story .plx-tbl tr.plx-staged { background: var(--w-accent-subtle); }
.story .plx-tbl tr.sel { background: var(--w-apple-data-grid-row-highlight); }
/* fixed layout: the XAML's pixel widths are kept, the star columns share the rest and trim (TextTrimming) */
.story .plx-tbl table.dg { table-layout: fixed; width: 100%; min-width: 0; }   /* site.css gives every .dg 900 */
.story .plx-tbl.plx-cropr { -webkit-mask-image: linear-gradient(to right, var(--w-text-primary) 84%, transparent);
  mask-image: linear-gradient(to right, var(--w-text-primary) 84%, transparent); }
.story .plx-tbl.plx-cropr .tscroll { overflow: hidden; }
.story .plx-nm { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; white-space: nowrap; }
.story .plx-nm > * { flex: none; }
.story .plx-nm > .plx-t { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.story .plx-nm .plx-dotmod { margin-right: 1px; }
.story .plx-cellst { display: block; min-width: 0; }
.story .plx-cellst .mk-status { display: block; overflow: hidden; text-overflow: ellipsis; }
.story .plx-cellst .mk-status::before { display: inline-block; margin-right: 8px; vertical-align: 1px; }
.story .plx-two { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.story .plx-two > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .plx-tbl td.plx-dif { background: var(--w-warning-subtle); }
.story .plx-tbl tr.plx-dim td { opacity: .7; }
.story .plx-tbl tr.plx-marked { background: var(--w-accent-subtle); }
.story .plx-lock { font-size: 12px; margin-right: 6px; }

/* the composite look cell: line preview · fore/back swatch · pattern · weight */
.story .plx-look { display: flex; align-items: center; gap: 8px; white-space: nowrap; min-width: 0; max-width: 100%; }
.story .plx-look.plx-ctr { justify-content: center; }
.story .plx-ln { display: inline-block; flex: none; width: 36px; height: 0; border-top: 2px solid currentColor; border-radius: 1px; }
.story .plx-ln.dash { border-top-style: dashed; }
.story .plx-sw { display: inline-block; flex: none; width: 16px; height: 16px; box-sizing: border-box; border-radius: 3px;
  border: 1px solid var(--w-stroke-default);
  background: linear-gradient(135deg, var(--sw) 0 50%, color-mix(in srgb, var(--sw) 35%, var(--w-bg-elevated)) 50% 100%); }
.story .plx-pat { flex: 0 1 auto; min-width: 0; color: var(--w-text-secondary); font-size: var(--w-fs-callout);
  overflow: hidden; text-overflow: ellipsis; }
.story .plx-wt { flex: none; }
.story .plx-sw.solid { width: 14px; height: 14px; background: var(--sw); }
.story .plx-wt { color: var(--w-accent-text); font-weight: var(--w-fw-semibold); font-size: var(--w-fs-callout); }
.story .plx-vis { color: var(--w-success); font-weight: var(--w-fw-bold); }

/* the commit bar of the Propagate page */
.story .plx-commit { display: flex; align-items: center; gap: 10px; min-width: 0; }
.story .plx-commit .plx-note { flex: 1 1 auto; }
.story .plx-commit > .hbtn { flex: none; }
.story .plx-pos { display: inline-flex; align-items: center; gap: 8px; }
.story .plx-poslbl { font-size: var(--w-fs-callout); color: var(--w-text-secondary); white-space: nowrap; }

/* the Filter sets page */
.story .plx-setsfoot { display: flex; align-items: center; gap: 14px; min-width: 0; }
.story .plx-setsfoot .plx-count { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .plx-setsfoot .plx-note { margin-left: auto; flex: 0 1 auto; }

/* a footer row */
.story .plx-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; margin-top: 4px; }
.story .plx-foot > .hbtn, .story .plx-foot > .mk-bar { flex: none; }
.story .plx-foot-st { flex: 1 1 220px; font-size: var(--w-fs-callout); color: var(--w-text-secondary); min-width: 0;
  margin: 0 6px; line-height: 1.4; }
.story .plx-foot-st b { color: var(--w-text-primary); font-weight: var(--w-fw-semibold); }

/* Create filters by value: three cards side by side, then the pattern and the apply ticks */
.story .plx-pvs { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr) minmax(0, 1.5fr); gap: 12px; }
.story .plx-pv { background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-card);
  padding: 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.story .plx-pvh { display: flex; align-items: center; gap: 6px; }
.story .plx-pvh b { font-size: var(--w-fs-title3); font-weight: var(--w-fw-semibold); white-space: nowrap; }
.story .plx-pvsub { font-size: var(--w-fs-subhead); line-height: 1.4; }
.story .plx-pvr { display: flex; align-items: center; gap: 8px; min-height: 26px; min-width: 0; font-size: var(--w-fs-body); }
.story .plx-par { padding: 0 8px; border-radius: var(--w-radius-small); }
.story .plx-par.sel { background: var(--w-bg-selected); }
.story .plx-par.off .plx-pn { color: var(--w-text-secondary); font-style: italic; }
.story .plx-par .plx-mut { font-size: var(--w-fs-subhead); }
.story .plx-link { color: var(--w-accent-text); font-size: var(--w-fs-callout); padding: 0 8px; margin-top: -4px; }
.story .plx-val { min-height: 28px; }
.story .plx-val > span:nth-child(3) { white-space: nowrap; }
.story .plx-vsw { flex: none; width: 16px; height: 16px; border-radius: 4px; }
.story .plx-vn { font-size: var(--w-fs-callout); white-space: nowrap; }
.story .plx-banner { display: flex; gap: 8px; border-radius: var(--w-radius-medium); padding: 6px 10px;
  font-size: var(--w-fs-subhead); line-height: 1.4; }
.story .plx-banner.plx-ind { margin-left: 24px; padding-left: 10px; }
.story .plx-pvsub.plx-ind { padding-left: 24px; }
.story .plx-banner.info { background: var(--w-info-subtle); color: var(--w-info-ink); }
.story .plx-banner.warn { background: var(--w-warning-subtle); color: var(--w-warning-ink); }
.story .plx-pvfoot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; }
.story .plx-pat-blk .mk-field { max-width: 100%; }
.story .plx-apply-blk { display: flex; flex-direction: column; gap: 6px; }
.story .plx-ind { padding-left: 24px; }
@media (max-width: 900px) {
  .story .plx-pvs { grid-template-columns: minmax(0, 1fr); }
  .story .plx-pvfoot { grid-template-columns: minmax(0, 1fr); }
}

/* Capture filter sets: the source card, proposals | members */
.story .plx-cap { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 16px; min-width: 0; }
.story .plx-cap-l, .story .plx-cap-r { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.story .plx-list { padding: 6px; }
.story .plx-prop { display: flex; gap: 10px; align-items: flex-start; padding: 6px 8px; border-radius: var(--w-radius-small);
  background: var(--w-bg-selected); }
.story .plx-prop .ck { margin-top: 1px; }
.story .plx-badges { margin-top: 5px; display: flex; gap: 6px; }
.story .plx-sepcard { gap: 4px; margin-top: 8px; }
.story .plx-sepcard.plx-row { gap: 16px; margin-top: 0; }
.story .plx-mono { font-family: var(--w-font-mono); font-size: var(--w-fs-callout); color: var(--w-text-primary);
  margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .plx-cap-l .mk-field { width: 100%; box-sizing: border-box; }
@media (max-width: 900px) { .story .plx-cap { grid-template-columns: minmax(0, 1fr); } }

/* Edit filter set: name | band, the rule, the source strip, the seam */
.story .plx-ident { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.story .plx-ident .mk-field { width: 100%; box-sizing: border-box; }
.story .plx-strip { display: flex; align-items: center; gap: 10px; min-width: 0; }
.story .plx-strip > * { flex: none; }
.story .plx-strip > .plx-foot-note { flex: 1 1 auto; }
.story .plx-strip .plx-lbl { margin: 0; }
.story .plx-seam { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.story .plx-scope { padding: 14px; gap: 12px; }
.story .plx-sgrid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; align-items: center; }
.story .plx-sk { font-size: var(--w-fs-callout); color: var(--w-text-secondary); min-width: 52px; }
.story .plx-sv { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.story .plx-say { background: var(--w-accent-subtle); color: var(--w-text-primary); border-radius: var(--w-radius-medium);
  padding: 9px 12px; font-size: var(--w-fs-callout); line-height: 1.45; }
.story .plx-crop .plx-body { padding-bottom: 0; }
.story .plx-cropfade { height: 18px; margin: -6px -20px 0; }

/* the end-of-run report (SuiteResultDialog: Title2, the summary, the chips, a section's tag and card) */
.story .plx-rt { font-size: var(--w-fs-title2); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .plx-rsum { font-size: var(--w-fs-subhead); color: var(--w-text-secondary); line-height: 1.45; margin-top: -2px; }
.story .plx-rchips { display: flex; flex-wrap: wrap; gap: 8px; }
.story .plx-rchip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 9px;
  font-size: var(--w-fs-body); background: var(--w-bg-subtle); color: var(--w-text-primary); }
.story .plx-rchip b { font-weight: var(--w-fw-semibold); }
.story .plx-rchip.ok { background: var(--w-success-subtle); color: var(--w-success-ink); }
.story .plx-rsec { font-size: var(--w-fs-subhead); font-weight: var(--w-fw-semibold); color: var(--w-text-tertiary);
  margin: 4px 0 -4px 2px; white-space: pre; }
.story .plx-rsec .plx-mut { font-weight: var(--w-fw-regular); color: var(--w-text-tertiary); }
.story .plx-rcard { background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle); border-radius: 10px; padding: 4px 0; }
.story .plx-rl { padding: 7px 14px; font-size: var(--w-fs-callout); color: var(--w-text-secondary); line-height: 1.4; }
.story .plx-rl + .plx-rl { border-top: 1px solid var(--w-stroke-subtle); }
.story .plx-rcard.plx-scrolled { max-height: 236px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, var(--w-text-primary) 72%, transparent);
  mask-image: linear-gradient(to bottom, var(--w-text-primary) 72%, transparent); }

/* Set drift: the action cell's buttons (BtnCellAccion: a word, a second line naming the direction), the details */
.story .plx-acts { display: inline-flex; align-items: center; gap: 4px; }
.story .plx-cellbtn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 3px 2px; border-radius: var(--w-radius-small); font-size: var(--w-fs-callout); color: var(--w-text-primary);
  line-height: 1.2; white-space: nowrap; }
.story .plx-cellbtn small { font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); }
.story .plx-cellbtn.dis { opacity: .4; }
.story .plx-drift tr.plx-details, .story .plx-drift tr.plx-details:nth-child(even) { background: var(--w-bg-subtle); }
.story .plx-drift tr.plx-details td { height: auto; padding: 10px 16px; white-space: normal;
  border-top: 1px solid var(--w-stroke-subtle); border-bottom: 1px solid var(--w-stroke-subtle); }
.story .plx-det { font-size: var(--w-fs-callout); color: var(--w-text-secondary); line-height: 1.45; }
.story .plx-fld { display: grid; grid-template-columns: auto minmax(200px, auto) minmax(0, 1fr); gap: 10px; align-items: center;
  margin-top: 6px; }
.story .plx-fld b { color: var(--w-text-primary); font-weight: var(--w-fw-semibold); white-space: nowrap; }
.story .plx-fld .plx-mut { overflow: hidden; text-overflow: ellipsis; padding-left: 4px; }
.story .plx-xs.plx-mut { color: var(--w-text-tertiary); }
.story .plx-scopeline { font-size: var(--w-fs-subhead); color: var(--w-text-tertiary); line-height: 1.45; padding: 8px 12px 10px; }

/* Compare views: the two pickers (a field that opens a picker), the legend */
.story .plx-ab { display: flex; align-items: flex-end; gap: 16px; min-width: 0; }
.story .plx-picker { display: flex; align-items: center; gap: 8px; height: var(--w-size-control); box-sizing: border-box;
  padding: 0 12px; border: 1px solid var(--w-stroke-default); border-radius: var(--w-radius-button);
  background: var(--w-bg-surface); min-width: 0; white-space: nowrap; overflow: hidden; }
.story .plx-picker b { font-size: var(--w-fs-body); font-weight: var(--w-fw-semibold); overflow: hidden; text-overflow: ellipsis; }
.story .plx-picker i { margin-left: auto; width: 10px; height: 6px; flex: none; background: var(--w-text-secondary);
  -webkit-mask: var(--mk-ico-chev) center / contain no-repeat; mask: var(--mk-ico-chev) center / contain no-repeat; }
.story .plx-vs { font-size: var(--w-fs-title3); font-weight: var(--w-fw-semibold); color: var(--w-text-secondary); padding-bottom: 6px; }
.story .plx-legend { display: inline-flex; align-items: center; gap: 5px; font-size: var(--w-fs-subhead); color: var(--w-text-tertiary);
  white-space: nowrap; }
.story .plx-legend .plx-dotmod { margin: 0 0 0 9px; }

/* Across views: the master list | the matrix */
.story .plx-av { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; min-width: 0; }
.story .plx-av-l, .story .plx-av-r { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.story .plx-mhead { background: var(--w-bg-subtle); border-bottom: 1px solid var(--w-stroke-subtle); padding: 8px 14px;
  font-size: var(--w-fs-subhead); font-weight: var(--w-fw-semibold); color: var(--w-text-secondary);
  border-radius: var(--w-radius-card) var(--w-radius-card) 0 0; }
.story .plx-mrow { margin: 3px 4px; padding: 7px 10px; border-radius: var(--w-radius-small); }
.story .plx-mrow.sel { background: var(--w-bg-selected); }
.story .plx-mrow.dim { opacity: .7; }
.story .plx-mname { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: var(--w-fs-callout); }
.story .plx-avh { flex-wrap: nowrap; }
.story .plx-avh > * { flex: none; }
.story .plx-avh b { white-space: nowrap; }
.story .plx-trim { flex: 0 1 auto !important; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .plx-mname b { font-weight: var(--w-fw-semibold); margin-right: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) { .story .plx-av { grid-template-columns: minmax(0, 1fr); } }

/* Consolidate: the group header row (GridGroups.HeaderTemplate) */
.story .plx-tbl tr.plx-grp td { height: auto; padding: 8px 12px; white-space: normal; }
.story .plx-grph { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.story .plx-grph .mk-badge { margin-left: 0; }
.story .plx-grph b { font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .plx-chev.open { transform: rotate(90deg); }
.story .plx-gsum { margin-left: 4px; font-weight: var(--w-fw-regular); }
.story .plx-gwarn { margin-top: 6px; padding: 5px 8px; border-radius: var(--w-radius-small); background: var(--w-warning-subtle);
  color: var(--w-warning-ink); font-size: var(--w-fs-callout); font-weight: var(--w-fw-regular); line-height: 1.4; }

/* Palette → Canon: the filter's menu and the rule it becomes */
.story .plx-handoff { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 18px; align-items: center;
  width: 100%; max-width: 760px; }
.story .plx-hand { background: var(--w-bg-elevated); border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-card);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; color: var(--w-text-primary); }
.story .plx-hand .an { font-size: 22px; line-height: 1; }
.story .plx-hrow { display: flex; flex-direction: column; gap: 2px; font-size: var(--w-fs-body); }
.story .plx-hrow .plx-mut { font-size: var(--w-fs-callout); }
.story .plx-menu { border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-medium); background: var(--w-bg-elevated);
  padding: 4px; box-shadow: 0 6px 18px color-mix(in srgb, var(--w-shadow-colour) 14%, transparent); }
.story .plx-mi { padding: 6px 10px; border-radius: var(--w-radius-small); font-size: var(--w-fs-callout); }
.story .plx-mi.on { background: var(--w-bg-selected); color: var(--w-accent-ink); }
.story .plx-rule { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; font-size: var(--w-fs-body); }
.story .plx-rule .plx-nm { white-space: normal; }
.story .plx-rule .plx-mut { font-size: var(--w-fs-callout); }
.story .plx-arrow { font-size: 22px; color: var(--w-text-tertiary); }
@media (max-width: 700px) { .story .plx-handoff { grid-template-columns: minmax(0, 1fr); } .story .plx-arrow { justify-self: center; transform: rotate(90deg); } }
.story .plx-msep { height: 1px; margin: 4px 6px; background: var(--w-stroke-subtle); }
.story .plx-rail { width: var(--w-size-control); }
.story .plx-lead1 { font-size: var(--w-fs-body); }
.story .plx-tbl tr.plx-grp, .story .plx-tbl tr.plx-grp:nth-child(even) { background: transparent; }
.story .plx-tbl tr.plx-grp td { border-bottom: 1px solid var(--w-stroke-subtle); }
.story .plx-more svg { display: block; }
.story .plx-nm.plx-keep { overflow: hidden; }
.story .plx-nm.plx-keep > .plx-t { flex: none; }
.story .plx-foot-g { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.story .plx-foot-r { margin-left: auto; }
.story .plx-mem .plx-ln { width: 26px; }
/* the hand-off in a narrow beat (half the page): the two cards one above the other */
.story .plx-stage.plx-cq { container-type: inline-size; }
@container (max-width: 560px) {
  .story .plx-handoff { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .story .plx-arrow { justify-self: center; transform: rotate(90deg); }
}

/* checked against the app (refresh phase C, verify pass) */
/* a footer whose left block fills the narrower stage: the status goes down with the closing buttons, one line */
.story .plx-foot.plx-foot-2 > .plx-foot-st { flex: 1 1 360px; margin-left: 2px; }
/* Create filters by value: the «created» badge in the row's last column, at its right end */
.story .plx-val > .plx-vbadge { margin-left: auto; }
/* a radio that cannot be chosen (RadioFuente on a row that does not apply the filter) */
.story .mk-radio.plx-dis { opacity: var(--w-opacity-disabled); }
/* Across views: the chevron of a row that owns inherited views (AppleChevronToggle, collapsed) */
.story .plx-chevt { display: inline-flex; flex: none; margin-right: -2px; }
/* FilaAv: a row that does not apply the filter, a template group */
.story .plx-tbl tr.plx-op65 td { opacity: .65; }
.story .plx-tbl tr.plx-op85 td { opacity: .85; }
/* TxtNombreVista on a row with no data of its own: muted and italic */
.story .plx-nm.plx-nodata > .plx-t { color: var(--w-text-secondary); font-style: italic; }
/* a control pushed to the right end of a row that may wrap */
.story .plx-bar > .plx-ml { margin-left: auto; }
/* Compare views: the legend trims at the window's edge */
.story .plx-bar.plx-nowrap > .plx-legend.plx-legtrim { display: block; flex: 0 0.1 auto; min-width: 0; overflow: hidden;
  text-overflow: ellipsis; }
/* Compare views: a row with no staged action keeps its name where a staged row's name starts */
.story .plx-nm .plx-dotsp { margin-right: 1px; }
.story .plx-legend.plx-legtrim > .plx-dotmod { margin: 0 5px 0 9px; }

/* ── tools/web_mockups/pinup.css ── */
/* pinup.py's kinds (prefix pnx-). Every rule sits under .story; colours and sizes are the window's tokens (the
   WEB-THEME block of site.css, --w-*): never a raw hex. The colours Pinup paints in code (the pin and thread states,
   the version badge, the flag badges) are their nearest tokens: open/yours = Accent, theirs and In progress =
   Warning, Resolved = Success, Verified = Violet. The lightbox is dark in BOTH themes (LightboxScrim, LightboxPanel,
   LightboxInk are the same in Palette.Light and Palette.Dark); the captures are paper (SheetPaper, SheetInk).
   The shared pieces — the title bar, the app header, .hbtn, .seg, .ck, .mk-* — are site.css's, used as they are. */

/* the stage and the window */
.story .pnx-stage { width: 100%; display: flex; justify-content: center; min-width: 0; }
.story .pnx-win { width: 100%; }
.story .pnx-win.pnx-q { width: 480px; }
.story .pnx-body { padding: 8px 20px 16px; display: flex; flex-direction: column; min-width: 0;
  font-size: var(--w-fs-body); color: var(--w-text-primary); }
.story .pnx-body .apphdr { margin: 4px 0 12px; }

/* SegmentToggle radios without an AppleSegmented track (the app puts them in a bare StackPanel) */
.story .seg.pnx-bare:has(> .s) { background: transparent; border-color: transparent; padding: 0; flex-wrap: wrap;
  height: auto; min-height: var(--w-size-control); }
.story .seg.pnx-bare > .s { min-width: 72px; }

/* the captures: paper, its border and title block, and the drawing (SheetPaper · SheetLine · SheetInk) */
.story .pnx-sv { display: block; width: 100%; height: 100%; }
.story .pnx-sv * { vector-effect: non-scaling-stroke; }
.story .pnx-sv .pp { fill: var(--w-sheet-paper); stroke: var(--w-sheet-line); stroke-width: 1px; }
.story .pnx-sv .pb { fill: none; stroke: var(--w-sheet-ink); stroke-width: .6px; opacity: .5; }
.story .pnx-sv .pw { fill: none; stroke: var(--w-sheet-ink); stroke-width: 1.6px; }
.story .pnx-sv .pt { fill: none; stroke: var(--w-sheet-ink); stroke-width: .8px; opacity: .7; }
.story .pnx-sv .pg { fill: none; stroke: var(--w-sheet-ink); stroke-width: .6px; stroke-dasharray: 4 3; opacity: .45; }
.story .pnx-sv .pc { fill: none; stroke: var(--w-danger); stroke-width: 1.8px; stroke-linejoin: round; }
.story .pnx-img { position: relative; display: block; }

/* ── STATE 1 · what to capture ─────────────────────────────────────────────────────────────────────────────── */
.story .pnx-opts { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap;
  margin-bottom: 10px; }
.story .pnx-opl, .story .pnx-opr { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 0; min-width: 0; }
.story .pnx-set { display: inline-flex; align-items: center; margin-left: 16px; font-size: var(--w-fs-subhead);
  color: var(--w-text-secondary); white-space: nowrap; }
.story .pnx-set b { margin: 0 3px 0 5px; max-width: 240px; overflow: hidden; text-overflow: ellipsis;
  color: var(--w-accent-text); font-weight: var(--w-fw-semibold); }
.story .pnx-set i { font-style: normal; color: var(--w-accent-text); }
.story .pnx-opr .mk-check { margin-right: 18px; white-space: nowrap; }
.story .pnx-lbl { margin-right: 8px; font-size: var(--w-fs-subhead); color: var(--w-text-secondary); white-space: nowrap; }
.story .pnx-filter { display: flex; }
.story .pnx-filter .mk-field { flex: 1 1 auto; width: 100%; }
/* the list on its AppleCard (padding 4), each item the ListBox's (8,5): the tick, the number, the name */
.story .pnx-list { margin-top: 10px; padding: 4px; border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-card); background: var(--w-bg-surface); box-shadow: var(--w-shadow-card); }
.story .pnx-list.pnx-more { -webkit-mask-image: linear-gradient(to bottom, var(--ink) 70%, transparent);
  mask-image: linear-gradient(to bottom, var(--ink) 70%, transparent); }
.story .pnx-li { display: flex; align-items: center; min-width: 0; padding: 5px 8px; border-radius: var(--w-radius-small); }
.story .pnx-li .pnx-num { flex: none; width: 118px; margin-left: 8px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-family: var(--w-font-mono); font-size: var(--w-fs-callout); color: var(--w-accent-text); }
.story .pnx-li .pnx-nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--w-fs-callout); color: var(--w-text-primary); }
/* a window's last row: what it says at the left, its buttons at the right */
.story .pnx-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap;
  margin-top: 14px; }
.story .pnx-fl { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; min-width: 0; flex: 1 1 240px; }
.story .pnx-fr { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end;
  margin-left: auto; }
.story .pnx-st { font-size: var(--w-fs-subhead); color: var(--w-text-secondary); min-width: 0; white-space: nowrap; }
.story .pnx-trim { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .pnx-fr .hbtn:not(.plain) { min-width: var(--w-size-button-min-width); }
.story .hbtn.pnx-wide { min-width: var(--w-size-button-min-width-wide); }

/* ── STATE 2 · the wall ────────────────────────────────────────────────────────────────────────────────────── */
.story .pnx-ghd { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap;
  margin: 4px 0 12px; }
.story .pnx-ght { min-width: 0; }
.story .pnx-gt { font-size: var(--w-fs-headline); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .pnx-gs { margin-top: 2px; font-size: var(--w-fs-subhead); color: var(--w-text-secondary); }
.story .pnx-gf { margin-top: 8px; }
.story .pnx-hint { font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); margin-left: auto; }
.story .pnx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.story .pnx-card { min-width: 0; overflow: hidden; background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-card); }
.story .pnx-thumb { position: relative; aspect-ratio: 266 / 184; }
.story .pnx-thumb > .pnx-img { position: absolute; inset: 8px; }
/* the four badges, where the card puts them (Radius.Small, 7,2) */
.story .pnx-ver, .story .pnx-flag, .story .pnx-bdg { position: absolute; padding: 2px 7px; border-radius: var(--w-radius-small);
  line-height: 1.3; white-space: nowrap; }
.story .pnx-ver { top: 10px; left: 10px; font-size: 11px; font-weight: var(--w-fw-semibold); color: var(--w-text-on-accent);
  background: color-mix(in srgb, var(--w-text-tertiary) 70%, transparent); }
.story .pnx-ver.hist { background: color-mix(in srgb, var(--w-accent) 80%, transparent); }
.story .pnx-flag { top: 8px; right: 8px; font-size: 12px; font-weight: var(--w-fw-semibold); }
.story .pnx-flag.approved { background: color-mix(in srgb, var(--w-success) 16%, transparent); color: var(--w-success); }
.story .pnx-flag.flagged { background: color-mix(in srgb, var(--w-warning) 16%, transparent); color: var(--w-warning); }
.story .pnx-bdg { bottom: 6px; background: var(--w-sheet-badge); color: var(--w-text-on-accent); font-size: 10px; }
.story .pnx-bl { left: 8px; font-size: 11px; }
.story .pnx-br { right: 8px; }
.story .pnx-cap { display: flex; align-items: baseline; gap: 8px; min-width: 0; padding: 4px 12px 10px; }
.story .pnx-cap .pnx-num { flex: none; font-family: var(--w-font-mono); font-size: var(--w-fs-footnote);
  font-weight: var(--w-fw-semibold); color: var(--w-accent-text); }
.story .pnx-cap .pnx-nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--w-fs-footnote); color: var(--w-text-secondary); }
.story .pnx-gfoot .pnx-fl { flex: 1 1 200px; gap: 14px; }

/* ── STATE 3 · the lightbox: dark in both themes, inside the window's margins (20,8,20,16) ──────────────────── */
.story .pnx-lb { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-rows: auto auto;
  background: var(--w-lightbox-scrim); color: var(--w-lightbox-ink); min-width: 0; }
.story .pnx-lbmain { position: relative; grid-column: 1; grid-row: 1; min-width: 0; padding: 28px 12px 12px 40px; }
/* the viewport is wider than a sheet, as on a screen: the capture fits its height (Stretch=Uniform), dark at both sides */
.story .pnx-view { display: flex; align-items: center; justify-content: center; aspect-ratio: 1.6; }
.story .pnx-view > .pnx-img { height: 100%; max-width: 100%; aspect-ratio: 1414 / 1000; }
.story .pnx-view .pnx-sv { position: absolute; inset: 0; }
/* zoomed in: the viewport clips a capture larger than itself; the row is as tall as the panel beside it */
.story .pnx-lb.pnx-zoom .pnx-lbmain { padding: 0; }
.story .pnx-lb.pnx-zoom .pnx-view { position: absolute; inset: 28px 12px 12px 40px; display: block; aspect-ratio: auto;
  overflow: hidden; }
.story .pnx-lb.pnx-zoom .pnx-view > .pnx-img { position: absolute; left: 50%; top: 50%; height: auto; max-width: none;
  width: calc(var(--pnx-z) * 100%); transform: translate(calc(-1 * var(--pnx-cx)), calc(-1 * var(--pnx-cy))); }
.story .pnx-lb.pnx-zoom .pnx-sidecol { height: auto; min-height: 0; }
.story .pnx-lb.pnx-zoom .pnx-side { max-height: 470px; }
.story .pnx-arw { position: absolute; top: 50%; width: 46px; height: 64px; margin-top: -32px; display: grid; place-items: center;
  color: var(--w-text-on-accent); }
.story .pnx-arw svg { width: var(--w-size-icon-large); height: var(--w-size-icon-large); }
.story .pnx-arw.l { left: 6px; }
.story .pnx-arw.r { right: 6px; }
/* the pins on the drawing: 24, a white ring, the number; the colour of the thread's state, or whose it is */
.story .pnx-pin { position: absolute; z-index: 2; width: 24px; height: 24px; margin: -12px 0 0 -12px; box-sizing: border-box;
  display: grid; place-items: center; border: 2px solid var(--w-text-on-accent); border-radius: 50%;
  color: var(--w-text-on-accent); font-size: 11px; font-weight: var(--w-fw-bold); line-height: 1;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--w-shadow-colour) 35%, transparent); }
.story .pnx-pin.mine { background: var(--w-accent); }
.story :is(.pnx-pin.theirs, .pnx-pin.inprogress) { background: var(--w-warning); }
.story .pnx-pin.resolved { background: var(--w-success); }
.story .pnx-pin.verified { background: var(--w-violet); }
/* Compare: the archived capture over the left of the curtain, the accent divider and its ⇔ handle */
.story .pnx-oldv { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.story .pnx-oldv .pnx-sv { position: absolute; inset: 0; }
.story .pnx-cur { position: absolute; top: 0; bottom: 0; left: 50%; width: 2.5px; margin-left: -1.25px; background: var(--w-accent); }
.story .pnx-cur i { position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; display: grid;
  place-items: center; border-radius: 50%; background: var(--w-accent); color: var(--w-text-on-accent); font-size: 9px;
  font-style: normal; font-weight: var(--w-fw-bold); }
/* the 332-px column: the panel (LightboxPanel, radius 12, margins 0,28,40,12); as tall as the sheet's row — its list scrolls */
.story .pnx-sidecol { grid-column: 2; grid-row: 1; height: 0; min-height: 100%; box-sizing: border-box; padding: 28px 36px 12px 0; }
.story .pnx-side { height: 100%; overflow: hidden; border-radius: 12px; background: var(--w-lightbox-panel); }
.story .pnx-sh { margin: 14px 16px 6px; font-size: var(--w-fs-body); font-weight: var(--w-fw-semibold); color: var(--w-lightbox-ink); }
.story .pnx-sh.pnx-sh2 { margin: 16px 16px 0; }
.story .pnx-ta { box-sizing: border-box; min-height: 42px; padding: 7px 10px; border: 1px solid var(--w-stroke-default);
  border-radius: var(--w-radius-medium); background: var(--w-bg-surface); color: var(--w-text-primary);
  font-size: var(--w-fs-body); line-height: 1.4; overflow-wrap: anywhere; }
.story .pnx-ta.ph { color: var(--w-text-tertiary); }
.story .pnx-note { margin: 0 16px; min-height: 48px; }
.story .pnx-ph { margin: 2px 16px 8px; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); }
.story .pnx-plist { padding: 0 12px 12px; -webkit-mask-image: linear-gradient(to bottom, var(--ink) 82%, transparent);
  mask-image: linear-gradient(to bottom, var(--ink) 82%, transparent); }
.story .pnx-empty { margin: 4px 0 0 4px; font-size: var(--w-fs-subhead); color: var(--w-text-secondary); }
/* a thread: a card per message (SheetInk, radius 10, 10,8), replies and status lines 14 in, the reply row last */
.story .pnx-pe { margin-bottom: 2px; padding: 8px 10px; border-radius: 10px; background: var(--w-sheet-ink); }
.story .pnx-pe.pnx-in { margin-left: 14px; }
.story .pnx-pe-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; min-width: 0; }
.story .pnx-pe-hd b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--w-fs-subhead); font-weight: var(--w-fw-semibold); color: var(--w-lightbox-ink); }
.story .pnx-dt { flex: none; margin-left: auto; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); }
.story .pnx-dot { flex: none; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%;
  color: var(--w-text-on-accent); font-size: 10px; font-weight: var(--w-fw-bold); line-height: 1; }
.story .pnx-dot.mine { background: var(--w-accent); }
.story .pnx-dot.theirs { background: var(--w-warning); }
.story .pnx-rm { display: flex; justify-content: flex-end; margin-top: 5px; }
.story .pnx-rm .hbtn { color: var(--w-lightbox-danger-ink); font-size: var(--w-fs-footnote); }
.story .pnx-sys { font-size: var(--w-fs-footnote); font-style: italic; color: var(--w-text-tertiary); }
.story .pnx-pe.pnx-rbox { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 10px; }
.story .pnx-rbox .pnx-rin { flex: 1 1 auto; min-width: 0; min-height: 32px; }
.story .pnx-spill { flex: none; display: inline-flex; align-items: center; gap: 6px; height: var(--w-size-control-compact);
  margin-top: 4px; padding: 0 10px; border-radius: var(--w-radius-small); color: var(--w-text-on-accent);
  font-size: var(--w-fs-control-compact); font-weight: var(--w-fw-medium); white-space: nowrap; }
.story .pnx-spill::before { content: ""; flex: none; width: var(--w-size-status-dot); height: var(--w-size-status-dot);
  border-radius: 50%; background: currentColor; }
.story .pnx-spill.open { background: var(--w-accent); }
.story .pnx-spill.inprogress { background: var(--w-warning); }
.story .pnx-spill.resolved { background: var(--w-success); }
.story .pnx-spill.verified { background: var(--w-violet); }
.story .pnx-ibtn { flex: none; width: var(--w-size-control); height: var(--w-size-control); display: grid; place-items: center;
  border-radius: var(--w-radius-button); background: var(--w-accent-subtle); color: var(--w-accent-text); }
.story .pnx-ibtn svg { width: var(--w-size-icon-in-button); height: var(--w-size-icon-in-button); }
/* the bar under both (margins 40,0,40,22): the sheet, its versions, the counter, the hint · the four buttons */
.story .pnx-lbbar { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px 16px; padding: 0 40px 22px; }
.story .pnx-lbl-l { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 0; min-width: 0; }
.story .pnx-lbl-r { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-left: auto; }
.story .pnx-lnum { font-family: var(--w-font-mono); font-size: var(--w-fs-body); font-weight: var(--w-fw-semibold);
  color: var(--w-lightbox-accent-ink); }
.story .pnx-lnm { margin-left: 12px; font-size: var(--w-fs-body); color: var(--w-lightbox-ink); }
.story .pnx-vchips { display: inline-flex; gap: 6px; margin-left: 14px; }
.story .pnx-vchip { padding: 3px 9px; border-radius: 9px; font-size: 11px; font-weight: var(--w-fw-semibold); line-height: 1.2;
  white-space: nowrap; background: color-mix(in srgb, var(--w-text-on-accent) 20%, transparent);
  color: color-mix(in srgb, var(--w-lightbox-ink) 62%, transparent); }
.story .pnx-vchip.on { background: var(--w-accent); color: var(--w-text-on-accent); }
.story .pnx-ctr { margin-left: 14px; font-size: var(--w-fs-subhead); color: var(--w-text-tertiary); }
.story .pnx-lhint { margin-left: 16px; font-size: var(--w-fs-footnote); color: var(--w-text-secondary); }

/* ── the export-quality dialog (480 wide, margins 28,12,28,20) ──────────────────────────────────────────────── */
.story .pnx-q .pnx-body { padding: 12px 28px 20px; }
.story .pnx-qh { margin-top: 8px; font-size: var(--w-fs-title3); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .pnx-qs { margin: 6px 0 14px; font-size: var(--w-fs-body); line-height: 1.45; color: var(--w-text-secondary); }
.story .pnx-qr { display: flex; flex-direction: column; }
.story .mk-radio.pnx-rad { display: flex; align-items: flex-start; gap: 0; margin: 4px 0; }
.story .mk-radio.pnx-rad::before { margin-top: 2px; }
.story .pnx-rt { display: flex; flex-direction: column; gap: 1px; margin: -1px 0 6px; padding-left: 8px; }
.story .pnx-rt b { font-size: var(--w-fs-body); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .pnx-rt span { font-size: var(--w-fs-subhead); color: var(--w-text-secondary); }
.story .pnx-qf { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.story .pnx-qf > .hbtn { min-width: var(--w-size-button-min-width); }

/* ── the shareable page, a sheet open: in a browser (its title, the file), the page's own dark viewer ──────── */
.story .pnx-shcol { display: flex; flex-direction: column; align-items: center; width: 100%; min-width: 0; }
.story .pnx-url { display: flex; align-items: center; gap: 8px; padding: 0 14px 8px; min-width: 0; }
.story .pnx-urlbox { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 4px 12px; border: 1px solid var(--w-stroke-default); border-radius: var(--w-radius-pill);
  background: var(--w-bg-surface); font-size: var(--w-fs-footnote); color: var(--w-text-secondary); }
.story .pnx-noweb { flex: none; padding: 3px 9px; border-radius: var(--w-radius-pill); background: var(--w-success-subtle);
  color: var(--w-success-ink); font-size: 10.5px; font-weight: var(--w-fw-bold); white-space: nowrap; }
.story .pnx-body.pnx-sbody { padding: 0; }
.story .pnx-lbx { display: grid; grid-template-columns: 52px minmax(0, 1fr) 272px; grid-template-rows: auto auto;
  background: var(--w-lightbox-scrim); color: var(--w-lightbox-ink); min-width: 0; }
.story .pnx-tools { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 10px 0; background: var(--w-lightbox-panel); }
.story .pnx-tool { flex: none; width: 30px; height: 20px; display: grid; place-items: center; border-radius: 6px;
  font-size: 12px; line-height: 1; color: var(--w-lightbox-ink); }
.story .pnx-tool.on { background: var(--w-accent); }
.story .pnx-tool.st-ok { color: var(--w-success); }
.story .pnx-tool.st-rev { color: var(--w-warning); }
.story .pnx-tool.st-rej { color: var(--w-danger); }
.story .pnx-tool.w1 { font-size: 7px; }
.story .pnx-tool.w2 { font-size: 10px; }
.story .pnx-tool.w3 { font-size: 13px; }
.story .pnx-hr { flex: none; width: 22px; height: 1px; margin: 4px 0; background: var(--w-sheet-ink); }
.story .pnx-sw { flex: none; width: 15px; height: 15px; margin: 1px 0; box-sizing: border-box; border: 2px solid transparent;
  border-radius: 50%; }
.story .pnx-sw.on { border-color: var(--w-text-on-accent); }
.story .pnx-sw.fix { background: var(--w-danger); }
.story .pnx-sw.warn { background: var(--w-warning); }
.story .pnx-sw.q { background: var(--w-accent); }
.story .pnx-sw.ok { background: var(--w-success); }
/* #lbwrap is a flex ROW on the page (no flex-direction), so #vchips sits to the LEFT of the drawing, centred on its
   height, with its 8-px bottom margin — not above it */
.story .pnx-swrap { grid-column: 2; grid-row: 1; display: flex; align-items: center;
  justify-content: center; min-width: 0; padding: 14px 16px; }
.story .pnx-svch { flex: none; display: flex; align-items: center; gap: 6px; margin: 0 0 8px; }
.story .pnx-svc { padding: 3px 10px; border-radius: 9px; font-size: 11px; font-weight: var(--w-fw-semibold);
  background: color-mix(in srgb, var(--w-text-tertiary) 18%, transparent); color: var(--w-text-tertiary); }
.story .pnx-svc.on { background: var(--w-accent); color: var(--w-text-on-accent); }
.story .pnx-sview { flex: 1 1 0; min-width: 0; }
.story .pnx-sview > .pnx-img { width: 100%; aspect-ratio: 1414 / 1000; }
.story .pnx-sview .pnx-sv { position: absolute; inset: 0; }
/* a stamp as strokeEls draws one: level (no rotation), a white box at 92 %, its outline AND its word in the stamp's
   colour (REVISE = the warning orange) */
.story .pnx-stamp { position: absolute; left: 12%; top: 62%; padding: 3px 10px; border: 2.5px solid var(--w-warning);
  border-radius: 6px; background: color-mix(in srgb, var(--w-sheet-paper) 92%, transparent); color: var(--w-warning);
  font-size: 12px; font-weight: var(--w-fw-bold); letter-spacing: 2px; }
/* the page colours whose a pin is the other way round: what was SENT is blue, the reviewer's own orange */
.story .pnx-sview .pnx-pin.mine { background: var(--w-warning); }
.story .pnx-sview .pnx-pin.theirs { background: var(--w-accent); }
.story .pnx-pside { grid-column: 3; grid-row: 1; height: 0; min-height: 100%; overflow: hidden;
  background: var(--w-lightbox-panel); }
.story .pnx-h2 { margin: 14px 16px 2px; font-size: 13px; font-weight: var(--w-fw-semibold); color: var(--w-lightbox-ink); }
.story :is(.pnx-gnote, .pnx-sta) { box-sizing: border-box; min-height: 42px; padding: 7px 8px; border-radius: 7px;
  background: var(--w-sheet-paper); color: var(--w-sheet-ink); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.story .pnx-gnote { margin: 6px 16px 4px; }
.story :is(.pnx-gnote, .pnx-srin).ph, .story .pnx-srin { color: color-mix(in srgb, var(--w-sheet-ink) 55%, transparent); }
.story .pnx-sph { margin: 0 16px 8px; font-size: 11px; color: color-mix(in srgb, var(--w-lightbox-ink) 55%, transparent); }
.story .pnx-sempty { margin: 6px 16px; font-size: 12px; color: color-mix(in srgb, var(--w-lightbox-ink) 55%, transparent); }
.story .pnx-spe { margin: 0 12px 8px; padding: 9px 10px; border-radius: 10px; background: var(--w-sheet-ink); }
.story .pnx-shd { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; min-width: 0; }
.story .pnx-shd b { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12px; font-weight: var(--w-fw-semibold); color: var(--w-lightbox-ink); }
.story .pnx-shd .pnx-dt { font-size: 10px; color: color-mix(in srgb, var(--w-lightbox-ink) 55%, transparent); }
.story .pnx-spe .pnx-dot.mine { background: var(--w-warning); }
.story .pnx-spe .pnx-dot.theirs { background: var(--w-accent); }
.story .pnx-sta.ro { background: var(--w-lightbox-panel); color: var(--w-lightbox-ink); }
.story .pnx-sta.in { margin-left: 12px; }
.story :is(.pnx-srh, .pnx-ssys) { margin: 7px 0 3px 12px; font-size: 11px; color: color-mix(in srgb, var(--w-lightbox-ink) 55%, transparent); }
.story .pnx-ssys { font-style: italic; }
.story .pnx-srm { margin-top: 5px; text-align: right; font-size: 11px; color: var(--w-lightbox-danger-ink); }
.story .pnx-srep { display: flex; align-items: stretch; gap: 6px; margin: 8px 0 0 12px; }
.story .pnx-schip { flex: none; display: flex; align-items: center; padding: 0 9px; border-radius: 7px;
  background: var(--w-accent); color: var(--w-text-on-accent); font-size: 11px; font-weight: var(--w-fw-semibold); }
.story .pnx-schip.inprogress { background: var(--w-warning); }
.story .pnx-schip.resolved { background: var(--w-success); }
.story .pnx-schip.verified { background: var(--w-violet); }
.story .pnx-sta.pnx-srin { flex: 1 1 auto; min-width: 0; min-height: 30px; padding: 6px 8px; }
.story .pnx-sgo { flex: none; align-self: flex-end; font-size: 16px; line-height: 1; color: var(--w-lightbox-accent-ink); }
.story .pnx-sbar { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px;
  min-height: 64px; box-sizing: border-box; padding: 10px 28px; font-size: 12px; color: var(--w-lightbox-ink); }
.story .pnx-scap { white-space: nowrap; }
.story .pnx-scale { white-space: nowrap; }
.story .pnx-ssel { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px;
  background: var(--w-sheet-ink); color: var(--w-text-on-accent); font-size: 11.5px; }
.story .pnx-ssel i { font-style: normal; opacity: .7; }
.story .pnx-shint { flex: 1 1 220px; min-width: 0; font-size: 11.5px; color: color-mix(in srgb, var(--w-lightbox-ink) 55%, transparent); }
.story .pnx-sbtn { padding: 7px 12px; border-radius: 8px; background: var(--w-sheet-ink); color: var(--w-text-on-accent);
  font-size: 11.5px; white-space: nowrap; }
/* the site's words around the page: the live sample, and what it is */
.story .pnx-after { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 14px; }
.story .pnx-live { display: inline-flex; align-items: center; height: var(--w-size-control); padding: 0 14px;
  border-radius: var(--w-radius-button); background: var(--w-accent); color: var(--w-text-on-accent);
  font-size: var(--w-fs-control); font-weight: var(--w-fw-semibold); text-decoration: none; white-space: nowrap; }
.story .pnx-live:hover { background: var(--w-accent-hover); }

/* narrow (a phone, or a beat's column): the windows rearrange by their OWN width (a container query), not the page's */
.story .pnx-lbw, .story .pnx-browser { container-type: inline-size; }
@container (max-width: 700px) {
  .story .pnx-lb { grid-template-columns: minmax(0, 1fr); }
  .story .pnx-lbmain { padding: 16px 12px 12px; }
  .story .pnx-lb.pnx-zoom .pnx-lbmain { min-height: 280px; }
  .story .pnx-lb.pnx-zoom .pnx-view { inset: 16px 12px 12px; }
  .story .pnx-sidecol, .story .pnx-lb.pnx-zoom .pnx-sidecol { grid-column: 1; grid-row: 2; height: auto; min-height: 0;
    padding: 0 12px 12px; }
  .story .pnx-side, .story .pnx-lb.pnx-zoom .pnx-side { max-height: 420px; }
  .story .pnx-lbbar { grid-row: 3; padding: 0 12px 16px; }
  .story .pnx-lbx { grid-template-columns: minmax(0, 1fr); }
  .story .pnx-tools { grid-column: 1; grid-row: 1; flex-direction: row; flex-wrap: wrap; justify-content: center;
    padding: 6px 8px; }
  .story .pnx-hr { width: 1px; height: 16px; margin: 2px 4px; }
  .story .pnx-swrap { grid-column: 1; grid-row: 2; flex-wrap: wrap; }
  .story .pnx-sview { flex-basis: 100%; }
  .story .pnx-pside { grid-column: 1; grid-row: 3; height: auto; min-height: 0; max-height: 360px; }
  .story .pnx-sbar { grid-row: 4; padding: 10px 14px; }
}
@media (max-width: 520px) {
  .story .pnx-win.pnx-q { width: 100%; }
}

/* ── tools/web_mockups/plot.css ── */
/* plot.py's kinds (prefix ptx-). Every rule sits under .story; colours and sizes are the window's tokens (the
   WEB-THEME block of site.css, --w-*): never a raw hex. The shared pieces — the title bar, the app header, the kit
   (.hbtn, .mk-chip, .mk-badge, .mk-field, .mk-combo, .mk-menu, .ck, .dg, .tablewrap) — are site.css's, used as they
   are; this file only places them where the XAML puts them. */

/* ── the stage: a window at its XAML width (--ptx-width), the wide ones filling a wide beat ── */
.story .ptx-stage { width: 100%; display: flex; justify-content: center; min-width: 0; }
.story .ptx-stage > .capwin, .story .ptx-stage > .ptx-popwrap { width: 100%; max-width: var(--ptx-width); min-width: 0; }
.story .ptx-stack { display: grid; gap: 18px; justify-items: center; width: 100%; min-width: 0; }
.story .ptx-win { color: var(--w-text-primary); font-size: var(--w-fs-body); }
.story .ptx-body { min-width: 0; }
/* site.css gives every .dg a 900-px floor (the wide report tables); a window here sizes its own */
.story .ptx-win table.dg { min-width: 0; }
.story .ptx-main > .ptx-body { padding: 16px; }
.story .ptx-dlg > .ptx-body { padding: 12px 20px 16px; }
.story :is(.ptx-picker, .ptx-gate, .ptx-history) > .ptx-body { padding: 16px 20px; }
.story .ptx-big > .ptx-body { padding: 14px 20px; }
.story .ptx-compare > .ptx-body { padding: 14px 16px; }

/* ── words: a dialog's heading, a section label, a hint, a caption ── */
.story .ptx-head { margin-bottom: 12px; min-width: 0; }
.story .ptx-h { font-size: var(--w-fs-headline); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); line-height: 1.3; }
.story .ptx-hint, .story .ptx-cap { font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); line-height: 1.4; }
.story .ptx-head .ptx-hint { margin-top: 3px; }
.story .ptx-sect { font-size: var(--w-fs-subhead); font-weight: var(--w-fw-semibold); color: var(--w-text-secondary); margin: 0 0 8px; }
.story .ptx-win .ptx-ter { color: var(--w-text-tertiary); }
.story .ptx-win .ptx-sec { color: var(--w-text-secondary); }
.story .ptx-win .ptx-num { font-family: var(--w-font-mono); color: var(--w-accent-text); }
.story .ptx-win .ptx-num.b { font-weight: var(--w-fw-semibold); }
.story .ptx-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--w-accent); }
.story .ptx-dot.ok { background: var(--w-success); }
.story .ptx-dot.warn { background: var(--w-warning); }
.story .ptx-dot.bad { background: var(--w-danger); }
.story .ptx-dot.out { background: var(--w-text-tertiary); }
.story .ptx-card { background: var(--w-bg-surface); border-radius: var(--w-radius-card); padding: 12px; min-width: 0; box-sizing: border-box; }
/* an icon-only button of the library (AppleButton.Icon.Compact), the form the app gives it */
.story .ptx-ib { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 24px; height: 24px;
  margin-left: 3px; border-radius: var(--w-radius-small); color: var(--w-text-secondary); }
.story .ptx-ib > svg { width: 14px; height: 14px; }
.story .ptx-ib.acc { color: var(--w-accent-text); }
.story .ptx-ib.sq { width: var(--w-size-control); height: var(--w-size-control); margin: 0; box-sizing: border-box;
  border: 1px solid var(--w-stroke-default); border-radius: var(--w-radius-button); background: var(--w-bg-surface);
  color: var(--w-text-primary); }
/* a footer of a dialog: Done at the right (or History · Last: … at the left, Done at the right) */
.story .ptx-dfoot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.story .ptx-dfoot.split { justify-content: space-between; }
.story .ptx-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.story .ptx-left .ptx-hint { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .ptx-win .rl-foot { margin-top: 16px; }
.story .ptx-win .rl-st { flex: 1 1 160px; min-width: 0; font-size: var(--w-fs-footnote); color: var(--w-text-secondary); }

/* ── the main window (PlotPanelView.xaml) ── */
.story .ptx-main .apphdr { margin-bottom: 10px; }
.story .ptx-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.story .ptx-sel { margin-left: 4px; font-size: var(--w-fs-footnote); color: var(--w-text-secondary); }
.story .ptx-main { container-type: inline-size; }
/* the palette is 300 of the real window's 1080–1440; on a narrower stage it keeps the same share */
.story .ptx-content { display: grid; grid-template-columns: minmax(170px, 0.38fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.story .ptx-rcol { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
/* the fields palette: the compact search, the three source chips, the groups (AppleText.SectionLabel), the rows */
.story .ptx-pal { position: relative; padding: 0; overflow: hidden; min-height: 320px; }
.story .ptx-palin { position: absolute; inset: 10px; display: flex; flex-direction: column; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, var(--w-text-primary) 88%, transparent);
  mask-image: linear-gradient(to bottom, var(--w-text-primary) 88%, transparent); }
.story .ptx-palin > .mk-field { width: 100%; flex: none; margin-bottom: 6px; }
.story .ptx-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.story .ptx-fg { margin: 10px 0 4px 6px; font-size: var(--w-fs-subhead); font-weight: var(--w-fw-semibold); color: var(--w-text-secondary); }
.story .ptx-fr { display: flex; align-items: center; gap: 8px; margin: 1px 0; padding: 3px 6px; border-radius: var(--w-radius-button);
  font-size: var(--w-fs-callout); color: var(--w-text-primary); white-space: nowrap; overflow: hidden; }
.story .ptx-fr > span { overflow: hidden; text-overflow: ellipsis; }
/* the name structure: the caption and «Naming ▾», the chips on BgSubtle, the first item's name */
.story .ptx-name { display: flex; flex-direction: column; min-height: 170px; }
.story .ptx-nhd { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.story .ptx-comp { display: flex; flex-wrap: wrap; align-items: stretch; row-gap: 3px; flex: 1 1 auto; min-height: 44px;
  padding: 8px; border-radius: var(--w-radius-medium); background: var(--w-bg-subtle); align-content: flex-start; }
.story .ptx-ins { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 16px; margin-right: 2px;
  font-size: 12px; font-weight: var(--w-fw-semibold); color: var(--w-accent-ink); opacity: .35; }
.story .ptx-chip { display: inline-flex; align-items: center; flex: none; margin-right: 2px; padding: 1px 6px; box-sizing: border-box;
  border: 1px solid var(--w-accent-subtle); border-radius: var(--w-radius-small); background: transparent; }
.story .ptx-chip.ok { border-color: var(--w-success-subtle); }
.story .ptx-chip.warn { border-color: var(--w-warning-subtle); }
.story .ptx-chip.lit { border-color: var(--w-stroke-default); }
.story .ptx-chip > b { font-size: var(--w-fs-callout); font-weight: var(--w-fw-medium); color: var(--w-accent-ink); white-space: nowrap; }
.story .ptx-chip.ok > b { color: var(--w-success-ink); }
.story .ptx-chip.warn > b { color: var(--w-warning-ink); }
.story .ptx-grip { margin-right: 4px; font-style: normal; font-size: 11px; letter-spacing: -2px; color: var(--w-text-tertiary); opacity: .5; }
.story .ptx-box { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 36px;
  height: var(--w-size-control-compact); margin: 0 3px; padding: 0 6px; border: 1px solid var(--w-stroke-default);
  border-radius: var(--w-radius-small); background: var(--w-bg-elevated); font-size: var(--w-fs-control-compact);
  color: var(--w-text-primary); white-space: pre; }
.story .ptx-box.lit { min-width: 40px; margin: 0; }
.story .ptx-sp { position: relative; display: inline-block; width: .38em; height: 1em; }
.story .ptx-sp::after { content: ""; position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px;
  border-radius: 50%; background: var(--w-accent); }
.story .ptx-fx { margin-left: 4px; padding: 0 3px; border-radius: 4px; background: var(--w-accent-subtle); font-size: 9px; color: var(--w-accent-text); }
.story .ptx-pv { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; padding: 8px; border-radius: var(--w-radius-medium);
  background: var(--w-bg-subtle); min-width: 0; }
.story .ptx-pvn { color: var(--w-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the publish list: find + order on one line, the state chips and the two checks on the next, the banners, the table */
.story .ptx-lcard { display: flex; flex-direction: column; flex: 1 1 auto; }
.story .ptx-lr1 { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; min-width: 0; }
.story .ptx-lr1 > .mk-field { flex: 1 1 auto; min-width: 60px; }
.story .ptx-sort { display: flex; align-items: center; gap: 8px; flex: none; }
.story .ptx-lr2 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 8px; }
.story .ptx-lr2 > .hbtn.link { margin-left: 8px; }
.story .ptx-ban { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding: 6px 10px;
  border-radius: var(--w-radius-small); font-size: var(--w-fs-footnote); min-width: 0; }
.story .ptx-ban.ok { background: var(--w-success-subtle); color: var(--w-success-ink); }
.story .ptx-ban.warn { background: var(--w-warning-subtle); color: var(--w-warning-ink); }
.story .ptx-ban.acc { background: var(--w-accent-subtle); color: var(--w-accent-ink); }
.story .ptx-bt { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .ptx-ban .hbtn.link { flex: none; font-size: var(--w-fs-footnote); }
.story .ptx-ban .ptx-ib { width: 20px; height: 20px; margin: 0; }
.story .ptx-list.tablewrap { border: 0; border-radius: 0; background: transparent; }
.story .ptx-win .ptx-list table.dg { table-layout: fixed; min-width: 640px; }
.story .ptx-list td { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.story .ptx-list tr.ptx-held { opacity: .45; }
.story .ptx-list .ptx-dot { width: 9px; height: 9px; }
.story .ptx-cell { display: block; overflow: hidden; text-overflow: ellipsis; }
.story .ptx-ready { display: flex; align-items: center; gap: 8px; min-width: 0; }
.story .ptx-ready > .mk-badge, .story .ptx-ready > .hbtn { flex: none; }
.story .ptx-st { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: var(--w-fs-footnote);
  color: var(--w-text-secondary); }
.story .ptx-writing { flex: none; font-size: 11px; color: var(--w-text-tertiary); }
.story .ptx-fade { -webkit-mask-image: linear-gradient(to bottom, var(--w-text-primary) 62%, transparent);
  mask-image: linear-gradient(to bottom, var(--w-text-primary) 62%, transparent); }
/* the footer: the five doors in a wrap at the left, the run at the right */
.story .ptx-foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; min-width: 0; }
.story .ptx-doors { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; }
.story .ptx-dd, .story .ptx-door { display: inline-flex; align-items: center; flex: none; box-sizing: border-box; white-space: nowrap;
  min-height: var(--w-size-control); background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle); }
.story .ptx-dd { min-width: 150px; height: var(--w-size-control); padding: 0 10px 0 12px; border-radius: var(--w-radius-small);
  font-size: var(--w-fs-control); }
.story .ptx-dd.open { border-color: var(--w-accent); }
.story .ptx-door { padding: 6px 10px; border-radius: var(--w-radius-small); font-size: var(--w-fs-subhead); }
.story :is(.ptx-dd, .ptx-door) > b { font-weight: var(--w-fw-medium); color: var(--w-text-primary); }
.story :is(.ptx-dd, .ptx-door) > i { margin: 0 6px; font-style: normal; color: var(--w-text-tertiary); }
.story :is(.ptx-dd, .ptx-door) > span { color: var(--w-text-secondary); overflow: hidden; text-overflow: ellipsis; }
.story .ptx-door > span { max-width: 240px; }
.story .ptx-dd > span { flex: 1 1 auto; }
.story .ptx-door > em { margin-left: 8px; font-style: normal; color: var(--w-text-tertiary); }
.story .ptx-dd > em { flex: none; width: 9px; height: 6px; margin-left: 10px; background: var(--w-text-tertiary);
  -webkit-mask: var(--mk-ico-chev) center / contain no-repeat; mask: var(--mk-ico-chev) center / contain no-repeat; }
/* the run is the footer's Auto column: it takes its whole width (the status up to its 320) and the doors wrap in what
   is left, as WPF lays a Grid out — it never squeezes the status to give the doors one row */
.story .ptx-run { display: flex; align-items: center; justify-content: flex-end; flex: none; min-width: 0; }
.story .ptx-run > .hbtn { flex: none; }
.story .ptx-run > .hbtn + .hbtn { margin-left: 8px; }
.story .ptx-bar { flex: none; width: 140px; height: 6px; margin-right: 10px; border-radius: 3px; background: var(--w-bg-hover); overflow: hidden; }
.story .ptx-bar > i { display: block; height: 100%; border-radius: 3px; background: var(--w-accent); }
.story .ptx-status { min-width: 0; max-width: 320px; margin-right: 12px; font-size: var(--w-fs-footnote); color: var(--w-text-secondary);
  white-space: pre; overflow: hidden; text-overflow: ellipsis; }
/* a stage narrower than the window (a guide's column, a phone): the list gives up its floor, then the palette goes */
@container (max-width: 980px) {
  .story .ptx-win .ptx-list table.dg { min-width: 0; }
  .story .ptx-list :is(th, td):nth-child(3) { width: 80px !important; }
  .story .ptx-list :is(th, td):nth-child(5) { width: 96px !important; }
  .story .ptx-foot { flex-wrap: wrap; }
  .story .ptx-run { width: 100%; flex: 1 1 100%; }
  .story .ptx-lr1 { flex-wrap: wrap; }
}
@container (max-width: 640px) {
  .story .ptx-content { grid-template-columns: minmax(0, 1fr); }
  .story .ptx-pal { display: none; }
  .story .ptx-win .ptx-list table.dg { min-width: 520px; }
}

/* ── the footer's Formats list, over the window it drops from; the Settings window ── */
.story .ptx-popwrap { display: flex; flex-direction: column; align-items: flex-start; }
.story .ptx-popwrap > .capwin { width: 100%; }
.story .ptx-fmts > .ptx-body { padding: 12px 16px 16px; }
.story .ptx-doors.nowrap { flex-wrap: nowrap; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, var(--w-text-primary) 72%, transparent);
  mask-image: linear-gradient(to right, var(--w-text-primary) 72%, transparent); }
.story .ptx-menu { position: relative; z-index: 2; margin: -12px 0 0 16px; box-shadow: var(--w-shadow-popover); }
.story .ptx-fgrid { display: grid; grid-template-columns: minmax(70px, auto) minmax(0, 1fr); gap: 6px 10px; align-items: center; margin-bottom: 8px; }
.story .ptx-fgrid > :is(.mk-combo, .mk-field), .story .ptx-igrid > :is(.mk-combo, .mk-field) { width: 100%; }
.story .ptx-fl { font-size: var(--w-fs-subhead); color: var(--w-text-primary); }
.story .ptx-ticks { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 8px; }
.story .ptx-ticks.ptx-nest { margin-left: 22px; }
.story .ptx-gap { margin-top: 6px; }

/* ── the Output window ── */
.story .ptx-lead { margin-bottom: 14px; }
.story .ptx-row { display: flex; align-items: center; gap: 8px; }
.story .ptx-row > :is(.mk-field, .mk-combo) { flex: 1 1 auto; }
.story .ptx-mb16 { margin-bottom: 16px; }
.story .ptx-mb8 { margin-bottom: 8px; }
.story .ptx-mb6 { margin-bottom: 6px; }
.story .ptx-mt6 { margin-top: 6px; }
.story .ptx-mono > .mk-field { width: 100%; font-family: var(--w-font-mono); }
.story .ptx-monob { font-family: var(--w-font-mono); }
.story .ptx-ph > span { color: var(--w-text-tertiary); }
.story .ptx-ex { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; align-items: center; margin-top: 8px; }
.story .ptx-exl { font-family: var(--w-font-mono); font-size: var(--w-fs-body); color: var(--w-accent-text); }
.story .ptx-exl.sans { font-family: var(--w-font-sans); }
.story .ptx-exw { font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); }
.story .ptx-land { margin-top: 14px; padding: 8px 10px; border-radius: var(--w-radius-medium); background: var(--w-bg-subtle); min-width: 0; }
.story .ptx-path { margin-top: 3px; font-family: var(--w-font-mono); color: var(--w-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── the Issue window ── */
.story .ptx-block { margin-bottom: 14px; }
.story .ptx-igrid { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 6px 0; align-items: center; }
.story .ptx-igrid > .ptx-fl { padding-right: 10px; }
.story .ptx-ph8 { margin: -2px 0 2px; }

/* ── AppleErrorDialog, Warning (Margin 28,12,28,20; the 40-px circle; the body under the heading, 56 in) ── */
.story .ptx-alert > .ptx-body { padding: 12px 28px 20px; }
.story .ptx-ahead { display: flex; align-items: flex-start; gap: 16px; margin-top: 8px; }
.story .ptx-aico { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-top: 2px;
  border-radius: 50%; background: var(--w-warning); color: var(--w-text-on-accent); font-size: 22px; font-weight: var(--w-fw-bold); line-height: 1; }
.story .ptx-aico.bad { background: var(--w-danger); }
.story .ptx-aheading { padding-top: 2px; font-size: var(--w-fs-title3); font-weight: var(--w-fw-semibold); line-height: 1.3; color: var(--w-text-primary); }
.story .ptx-abody { margin: 6px 0 16px 56px; font-size: var(--w-fs-body); line-height: 1.45; color: var(--w-text-secondary); }
.story .ptx-abody p { margin: 0; }
.story .ptx-abody p + p { margin-top: 1.1em; }
.story .ptx-alert .rl-foot { margin-top: 4px; }

/* ── the Dictum gate ── */
.story .ptx-counts { margin-bottom: 6px; font-size: var(--w-fs-footnote); color: var(--w-text-secondary); white-space: pre-wrap; }
/* AppleListBox: no frame and no fill of its own — the rows sit on the window; AppleListBoxItem pads 8,5 and the row's
   own grid 2,5; the first row is selected when the window opens (RowsList.SelectedIndex = 0) */
.story .ptx-lb { min-width: 0; }
.story .ptx-grow { display: grid; grid-template-columns: minmax(78px, auto) minmax(0, 1fr) auto; gap: 0 10px; align-items: start; padding: 10px;
  border-radius: var(--w-radius-small); }
.story .ptx-grow.sel { background: var(--w-bg-selected); }
.story .ptx-gs { display: flex; flex-direction: column; min-width: 0; font-size: var(--w-fs-footnote); }
.story .ptx-gs > span { max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .ptx-mono.acc { font-family: var(--w-font-mono); color: var(--w-accent-text); }
.story .ptx-gd { min-width: 0; }
.story .ptx-gd > b { display: block; font-size: var(--w-fs-body); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .ptx-gd > span { display: block; margin-top: 1px; font-size: var(--w-fs-footnote); color: var(--w-text-secondary); line-height: 1.4; }
.story .ptx-grow > .mk-badge { margin-top: 1px; }

/* ── the IFC export window and the IFC classes window ── */
.story .ptx-ehd { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; }
.story .ptx-ehd > .ptx-head { margin: 0; flex: 1 1 320px; }
.story .ptx-pur { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.story .ptx-pur > .ptx-cap + .mk-combo { margin-right: 4px; }
.story .ptx-ecols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 14px; }
.story .ptx-ecard { padding: 8px 16px 12px; border: 1px solid var(--w-stroke-subtle); }
.story .ptx-ecard + .ptx-ecard { padding: 14px; }
.story .ptx-scroll { max-height: 480px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, var(--w-text-primary) 84%, transparent);
  mask-image: linear-gradient(to bottom, var(--w-text-primary) 84%, transparent); }
.story .ptx-pdesc { margin-top: 6px; font-size: var(--w-fs-subhead); color: var(--w-text-secondary); line-height: 1.4; }
.story .ptx-export .ptx-scroll .ptx-sect { margin: 14px 0 6px; }
.story .ptx-crow { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 10px; align-items: center; margin-top: 8px; }
.story .ptx-crow > .mk-combo { width: 100%; }
.story .ptx-opt { display: flex; align-items: flex-start; gap: 10px; margin-top: 8px; }
.story .ptx-opt > .mk-switch { margin-top: 1px; }
.story .ptx-ol { font-size: var(--w-fs-body); color: var(--w-text-primary); }
.story .ptx-oh { margin-top: 1px; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); line-height: 1.35; }
.story .ptx-sumb { display: inline-block; margin-bottom: 8px; padding: 3px 8px; border-radius: var(--w-radius-small);
  background: var(--w-accent-subtle); color: var(--w-accent-ink); font-size: var(--w-fs-badge); font-weight: var(--w-fw-semibold); line-height: 1.35; }
.story .ptx-cons { margin-bottom: 4px; font-size: var(--w-fs-subhead); color: var(--w-text-secondary); line-height: 1.4; }
.story .ptx-3d { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin: 16px 0 6px; }
.story .ptx-3d .ptx-sect { margin: 0; }
.story .ptx-pfs { margin-bottom: 6px; font-size: var(--w-fs-footnote); color: var(--w-text-secondary); }
.story .ptx-pf { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; margin-bottom: 5px; font-size: var(--w-fs-footnote); }
.story .ptx-pfv { max-width: 110px; color: var(--w-text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .ptx-pft { color: var(--w-text-secondary); }
.story .ptx-pft.warn { color: var(--w-warning-ink); }
.story .ptx-pft.bad { color: var(--w-danger-ink); }
.story .ptx-stamp { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 10px; padding: 10px 14px;
  border: 1px solid var(--w-stroke-subtle); }
.story .ptx-stx { flex: 1 1 320px; min-width: 0; }
.story .ptx-sl { font-size: var(--w-fs-footnote); color: var(--w-text-secondary); }
.story .ptx-dl { margin-top: 3px; font-size: var(--w-fs-subhead); color: var(--w-text-primary); line-height: 1.4; white-space: pre-wrap; }
.story .ptx-sacts { display: flex; align-items: center; gap: 8px; flex: none; }
.story .ptx-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 10px 14px; border: 1px solid var(--w-stroke-subtle); }
.story .ptx-k > b { display: block; margin-bottom: 2px; font-size: var(--w-fs-title2); font-weight: var(--w-fw-semibold);
  color: var(--w-text-primary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.story .ptx-k > b.warn { color: var(--w-warning-ink); }
.story .ptx-k > b.acc { color: var(--w-accent-ink); }
.story .ptx-k > b.bad { color: var(--w-danger-ink); }
.story .ptx-k > span { font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); white-space: pre-wrap; }
.story .ptx-big { container-type: inline-size; }
/* a stage narrower than the window: the combo column and the right card give up width first */
@container (max-width: 1000px) {
  .story .ptx-ecols { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); }
  .story .ptx-crow { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); }
}
@container (max-width: 720px) {
  .story .ptx-ecols { grid-template-columns: minmax(0, 1fr); }
  .story .ptx-crow { grid-template-columns: minmax(0, 1fr); }
  .story .ptx-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ── the transmittal, a page in a browser: its paper and ink in both themes (it is a document) ── */
.story .ptx-browser > .ptx-body { padding: 0; }
.story .ptx-tpage { padding: 24px 28px 28px; background: var(--w-sheet-paper); color: var(--w-sheet-ink); font-size: 12.5px; line-height: 1.5; }
.story .ptx-tpage h1 { margin: 0 0 2px; font-size: 19px; font-weight: var(--w-fw-bold); color: var(--w-sheet-ink); letter-spacing: 0; }
.story .ptx-tsub { margin: 0 0 16px; color: color-mix(in srgb, var(--w-sheet-ink) 62%, var(--w-sheet-paper)); }
.story .ptx-tmeta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 16px; font-size: 12px;
  color: color-mix(in srgb, var(--w-sheet-ink) 80%, var(--w-sheet-paper)); }
.story .ptx-tmeta b { color: var(--w-sheet-ink); }
.story .ptx-tp { margin: 0 0 14px; padding: 9px 14px; border-radius: 8px; font-size: 14px; }
.story .ptx-tp.build { background: color-mix(in srgb, var(--w-success) 14%, var(--w-sheet-paper));
  color: color-mix(in srgb, var(--w-success) 55%, var(--w-sheet-ink)); }
.story .ptx-tp.nobuild { background: color-mix(in srgb, var(--w-warning) 16%, var(--w-sheet-paper));
  color: color-mix(in srgb, var(--w-warning) 45%, var(--w-sheet-ink)); }
.story .ptx-tnote { margin: 0 0 16px; padding: 9px 14px; border-left: 3px solid var(--w-sheet-line);
  background: color-mix(in srgb, var(--w-sheet-ink) 5%, var(--w-sheet-paper)); white-space: pre-wrap; }
.story .ptx-twrap { overflow-x: auto; }
.story .ptx-tpage table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 12px; }
.story .ptx-tpage :is(th, td) { padding: 6px 9px; text-align: left; border-bottom: 1px solid var(--w-sheet-line); white-space: nowrap; }
.story .ptx-tpage td:is(:nth-child(2), :nth-child(6)) { white-space: normal; }
.story .ptx-tpage td:last-child { white-space: normal; min-width: 150px; }
.story .ptx-tpage td:last-child .ptx-tc { border-radius: 10px; }
.story .ptx-tpage th { font-size: 11px; font-weight: var(--w-fw-semibold); text-transform: uppercase; letter-spacing: .03em;
  color: color-mix(in srgb, var(--w-sheet-ink) 62%, var(--w-sheet-paper)); }
.story .ptx-tpage td.n { font-family: var(--w-font-mono); color: color-mix(in srgb, var(--w-accent) 70%, var(--w-sheet-ink)); }
.story .ptx-tpage td u { text-decoration-color: color-mix(in srgb, var(--w-sheet-ink) 35%, var(--w-sheet-paper)); }
.story .ptx-tc { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 11px; font-weight: var(--w-fw-semibold); }
.story .ptx-tc.ok { background: color-mix(in srgb, var(--w-success) 15%, var(--w-sheet-paper)); color: color-mix(in srgb, var(--w-success) 55%, var(--w-sheet-ink)); }
.story .ptx-tc.bad { background: color-mix(in srgb, var(--w-danger) 12%, var(--w-sheet-paper)); color: color-mix(in srgb, var(--w-danger) 65%, var(--w-sheet-ink)); }

/* ── the comparator: the two renders under one curtain ── */
.story .ptx-cnav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; min-width: 0; }
.story .ptx-cl { display: flex; align-items: center; gap: 6px; flex: none; }
.story .ptx-cl > .ptx-hint { margin-left: 6px; }
.story .ptx-cm { display: flex; align-items: center; gap: 10px; min-width: 0; }
.story .ptx-cm > b { font-size: var(--w-fs-body); font-weight: var(--w-fw-semibold); white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.story .ptx-vp { position: relative; height: 380px; overflow: hidden; border-radius: 10px; background: var(--w-bg-subtle); }
.story .ptx-layer { position: absolute; inset: 0; }
.story .ptx-paper { position: absolute; top: 22px; bottom: 22px; left: 50%; width: min(78%, 500px); transform: translateX(-50%);
  background: var(--w-sheet-paper); border: 1px solid var(--w-sheet-line); box-shadow: var(--w-shadow-card); }
.story .ptx-paper > i { position: absolute; display: block; box-sizing: border-box; }
.story .ptx-tb { right: 3%; top: 4%; bottom: 4%; width: 15%; border: 1px solid var(--w-sheet-ink); opacity: .55; }
.story .ptx-w { border: 2px solid var(--w-sheet-ink); opacity: .7; }
.story .ptx-w.a { left: 6%; top: 10%; width: 46%; height: 52%; }
.story .ptx-w.b { left: 52%; top: 10%; width: 22%; height: 34%; border-left: 0; }
.story .ptx-w.c { left: 6%; top: 62%; width: 30%; height: 26%; border-top: 0; }
.story .ptx-w.d { left: 36%; top: 62%; width: 38%; height: 26%; border-top: 0; border-left: 0; }
.story .ptx-g { left: 4%; right: 22%; top: 36%; height: 0; border-top: 1px dashed var(--w-sheet-ink); opacity: .35; }
.story .ptx-layer.prev .ptx-paper { filter: grayscale(1); }
.story .ptx-layer.prev .ptx-w.b { width: 22%; height: 52%; }
.story .ptx-new { left: 58%; top: 18%; width: 10%; height: 18%; border: 2px solid var(--w-sheet-ink); opacity: .7; }
.story .ptx-div { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--w-accent); }
.story .ptx-cfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.story .ptx-leg { display: flex; align-items: center; gap: 6px; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); }
.story .ptx-leg > i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--w-text-tertiary); }
.story .ptx-leg > i.cur { margin-left: 10px; background: var(--w-accent); }

/* ── the register ── */
.story .ptx-hcols { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 12px; }
/* RecordsList is an AppleListBox too: no frame, no fill; each card pads 8,5 (the item) + 2,5 (its StackPanel) */
.story .ptx-recs { min-width: 0; }
.story .ptx-rec { display: flex; flex-direction: column; gap: 1px; padding: 10px; border-radius: var(--w-radius-small); min-width: 0; }
.story .ptx-rec.sel { background: var(--w-bg-selected); }
.story .ptx-rec > b { font-size: var(--w-fs-body); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .ptx-rec > span { font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* CompliantLabel sets no Foreground: it inherits the ListBox's TextPrimary */
.story .ptx-rec > span.ptx-rc { color: var(--w-text-primary); white-space: pre; }
.story .ptx-hpane { display: flex; flex-direction: column; min-width: 0; padding: 12px 14px; border-radius: var(--w-radius-medium); background: var(--w-bg-subtle); }
.story .ptx-hpane > b { font-size: var(--w-fs-body); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .ptx-hpane > .ptx-hint { margin: 2px 0; white-space: pre; }
.story .ptx-delta { margin: 0 0 10px; font-size: var(--w-fs-footnote); color: var(--w-accent-text); white-space: pre-wrap; }
.story .ptx-htab table.dg { table-layout: fixed; }
.story .ptx-htab td { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.story .ptx-history { container-type: inline-size; }
@container (max-width: 600px) { .story .ptx-hcols { grid-template-columns: minmax(0, 1fr); } }

/* ── the picker ── */
.story .ptx-prow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.story .ptx-flex { flex: 1 1 auto; }
.story .ptx-prow2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 8px; margin: 12px 0 10px; }
.story .ptx-prow2 > * { width: 100%; }
.story .ptx-prow.ptx-end { justify-content: flex-end; margin: 0 2px 6px; }
.story .ptx-prow.ptx-end > .hbtn.link { margin-left: 6px; }
.story .ptx-ptab table.dg { table-layout: fixed; }
.story .ptx-ptab td { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* the IFC export's footer line is AppleText.Footnote in the tertiary ink */
.story .ptx-export .rl-st { color: var(--w-text-tertiary); }
/* the two combos of a window header (Purpose ▾, Standard ▾) are as wide as their longest choice, never under 200 */
.story .ptx-pur > .mk-combo { min-width: 200px; }

/* ── tools/web_mockups/quire.css ── */
/* quire.py's kinds (prefix qx-). Every rule sits under .story; colours and sizes are the window's tokens (the
   WEB-THEME block of site.css, --w-*): never a raw hex. The shared pieces — the title bar, the app header, .hbtn,
   the mk-* controls, .ck, .dg, .tablewrap — are site.css's, used as they are. */

/* ── the stage and the window (the XAML's Width; .capwin keeps max-width: 100%) ── */
.story .qx-stage { width: 100%; display: flex; justify-content: center; min-width: 0; }
.story .qx-win { width: 100%; min-width: 0; }
.story .qx-win.qx-w460 { width: 460px; }
.story .qx-win.qx-w660 { width: 660px; }
.story .qx-win.qx-w720 { width: 720px; }
.story .qx-win.qx-w820 { width: 820px; }
.story .qx-body { padding: 16px 24px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0;
  font-size: var(--w-fs-callout); color: var(--w-text-primary); }
.story .qx-dlg .qx-body { padding: 8px 20px 16px; gap: 12px; }
.story .qx-positions .qx-body { padding: 16px 24px 20px; }
.story .qx-picker .qx-body { padding: 16px 20px 16px; }
.story .qx-body .apphdr { margin-bottom: 2px; }
.story .qx-body .tablewrap { min-width: 0; }
.story .qx-body .tscroll { overflow: hidden; }
.story .qx-body table.dg { width: 100%; min-width: 0; table-layout: fixed; }
.story .qx-body .dg tbody td { white-space: nowrap; }
.story .qx-trim { overflow: hidden; text-overflow: ellipsis; }
/* the app joins with «  ·  » and «  » (two spaces): WPF keeps them, HTML would not */
.story .qx-body .dg tbody td.qx-pre, .story .qx-summ, .story .qx-done > .qx-subhead { white-space: pre-wrap; }
.story .qx-body .dg tbody td.qx-pre { white-space: pre; }

/* ── rows of controls ── */
.story .qx-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.story .qx-row.qx-gap22 { gap: 22px; }
.story .qx-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.story .qx-sp { flex: 1 1 auto; }
.story .qx-lbl { font-size: var(--w-fs-subhead); font-weight: var(--w-fw-semibold); color: var(--w-text-secondary);
  white-space: nowrap; }
.story .qx-subhead { font-size: var(--w-fs-subhead); color: var(--w-text-secondary); line-height: 1.4; min-width: 0; }
.story .qx-subhead.qx-tight { margin-top: -9px; }
.story .qx-footnote { font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); line-height: 1.4; min-width: 0; }
.story .qx-ter { color: var(--w-text-tertiary); }
/* a control the window has switched off (IsEnabled=False: AppleCheckBox, AppleTextBox dim to 0.45) */
.story .qx-off { display: inline-flex; opacity: var(--w-opacity-muted); }
.story .qx-hl { font-size: var(--w-fs-headline); font-weight: var(--w-fw-semibold); color: var(--w-text-primary);
  margin-top: 6px; }
.story .qx-t3 { font-size: var(--w-fs-title3); font-weight: var(--w-fw-semibold); color: var(--w-text-primary);
  line-height: 1.3; }
.story .qx-t2 { font-size: var(--w-fs-title2); font-weight: var(--w-fw-semibold); color: var(--w-success-ink);
  line-height: 1.3; }
.story .qx-lt { font-size: var(--w-fs-large-title); font-weight: var(--w-fw-semibold); color: var(--w-text-primary);
  line-height: 1.25; }

/* a card of the pane (Border BgSurface · StrokeSubtle · Radius.Medium) */
.story .qx-card { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 11px 14px;
  background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-medium); }
.story .qx-card.qx-col { flex-direction: column; align-items: stretch; gap: 5px; padding: 12px 14px; }
.story .qx-card.qx-col > .qx-row + .qx-row { margin-top: 7px; }

/* ── the main window: the header's live lines, the steps, the footer ── */
.story .qx-proj { font-size: var(--w-fs-body); color: var(--w-text-secondary); }
.story .qx-summ { font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); }
.story .qx-steps { display: inline-flex; align-self: flex-start; align-items: stretch; gap: 2px; max-width: 100%;
  padding: var(--w-space-group-bar-padding); border-radius: var(--w-radius-group); background: var(--w-bg-subtle); }
/* SegmentToggle: Size.ControlInner tall (28 — the two lines share it), MinWidth 92, Padding 14,0, Medium; checked =
   BgSelected + AccentInk. The footnote is AppleText.Footnote, whose OWN Foreground (tertiary) beats the segment's
   inherited ink: it stays tertiary on the checked step too. */
.story .qx-step { display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box;
  height: var(--w-size-control-inner); min-width: 92px; padding: 0 14px;
  border-radius: var(--w-radius-small); color: var(--w-text-secondary); }
.story .qx-step.on { background: var(--w-bg-selected); color: var(--w-accent-ink); }
.story .qx-step-t { display: flex; flex-direction: column; min-width: 0; }
.story .qx-step-t b { font-size: var(--w-fs-control); font-weight: var(--w-fw-medium); line-height: 1.2;
  white-space: nowrap; }
.story .qx-step-t i { font-style: normal; font-size: var(--w-fs-footnote); line-height: 1.2; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; color: var(--w-text-tertiary); }
.story .qx-step .mk-badge { flex: none; }
.story .qx-pane { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.story .qx-foot { display: flex; align-items: center; gap: 10px; min-width: 0; }
.story .qx-foot > :first-child { flex: 0 1 auto; min-width: 0; }
.story .qx-foot.qx-mainfoot { margin-top: 2px; }
.story .qx-btns { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.story .qx-btns > .hbtn:not(.link):not(.compact) { min-width: var(--w-size-button-min-width); }
.story .qx-mainfoot .qx-btns > .hbtn.link { margin-right: 4px; }
.story .qx-status { font-size: var(--w-fs-subhead); color: var(--w-text-secondary); min-width: 0; }
.story .qx-count { font-size: var(--w-fs-subhead); color: var(--w-text-secondary); }
.story .qx-foot-l { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }

/* ── step 1: the Add card, the edit bar, the list ── */
.story .qx-add { flex-wrap: wrap; row-gap: 10px; }
.story .qx-add .qx-lbl { margin-right: 0; }
.story .qx-hint { flex: 1 1 260px; min-width: 200px; font-size: var(--w-fs-subhead); color: var(--w-text-secondary);
  line-height: 1.35; }
.story .qx-doors { display: inline-flex; gap: 10px; flex: none; }
.story .qx-chk { display: inline-flex; align-items: center; gap: 6px; }
.story .qx-sheets td.qx-chkc { padding: 0 0 0 4px; }

/* ── step 2: the matrix and the sheet under it ── */
.story .qx-matrix td.qx-mc { text-align: center; padding: 0 6px; }
.story .qx-matrix td.qx-mc > span { display: block; white-space: normal; line-height: 1.3; max-height: 2.6em;
  overflow: hidden; color: var(--w-text-primary); }
.story .qx-matrix td.qx-mc.qx-dim > span { color: var(--w-text-tertiary); }
.story .qx-matrix thead th { overflow: hidden; text-overflow: ellipsis; }
.story .qx-prev { height: 240px; box-sizing: border-box; display: flex; flex-direction: column; min-width: 0;
  background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-card); }
.story .qx-prev-h { padding: 12px 14px 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.story .qx-prev-h b { font-size: var(--w-fs-headline); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .qx-cap { font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); white-space: pre; overflow: hidden;
  text-overflow: ellipsis; }
.story .qx-canvas { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 4px 0 8px; }
.story .qx-paper { position: relative; box-sizing: border-box; border: 1px solid var(--w-stroke-default);
  border-radius: 2px; background: var(--w-bg-surface); }
.story .qx-strip { position: absolute; top: -1px; right: -1px; bottom: -1px; width: 20%; box-sizing: border-box;
  border: 1px solid var(--w-stroke-subtle); background: var(--w-bg-subtle); }
.story .qx-vp { position: absolute; box-sizing: border-box; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--w-accent); border-radius: 4px; background: var(--w-accent-subtle); overflow: hidden; }
.story .qx-vp.empty { border: 1px dashed var(--w-stroke-default); background: transparent; }
.story .qx-vp em { font-style: normal; font-size: var(--w-fs-footnote); line-height: 1.1; color: var(--w-accent-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 3px; }
.story .qx-vp.empty em { color: var(--w-text-tertiary); }
.story .qx-mm { font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); }

/* ── step 3: the danger card, the findings, the all-clear, the receipt ── */
.story .qx-block { display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-width: 0;
  background: var(--w-danger-subtle); border: 1px solid var(--w-danger); border-radius: var(--w-radius-medium); }
.story .qx-block-t { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; }
.story .qx-block-t b { font-size: var(--w-fs-headline); font-weight: var(--w-fw-semibold); color: var(--w-danger-ink); }
.story .qx-block-t span { font-size: var(--w-fs-subhead); color: var(--w-text-secondary); line-height: 1.4; }
.story .qx-block > .hbtn { flex: none; }
.story .qx-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 24px;
  text-align: center; background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-card); }
.story .qx-empty b { font-size: var(--w-fs-headline); color: var(--w-text-primary); }
.story .qx-empty span { font-size: var(--w-fs-subhead); color: var(--w-text-secondary); max-width: 460px; }
.story .qx-done { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 18px 20px;
  background: var(--w-success-subtle); border: 1px solid var(--w-success); border-radius: var(--w-radius-card); }
.story .qx-done > .qx-subhead { margin-bottom: 6px; }
.story .qx-canon { display: flex; align-items: center; gap: 10px; margin: 2px 0 2px; }
/* the hint by its own class: a bare `> span` also caught the button beside it (an .hbtn is a span) and shrank its
   words to the footnote's size */
.story .qx-canon > .qx-canon-t { flex: 1 1 auto; min-width: 0; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); }
.story .qx-canon > .hbtn { flex: none; }
.story .qx-done .qx-row { margin-top: 8px; }
.story .qx-receipt td.qx-ok { color: var(--w-success-ink); }
.story .qx-receipt td.qx-bad { color: var(--w-danger-ink); }
.story .qx-hand { margin-top: 2px; gap: 16px; }

/* ── Number the sheets (BulkEditWindow) ── */
.story .qx-links { display: inline-flex; align-items: center; gap: 10px; }
.story .qx-produce { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; min-width: 0;
  background: var(--w-neutral-subtle); border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-medium); }
.story .qx-produce b { font-size: var(--w-fs-subhead); font-weight: var(--w-fw-semibold); color: var(--w-text-secondary); }
.story .qx-produce span { font-size: var(--w-fs-callout); color: var(--w-text-primary); white-space: pre-wrap; }

/* ── the picker (ViewPickerWindow): its heading is 20 / 600, its sub 12 tertiary ── */
.story .qx-pick-h { display: flex; flex-direction: column; gap: 3px; margin-bottom: 2px; }
.story .qx-pick-h b { font-size: 20px; font-weight: var(--w-fw-semibold); color: var(--w-text-primary); line-height: 1.25; }
.story .qx-pick-h span { font-size: 12px; color: var(--w-text-tertiary); line-height: 1.4; }
.story .qx-picker .mk-search { width: 100%; box-sizing: border-box; }

/* ── the draft window ── */
.story .qx-dhead { display: flex; align-items: center; gap: 10px; margin-top: 6px; min-width: 0; }
.story .qx-dhead b { flex: 1 1 auto; min-width: 0; font-size: var(--w-fs-headline); font-weight: var(--w-fw-semibold);
  color: var(--w-text-primary); }
.story .qx-chip { flex: none; max-width: 60%; padding: 3px 8px; border-radius: 6px; background: var(--w-bg-subtle);
  font-size: var(--w-fs-subhead); color: var(--w-text-secondary); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; }
.story .qx-area { min-height: 96px; padding: 8px 11px; box-sizing: border-box; border: 1px solid var(--w-stroke-default);
  border-radius: var(--w-radius-medium); background: var(--w-bg-surface); font-size: var(--w-fs-body);
  color: var(--w-text-primary); line-height: 1.4; }
.story .qx-row > .qx-subhead { flex: 1 1 auto; }

/* ── AppleErrorDialog (Warning) and AppleInputDialog: 460, margins 28,12,28,20 ── */
.story .qx-pair { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; width: 100%; }
.story .qx-pair > .qx-win { flex: 0 1 460px; }
.story .qx-abox, .story .qx-ibox { padding: 12px 28px 20px; gap: 0; }
.story .qx-alert { display: flex; align-items: flex-start; gap: 16px; margin-top: 8px; }
.story .qx-ai { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  margin-top: 2px; border-radius: 50%; background: var(--w-warning); color: var(--w-text-on-accent); font-size: 22px;
  font-weight: var(--w-fw-bold); line-height: 1; }
.story .qx-alert b { padding-top: 9px; font-size: var(--w-fs-title3); font-weight: var(--w-fw-semibold);
  color: var(--w-text-primary); }
.story .qx-abody { margin: 6px 0 16px 56px; font-size: var(--w-fs-body); color: var(--w-text-secondary); line-height: 1.4; }
.story .qx-abody p, .story .qx-ibody p { margin: 0; }
.story .qx-abody p + p, .story .qx-ibody p + p { margin-top: 1.4em; }
.story .qx-afoot { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 4px; }
.story .qx-afoot > .hbtn:not(.plain) { min-width: var(--w-size-button-min-width); }
.story .qx-ibox .qx-t3 { margin-top: 8px; }
.story .qx-ibody { margin: 6px 0 14px; font-size: var(--w-fs-body); color: var(--w-text-secondary); line-height: 1.4; }
.story .qx-ibox .mk-field { width: 100%; box-sizing: border-box; }
.story .qx-ibox .mk-field.qx-focus { border-color: var(--w-accent); }
.story .qx-selected { background: color-mix(in srgb, var(--w-accent) 35%, transparent); }
.story .qx-ibox .qx-afoot { margin-top: 18px; }

/* a narrow column: the steps' footnotes and the Add card give way first */
@media (max-width: 900px) {
  .story .qx-add { flex-wrap: wrap; }
  .story .qx-doors { flex-wrap: wrap; }
  .story .qx-step-t i { display: none; }
}
@media (max-width: 760px) {
  .story .qx-foot, .story .qx-btns, .story .qx-foot-l, .story .qx-dhead { flex-wrap: wrap; }
  .story .qx-steps { flex-wrap: wrap; }
}

/* ── tools/web_mockups/room-data-sheets.css ── */
/* room-data-sheets.py's kinds (prefix rdx-). Every rule sits under .story; colours and sizes are the window's tokens (the
   WEB-THEME block of site.css, --w-*): never a raw hex. The shared pieces — the title bar, the app header, .hbtn, the
   mk-* controls, .ck, .dg, .tablewrap, .seg — are site.css's, used as they are. Sizes not in a token are the XAML's
   own (RdsPanelView.xaml, RdsResultWindow.xaml, AppleErrorDialog.xaml, AppleInputDialog.xaml), named where used. */

/* ── the stage and the windows (the XAML's widths; .capwin keeps max-width: 100%) ── */
.story .rdx-stage { width: 100%; display: flex; justify-content: center; min-width: 0; }
.story .rdx-win { width: 100%; min-width: 0; }
.story .rdx-win.rdx-main { width: 1220px; }          /* RoomDataSheetsWindowFactory: min(1220, 86 % of the screen) */
.story .rdx-win.rdx-w460 { width: 460px; }
.story .rdx-win.rdx-w820 { width: 820px; }
.story .rdx-stack { display: flex; flex-direction: column; align-items: center; gap: 18px; width: 100%; min-width: 0; }

/* ── the main window: header (16,14,16,0) · steps (16,10) · rail 360 | 14 | stage · action bar (16,10,16,14) ── */
.story .rdx-body { padding: 14px 16px 14px; display: flex; flex-direction: column; min-width: 0;
  font-size: var(--w-fs-callout); color: var(--w-text-primary); }
.story .rdx-hdr .apphdr { margin: 0; }
.story .rdx-steps { display: flex; justify-content: center; margin: 10px 0; min-width: 0; }
.story .rdx-seg > .s { gap: 0; }
.story .rdx-seg > .s > .mk-badge { margin-right: 8px; flex: none; }
.story .rdx-cols { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 14px; height: 480px;
  min-width: 0; }
.story .rdx-rail, .story .rdx-stg { position: relative; min-width: 0; min-height: 0; overflow: hidden;
  background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-card); }
.story .rdx-stg { display: flex; flex-direction: column; }
.story .rdx-foot { display: flex; align-items: center; gap: 12px; margin-top: 10px; min-width: 0; }
.story .rdx-status { flex: 1 1 auto; min-width: 0; font-size: var(--w-fs-footnote); line-height: 1.45;
  color: var(--w-text-secondary); white-space: pre-line; }
.story .rdx-btns { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.story .rdx-btns > .hbtn { min-width: var(--w-size-button-min-width); justify-content: center; }
.story .rdx-selc { margin-right: 4px; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); white-space: nowrap; }

/* ── the rail: RdsEyebrow, the footnotes, the controls at the rail's width ── */
.story .rdx-pad { padding: 14px; display: flex; flex-direction: column; min-width: 0; }
/* RdsEyebrow sets no TextWrapping: a long one (the Spanish PLANNED SHEETS line) is cut at the rail's edge, not wrapped */
.story .rdx-eb { margin: 0 0 5px; font-size: var(--w-fs-subhead); font-weight: var(--w-fw-semibold); line-height: 1.35;
  color: var(--w-text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: clip; }
.story .rdx-fn { font-size: var(--w-fs-footnote); line-height: 1.4; color: var(--w-text-tertiary); min-width: 0; }
.story .rdx-cap, .story .rdx-sub { font-size: var(--w-fs-footnote); line-height: 1.4; color: var(--w-text-secondary); }
.story .rdx-pad .mk-combo { width: 100%; box-sizing: border-box; min-width: 0; }
.story .rdx-pad .mk-combo > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .rdx-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.story .rdx-r1btns { margin: 12px 0 10px; }
.story .rdx-off { display: inline-flex; min-width: 0; opacity: var(--w-opacity-muted); }
.story .rdx-off.rdx-fill { display: flex; flex: 1 1 auto; }
.story .rdx-dim { opacity: var(--w-opacity-muted); }
.story .rdx-ctr { justify-content: center; text-align: center; }
.story .rdx-ck { display: flex; min-width: 0; }
/* a CheckBox's words are one TextBlock that does not wrap: past the rail's edge WPF clips them dry, no "…" */
.story .rdx-ck .mk-check { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.story .rdx-ck .mk-check > .ck { flex: none; }
.story .rdx-ck.sec .mk-check { color: var(--w-text-secondary); }

/* step 1: the room list, grouped by level */
.story .rdx-list { min-height: 0; overflow: hidden; }
.story .rdx-lvl { margin: 8px 0 4px; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); }
.story .rdx-lvl:first-child { margin-top: 2px; }
.story .rdx-room { margin: 2px; display: flex; min-width: 0; }
.story .rdx-room .mk-check { white-space: pre; overflow: hidden; text-overflow: clip; }

/* step 2: the Layout rail's sections */
.story .rdx-scroll { padding-right: 16px; }
.story .rdx-thumb { position: absolute; right: 3px; width: 4px; height: 26%; border-radius: 2px;
  background: var(--w-stroke-strong); }
.story .rdx-presetbtns { margin: 7px 0 14px; gap: 6px; }
.story .rdx-hair { height: 1px; margin: 0 0 14px; background: var(--w-stroke-subtle); }
.story .rdx-size { margin: 5px 0 14px; }
.story .rdx-blk { margin-bottom: 14px; display: flex; }
.story .rdx-seg3 { display: flex; width: 100%; box-sizing: border-box; }
.story .rdx-seg3 > .s { flex: 1 1 0; min-width: 0; padding: 0 6px; overflow: hidden; text-overflow: clip; white-space: nowrap; }
.story .rdx-scale { display: flex; align-items: center; margin-bottom: 14px; min-width: 0; }
.story .rdx-scale > .rdx-one { margin-right: 6px; }
.story .rdx-scale > .rdx-fn { margin-left: 10px; flex: 1 1 auto; }
.story .rdx-one { flex: none; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); }
.story .rdx-scale > .rdx-one.rdx-sub { font-size: var(--w-fs-subhead); color: var(--w-text-secondary); }
.story .rdx-tpl { display: flex; align-items: center; gap: 8px; margin: 3px 0 8px; min-width: 0; }
.story .rdx-tpl.rdx-last { margin-bottom: 14px; }
.story .rdx-tpl > .mk-combo { flex: 1 1 auto; width: auto; }
.story .rdx-tpl > .rdx-one { margin-right: -4px; }
.story .rdx-ann { margin-bottom: 12px; min-width: 0; }
.story .rdx-spine { margin: 4px 0 0 8px; padding: 2px 0 2px 8px; border-left: 1px solid var(--w-stroke-subtle); min-width: 0; }
.story .rdx-spine .rdx-spine { margin-top: 4px; }
.story .rdx-type { display: flex; align-items: center; gap: 8px; min-width: 0; }
.story .rdx-typel { flex: none; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); }
.story .rdx-type > .mk-combo { flex: 1 1 auto; width: auto; }
.story .rdx-seed { margin-top: 10px; display: flex; }
.story .rdx-tidy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px 26px; min-width: 0; }
.story .rdx-mm { margin: 0 12px 0 -2px; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); }
.story .rdx-codes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.story .rdx-codes .mk-field, .story .rdx-two .mk-field, .story .rdx-naming .mk-field, .story .rdx-two .mk-combo,
.story .rdx-pad > div > .mk-field:last-child { width: 100%; box-sizing: border-box; }
.story .rdx-fine { display: flex; align-items: center; gap: 8px; padding: 10px 12px; min-width: 0;
  background: var(--w-bg-subtle); border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-medium); }
.story .rdx-fine b { flex: none; font-size: var(--w-fs-headline); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .rdx-fine span:last-child { min-width: 0; font-size: var(--w-fs-subhead); color: var(--w-text-tertiary);
  white-space: nowrap; overflow: hidden; text-overflow: clip; }
.story .rdx-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-bottom: 12px; }
.story .rdx-schedbox { margin-bottom: 12px; padding: 6px; border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-medium); max-height: 120px; overflow: hidden; }
.story .rdx-naming { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 10px; margin-bottom: 8px; }

/* the small chevron (Icon.ChevronSmall): right when shut, down when open */
.story .rdx-chev { flex: none; width: 10px; height: 7px; background: var(--w-text-secondary); transform: rotate(-90deg);
  -webkit-mask: var(--mk-ico-chev) center / contain no-repeat; mask: var(--mk-ico-chev) center / contain no-repeat; }
.story .open > .rdx-chev, .story .open > .rdx-ch > .rdx-chev { transform: none; }

/* step 3: the planned sheets, Regroup, the update */
.story .rdx-r3 { height: 100%; box-sizing: border-box; }
.story .rdx-tbl { flex: none; min-width: 0; }
.story .rdx-tbl .tscroll { overflow: hidden; }
.story .rdx-tbl table.dg { width: 100%; min-width: 0; table-layout: fixed; }
.story .rdx-tbl thead th { overflow: hidden; text-overflow: ellipsis; }
.story .rdx-tbl td.rdx-trim { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .rdx-tbl td.rdx-wrapc { white-space: normal; line-height: 1.3; padding-top: 6px; padding-bottom: 6px; }
.story .rdx-regroup { gap: 6px; }

/* ── the stage: its two lines, the canvas (BgSubtle), the hint, the pill, the zoom buttons ── */
.story .rdx-sthd { flex: none; display: flex; flex-direction: column; gap: 1px; padding: 13px 18px 11px; min-width: 0; }
.story .rdx-sthd b { font-size: var(--w-fs-headline); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .rdx-sthd span { font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); }
.story .rdx-canvas { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; background: var(--w-bg-subtle); }
.story .rdx-hint { position: absolute; left: 16px; top: 14px; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); }
.story .rdx-zoom { position: absolute; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.story .rdx-ib { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  width: var(--w-size-control); height: var(--w-size-control); border: 1px solid var(--w-stroke-default);
  border-radius: var(--w-radius-medium); background: var(--w-bg-surface); color: var(--w-text-secondary); }
.story .rdx-ib svg { width: var(--w-size-icon-only); height: var(--w-size-icon-only); }

/* step 1: the plan — rooms (NeutralSubtle + StrokeStrong; ticked: AccentSubtle + Accent, 1.6), scope boxes (dashed) */
.story .rdx-plan { position: absolute; inset: 14px; }
.story .rdx-rm { position: absolute; box-sizing: border-box; display: flex; align-items: center; justify-content: center;
  background: var(--w-neutral-subtle); border: 1px solid var(--w-stroke-strong); }
.story .rdx-rm.sel { background: var(--w-accent-subtle); border: 1.6px solid var(--w-accent); }
.story .rdx-rm i { font-style: normal; font-size: var(--w-fs-footnote); color: var(--w-text-primary); }
.story .rdx-sb { position: absolute; box-sizing: border-box; border: 1.4px dashed var(--w-success); }
.story .rdx-sb.on { border: 2.4px dashed var(--w-success-ink); }
.story .rdx-sb i { position: absolute; left: 3px; top: 2px; font-style: normal; font-size: var(--w-fs-micro);
  color: var(--w-success-ink); white-space: nowrap; }
.story .rdx-pill { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-small); font-size: var(--w-fs-footnote); font-weight: var(--w-fw-semibold);
  color: var(--w-text-primary); white-space: nowrap; }
.story .rdx-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--w-accent); }

/* steps 2-3: the sheet, in paper millimetres (SheetPaper, SheetInk, SheetLine; panels tinted by kind) */
.story .rdx-paperbox { position: absolute; inset: 34px 56px 30px 12px; }
.story .rdx-sheet { display: block; width: 100%; height: 100%; }
.story .rdx-sheet rect { vector-effect: non-scaling-stroke; }
.story .rdx-pp { fill: var(--w-sheet-paper); stroke: var(--w-sheet-ink); stroke-width: 1; }
.story .rdx-strip { fill: var(--w-sheet-line); stroke: var(--w-sheet-ink); stroke-width: 0.8; }
.story .rdx-usable { fill: none; stroke: var(--w-accent-subtle); stroke-width: 1; stroke-dasharray: 4 3; }
.story .rdx-slot { stroke-width: 1; }
.story .rdx-slot.acc { fill: var(--w-accent-subtle); stroke: var(--w-accent-ink); }
.story .rdx-slot.ok { fill: var(--w-success-subtle); stroke: var(--w-success-ink); }
.story .rdx-slot.info { fill: var(--w-info-subtle); stroke: var(--w-info-ink); }
.story .rdx-slot.warn { fill: var(--w-warning-subtle); stroke: var(--w-warning-ink); }
.story .rdx-fp { fill: none; stroke-width: 1.1; stroke-dasharray: 3 2; }
.story .rdx-fp.acc { stroke: var(--w-accent-ink); }
.story .rdx-fp.ok { stroke: var(--w-success-ink); }
.story .rdx-fp.info { stroke: var(--w-info-ink); }
.story .rdx-fp.warn { stroke: var(--w-warning-ink); }
.story .rdx-fp.over { stroke: var(--w-danger); stroke-width: 1.8; stroke-dasharray: none; }
.story .rdx-sl { fill: var(--w-sheet-ink); font-family: var(--w-font-sans); font-size: 15px; text-anchor: middle;
  dominant-baseline: middle; }
.story .rdx-fit { position: absolute; left: 14px; bottom: 10px; font-size: var(--w-fs-footnote); color: var(--w-text-secondary); }

/* the finishes schedule as Revit prints it on the sheet */
.story .rdx-sched { max-width: 100%; box-sizing: border-box; overflow: hidden; padding: 16px 18px;
  background: var(--w-sheet-paper); border: 1px solid var(--w-stroke-default); border-radius: 2px;
  box-shadow: var(--w-shadow-window); }
.story .rdx-sched table { border-collapse: collapse; font-family: var(--w-font-sans); font-size: var(--w-fs-subhead);
  color: var(--w-sheet-ink); }
.story .rdx-sched th, .story .rdx-sched td { border: 1px solid var(--w-sheet-ink); padding: 3px 9px; text-align: center;
  white-space: nowrap; font-weight: var(--w-fw-regular); }
.story .rdx-sched th.rdx-sct { padding: 5px 9px; font-size: var(--w-fs-callout); font-weight: var(--w-fw-semibold); }

/* ── AppleErrorDialog (Warning) and AppleInputDialog: 460, margins 28,12,28,20 ── */
.story .rdx-dbox { padding: 12px 28px 20px; display: flex; flex-direction: column; min-width: 0; }
.story .rdx-alert { display: flex; align-items: flex-start; gap: 16px; margin-top: 8px; }
.story .rdx-ai { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  margin-top: 2px; border-radius: 50%; background: var(--w-warning); color: var(--w-text-on-accent); font-size: 22px;
  font-weight: var(--w-fw-bold); line-height: 1; }
.story .rdx-alert b { min-width: 0; font-size: var(--w-fs-title3); font-weight: var(--w-fw-semibold); line-height: 1.3;
  color: var(--w-text-primary); }
.story .rdx-abody { margin: 6px 0 16px 56px; font-size: var(--w-fs-body); line-height: 1.4; color: var(--w-text-secondary); }
.story .rdx-abody p, .story .rdx-ibody p { margin: 0; white-space: pre-line; }
.story .rdx-abody p + p, .story .rdx-ibody p + p { margin-top: 1.4em; }
.story .rdx-afoot { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px;
  margin-top: 4px; }
.story .rdx-afoot > .hbtn:not(.plain) { min-width: var(--w-size-button-min-width); justify-content: center; }
.story .rdx-t3h { margin-top: 8px; font-size: var(--w-fs-title3); font-weight: var(--w-fw-semibold); line-height: 1.3;
  color: var(--w-text-primary); }
.story .rdx-ibody { margin: 6px 0 14px; font-size: var(--w-fs-body); line-height: 1.4; color: var(--w-text-secondary); }
.story .rdx-dbox > .mk-field { width: 100%; box-sizing: border-box; }
.story .rdx-dbox > .mk-field.rdx-focus { border-color: var(--w-accent); }

/* ── the run report (RdsResultWindow, 820): banner 24,18 · badges 24,14 · filter 24,10 · cards 24,12 · footer 24,12,24,18 ── */
.story .rdx-result { padding: 0; display: flex; flex-direction: column; min-width: 0; }
.story .rdx-banner { display: flex; align-items: center; gap: 14px; padding: 18px 24px; }
.story .rdx-banner.ok { background: var(--w-success-subtle); }
.story .rdx-banner.warn { background: var(--w-warning-subtle); }
.story .rdx-banner.bad { background: var(--w-danger-subtle); }
.story .rdx-vdot { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 50%; color: var(--w-text-on-accent); font-size: var(--w-fs-title3); font-weight: var(--w-fw-semibold); }
.story .rdx-banner.ok .rdx-vdot { background: var(--w-success); }
.story .rdx-banner.warn .rdx-vdot { background: var(--w-warning); }
.story .rdx-banner.bad .rdx-vdot { background: var(--w-danger); }
.story .rdx-vt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.story .rdx-vt b { font-size: var(--w-fs-title3); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .rdx-vt span { font-size: var(--w-fs-callout); line-height: 1.4; color: var(--w-text-secondary); white-space: pre-wrap; }
.story .rdx-rbody { padding: 14px 24px 18px; display: flex; flex-direction: column; min-width: 0; }
.story .rdx-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.story .rdx-badges.rdx-tallies { gap: 4px 6px; margin-bottom: 4px; }
.story .rdx-tally b { margin-right: 4px; font-weight: inherit; color: var(--w-accent-ink); }
.story .mk-badge.rdx-sec { color: var(--w-text-secondary); }
.story .rdx-filter { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; min-width: 0; }
.story .rdx-filter > .mk-field { flex: 1 1 auto; min-width: 0; }
.story .rdx-filter > .seg { flex: none; }
.story .rdx-cards { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; }
.story .rdx-card { background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-card); }
.story .rdx-ch { display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.story .rdx-ch b { flex: 1 1 auto; min-width: 0; font-size: var(--w-fs-headline); font-weight: var(--w-fw-semibold);
  color: var(--w-text-primary); }
.story .rdx-gbody { padding: 0 16px 16px; }
.story .rdx-gsub { margin-bottom: 8px; font-size: var(--w-fs-subhead); line-height: 1.4; color: var(--w-text-secondary); }
.story .rdx-gr { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; }
.story .rdx-gr i { flex: none; width: 5px; height: 5px; margin: 7px 0 0 2px; border-radius: 50%; background: var(--w-text-tertiary); }
.story .rdx-gr span { min-width: 0; font-size: var(--w-fs-body); line-height: 1.4; color: var(--w-text-primary); }
.story .rdx-rfoot { margin-top: 12px; }

/* spacing the XAML gives one element and not another (its Margin), kept by name */
.story .rdx-gap3 { margin-bottom: 3px; }
.story .rdx-gap6 { margin-bottom: 6px; }
.story .rdx-gap8 { margin-bottom: 8px; }
.story .rdx-gap10 { margin-bottom: 10px; }
.story .rdx-gap12 { margin-bottom: 12px; }
.story .rdx-gap14 { margin-bottom: 14px; }
.story .rdx-t2 { margin-top: 2px; }
.story .rdx-t3 { margin-top: 3px; }
.story .rdx-t4 { margin-top: 4px; }
.story .rdx-t5 { margin-top: 5px; }
.story .rdx-t6 { margin-top: 6px; }
.story .rdx-t8 { margin-top: 8px; }
.story .rdx-t10 { margin-top: 10px; }
.story .rdx-t12 { margin-top: 12px; }
.story .rdx-t14 { margin-top: 14px; }
.story .rdx-t18 { margin-top: 18px; }

/* a narrow column: the rail narrows first, then the rail and the stage stack */
@media (max-width: 980px) {
  .story .rdx-cols { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
  .story .rdx-foot { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .story .rdx-cols { grid-template-columns: minmax(0, 1fr); height: auto; }
  .story .rdx-rail { height: 400px; }
  .story .rdx-stg { height: 320px; }
  .story .rdx-btns, .story .rdx-filter { flex-wrap: wrap; }
  .story .rdx-paperbox { inset: 34px 52px 30px 8px; }
}

/* ── tools/web_mockups/room-studio.css ── */
/* room-studio.py's kinds (prefix rsx-). Every rule sits under .story; colours and sizes are the window's tokens (the
   WEB-THEME block of site.css, --w-*): never a raw hex. The shared pieces — the title bar, the app header, the controls
   kit (.hbtn, .mk-bar, .seg, .dg, .ck, .mk-chip, .mk-combo, .mk-field, .mk-search, .mk-menu) — are site.css's, used
   as they are. */

/* ── the stage: the main window as wide as the stage lets it; a dialog never wider than its XAML Width ── */
.story .rsx-stage { width: 100%; display: flex; justify-content: center; min-width: 0; }
.story .rsx-stage > .capwin.rsx-main, .story .rsx-stage > .capwin.rsx-claimsw { width: 100%; }
.story .rsx-stage > .capwin.rsx-dlg { width: 100%; max-width: var(--rsx-width); }
.story .capwin.rsx-crop { -webkit-mask-image: linear-gradient(to bottom, currentColor 72%, transparent);
  mask-image: linear-gradient(to bottom, currentColor 72%, transparent); }
.story .capwin.rsx-softcrop { -webkit-mask-image: linear-gradient(to bottom, currentColor 90%, transparent);
  mask-image: linear-gradient(to bottom, currentColor 90%, transparent); }

/* ── the main window (RoomStudioWindow.xaml: Margin 22,10,22,16; six rows) ── */
.story .rsx-body { padding: 10px 22px 16px; display: flex; flex-direction: column; min-width: 0;
  color: var(--w-text-primary); font-size: var(--w-fs-callout); }
.story .rsx-body > .apphdr { margin-top: 4px; }
.story .rsx-srow { display: flex; align-items: center; gap: 16px; margin-top: 10px; min-width: 0; }
.story .rsx-sentence { flex: 1 1 auto; min-width: 0; font-size: var(--w-fs-subhead); color: var(--w-text-tertiary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* AppleGroupBar.Subtle around SegmentToggles: the track on the window, no surface of its own */
.story .rsx-subtle { display: inline-flex; flex: none; }
.story .rsx-cbar { display: flex; align-items: center; gap: 8px; margin-top: 12px; min-width: 0; flex-wrap: wrap; }
.story .rsx-flabel { font-size: var(--w-fs-body); font-weight: var(--w-fw-semibold); color: var(--w-text-primary);
  flex: none; }
.story .rsx-sp { flex: 1 1 0; min-width: 0; }
.story .rsx-scope { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.story .rsx-mbtn { position: relative; display: inline-flex; }
.story .rsx-dis { display: inline-flex; opacity: var(--w-opacity-disabled); min-width: 0; max-width: 100%; }
/* AppleContextMenu, open under its button */
.story .rsx-menu { position: absolute; left: 0; top: calc(100% + 4px); z-index: 4; min-width: 180px; padding: 4px;
  box-sizing: border-box; background: var(--w-bg-elevated); border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-medium); box-shadow: var(--w-shadow-popover); }
.story .rsx-mi { height: 28px; display: flex; align-items: center; padding: 0 12px; border-radius: var(--w-radius-small);
  font-size: var(--w-fs-body); color: var(--w-text-primary); white-space: nowrap; }
.story .rsx-mi:first-child { background: var(--w-bg-hover); }

/* ── the screen (row 3) ── */
.story .rsx-pane { margin-top: 12px; display: flex; flex-direction: column; min-width: 0; position: relative; }
.story .rsx-tb { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; min-width: 0; }
.story .rsx-tb > .mk-search { flex: 0 1 auto; min-width: 140px; }
.story .rsx-vrow { display: flex; align-items: center; gap: 16px; margin-top: 2px; min-width: 0; }
.story .rsx-note { flex: 1 1 auto; min-width: 0; font-size: var(--w-fs-footnote); line-height: 1.45;
  color: var(--w-text-tertiary); }
.story .rsx-vopts { display: inline-flex; align-items: center; flex: none; }
.story .rsx-olabel { font-size: var(--w-fs-callout); color: var(--w-text-secondary); white-space: nowrap; flex: none; }
.story .rsx-vopts .rsx-olabel { margin-right: 8px; }
.story .rsx-vopts .rsx-olabel.rsx-gap { margin-left: 18px; }
/* the translucent card every table sits on (BgSurface, StrokeSubtle, radius 10, Padding 4) */
.story .rsx-card { margin-top: 8px; padding: 4px; box-sizing: border-box; min-width: 0; background: var(--w-bg-surface);
  border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-card); position: relative; }
.story .rsx-card .tablewrap { border: 0; border-radius: var(--w-radius-medium); background: transparent; }
.story .rsx-rcard { display: flex; align-items: flex-start; gap: 10px; }
.story .rsx-tcol { flex: 1 1 auto; min-width: 0; }
.story .rsx-arrows { flex: none; display: flex; flex-direction: column; gap: 6px; margin-top: 40px; }
.story .rsx-arrows.rsx-mid { align-self: center; margin-top: 0; }
.story :is(.rsx-rules, .rsx-rooms, .rsx-ctab, .rsx-wtab, .rsx-claims) table.dg { table-layout: fixed; }
.story :is(.rsx-rules, .rsx-rooms, .rsx-claims) .tscroll { overflow-x: auto; overflow-y: hidden; }
.story :is(.rsx-rules, .rsx-rooms, .rsx-claims, .rsx-ctab, .rsx-wtab) .dg thead th.fl { overflow: hidden;
  text-overflow: ellipsis; }
/* a rooms header whose name outgrows its column takes a second line rather than losing its last word */
.story .rsx-rooms .dg thead th.rsx-wrap { white-space: normal; line-height: 1.2; }
.story :is(.rsx-wtab, .rsx-ctab) table.dg { min-width: 0; }
.story .dg tbody td.rsx-cell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .dg tbody td.rsx-ccell { padding: 0 4px; }
/* the Direction chip: AppleButton.Ghost.Compact, Margin 6,0,0,0, left in its cell */
.story .dg tbody td.rsx-dcell { padding: 0 0 0 6px; text-overflow: clip; }
.story .rsx-ccell .mk-combo, .story .rsx-ccell .mk-field, .story .rsx-ccell > .rsx-dis { width: 100%; }
.story .rsx-ccell > .rsx-dis > :is(.mk-combo, .mk-field, .rsx-bcell) { width: 100%; }
.story .rsx-rules td .mk-chip, .story .rsx-ctab td .mk-chip { min-width: 62px; justify-content: center; }

/* icon-only buttons the app draws: the order arrows (AppleButton.Icon) and a row's data sheet (AppleButton.Icon.Compact) */
.story .rsx-ico { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  width: var(--w-size-control); height: var(--w-size-control); border: 1px solid var(--w-stroke-default);
  border-radius: var(--w-radius-medium); background: var(--w-bg-surface); color: var(--w-text-secondary); }
.story .rsx-ico > svg { width: var(--w-size-icon-in-button); height: var(--w-size-icon-in-button); }
.story .rsx-ico.compact { width: var(--w-size-control-compact); height: var(--w-size-control-compact); border: 0;
  border-radius: var(--w-radius-pill); background: transparent; }
.story .rsx-ico.compact > svg { width: var(--w-size-icon-in-button-compact); height: var(--w-size-icon-in-button-compact); }

/* ── the rooms screens: the action strip and the rail toggle, the chips, the table ── */
.story .rsx-arow { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.story .rsx-arow > .mk-chip { flex: none; margin-left: auto; }
.story .rsx-strip { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.story .rsx-strip > .rsx-olabel:first-child { margin-right: -4px; }
.story .rsx-strip .rsx-olabel { white-space: normal; flex: 0 1 auto; min-width: 0; }
.story .rsx-grp { display: inline-flex; align-items: center; gap: 8px; }
.story .rsx-grp > .rsx-olabel { white-space: nowrap; }
.story .rsx-thr { margin-left: 6px; display: inline-flex; align-items: center; }
.story .rsx-strip .mk-check { font-size: var(--w-fs-callout); }
.story .rsx-chips { display: flex; align-items: center; gap: 10px; margin-top: 10px; min-width: 0; }
.story .rsx-chipset { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.story .rsx-shown { flex: none; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); }
.story .rsx-tcard { margin-top: 10px; }
.story .rsx-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--w-text-tertiary);
  vertical-align: middle; }
.story .rsx-dot.ok { background: var(--w-success); }
.story .rsx-dot.warn { background: var(--w-warning); }
.story .rsx-dot.bad { background: var(--w-danger); }
.story .rsx-dot.acc { background: var(--w-accent); }
/* StudioRoomRowStyle: an up-to-date room fades back (Opacity 0.55, the app's own number) */
.story .dg tbody tr.rsx-faded > td { opacity: .55; }
.story .rsx-bcell { display: flex; align-items: center; gap: 4px; min-width: 0; width: 100%; }
.story .rsx-bcell > .mk-combo { flex: 1 1 auto; min-width: 0; }
.story .rsx-num { display: inline-flex; flex: none; }
.story .rsx-bcell > .rsx-num { width: 48px; }
.story .rsx-num > .mk-field { width: 100%; justify-content: flex-end; }
/* the filter menu under a column's funnel (GridFilters), open */
.story .rsx-fmenu { position: absolute; z-index: 4; top: 44px; width: 250px; }
.story .rsx-fmenu.rsx-fm-level { left: 220px; }   /* under the Level column, past the 80-wide tick column */
.story .rsx-fmenu.rsx-fm-room { left: 106px; }
.story .rsx-fmenu .mk-menu { box-shadow: var(--w-shadow-popover); }


/* ── the footer (row 5) ── */
.story .rsx-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; min-width: 0; }
.story .rsx-foot > .hbtn:not(.link) { flex: none; min-width: var(--w-size-button-min-width); }
.story .rsx-status { flex: 0 1 auto; min-width: 0; max-width: 640px; font-size: var(--w-fs-footnote); line-height: 1.45;
  color: var(--w-text-secondary); }
.story .rsx-foot > .hbtn.link { font-size: var(--w-fs-body); font-weight: var(--w-fw-medium); flex: none; }

/* ── a tooltip (AppleToolTip) ── */
.story .rsx-tip { position: absolute; z-index: 5; width: max-content; max-width: 380px; box-sizing: border-box;
  padding: 7px 10px; background: var(--w-bg-elevated); border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-medium); box-shadow: var(--w-shadow-popover); font-size: var(--w-fs-subhead);
  font-weight: var(--w-fw-regular); line-height: 1.5; color: var(--w-text-primary); white-space: normal; text-align: left; }
.story .rsx-tip > div + div { margin-top: 2px; }
/* WPF opens a tooltip below and right of the pointer, here resting on the row's dot */
/* the window keeps room under its footer for the tooltip that hangs over it (a WPF tooltip may leave the window; a
   mockup's window clips) */
.story .capwin.rsx-main:has(.rsx-dottip) > .rsx-body { padding-bottom: 40px; }
/* the dot's ToolTip is one plain string, «status\nwhy» (StatusAndWhy): no line of it is bold */
.story .rsx-tip.rsx-dottip { left: 22px; max-width: 500px;
  top: calc(100% - 4px - var(--rsx-after, 0) * var(--w-size-grid-row-control) - 8px); }

/* ── Parameters | Modelling, side by side ── */
.story .rsx-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; width: 100%;
  align-items: start; }
@media (max-width: 900px) { .story .rsx-pair { grid-template-columns: minmax(0, 1fr); } }
.story .rsx-pair > .capwin.rsx-half { width: 100%; }
.story .rsx-half .rsx-srow { margin-top: 4px; }
.story .rsx-half .rsx-arow { margin-top: 12px; }
.story .rsx-half .rsx-sentence { white-space: normal; }
/* the options rail (AppleCard, BgSubtle, Padding 14,12, 330 wide) */
.story .rsx-rail { margin-top: 12px; padding: 12px 14px; background: var(--w-bg-subtle); border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-card); box-sizing: border-box; width: 100%; }
.story .rsx-rsec { font-size: var(--w-fs-subhead); font-weight: var(--w-fw-semibold); color: var(--w-text-secondary);
  margin-bottom: 10px; }
.story .rsx-rr { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; min-width: 0; }
.story .rsx-rl { flex: 1 1 auto; min-width: 0; font-size: var(--w-fs-callout); color: var(--w-text-secondary); }
.story .rsx-rc { display: inline-flex; align-items: center; flex: none; }
.story .rsx-nb { width: 84px; }
.story .rsx-unit { width: 26px; margin-left: 6px; font-size: var(--w-fs-callout); color: var(--w-text-tertiary); }
.story .rsx-rc:not(:has(.rsx-unit)) { margin-right: 32px; }
.story .rsx-rc:has(.mk-combo) { margin-right: 0; }
.story .rsx-rcheck { margin: 4px 0 8px; }
.story .rsx-rlab { display: block; }
.story .rsx-rfield { margin: 4px 0 10px; display: flex; }
.story .rsx-rfield > .rsx-dis, .story .rsx-rfield .mk-field { width: 100%; }

/* ── dialogs: Edit rule, the value picker, Finishes already modelled (Margin 22,10,22,16 / 20) ── */
.story .rsx-dbody { padding: 10px 22px 16px; display: flex; flex-direction: column; min-width: 0;
  color: var(--w-text-primary); font-size: var(--w-fs-callout); }
.story .rsx-cbody { padding: 20px; display: flex; flex-direction: column; min-width: 0; color: var(--w-text-primary);
  font-size: var(--w-fs-callout); }
.story .rsx-h { font-size: var(--w-fs-headline); font-weight: var(--w-fw-semibold); color: var(--w-text-primary);
  line-height: 1.35; }
.story .rsx-sub { margin-top: 3px; font-size: var(--w-fs-subhead); line-height: 1.5; color: var(--w-text-secondary); }
.story .rsx-sec { font-size: var(--w-fs-subhead); font-weight: var(--w-fw-semibold); color: var(--w-text-secondary); }
.story .rsx-fn { font-size: var(--w-fs-footnote); line-height: 1.45; color: var(--w-text-tertiary); margin: 4px 0 8px; }
.story .rsx-fn.rsx-sec2 { margin: 6px 0 0; color: var(--w-text-secondary); }
.story .rsx-inl { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .rsx-lbl { margin: 0; flex: none; white-space: nowrap; }
.story .rsx-grow { flex: 1 1 auto; min-width: 0; display: flex; }
.story .rsx-grow > .mk-field { width: 100%; }
.story .rsx-nrow { display: flex; align-items: center; gap: 8px; margin-top: 10px; min-width: 0; }
.story .rsx-nrow .rsx-gap { margin-left: 10px; }
.story .rsx-cats { display: inline-flex; gap: 10px; flex: none; }
/* AppleCardExpander, open: the card, its header (the chevron, a section label) and the two columns */
.story .rsx-cexp { margin-top: 14px; background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-card); }
.story .rsx-cexph { display: flex; align-items: center; gap: 8px; padding: 10px 14px 6px; font-size: var(--w-fs-subhead);
  font-weight: var(--w-fw-semibold); color: var(--w-text-secondary); }
.story .rsx-chev { width: 6px; height: 8px; flex: none; margin: 0 2px; overflow: visible; fill: none; transform: rotate(90deg);
  stroke: var(--w-text-tertiary); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.story .rsx-two { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; padding: 4px 14px 12px; }
.story .rsx-two .rsx-sec { margin-bottom: 0; }
.story .rsx-brow { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; margin: 3px 0; }
.story .rsx-brow > .mk-combo { width: 100%; }
.story .rsx-wrow { display: flex; align-items: center; gap: 10px; margin-top: 4px; min-width: 0; }
.story .rsx-wrow > .rsx-inl.rsx-grow { display: block; }
.story .rsx-crow { display: flex; align-items: center; gap: 10px; margin-top: 8px; min-width: 0; }
.story .rsx-crow .tablewrap { border-radius: var(--w-radius-card); }
.story .dg tbody td.rsx-ord { color: var(--w-text-tertiary); font-variant-numeric: tabular-nums; }
.story .hbtn.rsx-vbtn { width: 100%; justify-content: flex-start; font-weight: var(--w-fw-regular); overflow: hidden;
  text-overflow: ellipsis; }
.story .rsx-dbody > .rsx-foot { margin-top: 14px; }
/* the picker, opened over the editor (CenterOwner) */
.story .rsx-over { width: 100%; display: flex; flex-direction: column; align-items: flex-end; min-width: 0; }
.story .rsx-over > .capwin.rsx-editor { width: 100%; }
.story .rsx-over > .capwin.rsx-picker { width: 560px; max-width: 100%; margin: 16px 28px 0 0; z-index: 2; }  /* XAML Width 560 */
.story .rsx-prow { display: flex; align-items: center; gap: 8px; margin-top: 12px; min-width: 0; }
.story .rsx-vlist { margin-top: 12px; padding: 4px 8px; background: var(--w-bg-subtle); border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-card); }
.story .rsx-vi { height: 28px; display: flex; align-items: center; }
.story .rsx-vi .mk-check { font-size: var(--w-fs-callout); }
.story .rsx-picker .rsx-foot { margin-top: 12px; }
/* Finishes already modelled */
.story .rsx-allrow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 14px 0 8px; }
.story .rsx-allrow > .rsx-flabel { margin-right: 2px; }
.story .rsx-claims { margin-top: 4px; }
.story .rsx-claimsw .rsx-foot { margin-top: 12px; }

/* ── reading by ray: the drawing, a row of the table and its «Scan found» tooltip ── */
.story .rsx-raystage { flex-direction: column; align-items: stretch; gap: 10px; padding: 6px 4px; }
.story .rsx-ray { width: 100%; max-width: 380px; height: auto; align-self: center; color: var(--ink); }
.story .rsx-ray text { font-size: 11px; fill: var(--ink-2); font-family: var(--w-font-sans), var(--font); }
.story .rsx-ray text.rsx-tag { fill: var(--ink-3); font-size: 10px; }
.story .rsx-ray .rsx-floor { stroke: var(--ink-3); stroke-width: 2.4; fill: none; }
.story .rsx-ray .rsx-struct { fill: var(--line); stroke: var(--ink-3); stroke-width: 1.4; }
.story .rsx-ray .rsx-dado { fill: color-mix(in srgb, var(--teal) 30%, transparent); stroke: var(--teal); stroke-width: 1.4; }
.story .rsx-ray .rsx-eye { fill: var(--accent); }
.story .rsx-ray .rsx-beam { stroke: var(--accent); stroke-width: 2; fill: none; }
.story .rsx-raycell { position: relative; background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-card); overflow: visible; font-size: var(--w-fs-callout); color: var(--w-text-primary);
  padding-bottom: 12px; }
.story .rsx-rch, .story .rsx-rcr { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center;
  padding: 0 12px; gap: 12px; }
.story .rsx-rch { height: var(--w-size-grid-header); background: var(--w-bg-subtle); border-bottom: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-card) var(--w-radius-card) 0 0; font-size: var(--w-fs-badge); font-weight: var(--w-fw-semibold);
  color: var(--w-text-secondary); }
.story .rsx-rcr { height: var(--w-size-grid-row); }
.story .rsx-rcr > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .rsx-rcv { text-decoration: underline dotted var(--w-text-tertiary); text-underline-offset: 3px; }
.story .rsx-tip.rsx-raytip { position: relative; width: auto; max-width: none; margin: -4px 8px 0 96px; }

/* ── the receipt: AppleErrorDialog (460; Margin 28,12,28,20), the info circle, the heading, the lines, the details ── */
.story .rsx-abodyw { padding: 12px 28px 20px; display: flex; flex-direction: column; color: var(--w-text-primary); }
.story .rsx-ahead { display: flex; align-items: flex-start; gap: 16px; margin-top: 8px; }
/* ApplySeverity paints Info's circle 0x2962E8 — the accent (--w-accent), not the palette's lighter Info — and the
   heading sits at the top of its column, not centred on the circle */
.story .rsx-aico { flex: none; width: 40px; height: 40px; border-radius: 50%; margin-top: 2px; display: flex;
  align-items: center; justify-content: center; background: var(--w-accent); color: var(--w-text-on-accent);
  font-size: 22px; font-weight: var(--w-fw-bold); }
.story .rsx-aheading { font-size: var(--w-fs-title3); font-weight: var(--w-fw-semibold); line-height: 1.3; padding-top: 2px; }
.story .rsx-abody { margin: 6px 0 0 56px; font-size: var(--w-fs-body); line-height: 1.5; color: var(--w-text-secondary); }
.story .rsx-adet { margin-top: 16px; padding: 10px 14px; background: var(--w-bg-subtle); border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-medium); font-family: Consolas, Menlo, monospace; font-size: 11px; line-height: 1.5;
  color: var(--w-text-secondary); }
.story .rsx-afoot { margin-top: 20px; }

/* ── tools/web_mockups/rosetta.css ── */
/* rosetta.py's kinds (prefix rta-). Every rule sits under .story; colours and sizes are the window's tokens (the
   WEB-THEME block of site.css, --w-*): never a raw hex. The shared pieces — the title bar, the app header, the controls
   kit (.hbtn, .mk-*, .seg, .ck, .dg, .tablewrap, .rl-foot) — are site.css's, used as they are. */

/* composition */
.story .rta-stage { width: 100%; display: flex; justify-content: center; }
.story .rta-stack { display: grid; gap: 18px; justify-items: center; width: 100%; }
.story .rta-stage, .story .rta-stack, .story .rta-stack > * { min-width: 0; }

/* the windows, at their XAML width (the page scales them down: .capwin keeps max-width: 100%) */
.story .rta-win.rta-main { width: 100%; }
.story .rta-win.rta-w460 { width: 460px; }
.story .rta-win.rta-w540 { width: 540px; }
.story .rta-win.rta-w640 { width: 640px; }
.story .rta-win.rta-w680 { width: 680px; }
.story .rta-win.rta-w720 { width: 720px; }
.story .rta-win.rta-w760 { width: 760px; }
.story .rta-win.rta-w820 { width: 820px; }
.story .rta-win.rta-w940 { width: 940px; }
.story .rta-win.rta-w960 { width: 960px; }
.story .rta-body { padding: 16px 22px 18px; display: flex; flex-direction: column; gap: 12px; text-align: left;
  font-size: var(--w-fs-body); color: var(--w-text-primary); }
.story .rta-body .rl-foot { margin-top: 2px; }
.story .rta-body table.dg { min-width: 0; }   /* site.css gives every .dg 900 px; these tables are their window's */
.story .rta-body .rl-st { flex: 1 1 200px; min-width: 0; margin-right: 12px; font-size: var(--w-fs-subhead);
  line-height: 1.4; color: var(--w-text-secondary); }
.story .rta-off { display: inline-flex; opacity: var(--w-opacity-disabled); }
.story .rta-grow { flex: 1 1 auto; min-width: 0; display: flex; }
.story .rta-grow > .mk-field { width: 100%; }

/* dialog heading (Title2 + Subhead), cards, labels, forms */
.story .rta-head { margin-bottom: 0; }
.story .rta-h2 { font-size: var(--w-fs-title2); font-weight: var(--w-fw-semibold); line-height: 1.25; color: var(--w-text-primary); }
.story .rta-h2b { font-size: 20px; font-weight: var(--w-fw-semibold); line-height: 1.25; color: var(--w-text-primary); }
.story .rta-sub { margin-top: 2px; font-size: var(--w-fs-subhead); line-height: 1.45; color: var(--w-text-secondary); }
/* SweepDialog and HistoryWindow set their heading by hand: FontSize 20 SemiBold, the sentence 12 with 4 above */
.story .rta-head20 .rta-h2 { font-size: 20px; }
.story .rta-head20 .rta-sub { margin-top: 4px; font-size: 12px; }
.story .rta-h3 { font-size: var(--w-fs-title3); font-weight: var(--w-fw-semibold); line-height: 1.3; margin-bottom: 8px;
  color: var(--w-text-primary); }
.story .rta-card { background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-card);
  padding: 16px; min-width: 0; }
.story .rta-card .tablewrap { border-radius: var(--w-radius-medium); }
.story .rta-lbl { font-size: var(--w-fs-body); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .rta-form { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 10px 12px; align-items: center; }
.story .rta-form > .mk-field, .story .rta-rule > .mk-field { width: 100%; }
.story .rta-form .mk-combo { max-width: 100%; }   /* its 240 (MinWidth 220) never pushes out of a narrow card */
.story .rta-rule { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px 12px;
  align-items: center; }
.story .rta-rule .rta-lbl { white-space: nowrap; }
@media (min-width: 1100px) { .story .beat--wide .rta-rule { grid-template-columns: 118px minmax(0, 1fr) 118px minmax(0, 1fr); } }
.story .rta-span3 { grid-column: span 3; }
.story .rta-fn { font-size: var(--w-fs-footnote); line-height: 1.45; color: var(--w-text-secondary); }
.story .rta-fn2 { font-size: 11.5px; color: var(--w-text-secondary); }
.story .rta-mono { font-family: var(--w-font-mono); }
.story .rta-ink { color: var(--w-text-primary); }
.story .rta-gap { margin-top: 2px; }
.story .rta-gap8 { margin-top: 8px; }
.story .rta-gap10 { margin-top: 10px; }
.story .rta-radios { display: flex; flex-direction: column; gap: 6px; }
.story .rta-area { width: 100%; height: 44px; }
.story .rta-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 10px; align-items: stretch; }
.story .rta-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.story .rta-grow1 { flex: 1 1 auto; }
@media (max-width: 760px) { .story .rta-cols { grid-template-columns: minmax(0, 1fr); } }

/* the washed cards: identity (Info), definition only / not in the file (Warning) */
.story .rta-note { border-radius: var(--w-radius-medium); padding: 11px 14px; font-size: var(--w-fs-footnote); line-height: 1.45; }
.story .rta-note.info { background: var(--w-info-subtle); color: var(--w-info-ink); }
.story .rta-note.warn { background: var(--w-warning-subtle); color: var(--w-warning-ink); }
.story .rta-note-b { margin-top: 5px; }

/* ── the main window ── */
.story .rta-main .rta-body { padding: 16px 20px 14px; gap: 0; }
.story .rta-main .apphdr { margin-bottom: 0; }
.story .rta-strip { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 10px; }
.story .rta-strip .mk-check { color: var(--w-text-secondary); }
.story .rta-path { margin-top: 10px; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.story .rta-chips { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.story .rta-chips .seg { flex: none; }
.story .seg > .s.rta-sdis { opacity: var(--w-opacity-disabled); }
.story .rta-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 6px; margin-top: 8px; }
.story .rta-vsep { flex: none; width: 1px; height: 22px; margin: 0 6px; background: var(--w-stroke-default); }
.story .rta-main .rta-grid { margin-top: 12px; }
.story .rta-grid .dg { table-layout: auto; }
.story .rta-grid td:nth-child(4) { min-width: 150px; }
.story .rta-grid td .mk-field, .story .rta-grid td .rta-off { width: 100%; }
.story .rta-grid td .rta-off > .mk-field { width: 100%; }
.story .rta-grid td .mk-badge { margin: 0; }
.story .rta-1 { color: var(--w-text-primary); }
.story .rta-2 { color: var(--w-text-secondary); }
.story .mk-badge.rta-teal { background: var(--w-teal-subtle); color: var(--w-teal); }
.story .rta-foothint { margin-top: 10px; padding-left: 2px; font-size: 11px; line-height: 1.5; color: var(--w-text-tertiary); }
/* the hovered row and its In use tooltip (AppleToolTip: BgElevated, a hairline, the small corner, Subhead), drawn
   beside the table under the hovered In use cell — a cell clips what overflows it */
.story .rta-grid tr.rta-hov td { background: var(--w-bg-hover); }
.story .rta-tipbox { position: relative; }
.story .rta-tip { position: absolute; right: 64px; z-index: 3; padding: 6px 10px;
  top: calc(var(--w-size-grid-header) + var(--w-size-grid-row-control) * var(--rta-n, 1) - 6px);
  background: var(--w-bg-elevated); border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-small);
  box-shadow: var(--w-shadow-popover); font-size: var(--w-fs-subhead); line-height: 1.5; color: var(--w-text-primary);
  white-space: nowrap; text-align: left; }
.story .rta-crop .rta-body { padding: 12px 14px 14px; }
.story .rta-crop .rta-grid { margin-top: 0; }

/* ── Families that carry it · Rename by rule · History ── */
.story .rta-fam .dg tbody td:nth-child(3) { color: var(--w-text-secondary); }
.story .rta-flat .dg tbody td:nth-child(3) { color: var(--w-text-secondary); }
.story .rta-hist .dg tbody td { color: var(--w-text-primary); }
.story .rta-detail { border-radius: 10px; padding: 9px 12px; background: var(--w-bg-subtle); font-size: 11.5px;
  line-height: 1.45; color: var(--w-text-secondary); }
.story .rta-histw .rta-body .rl-st { font-size: 11.5px; color: var(--w-text-tertiary); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; }

/* ── the pre-flight report, in the browser ── */
.story .rta-browser { width: 100%; }
.story .rta-rep { padding: 26px 32px 22px; text-align: left; background: var(--w-bg-window); color: var(--w-text-primary);
  font-size: 13px; line-height: 1.5; }
.story .rta-rbrand { font-size: 13px; font-weight: var(--w-fw-semibold); color: var(--w-text-secondary); }
.story .rta-rbrand b { color: var(--w-text-primary); letter-spacing: .04em; }
.story .rta-rh1 { font-size: 24px; font-weight: var(--w-fw-bold); line-height: 1.25; margin: 8px 0 4px; }
.story .rta-rh2 { font-size: 16px; font-weight: var(--w-fw-bold); margin: 22px 0 10px; }
.story .rta-rmeta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--w-text-secondary); }
.story .rta-rmeta b { color: var(--w-text-secondary); }
.story .rta-tiles { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.story .rta-tile { background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle); border-radius: 14px;
  padding: 14px 18px; min-width: 150px; }
.story .rta-tv { font-size: 26px; font-weight: var(--w-fw-bold); line-height: 1.2; }
.story .rta-tl { font-size: 12px; color: var(--w-text-secondary); }
.story .rta-rwarn { margin-top: 16px; background: var(--w-bg-surface); border: 1px solid var(--w-warning); border-radius: 14px;
  padding: 2px 18px 10px; }
.story .rta-rwarn .rta-rh2 { margin: 12px 0 6px; }
.story .rta-rwarn ul { margin: 0; padding-left: 18px; font-size: 12.5px; }
.story .rta-rt { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--w-bg-surface);
  border: 1px solid var(--w-stroke-subtle); border-radius: 14px; overflow: hidden; font-size: 12.5px; }
.story .rta-rt th, .story .rta-rt td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--w-stroke-subtle);
  vertical-align: top; }
.story .rta-rt th { font-size: 11px; font-weight: var(--w-fw-semibold); text-transform: uppercase; letter-spacing: .04em;
  color: var(--w-text-secondary); }
.story .rta-rt tbody tr:last-child td { border-bottom: 0; }
.story .rta-rnum { text-align: right !important; font-variant-numeric: tabular-nums; }
.story .rta-rnew { color: var(--w-accent-ink); font-weight: var(--w-fw-semibold); }
.story .rta-rchip { display: inline-block; margin: 1px 4px 1px 0; padding: 1px 8px; border-radius: 8px;
  background: var(--w-neutral-subtle); font-size: 11.5px; }
.story .rta-rmut { color: var(--w-text-secondary); }
.story .rta-rfoot { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--w-stroke-subtle); font-size: 12px;
  color: var(--w-text-secondary); }

/* ── AppleErrorDialog.Confirm: the disc, the heading, ONE block of body text 56 px in ── */
.story .rta-w460 .rta-body { padding: 4px 28px 20px; gap: 0; }
.story .rta-ed { display: flex; align-items: flex-start; gap: 16px; margin-top: 8px; }
.story .rta-disc { flex: none; width: 40px; height: 40px; margin-top: 2px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; background: var(--w-warning); color: var(--w-text-on-accent);
  font: 700 22px/1 var(--w-font-sans); }
.story .rta-ed-h { padding-top: 9px; font-size: var(--w-fs-title3); font-weight: var(--w-fw-semibold); line-height: 1.3; }
.story .rta-ed-b { margin: 6px 0 16px 56px; font-size: var(--w-fs-body); line-height: 1.45; color: var(--w-text-secondary);
  white-space: pre-wrap; }
.story .rta-ed-f { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.story .rta-ed-f > .hbtn { min-width: var(--w-size-button-min-width); }

/* ── SuiteResultDialog: title, summary, chips, the sections on their cards ── */
.story .rta-w680 .rta-body { padding: 8px 28px 24px; gap: 0; }
.story .rta-res-h { margin-top: 8px; }
.story .rta-res-s { margin-top: 8px; }
.story .rta-chips2 { display: flex; flex-wrap: wrap; gap: 0 8px; margin-top: 14px; }
.story .rta-chip { display: inline-flex; align-items: baseline; gap: 4px; margin-bottom: 8px; padding: 6px 12px;
  border-radius: 9px; background: var(--w-bg-subtle); font-size: 13px; color: var(--w-text-primary); }
.story .rta-chip.ok { background: var(--w-success-subtle); color: var(--w-success-ink); }
.story .rta-chip b { font-weight: var(--w-fw-semibold); }
.story .rta-sec { margin-top: 12px; }
.story .rta-sech { margin: 0 0 6px 2px; font-size: 11px; font-weight: var(--w-fw-semibold); color: var(--w-text-tertiary); }
.story .rta-sech.ok { color: var(--w-success-ink); }
.story .rta-secn { font-weight: var(--w-fw-regular); color: var(--w-text-tertiary); white-space: pre; }
.story .rta-secc { background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle); border-radius: 10px; padding: 4px 0; }
.story .rta-srow { margin: 0 14px; padding: 7px 0; font-size: 12px; line-height: 1.45; color: var(--w-text-secondary); }
.story .rta-srow + .rta-srow { border-top: 1px solid var(--w-stroke-subtle); }
.story .rta-w680 .rta-ed-f { margin-top: 18px; }
.story .rta-w680 .rta-ed-f > .hbtn { min-width: var(--w-size-button-min-width-wide); }

/* ── Convert ── */
.story .rta-w540 .rta-body { padding: 18px 22px 18px; gap: 0; }
.story .rta-src { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: var(--w-bg-elevated);
  border: 1px solid var(--w-stroke-subtle); }
.story .rta-srcn { font-size: 14px; font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .rta-srcd { margin-top: 3px; font-size: 11.5px; color: var(--w-text-secondary); }
.story .rta-cap { margin: 16px 0 6px; font-size: 12px; font-weight: var(--w-fw-semibold); color: var(--w-text-tertiary); }
.story .rta-w540 .rta-cap + .rta-fill { display: flex; }
.story .rta-fill > .mk-field { width: 100%; }
.story .rta-pick { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.story .rta-pick .rta-fn2 { flex: none; white-space: nowrap; }
.story .rta-pick .mk-combo { flex: 1 1 auto; width: auto !important; min-width: 110px; max-width: 260px; }
.story .rta-w540 .rta-gap { margin-top: 14px; }
.story .rta-verdict { margin-top: 14px; padding: 9px 12px; border-radius: 10px; background: var(--w-bg-subtle);
  font-size: 11.5px; line-height: 1.45; color: var(--w-text-secondary); }
.story .rta-w540 .rl-foot { margin-top: 18px; }

/* ── Fill: the value picker (a ListBox grouped by SectionLabel; a source the target cannot hold is disabled) ── */
.story .rta-list { max-height: 330px; overflow: hidden; -webkit-mask: linear-gradient(to bottom, var(--w-text-primary) 82%, transparent);
  mask: linear-gradient(to bottom, var(--w-text-primary) 82%, transparent); }
.story .rta-sect { margin: 10px 0 4px; font-size: var(--w-fs-subhead); font-weight: var(--w-fw-semibold); color: var(--w-text-secondary); }
.story .rta-sect:first-child { margin-top: 0; }
.story .rta-src-i { padding: 6px 10px; border-radius: var(--w-radius-small); }
.story .rta-src-i.on { background: var(--w-bg-selected); }
.story .rta-src-i.rta-dim { opacity: var(--w-opacity-disabled); }
.story .rta-src-l { font-size: var(--w-fs-body); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
/* selected = AppleListBoxItem's BgSelected wash only: the label keeps AppleText.Body's primary ink */
.story .rta-src-d { font-size: var(--w-fs-footnote); line-height: 1.4; color: var(--w-text-secondary); }
.story .rta-under { margin: -4px 0 8px; }
.story .rta-fn.rta-stamp { color: var(--w-warning-ink); }

/* ── the category picker (CategoryPickerPanel) ── */
.story .rta-picker { display: flex; flex-direction: column; }
.story .rta-picker > .mk-field { width: 100%; }
.story .rta-hide { margin: 8px 0 8px 2px; }
.story .rta-hide .mk-check { color: var(--w-text-secondary); }
.story .rta-well { background: var(--w-bg-subtle); border-radius: var(--w-radius-medium); padding: 4px 6px; }
.story .rta-cat { display: flex; align-items: center; gap: 8px; padding: 4px 6px; font-size: var(--w-fs-body); }
.story .rta-cat.rta-fade { height: 10px; padding: 0; }
.story .rta-cnt { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.story .rta-cnt .rta-fn { color: var(--w-text-tertiary); }

/* ── Sweep ── */
.story .rta-folder { display: flex; align-items: center; gap: 8px; }
.story .rta-sweep { border: 1px solid var(--w-stroke-subtle); border-radius: 8px; background: var(--w-bg-surface);
  padding: 10px 12px; }
/* ProgressText (12, secondary) above the files; each file's lines are 11 in the secondary ink (SweepDialog.xaml) */
.story .rta-sum { font-size: 12px; color: var(--w-text-secondary); margin-bottom: 6px; }
.story .rta-sf { padding: 4px 0; }
.story .rta-sfh { display: flex; align-items: baseline; gap: 8px; font-size: 12px; }
.story .rta-sfh b { font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .rta-sfs { font-size: 10.5px; font-weight: var(--w-fw-bold); color: var(--w-text-tertiary); }
.story .rta-sfs.acc { color: var(--w-accent-text); }
.story .rta-sfd { margin: 2px 0 0 12px; font-size: 11px; line-height: 1.45; color: var(--w-text-secondary); }

/* ── New shared parameter (two states) · Bind to project ── */
.story .rta-states { display: grid; gap: 22px; justify-items: center; width: 100%; }
.story .rta-state { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; min-width: 0; }
.story .rta-state > .capwin { max-width: 100%; }
.story .rta-cap2 { font-size: 12px; font-weight: var(--w-fw-semibold); letter-spacing: .02em; color: var(--ink-2); }
.story .rta-bindq { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.story .rta-in { margin: 0; }
.story .rta-ind { margin: -6px 0 0 26px; }
.story .rta-names { margin-top: 8px; padding: 6px 10px; font-size: var(--w-fs-footnote); line-height: 1.6; }
.story .rta-path2 { margin-top: 8px; color: var(--w-text-tertiary); word-break: break-all; }
.story .rta-howh { margin: 6px 0 -4px; }

/* ── tools/web_mockups/script.css ── */
/* script.py's kinds (prefix scr-; .sc- is site.css's): Script's windows in misc.html#app-script. Every rule sits under
   .story; colours and sizes are the window's tokens (the WEB-THEME block of site.css, --w-*), never a raw hex. The shared
   pieces — the title bar, the app header, the controls kit (.hbtn, .mk-*, .dg, .ck, .seg) — are site.css's, used as
   they are; what is here is how Script's windows lay them out (the XAML's margins), and the few things only Script
   draws: the code editor, the output pane, the confirmation's disc, the context menu. */

/* ── the stage and the window's width ──
   Each window carries its width as a style; .capwin keeps max-width: 100%. The library (1040), the editor (1000) and
   the editor with the Ask AI pane (1276) are scaled WHOLE when the column is narrower (zoom, by container query: the
   stage is the container), so every column keeps the share the app gives it. Each step starts where the container can
   no longer hold the window at the step before. */
.story .scr-stage { width: 100%; min-width: 0; display: flex; justify-content: center; }
.story .scr-stage.scr-fit { container-type: inline-size; }
.story .scr-win { min-width: 0; text-align: left; }
@container (max-width: 1039px) { .story .scr-w1040 { flex: none; max-width: none; zoom: .95; } }
@container (max-width: 987px) { .story .scr-w1040 { zoom: .9; } }
@container (max-width: 935px) { .story .scr-w1040 { zoom: .85; } }
@container (max-width: 883px) { .story .scr-w1040 { zoom: .8; } }
@container (max-width: 831px) { .story .scr-w1040 { zoom: .75; } }
@container (max-width: 779px) { .story .scr-w1040 { zoom: .7; } }
@container (max-width: 727px) { .story .scr-w1040 { zoom: .65; } }
@container (max-width: 675px) { .story .scr-w1040 { zoom: .6; } }
@container (max-width: 623px) { .story .scr-w1040 { zoom: .55; } }
@container (max-width: 571px) { .story .scr-w1040 { zoom: .5; } }
@container (max-width: 519px) { .story .scr-w1040 { zoom: .45; } }
@container (max-width: 467px) { .story .scr-w1040 { zoom: .4; } }
@container (max-width: 415px) { .story .scr-w1040 { zoom: .35; } }
@container (max-width: 363px) { .story .scr-w1040 { zoom: .3; } }
@container (max-width: 999px) { .story .scr-w1000 { flex: none; max-width: none; zoom: .95; } }
@container (max-width: 949px) { .story .scr-w1000 { zoom: .9; } }
@container (max-width: 899px) { .story .scr-w1000 { zoom: .85; } }
@container (max-width: 849px) { .story .scr-w1000 { zoom: .8; } }
@container (max-width: 799px) { .story .scr-w1000 { zoom: .75; } }
@container (max-width: 749px) { .story .scr-w1000 { zoom: .7; } }
@container (max-width: 699px) { .story .scr-w1000 { zoom: .65; } }
@container (max-width: 649px) { .story .scr-w1000 { zoom: .6; } }
@container (max-width: 599px) { .story .scr-w1000 { zoom: .55; } }
@container (max-width: 549px) { .story .scr-w1000 { zoom: .5; } }
@container (max-width: 499px) { .story .scr-w1000 { zoom: .45; } }
@container (max-width: 449px) { .story .scr-w1000 { zoom: .4; } }
@container (max-width: 399px) { .story .scr-w1000 { zoom: .35; } }
@container (max-width: 349px) { .story .scr-w1000 { zoom: .3; } }
@container (max-width: 1275px) { .story .scr-w1276 { flex: none; max-width: none; zoom: .95; } }
@container (max-width: 1211px) { .story .scr-w1276 { zoom: .9; } }
@container (max-width: 1147px) { .story .scr-w1276 { zoom: .85; } }
@container (max-width: 1084px) { .story .scr-w1276 { zoom: .8; } }
@container (max-width: 1020px) { .story .scr-w1276 { zoom: .75; } }
@container (max-width: 956px) { .story .scr-w1276 { zoom: .7; } }
@container (max-width: 892px) { .story .scr-w1276 { zoom: .66; } }
@container (max-width: 841px) { .story .scr-w1276 { zoom: .62; } }
@container (max-width: 790px) { .story .scr-w1276 { zoom: .58; } }
@container (max-width: 739px) { .story .scr-w1276 { zoom: .54; } }
@container (max-width: 688px) { .story .scr-w1276 { zoom: .5; } }
@container (max-width: 637px) { .story .scr-w1276 { zoom: .45; } }
@container (max-width: 573px) { .story .scr-w1276 { zoom: .4; } }
@container (max-width: 509px) { .story .scr-w1276 { zoom: .35; } }
@container (max-width: 446px) { .story .scr-w1276 { zoom: .3; } }
@container (max-width: 382px) { .story .scr-w1276 { zoom: .25; } }

/* ── a Script window's body: the XAML's own margins (library 20,16 · editor 20,6 · settings 24,4) ── */
.story .scr-body { display: flex; flex-direction: column; min-width: 0; padding: 16px 20px;
  color: var(--w-text-primary); font-size: var(--w-fs-body); }
.story .scr-editor > .scr-body { padding: 6px 20px 16px; }
.story .scr-set > .scr-body { padding: 10px 24px 18px; }
.story .scr-body .apphdr { margin-bottom: 12px; }
.story .scr-sp { flex: 1 1 0; min-width: 0; }
.story .scr-t3 { color: var(--w-text-tertiary); }
/* AppleText.Footnote in the secondary ink, wrapped (the editor's «Footnote», the settings' «Hint») */
.story .scr-fn { margin-top: 4px; font-size: var(--w-fs-footnote); line-height: 1.4; color: var(--w-text-secondary); }
/* AppleText.FieldLabel: Body, semibold, the primary ink, 6 above its input */
.story .scr-lab { margin: 0 0 6px; font-size: var(--w-fs-body); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
/* AppleButton.Link(.Compact) inside a row: no height of its own */
.story .hbtn.link.scr-lk { font-weight: var(--w-fw-medium); }
.story .hbtn.link.compact.scr-lk { height: auto; padding: 0 2px; font-size: var(--w-fs-control-compact); }

/* ── the library: toolbar, table, foot ── */
.story .scr-tools { display: flex; align-items: center; min-width: 0; }
.story .scr-tools2 { display: flex; align-items: center; gap: 0; margin: 8px 0 12px; min-width: 0; }
.story .scr-tools2 > .mk-field { flex: none; margin-right: 12px; }
.story .scr-glab { margin-right: 8px; font-size: var(--w-fs-subhead); color: var(--w-text-secondary); white-space: nowrap; }
/* the table: laid out by its columns (the colgroup), not by site.css's 900 floor for every .dg */
.story table.dg.scr-dg { table-layout: fixed; width: 100%; min-width: 0; }
.story .scr-dg thead th { box-sizing: border-box; overflow: hidden; text-overflow: ellipsis; }
.story table.dg.two.scr-dg tbody td { height: var(--w-size-grid-row-two-line); }
.story table.dg.two.scr-dg tbody tr.scr-gh td { height: auto; padding: 6px 14px; border-bottom: 1px solid var(--w-stroke-subtle); }
.story .scr-dg tbody td { box-sizing: border-box; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  padding: 0 10px; font-size: var(--w-fs-callout); }
.story .scr-dg tbody td.ctr { padding: 0 6px; text-align: center; }
.story .scr-dg td.scr-name { padding: 0 10px; }
.story .scr-nl { display: flex; align-items: center; min-width: 0; }
.story .scr-nl b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--w-fs-body); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .scr-nl .mk-badge { flex: none; margin-left: 6px; }
.story .scr-desc { margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--w-fs-footnote); color: var(--w-text-secondary); }
.story .scr-dg td.scr-quiet { font-size: var(--w-fs-footnote); color: var(--w-text-secondary); }
.story .scr-lr { white-space: nowrap; }
.story .scr-mark { margin-left: 6px; min-width: var(--w-size-badge); }
.story .scr-mcell { display: inline-flex; align-items: center; gap: 8px; }
.story .scr-mcell .mk-badge { flex: none; }
.story .mk-badge.scr-sealpill.scr-ckd { gap: 4px; }
.story .scr-sealck { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
/* the group header (GroupContainer): the BgSubtle band, a hairline under it, «Title · N scripts» */
.story .scr-dg tbody tr.scr-gh, .story .scr-dg tbody tr.scr-gh:nth-child(even) { background: var(--w-bg-subtle); }
.story .scr-gh-in { display: inline-flex; align-items: center; gap: 0; }
.story .scr-gh-in .scr-chev { margin: 0 8px 0 3px; transform: rotate(90deg); }
.story .scr-gh-in b { font-size: var(--w-fs-subhead); font-weight: var(--w-fw-semibold); color: var(--w-text-secondary); }
.story .scr-gh-in i { font-style: normal; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); white-space: pre; }
.story .scr-chev { width: 6px; height: 8px; flex: none; fill: none; stroke: var(--w-text-tertiary); stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round; }
.story .scr-foot { display: flex; align-items: center; min-width: 0; margin: 8px 0 0 2px; font-size: var(--w-fs-footnote); }
.story .scr-foot .scr-runs { flex: none; color: var(--w-text-secondary); }
.story .scr-status3 { min-width: 0; margin-left: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--w-text-tertiary); }

/* ── the output pane (ScriptOutputPane): an AppleCard (12,8) holding an open expander ── */
.story .scr-out { margin-top: 12px; padding: 8px 12px; border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-card); background: var(--w-bg-surface); }
.story .scr-ohd { display: flex; align-items: center; min-width: 0; min-height: 24px; white-space: nowrap; }
.story .scr-fold { display: inline-flex; align-items: center; justify-content: center; width: 14px; margin-right: 8px; }
.story .scr-fold.open .scr-chev { transform: rotate(90deg); }
.story .scr-stat { display: inline-flex; align-items: center; flex: none; font-size: var(--w-fs-callout);
  font-weight: var(--w-fw-semibold); }
.story .scr-stat i { width: var(--w-size-status-dot); height: var(--w-size-status-dot); margin-right: 6px; border-radius: 50%; }
.story .scr-stat.ok { color: var(--w-success-ink); } .story .scr-stat.ok i { background: var(--w-success); }
.story .scr-stat.bad { color: var(--w-danger-ink); } .story .scr-stat.bad i { background: var(--w-danger); }
.story .scr-onm { min-width: 0; max-width: var(--w-size-output-name-max); margin-left: 10px; overflow: hidden;
  text-overflow: ellipsis; font-size: var(--w-fs-body); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .scr-ohd .scr-lang { flex: none; margin-left: 8px; }
.story .scr-ms { flex: none; margin-left: 8px; font-size: var(--w-fs-footnote); color: var(--w-text-secondary); }
.story .scr-chips { display: inline-flex; align-items: center; flex: none; }
.story .scr-chips .mk-badge { margin-left: 8px; }
.story .scr-quiet3 { margin-left: 8px; font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); }
.story .scr-doc { flex: 1 1 0; min-width: 0; margin-left: 12px; overflow: hidden; text-overflow: ellipsis; text-align: right;
  font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); }
.story .scr-obody { margin-top: 4px; }
.story .scr-err { margin-bottom: 8px; padding: 10px 12px; border-radius: var(--w-radius-medium);
  background: var(--w-danger-subtle); }
.story .scr-erow { display: flex; align-items: flex-start; min-width: 0; }
/* the kind, cut out of the banner: the badge on the surface, in the danger ink */
.story .scr-ekind { flex: none; display: inline-flex; align-items: center; height: var(--w-size-badge); margin: 1px 10px 0 0;
  padding: 0 6px; border-radius: var(--w-radius-small); background: var(--w-bg-surface); color: var(--w-danger-ink);
  font-size: var(--w-fs-badge); font-weight: var(--w-fw-semibold); }
.story .scr-emsg { flex: 1 1 0; min-width: 0; align-self: center; font-size: var(--w-fs-body); line-height: 1.4;
  color: var(--w-danger-ink); white-space: normal; }
.story .hbtn.link.scr-line { flex: none; margin-left: 12px; align-self: center; font-size: var(--w-fs-body); }
.story .hbtn.link.scr-det { margin-top: 6px; }
/* the console: the suite face (AppleText.Selectable), on the sunken rounded surface */
.story .scr-con { padding: 10px 12px; border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-medium);
  background: var(--w-bg-subtle); font-size: var(--w-fs-body); line-height: var(--w-size-output-line-height);
  color: var(--w-text-primary); white-space: pre-wrap; }
.story .scr-ofoot { display: flex; align-items: center; min-width: 0; margin-top: 10px; padding-top: 6px;
  border-top: 1px solid var(--w-separator); }
.story .scr-res { min-width: 0; margin: 0 12px 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--w-fs-callout); color: var(--w-text-primary); }
.story .scr-ofoot > .hbtn { min-width: 0; margin-left: 6px; }

/* ── the editor ── */
.story .scr-ed { display: flex; min-width: 0; }
.story .scr-edcol { display: flex; flex-direction: column; flex: 1 1 0; min-width: 0; }
.story .scr-langrow { margin-bottom: 12px; }
/* the language bar is an AppleGroupBar holding SegmentToggles: the track on the surface */
.story .seg.scr-lseg { background: var(--w-bg-surface); }
/* Transaction: the subtle group bar (BgSubtle, its edge invisible) */
.story .seg.scr-subtle { border-color: transparent; }
.story .scr-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; margin-bottom: 12px; }
.story .scr-fcol { display: flex; flex-direction: column; min-width: 0; }
.story .scr-fcol > .mk-field, .story .scr-fcol > .mk-combo { width: 100%; margin-bottom: 10px; }
.story .scr-fcol > .mk-field:last-child { margin-bottom: 0; }
/* the combo's placeholder (FjvPlaceholder) when nothing is picked: the tertiary ink */
.story .mk-combo.scr-ph > span { color: var(--w-text-tertiary); }
.story .scr-fn-t { margin: 4px 0 8px; }
.story .scr-chk { margin-bottom: 10px; }
/* AppleTextArea: the field's edge and corner, its text wrapped, at most 96 high in the form */
.story .scr-area { box-sizing: border-box; min-height: var(--w-size-input-height-multiline); max-height: 96px; overflow: hidden;
  padding: 7px 10px; border: 1px solid var(--w-stroke-default); border-radius: var(--w-radius-button);
  background: var(--w-bg-surface); font-size: var(--w-fs-body); line-height: 1.4; color: var(--w-text-primary); }
.story .scr-area > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
/* the code editor: one frame, the gutter (BgSubtle, a hairline) and the text, mono 13 */
.story .scr-code { display: flex; min-width: 0; border: 1px solid var(--w-stroke-default); border-radius: var(--w-radius-medium);
  background: var(--w-bg-surface); overflow: hidden; font-family: var(--w-font-mono); font-size: var(--w-fs-body);
  line-height: 1.5; }
.story .scr-gut { flex: none; display: flex; flex-direction: column; padding: 6px 0; text-align: right;
  background: var(--w-bg-subtle); border-right: 1px solid var(--w-stroke-subtle); color: var(--w-text-tertiary); }
.story .scr-gut > span { display: block; min-width: 2ch; padding: 0 8px 0 10px; }
.story .scr-gut > span.scr-nerr { background: var(--w-danger-subtle); }
.story .scr-txt { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; padding: 6px 0; overflow: hidden; }
.story .scr-txt code { display: block; margin: 0; padding: 0 10px; border: 0; border-radius: 0; background: none;
  font: inherit; color: var(--w-text-primary); white-space: pre; }
.story .scr-withai .scr-code { flex: 1 1 auto; min-height: 260px; }
/* the action bar: ONE row (a star column, MinWidth buttons): «Runs on» trims, the status gives way first */
.story .scr-abar { display: flex; align-items: center; min-width: 0; margin-top: 12px; white-space: nowrap; }
.story .scr-abar > .hbtn { flex: none; }
.story .scr-abar .scr-runs { flex: 0 1 auto; min-width: 0; max-width: 260px; margin-left: 10px; overflow: hidden;
  text-overflow: ellipsis; font-size: var(--w-fs-footnote); color: var(--w-text-secondary); }
.story .scr-abar > .scr-toggle { margin-left: 12px; min-width: 96px; }
.story .hbtn.secondary.scr-toggle.on { background: var(--w-accent-subtle); border-color: var(--w-accent); color: var(--w-accent-text); }
.story .scr-abar .scr-status { flex: 1 1 0; min-width: 0; margin: 0 8px 0 12px; overflow: hidden; text-overflow: ellipsis;
  font-size: var(--w-fs-footnote); color: var(--w-text-secondary); }
.story .scr-abar > .scr-seal-b { margin-right: 8px; }
.story .scr-abar > .hbtn:not(:first-child):not(.scr-toggle):not(.scr-seal-b) { margin-left: 8px;
  min-width: var(--w-size-button-min-width); }
.story .scr-abar > .hbtn:last-child { min-width: var(--w-size-button-min-width-wide); }
/* the Ask AI pane: an AppleCard 360 wide, 16 from the editor */
.story .scr-ai { flex: none; display: flex; flex-direction: column; box-sizing: border-box; width: 360px; margin-left: 16px;
  padding: 16px; border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-card); background: var(--w-bg-surface); }
.story .scr-aihd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.story .scr-aihd b { font-size: var(--w-fs-title3); font-weight: var(--w-fw-semibold); }
.story .scr-aihd .hbtn { min-width: 0; }
.story .scr-prompt { max-height: 150px; }
.story .scr-aibtns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 6px; margin-top: 10px; }
.story .scr-aibtns > .hbtn { min-width: 0; }
.story .scr-aist { margin: 10px 0 6px; }
.story .scr-expl { margin: 0; max-width: none; font-size: var(--w-fs-body); line-height: 1.4; color: var(--w-text-primary); }
/* the draft: AppleText.Code — the mono face at the body size, no wrap, and NO frame: its template is a bare ScrollViewer
   (no border, a transparent ground, no padding), so the code sits straight on the pane's card */
.story .scr-draft { flex: 1 1 auto; margin-top: 8px; overflow: hidden; font-family: var(--w-font-mono);
  font-size: var(--w-fs-body); line-height: 1.5; color: var(--w-text-primary); white-space: pre; }
.story .scr-aiuse { display: flex; align-items: center; margin-top: 8px; }
.story .scr-aiuse > .hbtn { min-width: 0; }
/* Append and Discard keep their 6 of margin (6,0,0,0) even where the * column before them has shrunk to nothing */
.story .scr-aiuse > .hbtn:not(:first-child) { margin-left: 6px; }

/* ── settings ── */
.story .scr-shd { margin: 6px 0 8px; }
.story .scr-t2h { font-size: var(--w-fs-title2); font-weight: var(--w-fw-semibold); line-height: 1.3; color: var(--w-text-primary); }
.story .scr-sub { margin-top: 2px; font-size: var(--w-fs-subhead); line-height: 1.4; color: var(--w-text-secondary); }
.story .scr-lab.scr-sect { margin: 18px 0 4px; }
.story .scr-hint { margin: 0 0 8px; }
.story .scr-list { box-sizing: border-box; height: calc(112px + 10px); padding: 4px; border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-card); background: var(--w-bg-surface); overflow: hidden; }
.story .scr-frow { display: flex; align-items: center; gap: 8px; min-height: 28px; padding: 5px 8px;
  border-radius: var(--w-radius-small); font-size: var(--w-fs-callout); color: var(--w-text-primary); }
.story .scr-frow.on { background: var(--w-bg-selected); }
.story .scr-path { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .scr-lact { display: flex; justify-content: flex-end; margin-top: 6px; }
.story .scr-set .rl-foot { margin-top: 16px; }

/* ── a confirmation (AppleErrorDialog, 460): the disc, the heading, the body 56 in, the buttons at the right ── */
.story .scr-alert > .scr-body { padding: 12px 28px 20px; }
.story .scr-alhd { display: flex; align-items: flex-start; margin-top: 8px; }
.story .scr-disc { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  margin: 2px 16px 0 0; border-radius: 50%; background: var(--w-warning); color: var(--w-text-on-accent);
  font-size: 22px; font-weight: var(--w-fw-bold); line-height: 1; }
.story .scr-alh { min-width: 0; font-size: var(--w-fs-title3); font-weight: var(--w-fw-semibold); line-height: 1.35;
  color: var(--w-text-primary); }
.story .scr-albody { margin: 6px 0 16px 56px; font-size: var(--w-fs-body); line-height: 1.45; color: var(--w-text-secondary); }
.story .scr-albody p { margin: 0; max-width: none; }
.story .scr-albody p + p { margin-top: 1.45em; }
.story .scr-alfoot { display: flex; justify-content: flex-end; align-items: center; margin-top: 4px; }
.story .scr-alfoot > .hbtn { min-width: var(--w-size-button-min-width); }
.story .scr-alfoot > .hbtn + .hbtn { margin-left: 10px; }

/* ── compositions: the confirmations side by side; sealing (your rows · the confirmation · a colleague's row) ── */
.story .scr-cap { margin: 0 0 6px 4px; font-size: var(--w-fs-callout); font-weight: var(--w-fw-bold); color: var(--w-text-secondary); }
.story .scr-alerts { display: grid; grid-template-columns: repeat(2, minmax(0, 460px)); justify-content: center; gap: 18px;
  width: 100%; align-items: start; text-align: left; }
.story .scr-alerts .scr-alert { width: 100%; }
.story .scr-seal { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; width: 100%; text-align: left; }
.story .scr-dlg { justify-self: center; width: 460px; max-width: 100%; }
.story .scr-col { min-width: 0; }
.story .scr-dlg .scr-alert { width: 100%; }
.story .capwin.scr-crop { width: 100%; padding: 10px; }
.story .scr-crop .tablewrap { border-radius: var(--w-radius-card); }
.story .scr-mini .scr-nl { flex-wrap: wrap; row-gap: 3px; }
.story .scr-mini .scr-nl .mk-badge:first-of-type { margin-left: 6px; }
/* AppleContextMenu: BgElevated, the hairline, Radius.Medium, 5 in; AppleMenuItem: Body, 10,6 */
.story .scr-menu { position: relative; z-index: 1; width: 220px; max-width: 80%; margin: -14px 28px 0 auto; padding: 5px;
  border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-medium); background: var(--w-bg-elevated);
  box-shadow: var(--w-shadow-popover); font-size: var(--w-fs-body); color: var(--w-text-primary); }
.story .scr-mi { padding: 6px 10px; border-radius: var(--w-radius-small); white-space: nowrap; }
.story .scr-mi:first-child { background: var(--w-bg-hover); }
.story .scr-msep { display: block; height: 1px; margin: 4px 8px; background: var(--w-separator); }

/* the scaled windows are never reflowed (zoom keeps them whole); the two confirmations, drawn 1:1, stack */
@media (max-width: 860px) {
  .story .scr-alerts { grid-template-columns: minmax(0, 460px); }
}

/* ── tools/web_mockups/select.css ── */
/* select.py's kinds (prefix slx-). Every rule sits under .story; colours and sizes are the window's tokens (the
   WEB-THEME block of site.css, --w-*): never a raw hex — a rule's swatch is DATA, painted inline from the media block,
   exactly as the app paints it from the rule's ARGB. The shared pieces — the title bar, the app header, .hbtn, .ck and
   the mk-* controls (buttons, group bars, segmented tracks, switch, fields, dropdowns, the table and its funnels) —
   are site.css's «THE CONTROLS», used as they are; this file only places them. Sizes in px are the XAML's own. */

/* ── the stage and the windows: the XAML's Width is written on each window as a style (select.py _win), a window is
   never wider than the page ── */
.story .slx-stage { width: 100%; display: flex; justify-content: center; min-width: 0; }
.story .slx-win { min-width: 0; max-width: 100%; }
.story .slx-body { position: relative; display: flex; flex-direction: column; min-width: 0;
  font-size: var(--w-fs-body); color: var(--w-text-primary); }
/* SelectWindow: Grid Margin 20,16,20,16 · SelectRuleEditor 24,12,24,18 · SelectListWindow 20,10,20,16 ·
   AppleErrorDialog 28,12,28,20 */
.story .slx-main .slx-body { padding: 16px 20px 16px; }
.story .slx-ed .slx-body { padding: 12px 24px 18px; }
.story .slx-list .slx-body { padding: 10px 20px 16px; }
.story .slx-dlg .slx-body { padding: 12px 28px 20px; }
.story .slx-main .apphdr { margin-bottom: 0; }

/* the label beside a control (TextBlock 13, TextSecondary) and the swatch (20 × 20, corner 4, StrokeSubtle) */
.story .slx-fl { flex: none; font-size: 13px; color: var(--w-text-secondary); white-space: nowrap; }
.story .slx-sw { display: inline-block; flex: none; box-sizing: border-box; width: 20px; height: 20px; border-radius: 4px;
  border: 1px solid var(--w-stroke-subtle); vertical-align: middle; }
.story .slx-sw.lg { width: 28px; height: 28px; border-radius: 6px; }
/* an icon-only button (AppleButton.Icon.Compact: a 24 circle, TextSecondary; a group bar's icon item: 20 square) */
.story .hbtn.plain.compact.slx-ib { width: var(--w-size-control-compact); min-width: 0; padding: 0; border-radius: 50%;
  color: var(--w-text-secondary); }
.story .mk-bar.compact > .hbtn.plain.compact.slx-ib { width: var(--w-size-control-inner-compact); padding: 0;
  border-radius: var(--w-radius-small); color: var(--w-accent-text); }

/* ── SelectWindow, row 1: the toolbar — the live line at the left, the verbs at the right (Margin 0,12,0,18) ── */
/* At the XAML's 1000 the row is one line; on a page column narrower than the window the verbs go under the live line
   rather than cut it (in the app the Auto column wins and the line is trimmed — but the window opens at 1000). */
.story .slx-tool { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 12px 0 18px; min-width: 0; }
/* the live line is AppleText.Status: 12, SemiBold, TextSecondary */
.story .slx-live { flex: 1 0 auto; max-width: 100%; font-size: var(--w-fs-callout); font-weight: var(--w-fw-semibold);
  color: var(--w-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .slx-tbtns { flex: none; margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end;
  align-items: center; gap: 4px 10px; }
@media (max-width: 760px) {
  .story .slx-tbtns { flex: 1 1 100%; margin-left: 0; justify-content: flex-start; }
}

/* ── row 2: the rules table (Apple.DataGrid.TwoLine): the name (AppleText.Cell: Callout, 12) over its summary
   (AppleText.CellSecondary: Subhead, 11, TextTertiary, 1 under the name), the Count button ── */
.story .slx-rules .dg thead th.slx-tk, .story .slx-rules .dg thead th.slx-swc { width: 44px; }
.story .slx-rules .dg thead th.slx-tk .ck { margin: 0 auto; }
.story .slx-nm { font-size: var(--w-fs-callout); color: var(--w-text-primary); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; }
.story .slx-sum { margin-top: 1px; font-size: var(--w-fs-subhead); color: var(--w-text-tertiary); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.story .slx-rules td { max-width: 0; }
.story .slx-rules td.ctr, .story .slx-rules td:nth-child(4) { max-width: none; }
.story .hbtn.slx-cnt { margin-left: 6px; font-variant-numeric: tabular-nums; }

/* ── row 3: the footer card (BgSurface, StrokeSubtle, corner 10, Padding 12,8): two rows ── */
.story .slx-fcard { margin-top: 18px; padding: 8px 12px; border: 1px solid var(--w-stroke-subtle); border-radius: 10px;
  background: var(--w-bg-surface); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.story .slx-fr1, .story .slx-fr2 { display: flex; align-items: center; gap: 8px; min-width: 0; }
/* the app's row is Auto | * | Auto and does not wrap; a narrower page lets the right block go under the rest */
.story .slx-fr1 { flex-wrap: wrap; row-gap: 8px; }
.story .slx-fleft { display: flex; align-items: center; gap: 8px; flex: none; }
.story .slx-pipe { font-size: 13px; color: var(--w-stroke-subtle); margin: 0 2px; }
.story .hbtn.slx-pick { min-width: 0; font-weight: var(--w-fw-regular); }
.story .slx-modes { flex: 1 1 auto; display: flex; margin-left: 8px; min-width: 0; }
.story .slx-fright { flex: none; display: flex; align-items: center; gap: 8px; }
.story .hbtn.slx-make { min-width: 0; }
.story .slx-fr2 .slx-fleft > .slx-fl { margin-left: 2px; }
.story .slx-st { flex: 1 1 auto; min-width: 0; margin: 0 2px 0 4px; font-size: 12px; color: var(--w-text-tertiary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .slx-fright { margin-left: auto; }
@media (max-width: 640px) {
  .story .slx-fr2 { flex-wrap: wrap; }
  .story .slx-fleft { flex: 1 1 100%; flex-wrap: wrap; min-width: 0; }
  .story .slx-st { flex-basis: 100%; white-space: normal; }
}

/* ── «Edit rule» ── */
.story .slx-h { margin: 4px 0 12px; font-size: 20px; font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
/* FieldLabel = AppleText.Subhead (11, Regular, TextSecondary), Margin 0,0,0,4 */
.story .slx-lbl { margin-bottom: 4px; font-size: var(--w-fs-subhead); font-weight: var(--w-fw-regular);
  color: var(--w-text-secondary); }
.story .slx-namerow { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; min-width: 0; }
.story .slx-namerow > .mk-field { flex: 1 1 auto; font-size: 13px; }
.story .slx-scope { display: flex; margin-bottom: 14px; }
/* AppleCardExpander: BgSurface, StrokeSubtle, Radius.Card; header Padding 16,12 — the chevron (11 in a 14 box, 1.6
   stroke, TextSecondary, 90° when open), the Tag 13 SemiBold — and the Header content at the right, 16 in; the body
   16,0,16,16; 12 under the card */
.story .slx-xcard { margin-bottom: 12px; border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-card);
  background: var(--w-bg-surface); min-width: 0; }
.story .slx-xh { display: flex; align-items: center; gap: 10px; padding: 12px 16px; min-width: 0; }
.story .slx-xchev { flex: none; width: 14px; height: 14px; fill: none; stroke: var(--w-text-secondary); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; }
.story .slx-xcard.open .slx-xchev { transform: rotate(90deg); }
.story .slx-xt { flex: 1 1 auto; font-size: 13px; font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .slx-xr { flex: none; display: flex; align-items: center; gap: 8px; }
.story .slx-xb { padding: 0 16px 16px; display: flex; flex-direction: column; min-width: 0; }
.story .slx-match { font-size: 12px; color: var(--w-text-secondary); }
/* the categories: the search (full width), Only selected · Select all | Select none, the list (220 tall, corner 8) */
.story .slx-csearch { display: flex; margin-bottom: 10px; }
.story .slx-csearch > .mk-field { flex: 1 1 auto; font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.story .slx-crow { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px;
  flex-wrap: wrap; }
.story .slx-only { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--w-text-primary); }
.story .slx-clist { box-sizing: border-box; height: 220px; padding: 4px; border: 1px solid var(--w-stroke-subtle);
  border-radius: 8px; background: var(--w-bg-surface); overflow: hidden; }
.story .slx-ci { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-radius: var(--w-radius-small);
  font-size: 12px; color: var(--w-text-primary); }
/* a condition: BgSubtle, StrokeSubtle, corner 8, Padding 10,8, 6 under it — the dropdowns, the value, the track */
.story .slx-cond { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; padding: 8px 10px;
  border: 1px solid var(--w-stroke-subtle); border-radius: 8px; background: var(--w-bg-subtle); min-width: 0; }
.story .slx-ccombos { flex: none; display: flex; gap: 6px; }
.story .slx-ccombos > .mk-combo, .story .slx-cval > .mk-combo { font-size: 12px; }
.story .slx-cval { flex: 1 1 auto; display: flex; min-width: 120px; }
.story .slx-cval > .mk-combo { flex: 1 1 auto; }
.story .slx-cbar { flex: none; margin-left: 2px; }
.story .slx-cadd { display: flex; margin-top: 4px; }
@media (max-width: 760px) {
  .story .slx-cond { flex-wrap: wrap; }
  .story .slx-ccombos { flex: 1 1 100%; flex-wrap: wrap; min-width: 0; }
  .story .slx-ccombos > .mk-combo { max-width: 100%; }
  .story .slx-xh { flex-wrap: wrap; row-gap: 8px; }
}
/* the footnote (11, TextSecondary, Margin 2,12,0,0 — 12 more under the card expander's own Margin 0,0,0,12) and the
   buttons (Margin 0,14,0,0; 10 apart) */
.story .slx-note { margin: 12px 0 0 2px; font-size: 11px; line-height: 1.45; color: var(--w-text-secondary); }
.story .slx-efoot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.story .slx-efoot > .hbtn { min-width: var(--w-size-button-min-width); }

/* ── «Rule elements» ── */
.story .slx-lh { margin: 4px 0 2px; font-size: var(--w-fs-headline); font-weight: var(--w-fw-semibold);
  color: var(--w-text-primary); }
.story .slx-lsub { margin-bottom: 8px; font-size: var(--w-fs-footnote); color: var(--w-text-secondary); }
.story .slx-ltools { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; min-width: 0; }
.story .slx-filter { flex: 1 1 auto; display: flex; min-width: 120px; }
.story .slx-filter > .mk-field { flex: 1 1 auto; }
.story .slx-ltools > .hbtn { flex: none; min-width: 0; }
@media (max-width: 640px) { .story .slx-ltools { flex-wrap: wrap; } .story .slx-filter { flex-basis: 100%; } }
.story .slx-items .dg tbody td:first-child { font-variant-numeric: tabular-nums; }
/* the DataGrid's filler: what the fixed-width columns leave of the card — an empty header, the zebra going on */
.story .slx-items .dg thead th.slx-fill { width: auto; }
.story .slx-lfoot { display: flex; align-items: center; gap: 8px 12px; margin-top: 12px; min-width: 0; flex-wrap: wrap; }
.story .slx-lcount { flex: 1 1 200px; display: flex; flex-direction: column; min-width: 0; }
.story .slx-c1 { font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); }
.story .slx-c2 { margin-top: 2px; font-size: var(--w-fs-footnote); color: var(--w-text-secondary); white-space: pre;
  overflow: hidden; text-overflow: ellipsis; }
.story .slx-lbtns { flex: none; display: flex; gap: 8px; margin-right: 20px; flex-wrap: wrap; }
.story .slx-lbtns > .hbtn { min-width: 0; }
/* the resize grip (TextTertiary, 1.4, Opacity 0.7) in the bottom-right corner */
.story .slx-grip { position: absolute; right: 4px; bottom: 4px; width: 16px; height: 16px; fill: none; opacity: .7;
  stroke: var(--w-text-tertiary); stroke-width: 1.4; }

/* ── «Information» (AppleErrorDialog, Severity.Info): the blue «i» in its 40 circle, the heading (Title3), the body
   (Body, TextSecondary) under it at 56, its paragraphs one blank line apart, the buttons 10 apart at the right ── */
.story .slx-alert { display: flex; align-items: flex-start; gap: 16px; margin-top: 8px; }
.story .slx-ai { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  margin-top: 2px; border-radius: 50%; background: var(--w-accent); color: var(--w-text-on-accent); font-size: 22px;
  font-weight: var(--w-fw-bold); }
.story .slx-alert b { padding-top: 9px; font-size: var(--w-fs-title3); font-weight: var(--w-fw-semibold);
  color: var(--w-text-primary); }
.story .slx-abody { margin: 6px 0 16px 56px; font-size: var(--w-fs-body); line-height: 1.45; color: var(--w-text-secondary); }
.story .slx-abody p { margin: 0; }
.story .slx-abody p + p { margin-top: 1.45em; }
.story .slx-afoot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.story .slx-afoot > .hbtn { min-width: var(--w-size-button-min-width); }

/* ── tools/web_mockups/sign.css ── */
/* sign.py's kinds (prefix sgn-). Every rule sits under .story; colours and sizes are the window's tokens (the
   WEB-THEME block of site.css, --w-*): never a raw hex. The title bar, the app header and the kit (.hbtn, .mk-combo,
   .mk-check, .dg, th.fl, tr.grp, .mk-badge) are site.css's, used as they are. */

.story .sgn-stage { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.story .sgn-win { width: 100%; min-width: 0; }
.story .sgn-win.sgn-crop { width: min(100%, 840px); }
.story .sgn-win.sgn-plain { width: min(100%, 440px); }

/* the body: Margin 22,18,22,16 — the header, the card, the findings, the result line, the buttons */
.story .sgn-body { padding: 18px 22px 16px; display: flex; flex-direction: column; font-size: var(--w-fs-body);
  color: var(--w-text-primary); min-width: 0; }
.story .sgn-body .apphdr { margin-bottom: 0; }
/* the live headline inside the header: AppleText.Subhead.Live in TextSecondary, 2 under the sentence */
.story .sgn-body .apphdr-ctx { margin-top: 2px; font-size: var(--w-fs-subhead); line-height: 1.45;
  color: var(--w-text-secondary); }

/* AppleCard: the surface, the subtle edge, the card corner, 16 inside (the findings' card 10) */
.story .sgn-card { box-sizing: border-box; margin-top: 14px; padding: 16px; background: var(--w-bg-surface);
  border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-card); min-width: 0; }
.story .sgn-body > .sgn-card:first-child { margin-top: 0; }
.story .sgn-fl { margin-bottom: 6px; font-size: var(--w-fs-body); font-weight: var(--w-fw-semibold);
  color: var(--w-text-primary); white-space: nowrap; }
.story .sgn-combo .mk-combo { display: flex; width: 100%; }
.story .sgn-fn { margin-top: 6px; font-size: var(--w-fs-footnote); line-height: 1.45; color: var(--w-text-tertiary); }

/* the options row (16 under the family): the switch and its note in words (*), Doors to probe over its stepper */
.story .sgn-opts { display: flex; align-items: center; gap: 16px; margin-top: 16px; min-width: 0; }
.story .sgn-leave { flex: 1 1 auto; min-width: 0; }
.story .sgn-off { opacity: .45; }   /* AppleCheckBox, IsEnabled=False: Opacity 0.45 */
.story .sgn-doors { flex: none; display: flex; flex-direction: column; align-items: flex-end; }
/* the stepper: a 6-corner StrokeSubtle box, − · the number (40 wide, ruled either side) · +, in the accent's ink */
.story .sgn-step { display: inline-flex; align-items: stretch; box-sizing: border-box; border: 1px solid var(--w-stroke-subtle);
  border-radius: 6px; background: var(--w-bg-surface); }
.story .sgn-sb { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; padding: 3px 0;
  font-size: 15px; line-height: 1.2; color: var(--w-accent-text); }
.story .sgn-sb.dis { color: var(--w-text-disabled); }   /* AppleStepperButton, IsEnabled=False: TextDisabled */
.story .sgn-sv { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; padding: 4px 0;
  border-left: 1px solid var(--w-stroke-subtle); border-right: 1px solid var(--w-stroke-subtle);
  font-size: var(--w-fs-body); color: var(--w-text-primary); font-variant-numeric: tabular-nums; }

/* AppleEmptyState: centred, at most 460 wide — Title3 in TextSecondary, its lines Subhead in TextTertiary */
.story .sgn-empty { max-width: 460px; margin: 0 auto; text-align: center; }
.story .sgn-et { font-size: var(--w-fs-title3); font-weight: var(--w-fw-semibold); line-height: 1.3;
  color: var(--w-text-secondary); }
.story .sgn-eb { margin-top: 6px; font-size: var(--w-fs-subhead); line-height: 1.45; color: var(--w-text-tertiary); }
.story .sgn-eact { margin-top: 12px; display: flex; justify-content: center; }

/* the findings: the card (10 inside) holding the grid — or the empty state, centred in the height the row gets */
.story .sgn-find { padding: 10px; }
.story .sgn-find.sgn-none { display: flex; align-items: center; justify-content: center; min-height: 300px; }
.story .sgn-find .tablewrap { border: 0; border-radius: 0; background: transparent; }
/* a phone reaches the verdict columns by scrolling the grid, never by losing them (no page scroll either way) */
.story .sgn-find .tscroll { overflow-x: auto; overflow-y: hidden; }
.story table.dg.sgn-dg { width: 100%; min-width: 0; table-layout: fixed; }
.story .sgn-dg tbody td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* text rows (Apple.DataGrid, 36): the group header's count badge must not make them the 42 of a row of controls */
.story .sgn-find table.dg.sgn-dg tbody td { height: var(--w-size-grid-row); }
.story .sgn-dg tbody td.ctr { text-align: center; }
.story .sgn-dg thead th { overflow: hidden; text-overflow: ellipsis; }
.story .sgn-dg tbody tr.grp td { overflow: visible; }

/* the result line: AppleText.Headline in the accent's text colour, 12 under the findings */
.story .sgn-res { margin-top: 12px; font-size: var(--w-fs-headline); font-weight: var(--w-fw-semibold); line-height: 1.45;
  color: var(--w-accent-text); }
.story .sgn-body > .rl-foot { margin-top: 16px; }

/* the report, pasted: a plain window, the text exactly as Copy report writes it — fixed-width, wrapping where the
   window ends, and running on past the crop */
.story .sgn-txt { position: relative; max-height: 440px; overflow: hidden; padding: 12px 14px 0;
  background: var(--w-bg-surface); }
.story .sgn-pre { margin: 0; font-family: var(--w-font-mono); font-size: 10.5px; line-height: 1.5;
  color: var(--w-text-primary); white-space: pre-wrap; overflow-wrap: anywhere; }
.story .sgn-txt::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 44px;
  background: linear-gradient(to bottom, transparent, var(--w-bg-surface)); pointer-events: none; }

/* ── tools/web_mockups/stencil.css ── */
/* stencil.py's kinds (prefix stx-). Every rule sits under .story; colours and sizes are the window's tokens (the
   WEB-THEME block of site.css, --w-*, and the page tokens .capwin remaps to them): never a raw hex. The controls —
   the title bar, the app header, the buttons, the group bar, the segmented bars, the ticks, the dropdowns, the table
   and its funnels — are the kit's (site.css «THE CONTROLS»), used as they are; this file only places them. */

/* composition: a window and what "then" adds, stacked or side by side (a wide beat) */
.story .stx-stage { width: 100%; display: flex; justify-content: center; }
.story .stx-stack { display: grid; gap: 18px; justify-items: center; width: 100%; }
.story .stx-stack > .stagecard { width: 100%; display: flex; justify-content: center; }
.story .stx-side { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px;
  align-items: start; width: 100%; }
.story .stx-side.stx-two { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr); }
.story .stx-side .stx-col { display: grid; gap: 18px; min-width: 0; }
.story .stx-side .stx-col .dlgrow { flex-direction: column; flex-wrap: nowrap; }
.story .stx-side .stx-col .dlgcell { max-width: none; flex: none; }
@media (max-width: 900px) { .story .stx-side { grid-template-columns: minmax(0, 1fr); } }

/* the window and its width (the XAML's Width, scaled to the page; .capwin keeps max-width: 100%) */
.story .stx-stage, .story .stx-stack, .story .stx-side, .story .stx-side > *, .story .stx-stack > * { min-width: 0; }
.story .stx-win.stx-crop { width: 100%; }
.story .stx-win.stx-main { width: 100%; }
.story .stx-win.stx-w620 { width: 560px; }
.story .stx-win.stx-w720 { width: 620px; }
.story .stx-side .stx-win { width: 100%; }
.story .stx-body { padding: 8px 20px 16px; display: flex; flex-direction: column; gap: 10px;
  font-size: var(--w-fs-callout); color: var(--ink); }
.story .stx-body .apphdr { margin-bottom: 2px; }

/* the tabs row (AppleSegmented, its own row under the header) and an expander's header line (AppleExpander) */
.story .stx-tabs { display: flex; }
.story .stx-exp { display: flex; align-items: center; gap: 8px; min-height: 22px; font-size: 11.5px;
  font-weight: var(--w-fw-semibold); color: var(--w-text-secondary); white-space: nowrap; min-width: 0; }
.story .stx-exp-t { flex: none; }
.story .stx-chev { width: 6px; height: 8px; flex: none; margin: 0 4px; overflow: visible; fill: none;
  stroke: var(--w-text-tertiary); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.story .stx-exp.open .stx-chev, .story .stx-gh.open .stx-chev { transform: rotate(90deg); }
.story .stx-fl { font-weight: var(--w-fw-regular); margin-left: 4px; overflow: hidden; text-overflow: ellipsis; }
.story .stx-pre { white-space: pre; }

/* the tab's one line (HeaderLine, AppleText.Subhead), wrapping where the pane lets it */
.story .stx-hl { font-size: var(--w-fs-subhead); color: var(--w-text-secondary); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.story .stx-hl.stx-wrap { white-space: normal; line-height: 1.45; }

/* the Sets card (Border BgSurface + StrokeSubtle, Radius.Medium, 14,5) with its group bar on the header's row */
.story .stx-setcard { background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-medium); padding: 6px 14px 10px; display: flex; flex-direction: column; gap: 8px; }
.story .stx-setcard.folded { padding: 6px 14px; }
/* its header is 11 SemiBold (the introduction's and «Not carried»'s are 11.5); the folded line is 11.5 Normal */
.story .stx-setcard .stx-exp { font-size: 11px; }
.story .stx-setcard .stx-fl { font-size: 11.5px; }
.story .stx-sethd { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.story .stx-sethd .stx-exp { flex: 1 1 auto; }
.story .stx-pair { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.story .stx-pair-t { flex: 1 1 260px; min-width: 0; }
.story .stx-src { font-size: var(--w-fs-body); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .stx-tgt { font-size: 11.5px; color: var(--w-text-secondary); margin-top: 4px; line-height: 1.45;
  white-space: pre-wrap; }   /* the code joins its sentences with two spaces («  ·  », «.  Everything…») */
.story .stx-cb { display: flex; align-items: center; gap: 8px; font-size: var(--w-fs-callout); color: var(--ink); }

/* the action row (Check · Apply above the table they act on) and a footer; a footer's and the row's buttons keep
   the library's floor (Size.ButtonMinWidth), as the kit's footers do */
.story .stx-act, .story .stx-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.story .stx-act { margin-top: 4px; }
/* the app's action row is one grid row: the status wraps, the buttons never do (SyncPane.xaml:252-307) */
@media (min-width: 700px) {
  .story .stx-act { flex-wrap: nowrap; }
  .story .stx-act > :not(.stx-grow) { flex: none; }
  .story .stx-act > .stx-grow { flex: 1 1 0; }
}
.story .stx-foot { margin-top: 4px; gap: 8px 10px; }
.story :is(.stx-act, .stx-foot, .stx-stale, .stx-pair, .stx-row) > .hbtn:not(.link) { min-width: var(--w-size-button-min-width); }
.story .stx-st { font-size: 11.5px; color: var(--w-text-secondary); min-width: 0; line-height: 1.4; }
.story .stx-st.stx-grow { flex: 1 1 160px; white-space: pre-wrap; }
.story .stx-sp { flex: 1 1 0; }
.story .stx-foot .stx-st { flex: 1 1 90px; white-space: pre-wrap; }

/* AppleButton.Link: Body 13, Medium, the accent — and a Delete verb on a link keeps the Destroy role's red */
.story .hbtn.link.stx-lk { font-size: var(--w-fs-body); font-weight: var(--w-fw-medium); }
.story .hbtn.link.stx-lk.stx-red { color: var(--w-danger); }
.story .stx-acts .hbtn.link + .hbtn.link { margin-left: 8px; }

/* the grids: the kit's table on its card; the star columns keep the XAML's proportions (stencil.py:_table) */
.story .stx-card0 { border-color: var(--w-stroke-subtle); border-radius: var(--w-radius-card); background: var(--w-bg-surface); }
.story table.dg.stx-dg { table-layout: fixed; width: 100%; }
.story .stx-dg thead th { overflow: hidden; text-overflow: ellipsis; }
.story .stx-dg tbody td { font-size: var(--w-fs-callout); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .stx-dg tbody td.ctr { text-align: center; }
.story .stx-types tbody td .mk-combo { width: 100%; }

/* GridGroups' header (Apple.DataGridGroupContainer): BgSubtle, a rule under it, 14,8, the fold, the name, the count */
.story .stx-dg tr.stx-gh td { height: auto; padding: 8px 14px; background: var(--w-bg-subtle);
  border-bottom: 1px solid var(--w-stroke-subtle); overflow: visible; }
.story .stx-gh-in { display: inline-flex; align-items: center; gap: 8px; }
.story .stx-gh-in .stx-chev { margin: 0 4px 0 0; }
.story .stx-gh-in b { font-size: var(--w-fs-callout); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .stx-gh-in .mk-badge { margin-left: 2px; }

/* the tooltip a row's identity cell carries (the WHY): drawn open, above its row */
.story .stx-dg tr.stx-hastip td { overflow: visible; }
.story .stx-tipcell { position: relative; }
.story .stx-tip { position: absolute; left: 40%; bottom: calc(100% - 8px); z-index: 2; width: min(340px, 58%);
  white-space: normal; padding: 8px 10px; border-radius: var(--w-radius-medium); background: var(--w-bg-elevated);
  border: 1px solid var(--w-stroke-default); box-shadow: var(--w-shadow-popover); font-size: 11.5px; line-height: 1.45;
  color: var(--w-text-primary); }
.story .stx-detail .tscroll, .story .stx-detail { overflow: visible; }

/* a crop that goes on below: the table fades out */
.story .stx-fade { -webkit-mask-image: linear-gradient(to bottom, var(--ink) 55%, transparent);
  mask-image: linear-gradient(to bottom, var(--ink) 55%, transparent); }

/* the cards of the panes: BgSurface (state), WarningSubtle (the price, the stale table), NeutralSubtle (notes) */
.story .stx-surf { background: var(--w-bg-surface); border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-medium); padding: 12px 14px; }
.story .stx-surf.stx-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 11px 14px; }
.story .stx-dims { margin-top: 6px; }
.story .stx-warn { background: var(--w-warning-subtle); border: 1px solid var(--w-warning);
  border-radius: var(--w-radius-medium); padding: 8px 12px; }
.story .stx-stale { display: flex; align-items: center; gap: 8px; }
.story .stx-wi { color: var(--w-warning-ink); font-size: var(--w-fs-subhead); flex: none; }
.story .stx-wt { flex: 1 1 auto; font-size: var(--w-fs-footnote); line-height: 1.45; color: var(--w-text-primary); }
.story .stx-stale .hbtn { margin-left: 4px; flex: none; }
.story .stx-warn.stx-block { padding: 10px 12px; margin-top: 8px; }
.story .stx-wh { font-size: 11.5px; font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .stx-wp { font-size: 11.5px; line-height: 1.45; color: var(--w-text-secondary); margin-top: 5px; }
.story .stx-note { background: var(--w-neutral-subtle); border: 1px solid var(--w-stroke-subtle);
  border-radius: var(--w-radius-medium); padding: 10px 12px; font-size: 11.5px; line-height: 1.45;
  color: var(--w-text-secondary); }

/* a dialog's heading (AppleText.Headline + Subhead), and the scope row of the type map (label 11 SemiBold, the
   dropdown taking the rest) */
.story .stx-dh { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.story .stx-h { font-size: var(--w-fs-headline); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .stx-sub { font-size: var(--w-fs-subhead); line-height: 1.5; color: var(--w-text-secondary); }
.story .stx-scope { display: flex; align-items: center; gap: 8px; margin-top: 11px; }
.story .stx-lb { font-size: 11px; font-weight: var(--w-fw-semibold); color: var(--w-text-secondary); flex: none; }
.story .stx-scope .mk-combo { flex: 1 1 auto; min-width: 0; }

/* ── tools/web_mockups/walk.css ── */
/* walk.py's kinds: Walk's windows (refresh phase A, 15-nov-2026; phase C, 16-nov). Every rule sits under .story and the
   wk- prefix. The controls are the site's kit (.hbtn, .mk-seg, .mk-combo, .mk-search, .mk-switch, .mk-bar, .dg — site.css
   «THE CONTROLS»); this file lays Walk's windows out around them. Colours and sizes come from the site's tokens: inside
   a .capwin the suite's own (--w-*), with the site's nearest as the fallback. No raw hex: a look's swatch takes the
   colour its set ships through --wk-sw, written by walk.py from look.txt (data, as the app's swatch button is).
   Walk's window is wider than a beat's stage: where it does not fit it is CROPPED as a narrower window would be, with a
   fade at the cut (the ribbon's strip at the right, the status bar folding into «More…»), never shrunk. */

/* ── shared ─────────────────────────────────────────────────────────────────────────────────────────── */
.story .stagecard.wk-full { width: 100%; }
.story .capwin.wk-win { position: relative; width: 100%; font-size: var(--w-fs-callout, 12px); }
.story .wk-win .wk-sp { flex: 1; min-width: 0; }
/* the 3D view, never drawn: a quiet neutral ground with a hint of horizon */
.story .wk-ground { background:
    linear-gradient(180deg, color-mix(in srgb, var(--ink) 5%, var(--surface)) 0%, var(--surface) 52%,
      color-mix(in srgb, var(--ink) 6%, var(--surface)) 60%, color-mix(in srgb, var(--ink) 3%, var(--surface)) 100%); }
.story .wk-win .wk-sym { display: inline-block; flex: none; width: 14px; height: 14px; vertical-align: -2px; }
.story .wk-win .wk-chev { display: inline-block; flex: none; width: 7px; height: 7px; color: var(--w-text-tertiary, var(--ink-3)); }
.story .wk-win .mk-switch.wk-off { opacity: .4; }
.story .wk-win .mk-combo { min-width: 0; }
.story .wk-win .mk-search { width: 100%; }
/* a group header (AppleGroupHeaderToggle) and the white card under it (PreferencesCard / GroupCard) */
.story .wk-gh { display: flex; align-items: center; gap: 6px; margin: 12px 0 6px; font-size: var(--w-fs-body, 13px);
  color: var(--w-text-primary, var(--ink)); white-space: nowrap; overflow: hidden; }
.story .wk-gh .c { display: grid; place-items: center; flex: none; width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid var(--w-stroke-default, var(--line)); }
.story .wk-gh .c .wk-chev { width: 7px; height: 6px; color: var(--w-text-secondary, var(--ink-2)); }
.story .wk-gh.shut .c .wk-chev { width: 5px; height: 7px; }
.story .wk-gh b { font-weight: var(--w-fw-semibold, 600); }
.story .wk-gh .a { color: var(--w-text-tertiary, var(--ink-3)); overflow: hidden; text-overflow: ellipsis; }
.story .wk-card { border: 1px solid var(--w-stroke-subtle, var(--line)); border-radius: var(--w-radius-card, 10px);
  padding: 2px 12px; background: var(--w-bg-elevated, var(--card)); }
.story .wk-card.wk-pad { padding: 8px 12px 10px; margin-top: 8px; }
/* a setting row (AppleSettingRow): the label (and its detail under it) at the left, its control at the right */
.story .wk-set { display: flex; align-items: center; gap: 8px; min-height: 24px; padding: 6px 0;
  border-top: 1px solid var(--w-separator, var(--line)); }
.story .wk-set.first { border-top: 0; }
.story .wk-set .l { flex: none; max-width: 44%; color: var(--w-text-primary, var(--ink)); font-size: var(--w-fs-callout, 12px); }
.story .wk-set .r { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.story .wk-set .r > .mk-combo { flex: 1 1 auto; max-width: 70%; }
.story .wk-set .v { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--w-text-secondary, var(--ink-2)); text-align: right; font-size: var(--w-fs-callout, 12px); }
.story .wk-set .l .d { display: block; margin-top: 2px; font-size: var(--w-fs-subhead, 11px); line-height: 1.4;
  color: var(--w-text-secondary, var(--ink-3)); white-space: normal; }
.story .wk-set.wk-hasd .l { flex: 1; max-width: none; }
.story .wk-set.wk-hasd .r { flex: none; }
.story .wk-note, .story .wk-sub { padding: 6px 0; font-size: var(--w-fs-subhead, 11px); line-height: 1.45;
  color: var(--w-text-secondary, var(--ink-2)); }
.story .wk-sub { padding: 2px 0; }
.story .wk-brow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 6px 0 10px; }
/* a docked pane (DockPane): the pane bar (its name in Headline, the compact Close) and the content */
.story .wk-dock { display: flex; flex-direction: column; min-width: 0; background: var(--w-bg-window, var(--card)); }
.story .wk-dbar { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 12px; flex: none;
  border-bottom: 1px solid var(--w-separator, var(--line)); }
.story .wk-dbar b { font-size: var(--w-fs-headline, 13px); font-weight: var(--w-fw-semibold, 600);
  color: var(--w-text-primary, var(--ink)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.story .wk-dbody { padding: 10px 12px 12px; min-width: 0; }
.story .wk-psub { font-size: var(--w-fs-callout, 12px); line-height: 1.45; color: var(--w-text-secondary, var(--ink-2)); }
/* Properties' header (PropertiesPanel.Header): the category small, «family : type» strong, where it is */
.story .wk-phd .c { font-size: var(--w-fs-footnote, 10px); color: var(--w-text-secondary, var(--ink-2)); }
.story .wk-phd .h { margin-top: 2px; font-size: var(--w-fs-headline, 13px); font-weight: var(--w-fw-semibold, 600);
  line-height: 1.35; color: var(--w-text-primary, var(--ink)); }
.story .wk-phd .s { margin-top: 2px; font-size: var(--w-fs-subhead, 11px); color: var(--w-text-secondary, var(--ink-2)); }
/* a slider (AppleSlider): the accent track up to the value, a round thumb */
.story .wk-slider { position: relative; display: block; flex: 1; min-width: 50px; height: 16px; margin: 2px 0 6px; }
.story .wk-slider i, .story .wk-slider::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 3px;
  border-radius: 2px; background: color-mix(in srgb, var(--ink) 14%, transparent); }
.story .wk-slider i { right: auto; width: var(--at); background: var(--w-accent, var(--accent)); z-index: 1; }
.story .wk-slider b { position: absolute; top: 1px; left: calc(var(--at) - 7px); width: 14px; height: 14px; z-index: 2;
  border-radius: 50%; background: var(--w-bg-elevated, var(--card)); border: 1px solid var(--w-stroke-default, var(--line));
  box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 22%, transparent); }
/* Walk's notice (Kit.Toast = SuiteToast's small card, ToastLook): the meaning's 3-px bar, its glyph in a 22-px column, ONE
   line of 11-px words (14-px lines) that wraps at 304 px, and an action at the end of the line — never a headline. Never
   wider than what holds it, either (fit-content, not max-content): a phone's stage is narrower than 304 px. */
.story .wk-toast { --wk-tone: var(--w-accent, var(--accent)); display: flex; align-items: stretch; width: fit-content;
  max-width: 304px; overflow: hidden; border: 1px solid var(--w-separator, var(--line)); border-radius: var(--w-radius-card-action, 9px);
  background: color-mix(in srgb, var(--wk-tone) 4%, var(--w-bg-elevated, var(--card)));
  box-shadow: var(--w-shadow-popover, var(--shadow)); opacity: .96; }
.story .wk-toast.wk-t-warn { --wk-tone: var(--w-warning, var(--warn)); }
.story .wk-toast .b { flex: none; width: 3px; background: var(--wk-tone); }
.story .wk-toast .g { flex: none; width: 22px; display: grid; place-items: center; font-size: 11px; font-weight: 700;
  color: var(--wk-tone); }
.story .wk-toast .t { flex: 1 1 auto; min-width: 0; padding: 6px 12px 6px 3px; font-size: 11px; line-height: 14px;
  color: color-mix(in srgb, var(--w-text-primary, var(--ink)) 55%, var(--w-text-secondary, var(--ink-2))); }
.story .wk-toast .a { flex: none; align-self: center; margin-right: 12px; }
/* a window cut at its bottom, as a shorter one would be: the rest goes on below, faded */
.story .wk-cut { max-height: 1120px; overflow: hidden;
  mask-image: linear-gradient(to bottom, black calc(100% - 70px), transparent); }

/* ── 1 · walk-picker (ViewPickerWindow: 720 wide, its XAML's margins) ────────────────────────────────── */
.story .capwin.wk-pick { width: 720px; max-width: 100%; container: wkp / inline-size; }
.story .wk-pick-b { padding: 16px 24px 20px; }
.story .wk-pick-h { font-size: 20px; font-weight: var(--w-fw-semibold, 600); line-height: 1.2; color: var(--w-text-primary, var(--ink)); }
.story .wk-pick-s { margin: 4px 0 0; font-size: var(--w-fs-callout, 12px); line-height: 1.45; color: var(--w-text-secondary, var(--ink-3)); }
.story .wk-pick-q { margin: 26px 0 10px; display: flex; }
.story .wk-pick-q .mk-field { flex: 1; }
.story .wk-pick-t table.dg { min-width: 0; table-layout: fixed; }
.story .wk-pick-t th.tick { width: 80px; }
.story .wk-pick-t th:nth-child(3) { width: 200px; }
.story .wk-pick-t td.wk-ter { color: var(--w-text-tertiary, var(--ink-3)); }
.story .wk-foot { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.story .wk-sum { font-size: var(--w-fs-callout, 12px); color: var(--w-text-secondary, var(--ink-2)); }
.story .wk-foot .hbtn { min-width: var(--w-size-button-min-width, 88px); }
/* the beat's column is narrower than the window's 720: the Type column is drawn narrower so that both columns stay
   readable — cropping the window instead would lose its footer's Open */
@container wkp (max-width: 600px) {
  .story .wk-pick-t th:nth-child(3) { width: 36%; }
  .story .wk-pick-b { padding: 14px 16px 16px; }
  .story .wk-pick-q { margin-top: 16px; } }
/* a phone: the tick column gives the view's name the room (its funnel still fits), as a person narrows it in the app */
@container wkp (max-width: 420px) {
  .story .wk-pick-t th.tick { width: 56px; }
  .story .wk-pick-t th:nth-child(3) { width: 30%; } }

/* ── 2 · walk-ribbon (the unified bar and the Home tab) ──────────────────────────────────────────────── */
/* ctx.cap_bar("", manual=False) gives the lights, the theme switch and the mark; the bar's own pieces sit over it:
   Undo · Redo after the lights, the tabs centred, the model's name at the right. A narrow stage drops the name, then
   Undo · Redo (Walk drops the name the same way: TitleBar.LayOut), and the tabs clip at the right. */
.story .capwin.wk-rbn { container: wkr / inline-size; }
.story .wk-ubar { position: absolute; top: 0; left: 64px; right: 80px; height: var(--w-size-title-bar, 36px); z-index: 2;
  display: flex; align-items: center; gap: 10px; pointer-events: none; }
.story .wk-hist { display: flex; gap: 2px; flex: none; }
.story .wk-hb { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 7px;
  font-size: 12px; color: var(--w-text-primary, var(--ink)); opacity: .45; white-space: nowrap; }
.story .wk-hb .wk-sym { width: 13px; height: 13px; }
.story .wk-tabs { flex: 1 0 auto; min-width: 0; display: flex; justify-content: safe center; overflow: hidden;
  mask-image: linear-gradient(to right, black calc(100% - 18px), transparent); }
/* the library's segmented track, compact (AppleSegmented.Compact + SegmentToggle.Compact) — the ribbon's tabs */
.story .wk-seg { display: inline-flex; max-width: 100%; padding: 1px; gap: 0; border-radius: var(--w-radius-group, 8px); flex: none;
  border: 1px solid var(--w-stroke-subtle, var(--line)); background: var(--w-bg-subtle, var(--surface)); }
.story .wk-seg > span { flex: none; min-width: 56px; height: 20px; line-height: 20px; padding: 0 10px; border-radius: 6px;
  font-size: 12px; font-weight: var(--w-fw-semibold, 600); color: var(--w-text-secondary, var(--ink-2)); text-align: center;
  white-space: nowrap; }
.story .wk-seg > span.on { background: var(--w-bg-selected, color-mix(in srgb, var(--accent) 10%, transparent));
  color: var(--w-accent-ink, var(--accent-text)); }
.story .wk-model { flex: 0 1 auto; min-width: 0; max-width: 26%; font-size: 12px; color: var(--w-text-primary, var(--ink));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@container wkr (max-width: 760px) { .story .wk-model { display: none; } }
@container wkr (max-width: 640px) { .story .wk-hist { display: none; } .story .wk-tabs { flex: 1 1 auto; } }
/* the strip: ONE ambient field behind it, each group a soft card with a light wash, its name vertical at the left */
.story .wk-strip { position: relative; overflow: hidden; padding: 4px 8px;
  border-top: 1px solid var(--w-separator, var(--line)); border-bottom: 1px solid var(--w-separator, var(--line));
  background:
    radial-gradient(55% 150% at 10% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
    radial-gradient(45% 170% at 90% 100%, color-mix(in srgb, var(--teal) 9%, transparent), transparent 70%),
    radial-gradient(35% 130% at 52% 20%, color-mix(in srgb, var(--purple) 7%, transparent), transparent 70%),
    var(--bg); }
.story .wk-strip::before { content: ""; position: absolute; inset: 0; background: var(--w-stars, none) -260px -60px / 1200px 800px repeat;
  pointer-events: none; }
@container wkr (max-width: 1640px) { .story .wk-strip { mask-image: linear-gradient(to right, black calc(100% - 56px), transparent); } }
.story .wk-cards { position: relative; display: flex; gap: 8px; justify-content: safe center; }
.story .wk-grp { display: flex; flex: none; gap: 2px; padding: 4px; border-radius: var(--w-radius-group, 8px);
  border: 1px solid var(--w-stroke-subtle, var(--line));
  background: var(--w-ambient-group-wash, color-mix(in srgb, var(--card) 40%, transparent)); }
.story .wk-gname { display: flex; align-items: center; justify-content: center; width: 13px; flex: none; }
.story .wk-gname span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 9px; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase; color: var(--w-text-tertiary, var(--ink-3)); white-space: nowrap; }
.story .wk-btns { display: flex; gap: 2px; height: 72px; }
.story .wk-lb { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 40px; height: 72px;
  padding: 5px 4px 0; border-radius: 7px; font-size: 12px; line-height: 1.15; text-align: center;
  color: var(--w-text-primary, var(--ink)); white-space: nowrap; }
.story .wk-col { display: flex; flex-direction: column; justify-content: center; }
.story .wk-sb { display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px 0 5px; border-radius: 7px;
  font-size: 12px; color: var(--w-text-primary, var(--ink)); white-space: nowrap; }
.story .wk-lb.on, .story .wk-sb.on { background: var(--w-bg-selected, color-mix(in srgb, var(--accent) 10%, transparent));
  color: var(--w-accent-text, var(--accent-text)); }
.story .wk-lb.dis, .story .wk-sb.dis { opacity: .4; }
.story .wk-lb.lit, .story .wk-sb.lit { box-shadow: 0 0 0 2px var(--w-focus-ring, color-mix(in srgb, var(--accent) 45%, transparent)); }
.story .wk-pic { display: block; flex: none; }
.story .wk-pic-sym { width: 16px; height: 16px; color: currentColor; }
.story .wk-pic-sym.l { width: 30px; height: 30px; padding: 1px; }
/* the viewer's dark twin of a picture (IconTone.DarkTwin: the line art's lightness turned, its hue kept) */
:root[data-theme="dark"] .story .wk-png { filter: invert(1) hue-rotate(180deg); }
.story .wk-fold { display: flex; justify-content: center; height: 12px; position: relative; z-index: 1; }
.story .wk-fold span { display: grid; place-items: center; width: 36px; height: 12px; margin-top: -1px;
  color: var(--w-text-secondary, var(--ink-2)); background: var(--w-bg-elevated, var(--card));
  border: 1px solid var(--w-stroke-default, var(--line)); border-top: 0; border-radius: 0 0 6px 6px; }
.story .wk-fold .wk-chev { width: 9px; height: 9px; }
.story .wk-g-rbn { height: 46px; margin-top: -12px; }

/* ── 3 · walk-card (the hover card on the AppleToolTip surface) ─────────────────────────────────────── */
.story .wk-scene { overflow: hidden; }
.story .wk-g-card { position: relative; height: 230px; }
.story .wk-cursor { position: absolute; left: 30%; top: 20%; width: 14px; height: 21px; z-index: 2;
  fill: var(--w-bg-elevated, var(--card)); stroke: var(--ink); stroke-width: 1.1; stroke-linejoin: round; }
.story .wk-tip { position: absolute; left: calc(30% + 16px); top: calc(20% + 22px); min-width: 170px; max-width: 64%;
  padding: 10px 12px; border-radius: var(--w-radius-medium, 8px); border: 1px solid var(--w-stroke-subtle, var(--line));
  background: var(--w-bg-elevated, var(--card)); box-shadow: 0 6px 22px color-mix(in srgb, var(--ink) 18%, transparent); }
.story .wk-tip .h { font-size: var(--w-fs-headline, 13px); font-weight: 600; color: var(--w-text-primary, var(--ink)); }
.story .wk-tip .s { font-size: var(--w-fs-subhead, 11px); color: var(--w-text-secondary, var(--ink-2)); margin-top: 1px; }
.story .wk-tip .g { display: grid; grid-template-columns: auto auto; justify-content: start; column-gap: 12px; row-gap: 4px;
  margin-top: 7px; font-size: var(--w-fs-subhead, 11px); }
.story .wk-tip .g .l { color: var(--w-text-secondary, var(--ink-2)); }
.story .wk-tip .g .v { color: var(--w-text-primary, var(--ink)); }

/* ── 4 · walk-statusbar (the slim bar at the window's foot) ─────────────────────────────────────────── */
/* Its left half gives way as Walk's does (StatusBar.CollapseOrder: phase, environment, quality, eye, where on Earth,
   the sun go into «More…»); the model and the place trim with «…». The right half keeps its pieces. */
.story .capwin.wk-sbw { container: wks / inline-size; overflow: visible; }
.story .wk-g-sb { height: 118px; border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.story .wk-sbar { display: flex; align-items: center; height: var(--w-size-control-compact, 24px); padding: 0 12px; gap: 0;
  font-size: var(--w-fs-subhead, 11px); color: var(--w-text-secondary, var(--ink-2));
  border-top: 1px solid var(--w-separator, var(--line)); background: var(--w-bg-window, var(--bg));
  border-radius: 0 0 var(--w-radius-window, 14px) var(--w-radius-window, 14px); }
.story .wk-sbl { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; overflow: hidden; white-space: nowrap; }
.story .wk-spring { flex: 1 1 8px; min-width: 8px; }
.story .wk-sbr { flex: none; display: flex; align-items: center; white-space: nowrap; }
.story .wk-sbi { position: relative; display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 6px;
  border-radius: 6px; flex: none; }
.story .wk-sbi .t { overflow: hidden; text-overflow: ellipsis; white-space: pre; }
.story .wk-sbi.wk-model-sb { flex: 0 1 auto; min-width: 60px; max-width: 230px; color: var(--w-text-primary, var(--ink)); }
.story .wk-sbi.wk-place { flex: 0 1 auto; min-width: 60px; }
.story .wk-sbi.wk-link { color: var(--w-accent-text, var(--accent-text)); }
.story .wk-sbi.wk-more { display: none; }
.story .wk-rule { display: inline-block; flex: none; width: 1px; height: 12px; background: var(--w-separator, var(--line)); }
.story .wk-dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--w-success, var(--ok)); }
.story .wk-dot.off { background: var(--w-text-tertiary, var(--ink-3)); }
.story .wk-sbi.wk-lit { background: var(--w-bg-selected, color-mix(in srgb, var(--accent) 10%, transparent));
  color: var(--w-text-primary, var(--ink)); }
.story .wk-ready .wk-bar { position: relative; display: inline-block; width: 88px; height: 4px; border-radius: 2px; overflow: hidden;
  background: color-mix(in srgb, var(--ink) 12%, transparent); }
.story .wk-ready .wk-bar b { position: absolute; left: 0; top: 0; bottom: 0; background: var(--w-accent, var(--accent)); }
.story .wk-ready .wk-bar.ready { opacity: .55; }
.story .wk-ready .p { color: var(--w-text-primary, var(--ink)); }
/* the lit item's hover (AppleToolTip) */
.story .wk-sbtip { position: absolute; right: 0; bottom: calc(100% + 10px); width: 250px; padding: 8px 10px;
  border-radius: var(--w-radius-medium, 8px); border: 1px solid var(--w-stroke-subtle, var(--line)); background: var(--w-bg-elevated, var(--card));
  box-shadow: 0 6px 20px color-mix(in srgb, var(--ink) 16%, transparent); font-size: var(--w-fs-subhead, 11px); line-height: 1.45;
  color: var(--w-text-primary, var(--ink)); white-space: normal; text-align: left; }
@container wks (max-width: 1500px) { .story .wk-sbi.f1, .story .wk-sbi.f1 + .wk-rule { display: none; }
  .story .wk-sbi.wk-more.m1 { display: inline-flex; } }
@container wks (max-width: 1400px) { .story .wk-sbi.f2, .story .wk-sbi.f2 + .wk-rule { display: none; }
  .story .wk-sbi.wk-more.m2 { display: inline-flex; } }
@container wks (max-width: 1290px) { .story .wk-sbi.f3, .story .wk-sbi.f3 + .wk-rule { display: none; }
  .story .wk-sbi.wk-more.m3 { display: inline-flex; } }
@container wks (max-width: 1200px) { .story .wk-sbi.f4, .story .wk-sbi.f4 + .wk-rule { display: none; }
  .story .wk-sbi.wk-more.m4 { display: inline-flex; } }
@container wks (max-width: 1060px) { .story .wk-sbi.f5, .story .wk-sbi.f5 + .wk-rule { display: none; }
  .story .wk-sbi.wk-more.m5 { display: inline-flex; } }
@container wks (max-width: 900px) { .story .wk-sbi.f6, .story .wk-sbi.f6 + .wk-rule { display: none; }
  .story .wk-sbi.wk-more.m6 { display: inline-flex; } }
@container wks (max-width: 640px) { .story .wk-sbi.wk-model-sb, .story .wk-sbi.wk-model-sb + .wk-rule { display: none; } }

/* ── 5 · walk-revit-views (Revit's Project Browser, plainly, and Walk's notice) ──────────────────────── */
.story .stagecard.wk-rv { width: 100%; max-width: 520px; padding-bottom: 4px; }
.story .wk-pb { width: min(100%, 310px); padding-bottom: 80px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--card); box-shadow: var(--shadow); overflow: hidden; font-size: 12px; color: var(--ink); }
.story .wk-pb-t { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; font-weight: 600;
  background: var(--surface); border-bottom: 1px solid var(--line); }
.story .wk-pb-t span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .wk-x { width: 12px; height: 12px; flex: none; color: var(--ink-3); }
.story .wk-pb-tree { padding: 6px 0 10px; }
.story .wk-rn, .story .wk-rk { display: flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; white-space: nowrap; }
.story .wk-rn .wk-chev { width: 8px; height: 7px; color: var(--ink-2); }
.story .wk-rk { padding-left: 33px; }
.story .wk-rk span { overflow: hidden; text-overflow: ellipsis; }
.story .wk-rk.sel { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.story .wk-new { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.story .wk-rv-note { position: absolute; right: 0; bottom: 24px; z-index: 2; max-width: calc(100% - 24px); }

/* ── 6 · walk-panels (the Project Browser and Properties, docked) ───────────────────────────────────── */
.story .capwin.wk-docks { container: wkd / inline-size; display: grid; grid-template-columns: minmax(0, 300px) minmax(14px, 1fr) minmax(0, 320px);
  align-items: stretch; }
.story .wk-docks .wk-dock-l { border-right: 1px solid var(--w-separator, var(--line)); }
.story .wk-docks .wk-dock-r { border-left: 1px solid var(--w-separator, var(--line)); }
.story .wk-docks .wk-dbody { padding: 10px 10px 12px; }
/* the dock's tabs at its FOOT (DockPane.Tabs, Revit's Project Browser | Properties): a band with its line on top, the
   compact segmented at its natural width at the left */
.story .wk-dfoot { margin-top: auto; display: flex; align-items: center; height: 40px; padding: 0 12px; flex: none;
  border-top: 1px solid var(--w-separator, var(--line)); background: var(--w-bg-window, var(--card)); }
.story .wk-scope { display: flex; margin: 10px 0 6px; }
.story .wk-scope .mk-seg { flex: 1; min-width: 0; }
.story .wk-scope .mk-seg > .s { flex: 1 1 auto; min-width: 0; padding: 0 6px; overflow: hidden; text-overflow: ellipsis; }
.story .wk-tree { margin-top: 2px; }
.story .wk-tn { display: flex; align-items: center; gap: 7px; height: 26px; padding: 0 4px 0 calc(4px + var(--d, 0) * 16px);
  font-size: var(--w-fs-callout, 12px); color: var(--w-text-primary, var(--ink)); white-space: nowrap; }
.story .wk-tn .wk-chev { width: 7px; height: 6px; }
.story .wk-tn .wk-chev.shut { width: 5px; height: 7px; }
.story .wk-tn.wk-leaf { padding-left: calc(16px + var(--d, 0) * 16px); }
.story .wk-tn .t { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.story .wk-tn .n { margin-left: auto; padding-left: 8px; flex: none; color: var(--w-text-tertiary, var(--ink-3));
  font-size: var(--w-fs-subhead, 11px); }
.story .wk-docks .wk-card { padding: 1px 10px; }
.story .wk-docks .wk-gh { margin-top: 14px; }

/* ── 7 · walk-material (Properties › Material, the Library inline, the editor lent) ──────────────────── */
.story .capwin.wk-panel { width: 360px; max-width: 100%; }
.story .wk-acts { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; }
.story .wk-lib { display: flex; flex-direction: column; gap: 8px; padding: 8px 0 10px; border-top: 1px solid var(--w-separator, var(--line)); }
.story .wk-banner { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-radius: var(--w-radius-medium, 8px);
  background: var(--w-info-subtle, var(--surface)); font-size: var(--w-fs-callout, 12px); line-height: 1.4;
  color: var(--w-text-primary, var(--ink)); }
.story .wk-banner > span:first-child { flex: 1; min-width: 0; }
.story .wk-banner .hbtn { flex: none; }
/* «Align the pattern on this element…» (Main.AlignRow): its button alone in the row, the spring after it */
.story .wk-set.wk-arow { justify-content: flex-start; }
/* what a fresh Change… typed in the search (LibraryView.OpenFor): words, not the hint */
.story .wk-srow .mk-search.wk-typed > span { color: var(--w-text-primary, var(--ink)); }
.story .wk-ed .wk-app { padding: 0 0 4px; }
.story .wk-frow { display: flex; align-items: center; gap: 8px; font-size: var(--w-fs-subhead, 11px); line-height: 1.4;
  color: var(--w-text-secondary, var(--ink-2)); }
.story .wk-frow > span:first-child { flex: 1; min-width: 0; }
.story .wk-frow.wk-cache { font-size: var(--w-fs-footnote, 10px); }
.story .wk-where { display: flex; }
.story .wk-where .mk-seg { flex: 1; min-width: 0; }
.story .wk-where .mk-seg > .s { flex: 1 1 auto; min-width: 0; padding: 0 5px; overflow: hidden; text-overflow: ellipsis; }
.story .wk-foot-note { font-size: var(--w-fs-footnote, 10px); line-height: 1.45; color: var(--w-text-secondary, var(--ink-3)); }
.story .wk-srow { display: flex; align-items: center; gap: 6px; }
.story .wk-srow .mk-search { flex: 1; min-width: 0; width: auto; }
.story .wk-srow .mk-combo { flex: none; min-width: 96px; }
.story .wk-gfoot { display: flex; align-items: center; gap: 8px; font-size: var(--w-fs-subhead, 11px); color: var(--w-text-secondary, var(--ink-2)); }
.story .wk-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.story .wk-tile { display: flex; flex-direction: column; gap: 4px; padding: 3px; border-radius: var(--w-radius-medium, 8px);
  font-size: var(--w-fs-subhead, 11px); color: var(--w-text-primary, var(--ink)); min-width: 0; }
.story .wk-tile > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
.story .wk-tile.on { background: var(--w-bg-selected, color-mix(in srgb, var(--accent) 10%, transparent));
  box-shadow: inset 0 0 0 2px var(--w-accent, var(--accent)); }
/* a look's swatch: the flat average colour its set ships (never a photograph) */
.story .wk-sw { display: block; aspect-ratio: 1; border-radius: 6px; background: var(--wk-sw, var(--w-bg-subtle, var(--surface))); }
.story .wk-ed { padding: 10px 0 4px; border-top: 1px solid var(--w-separator, var(--line)); }
.story .wk-edname { font-size: var(--w-fs-headline, 13px); font-weight: var(--w-fw-semibold, 600); color: var(--w-text-primary, var(--ink)); }
.story .wk-prev { display: flex; align-items: flex-start; gap: 12px; margin: 10px 0 6px; }
.story .wk-prev .wk-ball { width: 72px; flex: none; }
.story .wk-prev-r { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.story .wk-prev-r .mk-combo { min-width: 120px; }

/* ── 8 · walk-sun and 9 · walk-render (panels lent to Properties) ────────────────────────────────────── */
.story .wk-fl { display: flex; align-items: center; gap: 8px; min-height: 24px; margin-top: 4px; }
.story .wk-fl .l { font-size: var(--w-fs-callout, 12px); font-weight: var(--w-fw-semibold, 600); color: var(--w-text-primary, var(--ink)); }
.story .wk-fl .n { color: var(--w-text-primary, var(--ink)); font-variant-numeric: tabular-nums; }
.story .wk-site { margin: 3px 0 2px; font-size: var(--w-fs-body, 13px); line-height: 1.4; color: var(--w-text-primary, var(--ink)); }
.story .wk-date { display: flex; margin: 3px 0 6px; }
.story .wk-date .mk-combo { flex: 1; }
.story .wk-sun .wk-brow { padding: 12px 0 2px; }
.story .wk-folder { padding: 8px 0 2px; font-size: var(--w-fs-callout, 12px); color: var(--w-text-primary, var(--ink));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── 10 · walk-mosaic (four windows over the view) ──────────────────────────────────────────────────── */
.story .wk-grid { position: relative; display: grid; gap: 2px; background: var(--w-separator, var(--line)); }
.story .wk-grid.l4 { grid-template-columns: 1fr 1fr; grid-template-rows: 150px 150px; }
.story .wk-grid.l2 { grid-template-columns: 1fr 1fr; grid-template-rows: 220px; }
.story .wk-pane { position: relative; min-width: 0; overflow: hidden; }
.story .wk-pane.edit { box-shadow: inset 0 0 0 2px var(--w-accent, var(--accent)); }
/* the pane's header: a picture badge (Pinup's SheetBadge: dark, translucent, white words) at its top left */
.story .wk-badge { position: absolute; left: 10px; top: 10px; max-width: calc(100% - 20px); padding: 2px 8px;
  border-radius: 6px; font-size: 10.5px; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--w-sheet-badge, color-mix(in srgb, var(--ink) 80%, transparent)); color: var(--accent-ink); }
/* Mosaic.HeaderYOf: the first window's header at the top of the view, the second's under the notices hanging at the top
   centre (here under the whole notice: a longer one covers it for its few seconds in Walk), the others at the top */
.story .wk-grid.l4 .wk-pane:nth-child(2) .wk-badge, .story .wk-grid.l2 .wk-pane:nth-child(2) .wk-badge { top: 78px; }
.story .wk-mos-note { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 2; width: max-content;
  max-width: calc(100% - 20px); }

/* ── 12 · walk-requirements (the site's own table: no window of the app, so the site's tokens and no title bar) ─ */
.story .stagecard.wk-req { width: 460px; max-width: 100%; padding: 6px 18px 14px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--card); box-shadow: var(--shadow); }
.story .wk-req-t { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.4; color: var(--ink); }
.story .wk-req-t thead th { padding: 10px 8px 8px; font-size: 12px; font-weight: 600; text-align: left; color: var(--ink-3);
  border-bottom: 1px solid var(--line); }
.story .wk-req-t tbody th, .story .wk-req-t td { padding: 11px 8px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line); }
.story .wk-req-t tbody tr:last-child th, .story .wk-req-t tbody tr:last-child td { border-bottom: 0; }
.story .wk-req-t tbody th { font-weight: 400; width: 38%; }
.story .wk-req-t tbody th b { display: block; font-weight: 600; }
.story .wk-req-t tbody th .d { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-3); }
.story .wk-req-t td.n { white-space: nowrap; font-variant-numeric: tabular-nums; }
.story .wk-req-t tr.on th b { color: var(--accent-text); }
.story .wk-req-t tr.on th, .story .wk-req-t tr.on td { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.story .wk-req-note { margin: 10px 8px 0; font-size: 12px; line-height: 1.5; color: var(--ink-3); }

/* ── a phone (the beats' column well under the window's width) ─────────────────────────────────────────── */
/* The status bar's right half keeps its pieces, as Walk's does: past the window's edge it is CUT, never laid over the
   page (clip on x only, so the lit item's hover still shows above the bar), with a fade where it is cut. */
.story .wk-sbar { position: relative; overflow-x: clip; }
@container wks (max-width: 560px) {
  .story .wk-sbar::after { content: ""; position: absolute; top: 1px; right: 0; bottom: 0; width: 28px; pointer-events: none;
    border-bottom-right-radius: inherit; background: linear-gradient(to right, transparent, var(--w-bg-window, var(--bg))); }
  .story .wk-sbtip { right: auto; left: 0; width: min(250px, calc(100cqw - 36px)); } }
/* A segmented track's words that do not fit end in «…» (a flex item cannot: the segment becomes a block). */
.story .wk-scope .mk-seg > .s, .story .wk-where .mk-seg > .s { display: block; text-align: center;
  line-height: var(--w-size-control-inner-compact, 20px); white-space: nowrap; }
/* The two docks need ~640 px side by side; under that they stack, the Project Browser over Properties, each the full
   width (the empty view between them goes). */
/* Render › Output's group bar (Choose folder… · Reveal) is wider than a phone's panel: its two actions go one under the
   other inside the same bar rather than past the window's edge. The requirements table loosens its cells. */
@media (max-width: 460px) {
  .story .wk-render .wk-brow .mk-bar { flex-wrap: wrap; height: auto; max-width: 100%; row-gap: 2px; }
  .story .stagecard.wk-req { padding: 4px 10px 12px; }
  .story .wk-req-t { font-size: 13px; }
  .story .wk-req-t thead th, .story .wk-req-t tbody th, .story .wk-req-t td { padding-left: 5px; padding-right: 5px; } }
@media (max-width: 760px) {
  .story .capwin.wk-docks { grid-template-columns: minmax(0, 1fr); }
  .story .wk-docks .wk-g-mid { display: none; }
  .story .wk-docks .wk-dock-l { border-right: 0; border-bottom: 1px solid var(--w-separator, var(--line)); }
  .story .wk-docks .wk-dock-r { border-left: 0; } }

/* ── tools/web_mockups/walk_look.css ── */
/* walk_look.py's kinds: five more of Walk's panels (16-nov-2026). Every rule sits under .story and the wkl- prefix; the
   dock, group headers, cards, setting rows, sliders and tiles are walk.css's (wk-), the controls the site's kit (mk-).
   Colours and sizes from the tokens (--w-*, the site's nearest as the fallback). No raw hex: a tile's colour, when its
   data has one, comes through walk.css's --wk-sw. */

/* ── shared ─────────────────────────────────────────────────────────────────────────────────────────── */
.story .wkl-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.story .wkl-col > .mk-search { width: 100%; }
.story .wkl-fl { font-size: var(--w-fs-callout, 12px); font-weight: var(--w-fw-semibold, 600); color: var(--w-text-primary, var(--ink)); }
.story .wkl-wide { display: flex; min-width: 0; }
.story .wkl-wide > .mk-combo, .story .wkl-wide > .mk-seg { flex: 1; min-width: 0; }
.story .wkl-wide > .mk-seg > .s { flex: 1 1 auto; min-width: 0; text-align: center; overflow: hidden; text-overflow: ellipsis; }
.story .wkl-hrow { display: flex; align-items: center; gap: 8px; min-width: 0; }
.story .wkl-hrow.wkl-fit { flex-wrap: wrap; }
.story .wkl-grow { flex: 1; min-width: 0; }
.story .wkl-grow > .mk-combo, .story .wkl-grow > .mk-search { width: 100%; }
.story .wkl-clip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--w-text-primary, var(--ink)); }
.story .wkl-swl { display: inline-flex; align-items: center; gap: 10px; color: var(--w-text-primary, var(--ink)); }
.story .wkl-w84 { flex: none; width: 84px; }
.story .wkl-x { color: var(--w-text-secondary, var(--ink-2)); }
.story .wkl-ck .mk-check { color: var(--w-text-primary, var(--ink)); }
/* Kit.AppleStepper: the value in a field, the two small arrows at its right */
.story .wkl-step { display: inline-flex; align-items: center; gap: 6px; height: var(--w-size-control-compact, 24px); min-width: 92px;
  padding: 0 6px 0 8px; border: 1px solid var(--w-stroke-default, var(--line)); border-radius: var(--w-radius-medium, 8px);
  background: var(--w-bg-elevated, var(--card)); color: var(--w-text-primary, var(--ink)); font-variant-numeric: tabular-nums; }
.story .wkl-step > span { flex: 1; }
.story .wkl-step i { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; }
.story .wkl-step i.u { border-bottom: 4px solid var(--w-text-secondary, var(--ink-2)); margin-right: -2px; }
.story .wkl-step i.d { border-top: 4px solid var(--w-text-secondary, var(--ink-2)); }
/* a slider row: label · track · readout; a slider as a setting row's control */
.story .wkl-srow { display: flex; align-items: center; gap: 8px; min-height: 24px; }
.story .wkl-srow .l { flex: none; width: 96px; color: var(--w-text-primary, var(--ink)); }
.story .wkl-srow .n, .story .wkl-sctl .n { flex: none; min-width: 38px; text-align: right; color: var(--w-text-primary, var(--ink));
  font-variant-numeric: tabular-nums; }
.story .wkl-srow .wk-slider, .story .wkl-sctl .wk-slider { margin: 0; }
.story .wkl-srow.dim, .story .wkl-sctl.dim, .story .wkl-air.dim { opacity: .45; }
.story .wkl-sctl { display: inline-flex; align-items: center; gap: 8px; width: 150px; }
/* an editor row: the label column, then the control */
.story .wkl-er { display: flex; align-items: center; gap: 8px; min-height: 26px; }
.story .wkl-er .l { flex: none; width: 96px; color: var(--w-text-primary, var(--ink)); }
.story .wkl-er .r { flex: 1; min-width: 0; display: flex; align-items: center; }
.story .wkl-er .r > .mk-combo { flex: 1; min-width: 0; }
/* a list box: framed rows, the selected one in the accent's tint */
.story .wkl-list { border: 1px solid var(--w-stroke-subtle, var(--line)); border-radius: var(--w-radius-medium, 8px);
  background: var(--w-bg-elevated, var(--card)); padding: 3px; overflow: hidden; }
.story .wkl-li { display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 6px; border-radius: 6px; white-space: nowrap;
  font-size: var(--w-fs-subhead, 11px); color: var(--w-text-primary, var(--ink)); }
.story .wkl-li > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.story .wkl-li.wkl-sub { padding-left: 22px; color: var(--w-text-secondary, var(--ink-2)); }
.story .wkl-li.on { background: var(--w-bg-selected, color-mix(in srgb, var(--accent) 12%, transparent)); }
.story .wkl-tick { flex: none; width: 10px; height: 10px; }
.story .wkl-tick.on { width: 9px; height: 5px; margin: 0 1px 3px 0; border-left: 1.6px solid var(--w-accent, var(--accent));
  border-bottom: 1.6px solid var(--w-accent, var(--accent)); transform: rotate(-45deg); }
.story .wkl-cut.wk-cut { max-height: 1500px; }

/* ── walk-styles ─────────────────────────────────────────────────────────────────────────────────────── */
.story .wkl-cats { display: flex; flex-direction: column; gap: 6px; }
.story .wkl-cats .mk-search { width: 100%; }
.story .wkl-catlist { display: flex; flex-direction: column; gap: 6px; padding: 6px 2px 2px; }
.story .wkl-rule { min-height: 26px; }

/* ── walk-material-editor ─────────────────────────────────────────────────────────────────────────────── */
.story .wkl-mated .wk-dbody { display: flex; flex-direction: column; gap: 8px; }
.story .wkl-mated .wkl-wide > .mk-seg { flex: 1; }
.story .wkl-ed { display: flex; flex-direction: column; gap: 8px; padding-top: 2px; }
.story .wkl-prev { display: flex; align-items: flex-start; gap: 12px; }
.story .wkl-prev .r { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
/* the preview's sphere: a neutral ball (the drawing of the material is never shown) */
.story .wkl-ball { position: relative; display: block; flex: none; width: 128px; height: 128px; border-radius: var(--w-radius-medium, 8px);
  background: var(--w-bg-subtle, var(--surface)); }
.story .wkl-ball::after { content: ""; position: absolute; inset: 16px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, var(--w-bg-elevated, var(--card)) 0%, color-mix(in srgb, var(--ink) 24%, var(--surface)) 100%); }
.story .wkl-thumb { display: block; flex: none; width: 32px; height: 32px; border-radius: 6px;
  background: color-mix(in srgb, var(--ink) 10%, var(--surface)); border: 1px solid var(--w-stroke-subtle, var(--line)); }
.story .wkl-thumb.s { width: 24px; height: 24px; }
.story .wkl-tw { display: flex; flex-direction: column; }
.story .wkl-tw .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--w-text-primary, var(--ink)); }
.story .wkl-tw .wk-sub { padding: 0; }
.story .wkl-swatch { display: block; width: 72px; height: 24px; margin-left: auto; border-radius: 6px; border: 1px solid var(--w-stroke-default, var(--line)); }
.story .wkl-swatch { background: var(--wk-sw, var(--w-bg-subtle, var(--surface))); }
.story .wkl-img { display: flex; align-items: center; gap: 8px; min-height: 30px; }
.story .wkl-img .w { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.story .wkl-img .k { font-size: var(--w-fs-subhead, 11px); color: var(--w-text-primary, var(--ink)); }
.story .wkl-img .d { font-size: var(--w-fs-footnote, 10px); color: var(--w-text-secondary, var(--ink-2)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .wkl-img .b { flex: none; display: flex; gap: 4px; }
.story .wkl-ed .wk-gh { margin: 6px 0 0; }

/* ── walk-library ────────────────────────────────────────────────────────────────────────────────────── */
.story .wkl-lib { border-top: 0; padding-top: 0; }
.story .wkl-lib > .wk-sub { padding: 0; }
.story .wkl-res .mk-combo { min-width: 72px; }
.story .wkl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.story .wkl-sec { font-size: var(--w-fs-footnote, 10px); font-weight: var(--w-fw-semibold, 600); letter-spacing: .04em; text-transform: uppercase;
  color: var(--w-text-secondary, var(--ink-2)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── walk-visual ─────────────────────────────────────────────────────────────────────────────────────── */
.story .capwin.wk-panel.wkl-visual { width: 440px; }
.story .wkl-visual .wkl-wide > .mk-seg { flex: 1; }
.story .wkl-page .wk-gh { margin-top: 12px; }
.story .wkl-gcard { display: flex; flex-direction: column; gap: 8px; }
.story .wkl-gcard > .wk-sub { padding: 0; }
.story .wkl-air .l { width: 120px; }
.story .wkl-why { font-size: var(--w-fs-callout, 12px); line-height: 1.45; color: var(--w-text-secondary, var(--ink-2)); }

/* ── walk-lighting ───────────────────────────────────────────────────────────────────────────────────── */
.story .wkl-gbody { display: flex; flex-direction: column; gap: 8px; }
.story .wkl-col > .wk-gh { margin: 10px 0 0; }
.story .wkl-lcard.wk-card { padding: 0 12px; }
.story .wkl-lcard .wk-set { padding: 8px 0; }
.story .wkl-lcard .wk-set .r > .mk-combo { max-width: 60%; min-width: 150px; }
.story .wkl-lamps, .story .wkl-types { max-height: 222px; }
.story .wkl-tname { font-size: var(--w-fs-headline, 13px); font-weight: var(--w-fw-semibold, 600); color: var(--w-text-primary, var(--ink)); }
.story .wkl-gbody > .wk-sub { padding: 0; }
.story .wkl-num { display: inline-flex; align-items: center; justify-content: flex-end; min-width: 76px; height: var(--w-size-control-compact, 24px);
  padding: 0 8px; border: 1px solid var(--w-stroke-default, var(--line)); border-radius: var(--w-radius-medium, 8px);
  background: var(--w-bg-elevated, var(--card)); color: var(--w-text-primary, var(--ink)); font-variant-numeric: tabular-nums; }

/* ── tools/web_mockups/walk_more.css ── */
/* walk_more.py's kinds: more of Walk's windows (the dense guide, 16-nov-2026). Every rule sits under .story and the wkm-
   prefix; the panes, group headers, setting rows and the ground are walk.css's (wk-), and the controls the site's kit.
   Colours and sizes come from the site's tokens: inside a .capwin the suite's own (--w-*), the site's nearest as the
   fallback. No raw hex. */

/* ── shared ─────────────────────────────────────────────────────────────────────────────────────────── */
.story .wkm-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.story .wkm-sec { margin: 16px 0 0; font-size: var(--w-fs-subhead, 11px); font-weight: var(--w-fw-semibold, 600);
  color: var(--w-text-secondary, var(--ink-2)); }
.story .wkm-sec:first-child { margin-top: 2px; }
.story .wkm-callout { margin: 8px 0 0; font-size: var(--w-fs-callout, 12px); line-height: 1.45; color: var(--w-text-primary, var(--ink)); }
.story .wkm-flabel { margin: 12px 0 6px; font-size: var(--w-fs-body, 13px); font-weight: var(--w-fw-semibold, 600);
  color: var(--w-text-primary, var(--ink)); }
.story .wkm-line { display: flex; align-items: center; gap: 8px; min-height: 24px; margin: 6px 0 0; }
.story .wkm-line .l { flex: none; width: 112px; font-size: var(--w-fs-callout, 12px); color: var(--w-text-primary, var(--ink)); }
.story .wkm-line .r { flex: 1; min-width: 0; display: flex; justify-content: flex-end; }
.story .wkm-line.fill .r { justify-content: stretch; }
.story .wkm-line.fill .r > * { flex: 1; min-width: 0; }
.story .wkm-swrow { display: flex; align-items: center; gap: 8px; min-height: 26px; margin: 6px 0 0;
  font-size: var(--w-fs-callout, 12px); color: var(--w-text-primary, var(--ink)); }
.story .wkm-swrow .l { flex: 1; min-width: 0; }
.story .wkm-swrow .mk-switch { flex: none; }
.story .wkm-ck { margin: 8px 0 0; font-size: var(--w-fs-callout, 12px); }
.story .wkm-step { display: inline-flex; align-items: center; gap: 4px; }
.story .wkm-step .hbtn { min-width: var(--w-size-control-compact, 24px); padding: 0; justify-content: center; }
.story .wkm-field { display: inline-flex; align-items: center; justify-content: center; min-width: 76px;
  height: var(--w-size-control-compact, 24px); padding: 0 8px; box-sizing: border-box; border-radius: var(--w-radius-small, 6px);
  border: 1px solid var(--w-stroke-subtle, var(--line)); background: var(--w-bg-window, var(--card));
  font-size: var(--w-fs-callout, 12px); color: var(--w-text-primary, var(--ink)); font-variant-numeric: tabular-nums; }
.story .wkm-field.wide { justify-content: flex-start; height: var(--w-size-control, 32px); }
.story .wkm-end { justify-content: flex-end; }
/* the next section of Properties, below the cut */
.story .wk-cut.wkm-cut { max-height: 980px; }
.story .wkm-set .wk-cut.wkm-cut { max-height: 1480px; }

/* ── 1 · walk-clash ─────────────────────────────────────────────────────────────────────────────────── */
.story .wkm-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--w-warning, var(--warn)); }
.story .wkm-dot.crit { background: var(--w-danger, var(--bad)); }
.story .wkm-dot.min { background: var(--w-severity-minor, var(--info)); }
.story .wkm-dot.clr { background: var(--w-success, var(--ok)); }
.story .wkm-dot.rev { background: var(--w-accent, var(--accent)); }
.story .wkm-dot.off { background: var(--w-text-tertiary, var(--ink-3)); }
.story .wkm-dot.side-a { width: 10px; height: 10px; margin-top: 3px; background: var(--w-pair-side-a, var(--accent)); }
.story .wkm-dot.side-b { width: 10px; height: 10px; margin-top: 3px; background: var(--w-pair-side-b, var(--warn)); }
.story .wkm-q { margin: 8px 0 0; display: flex; }
.story .wkm-gap { margin-top: 8px; }
.story .wkm-list { margin: 8px 0 0; padding: 4px; border: 1px solid var(--w-stroke-subtle, var(--line));
  border-radius: var(--w-radius-small, 6px); background: var(--w-bg-window, var(--card)); }
.story .wkm-li { display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 8px; border-radius: 5px;
  font-size: var(--w-fs-callout, 12px); color: var(--w-text-primary, var(--ink)); white-space: nowrap; overflow: hidden; }
.story .wkm-li span { overflow: hidden; text-overflow: ellipsis; }
.story .wkm-li.sel { background: var(--w-bg-selected, color-mix(in srgb, var(--accent) 12%, transparent)); }
.story .wkm-hair { height: 1px; margin: 10px 0; background: var(--w-separator, var(--line)); }
.story .wkm-hl { font-size: var(--w-fs-headline, 13px); font-weight: var(--w-fw-semibold, 600); color: var(--w-text-primary, var(--ink)); }
.story .wkm-ccard > .wkm-row:first-child { margin-top: 0; flex-wrap: nowrap; }
.story .wkm-ccard > .wk-sub { margin-top: 4px; }
.story .wkm-facts { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 10px; margin: 10px 0 2px;
  font-size: var(--w-fs-callout, 12px); }
.story .wkm-facts .l { font-size: var(--w-fs-subhead, 11px); color: var(--w-text-secondary, var(--ink-2)); padding-top: 1px; }
.story .wkm-facts .v { min-width: 0; color: var(--w-text-primary, var(--ink)); line-height: 1.4; }
.story .wkm-side { display: flex; align-items: flex-start; gap: 10px; }
.story .wkm-side .n { display: block; }
.story .wkm-side .f { display: block; font-size: var(--w-fs-footnote, 10px); color: var(--w-text-secondary, var(--ink-2)); }
.story .wkm-dec { margin-top: 10px; }

/* ── 2 · walk-object ─────────────────────────────────────────────────────────────────────────────────── */
.story .wkm-place { padding: 0 0 10px; }
.story .wkm-obj .wkm-line .l { width: 120px; }

/* ── 3 · walk-video: the ground with the timeline bar at its foot, Properties as «Video path» ───────────── */
.story .capwin.wkm-vid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); align-items: stretch; }
.story .wkm-vid .wk-dock-r { border-left: 1px solid var(--w-separator, var(--line)); }
.story .wkm-vground { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 12px;
  min-width: 0; border-radius: inherit; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.story .wkm-tl { padding: 10px 12px 8px; border: 1px solid var(--w-stroke-subtle, var(--line)); border-radius: var(--w-radius-card, 10px);
  background: var(--w-bg-window, var(--card)); box-shadow: var(--w-shadow-card, none); }
.story .wkm-tbar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.story .wkm-time { margin: 0 4px; font-size: var(--w-fs-body, 13px); color: var(--w-text-primary, var(--ink)); white-space: pre;
  font-variant-numeric: tabular-nums; }
.story .wkm-track { margin-top: 8px; font-size: var(--w-fs-callout, 12px); }
.story .wkm-track > div { display: flex; align-items: center; }
.story .wkm-track .ln { flex: none; width: 104px; padding-right: 10px; box-sizing: border-box; text-align: right;
  color: var(--w-text-primary, var(--ink)); }
.story .wkm-track .lt { position: relative; flex: 1; min-width: 0; height: 100%; margin: 0 14px 0 10px; }
.story .wkm-track .ruler { height: 22px; border-bottom: 1px solid var(--w-separator, var(--line)); }
.story .wkm-track .tk { position: absolute; bottom: 0; height: 6px; border-left: 1px solid var(--w-text-primary, var(--ink)); }
.story .wkm-track .tk b { position: absolute; bottom: 7px; left: 2px; font-size: var(--w-fs-subhead, 11px); font-weight: var(--w-fw-regular, 400);
  color: var(--w-text-primary, var(--ink)); white-space: nowrap; }
.story .wkm-track .lane { height: 26px; }
.story .wkm-track .band { position: absolute; left: 0; top: 1px; bottom: 1px; background: var(--w-accent-subtle, color-mix(in srgb, var(--accent) 12%, transparent)); }
.story .wkm-track .dia { position: absolute; top: 50%; width: 9px; height: 9px; margin: -5px 0 0 -5px; transform: rotate(45deg);
  background: var(--w-text-primary, var(--ink)); }
.story .wkm-track .lane.hour .dia { background: var(--w-warning, var(--warn)); }
.story .wkm-track .lane.fov .dia { background: var(--w-info, var(--info)); }
.story .wkm-track .lane .dia.on { background: var(--w-accent, var(--accent)); box-shadow: 0 0 0 2px var(--w-bg-window, var(--card)); }
.story .wkm-track .ph { height: 0; }
.story .wkm-track .ph .lt { height: 0; }
.story .wkm-track .ph i { position: absolute; bottom: 0; height: 100px; width: 2px; margin-left: -1px;
  background: var(--w-accent, var(--accent)); pointer-events: none; }
.story .wkm-vid .wk-dbody { padding: 10px 12px 14px; }
.story .wkm-sl { display: flex; align-items: center; gap: 10px; margin: 4px 0 0; }
.story .wkm-sl .n { flex: none; min-width: 40px; text-align: right; font-variant-numeric: tabular-nums;
  color: var(--w-text-primary, var(--ink)); }
@media (max-width: 760px) {
  .story .capwin.wkm-vid { grid-template-columns: minmax(0, 1fr); }
  .story .wkm-vid .wk-dock-r { border-left: 0; border-top: 1px solid var(--w-separator, var(--line)); }
  .story .wkm-vground { min-height: 220px; border-radius: 0; } }

/* ── 4 · walk-dialog: AppleErrorDialog (460 wide; its content 28 · 12 · 28 · 20) ────────────────────────── */
.story .capwin.wkm-dlg { max-width: 100%; }
.story .wkm-dbody { padding: 12px 28px 20px; }
.story .wkm-dhead { display: flex; align-items: flex-start; margin-top: 8px; }
.story .wkm-dhead .disc { flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin: 2px 16px 0 0;
  border-radius: 50%; background: var(--w-accent, var(--accent)); color: var(--w-text-on-accent, var(--card));
  font-size: 22px; font-weight: var(--w-fw-bold, 700); line-height: 1; }
.story .wkm-dhead .h { flex: 1; min-width: 0; padding-top: 10px; font-size: var(--w-fs-title3, 15px); font-weight: var(--w-fw-semibold, 600);
  line-height: 1.3; color: var(--w-text-primary, var(--ink)); }
.story .wkm-dtext { margin: 6px 0 16px 56px; font-size: var(--w-fs-body, 13px); line-height: 1.33; white-space: pre-line;
  color: var(--w-text-secondary, var(--ink-2)); }
.story .wkm-dfoot { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; row-gap: 6px; margin-top: 4px; }
.story .wkm-dfoot .gap24 { width: 24px; }
.story .wkm-dfoot .gap10 { width: 10px; }

/* ── 5 · walk-settings: Settings lent to Properties, scrolled to «Quality and speed» ──────────────────── */
.story .capwin.wkm-set { max-width: 100%; }
.story .wkm-fit { flex-wrap: nowrap; }
.story .wkm-fit .mk-combo { flex: 1; min-width: 120px; }
.story .wkm-state { flex-wrap: nowrap; align-items: flex-start; }
.story .wkm-state .f { flex: 1; min-width: 0; font-size: var(--w-fs-footnote, 10px); line-height: 1.45; color: var(--w-text-secondary, var(--ink-2)); }
.story .wk-card.wkm-scard { margin-top: 10px; padding: 0 12px; }
.story .wkm-srow { padding: 10px 0; border-top: 1px solid var(--w-separator, var(--line)); }
.story .wkm-srow.first { border-top: 0; }
.story .wkm-srow .top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; }
.story .wkm-srow .t { flex: 1 1 auto; min-width: 90px; font-size: var(--w-fs-body, 13px); color: var(--w-text-primary, var(--ink)); }
.story .wkm-srow .c { flex: none; max-width: 100%; }
.story .wkm-srow .c .mk-combo { min-width: 160px; }
.story .wkm-srow .d { margin-top: 4px; font-size: var(--w-fs-subhead, 11px); line-height: 1.45; white-space: pre-line;
  color: var(--w-text-secondary, var(--ink-2)); }
.story .wkm-large { margin-top: 16px; }

/* ── tools/web_mockups/warren.css ── */
/* warren.py's kinds (prefix wrn-). Every rule sits under .story; colours and sizes are the window's tokens (the
   WEB-THEME block of site.css, --w-*): never a raw hex. The shared pieces — the title bar, the app header, the kit
   (.hbtn, .mk-bar, .mk-combo, .mk-field, .mk-check, .ck, .dg, .tablewrap) — are site.css's, used as they are; this
   file only places them where the XAML puts them, and draws what only Warren has: the diagram and its rail. The two
   colours that are DATA, not theme — a route's and a value's — come inline from warren.py, computed with the app's
   own formulas. */

/* ── the stage: a window at its XAML width (--wrn-width), the wide ones filling a wide beat ── */
.story .wrn-stage { width: 100%; display: flex; justify-content: center; min-width: 0; }
.story .wrn-stage > .capwin, .story .wrn-stack { width: 100%; max-width: var(--wrn-width); min-width: 0; }
.story .wrn-stack { display: flex; flex-direction: column; align-items: stretch; }
/* site.css gives every .capwin 420 px and stretches only a stage's direct child: the stacked ones fill the stack */
.story .wrn-stack > .capwin, .story .wrn-crop > .capwin { width: 100%; max-width: none; }
.story .wrn-win { color: var(--w-text-primary); font-size: var(--w-fs-body); text-align: left; }
.story .wrn-body { min-width: 0; padding: 16px; }
.story .wrn-dlg > .wrn-body { padding: 18px; }
.story .wrn-picker > .wrn-body { padding: 24px; }
/* site.css gives every .dg a 900-px floor (the wide report tables); a window here sizes its own */
.story .wrn-win table.dg { min-width: 0; }

/* ── words ── */
.story .wrn-fl { font-size: var(--w-fs-body); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); white-space: nowrap; }
.story .wrn-fl.r8 { margin-right: 8px; }
.story .wrn-fl.r6 { margin-right: 6px; }
.story .wrn-h { font-size: var(--w-fs-headline); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); line-height: 1.3; }
.story .wrn-lead { margin-top: 4px; font-size: var(--w-fs-footnote); color: var(--w-text-secondary); line-height: 1.45; }
.story .wrn-sect { font-size: var(--w-fs-subhead); font-weight: var(--w-fw-semibold); color: var(--w-text-secondary); margin: 0 0 8px; }
.story .wrn-sp { flex: 1 1 auto; }

/* ── the main window (WarrenWindow.xaml): header · toolbar · diagram (+ rail) · banner · footer ── */
.story .wrn-main .apphdr { margin-bottom: 10px; }
/* the toolbar: a WrapPanel (ItemHeight 40) — the same controls in the same order, wrapping on a narrow stage */
.story .wrn-tools { display: flex; flex-wrap: wrap; align-items: center; row-gap: 8px; margin: 0 0 12px; }
.story .wrn-ti { flex: none; display: inline-flex; align-items: center; min-width: 0; max-width: 100%; }
.story .wrn-ti.g8 { margin-left: 8px; }
.story .wrn-ti.g20 { margin-left: 20px; }
.story .wrn-ti > .mk-combo { max-width: 100%; }
/* an AppleComboBox with its list open: the popup 4 below, BgElevated, the medium corner, the popover's shadow */
.story .wrn-cbx { position: relative; display: inline-flex; max-width: 100%; }
.story .wrn-cbx > .mk-combo { border-color: var(--w-accent); }
.story .wrn-pop { position: absolute; z-index: 5; left: 0; top: calc(100% + 4px); min-width: 100%; box-sizing: border-box;
  padding: 4px 0; border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-medium);
  background: var(--w-bg-elevated); box-shadow: var(--w-shadow-popover); }
.story .wrn-opt { display: flex; align-items: center; gap: 8px; margin: 1px 4px; padding: 6px 10px; border-radius: var(--w-radius-small);
  font-size: var(--w-fs-body); color: var(--w-text-primary); white-space: nowrap; }
.story .wrn-opt > span { flex: 1 1 auto; }
.story .wrn-opt.on { background: var(--w-bg-selected); color: var(--w-accent-ink); font-weight: var(--w-fw-semibold); }
.story .wrn-opt > svg { flex: none; width: var(--w-size-icon-small); height: var(--w-size-icon-small); color: var(--w-accent-ink); }

/* the diagram (CanvasHost: BgSurface, StrokeSubtle, the card's corner) and the rail beside it (FindingsColumn, 320) */
.story .wrn-area { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: stretch; }
/* the rail is 320 of the window's 1288 inside: a quarter, so the diagram keeps the share of the width it has in the app */
.story .wrn-area.has-rail { grid-template-columns: minmax(0, 1fr) minmax(250px, 25%); }
@media (max-width: 760px) { .story .wrn-area.has-rail { grid-template-columns: minmax(0, 1fr); } }
.story .wrn-canvas { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 260px; overflow: hidden;
  border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-card); background: var(--w-bg-surface); }
.story .wrn-svg { display: block; width: 100%; height: auto; }
.story .wrn-svg .bd { fill: var(--w-bg-subtle); }
.story .wrn-svg .bdl { fill: var(--w-text-tertiary); font-family: var(--w-font-sans), var(--font); font-size: 11px;
  font-weight: var(--w-fw-semibold); }
.story .wrn-svg .rg { fill: none; stroke: var(--w-separator); stroke-width: 1; stroke-dasharray: 4 4; }
.story .wrn-svg .rgbg { fill: var(--w-bg-window); }
.story .wrn-svg .e { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.story .wrn-svg .e.nr { stroke: var(--w-stroke-default); }
.story .wrn-svg .e.v { stroke: var(--w-accent); }
.story .wrn-svg .n { fill: var(--w-bg-elevated); stroke: var(--w-stroke-strong); stroke-width: 2.2; }
.story .wrn-svg .tk { fill: var(--w-bg-elevated); stroke: var(--w-stroke-strong); stroke-width: 1.6; }
.story .wrn-svg .chg { fill: var(--w-bg-surface); stroke: var(--w-accent); stroke-width: 3.2; }
.story .wrn-svg .fl { fill: none; stroke-width: 3; }
.story .wrn-svg .fl.bad { stroke: var(--w-danger); }
.story .wrn-svg .fl.warn { stroke: var(--w-warning); }
.story .wrn-svg .cap { fill: var(--w-text-primary); font-family: var(--w-font-sans), var(--font); font-size: 12px;
  font-weight: var(--w-fw-semibold); paint-order: stroke; stroke: var(--w-bg-surface); stroke-width: 3.5px; stroke-linejoin: round; }

/* the rail: BgSubtle, StrokeSubtle, 12 inside — the edit card, FINDINGS, the summary, the list, the queue at its foot */
.story .wrn-rail { display: flex; flex-direction: column; min-width: 0; box-sizing: border-box; padding: 12px;
  border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-card); background: var(--w-bg-subtle); }
.story .wrn-sum { margin: 4px 0 10px; font-size: var(--w-fs-footnote); color: var(--w-text-secondary); line-height: 1.45; }
.story .wrn-sum:empty { margin: 0; }
.story .wrn-list { flex: 1 1 auto; min-height: 0; }
.story .wrn-find { display: flex; flex-direction: column; gap: 1px; margin: 0 -4px; padding: 3px 4px; border-radius: var(--w-radius-small); }
.story .wrn-find + .wrn-find { margin-top: 3px; }
.story .wrn-find > b { font-size: var(--w-fs-body); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); line-height: 1.35; }
.story .wrn-find > span { font-size: var(--w-fs-footnote); color: var(--w-text-secondary); line-height: 1.4; white-space: pre-wrap; }
.story .wrn-find.on { background: var(--w-bg-selected); }
/* the edit card (BgSurface, the card's corner, 10 inside): the room, «<parameter> — now “…”», the list, the queue
   button, the circulation tick */
.story .wrn-card { margin: 0 0 12px; padding: 10px; border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-card);
  background: var(--w-bg-surface); }
.story .wrn-card-r { font-weight: var(--w-fw-semibold); color: var(--w-text-primary); }
.story .wrn-card-p { margin: 2px 0 6px; font-size: var(--w-fs-footnote); color: var(--w-text-secondary); }
.story .wrn-card > .mk-combo { display: flex; width: 100%; }
.story .wrn-card-q { margin-top: 8px; }
.story .wrn-card-c { margin-top: 10px; }
/* the queue: what is waiting, then Write to model and Discard, left-aligned */
.story .wrn-pend { margin-top: 12px; }
.story .wrn-pend-t { font-size: var(--w-fs-footnote); color: var(--w-text-secondary); line-height: 1.45; }
.story .wrn-pend-b { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* the banner (UndefinedBanner): WarningSubtle on a Warning hairline, 8 corner, the button at its end */
.story .wrn-band { display: flex; align-items: center; gap: 16px; margin: 12px 2px 0; padding: 10px 14px;
  border: 1px solid var(--w-warning); border-radius: 8px; background: var(--w-warning-subtle); }
.story .wrn-band-t { flex: 1 1 auto; min-width: 0; }
.story .wrn-band-h { font-size: var(--w-fs-body); color: var(--w-warning-ink); }
.story .wrn-band-d { margin-top: 2px; font-size: var(--w-fs-footnote); color: var(--w-warning-ink); line-height: 1.4; }
.story .wrn-band > .hbtn { flex: none; }

/* the footer: the status (secondary), the caveats and the last write (amber), the pan/zoom hint (tertiary) */
.story .wrn-foot { margin: 12px 2px 0; font-size: var(--w-fs-footnote); line-height: 1.45; }
.story .wrn-st { color: var(--w-text-secondary); }
.story .wrn-cav { margin-top: 4px; color: var(--w-warning); }
.story .wrn-help { margin-top: 6px; color: var(--w-text-tertiary); }

/* the same window after Write to model, cut to its foot: what the queue kept and the sentence in the footer */
.story .wrn-then { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 6px;
  font-size: var(--w-fs-footnote); color: var(--w-text-secondary); }
.story .wrn-then > span { font-size: 16px; line-height: 1; color: var(--w-text-tertiary); }
.story .wrn-crop { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 270px;
  overflow: hidden; padding-bottom: 14px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, var(--w-text-primary) 90px);
  mask-image: linear-gradient(to bottom, transparent, var(--w-text-primary) 90px); }
.story .wrn-crop > .capwin { flex: none; }
@media (max-width: 760px) { .story .wrn-crop { height: 330px; } }

/* ── a dialog's foot: (left) · · · Dismiss, Confirm ── */
.story .wrn-dfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.story .wrn-dfoot > .hbtn { min-width: var(--w-size-button-min-width); }
.story .wrn-dfoot > .hbtn.primary, .story .wrn-ibtn > .hbtn.primary { min-width: var(--w-size-button-min-width-wide); }

/* ── Lines… (WarrenLinesWindow.xaml): the legend table, the route cards ── */
.story .wrn-ltable { margin-top: 14px; }
.story .wrn-ltable td { vertical-align: middle; }
.story .wrn-smpc { padding-left: 8px !important; padding-right: 8px !important; }
.story .wrn-smp { display: block; overflow: visible; }
.story .wrn-smp path { fill: none; stroke: var(--w-text-primary); stroke-linecap: round; }
.story .wrn-smp.v path { stroke: var(--w-accent); }
.story .wrn-two { display: flex; flex-direction: column; min-width: 0; }
.story .wrn-two > b { font-weight: var(--w-fw-semibold); color: var(--w-text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .wrn-two > span { font-size: var(--w-fs-subhead); color: var(--w-text-tertiary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .wrn-cnt { font-size: var(--w-fs-callout); color: var(--w-text-tertiary); white-space: nowrap; }
.story .wrn-cnt.on { color: var(--w-text-secondary); }
.story .wrn-ltable .mk-combo { width: 100%; margin: 3px 0; }
.story .wrn-pat { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.story .wrn-pat > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .wrn-pat .wrn-smp { flex: none; }
.story .wrn-colour { margin: 14px 0 0; }
.story .wrn-cnote { margin: 2px 0 6px; }
.story .wrn-rts { display: flex; flex-wrap: wrap; }
.story .wrn-rt { display: flex; align-items: center; width: 192px; margin: 0 14px 8px 0; }
.story .wrn-sw { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 24px;
  margin-right: 8px; border-radius: var(--w-radius-button); }
.story .wrn-sw > svg { width: 34px; height: 14px; }
.story .wrn-sw path { fill: none; stroke-width: 4; stroke-linecap: round; }
.story .wrn-rt-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.story .wrn-rt-t > .mk-field { width: 100%; }
.story .wrn-rt-t > .wrn-cnt { margin: 2px 0 0 2px; font-size: var(--w-fs-footnote); }

/* ── Rooms… (WarrenRoomPicker.xaml) ── */
.story .wrn-ph { font-size: var(--w-fs-title2); font-weight: var(--w-fw-semibold); color: var(--w-text-primary); line-height: 1.25; }
.story .wrn-pexp { margin: 4px 0 14px; font-size: var(--w-fs-subhead); color: var(--w-text-secondary); line-height: 1.45; }
.story .wrn-ptools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.story .wrn-ptools > * { margin-bottom: 8px; }
.story .wrn-fl.find { margin-left: 8px; }
.story .wrn-pclip { min-width: 0; }
.story .wrn-ptable td.ctr { text-align: center; }
.story .wrn-rm { display: block; padding-left: 18px; color: var(--w-text-secondary); white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.story .wrn-rm.fl { padding-left: 0; color: var(--w-text-primary); font-weight: var(--w-fw-semibold); }
.story .wrn-val { color: var(--w-text-tertiary); white-space: nowrap; }
.story .wrn-val.fl { color: var(--w-text-secondary); font-weight: var(--w-fw-semibold); }
.story .wrn-pcount { font-size: var(--w-fs-footnote); color: var(--w-text-tertiary); }
.story .wrn-picker .wrn-dfoot { margin-top: 16px; gap: 10px; }
.story .wrn-picker .wrn-dfoot > .hbtn { min-width: var(--w-size-button-min-width-wide); }

/* ── Import changes… (ImportWindow.xaml) ── */
.story .wrn-ilist { margin-top: 12px; padding: 6px; border: 1px solid var(--w-stroke-subtle); border-radius: var(--w-radius-card);
  background: var(--w-bg-surface); }
.story .wrn-irow { display: flex; align-items: flex-start; gap: 10px; padding: 5px 4px; }
.story .wrn-irow > .ck { flex: none; margin-top: 2px; }
.story .wrn-it { display: flex; flex-direction: column; min-width: 0; }
.story .wrn-it > b { font-weight: var(--w-fw-semibold); color: var(--w-text-primary); line-height: 1.35; }
.story .wrn-it > span { font-size: var(--w-fs-footnote); color: var(--w-text-secondary); line-height: 1.4; }
.story .wrn-it > span.bad { color: var(--w-danger); }
.story .wrn-it > span.warn { color: var(--w-warning); }
.story .wrn-ifoot { flex-wrap: nowrap; align-items: center; }
.story .wrn-inote { flex: 1 1 auto; min-width: 0; margin-right: 16px; font-size: var(--w-fs-footnote); color: var(--w-text-secondary); line-height: 1.4; }
.story .wrn-ibtn { flex: none; display: flex; gap: 8px; }
.story .wrn-ibtn > .hbtn { min-width: var(--w-size-button-min-width); }
@media (max-width: 640px) { .story .wrn-ifoot { flex-wrap: wrap; } .story .wrn-ibtn { margin-left: auto; } }
