/* Tracekit Cloud (console/). Tokens: Cygnux Tower's front page (paper, ink, the orange label, g1-g3) and tracekit view's state
   colours (green verified, amber needs a person, red failed or blocked, violet flagged). console/DESIGN.md. */
:root {
  color-scheme: light;
  --sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  --bg: #faf9f6; --surface: #fff; --sunk: #f4f2ec; --paper: #fffdf9; --ruled: rgba(120, 70, 30, 0.06);
  --ink: #16131b; --text: #3b3742; --muted: #6b6672; --dim: #8a8590;
  --line: rgba(22, 19, 27, 0.09); --line-2: rgba(22, 19, 27, 0.15); --rule: rgba(22, 19, 27, 0.24);
  --label: #c2410c; --g1: #e8590c; --g2: #db1a5a; --g3: #a21caf;
  --ok: #13804a; --look: #b45309; --bad: #c0262d; --flag: #8b3fb8; --info: #2f56c6;
  --allow: #c9c4b8; --held: #e39a2d;
  --shadow: 0 1px 2px rgba(22, 19, 27, 0.04), 0 8px 24px -16px rgba(22, 19, 27, 0.18);
  --slip-shadow: rgba(60, 35, 15, 0.18);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #000; --surface: #0a0910; --sunk: #070707; --paper: #121019; --ruled: rgba(255, 90, 80, 0.05);
    --ink: #f3f1f6; --text: #cfcad6; --muted: #8d8a96; --dim: #6f6a78;
    --line: rgba(255, 255, 255, 0.08); --line-2: rgba(255, 255, 255, 0.13); --rule: rgba(255, 255, 255, 0.2);
    --label: #ff7a2e; --g1: #ff7a2e; --g2: #ff2e7a; --g3: #d23cff;
    --ok: #3ddc84; --look: #ffa630; --bad: #ff5147; --flag: #d98bff; --info: #7aa2ff;
    --allow: #3a3732; --held: #ffa630; --shadow: none; --slip-shadow: rgba(0, 0, 0, 0.8);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000; --surface: #0a0910; --sunk: #070707; --paper: #121019; --ruled: rgba(255, 90, 80, 0.05);
  --ink: #f3f1f6; --text: #cfcad6; --muted: #8d8a96; --dim: #6f6a78;
  --line: rgba(255, 255, 255, 0.08); --line-2: rgba(255, 255, 255, 0.13); --rule: rgba(255, 255, 255, 0.2);
  --label: #ff7a2e; --g1: #ff7a2e; --g2: #ff2e7a; --g3: #d23cff;
  --ok: #3ddc84; --look: #ffa630; --bad: #ff5147; --flag: #d98bff; --info: #7aa2ff;
  --allow: #3a3732; --held: #ffa630; --shadow: none; --slip-shadow: rgba(0, 0, 0, 0.8);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--label); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--label); outline-offset: 2px; border-radius: 4px;
}
code, .mono, pre, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
code { font-size: 0.92em; }
.wrap { width: min(1280px, 100% - 64px); margin: 0 auto; }
.dim { color: var(--dim); }
.t-ok { color: var(--ok); } .t-bad { color: var(--bad); } .t-warn { color: var(--look); } .t-flag { color: var(--flag); }

/* the top bar */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 18px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; margin: 0; color: var(--ink); }
.brand .word { font: 600 11.5px/1 var(--sans); letter-spacing: 0.28em; text-transform: uppercase; }
.mark { width: 24px; height: 24px; flex: none; }
.mark line { stroke: var(--label); stroke-width: 1.5; stroke-linecap: round; }
.mark .a { fill: var(--ink); } .mark .t { fill: var(--label); }
.space { flex: none; font: 12px/1 var(--mono); color: var(--muted); padding: 5px 8px; border: 1px solid var(--line-2); border-radius: 6px; }
.nav { display: flex; gap: 2px; align-self: stretch; overflow-x: auto; scrollbar-width: none; }
.nav a { display: flex; align-items: center; padding: 0 10px; color: var(--muted); font-weight: 500; white-space: nowrap; box-shadow: inset 0 -2px 0 transparent; }
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--label); }
.grow { flex: 1; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px 5px 9px; border-radius: 999px;
  font: 500 11px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 7%, transparent); }
.chip.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); background: color-mix(in srgb, var(--bad) 8%, transparent); }
.theme { flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 8px;
  border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; }
.theme svg { width: 15px; height: 15px; } .theme circle { fill: none; stroke: currentColor; stroke-width: 1.4; } .theme path { fill: currentColor; }
.theme:hover { color: var(--ink); border-color: var(--rule); }

/* a page's head: the label, one sentence, what it means */
.page { padding: 36px 0 24px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.label { margin: 0; font: 500 11px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--label); }
.label.sm { margin-top: 22px; color: var(--muted); }
.lede { margin: 10px 0 0; max-width: 34em; font-weight: 300; font-size: clamp(26px, 2.5vw, 34px); line-height: 1.16;
  letter-spacing: -0.03em; color: var(--ink); }
.lede .t-ok, .lede .t-bad { font-weight: 400; }
.mono-h { font-family: var(--mono); font-weight: 400; letter-spacing: -0.02em; }
.sub { margin: 10px 0 0; max-width: 60em; color: var(--muted); font-size: 15px; }
.sub .t-ok, .sub .t-warn, .sub .t-bad { font-weight: 500; }
.seg { display: inline-flex; flex: none; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.seg a { padding: 6px 11px; font: 500 11px/1.4 var(--mono); letter-spacing: 0.1em; color: var(--muted); }
.seg a + a { border-left: 1px solid var(--line-2); }
.seg a.on { background: var(--ink); color: var(--bg); }

/* the stat strip: one card, tiles divided by hairlines */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 20px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 15px; border-left: 1px solid var(--line); min-width: 0; }
.tile:first-child { border-left: 0; }
.tile .k { font: 500 10.5px/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tile .v { font: 400 24px/1.1 var(--mono); letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.tile .s { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.ok .v { color: var(--ok); } .tile.bad .v { color: var(--bad); } .tile.warn .v { color: var(--look); }
.tile.ok::before, .tile.bad::before, .tile.warn::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: currentColor; }
.tile.ok::before { color: var(--ok); } .tile.bad::before { color: var(--bad); } .tile.warn::before { color: var(--look); }

/* cards and grids */
.grid { display: grid; gap: 20px; margin-bottom: 20px; }
.g-look { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.g-runs { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.g-ev { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.card { background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); padding: 18px 20px 20px; min-width: 0; margin-bottom: 20px; }
.grid > .card { margin-bottom: 0; }
.card > .label:first-child { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; color: var(--muted); }
.card.pad { padding: 26px 28px; }
.more-l { font: 500 11px/1 var(--mono); letter-spacing: 0.1em; color: var(--label); }
.empty { margin: 8px 0; color: var(--muted); }
.fine { margin: 14px 0 0; font-size: 12px; color: var(--dim); }
.fine a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 2px; }

/* the seal: verified, in the verifier's word */
.seal { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 6px 12px 6px 8px; border-radius: 999px; border: 1.5px solid;
  font: 600 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.seal.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 8%, transparent); }
.seal.bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 8%, transparent); }
.seal-i { width: 16px; height: 16px; flex: none; }
.seal-i circle { fill: currentColor; } .seal-i path { fill: none; stroke: var(--surface); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.seal.sm { padding: 3px 8px 3px 5px; border-width: 1px; font-size: 10px; letter-spacing: 0.1em; gap: 5px; }
.seal.sm .seal-i { width: 12px; height: 12px; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font: 500 11px/1.6 var(--mono); letter-spacing: 0.04em; white-space: nowrap; }
.pill.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.pill.quiet { color: var(--muted); background: var(--sunk); }
.pill.info { color: var(--info); background: color-mix(in srgb, var(--info) 10%, transparent); }
.pill.bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); }
.pill.warn { color: var(--look); background: color-mix(in srgb, var(--look) 11%, transparent); }
.pill.flag { color: var(--flag); background: color-mix(in srgb, var(--flag) 10%, transparent); }
.wdot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; color: var(--muted); }
.wdot i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; }
.wdot.ok { color: var(--ok); } .wdot.ok i { background: currentColor; }
.wdot.bad { color: var(--bad); } .wdot.bad i { background: currentColor; }
.wdot.warn { color: var(--look); }

/* needs a look */
.looks { list-style: none; margin: 0; padding: 0; }
.look { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 4px 14px; align-items: start; padding: 12px 0 12px 14px;
  border-top: 1px solid var(--line); position: relative; }
.look:first-child { border-top: 0; }
.look::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: var(--line-2); }
.look.bad::before { background: var(--bad); } .look.warn::before { background: var(--look); }
.cnt { font: 400 20px/1.15 var(--mono); letter-spacing: -0.03em; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.look.bad .cnt { color: var(--bad); } .look.warn .cnt { color: var(--look); }
.lw { min-width: 0; }
.lt { margin: 0; font-weight: 500; color: var(--ink); line-height: 1.35; }
.ld { margin: 2px 0 0; color: var(--text); font-size: 13px; overflow-wrap: anywhere; }
.where { margin: 3px 0 0; font: 11.5px/1.5 var(--mono); color: var(--dim); overflow-wrap: anywhere; }
.go { align-self: center; font: 500 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--label);
  padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 6px; }
.go:hover { border-color: var(--label); }
.more { margin: 10px 0 0 14px; font-size: 13px; } .more a { color: var(--label); }
.clear { display: flex; align-items: center; gap: 10px; margin: 6px 0; color: var(--ok); font-weight: 500; }
.clear .seal-i { width: 20px; height: 20px; }

/* charts */
.chart { margin: 0 0 18px; }
.chart:last-child { margin-bottom: 0; }
.chart figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 8px; }
.chart figcaption .label { color: var(--ink); letter-spacing: 0.1em; }
.legend { display: flex; gap: 12px; font: 11px/1.4 var(--mono); color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 9px; height: 9px; border-radius: 2px; }
.plot { position: relative; padding-top: 16px; }
.max { position: absolute; top: 0; left: 0; font: 10.5px/1 var(--mono); color: var(--dim); }
.bars { display: flex; align-items: stretch; gap: 3px; height: 112px; border-bottom: 1px solid var(--rule);
  background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 50%; }
.col { flex: 1; position: relative; min-width: 0; }
.col svg { display: block; width: 100%; height: 100%; }
.col .d { position: absolute; top: calc(100% + 5px); left: 50%; transform: translateX(-50%); font: 10px/1 var(--mono); color: var(--dim); white-space: nowrap; }
.chart .data { margin-top: 26px; }
.data summary { cursor: pointer; font: 500 10.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.data table { margin-top: 8px; width: 100%; border-collapse: collapse; font-size: 12px; }
.data td, .data th { padding: 3px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.b-allow, i.b-allow { fill: var(--allow); background: var(--allow); }
.b-flag, i.b-flag { fill: var(--flag); background: var(--flag); }
.b-ask, i.b-ask { fill: var(--held); background: var(--held); }
.b-deny, i.b-deny { fill: var(--bad); background: var(--bad); }
.meter { display: block; width: 100%; height: 6px; }
.meter .track { fill: var(--sunk); } .meter .fill { fill: var(--label); }

/* tables */
.tw { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.card .tw { border-radius: 8px; }
table { width: 100%; border-collapse: collapse; }
.tw th { position: sticky; top: 0; padding: 9px 12px; text-align: left; white-space: nowrap; background: var(--sunk);
  font: 500 10.5px/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.tw td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 13px; }
.tw tr:last-child td { border-bottom: 0; }
.tw tbody tr:hover td { background: color-mix(in srgb, var(--sunk) 60%, transparent); }
.tw .num { text-align: right; white-space: nowrap; }
.rid { font-family: var(--mono); color: var(--ink); font-weight: 500; }
.rid:hover { color: var(--label); }
.ag { display: block; font-size: 12px; color: var(--muted); }
.c-why { color: var(--text); }
.c-meter { width: 45%; }
.vkey { margin: 6px 0 0; padding: 8px 10px; background: var(--sunk); border-radius: 6px; font-size: 12px; overflow-wrap: anywhere; color: var(--text); }

/* filters */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 16px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; }
.filters label { display: flex; flex-direction: column; gap: 5px; font: 500 10.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.filters label.grow { flex: 1; min-width: 180px; }
select, input[type=search], input[type=password] { font: 13px/1.2 var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line-2);
  border-radius: 8px; padding: 8px 10px; min-width: 0; }
.filters input { width: 100%; font-family: var(--mono); }
button[type=submit], .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 8px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--bg); font: 500 13px/1.2 var(--sans); cursor: pointer; white-space: nowrap; }
.btn:hover, button[type=submit]:hover { color: var(--bg); background: color-mix(in srgb, var(--ink) 86%, var(--label)); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); background: transparent; }
button.link { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* commands */
.cmd { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; padding: 9px 10px 9px 12px; border-radius: 8px;
  background: var(--sunk); border: 1px solid var(--line); min-width: 0; }
.cmd code { flex: 1; min-width: 0; color: var(--ink); font-size: 12.5px; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
.cmd-l { flex: none; font: 500 10px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); }
.copy { flex: none; padding: 5px 9px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted);
  font: 500 10.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.copy:hover { color: var(--ink); border-color: var(--rule); }
.copy.done { color: var(--ok); border-color: var(--ok); }
pre.code, .qcard pre { margin: 10px 0 0; padding: 12px 14px; border-radius: 8px; background: var(--sunk); border: 1px solid var(--line);
  font-size: 12px; line-height: 1.55; color: var(--ink); overflow-x: auto; white-space: pre; }
.qcard pre { max-height: 320px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }

/* steps */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps > li { position: relative; padding: 0 0 18px 40px; counter-increment: s; }
.steps > li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 1px; font: 500 12px/1.4 var(--mono); color: var(--label); }
.steps p { margin: 0 0 4px; }
.steps.big > li { padding-bottom: 26px; }
.steps.big > li + li { padding-top: 22px; border-top: 1px solid var(--line); }
.steps.big > li + li::before { top: 24px; }
.steps h3 { margin: 0 0 4px; font-size: 17px; font-weight: 500; letter-spacing: -0.015em; color: var(--ink); }

/* a run */
.runhead { margin-bottom: 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--label); }
.rh-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.rh-title { margin-top: 0; overflow-wrap: anywhere; }
.rid-l { display: block; margin-top: 6px; font-size: 13px; letter-spacing: 0; color: var(--muted); }
.rh-top .seal { margin-top: 4px; padding: 10px 18px 10px 12px; font-size: 14px; }
.rh-top .seal .seal-i { width: 20px; height: 20px; }
.rh-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.15fr); gap: 0; margin-top: 20px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); }
.rh-grid > * { padding: 16px 18px; min-width: 0; }
.rh-grid > * + * { border-left: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; gap: 12px 14px; margin: 0; }
.facts dt { font: 500 10px/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; font: 13px/1.35 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.facts div:last-child { grid-column: 1 / -1; }
.proofbox .label, .evbox .label { color: var(--muted); }
.pb-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 4px 0 14px; font-size: 13px; color: var(--ink); }
.pb-line:last-child { margin-bottom: 0; }
.pb-bad { margin: 0; color: var(--bad); font-size: 13px; }
.ev-a { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.viewer-wrap { margin: 22px 0 0; }
.viewer-l { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 8px; }
.viewer-l a { font-size: 13px; color: var(--muted); }
.viewer { display: block; width: 100%; height: max(640px, calc(100vh - 140px)); border: 1px solid var(--line-2); border-radius: 12px; background: #000; }

/* evidence */
.qcard { padding: 14px 0 16px; border-top: 1px solid var(--line); }
.qcard:first-of-type { border-top: 0; padding-top: 2px; }
.q-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; font-size: 12px; }
.q-why { margin: 10px 0 0; font-size: 15px; color: var(--ink); max-width: 60em; }
.q-a { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.q-a a { color: var(--label); }
.qcard summary { margin-top: 10px; cursor: pointer; font-size: 13px; color: var(--muted); }
.slipcol { padding: 6px 4px 0; }
.paper { filter: drop-shadow(0 10px 16px var(--slip-shadow)); max-width: 420px; margin: 0 auto; }
.slip { position: relative; padding: 16px 16px 30px; font: 12px/1.6 var(--mono);
  background: repeating-linear-gradient(0deg, transparent 0 5px, var(--ruled) 5px 6px), var(--paper);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%; }
.slip::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--g1), var(--g2), var(--g3)); }
.slip-h { display: flex; justify-content: space-between; margin: 0; color: var(--ink); font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; }
.slip .kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 1px 12px; margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed var(--rule); }
.slip .kv dt { color: var(--dim); } .slip .kv dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); }
.slip .bars { display: block; width: 100%; height: 40px; margin: 14px 0 6px; color: var(--ink); }
.digest { display: block; font-size: 10.5px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }

/* footer, sign-in */
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0 40px; border-top: 1px solid var(--line); }
.foot p { margin: 0; max-width: 60em; font-size: 12px; color: var(--dim); }
.foot form { margin: 0; }
body.signin { min-height: 100vh; display: grid; place-items: center;
  background: radial-gradient(42% 520px at 82% 0, color-mix(in srgb, var(--g3) 8%, transparent), transparent 70%),
    radial-gradient(36% 420px at 6% 0, color-mix(in srgb, var(--g1) 9%, transparent), transparent 70%), var(--bg); }
.signin-box { width: min(460px, 100% - 32px); padding: 40px 0; }
.signin-box .lede { font-size: 30px; margin-top: 28px; }
.signin-f { display: flex; flex-direction: column; gap: 8px; margin-top: 26px; }
.signin-f label { font: 500 10.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.signin-f input { font-family: var(--mono); padding: 11px 12px; }
.signin-f button { margin-top: 6px; padding: 11px 14px; }
.signin-box.legal { width: min(720px, 100% - 32px); }
.legal h1 { margin: 28px 0 6px; font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); }
.legal h2 { margin: 26px 0 6px; font-size: 16px; color: var(--ink); }
.legal p, .legal li { line-height: 1.6; }
.legal ul { margin: 6px 0; padding-left: 20px; }
.legal li + li { margin-top: 6px; }
.legal a, .legal-l a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.legal-l { margin: 28px 0 0; font-size: 13px; color: var(--muted); }
.legal-l a { color: var(--muted); }
.err { margin: 20px 0 0; padding: 10px 12px; border-radius: 8px; color: var(--bad); background: color-mix(in srgb, var(--bad) 8%, transparent); }

@media (max-width: 1080px) {
  .g-look, .g-runs, .g-ev { grid-template-columns: minmax(0, 1fr); }
  .rh-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rh-grid > .facts { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .rh-grid > .proofbox { border-left: 0; }
  .strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tile:nth-child(4n + 1) { border-left: 0; }
  .tile:nth-child(n + 5) { border-top: 1px solid var(--line); }
  .c-flag, .c-len, .c-id { display: none; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .top-in { flex-wrap: wrap; height: auto; padding: 10px 0 0; gap: 10px 12px; }
  .brand .word { letter-spacing: 0.2em; }
  .nav { order: 9; flex-basis: 100%; height: 40px; margin: 0 -8px; }
  .space { display: none; }
  .page { padding-top: 24px; }
  .head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .lede { font-size: 25px; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile:nth-child(odd) { border-left: 0; } .tile:nth-child(even) { border-left: 1px solid var(--line); }
  .tile:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .tile .v { font-size: 21px; }
  .card { padding: 16px 14px; border-radius: 10px; }
  .card.pad { padding: 20px 16px; }
  .look { grid-template-columns: 44px minmax(0, 1fr); padding-left: 12px; }
  .look .go { grid-column: 2; justify-self: start; margin-top: 6px; }
  .cnt { font-size: 17px; }
  .rh-top { flex-direction: column; }
  .rh-grid { grid-template-columns: minmax(0, 1fr); }
  .rh-grid > * + * { border-left: 0; border-top: 1px solid var(--line); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .viewer { height: 78vh; }
  .c-start, .c-state, .c-gaps, .c-wit, .c-last, .c-runs, .c-why { display: none; }
  .tw th, .tw td { padding: 8px 9px; }
  .filters label { flex: 1 1 40%; }
  .foot { flex-direction: column; align-items: flex-start; }
  .steps > li { padding-left: 32px; }
}
@media (prefers-reduced-motion: no-preference) {
  a, .go, .copy, .theme, .btn { transition: color 120ms, border-color 120ms, background-color 120ms; }
}
.caveats { margin: -6px 0 14px; padding: 0; list-style: none; font-size: 12px; color: var(--muted); }
.caveats li { margin: 4px 0 0; overflow-wrap: anywhere; }
.caveats li.warn b { color: var(--look); font: 600 10.5px/1.4 var(--mono); letter-spacing: 0.08em; }
.empty.flat { margin: 2px 0 6px; padding: 18px 0; text-align: center; border: 1px dashed var(--line-2); border-radius: 8px; font-size: 13px; }
.chip .cs { display: none; }
@media (max-width: 720px) {
  .chip .cl { display: none; } .chip .cs { display: inline; }
  .seal.sm { padding: 0; border: 0; background: none; } .seal.sm span { display: none; } .seal.sm .seal-i { width: 16px; height: 16px; }
  .c-act { display: none; }
}
.cmd.block { align-items: flex-start; }
.cmd.block pre { flex: 1; min-width: 0; margin: 0; overflow-x: auto; }
.cmd.block code { display: block; white-space: pre; font-size: 12.5px; line-height: 1.6; }
.chip.quiet { color: var(--muted); border-color: var(--line-2); }
@media (max-width: 720px) {
  .cmd code { white-space: pre-wrap; overflow-wrap: anywhere; }
  .cmd.block code { white-space: pre; }
}
.sub, .pb-line, .q-why { overflow-wrap: anywhere; }
/* signers and keys */
form.inline { display: inline-block; margin: 0 6px 0 0; }
form.inline .btn { padding: 5px 10px; font-size: 12px; }
.pin { margin: 14px 0 6px; }
.pin label { display: block; margin-bottom: 6px; font: 500 10.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.pin-row { display: flex; gap: 8px; }
.pin-row input { flex: 1; min-width: 0; font: 13px/1.2 var(--mono); color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; }
.made { margin: 0 0 16px; padding: 14px 16px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 6%, transparent); }
.made .cmd { background: var(--surface); }
.made .label { color: var(--ok); }
.page > .err { margin: 0 0 18px; }
.foot form { display: flex; align-items: center; gap: 14px; }
.who { font-size: 12px; color: var(--dim); }
@media (max-width: 720px) { .pin-row { flex-direction: column; } }
.tw .c-log { overflow-wrap: anywhere; }
.tw .c-log .mono { display: block; }
@media (max-width: 720px) { .c-by, .c-n { display: none; } .tw.keys, .tw.tokens { overflow-x: visible; } .tw.keys table, .tw.tokens table { table-layout: fixed; } }
/* the approval page of `tracekit connect` */
.pair { max-width: 820px; }
.code-big { display: inline-flex; gap: 6px; margin: 8px 0 0; font: 500 32px/1 var(--mono); letter-spacing: 0.12em; color: var(--ink); }
.code-big span { padding: 10px 12px; border-radius: 8px; background: var(--sunk); border: 1px solid var(--line-2); }
.check { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px 18px; margin: 22px 0 0; }
.check dt { font: 500 10.5px/1.6 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.check dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.check dd.fp { font: 15px/1.5 var(--mono); letter-spacing: 0.04em; }
.check dd small { display: block; margin-top: 2px; color: var(--muted); font: 12px/1.45 var(--sans); letter-spacing: 0; }
.perms { margin: 24px 0 0; padding: 0; border: 0; }
.perms legend { margin-bottom: 8px; padding: 0; font: 500 10.5px/1.6 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); }
.perm { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 10px; padding: 14px 16px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; }
.perm:has(input:checked) { border-color: color-mix(in srgb, var(--ok) 55%, transparent); background: color-mix(in srgb, var(--ok) 5%, var(--surface)); }
.perm input { margin: 3px 0 0; width: 17px; height: 17px; flex: none; accent-color: var(--ok); }
.perm b { display: block; color: var(--ink); font-weight: 500; }
.perm small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.acts button { padding: 11px 18px; font-size: 14px; }
.timer { font: 12px/1.4 var(--mono); color: var(--muted); }
.perms-more { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.perms-more a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.perm-l { display: inline-flex; align-items: center; gap: 6px; margin: 2px 10px 2px 0; white-space: nowrap; }
button.link.sm { font-size: 12px; }
.c-perm { min-width: 220px; }
@media (max-width: 720px) {
  .check { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .check dd { margin-bottom: 10px; }
  .code-big { font-size: 24px; }
  .c-perm { min-width: 0; }
  .acts button { flex: 1 1 100%; }
  /* a phone: each signer a block of its own, its permissions on lines of their own */
  .tw.tokens thead { display: none; }
  .tw.tokens table, .tw.tokens tbody, .tw.tokens tr, .tw.tokens td { display: block; width: auto; }
  .tw.tokens tr { padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .tw.tokens tr:last-child { border-bottom: 0; }
  .tw.tokens td, .tw.tokens tbody tr:hover td { padding: 2px 0; border: 0; background: none; }
  .tw.tokens td.c-perm { padding: 6px 0; }
  .tw.tokens td:last-child { padding-top: 6px; }
  .tw.tokens td.c-by, .tw.tokens td.c-start { display: inline; color: var(--muted); }
  .tw.tokens td.c-by::before { content: "made by "; }
  .tw.tokens td.c-start::before { content: ", "; }
  .tw.tokens td:last-child { display: block; }
}
/* share links: Shares, and the page a link opens */
.share-f, .share-make { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; }
.share-make { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
label.f { display: flex; flex-direction: column; gap: 5px; font: 500 10.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
label.f.grow { flex: 1; min-width: 220px; }
input[type=date], .share-make input[type=text] { font: 13px/1.2 var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 10px; min-width: 0; }
.share-make input[type=text] { width: 100%; }
.pick { margin-top: 18px; }
.pick-h { margin: 0 0 10px; color: var(--ink); }
.seen summary { cursor: pointer; font-size: 13px; color: var(--text); white-space: nowrap; }
.seen ol { margin: 8px 0 0; padding: 0 0 0 16px; font-size: 12px; color: var(--muted); }
.seen li + li { margin-top: 3px; }
tr.dim-row td { color: var(--dim); }
.c-link { min-width: 260px; width: 380px; }
.c-link .cmd { margin: 0 0 6px; max-width: 380px; }
.c-link form.inline { margin: 0; }
.ag-n { font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.tool { display: inline-block; margin: 0 8px 2px 0; font: 12px/1.5 var(--mono); color: var(--text); white-space: nowrap; }
.c-tools { min-width: 160px; }
.c-agent { min-width: 120px; }
.c-share { min-width: 220px; }
.c-until { white-space: nowrap; }
.tw.shares td.c-by { white-space: nowrap; }
.c-dec { font-size: 12px; color: var(--text); }
.btn.sm { padding: 5px 10px; font-size: 12px; }
@media (max-width: 720px) {
  .share-f label.f, .share-make label.f, .share-f .btn, .share-make button { flex: 1 1 100%; }
  .share-f select, .share-f input, .share-make select { width: 100%; }
  .c-link { min-width: 0; width: auto; }
  .c-link .cmd { max-width: none; }
  /* a phone: each shared run, and each share, a block of its own */
  .tw.share-runs thead, .tw.shares thead { display: none; }
  .tw.share-runs table, .tw.share-runs tbody, .tw.share-runs tr, .tw.share-runs td,
  .tw.shares table, .tw.shares tbody, .tw.shares tr, .tw.shares td { display: block; width: auto; }
  .tw.share-runs tr, .tw.shares tr { padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .tw.share-runs tr:last-child, .tw.shares tr:last-child { border-bottom: 0; }
  .tw.share-runs td, .tw.shares td, .tw.share-runs tbody tr:hover td, .tw.shares tbody tr:hover td { padding: 2px 0; border: 0; background: none; }
  .tw.share-runs td.num, .tw.shares td.num { text-align: left; }
  .tw.share-runs td:last-child, .tw.shares td:last-child { padding-top: 8px; }
  .tw.shares td.c-by { display: block; }
  .tw.shares td.num::after { content: " runs"; color: var(--muted); }
  .tw.shares td.c-by::before { content: "made by "; color: var(--muted); }
  .tw.shares .until::before { content: "until "; color: var(--muted); font-family: var(--sans); }
  .tw.share-runs td.c-rec::after { content: " records"; color: var(--muted); }
  .tw.share-runs td.c-chk, .tw.share-runs td.c-wit { display: inline-block; margin: 4px 12px 0 0; }
  .c-agent, .c-share { min-width: 0; }
  .tw.share-runs .seal.sm { padding: 3px 8px 3px 5px; border: 1px solid; background: color-mix(in srgb, var(--ok) 8%, transparent); }
  .tw.share-runs .seal.sm span { display: inline; }
  .tw.share-runs .seal.sm .seal-i { width: 12px; height: 12px; }
}
/* SAVE: the overview's money line and Fixes (console/money.py; the approved mocks/fixes.html) */
.money { margin: 10px 0 0; font-weight: 300; font-size: clamp(20px, 2vw, 25px); line-height: 1.25; letter-spacing: -0.02em; color: var(--ink); }
.money .usd, .lede .usd { font-family: var(--mono); font-weight: 400; letter-spacing: -0.04em; color: var(--label); }
.money a { font-size: 15px; letter-spacing: 0; font-weight: 500; color: var(--label); margin-left: 4px; white-space: nowrap; }
.fix { position: relative; padding: 22px 24px 20px 74px; }
.fix .rank { position: absolute; left: 24px; top: 24px; font: 500 13px/1 var(--mono); color: var(--label); }
.fix-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.fix-t { margin: 0; font-size: 19px; font-weight: 500; letter-spacing: -0.015em; color: var(--ink); }
.fix-why { margin: 6px 0 0; color: var(--text); max-width: 60em; }
.fix-why.apart { color: var(--muted); font-size: 13px; }
.save { flex: none; text-align: right; }
.save b { display: block; font: 400 28px/1 var(--mono); letter-spacing: -0.02em; color: var(--label); }
.save span { font: 11px/1.4 var(--mono); color: var(--muted); letter-spacing: 0.04em; }
.fix.na .save b { color: var(--dim); }
.fix-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px 24px; margin-top: 18px; }
.fix-grid .label { color: var(--muted); margin-bottom: 6px; }
.fix .cmd { align-items: flex-start; }
.fix .cmd code { white-space: pre-wrap; overflow-wrap: anywhere; }
.behind { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.behind li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.behind li:first-child { border-top: 0; }
.behind a, .behind .mono { font-family: var(--mono); }
.behind .d { color: var(--muted); overflow-wrap: anywhere; }
.how { margin-top: 10px; }
.how summary { cursor: pointer; font-size: 12.5px; color: var(--muted); }
.how ul { margin: 8px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--text); }
.how li + li { margin-top: 4px; }
.fix-f { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.src { margin: 0; font: 11.5px/1.5 var(--mono); color: var(--dim); max-width: 70em; }
.done-pill, .na-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 500 11px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.done-pill { color: var(--ok); background: color-mix(in srgb, var(--ok) 9%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); }
.na-pill { color: var(--muted); background: var(--sunk); border: 1px solid var(--line-2); }
.after { margin-top: 18px; padding: 16px 18px; border-radius: 10px; background: var(--sunk); border: 1px solid var(--line); }
.after-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 0 0 12px; }
.after-h b { color: var(--ink); font-weight: 500; }
.nct { font: 500 10.5px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ba > div { padding: 12px 14px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.ba .k { font: 500 10.5px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ba .row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 6px; font-family: var(--mono); }
.ba .v { font-size: 22px; letter-spacing: -0.03em; color: var(--ink); }
.ba .arrow { color: var(--dim); }
.ba .n { display: block; margin-top: 4px; font: 11.5px/1.4 var(--mono); color: var(--muted); }
.ba .delta { padding: 1px 8px; border-radius: 999px; font: 500 11.5px/1.6 var(--mono); color: var(--muted); background: var(--sunk); }
.ba .delta.worse { color: var(--look); background: color-mix(in srgb, var(--look) 12%, transparent); }
.ba .delta.better { color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.ba > div.worse-box { border-color: color-mix(in srgb, var(--look) 45%, transparent); }
.after .next { margin: 12px 0 0; font-size: 13px; color: var(--text); }
.after .next b { color: var(--look); font-weight: 500; }
.after .next.good b { color: var(--ok); }
@media (max-width: 720px) {
  .fix-grid { grid-template-columns: minmax(0, 1fr); }
  .fix { padding: 18px 14px 16px; }
  .fix .rank { position: static; display: block; margin-bottom: 8px; }
  .fix-h { flex-direction: column; }
  .save { text-align: left; }
  .ba { grid-template-columns: minmax(0, 1fr); }
}
