/* Secret SI's screens (SI-4.6): the holder's SI page (si.html) and the admin's SI panel (a page of the admin
   listener only). Loaded after site.css and portal.css, on those two pages only.
   Three parts, in order:
   1. The locked SI-2 design's own stylesheet (secret-zone-site/mockup/si-ace/ace.css): the run list, the run card, the
      ACE view, the plain run and the admin's panel, with its three palettes checked in both themes (--s1..--s6 per
      candidate, --up/--dn for a margin, --r0..--r3 for a rung) and --warn. The theme selectors follow portal.css: the
      light values apply on themed pages only.
   2. The prototype's shared parts that portal.css does not have yet (the buckets plan's section 10.1): the dialog and
      its side panel, loading placeholders, the middle-cut name, the copy icon, the folder path, the SI workfolder
      cards. Copied as the approved prototype has them.
   3. The screens the SI-2 prototype did not draw, in the same parts and tokens: the library, the compose editor, the
      run dialog and the tokens.
   No text under 15 px; focus is 2 px --gold-2 on every control; no inline styles (only --v on a bar). */

/* =================================== 1. the locked SI-2 design =================================== */
:root {
  --s1: #b88a2e; --s2: #5a86d6; --s3: #1f9e80; --s4: #d2683c; --s5: #9472e0; --s6: #cc4f84; --sx: #8a8477;
  --up: #5a8bd0; --dn: #d27a4a; --r0: #7a5a1c; --r1: #a17a2e; --r2: #c9a04a; --r3: #ead08e;
  --warn: #e0a849; --warn-tint: rgba(224, 168, 73, 0.12); --pass-tint: rgba(143, 214, 148, 0.10);
}
@media (prefers-color-scheme: light) {
  :root.themed:not([data-theme="dark"]) {
    --s1: #a87514; --s2: #3d6fc4; --s3: #0e8a6a; --s4: #c95a2f; --s5: #6f58c4; --s6: #b8437a; --sx: #8a8170;
    --up: #3a72b5; --dn: #bf6536; --r0: #c9a052; --r1: #a97b26; --r2: #82591a; --r3: #573a0c;
    --warn: #8a5a00; --warn-tint: rgba(168, 117, 20, 0.12); --pass-tint: rgba(37, 101, 48, 0.08);
  }
}
:root.themed[data-theme="light"] {
  --s1: #a87514; --s2: #3d6fc4; --s3: #0e8a6a; --s4: #c95a2f; --s5: #6f58c4; --s6: #b8437a; --sx: #8a8170;
  --up: #3a72b5; --dn: #bf6536; --r0: #c9a052; --r1: #a97b26; --r2: #82591a; --r3: #573a0c;
  --warn: #8a5a00; --warn-tint: rgba(168, 117, 20, 0.12); --pass-tint: rgba(37, 101, 48, 0.08);
}
.t-up { color: var(--live); }
.t-dn, .t-bad { color: var(--red-t); }
.t-warn, .warnt { color: var(--warn); }
b.t-bad { font-weight: 600; }

/* =================================== the page and the run list =================================== */
.si-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.si-page > *, .ace-detail { min-width: 0; }
.si-page > .hint, .run-card + .hint { margin-top: 12px; }
.runs { margin: 0 0 clamp(14px, 1.4vw, 22px); }
.runs ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.run-i { flex: 1 1 15em; min-width: 0; max-width: 24em; }
.run-i.more { flex: 0 1 11em; }
.portal .run-i a { display: grid; gap: 4px; height: 100%; padding: 12px 14px; border: 1px solid var(--hair); border-radius: 8px; background: var(--card-soft); color: var(--ink); text-decoration: none; }
.portal .run-i a:hover { border-color: var(--hair-2); background: var(--sheet); }
.portal .run-i.cur a { border-color: var(--gold-2); background: var(--sheet); box-shadow: inset 3px 0 0 var(--gold-2); }
.ri-t { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.ri-t .tag { padding-block: 0; }
.ri-s { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; color: var(--ink-2); }
.run-i .sub { margin: 0; }
.run-i.more a { align-content: center; color: var(--gold-t); }

/* =================================== the run card =================================== */
.run-card .card-top { align-items: center; }
.run-card .title-row { gap: 8px 16px; min-width: 0; }
.portal .run-card h2 { font-size: clamp(32px, 2.6vw, 46px); min-width: 0; }
.run-st { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.run-addr { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; color: var(--ink-2); }
.run-addr .addr-line { display: inline-flex; }
.run-facts { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12em), 1fr)); }
.run-meta { display: flex; flex-wrap: wrap; gap: 4px 26px; margin-top: 10px; color: var(--ink-2); }
.run-meta .lbl { margin-right: 6px; }
.run-card > .notice { margin-top: 16px; }
.run-card > .notice b { font-weight: 600; }
.run-card .hint.holder-only { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.run-card .hint.holder-only .ico { width: 17px; height: 17px; }
.run-act { margin-top: 18px; }
.run-act .grow { flex: 1 1 auto; }
.run-act .full { flex-basis: 100%; margin: 0; }
.card-act.run-act { padding-top: 16px; }
.resume-from { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; color: var(--ink-2); }
.ace-wait { display: grid; gap: 8px; margin-top: 18px; padding: 16px 18px; border: 1px dashed var(--hair-2); border-radius: 8px; color: var(--ink-2); }
.ace-sum-x { margin-top: 18px; }
.si-prog { display: grid; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hair); }
.si-prog .kicker { color: var(--gold-t); }
.pull { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pull li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px 16px; }
.pull li .bar { grid-column: 1 / -1; height: 6px; }
.pull li .bar.ok i { background: var(--live); }
.pull .amt { color: var(--ink-2); white-space: nowrap; }
.prod-row.push { align-items: flex-start; }
.prod-row.push > .ico { margin-top: 3px; color: var(--muted); }
.prod-row.push.bad > .ico { color: var(--red-t); }
.prod-row.push .sub { margin-top: 4px; }

/* =================================== the story: a sentence, four figures, the budgets, the loop =================================== */
.story { display: grid; gap: clamp(14px, 1.4vw, 22px); margin-top: 18px; padding-top: 20px; border-top: 1px solid var(--hair); }
.story-line { max-width: 64em; font: 400 clamp(23px, 1.65vw, 31px)/1.3 var(--serif); letter-spacing: -0.01em; color: var(--ink-2); text-wrap: pretty; }
.story-line b { font-weight: 400; color: var(--ink); }
.story-line .mono { font-size: 0.74em; color: var(--ink); overflow-wrap: anywhere; }
@media (min-width: 900px) { .story-line .mono { white-space: nowrap; } }
.story-line .t-up, .story-line .t-dn { font-family: var(--mono); font-size: 0.74em; }
.kpis { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 620px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1240px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } .kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kpi { display: grid; align-content: start; gap: 8px; min-width: 0; padding: clamp(14px, 1.2vw, 20px); border: 1px solid var(--hair); border-radius: 8px; background: var(--card-soft); }
.portal .kpi h3.kicker { font: 500 var(--lbl)/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-t); }
.kpi-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 14px; min-height: 52px; }
.kpi-num { font: 400 clamp(44px, 3.4vw, 64px)/0.9 var(--serif); letter-spacing: -0.03em; color: var(--ink); overflow-wrap: anywhere; }
.kpi-num small { margin-left: 2px; font: 500 15px/1 var(--mono); letter-spacing: 0.02em; color: var(--muted); }
.kpi-num.sm { font-size: clamp(30px, 2.2vw, 40px); line-height: 1; }
.kpi-num.sm.mono { font: 500 max(16px, 1em)/1.3 var(--mono); }
.kpi-num.none { color: var(--muted); }
.kpi-sub { display: grid; gap: 2px; color: var(--ink-2); }
.kpi-who { color: var(--muted); overflow-wrap: anywhere; }
.kpi-who .mono { color: var(--ink-2); }
.delta { font: 500 15px/1.4 var(--mono); }
.delta.up { color: var(--live); }
.delta.dn { color: var(--red-t); }
.kpi .bar { height: 5px; }
.spark { flex: none; display: block; overflow: visible; }
.spark .sp-l { fill: none; stroke: var(--gold-2); stroke-width: 2; stroke-linejoin: round; }
.spark .sp-d { fill: var(--gold-2); stroke: var(--sheet); stroke-width: 2; }
.minilad { flex: none; display: block; }
.minilad .lr { fill: var(--hair); }
.minilad .lr.done.r0 { fill: var(--r0); } .minilad .lr.done.r1 { fill: var(--r1); } .minilad .lr.done.r2 { fill: var(--r2); } .minilad .lr.done.r3 { fill: var(--r3); }
.minilad .lr.cur { stroke: var(--gold-2); stroke-width: 2; }
.minilad .lr.held { stroke: var(--red); stroke-width: 2; stroke-dasharray: 3 2; }
.ring-svg { flex: none; display: block; }
.ring-svg .rg-t { fill: none; stroke: var(--hair); stroke-width: 6; }
.ring-svg .rg-v { fill: none; stroke: var(--up); stroke-width: 6; stroke-linecap: round; }
.ring-svg.bad .rg-v { stroke: var(--dn); }
.ring-svg.time .rg-v { stroke: var(--gold-2); }
.budgets-wrap { display: grid; gap: 8px; }
.budgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13em), 1fr)); gap: 10px 26px; margin: 0; }
.budgets > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 10px; }
.budgets dt { font: 400 max(15px, 0.94em)/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.budgets dd { margin: 0; }
.budgets .bar { grid-column: 1 / -1; height: 5px; }
.budgets .near dt { color: var(--red-t); font-weight: 600; }

/* the loop: one node per stage on a line, the current one lit */
.loop { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--hair); border-radius: 8px; background: var(--well); }
.loop-steps { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 0; padding: 0; list-style: none; }
.ls { position: relative; display: flex; align-items: center; gap: 10px; flex: 1 1 9em; min-width: 0; padding-right: 14px; }
.ls::after { content: ""; flex: 1 1 auto; height: 2px; min-width: 14px; background: var(--hair-2); border-radius: 2px; }
.ls:last-child::after { display: none; }
.ls-n { flex: none; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--hair-2); }
.ls-l { font: 500 var(--lbl)/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.ls.done .ls-n { background: var(--ink-2); box-shadow: none; }
.ls.done .ls-l { color: var(--ink-2); }
.ls.done::after { background: var(--ink-2); }
.ls.now .ls-n { background: var(--gold-2); box-shadow: 0 0 0 4px var(--tint-2); animation: ls-pulse 1.6s ease-in-out infinite; }
.ls.now .ls-l { color: var(--gold-2); font-weight: 600; }
@keyframes ls-pulse { 50% { box-shadow: 0 0 0 9px transparent; } }
@media (prefers-reduced-motion: reduce) { .ls.now .ls-n { animation: none; } }
.loop-now { color: var(--ink-2); overflow-wrap: anywhere; }
.loop-now b { color: var(--ink); font-weight: 600; }
.loop-t { color: var(--ink); }
.loop-steps.stages .ls { flex-basis: 7em; }
@media (max-width: 700px) {
  .loop-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
  .ls::after { display: none; }
  .ls { padding-right: 0; }
}

/* =================================== the run detail =================================== */
.ace-detail { margin-top: clamp(28px, 2.8vw, 52px); padding-top: clamp(22px, 2.2vw, 40px); border-top: 1px solid var(--hair); }
.ace-title { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px 40px; align-items: end; }
@media (min-width: 1280px) { .ace-title { grid-template-columns: minmax(0, 1fr) auto; } }
.portal .ace-title h2 { margin-top: 6px; font-size: clamp(36px, 3vw, 56px); }
.ace-title .lede { margin-top: 10px; max-width: 92ch; color: var(--ink-2); }
.ace-src { color: var(--muted); overflow-wrap: anywhere; }
@media (min-width: 1280px) { .ace-src { text-align: right; max-width: 34em; } }
.ace-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 clamp(28px, 2.8vw, 56px); align-items: start; }
.ace-grid > * { min-width: 0; }
@media (min-width: 1400px) {
  .ace-grid.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ace-grid.ev2 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
}
.cand { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.cand .mono { color: var(--ink); font-weight: 600; white-space: nowrap; }
.sw { flex: none; display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--sx); box-shadow: 0 0 0 2px var(--sheet); }
.sw.s1 { background: var(--s1); } .sw.s2 { background: var(--s2); } .sw.s3 { background: var(--s3); } .sw.s4 { background: var(--s4); } .sw.s5 { background: var(--s5); } .sw.s6 { background: var(--s6); }
.sw.hollow { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 12px; padding: 0; list-style: none; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.legend li .mono { white-space: nowrap; }
@media (max-width: 600px) { .legend li .mono { white-space: normal; overflow-wrap: anywhere; } }
.chart-in { position: relative; display: block; border-radius: 6px; }
.chart-in svg { display: block; max-width: 100%; height: auto; overflow: visible; }
.chart-in svg .grid { stroke: var(--hair); stroke-width: 1; }
.chart-in svg .axis { stroke: var(--hair-2); stroke-width: 1; }
.chart-in svg .base { stroke: var(--muted); stroke-width: 1; opacity: 0.6; }
.chart-in svg .ax { fill: var(--muted); font: 500 15px var(--mono); }
.chart-in svg .ax.now { fill: var(--ink-2); }
.chart-in svg .lab { fill: var(--ink); font: 600 15px var(--mono); paint-order: stroke; stroke: var(--bg); stroke-width: 5px; stroke-linejoin: round; }
.chart-in svg .lab.lead { font-weight: 700; }
.chart-in svg .cross { stroke: var(--ink-2); stroke-width: 1; }
.chart-in svg .hit { fill: transparent; cursor: crosshair; }
.chart-in:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 4px; }
.ctip { position: absolute; z-index: 5; top: 8px; left: var(--tx, 0px); width: min(300px, 100%); display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--hair-2); border-radius: 8px; background: var(--sheet); box-shadow: var(--pop-shadow); pointer-events: none; }
.ctip.wide { width: min(380px, 100%); }
.tp-h { color: var(--ink); }
.tp-o { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 600; }
.tp-o.kept { color: var(--live); } .tp-o.thrown { color: var(--ink-2); } .tp-o.broke { color: var(--red-t); }
.tp-s { color: var(--ink); }
.tp-r { color: var(--muted); overflow-wrap: anywhere; }

/* the hero chart */
.hero .legend { margin-bottom: 8px; }
.k-line { display: inline-block; width: 26px; height: 3px; border-radius: 2px; background: var(--gold-2); }
.k-band { display: inline-block; width: 22px; height: 14px; border-radius: 3px; background: var(--tint-2); }
.lane-k { flex: none; display: block; }
.st-kept { fill: var(--ink-2); stroke: var(--sheet); stroke-width: 1.5; }
.chart-in .st-kept.s1 { fill: var(--s1); } .chart-in .st-kept.s2 { fill: var(--s2); } .chart-in .st-kept.s3 { fill: var(--s3); } .chart-in .st-kept.s4 { fill: var(--s4); } .chart-in .st-kept.s5 { fill: var(--s5); } .chart-in .st-kept.s6 { fill: var(--s6); }
.st-thrown { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.st-broke { fill: none; stroke: var(--dn); stroke-width: 1.8; stroke-linecap: round; }
.chart-in svg .band.b0 { fill: var(--tint-1); }
.chart-in svg .band.b1 { fill: var(--th-bg); }
.chart-in svg .band-l { fill: var(--gold-t); font: 500 15px var(--mono); letter-spacing: 0.04em; }
.chart-in svg .best-l { fill: none; stroke: var(--gold-2); stroke-width: 3.2; stroke-linejoin: round; stroke-linecap: round; }
.chart-in svg .kept-p { fill: var(--sx); stroke: var(--sheet); stroke-width: 2; }
.chart-in svg .kept-p.s1 { fill: var(--s1); } .chart-in svg .kept-p.s2 { fill: var(--s2); } .chart-in svg .kept-p.s3 { fill: var(--s3); } .chart-in svg .kept-p.s4 { fill: var(--s4); } .chart-in svg .kept-p.s5 { fill: var(--s5); } .chart-in svg .kept-p.s6 { fill: var(--s6); }
.chart-in svg .kept-p.prom { stroke: var(--ink); stroke-width: 2; }
.chart-in svg .lane-ring { fill: none; stroke: var(--ink-2); stroke-width: 1.5; }
.hero-spark svg { width: 100%; height: auto; }
.steplist { display: grid; margin: 12px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--hair); }
.steplist li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.steplist .lane-k { margin-top: 4px; }
.sl-x { min-width: 0; overflow-wrap: anywhere; }
.sl-x .mono { white-space: normal; overflow-wrap: anywhere; }
.hero-tbl { max-height: min(70vh, 40em); overflow: auto; }

/* =================================== candidates against requirements =================================== */
.rx-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 26px; margin-bottom: 12px; }
.goal-strip { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.goal-strip li { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px 3px 9px; border: 1px solid var(--hair-2); border-radius: 999px; font: 500 15px/1.4 var(--mono); color: var(--ink-2); }
.gs-d { width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--muted); }
.goal-strip li.met { color: var(--ink); }
.goal-strip li.met .gs-d { background: var(--live); box-shadow: none; }
.rx-key { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; color: var(--ink-2); }
.rx-key li { display: inline-flex; align-items: center; gap: 4px; }
.rx-hk { display: inline-grid; place-items: center; width: 30px; color: var(--red-t); }
.rx-tools { gap: 8px 20px; }
.rx-read { display: grid; gap: 2px; min-height: 4.4em; margin-bottom: 12px; padding: 10px 14px; border: 1px solid var(--hair); border-radius: 8px; background: var(--card-soft); }
.rx-r1, .rx-r2 { overflow-wrap: anywhere; }
.rx-r2 .mk { vertical-align: middle; }
.rx-desc { color: var(--ink-2); }
.wt { margin-left: 4px; font: 500 15px/1.4 var(--mono); color: var(--muted); }
.hard { display: inline-block; margin-left: 6px; font: 500 var(--lbl)/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--red-t); }

/* the marks: the threshold tick, a bar toward blue (beyond) or orange (short), the status by shape */
.mk { display: inline-block; width: 30px; height: 26px; flex: none; overflow: visible; vertical-align: middle; }
.mk .thr { stroke: var(--hair-2); stroke-width: 1.3; }
.mk .bar { opacity: 0.9; }
.mk .bar.up { fill: var(--up); } .mk .bar.dn { fill: var(--dn); }
.mk .tipm.up { fill: var(--up); } .mk .tipm.dn { fill: var(--dn); }
.mk .x { fill: none; stroke: var(--dn); stroke-width: 2.3; stroke-linecap: round; }
.mk .tri { fill: none; stroke: var(--warn); stroke-width: 1.7; stroke-linejoin: round; }
.mk .tri-i { fill: none; stroke: var(--warn); stroke-width: 1.8; stroke-linecap: round; }
.mk .dash { stroke: var(--muted); stroke-width: 2; stroke-dasharray: 2.5 2.5; stroke-linecap: round; }
.mk .ring { fill: none; stroke: var(--muted); stroke-width: 1.4; }
.mk.big { width: 52px; height: 44px; }

.rx-wrap { position: relative; max-height: min(82vh, 74em); overflow: auto; border: 1px solid var(--hair); border-radius: 8px; overscroll-behavior: contain; }
.rx { border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.portal .rx th { padding: 0; font: inherit; letter-spacing: 0; text-transform: none; color: var(--ink); white-space: normal; }
.rx thead th { position: sticky; top: 0; z-index: 3; background: var(--sheet); vertical-align: bottom; border-bottom: 1px solid var(--hair-2); }
.rx-corner { left: 0; z-index: 6 !important; width: 312px; min-width: 312px; padding: 12px 12px !important; text-align: left; }
.rx-corner .rx-ci { align-items: end; }
.rx-cn { grid-column: 1 / 3; }
.rx-csc { grid-column: 3; text-align: right; }
.rx-chd { grid-column: 4; text-align: right; }
.rx-g { width: 12px; min-width: 12px; border-left: 1px solid var(--hair-2); }
.rx-gl { display: inline-flex; align-items: center; gap: 8px; padding: 10px 0; writing-mode: vertical-rl; transform: rotate(180deg); font: 500 15px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-t); white-space: nowrap; }
.rx-gd { width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--muted); }
.rx-g.met .rx-gd { background: var(--live); box-shadow: none; }
.rx-c { width: var(--cw, 30px); min-width: var(--cw, 30px); max-width: var(--cw, 30px); padding: 10px 0 6px !important; text-align: center; }
.rx-cl { display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg); font: 500 15px/1 var(--mono); color: var(--ink-2); white-space: nowrap; }
.rx-c.is-hard .rx-cl { color: var(--ink); }
.rx-cm { display: block; margin-top: 8px; font: 500 15px/1.2 var(--mono); color: var(--muted); }
.rx-cm.hard { margin-left: 0; color: var(--red-t); letter-spacing: 0; }
.rx-cand { position: sticky; left: 0; z-index: 2; width: 312px; min-width: 312px; padding: 8px 12px !important; background: var(--sheet); border-top: 1px solid var(--hair); text-align: left; vertical-align: middle; }
.rx-ci { display: grid; grid-template-columns: 30px minmax(0, 1fr) 70px 58px; align-items: center; gap: 2px 10px; }
.rx-row .rx-rank { grid-row: 1 / 3; }
.rx-nm { grid-column: 2 / 5; min-width: 0; gap: 8px; }
.rx-nm .pill { padding-block: 0; }
.rx-row .rx-lin { grid-column: 2; grid-row: 2; min-width: 0; flex-wrap: nowrap; }
.rx-row .rx-score { grid-column: 3; grid-row: 2; }
.rx-row .rx-hard { grid-column: 4; grid-row: 2; }
.rx-rank { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--hair-2); border-radius: 50%; font: 600 15px/1 var(--mono); color: var(--ink); }
.rx-rank.none { border-style: dashed; color: var(--muted); }
.rx-rank .ico { width: 15px; height: 15px; }
.rx-who { display: grid; gap: 1px; min-width: 0; }
.rx-who .cand { max-width: 100%; }
.rx-lin { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; color: var(--muted); font-size: 15px; }
.rx-lin .pill { padding-block: 0; }
.chipl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.rx-score { display: grid; gap: 3px; text-align: right; }
.rx-score .bar.thin { height: 4px; }
.rx-un { color: var(--muted); font-size: 15px; }
.rx-hard { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; color: var(--ink-2); }
.rx-hard.bad { color: var(--red-t); }
.rx-hard .ico { width: 15px; height: 15px; }
.rx-gs { width: 12px; min-width: 12px; border-left: 1px solid var(--hair-2); border-top: 1px solid var(--hair); }
.rx-cell { width: var(--cw, 30px); min-width: var(--cw, 30px); max-width: var(--cw, 30px); padding: 0; border-top: 1px solid var(--hair); text-align: center; }
.rx-b { display: grid; place-items: center; width: 100%; height: 46px; padding: 0; border: 0; border-radius: 4px; background: none; cursor: pointer; }
.rx-b .mk { width: min(30px, calc(var(--cw, 30px) - 2px)); }
.rx-b:hover { background: var(--tint-2); }
.portal .rx-b:focus-visible { outline: 2px solid var(--gold-2); outline-offset: -2px; }
.rx .hl-c { background: var(--tint-1); }
.rx thead th.hl-c { background: var(--sheet); box-shadow: inset 0 0 0 100vmax var(--tint-2); }
.rx thead th.hl-c .rx-cl { color: var(--ink); font-weight: 600; }
.rx tr.hl-r > td { background: var(--row-hover); }
.rx tr.hl-r > th.rx-cand { box-shadow: inset 0 0 0 100vmax var(--tint-1); }
/* the leader, pinned under the header as the reference */
.rx tr.is-best > th, .rx tr.is-best > td { position: sticky; top: var(--hh, 0px); z-index: 2; background: var(--sheet); border-bottom: 1px solid var(--hair-2); }
.rx tr.is-best > th.rx-cand { z-index: 4; box-shadow: inset 3px 0 0 var(--gold-2); }
.rx tr.is-best.hl-r > th.rx-cand { box-shadow: inset 3px 0 0 var(--gold-2), inset 0 0 0 100vmax var(--tint-1); }
.rx tr.is-best > td.hl-c { box-shadow: inset 0 0 0 100vmax var(--tint-1); }
.rx tr.unranked .rx-who .cand .mono { color: var(--ink-2); }
.rx tr.retired { opacity: 0.6; }
.rx-div th { padding: 0 !important; border-top: 1px solid var(--hair-2); background: var(--th-bg); text-align: left; }
.rx-divl { position: sticky; left: 0; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; color: var(--ink-2); font-size: 15px; }
.rx-divl .ico { width: 15px; height: 15px; }
.rx-phone { display: none; }
@media (max-width: 860px) {
  .rx-wrap, .rx-read { display: none; }
  .rx-phone { display: grid; gap: 10px; }
}
.rx-pgrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rx-pg { color: var(--ink-2); font: 500 15px/1.4 var(--mono); }
.rx-cards { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.rx-cards::-webkit-scrollbar { display: none; }
.rx-card { scroll-snap-align: start; min-width: 0; padding: 14px; border: 1px solid var(--hair-2); border-radius: 8px; background: var(--card-soft); }
.rc-top { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--hair-2); }
.rc-s { display: grid; text-align: right; }
.rc-s .sub { margin: 0; }
.rc-g { margin-top: 14px; }
.portal .rc-g h4.lbl { margin: 0 0 4px; color: var(--gold-t); }
.rc-g ul { margin: 0; padding: 0; list-style: none; }
.rc-b { display: grid; grid-template-columns: minmax(0, 1fr) 54px 6.4em; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 4px 0; border: 0; border-top: 1px solid var(--hair); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.rc-n { min-width: 0; overflow-wrap: anywhere; }
.rc-n .mono { font-size: 15px; overflow-wrap: anywhere; }
.rc-v { text-align: right; font: 500 15px/1.3 var(--mono); }
.rc-v .sub { margin: 0; font-family: var(--sans); }

/* =================================== rank over steps, and the lineage =================================== */
.chart-in svg .bump-l { fill: none; stroke: var(--sx); stroke-width: 2; opacity: 0.55; stroke-linejoin: round; }
.chart-in svg .bump-l.lead { stroke-width: 3.5; opacity: 1; }
.chart-in svg .bump-d { fill: var(--sx); stroke: var(--sheet); stroke-width: 2; }
.chart-in svg .bump-l.s1 { stroke: var(--s1); } .chart-in svg .bump-l.s2 { stroke: var(--s2); } .chart-in svg .bump-l.s3 { stroke: var(--s3); } .chart-in svg .bump-l.s4 { stroke: var(--s4); } .chart-in svg .bump-l.s5 { stroke: var(--s5); } .chart-in svg .bump-l.s6 { stroke: var(--s6); }
.chart-in svg .bump-d.s1 { fill: var(--s1); } .chart-in svg .bump-d.s2 { fill: var(--s2); } .chart-in svg .bump-d.s3 { fill: var(--s3); } .chart-in svg .bump-d.s4 { fill: var(--s4); } .chart-in svg .bump-d.s5 { fill: var(--s5); } .chart-in svg .bump-d.s6 { fill: var(--s6); }
.ln-e { fill: none; stroke: var(--hair-2); stroke-width: 1.6; }
.ln-e.gone { opacity: 0.45; stroke-dasharray: 4 4; }
.ln-root { fill: var(--ink-2); }
.ln-n { stroke: var(--sheet); stroke-width: 2; }
.ln-n.r0 { fill: var(--r0); } .ln-n.r1 { fill: var(--r1); } .ln-n.r2 { fill: var(--r2); } .ln-n.r3 { fill: var(--r3); }
.ln-n.none { fill: var(--sheet); stroke: var(--muted); stroke-width: 1.6; }
.ln-best { fill: none; stroke: var(--gold-2); stroke-width: 1.6; }
.ln-g.gone { opacity: 0.45; }
.lin-key svg { display: block; }
.k-ret { opacity: 0.45; font-weight: 600; }

/* =================================== the size ladder =================================== */
.ladder { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13em), 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.ladder.v { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) and (max-width: 1399px) { .ladder.v { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rung { position: relative; display: grid; align-content: start; gap: 4px; min-width: 0; padding: 14px 16px; border: 1px solid var(--hair-2); border-radius: 8px; background: var(--card-soft); }
.ladder.v .rung { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 14px; }
.ladder.v .rung > .lbl, .ladder.v .rung > .rung-say { grid-column: 1 / -1; }
.rung.done { border-left: 3px solid var(--live); }
.rung.cur { border: 2px solid var(--gold-2); background: var(--tint-1); }
.rung.cur.done { border-left-width: 4px; border-left-color: var(--live); }
.rung.held { border: 2px dashed var(--red-line); background: var(--red-tint); }
.rung.locked { border-style: dashed; background: transparent; }
.rung-size { font: 400 clamp(28px, 2vw, 38px)/1 var(--serif); letter-spacing: -0.02em; color: var(--ink); }
.rung.locked .rung-size { color: var(--ink-2); }
.rung-mem { color: var(--ink-2); }
.rung-say { color: var(--ink-2); overflow-wrap: anywhere; }

/* =================================== events: a timeline grouped by step =================================== */
.tl-f { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.fchip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 3px 13px; border: 1px solid var(--hair-2); border-radius: 999px; background: transparent; color: var(--ink-2); font: inherit; cursor: pointer; }
.fchip[aria-pressed="true"] { border-color: var(--gold-2); background: var(--tint-2); color: var(--ink); }
.fchip:hover { border-color: var(--ink-2); }
.portal .fchip:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.tl-wrap { max-height: min(92vh, 76em); overflow: auto; padding: 4px 14px 4px 10px; border: 1px solid var(--hair); border-radius: 8px; overscroll-behavior: contain; }
.tl { position: relative; margin: 0; padding: 0; list-style: none; }
.tl::before { content: ""; position: absolute; left: 13px; top: 18px; bottom: 18px; width: 1px; background: var(--hair-2); }
.tl-i { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.tl-i:last-child { border-bottom: 0; }
.tl-m { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sheet); }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold-2); }
.tl-b { display: grid; gap: 4px; min-width: 0; }
.tl-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.tl-o { font: 500 var(--lbl)/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.tl-o.kept { color: var(--live); } .tl-o.thrown { color: var(--ink-2); } .tl-o.broke { color: var(--red-t); }
.tl-s { color: var(--ink); overflow-wrap: anywhere; }
.tl-r { color: var(--muted); overflow-wrap: anywhere; }
.tl-r.ok { color: var(--live); }
.tl-x { display: grid; gap: 2px; margin: 2px 0 0; padding: 0; list-style: none; }
.tlx { color: var(--gold-t); overflow-wrap: anywhere; }
.tlx.ladder_held, .tlx.stopped { color: var(--red-t); }
.tl-d summary { cursor: pointer; color: var(--ink-2); }
.tl-d summary:hover { color: var(--ink); }
.tl-tools { display: grid; gap: 4px; margin: 6px 0 0; padding: 0; list-style: none; }
.tl-tools li { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); gap: 10px; color: var(--ink-2); min-width: 0; }
.tl-tools li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.ev-none { padding: 18px 0; color: var(--muted); }

/* =================================== a requirement's details: the drawer =================================== */
.ace-drawer .dlg-body { gap: 20px; }
.ace-drawer .pairs dt { white-space: nowrap; }
.ace-drawer .chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 1px 12px 1px 4px; border: 1px solid var(--hair-2); border-radius: 999px; background: transparent; color: var(--ink); font: 500 15px/1.3 var(--mono); cursor: pointer; }
.chip:hover { border-color: var(--ink-2); }
.res { display: grid; gap: 14px; }
.res-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.res-mk { display: inline-grid; place-items: center; padding: 4px 8px; border: 1px solid var(--hair-2); border-radius: 8px; }
.res-w { color: var(--ink); font-weight: 600; }
.res-cell { display: inline-flex; align-items: center; gap: 4px; font: 500 15px/1.3 var(--mono); }
.cases { display: grid; gap: 2px; margin: 0; padding: 10px 14px; border: 1px solid var(--red-line); border-radius: 8px; background: var(--well); list-style: none; }
.log.warnb { border-color: var(--warn); border-style: dashed; color: var(--ink); }
.ace-drawer .tbl tr.sel { background: var(--sel); }
.ace-drawer .linkbtn.cand { text-decoration: none; }
.ace-drawer .linkbtn.cand[aria-pressed="true"] .mono { color: var(--gold-2); }
.ckpts { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ckpts li { padding: 12px 14px; border: 1px solid var(--hair-2); border-radius: 8px; }
.ckpts li:has(input:checked) { border-color: var(--gold-2); background: var(--tint-1); }
.ckpts .tick > span { display: grid; gap: 2px; }

/* =================================== the plain run, and the admin's panel =================================== */
.run-card .kpis { margin-top: 18px; }
.saves { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hair); }
.saves li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto auto; align-items: center; gap: 6px 14px; padding: 11px 0; border-bottom: 1px solid var(--hair); }
.saves .ico { color: var(--muted); }
.sv-n { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { .saves li { grid-template-columns: 20px minmax(0, 1fr) auto; } .saves li > :last-child { grid-column: 2 / -1; } }
.k-live.off .kpi-num { color: var(--muted); }
.k-live .loop-steps { margin: 4px 0; }
.chart-in svg .gb { stroke-width: 1.5; }
.chart-in svg .gb.live { fill: var(--live-tint-2); stroke: var(--live); }
.chart-in svg .gb.ended { fill: var(--quiet-fill); stroke: var(--hair-2); }
.chart-in svg .gb.fail { fill: var(--red-tint); stroke: var(--red-line); }
.chart-in svg .gb-l { fill: var(--ink); font: 500 15px var(--mono); }
.gk { display: inline-block; width: 22px; height: 14px; border-radius: 3px; border: 1.5px solid var(--hair-2); }
.gk.live { background: var(--live-tint-2); border-color: var(--live); }
.gk.ended { background: var(--quiet-fill); }
.gk.fail { background: var(--red-tint); border-color: var(--red-line); }
.ace-grid.two > .block .vbox .vrow { grid-template-columns: 11em minmax(0, 1fr) auto; }
@media (max-width: 700px) { .ace-grid.two > .block .vbox .vrow { grid-template-columns: minmax(0, 1fr); } }
.si-sw { display: inline-flex; }
/* the lineage as a list, on phones */
.ltree, .ltree ul { margin: 0; padding: 0; list-style: none; }
.ltree ul { margin-left: 9px; padding-left: 16px; border-left: 1px solid var(--hair-2); }
.ltree li { padding: 6px 0; }
.ltree li.gone { opacity: 0.5; }
.lt-n { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 8px; }
.lt-n svg { margin-top: 3px; }
.lt-n .mono { overflow-wrap: anywhere; }
.lt-n .sub { margin: 0; }
.lt-root { display: block; width: 16px; height: 16px; margin: 4px 0 0 2px; border-radius: 4px; background: var(--ink-2); }
.runs-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 8px; }
.run-card > .loop { margin-top: 14px; }
/* Users: the account's flags, stacked: a label and its switch per line */
.flagcol { display: grid; grid-template-columns: auto; justify-items: start; gap: 2px; }
.flagcol .fl-l + .seg { margin-bottom: 6px; }
.seg-sub { display: block; font-size: 15px; line-height: 1.2; }
.si-sw .seg button { line-height: 1.2; }
.fl-l { font: 500 var(--lbl)/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.si-sw { display: inline-grid; justify-items: start; gap: 2px; }
.si-sw.assigned .seg button[aria-pressed="true"] { box-shadow: inset 0 -3px 0 var(--gold-2); }
.si-as { font: 500 15px/1.2 var(--mono); color: var(--gold-t); }

/* =================================== 2. the prototype's shared parts =================================== */
.dlg { width: min(44em, calc(100vw - 48px)); max-width: none; max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); margin: auto; padding: 0; border: 1px solid var(--hair-2); border-top: 3px solid var(--gold); border-radius: 8px; background: var(--sheet); color: var(--ink); box-shadow: var(--pop-shadow); overflow: auto; overscroll-behavior: contain; }
.dlg.wide { width: min(60em, calc(100vw - 48px)); }
.dlg.narrow { width: min(34em, calc(100vw - 48px)); }
.dlg::backdrop { background: var(--scrim); }
.dlg[open] { animation: dlg-in 0.16s ease-out; }
.dlg-in { display: grid; gap: 18px; padding: clamp(20px, 1.8vw, 30px); }
.dlg-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px 16px; }
.portal .dlg h2 { font-size: clamp(30px, 2.3vw, 40px); line-height: 1.05; overflow-wrap: anywhere; }
.dlg-head > p { grid-column: 1 / -1; max-width: 62ch; color: var(--ink-2); }
.dlg-x { display: grid; place-items: center; width: 42px; height: 42px; margin: -6px -8px 0 0; border: 1px solid transparent; border-radius: 999px; background: none; color: var(--ink-2); cursor: pointer; }
.dlg-x:hover { border-color: var(--hair-2); color: var(--ink); }
.dlg-sec { display: grid; gap: 12px; min-width: 0; padding-top: 18px; border-top: 1px solid var(--hair); }
.dlg-sec > .kicker, .dlg-sec > h3.kicker { font: 500 var(--lbl)/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-t); }
.dlg-sec.off > :not(.kicker):not(.needs) { opacity: 0.45; pointer-events: none; }
.dlg-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding-top: 18px; border-top: 1px solid var(--hair); }
.dlg-foot .grow { flex: 1 1 auto; }
.dlg .note:empty { display: none; }
.dlg.drawer { width: min(50em, 100vw); height: 100vh; height: 100dvh; max-height: none; margin: 0 0 0 auto; border-width: 0 0 0 3px; border-left-color: var(--gold); border-radius: 0; }
.dlg.drawer[open] { animation: side-in 0.18s ease-out; }
@media (max-width: 860px) {
  .dlg, .dlg.wide, .dlg.narrow, .dlg.drawer { width: 100vw; height: 100vh; height: 100dvh; max-height: none; margin: 0; border: 0; border-top: 3px solid var(--gold); border-radius: 0; }
  .dlg-in { min-height: 100%; grid-template-rows: auto 1fr auto; padding: 16px 16px 0; }
  .dlg-foot { position: sticky; bottom: 0; z-index: 2; margin: 0 -16px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--sheet); }
  .dlg-foot .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .dlg[open], .dlg.drawer[open] { animation: none; }
}
.say { margin: 0; }
.say:empty { display: none; }
.skel { display: grid; border: 1px solid var(--hair); border-radius: 8px; overflow: hidden; }
.skel-row { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr)); align-items: center; gap: 24px; min-height: 54px; padding: 0 16px; border-top: 1px solid var(--hair); }
.skel-row:first-child { min-height: 44px; border-top: 0; background: var(--th-bg); }
.skel-row i { display: block; height: 12px; border-radius: 6px; background: var(--skel); animation: skel 1.6s ease-in-out infinite; }
.skel-row i.w1 { width: 72%; }
.skel-row i.w2 { width: 46%; }
.skel-row i.w3 { width: 58%; }
.skel-row i.w4 { width: 34%; }
.skel-card { display: grid; gap: 14px; padding: clamp(18px, 1.7vw, 30px); border: 1px solid var(--hair); border-radius: 8px; }
.skel-card i { display: block; height: 12px; border-radius: 6px; background: var(--skel); animation: skel 1.6s ease-in-out infinite; }
.skel-card i.big { height: 54px; width: 44%; border-radius: 8px; }
.skel-card i.w1 { width: 80%; }
.skel-card i.w2 { width: 60%; }
.skel-card i.w3 { width: 36%; }
@media (prefers-reduced-motion: reduce) {
  .skel-row i, .skel-card i { animation: none; }
}
@media (max-width: 860px) {
  .skel-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 16px; padding: 14px 0; }
  .skel { border: 0; border-radius: 0; }
  .skel-row:first-child { display: none; }
  .skel-row { border-top: 1px solid var(--hair); }
}
.more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-top: 14px; color: var(--muted); }
.find { width: 17em; max-width: 100%; min-height: 44px; border-radius: 999px; padding-inline: 18px; }
.block-head > .find, .block-head > .head-act { align-self: center; }
.head-act { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 14px; }
.sw-act { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 12px; }
.seg.swr button { min-width: 3.6em; padding: 7px 14px; font: 500 var(--lbl)/1.2 var(--mono); letter-spacing: 0.06em; }
.seg.small button { padding: 4px 11px; font: 500 var(--lbl)/1.2 var(--mono); letter-spacing: 0.06em; }
.seg button:disabled { cursor: default; opacity: 0.55; }
.seg.paused button[aria-pressed="true"] { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink-2); }
@media (max-width: 700px) {
  .sw-act { justify-content: flex-start; }
}
.trunc { position: relative; display: inline-flex; max-width: 100%; min-width: 0; white-space: nowrap; vertical-align: bottom; }
.trunc > span:first-child { min-width: 1.5em; overflow: hidden; text-overflow: ellipsis; }
.trunc > span + span { flex: none; }
.trunc[data-full]:focus-visible::after { content: attr(data-full); position: absolute; z-index: 6; left: 0; top: calc(100% + 8px); width: max-content; max-width: min(34em, 78vw); padding: 7px 11px; border: 1px solid var(--hair-2); border-radius: 6px; background: var(--sheet); color: var(--ink); box-shadow: var(--pop-shadow); font: 500 15px/1.45 var(--mono); letter-spacing: 0; text-transform: none; white-space: normal; overflow-wrap: anywhere; }
.lit { display: inline-block; padding: 0 6px; border: 1px solid var(--hair-2); border-radius: 4px; background: var(--well); color: var(--ink); font: 500 0.92em/1.5 var(--mono); }
.emptyseg { color: var(--muted); font-style: italic; }
.addr-copy { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; }
.addr-copy .mono { overflow-wrap: anywhere; }
.head-facts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; margin-top: 10px; color: var(--ink-2); }
.head-facts .lbl { margin-right: 8px; }
.files-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin-bottom: 14px; }
.pathbar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; margin: 0; padding: 0; list-style: none; font: 500 max(15px, 0.94em)/1.5 var(--mono); color: var(--ink-2); }
.pathbar li { display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.pathbar li + li::before { content: "/"; color: var(--muted); }
.pathbar button { padding: 2px 4px; border: 0; border-radius: 4px; background: none; color: var(--gold-t); font: inherit; text-decoration: underline; text-decoration-color: var(--link-line); text-underline-offset: 3px; cursor: pointer; }
.pathbar button:hover { color: var(--ink); }
.pathbar [aria-current] { color: var(--ink); }
.selbar { position: sticky; top: calc(var(--bar, 0px) + 8px); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; padding: 10px 12px 10px 16px; border: 1px solid var(--hair-2); border-left: 3px solid var(--gold-2); border-radius: 8px; background: var(--sheet); box-shadow: var(--pop-shadow); }
.selbar > p { flex: 1 1 14em; min-width: 0; }
.selbar .btn-row { gap: 8px 10px; }
.files-wrap { position: relative; min-width: 0; }
.tbl.files td { vertical-align: middle; }
.tbl.files .ck { width: 52px; }
.ckbox, .portal input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--gold-2); cursor: pointer; }
.tbl.files tr.sel { background: var(--sel); }
.tbl.files tbody tr { cursor: default; }
.tbl.files tbody tr:focus { outline: 0; }
.tbl.files tbody tr:focus-visible, .tbl.files tbody tr.kb { outline: 2px solid var(--gold-2); outline-offset: -2px; }
.f-name { display: inline-flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.f-name:hover .trunc, .f-name:hover > span { color: var(--gold-2); }
.f-name .ico { color: var(--muted); }
.f-name.dir .ico { color: var(--gold-t); }
.f-name.dir { font-weight: 600; }
.f-name.si .ico { color: var(--gold-2); }
@media (min-width: 861px) {
  .tbl.files th:nth-child(1) { width: 52px; }
  .tbl.files th:nth-child(3) { width: 9em; }
  .tbl.files th:nth-child(4) { width: 11em; }
  .tbl.files th:nth-child(5) { width: 10em; }
  .tbl.files th:nth-child(6) { width: 64px; }
}
@media (max-width: 860px) {
  .tbl.files tr { grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1fr) 44px; align-items: center; }
  .tbl.files td.ck { grid-row: 1; grid-column: 1; width: auto; }
  .tbl.files td.nm { grid-row: 1; grid-column: 2 / 4; }
  .tbl.files td.act { grid-row: 1; grid-column: 4; text-align: right; }
  .tbl.files td.sz { grid-column: 2; }
  .tbl.files td.kd { grid-column: 3; }
  .tbl.files td.ch { grid-column: 2 / 4; }
  .tbl.files .act > * { margin: 0; }
  .selbar { top: calc(var(--bar, 0px) + 6px); }
}
.drop { position: absolute; inset: 0; z-index: 4; display: none; place-items: center; align-content: center; gap: 8px; padding: 24px; border: 2px dashed var(--gold-2); border-radius: 8px; background: var(--drop-bg); color: var(--ink-2); text-align: center; }
.files-wrap.dragging .drop { display: grid; }
.drop .ico.big { width: 52px; height: 52px; }
.portal .drop b { font: 400 clamp(26px, 2vw, 36px)/1.1 var(--serif); color: var(--ink); }
.drop-box { display: grid; place-items: center; gap: 12px; padding: clamp(24px, 3.4vw, 56px) 18px; border: 2px dashed var(--hair-2); border-radius: 8px; color: var(--ink-2); text-align: center; transition: border-color 0.15s ease, background-color 0.15s ease; }
.drop-box.over { border-color: var(--gold-2); background: var(--tint-1); }
.portal .drop-box h3 { font: 400 clamp(26px, 2vw, 34px)/1.1 var(--serif); color: var(--ink); }
.ups { margin-bottom: 18px; border: 1px solid var(--hair-2); border-left: 3px solid var(--gold-2); border-radius: 8px; background: var(--sheet); }
.ups.stopped { border-left-color: var(--red); }
.ups-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; padding: 12px 16px; border-bottom: 1px solid var(--hair); }
.ups-head p { min-width: 0; }
.ups ul { margin: 0; padding: 0; list-style: none; }
.ups li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(7em, 1fr) minmax(9.5em, auto) 7.5em; align-items: center; gap: 4px 18px; padding: 11px 16px; border-top: 1px solid var(--hair); }
.ups li:first-child { border-top: 0; }
.ups .u-name { min-width: 0; color: var(--ink); }
.ups .u-amt { color: var(--ink-2); text-align: right; white-space: nowrap; }
.ups .u-act { text-align: right; }
.ups .u-say { grid-column: 1 / -1; margin: 0; font-size: max(15px, 0.92em); }
.ups .u-say:empty { display: none; }
.ups .bar { height: 6px; }
.ups li.done .bar i { background: var(--live); }
.ups li.bad .bar i, .ups li.stop .bar i { background: var(--red); }
.ups li.wait .u-amt, .ups li.stop .u-amt { color: var(--muted); }
.ups li.done .u-name, .ups li.wait .u-name { color: var(--ink-2); }
.ups-foot { padding: 10px 16px 12px; border-top: 1px solid var(--hair); }
@media (max-width: 860px) {
  .ups li { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; }
  .ups .bar { grid-column: 1 / -1; grid-row: 2; }
  .ups .u-amt { grid-column: 1; grid-row: 3; text-align: left; }
  .ups .u-act { grid-column: 2; grid-row: 1; }
  .ups .u-say { grid-row: 4; }
}
.files-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 1.6vw, 28px); align-items: start; }
@media (min-width: 1280px) {
  .files-layout.with-pane { grid-template-columns: minmax(0, 1fr) minmax(22em, 0.6fr); }
}
.pane { position: sticky; top: calc(var(--bar, 0px) + 16px); display: grid; gap: 16px; min-width: 0; max-height: calc(100vh - var(--bar, 0px) - 32px); max-height: calc(100dvh - var(--bar, 0px) - 32px); padding: clamp(16px, 1.5vw, 24px); border: 1px solid var(--hair-2); border-top: 3px solid var(--gold); border-radius: 8px; background: var(--sheet); overflow: auto; }
.pane-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 6px 12px; }
.portal .pane h2 { font: 400 clamp(24px, 1.8vw, 32px)/1.1 var(--serif); overflow-wrap: anywhere; }
.media { display: grid; place-items: center; min-height: 12em; border: 1px solid var(--hair); border-radius: 6px; background: var(--well); overflow: hidden; }
.media img, .media video { display: block; width: 100%; max-height: 60vh; object-fit: contain; }
.media.none { padding: 28px 18px; color: var(--muted); text-align: center; }
.dlg .media img, .dlg .media video { max-height: 55vh; max-height: 55dvh; }
.pane .facts { grid-template-columns: repeat(auto-fit, minmax(8em, 1fr)); }
.pane .log { max-height: 22em; overflow: auto; }
.tick { display: inline-flex; align-items: flex-start; gap: 10px; color: var(--ink); cursor: pointer; }
.tick input { margin-top: 3px; flex: none; }
.tick .muted { display: block; font-size: max(15px, 0.92em); }
.si-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16em, 0.8fr); align-items: end; gap: 14px clamp(20px, 3vw, 56px); margin-bottom: clamp(16px, 1.6vw, 26px); }
.si-head .bar { height: 10px; margin-top: 10px; }
.si-head .bar.full i { background: var(--red); }
@media (max-width: 860px) {
  .si-head { grid-template-columns: minmax(0, 1fr); }
}
.si-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22em), 1fr)); gap: clamp(12px, 1.1vw, 20px); margin: 0; padding: 0; list-style: none; }
.si-card { display: grid; align-content: start; gap: 14px; min-width: 0; padding: clamp(16px, 1.5vw, 26px); border: 1px solid var(--hair-2); border-radius: 8px; background: var(--card-soft); }
.portal .si-card h3 { font: 400 clamp(26px, 2vw, 34px)/1.05 var(--serif); letter-spacing: -0.015em; min-width: 0; }
.si-card h3 button { max-width: 100%; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.si-card h3 button:hover { color: var(--gold-2); }
.si-card .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; }
.si-card .btn-row { gap: 10px; }
.folders { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.folders button { padding: 2px 11px; border: 1px solid var(--hair-2); border-radius: 999px; background: transparent; color: var(--ink-2); font: 500 max(15px, 0.9em)/1.5 var(--mono); cursor: pointer; }
.folders button:hover { border-color: var(--gold-2); color: var(--gold-2); }
.folders button:disabled { opacity: 0.5; cursor: default; border-style: dashed; }
.icon-btn { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; padding: 0; border: 1px solid transparent; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; }
.icon-btn .ico { width: 17px; height: 17px; }
.icon-btn:hover { border-color: var(--hair-2); color: var(--ink); }
.icon-btn.done { color: var(--live); }
.addr-line .trunc, .addr-line > span:first-child { min-width: 0; font-family: var(--mono); font-weight: 500; }
.dlg-sec > .seg, .fld > .seg, .dlg-body > .seg { justify-self: start; }
.seg.small { flex-wrap: nowrap; }
.dlg { --dlg-pad: clamp(20px, 1.8vw, 30px); }
.dlg-in { padding: var(--dlg-pad) var(--dlg-pad) 0; }
.dlg-in:has(> .dlg-foot[hidden]) { padding-bottom: var(--dlg-pad); }
.dlg-foot { position: sticky; bottom: 0; z-index: 2; margin: 0 calc(-1 * var(--dlg-pad)); padding: 16px var(--dlg-pad) var(--dlg-pad); background: var(--sheet); }
@media (max-width: 860px) {
  .dlg { --dlg-pad: 16px; }
  .dlg-in { padding: 16px 16px 0; }
  .dlg-foot { margin: 0 -16px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); }
}
.tbl.files td.nm { overflow-wrap: normal; }
.f-name { white-space: nowrap; }
.f-name .trunc { min-width: 0; }
.f-name > span:last-child { min-width: 0; }
@media (min-width: 1280px) {
  .files-layout.with-pane .tbl.files th:nth-child(5), .files-layout.with-pane .tbl.files td.kd { display: none; }
  .files-layout.with-pane .tbl.files th:nth-child(4) { width: 9.5em; }
}
.linkbtn.danger { color: var(--red-t); text-decoration-color: var(--red-line); }
.linkbtn.danger:hover { color: var(--red-t); text-decoration-color: currentColor; }
.tbl .act.wrap { white-space: normal; }
.tbl .act.wrap > * { margin: 4px 0 4px 8px; }
@media (min-width: 1100px) {
  .tbl td.fold .folders { flex-wrap: wrap; }
}
.si-card > p { margin-top: -4px; }
.f-meta { display: none; }
@media (max-width: 860px) {
  .tbl tr.mrow { position: relative; }
  .tbl tr.mrow td.full:first-child { padding-right: 48px; }
  .tbl tr.mrow td.act { position: absolute; top: 8px; right: 0; width: auto; }
  .tbl.files tr { grid-template-columns: 30px minmax(0, 1fr) 44px; gap: 2px 10px; padding: 10px 0; }
  .tbl.files td.ck { grid-row: 1; grid-column: 1; align-self: center; }
  .tbl.files td.nm { grid-row: 1; grid-column: 2; }
  .tbl.files td.act { grid-row: 1; grid-column: 3; align-self: center; }
  .tbl.files td.sz, .tbl.files td.ch, .tbl.files td.kd { display: none; }
  .f-meta { display: block; margin-top: 2px; padding-left: 30px; color: var(--muted); font-size: 15px; }
  .tbl.files td.nm .sub { padding-left: 30px; }
}
@media (max-width: 860px) {
  .block-head > .head-act { grid-column: 1 / -1; grid-row: 3; justify-content: flex-start; }
}
.grp + .grp { margin-top: clamp(28px, 2.8vw, 48px); }
.grp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--hair); }
.grp-head.bare { border-bottom: 0; padding-bottom: 0; }
.portal .grp-t { display: inline-flex; align-items: center; gap: 10px; margin: 0; font: 500 var(--lbl)/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-t); }
.grp-t .pill { letter-spacing: 0.03em; }
.grp-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 12px; }
.grp > .hint { margin-top: 12px; }
@media (min-width: 861px) {
  .tbl td.cut { max-width: 0; overflow: hidden; overflow-wrap: normal; white-space: nowrap; text-overflow: ellipsis; }
  .tbl td.cut > *, .tbl td.cut .sub { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tbl td.cut > .plain, .tbl td.cut > b, .tbl td.cut > .trunc { display: inline-flex; }
}
@media (min-width: 861px) {
  .tbl td.cut { width: 46%; }
  .tbl tr:has(> td.cut ~ td.cut) > td.cut { width: 31%; }
}
@keyframes dlg-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes side-in { from { opacity: 0; transform: translateX(28px); } }
@keyframes skel { 50% { opacity: 0.4; } }
.card-act { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--hair); }
span.sub, p.sub, div.sub { display: block; margin-top: 2px; color: var(--muted); font-size: max(15px, 0.92em); }
.tbl .sub .mono { font-size: 1em; }
.bar.warn i { background: var(--red); }
.bar.full i, .bar.multi i.bad { background: var(--red); }
.keylist i.bad { background: var(--red); }
.keylist i.none { background: var(--hair-2); }
.vrow.swr { grid-template-columns: minmax(0, 1fr) auto; }
.vrow.swr b { display: block; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.vrow.swr .muted { display: block; margin-top: 2px; }
.sw-act { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
@media (max-width: 700px) { .vrow.swr { grid-template-columns: minmax(0, 1fr); } }
.folders button[aria-pressed="true"] { border-color: var(--gold-2); color: var(--gold-2); background: var(--tint-1); }
.tbl td.nm { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tbl td.nm .ico { flex: none; }

/* =================================== 3. the screens the SI-2 prototype did not draw =================================== */
/* the page: the tabs sit under the page head as on a site's page */
#si-tabs { margin-top: 4px; }
.portal #si-body { padding-top: clamp(18px, 1.6vw, 28px); }
.portal #si-body > .note:empty { display: none; }
.si-tok-lede { max-width: 72ch; margin: 0 0 18px; color: var(--ink-2); }

/* the Library: one card per compose, wrapping, each 26 to 40 em wide */
.si-lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 26em), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.si-comp { display: grid; align-content: start; gap: 12px; min-width: 0; padding: clamp(16px, 1.4vw, 24px); border: 1px solid var(--hair-2); border-radius: 8px; background: var(--card-soft); }
.si-comp.running { border-color: var(--live); box-shadow: inset 3px 0 0 var(--live); }
.si-comp.bad { border-color: var(--red-line); box-shadow: inset 3px 0 0 var(--red); }
.si-comp .card-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; min-width: 0; }
.portal .si-comp h3 { min-width: 0; margin: 0; font: 400 clamp(24px, 1.7vw, 30px)/1.1 var(--serif); color: var(--ink); overflow-wrap: anywhere; }
.comp-st { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.comp-meta { margin: 0; color: var(--ink-2); }
.comp-imgs, .comp-errs, .need-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.comp-imgs li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 10px; min-width: 0; padding: 8px 10px; border: 1px solid var(--hair); border-radius: 6px; background: var(--well); }
.comp-imgs li > span { min-width: 0; overflow-wrap: anywhere; }
.comp-imgs .sub { word-break: break-all; }
.comp-errs li { position: relative; padding-left: 18px; color: var(--ink-2); overflow-wrap: anywhere; }
.comp-errs li::before { content: "×"; position: absolute; left: 0; top: 0; color: var(--red-t); font-weight: 600; }
.comp-errs li.muted::before { content: ""; }
.si-comp .hint { margin: 0; }
.si-comp .btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; }
.img-line { display: inline; overflow-wrap: anywhere; }

/* the compose editor */
.ce-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 700px) { .ce-top { grid-template-columns: minmax(0, 1fr); } }
textarea.input.code { min-height: 20em; resize: vertical; font: 500 15px/1.5 var(--mono); white-space: pre; overflow: auto; tab-size: 2; }
#ce-count.err { color: var(--red-t); }
.ce-checks { display: grid; gap: 10px; min-width: 0; padding: 14px 16px; border: 1px solid var(--hair); border-radius: 8px; background: var(--well); }
.ce-checks p { margin: 0; }
.fld-top .btn { text-transform: none; letter-spacing: 0; }

/* the run dialog */
.dlg .pairs { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; margin: 0; }
.dlg .pairs dt { font: 500 var(--lbl)/1.6 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.dlg .pairs dd { margin: 0; min-width: 0; overflow-wrap: anywhere; color: var(--ink-2); }
@media (max-width: 560px) { .dlg .pairs { grid-template-columns: minmax(0, 1fr); gap: 2px; } .dlg .pairs dd { margin-bottom: 10px; } }
fieldset.fs { margin: 0; min-width: 0; padding: 18px 0 0; border: 0; border-top: 1px solid var(--hair); }
fieldset.fs legend { float: left; width: 100%; margin-bottom: 12px; padding: 0; }
fieldset.fs > label.tick { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; cursor: pointer; }
fieldset.fs > label.tick > span { display: grid; gap: 2px; }
.dlg-sec.fld > label.kicker { text-transform: uppercase; color: var(--gold-t); }
.need-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.need-list li .sub { flex-basis: 100%; }
.log.diff { max-height: 18em; overflow: auto; white-space: pre; }
.log.diff span { display: block; }
.log.diff .add { color: var(--live); background: var(--live-tint); }
.log.diff .del { color: var(--red-t); background: var(--red-tint); text-decoration: line-through; text-decoration-color: var(--red-line); }

/* the admin's panel: assign, the settings */
.as-list { max-height: 18em; overflow: auto; }
.as-cap { display: grid; gap: 6px; }
.as-cap .bar.multi { margin-top: 4px; }
.as-flag { margin: 0; padding: 12px 14px; border: 1px solid var(--hair-2); border-radius: 8px; background: var(--tint-1); color: var(--ink-2); }
.lim-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15em), 1fr)); gap: 18px 22px; margin-bottom: 14px; }
.lim-grid .input { max-width: 12em; }
.block .block-head > .input[type="search"] { max-width: 20em; }
.tbl td.fold { overflow-wrap: normal; }
.folders button { white-space: nowrap; overflow-wrap: normal; }
/* on a phone the tab's own action (Add compose, Add token) goes under the tabs, so no tab is hidden behind it */
@media (max-width: 640px) {
  body[data-page="si"] .tabs-row { flex-wrap: wrap; align-items: stretch; }
  body[data-page="si"] .tabs-row .tabs { flex: 1 1 100%; }
  body[data-page="si"] .tabs-act { flex: 1 1 100%; margin: 12px 0; }
  .portal #si-tabs a { padding: 0 10px; }
}
.as-list { max-height: 17em; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
.as-list li { flex: none; }
.as-list .tick b { overflow-wrap: anywhere; }

/* =================================== long names (the owner's look, 2026-11-28) ===================================
   A name never spills out of its card or under another part: grid and flex children may shrink (min-width 0); a
   name is cut with an ellipsis and its whole text is on hover (title) and focus (the cut name's tip); an email breaks
   where it must (overflow-wrap anywhere, on the email only). The screenshot check (si-preview/shots.mjs, SI_LONG=1)
   fails on any element wider than its card. */
.kpis > *, .kpi, .kpi-row > *, .kpi-sub > *, .run-card .card-top > *, .title-row > *, .si-comp .card-top > *, .si-card .card-top > *,
.block-head > *, .card-act > *, .prod-row > *, .runs li, .run-i a > *, .loop-now, .pairs dd, .vrow > *, .tick > span, .need-list li > * { min-width: 0; }
.kpi-row > .kpi-num { flex: 1 1 auto; }
.kpi-row > .kpi-num .trunc, .ri-t .trunc, .si-comp h3 .trunc, .si-card h3 .trunc { max-width: 100%; }
.email { overflow-wrap: anywhere; word-break: normal; }
.kpi-num.sm.email { font: 500 max(16px, 1em)/1.35 var(--mono); }
.tbl td.who { overflow-wrap: anywhere; min-width: 8em; }
.ell { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* a grid card's one column never grows past the card: a long name is cut or wraps inside it */
.kpi, .kpi-sub, .si-comp, .si-card, .run-i a, .ckpts .tick > span, .dlg-in, .dlg-sec, .ce-checks, .as-cap, .story, .si-prog, .budgets-wrap { grid-template-columns: minmax(0, 1fr); }
/* in a table a name wraps: the cell breaks it anywhere, so the table stays inside its block */
.tbl td .name, .tbl td .email { overflow-wrap: anywhere; word-break: break-word; }
.tbl td.nm { display: table-cell; }
.tbl td.nm > .ico { margin-right: 10px; vertical-align: -3px; }
.url { overflow-wrap: anywhere; min-width: 0; }
.addr-line { max-width: 100%; flex-wrap: wrap; }
/* the workfolder's runs: the folder buttons wrap and the actions stack, so the table fits its block */
.tbl td.fold .folders { flex-wrap: wrap; }
.tbl td.act.wrap { white-space: normal; }
.tbl td.act.wrap > * { margin: 3px 0 3px 8px; }
/* the workfolder's path: a long folder name is cut inside the line, never past the page */
.files-tools > *, .pathbar { min-width: 0; max-width: 100%; }
.pathbar li { max-width: 100%; }
.pathbar button, .pathbar [aria-current] { display: inline-flex; min-width: 0; max-width: 100%; }
.pathbar .trunc { max-width: 100%; }
