@font-face { font-family: "Geist"; src: url("/fonts/Geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  /* Ink and paper, one signature blue. The desk is paper, a document is white, the rail is ink. */
  --canvas: #f5f4f0;
  --bg: #ffffff;
  --bg-2: #faf9f7;
  --bg-3: #f1f0ec;
  --bg-hover: #f6f5f2;
  --bg-active: #eeede8;
  --line: #e9e7e1;
  --line-2: #d9d6cd;
  --text: #0a0b0d;
  --text-2: #53555b;
  --text-3: #6e6f75;
  --ink: #07080a;
  --ink-text: #ffffff;
  --accent: #3050ff;
  --accent-soft: #eef1ff;
  --accent-line: #c7d1ff;
  /* Decisions. The first of each pair is for words, the second for marks: a bar, a dot, a seal.
     The marks are checked to stay apart for colour-blind readers; the words for contrast. */
  --allow: #0a7a43;
  --m-allow: #16a05e;
  --allow-bg: #e7f5ec;
  --deny: #b8261f;
  --m-deny: #cf3b30;
  --deny-bg: #fdecea;
  --esc: #8f5200;
  --m-esc: #e8a700;
  --esc-bg: #fcf1dd;
  --ref: #55565c;
  --m-ref: #85878e;
  --ref-bg: #efeee9;
  --rail: #07080a;
  --shadow-1: 0 1px 2px rgba(10, 11, 13, .05);
  --shadow-2: 0 6px 16px -4px rgba(10, 11, 13, .12), 0 2px 5px -2px rgba(10, 11, 13, .06);
  --shadow-3: 0 28px 64px -16px rgba(10, 11, 13, .24), 0 10px 22px -10px rgba(10, 11, 13, .12);
  --r-1: 4px;
  --r-2: 6px;
  --r-3: 12px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --canvas: #0a0b0d;
  --bg: #111317;
  --bg-2: #15171c;
  --bg-3: #1c1f25;
  --bg-hover: #171a1f;
  --bg-active: #20232a;
  --line: #22252c;
  --line-2: #32363f;
  --text: #f1f2f4;
  --text-2: #a5a9b3;
  --text-3: #858a95;
  --ink: #f1f2f4;
  --ink-text: #07080a;
  --accent: #8098ff;
  --accent-soft: #151c40;
  --accent-line: #2b3a80;
  --allow: #45c987;
  --m-allow: #22ad7d;
  --allow-bg: #0e2a1d;
  --deny: #ff7669;
  --m-deny: #f05b4f;
  --deny-bg: #351412;
  --esc: #f2b450;
  --m-esc: #e8ab30;
  --esc-bg: #33240b;
  --ref: #a5a9b3;
  --m-ref: #7f8591;
  --ref-bg: #1c1f25;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 8px 20px -4px rgba(0, 0, 0, .55);
  --shadow-3: 0 30px 70px -14px rgba(0, 0, 0, .75);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 14px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: #fff; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 30px; line-height: 1.1; font-weight: 450; letter-spacing: -.04em; text-wrap: balance; }
h2 { font-size: 16px; line-height: 1.3; font-weight: 550; letter-spacing: -.02em; }
h3 { font-size: 13px; font-weight: 550; color: var(--text-2); }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.mono { font-family: var(--mono); font-size: .92em; font-feature-settings: "zero"; letter-spacing: -.01em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 8px; }
.col { display: flex; flex-direction: column; }
.trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }

/* ---- controls ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: var(--r-1); background: var(--bg); color: var(--text);
  font-weight: 500; font-size: 13px; white-space: nowrap; box-shadow: var(--shadow-1);
  transition: background .15s, border-color .15s, transform .1s var(--ease), opacity .15s;
}
.btn:hover { background: var(--bg-hover); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.primary { background: var(--ink); color: var(--ink-text); border-color: var(--ink); }
.btn.primary:hover { opacity: .88; }
.btn.accent { background: var(--accent); color: #fff; border-color: var(--accent); }
:root[data-theme="dark"] .btn.accent { color: #0d0d0f; }
.btn.accent:hover { filter: brightness(1.07); }
.btn.ghost { border-color: transparent; box-shadow: none; background: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--bg-hover); color: var(--text); }
.btn.danger { color: var(--deny); }
.btn.danger.solid { background: var(--deny); border-color: var(--deny); color: #fff; }
.btn.lg { height: 40px; padding: 0 16px; font-size: 14px; border-radius: var(--r-2); }
.btn.sm { height: 26px; padding: 0 8px; font-size: 12px; }
.btn.icon { width: 32px; padding: 0; }
.btn.sm.icon { width: 26px; }
.btn .spin { width: 14px; height: 14px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 13px; font-weight: 500; color: var(--text); }
.field .hint { font-size: 12px; color: var(--text-3); }
.field .err { font-size: 12px; color: var(--deny); }
.input, .textarea, .select {
  width: 100%; height: 36px; padding: 0 10px; background: var(--bg); border: 1px solid var(--line-2);
  border-radius: var(--r-2); outline: none; transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; padding: 8px 10px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .textarea:hover { border-color: var(--text-3); }
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input.bad { border-color: var(--deny); }
.input.lg { height: 42px; font-size: 15px; }

.chip {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: 5px;
  background: var(--bg-3); color: var(--text-2); font-size: 12px; font-family: var(--mono); white-space: nowrap;
}
.chip button { all: unset; cursor: pointer; display: grid; place-items: center; opacity: .6; }
.chip button:hover { opacity: 1; }
.chip.esc { background: var(--esc-bg); color: var(--esc); }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chipbox { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; min-height: 36px; border: 1px solid var(--line-2); border-radius: var(--r-2); background: var(--bg); cursor: text; }
.chipbox:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chipbox input { flex: 1; min-width: 90px; border: 0; outline: 0; background: transparent; height: 22px; font-family: var(--mono); font-size: 12px; }

.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px 0 7px; border-radius: 4px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.allow { color: var(--allow); background: var(--allow-bg); }
.badge.deny { color: var(--deny); background: var(--deny-bg); }
.badge.escalate { color: var(--esc); background: var(--esc-bg); }
.badge.refused, .badge.neutral { color: var(--ref); background: var(--ref-bg); }
.badge.late { color: var(--esc); background: transparent; box-shadow: inset 0 0 0 1px var(--esc); }
.badge.info { color: var(--accent); background: var(--accent-soft); }
.kbd { font: 500 11px var(--sans); color: var(--text-3); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 5px; background: var(--bg); }

.avatar { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 600; color: #fff; flex: none; letter-spacing: 0; }
.avatar.lg { width: 44px; height: 44px; border-radius: 11px; font-size: 17px; }

/* ---- brand ---- */
/* The mark is FRAME's symbol. Beside the name it is centred on the lowercase letters: it rises above
   them and drops below the line by the same amount. The name is 17px, so the symbol is 13px and drops 2px. */
.mark { flex: none; display: block; fill: currentColor; }
.lockup { display: inline-flex; align-items: baseline; gap: 8px; font-size: 17px; line-height: 1; white-space: nowrap; }
.lockup .mark { width: auto; height: 13px; position: relative; top: 2px; }
.wordmark { font-weight: 500; letter-spacing: -.045em; font-size: 17px; text-transform: lowercase; }

/* ---- app shell ---- */
.shell { display: grid; grid-template-columns: 236px 1fr; height: 100vh; }
.side { background: var(--bg-2); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 10px; gap: 2px; min-height: 0; }
.ws { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--r-1); border: 0; background: transparent; text-align: left; width: 100%; margin-bottom: 8px; }
.ws:hover { background: var(--bg-hover); }
.ws b { font-weight: 600; font-size: 13.5px; }
.nav { display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 8px; border-radius: var(--r-1); color: var(--text-2); text-decoration: none; font-size: 13.5px; font-weight: 450; border: 0; background: transparent; width: 100%; text-align: left; }
.nav:hover { background: var(--bg-hover); color: var(--text); }
.nav.on { background: var(--bg-active); color: var(--text); font-weight: 550; }
.nav .count { margin-left: auto; font-size: 11px; font-weight: 600; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center; background: var(--esc-bg); color: var(--esc); }
.side-label { font: 400 10.5px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 16px 8px 5px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.signer { margin: 8px 0 6px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--bg); font-size: 12px; color: var(--text-2); line-height: 1.45; }
.signer b { color: var(--text); font-weight: 550; display: block; margin-bottom: 2px; }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; }
.top { height: 52px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.top h2 { font-size: 15px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--allow); box-shadow: 0 0 0 0 var(--allow); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--allow) 50%, transparent); } 70%, 100% { box-shadow: 0 0 0 6px transparent; } }
.body { flex: 1; overflow: auto; min-height: 0; }
.page { padding: 24px 28px 60px; max-width: 1040px; }
.page.narrow { max-width: 760px; }
.page > .lede { color: var(--text-2); max-width: 62ch; margin: 6px 0 22px; }

.tabs { display: flex; gap: 2px; padding: 8px 20px; border-bottom: 1px solid var(--line); flex: none; align-items: center; }
.tab { height: 28px; padding: 0 10px; border: 0; background: transparent; border-radius: var(--r-1); color: var(--text-2); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.tab:hover { background: var(--bg-hover); color: var(--text); }
.tab.on { background: var(--bg-active); color: var(--text); }
.tab .n { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* ---- table ---- */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { position: sticky; top: 0; z-index: 1; background: var(--bg); text-align: left; font: 400 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); height: 34px; padding: 0 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { height: 42px; padding: 0 12px; border-bottom: 1px solid var(--line); vertical-align: middle; max-width: 0; }
.tbl th:first-child, .tbl td:first-child { padding-left: 20px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 20px; }
.tbl tbody tr { cursor: pointer; transition: background .12s; }
.tbl tbody tr:hover { background: var(--bg-2); }
.tbl tbody tr.sel { background: var(--accent-soft); }
.tbl tbody tr.new td { animation: rowin .5s var(--ease); }
@keyframes rowin { from { background: var(--accent-soft); opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.tbl .who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tbl .who .two { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.tbl .who .two small { font-size: 11.5px; color: var(--text-3); }
.ilogo.sm { width: 24px; height: 24px; border-radius: 6px; }
.avatar.machine { background: var(--bg-3, var(--bg-2)); color: var(--text-2); border: 1px solid var(--line-2); }
.avatar.machine svg { width: 13px; height: 13px; }
.tbl .act { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.tbl .act b { font-weight: 500; font-family: var(--mono); font-size: 12.5px; flex: none; }
.tbl .act span { color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 12px; }

/* ---- drawer ---- */
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--bg); border-left: 1px solid var(--line); box-shadow: var(--shadow-3); display: flex; flex-direction: column; z-index: 5; animation: drawer .26s var(--ease); }
@keyframes drawer { from { transform: translateX(24px); opacity: 0; } }
.drawer-head { height: 52px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow: auto; padding: 20px; display: flex; flex-direction: column; gap: 20px; }
.drawer-foot { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; }
.kv { display: grid; grid-template-columns: 128px 1fr; gap: 9px 12px; font-size: 13px; align-items: baseline; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.sect { display: flex; flex-direction: column; gap: 10px; }
.sect > h3 { display: flex; align-items: center; gap: 6px; }
.verdict { padding: 14px; border-radius: var(--r-3); display: flex; flex-direction: column; gap: 4px; }
.verdict b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.verdict.allow { background: var(--allow-bg); color: var(--allow); }
.verdict.deny { background: var(--deny-bg); color: var(--deny); }
.verdict.escalate { background: var(--esc-bg); color: var(--esc); }
.verdict.refused { background: var(--ref-bg); color: var(--ref); }
.verdict span { font-size: 13px; color: var(--text); opacity: .86; }
.checks { display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.checks li { display: flex; gap: 8px; align-items: flex-start; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks .ok { color: var(--allow); }
.checks .no { color: var(--deny); }
.checks .wait { color: var(--text-3); }

.card { border: 1px solid var(--line); border-radius: var(--r-3); background: var(--bg); }
.card.pad { padding: 18px; }
.callout { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-2); background: var(--bg-2); border: 1px solid var(--line); font-size: 13px; color: var(--text-2); line-height: 1.5; }
.callout b { color: var(--text); font-weight: 550; }
.code { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-2); padding: 12px 14px; font-family: var(--mono); font-size: 12.5px; line-height: 1.65; overflow: auto; white-space: pre; color: var(--text); }
.code .copy { position: absolute; top: 6px; right: 6px; }
.code .c { color: var(--text-3); }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 72px 24px; color: var(--text-2); }
.empty .glyph { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-3); display: grid; place-items: center; color: var(--text-2); margin-bottom: 4px; }
.empty b { color: var(--text); font-size: 15px; font-weight: 600; }
.empty p { max-width: 44ch; font-size: 13.5px; }
.skel { height: 12px; border-radius: 4px; background: linear-gradient(90deg, var(--bg-3), var(--bg-hover), var(--bg-3)); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }

.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 50; align-items: center; }
.toast { background: var(--ink); color: var(--ink-text); padding: 9px 14px; border-radius: var(--r-2); font-size: 13px; font-weight: 500; box-shadow: var(--shadow-2); display: flex; gap: 8px; align-items: center; animation: toast .3s var(--ease); }
.toast.bad { background: var(--deny); color: #fff; }
@keyframes toast { from { transform: translateY(10px); opacity: 0; } }

.menu { position: fixed; z-index: 40; min-width: 200px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-2); box-shadow: var(--shadow-2); padding: 4px; animation: pop .14s var(--ease); }
@keyframes pop { from { transform: scale(.97) translateY(-3px); opacity: 0; } }
.menu button { display: flex; align-items: center; gap: 8px; width: 100%; height: 30px; padding: 0 8px; border: 0; background: transparent; border-radius: 5px; font-size: 13px; text-align: left; }
.menu button:hover { background: var(--bg-hover); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.menu .who { padding: 8px; font-size: 12px; color: var(--text-3); }
.menu .who b { display: block; color: var(--text); font-size: 13px; font-weight: 550; }

/* ---- passport: the one rich object ---- */
.passport { position: relative; width: 100%; max-width: 400px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line-2); box-shadow: var(--shadow-3); overflow: hidden; }
.passport .p-top { padding: 20px 20px 16px; display: flex; gap: 14px; align-items: center; }
.passport .p-name { font-size: 18px; font-weight: 620; letter-spacing: -.02em; line-height: 1.2; overflow-wrap: anywhere; }
.passport .p-sub { font-size: 12.5px; color: var(--text-3); }
.passport .p-rows { padding: 0 20px 16px; display: flex; flex-direction: column; gap: 12px; }
.passport .p-row { display: flex; flex-direction: column; gap: 5px; }
.passport .p-row > span { font-size: 11.5px; color: var(--text-3); font-weight: 500; }
.passport .p-row > div { font-size: 13px; }
.passport .p-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.passport .p-mrz { border-top: 1px dashed var(--line-2); background: var(--bg-2); padding: 12px 20px 14px; font-family: var(--mono); font-size: 10.5px; line-height: 1.6; color: var(--text-3); letter-spacing: .04em; overflow-wrap: anywhere; min-height: 62px; }
.passport .p-mrz b { color: var(--text-2); font-weight: 500; }
.passport .seal { position: absolute; top: 16px; right: 16px; width: 54px; height: 54px; color: var(--allow); opacity: 0; transform: scale(1.5) rotate(-18deg); }
.passport.signed .seal { opacity: 1; transform: rotate(-8deg); transition: transform .55s var(--ease), opacity .2s; }
.passport.revoked .seal { color: var(--deny); }
.passport.revoked { filter: saturate(.6); }

/* ---- auth ---- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 520px) 1fr; }
.auth-form { padding: 32px 56px; display: flex; flex-direction: column; }
.auth-form form { margin: auto 0; display: flex; flex-direction: column; gap: 16px; max-width: 380px; width: 100%; }
.auth-form h1 { margin-bottom: 2px; }
.auth-stage { background: var(--bg-2); border-left: 1px solid var(--line); display: grid; place-items: center; padding: 48px; overflow: hidden; position: relative; }
.stage-wrap { width: min(640px, 100%); display: flex; flex-direction: column; gap: 22px; }
.stage-wrap > p { font-size: 22px; line-height: 1.3; font-weight: 550; letter-spacing: -.02em; max-width: 22ch; text-wrap: balance; }
.feed { border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg); box-shadow: var(--shadow-3); overflow: hidden; }
.feed-head { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 550; }
.feed-rows { height: 336px; overflow: hidden; display: flex; flex-direction: column; }
.feed-row { display: grid; grid-template-columns: 128px 118px 1fr auto; gap: 10px; align-items: center; height: 42px; flex: none; padding: 0 14px; border-bottom: 1px solid var(--line); font-size: 13px; animation: rowin .5s var(--ease); }
.feed-row .t { font-family: var(--mono); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-row .t span { color: var(--text-3); }
.feed-row .s { color: var(--text-3); font-size: 12px; font-family: var(--mono); }
.steps-mini { display: flex; flex-direction: column; gap: 10px; color: var(--text-2); font-size: 13.5px; }

/* ---- onboarding ---- */
.ob { min-height: 100vh; display: grid; grid-template-columns: minmax(460px, 560px) 1fr; }
.ob-left { display: flex; flex-direction: column; padding: 28px 56px 32px; min-height: 100vh; }
.ob-head { display: flex; align-items: center; gap: 10px; }
.ob-prog { display: flex; gap: 5px; margin: 34px 0 30px; }
.ob-prog i { height: 3px; flex: 1; border-radius: 3px; background: var(--line-2); transition: background .3s; }
.ob-prog i.on { background: var(--ink); }
.ob-step { display: flex; flex-direction: column; gap: 22px; animation: stepin .4s var(--ease); flex: 1; }
@keyframes stepin { from { opacity: 0; transform: translateY(8px); } }
.ob-step > p.lede { color: var(--text-2); font-size: 15px; margin-top: -12px; max-width: 46ch; }
.ob-foot { display: flex; align-items: center; gap: 10px; margin-top: 28px; }
.ob-right { background: var(--bg-2); border-left: 1px solid var(--line); display: grid; place-items: center; padding: 40px; position: sticky; top: 0; height: 100vh; overflow: hidden; }
.picks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pick { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line-2); border-radius: var(--r-2); background: var(--bg); text-align: left; transition: border-color .15s, background .15s, box-shadow .15s; }
.pick:hover { border-color: var(--text-3); }
.pick.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.pick .pi { width: 30px; height: 30px; border-radius: 8px; background: var(--bg-3); display: grid; place-items: center; flex: none; }
.pick.on .pi { background: var(--bg); color: var(--accent); }
.pick b { font-size: 13.5px; font-weight: 550; display: block; }
.pick span { font-size: 12px; color: var(--text-3); }
.toggle-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row .mono { font-size: 12.5px; }
.sw { position: relative; width: 30px; height: 18px; border-radius: 99px; background: var(--line-2); border: 0; flex: none; transition: background .18s; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .2s var(--ease); }
.sw[aria-checked="true"] { background: var(--ink); }
:root[data-theme="dark"] .sw[aria-checked="true"]::after { background: #0d0d0f; }
.sw[aria-checked="true"]::after { transform: translateX(12px); }
.seg { display: inline-flex; padding: 2px; background: var(--bg-3); border-radius: var(--r-2); gap: 2px; }
.seg button { height: 28px; padding: 0 12px; border: 0; background: transparent; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.seg button.on { background: var(--bg); color: var(--text); box-shadow: var(--shadow-1); }
.sim { width: min(560px, 100%); display: flex; flex-direction: column; gap: 14px; }
.sim .feed-rows { height: auto; min-height: 294px; }
.sim-note { font-size: 13px; color: var(--text-2); min-height: 40px; }
.approve-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-2); background: var(--esc-bg); color: var(--esc); font-size: 13px; font-weight: 500; animation: stepin .3s var(--ease); }
.approve-bar span { color: var(--text); font-weight: 400; }

.listen { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-2); font-size: 13.5px; }
.listen .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--esc); animation: pulse2 1.4s infinite; flex: none; }
.listen.ok { border-color: var(--allow); background: var(--allow-bg); color: var(--allow); }
.listen.ok .dot { background: var(--allow); animation: none; }
.listen.wait { align-items: flex-start; border-color: var(--m-esc); background: var(--esc-bg); color: var(--esc); line-height: 1.5; }
.listen.wait .dot { margin-top: 6px; animation: none; }
.listen + .listen { margin-top: 10px; }
@keyframes pulse2 { 50% { opacity: .3; } }

.rule { border: 1px solid var(--line); border-radius: var(--r-3); padding: 14px; display: grid; grid-template-columns: 130px 1fr auto; gap: 10px 12px; align-items: start; background: var(--bg); }
.rule .textarea { font-family: var(--mono); font-size: 12.5px; }
.rule .full { grid-column: 1 / -1; }
.statline { display: flex; gap: 28px; padding: 16px 0 20px; }
.statline div { display: flex; flex-direction: column; }
.statline b { font-size: 20px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.statline span { font-size: 12px; color: var(--text-3); }

@media (max-width: 900px) {
  .auth, .ob { grid-template-columns: 1fr; }
  .auth-stage, .ob-right { display: none; }
  .auth-form, .ob-left { padding: 24px 20px; }
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .page { padding: 20px 16px 60px; }
  .tbl .hide-sm { display: none; }
  .picks { grid-template-columns: 1fr; }
  .rule { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* refinements after first render */
.seg { align-self: flex-start; }
.code, .mono, .chip, .passport .p-mrz { font-variant-ligatures: none; }
.pick b { color: var(--text); }
.sim-note { font-size: 15px; color: var(--text); line-height: 1.5; min-height: 68px; max-width: 44ch; }
.sim-note b { font-weight: 600; }
.approve-bar { box-shadow: 0 0 0 1px var(--esc), var(--shadow-2); }
textarea, input, select { font-variant-ligatures: none; }
.rule { grid-template-columns: 170px 1fr auto; }
.select { appearance: none; padding-right: 28px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2370717b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; background-size: 14px; }
.mnav { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-rows: 1fr auto; }
  .mnav { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); background: var(--bg-2); padding: 4px 4px max(4px, env(safe-area-inset-bottom)); }
  .mnav a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 5px; border-radius: var(--r-1); text-decoration: none; color: var(--text-3); font-size: 10.5px; font-weight: 500; }
  .mnav a.on { color: var(--text); background: var(--bg-active); }
  .mnav a i { position: absolute; top: 3px; left: 54%; min-width: 15px; height: 15px; border-radius: 99px; background: var(--esc); color: #fff; font-style: normal; font-size: 10px; display: grid; place-items: center; padding: 0 4px; }
  .top { padding: 0 16px; }
  .top .input[type="search"] { width: 150px !important; }
  .tabs { overflow-x: auto; padding: 8px 12px; }
  .tab { flex: none; }
  .tbl th:first-child, .tbl td:first-child { padding-left: 16px; }
  .drawer { width: 100%; }
  .kv { grid-template-columns: 104px 1fr; }
  .page > div[style*="grid-template-columns"], .drawer-body > div[style*="grid-template-columns:1fr 1fr 1fr"], .ob-step > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .statline { flex-wrap: wrap; gap: 18px; }
  h1 { font-size: 24px; }
}

.live.still i { animation: none; }

/* ================= product polish pass ================= */
.shell { background: var(--canvas); }
.side { background: transparent; border-right: 0; padding: 10px 8px 10px 10px; }
.main { margin: 8px 8px 8px 0; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-1); }
.signer { background: var(--bg); box-shadow: var(--shadow-1); }
.nav.on { background: var(--bg); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); }
:root[data-theme="dark"] .nav.on { background: var(--bg-active); }
.ws:hover, .nav:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
.top { height: 54px; }
.crumb { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.crumb .muted { font-weight: 450; }
.crumb b { font-weight: 600; letter-spacing: -.01em; }

/* command palette trigger and dialog */
.kbtn { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px 0 10px; margin: 0 0 10px; width: 100%; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--bg); color: var(--text-3); font-size: 13px; box-shadow: var(--shadow-1); }
.kbtn:hover { border-color: var(--line-2); color: var(--text-2); }
.kbtn .kbd { margin-left: auto; }
.scrim { position: fixed; inset: 0; z-index: 60; background: color-mix(in srgb, #0b0b0f 38%, transparent); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); display: grid; place-items: start center; padding-top: 14vh; animation: fade .16s ease-out; }
@keyframes fade { from { opacity: 0; } }
.palette { width: min(560px, calc(100vw - 32px)); background: var(--bg); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-3); overflow: hidden; animation: pop .18s var(--ease); }
/* asking for the signing key, over whatever was being signed */
.keyask { width: min(440px, calc(100vw - 32px)); background: var(--bg); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-3); padding: 22px; display: flex; flex-direction: column; gap: 12px; animation: pop .18s var(--ease); }
.keyask h2 { font-size: 16px; font-weight: 600; margin: 0; }
.keyask p { font-size: 13.5px; line-height: 1.5; color: var(--text-2); margin: 0; }
.palette input { width: 100%; height: 50px; border: 0; outline: 0; background: transparent; padding: 0 18px; font-size: 15px; border-bottom: 1px solid var(--line); }
.palette .list { max-height: 340px; overflow: auto; padding: 6px; }
.palette .grp { font-size: 11.5px; font-weight: 550; color: var(--text-3); padding: 8px 10px 4px; }
.palette .opt { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 8px; font-size: 13.5px; cursor: pointer; }
.palette .opt.on { background: var(--bg-hover); }
.palette .opt .hint { margin-left: auto; color: var(--text-3); font-size: 12px; }
.palette .none { padding: 26px; text-align: center; color: var(--text-3); font-size: 13px; }

/* On a short window the sidebar scrolls instead of squeezing its rows. */
.side { overflow-y: auto; scrollbar-width: none; }
.side > * { flex-shrink: 0; }

/* activity band */
.band { padding: 16px 20px 12px; border-bottom: 1px solid var(--line); }
.band-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.band-head b { font-size: 22px; font-weight: 600; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.band-head span { font-size: 13px; color: var(--text-3); }
.chart svg { display: block; width: 100%; height: 64px; overflow: visible; }
.chart svg rect { transition: opacity .12s; }
.chart svg g:hover rect { opacity: .7; }
.band .axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); margin-top: 5px; font-variant-numeric: tabular-nums; }
.c-allow { background: var(--m-allow); fill: var(--m-allow); } .c-deny { background: var(--m-deny); fill: var(--m-deny); }
.c-escalate { background: var(--m-esc); fill: var(--m-esc); } .c-refused { background: var(--m-ref); fill: var(--m-ref); }
.c-admin { background: var(--line-2); fill: var(--line-2); }
.c-late { background: repeating-linear-gradient(45deg, var(--m-esc), var(--m-esc) 2px, var(--esc-bg) 2px, var(--esc-bg) 4px); fill: var(--m-esc); fill-opacity: .45; }
.tbl td.cost { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }
.tbl tbody tr td:first-child { position: relative; }
.tbl tbody tr.sel td:first-child::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--accent); }

/* receipt timeline */
.life { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.life li { position: relative; display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; padding-bottom: 16px; font-size: 13px; }
.life li:last-child { padding-bottom: 0; }
.life li::before { content: ""; position: absolute; left: 10.5px; top: 20px; bottom: 0; width: 1px; background: var(--line-2); }
.life li:last-child::before { display: none; }
.life .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-3); color: var(--text-2); z-index: 1; }
.life .dot svg { width: 12px; height: 12px; stroke-width: 2; }
.life .dot.allow { background: var(--allow-bg); color: var(--allow); } .life .dot.deny { background: var(--deny-bg); color: var(--deny); }
.life .dot.escalate { background: var(--esc-bg); color: var(--esc); } .life .dot.refused { background: var(--ref-bg); color: var(--ref); }
.life .dot.wait { background: transparent; border: 1px dashed var(--line-2); }
.life .dot.late { background: transparent; color: var(--esc); border: 1px solid var(--esc); }
.life b { font-weight: 550; display: block; }
.life p { color: var(--text-2); font-size: 12.5px; margin-top: 1px; }
.life time { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* agent cards */
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; padding: 20px; }
.acard { display: flex; flex-direction: column; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); text-align: left; transition: border-color .15s, box-shadow .2s, transform .2s var(--ease); position: relative; overflow: hidden; }
.acard:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.acard.off { background: var(--bg-2); }
.acard.off .avatar { filter: grayscale(1); opacity: .7; }
.acard-top { display: flex; align-items: center; gap: 11px; }
.acard-top .avatar { width: 34px; height: 34px; border-radius: 9px; font-size: 13px; }
.acard-top b { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; display: block; }
.acard-top span.sub { font-size: 12px; color: var(--text-3); }
.acard .chips { max-height: 48px; overflow: hidden; }
.mixbar { display: flex; height: 6px; border-radius: 6px; overflow: hidden; background: var(--bg-3); gap: 1px; }
.mixbar i { height: 100%; }
.acard-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.acard-foot b { color: var(--text-2); font-weight: 500; }
.acard.new-card { border-style: dashed; align-items: center; justify-content: center; color: var(--text-2); min-height: 196px; gap: 8px; font-size: 13.5px; font-weight: 500; background: transparent; }
.acard.new-card:hover { color: var(--text); background: var(--bg-2); transform: none; box-shadow: none; }

/* approvals */
.ticket { border: 1px solid var(--line); border-radius: 14px; background: var(--bg); overflow: hidden; box-shadow: var(--shadow-1); }
.ticket.want { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ticket-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.ticket-body { padding: 14px 16px; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ticket-foot { display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.ticket .ask-line { font-family: var(--mono); font-size: 13.5px; font-variant-ligatures: none; overflow-wrap: anywhere; }
.ticket .ask-line span { color: var(--text-3); }
/* Decisions already made, on the Approvals page. Each row is a button that opens the decision in full. */
.decided { overflow: hidden; }
.dec { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 14px; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.dec:last-child { border-bottom: 0; }
.dec:hover { background: var(--bg-2); }
.dec.sel { background: var(--accent-soft); }
.dec:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.dec .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.dec .dot svg { width: 12px; height: 12px; stroke-width: 2; }
.dec .dot.allow { background: var(--allow-bg); color: var(--allow); } .dec .dot.deny { background: var(--deny-bg); color: var(--deny); }
.dec-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dec-act { font-size: 13px; }
.dec-sub { color: var(--text-3); font-size: 12px; }
.dec-who { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; color: var(--text-2); white-space: nowrap; }
.dec-who time { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.dec > svg { color: var(--text-3); }
.ask-block { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--bg-2); font-family: var(--mono); font-size: 13px; font-variant-ligatures: none; overflow-wrap: anywhere; }
@media (max-width: 640px) { .dec { grid-template-columns: 22px minmax(0, 1fr) 14px; } .dec-who { grid-column: 2; grid-row: 2; align-items: flex-start; flex-direction: row; gap: 8px; } .dec > svg { grid-row: 1; grid-column: 3; } }

/* chain strip */
.chain { display: flex; flex-wrap: wrap; gap: 3px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--bg-2); }
.chain i { width: 12px; height: 12px; border-radius: 3px; opacity: 0; transform: scale(.4); animation: cell .28s var(--ease) forwards; }
@keyframes cell { to { opacity: 1; transform: none; } }
.chain-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-3); margin-top: 8px; }
.chain-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chain-legend i { width: 9px; height: 9px; border-radius: 2px; }

@media (max-width: 900px) {
  .main { margin: 0; border: 0; border-radius: 0; }
  .agrid { padding: 12px; }
}
@media (max-width: 900px) { .hide-sm { display: none !important; } }
.acard { font: inherit; color: inherit; cursor: pointer; }
.top .btn.primary { height: 30px; }

/* ---- visual policy builder ---- */
.page.pol { max-width: 1180px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.pol-aside { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; }
.rcard { border: 1px solid var(--line); border-radius: 14px; background: var(--bg); transition: border-color .15s, box-shadow .2s; }
.rcard:hover { border-color: var(--line-2); }
.rcard.open { border-color: var(--line-2); box-shadow: var(--shadow-2); }
.rhead { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; border-radius: 14px; min-height: 50px; }
.rhead:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.rnum { width: 20px; height: 20px; border-radius: 50%; background: var(--bg-3); color: var(--text-2); font-size: 11px; font-weight: 600; display: grid; place-items: center; flex: none; font-variant-numeric: tabular-nums; }
.rsent { flex: 1; min-width: 0; font-size: 14px; line-height: 1.4; }
.ractions { display: flex; gap: 0; opacity: 0; transition: opacity .12s; }
.rhead:hover .ractions, .rcard.open .ractions, .ractions:focus-within { opacity: 1; }
.i.flip { transform: rotate(180deg); }
.i.chev { color: var(--text-3); transition: transform .2s var(--ease); }
.rcard.open .i.chev { transform: rotate(90deg); }
.rbody { padding: 4px 14px 14px 44px; display: flex; flex-direction: column; gap: 14px; animation: stepin .25s var(--ease); }
.rline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
.rlabel { width: 104px; flex: none; font-size: 13px; font-weight: 550; color: var(--text); }
.conds { display: flex; flex-direction: column; gap: 8px; padding-left: 114px; margin-top: -6px; }
.cond { display: flex; align-items: flex-start; gap: 6px; }
.cond > .select { width: 128px; flex: none; }
.cond > .select + .select, .cond > input + .select { width: 176px; }
.cond > input.input { width: 150px; flex: none; font-size: 12.5px; }
.cond .chipbox { min-height: 36px; }
.money { display: flex; align-items: center; gap: 6px; }
.money span { color: var(--text-3); }
.money .input { width: 120px; }
.rfoot { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; }
.try-result { display: flex; flex-direction: column; gap: 6px; font-size: 13px; min-height: 40px; }
@media (max-width: 1100px) { .page.pol { grid-template-columns: 1fr; } .pol-aside { position: static; } }
@media (max-width: 900px) { .rbody { padding-left: 14px; } .conds { padding-left: 0; } .cond { flex-wrap: wrap; } .rlabel { width: auto; } }
.cond { flex-wrap: wrap; }
.cond > .select { width: 118px; }
.cond > .select + .select, .cond > input + .select { width: 168px; }
.cond > input.input { width: 132px; }
.cond > .grow { flex: 1 1 190px; }
.rline .input.grow { flex: 1 1 240px; width: auto; }
.seg { flex-wrap: wrap; }
details > summary { list-style: none; }
details > summary::before { content: "+ "; color: var(--text-3); }
details[open] > summary::before { content: "− "; }
details[open] > summary { margin-bottom: 8px; }

/* ---- a published receipt ---- */
.pub { max-width: 720px; margin: 0 auto; padding: 20px 20px 64px; display: flex; flex-direction: column; gap: 28px; }
.pub-top { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.pub-top a { color: var(--text); text-decoration: none; }
.pub-body { display: flex; flex-direction: column; gap: 22px; }
.pub-wait { color: var(--text-2); font-size: 14px; padding: 48px 0; }
.pub-eyebrow { font-size: 13px; color: var(--text-3); }
.pub-what { font-size: 22px; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; margin: -14px 0 0; overflow-wrap: anywhere; }
.pub .sect { display: flex; flex-direction: column; gap: 12px; }
.pub .sect h3 { font-size: 13px; font-weight: 600; margin: 0; }
.pub-notes { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
.pub-foot { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.pub-foot p { margin: 0; font-size: 14px; }
@media (max-width: 560px) { .pub-what { font-size: 18px; } .pub .kv { grid-template-columns: 96px 1fr; } }

/* ---- integrations ---- */
.igroup { margin-top: 30px; }
.igroup > h3 { margin: 0; }
.igroup > p { margin: 3px 0 10px; font-size: 13px; max-width: 70ch; }
.igroup > p a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.ilist { border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden; background: var(--bg); }
.irow { display: grid; grid-template-columns: 32px minmax(0, 1fr) 150px 200px 110px 16px; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 8px 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .12s; }
.irow:last-child { border-bottom: 0; }
.irow:hover { background: var(--bg-2); }
.irow.sel { background: var(--accent-soft); }
.irow:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.irow > svg { color: var(--text-3); }
.irow.compact { grid-template-columns: 32px minmax(0, 1fr) auto 16px; min-height: 50px; }
/* Vendor marks are drawn for a light ground, so their tile stays light in both themes. */
.ilogo { display: grid; place-items: center; flex: none; border-radius: 8px; background: #fff; border: 1px solid var(--line-2); color: #55565f; }
.ilogo img { display: block; object-fit: contain; }
.iname { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.iname b { font-weight: 550; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iname span { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ihow { font-size: 12.5px; color: var(--text-2); }
.icount { font-size: 12.5px; text-align: right; }
.istatus { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text); white-space: nowrap; min-width: 0; }
.istatus.none { color: var(--text-3); }
.idot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.idot.connected { background: var(--allow); box-shadow: none; }
.idot.quiet { background: var(--text-3); box-shadow: none; }
/* Set up, nothing sent yet: the colour of something waiting on a person, as a ring, since nothing is on the record. */
.idot.setup { box-shadow: inset 0 0 0 2px var(--m-esc); }
.istatus.setup { color: var(--esc); }
.drawer .listen b { font-weight: 550; }
@media (max-width: 900px) {
  .irow { grid-template-columns: 32px minmax(0, 1fr) auto 16px; }
  .irow .ihow, .irow .icount { display: none; }
}
@media (max-width: 520px) {
  .irow .istatus .faint { display: none; }
}

/* agents roster */
.atbl td.chk, .atbl th.chk { width: 44px; padding-right: 0; }
.atbl input[type="checkbox"], .selbar input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; margin: 0; display: block; cursor: pointer; }
.atbl tr.off .avatar { filter: grayscale(1); opacity: .7; }
.atbl tr.off .aname b { color: var(--text-2); }
.atbl tr.grp { background: var(--bg-2); }
.atbl .car { display: grid; color: var(--text-3); }
.atbl .car svg { transition: transform .15s var(--ease); }
.atbl .car.open svg { transform: rotate(90deg); }
.thb { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; border-radius: 4px; }
.thb:hover, .thb.on { color: var(--text-2); }
.thb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.thb .i { width: 12px; height: 12px; }
.thb .i.up { transform: rotate(180deg); }
.aname { display: flex; align-items: center; gap: 10px; min-width: 0; }
.aname.in { padding-left: 34px; gap: 8px; }
.aname.in .aid { font-size: 12.5px; color: var(--text); }
.aname b { font-weight: 550; }
.aid { font-size: 11.5px; color: var(--text-3); flex: none; font-weight: 400; }
.flag { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--esc); }
.flag.deny { background: var(--deny); }
.seven { display: flex; align-items: center; gap: 10px; }
.seven .mixbar { width: 96px; max-width: 60%; flex: none; }
.seven span { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.atbl .stop { color: var(--deny); font-weight: 550; }
.atbl .soon { color: var(--esc); }
.atbl .until { white-space: nowrap; }
.atbl .until .two { display: flex; flex-direction: column; line-height: 1.25; }
.atbl .until small { font-size: 11.5px; color: var(--text-3); }
.tab .n.warn { color: var(--esc); }
.btn.ghost.on { background: var(--bg-active); color: var(--text); }
.apad { padding: 18px 20px 22px; border-bottom: 1px solid var(--line); }
.asec { font-size: 13px; font-weight: 600; margin: 0 0 10px; display: flex; align-items: baseline; gap: 8px; }
.asec small { font-weight: 450; color: var(--text-3); font-size: 12.5px; }
.needs { border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden; max-width: 1040px; }
.need { display: grid; grid-template-columns: minmax(180px, 250px) 1fr auto; gap: 20px; align-items: center; padding: 11px 14px 11px 16px; }
.need + .need { border-top: 1px solid var(--line); }
.need .n { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; min-width: 0; border-radius: var(--r-1); }
.need .n:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.need .n .two { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.need .n b { font-weight: 550; font-size: 13.5px; }
.need .n small { font-size: 11.5px; color: var(--text-3); }
.need .why { display: flex; align-items: center; gap: 10px; font-size: 13.5px; min-width: 0; }
.need .dot { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; flex: none; background: var(--esc-bg); color: var(--esc); }
.need .dot.deny { background: var(--deny-bg); color: var(--deny); }
.need .dot svg { width: 13px; height: 13px; }
.need.more { width: 100%; border: 0; border-top: 1px solid var(--line); background: transparent; display: flex; gap: 6px; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.need.more:hover { background: var(--bg-2); color: var(--text); }
.selbar { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 4; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--line-2); box-shadow: var(--shadow-3); font-size: 13px; }
.selbar .sep { width: 1px; height: 18px; background: var(--line-2); }
.selbar.confirm { flex-direction: column; align-items: stretch; padding: 14px; width: min(460px, calc(100% - 32px)); color: var(--text-2); line-height: 1.5; }
.selbar.confirm b { color: var(--text); font-weight: 550; }
.selbar.confirm .revoke-miss { display: block; margin-top: 6px; color: var(--deny); }
.selbar.confirm .input { flex: 1; min-width: 0; }
@media (max-width: 900px) {
  .need { grid-template-columns: 1fr auto; row-gap: 6px; }
  .need .why { grid-column: 1 / -1; grid-row: 2; }
}

/* register: risk tier */
.tier { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; font-size: 11.5px; font-weight: 550; white-space: nowrap; border: 1px solid var(--line-2); color: var(--text-2); background: var(--bg); flex: none; }
.tier.high { color: var(--esc); background: var(--esc-bg); border-color: transparent; }
.tier.critical { color: var(--deny); background: var(--deny-bg); border-color: transparent; }
.tier.none { color: var(--text-3); border-style: dashed; }
.chip.tag { font-family: var(--mono); font-size: 11.5px; font-variant-ligatures: none; }
.rhead .chip.tag { flex: none; }

/* controls report */
.ctl-page { max-width: 920px; }
.ctl-tabs { margin-bottom: 18px; }
.ctl-period { margin: 0 0 6px; font-size: 13px; color: var(--text-3); }
.ctl-period b { color: var(--text); font-weight: 600; }
.sect.ctl { padding: 26px 0 28px; border-top: 1px solid var(--line); gap: 12px; }
.sect.ctl:first-of-type { border-top: 0; padding-top: 14px; }
.sect.ctl > h3 { font-size: 15px; }
.sect.ctl .statline { padding: 2px 0 4px; gap: 36px; flex-wrap: wrap; row-gap: 14px; }
.sect.ctl .statline b { font-size: 22px; }
.ctl-defs { display: grid; grid-template-columns: 168px minmax(0, 66ch); gap: 8px 16px; margin: 0; font-size: 13px; line-height: 1.5; }
.ctl-defs dt { color: var(--text-3); }
.ctl-defs dd { margin: 0; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ctl-meter { height: 6px; border-radius: 3px; background: var(--bg-3); overflow: hidden; max-width: 420px; }
.ctl-meter i { display: block; height: 100%; background: var(--ink); border-radius: 3px; min-width: 2px; }
.ctl-row { padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 13px; gap: 9px; }
.ctl-row:last-child { border-bottom: 0; }
.ctl-row b { font-weight: 550; }
.ctl-scroll { overflow-x: auto; }
.ctl-tbl th { position: static; }
.ctl-tbl td { max-width: 320px; height: 38px; font-variant-numeric: tabular-nums; }
.ctl-tbl th.r, .ctl-tbl td.r { text-align: right; }
.ctl-tbl tbody tr { cursor: default; }
.ctl-tbl tbody tr:last-child td { border-bottom: 0; }
.ctl-tbl .trunc { display: block; }
.ctl-chart { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 12px; border: 1px solid var(--line); border-radius: var(--r-3); }
.ctl-read { font-size: 12.5px; color: var(--text-3); min-height: 19px; font-variant-numeric: tabular-nums; }
.ctl-read b { color: var(--text); font-weight: 600; margin-right: 8px; }
.ctl-strip { display: grid; grid-template-columns: 168px 1fr; gap: 16px; align-items: end; }
.ctl-strip-head { display: flex; flex-direction: column; line-height: 1.3; }
.ctl-strip-head span { font-size: 12.5px; color: var(--text-2); }
.ctl-strip-head b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ctl-strip-head small { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ctl-bars { display: flex; align-items: flex-end; gap: 2px; height: 46px; border-bottom: 1px solid var(--line-2); }
.ctl-bars i { flex: 1; min-width: 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.ctl-bars u { display: block; width: 100%; max-width: 18px; height: max(2px, calc(var(--v) * 100%)); background: var(--text-3); border-radius: 3px 3px 0 0; transition: background .12s; }
.ctl-bars i.on { background: var(--bg-3); }
.ctl-bars i.on u { background: var(--text); }
.ctl-axis { display: flex; justify-content: space-between; margin-left: 184px; font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ctl-not { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--text-2); max-width: 66ch; }
@media (max-width: 900px) {
  .ctl-defs { grid-template-columns: 1fr; gap: 2px 0; }
  .ctl-defs dd { margin-bottom: 8px; }
  .ctl-strip { grid-template-columns: 1fr; gap: 6px; }
  .ctl-strip-head { flex-direction: row; gap: 8px; align-items: baseline; }
  .ctl-axis { margin-left: 0; }
  .sect.ctl .statline { gap: 22px; }
}
@media (prefers-reduced-motion: reduce) { .ctl-bars u { transition: none; } }
@media print {
  .side, .mnav, .ctl-noprint, .toast, .menu { display: none !important; }
  .shell, .main, .body { display: block !important; height: auto !important; overflow: visible !important; }
  .top { border: 0; padding: 0 0 8px; height: auto; }
  .ctl-page { max-width: none; padding: 0; }
  .sect.ctl { break-inside: avoid; }
  body { background: #fff; }
}

/* ---- activity feed ---- */
.band-head { align-items: center; flex-wrap: wrap; row-gap: 8px; }
.band-head .unpick[hidden] { display: none; }
.band-head .unpick { height: 24px; padding: 0 8px 0 6px; font-size: 12px; color: var(--text-2); }
.chart { position: relative; cursor: crosshair; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.chart .brush { position: absolute; top: -4px; bottom: 0; background: color-mix(in srgb, var(--accent) 13%, transparent); box-shadow: inset 1px 0 var(--accent-line), inset -1px 0 var(--accent-line); border-radius: 3px; pointer-events: none; }
.chart svg g.dim rect { opacity: .28; }
.tabs .tablist { display: contents; }
.tabs .tab i { width: 7px; height: 7px; border-radius: 2px; flex: none; }
.tabs .toggle { color: var(--text-3); }
.tabs .toggle svg { width: 14px; height: 14px; }
.tabs .toggle.on { color: var(--text); }
.lg-wrap { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.lg .st { display: inline-flex; align-items: center; gap: 6px; padding-left: 7px; font-size: 12px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.lg .st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--allow); }
.lg .times { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 99px; background: var(--bg-3); color: var(--text-2); font-size: 11.5px; font-weight: 550; font-variant-numeric: tabular-nums; }
.lg .times.bump { animation: bump .32s var(--ease); }
@keyframes bump { from { background: var(--allow-bg); color: var(--allow); transform: scale(1.14); } }
.lg .two { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.lg .two > small { font-size: 11.5px; color: var(--text-3); }
.lg .act em { font-style: normal; flex: none; font-size: 12.5px; color: var(--text-2); }
.lg .act span { color: var(--text-2); }
.lg tr.run .act span { color: var(--text-3); }
.lg tr.kid { background: var(--bg-2); }
.lg tr.kid:hover { background: var(--bg-hover); }
.lg tr.kid td:first-child { padding-left: 36px; }
.lg .car { display: inline-grid; color: var(--text-3); vertical-align: middle; }
.lg .car svg { width: 14px; height: 14px; transition: transform .15s var(--ease); }
.lg tr.open .car svg { transform: rotate(90deg); }
.lg.nocost .cost { display: none; }
.lg tbody tr:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.lg-foot { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 18px 20px 32px; font-size: 12.5px; color: var(--text-3); }
.newpill { position: absolute; top: 4px; left: 50%; translate: -50% 0; z-index: 2; height: 26px; padding: 0 12px; border: 0; border-radius: 99px; background: var(--ink); color: var(--ink-text); font-size: 12.5px; font-weight: 550; box-shadow: var(--shadow-2); animation: pillin .22s var(--ease); }
.newpill:hover { opacity: .9; }
@keyframes pillin { from { opacity: 0; transform: translateY(-6px); } }
.lg .act b { flex: none; max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg td.when { white-space: nowrap; }
@media (max-width: 900px) {
  .lg th:nth-child(1) { width: 128px !important; }
  .lg th:nth-child(3) { width: 138px !important; }
  .lg th:nth-child(6) { width: 76px !important; }
  .lg .act em { display: none; }
  .newpill { top: 40px; }
}

/* ================= the record, November 2026 =================
   An ink rail, a paper desk, white documents. Colour is kept for decisions. Every record
   carries a seal drawn from the mark, and the seal closes when the record is signed. */

/* ---- the parts the browser draws ---- */
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); color: inherit; }
html { accent-color: var(--accent); caret-color: var(--accent); }
* { scrollbar-color: color-mix(in srgb, var(--text) 18%, transparent) transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
a { text-decoration-thickness: 1px; }
body { letter-spacing: -.005em; }
h1 { font-size: 28px; line-height: 1.15; font-weight: 500; letter-spacing: -.03em; }
h2 { font-size: 15px; line-height: 1.35; font-weight: 500; letter-spacing: -.01em; }
h3 { font-size: 13px; font-weight: 500; color: var(--text-2); }
.hide-md { }
@media (max-width: 1240px) { .hide-md { display: none !important; } }

/* ---- the seal ---- */
/* Drawn from the mark. In a table it is the symbol's outer pair, as two light strokes. */
.sg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: square; stroke-linejoin: miter; color: var(--text-3); }
.sg.closed { color: var(--text); }
.sg.allow { color: var(--m-allow); }
.sg.deny { color: var(--m-deny); }
.sg.escalate, .sg.late, .sg.open { color: var(--m-esc); }
.sg.refused { color: var(--m-ref); }
.sg.todo { color: var(--text-3); }
/* One corner is still to come. When the record is signed it draws in. */
.sg .kg { display: none; }
.sg .k2 { stroke-dasharray: 12.8; stroke-dashoffset: 0; transition: stroke-dashoffset .55s var(--ease); }
.sg.open .kg, .sg.todo .kg { display: inline; opacity: .55; stroke-dasharray: 1.6 2.6; transition: opacity .3s; }
.sg.open .k2, .sg.todo .k2 { stroke-dashoffset: 12.8; }
.signed .sg.open, .signed .sg.todo { color: var(--m-allow); transition: color .3s; }
.signed .sg.open .k2, .signed .sg.todo .k2 { stroke-dashoffset: 0; }
.signed .sg.open .kg, .signed .sg.todo .kg { opacity: 0; }
/* Where one record has the screen, the seal is the whole symbol. Its upper-right pair is the one still to come:
   dotted while the record waits, moved into place when it is signed. */
.sg.whole { fill: currentColor; stroke: none; overflow: visible; }
.sg.whole .kg { fill: none; stroke: currentColor; stroke-width: .9; stroke-dasharray: 1.7 2.1; }
.sg.whole .k2 { stroke-dasharray: none; transition: opacity .35s var(--ease), transform .55s var(--ease); }
.sg.whole.open .kg, .sg.whole.todo .kg { opacity: .7; }
.sg.whole.open .k2, .sg.whole.todo .k2 { opacity: 0; transform: translate(4px, -4px); }
.signed .sg.whole.open .k2, .signed .sg.whole.todo .k2 { opacity: 1; transform: none; }
.signed .sg.whole.open .kg, .signed .sg.whole.todo .kg { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .sg .k2, .sg.whole .k2 { transition: none; } }
.signed .seal-md:has(.sg) { background: var(--allow-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--m-allow) 40%, transparent); transition: background .3s, box-shadow .3s; }
.ticket.held.signed, .ticket.signed:has(.sg) { border-color: color-mix(in srgb, var(--m-allow) 40%, var(--line)); transition: border-color .3s; }
.seal-lg, .seal-md { flex: none; display: grid; place-items: center; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.seal-lg { width: 52px; height: 52px; border-radius: 12px; }
.seal-md { width: 38px; height: 38px; border-radius: 9px; }
.seal-md:has(.open) { background: var(--esc-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--m-esc) 40%, transparent); }

/* ---- shell ---- */
.shell { grid-template-columns: 248px minmax(0, 1fr); height: 100dvh; background: var(--canvas); }
.side {
  /* The rail is ink in both themes. Whatever sits on it reads these values. */
  --bg: #0f1115; --bg-2: #121419; --bg-3: rgba(255, 255, 255, .1); --bg-hover: rgba(255, 255, 255, .06); --bg-active: rgba(255, 255, 255, .1);
  --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .17);
  --text: #f4f4f2; --text-2: rgba(244, 244, 242, .68); --text-3: rgba(244, 244, 242, .52);
  --ink: #f4f4f2; --ink-text: #07080a; --accent: #8098ff;
  --allow: #45c987; --esc: #f2b450; --esc-bg: rgba(242, 180, 80, .16); --deny: #ff7669;
  position: relative; isolation: isolate; background: var(--rail); color: var(--text); padding: 14px 12px 12px; gap: 0; border-right: 0;
}
/* The brand's colour field, at rest in the corner of the rail. */
.side::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(130% 40% at 0% 0%, rgba(48, 80, 255, .3), transparent 64%), radial-gradient(120% 30% at 100% 100%, rgba(201, 138, 43, .09), transparent 70%); }
:root[data-theme="dark"] .side { box-shadow: inset -1px 0 0 rgba(255, 255, 255, .05); }
.brand { display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 8px; margin-bottom: 14px; color: #fff; text-decoration: none; border-radius: var(--r-2); }
.wordmark { font-size: 17px; font-weight: 500; letter-spacing: -.04em; text-transform: lowercase; }
.side .kbtn { height: 34px; margin: 0 0 14px; border: 0; border-radius: var(--r-2); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); color: var(--text-2); font-size: 13px; transition: background .2s, color .2s; }
.side .kbtn:hover { background: rgba(255, 255, 255, .1); color: var(--text); }
.side .kbd { background: transparent; border-color: var(--line-2); color: var(--text-3); }
.side { overflow: hidden; }
.side-nav { display: flex; flex-direction: column; gap: 1px; flex: 1; min-height: 0; margin: 0 -12px; padding: 0 12px; overflow-y: auto; scrollbar-width: none; }
.side .nav { height: 34px; gap: 10px; padding: 0 9px; border-radius: var(--r-2); color: var(--text-2); font-size: 13.5px; font-weight: 400; letter-spacing: -.005em; transition: background .2s, color .2s; }
.side .nav svg.i { opacity: .85; }
.side .nav:hover { background: var(--bg-hover); color: var(--text); }
.side .nav.on, :root[data-theme="dark"] .side .nav.on { background: var(--bg-active); color: #fff; font-weight: 500; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.side .nav.on svg.i { opacity: 1; }
.side .nav .count { border-radius: 5px; min-width: 20px; height: 20px; font-weight: 500; background: var(--esc-bg); color: var(--esc); }
.side-label { font: 500 11px/1.4 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); padding: 18px 9px 6px; }
.side-foot { margin-top: 0; padding-top: 12px; gap: 6px; }
.side .signer { margin: 0; padding: 10px 11px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); color: var(--text-2); }
.side .signer b { color: var(--text); font-weight: 500; }
.side button.signer:hover, .side a.signer:hover { background: rgba(255, 255, 255, .075); }
.side .usage { display: flex; flex-direction: column; gap: 8px; text-decoration: none; font-size: 12px; }
.side .usage b { margin: 0; }
.side .usage .meter { height: 3px; border-radius: 3px; background: var(--bg-3); overflow: hidden; }
.side .usage .meter i { display: block; height: 100%; border-radius: 3px; background: var(--ink); }
.side .usage .meter i.near { background: var(--esc); }
.side .ws { position: relative; height: 48px; gap: 10px; padding: 0 8px; margin: 14px 0 0; border-radius: 8px; color: var(--text); transition: background .2s; }
.side .ws::before { content: ""; position: absolute; left: -12px; right: -12px; top: -8px; height: 1px; background: var(--line); }
.side .ws:hover { background: var(--bg-hover); }
.side .ws .avatar { width: 28px; height: 28px; border-radius: 7px; }
.side .ws .two { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; text-align: left; }
.side .ws b { font-size: 13.5px; font-weight: 500; }
.side .ws small { font-size: 12px; color: var(--text-3); }
.side .ws svg.i { color: var(--text-3); }

/* The desk: a title and its actions, the sheet the page draws on, the proof bar. */
.main { margin: 0; padding: 0 16px; background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.main > div > .callout { background: var(--bg); margin: 12px 0 0 !important; }
.top { height: 64px; padding: 0 4px; gap: 10px; border-bottom: 0; }
.top h1 { font-size: 20px; line-height: 28px; font-weight: 500; letter-spacing: -.02em; }
.top .seg { align-self: center; }
.sheet { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sheet.desk { background: transparent; border: 0; border-radius: 0; overflow: visible; }
.sheet.desk > .body { margin: 0 -16px; padding: 0 16px; }
.proof { height: 38px; flex: none; display: flex; align-items: center; gap: 20px; padding: 0 4px; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; }
.proof .pf { display: inline-flex; align-items: center; gap: 6px; }
.proof .pf b { font-weight: 500; color: var(--text-2); }
.proof .pf .mono { font-size: 11.5px; }
.proof .sg { color: var(--text-2); }
.proof a.link { color: var(--text-2); text-decoration: none; border-radius: 4px; }
.proof a.link:hover { color: var(--text); }
.proof a.link svg { width: 13px; height: 13px; }
.live { font-size: 12px; color: var(--text-3); }
.live i { background: var(--m-allow); }

/* ---- controls ---- */
.btn { height: 32px; padding: 0 12px; border-radius: var(--r-2); font-weight: 500; box-shadow: none; transition: background .2s, border-color .2s, opacity .2s, transform .1s var(--ease); }
.btn:hover { background: var(--bg-hover); border-color: color-mix(in srgb, var(--text) 26%, var(--line-2)); }
.btn.primary { border-color: var(--ink); }
.btn.primary:hover { background: var(--ink); opacity: .86; }
.btn.ghost:hover { border-color: transparent; }
.btn.lg { border-radius: 8px; }
.top .btn.primary { height: 32px; }
.input, .textarea, .select { border-radius: var(--r-2); }
.input:focus, .textarea:focus, .select:focus, .chipbox:focus-within { border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 10%, transparent); }
.top .input[type="search"] { height: 32px !important; background: var(--bg); }
.seg { padding: 2px; gap: 2px; border-radius: 8px; background: color-mix(in srgb, var(--text) 6%, transparent); }
.seg button { height: 28px; border-radius: 6px; font-weight: 450; transition: color .2s; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--bg); box-shadow: 0 0 0 1px var(--line), var(--shadow-1); }
:root[data-theme="dark"] .seg button.on { background: var(--bg-active); box-shadow: 0 0 0 1px var(--line-2); }
.badge { height: 22px; border-radius: 5px; font-weight: 500; background: color-mix(in srgb, currentColor 9%, transparent) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 30%, transparent); }
.badge.neutral, .badge.refused { box-shadow: inset 0 0 0 1px var(--line-2); }
.chip { border-radius: 5px; background: var(--bg-3); }
.avatar { border-radius: 6px; }
.menu { border-radius: 10px; padding: 5px; border-color: var(--line-2); box-shadow: var(--shadow-3); }
.menu button { height: 32px; border-radius: 6px; }
.toast { border-radius: 8px; }
.sw[aria-checked="true"] { background: var(--ink); }

/* ---- documents: cards, tables, facts ---- */
.card { border-radius: 12px; }
.card-head { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px 0 16px; }
.card-head h2 { font-size: 13.5px; font-weight: 500; letter-spacing: -.005em; }
.card-head .faint { font-size: 12.5px; }
.more { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 6px; border-radius: var(--r-2); font-size: 12.5px; color: var(--text-2); text-decoration: none; transition: color .2s, background .2s; }
.more:hover { color: var(--text); background: var(--bg-hover); }
.more svg { width: 13px; height: 13px; }
.callout { border-radius: 8px; }
.code { border-radius: 8px; }
.verdict { border-radius: 10px; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 26%, transparent); }
.verdict b { font-weight: 500; }
.kv dt { color: var(--text-3); }
.tbl th { height: 38px; font: 500 11px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); background: var(--bg); }
.tbl td { height: 46px; font-variant-numeric: tabular-nums; }
.tbl tbody tr:hover { background: var(--bg-hover); }
.tabs { padding: 10px 16px; }
.tab { border-radius: var(--r-2); font-weight: 450; }
.page { padding: 24px 28px 64px; }
.empty b { font-weight: 500; }
.empty .glyph { border-radius: 12px; }
.mixbar { height: 6px; border-radius: 6px; gap: 2px; background: transparent; }
.mixbar:empty { background: var(--bg-3); }
.mixbar i { border-radius: 1px; }
.mixbar i:first-child { border-radius: 6px 1px 1px 6px; }
.mixbar i:last-child { border-radius: 1px 6px 6px 1px; }
.mixbar i:only-child { border-radius: 6px; }

/* ---- approvals: a held action is a document waiting for its second signature ---- */
.ticket { border-radius: 12px; box-shadow: none; }
.ticket.held, .ticket:has(.badge.escalate) { border-color: color-mix(in srgb, var(--m-esc) 34%, var(--line)); }
.ticket-head b { font-weight: 500; }
.ticket-head .two { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ticket-head small { font-size: 12px; color: var(--text-3); }
.ticket-head time { font-size: 12px; }
.ticket-foot .faint { font-size: 12px; }

/* ---- overview ---- */
.ov { display: flex; flex-direction: column; gap: 14px; padding: 2px 0 26px; max-width: 1480px; margin: 0 auto; }
.ov-row { display: grid; gap: 14px; align-items: stretch; }
.ov-row.a { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.ov-row.b { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.ov-row.c { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ov section:empty { display: none; }
.ov .fig { font-weight: 450; letter-spacing: -.03em; }
.ov-needs { display: flex; flex-direction: column; min-width: 0; }
.ov-needs .card-head .badge { height: 20px; padding: 0 7px; }
.ov-needs .card-head .badge::before { display: none; }
.held { list-style: none; margin: 0; padding: 0 0 6px; }
.held li { display: flex; align-items: center; gap: 12px; padding: 11px 12px 11px 16px; border-top: 1px solid var(--line); }
.held li:first-child { border-top: 0; }
.held .two { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.held .ask-line { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 13px; font-variant-ligatures: none; }
.held .ask-line span { color: var(--text-3); }
.held small { font-size: 12px; color: var(--text-3); }
.held small b { font-weight: 500; color: var(--text-2); }
.held .cost { font-weight: 500; }
.held .acts { display: flex; align-items: center; gap: 8px; }
.held .acts .input { width: 230px; height: 32px; }
.ov-clear { flex: 1; display: flex; align-items: center; gap: 18px; padding: 24px; }
.ov-clear h2 { font-size: 15px; }
.ov-clear p { margin-top: 3px; max-width: 52ch; font-size: 13px; color: var(--text-2); }
.ov-ledger { display: flex; flex-direction: column; gap: 14px; padding-bottom: 16px; min-width: 0; }
.ov-ledger-top { display: flex; align-items: center; gap: 14px; padding: 0 16px; }
.ov-ledger-top .fig { display: block; font-size: 26px; line-height: 1.15; }
.ov-ledger-top span { font-size: 12.5px; color: var(--text-2); }
.ov-ledger .chain { margin: 0 16px; padding: 10px; gap: 3px; border-radius: 8px; }
.ov-ledger .chain i { width: 10px; height: 10px; border-radius: 2px; opacity: 1; transform: none; animation: none; }
.ov-ledger .kv { padding: 0 16px; grid-template-columns: 104px minmax(0, 1fr); gap: 7px 12px; }
.ov-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; gap: 7px; padding: 16px 16px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: inherit; text-decoration: none; transition: border-color .2s; }
.tile:hover { border-color: color-mix(in srgb, var(--text) 24%, var(--line-2)); }
.tile-label { display: flex; align-items: center; gap: 7px; font: 500 11px/1.3 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.tile-label i { width: 7px; height: 7px; border-radius: 2px; }
.tile .fig { font-size: 30px; line-height: 1.1; }
.tile-note { display: flex; align-items: center; min-height: 18px; font-size: 12.5px; color: var(--text-2); }
.delta { display: inline-flex; align-items: center; gap: 5px; }
.delta svg { width: 14px; height: 14px; }
.ov-chart { display: flex; flex-direction: column; padding-bottom: 14px; min-width: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 2px 16px 0; font-size: 12.5px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; }
.legend b { color: var(--text); font-weight: 500; }
.plot { position: relative; flex: 1; min-height: 172px; margin: 18px 16px 0 46px; }
.ov-chart > [role="img"] { flex: 1; display: flex; flex-direction: column; }
.plot .grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.plot .grid span { position: relative; height: 0; border-top: 1px solid var(--line); }
.plot .grid span:last-child { border-top-color: var(--line-2); }
.plot .grid em { position: absolute; right: calc(100% + 9px); top: -8px; font: 400 11px/16px var(--sans); color: var(--text-3); font-variant-numeric: tabular-nums; }
.plot .cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(48, minmax(0, 1fr)); }
.plot .slot { display: flex; align-items: flex-end; justify-content: center; }
.plot .slot:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
.plot .bar { width: min(64%, 20px); min-width: 3px; display: flex; flex-direction: column-reverse; gap: 2px; }
.plot .bar i { min-height: 2px; }
.plot .bar i:last-child { border-radius: 3px 3px 0 0; }
.ov-chart .axis { display: flex; justify-content: space-between; margin: 7px 16px 0 46px; font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.tip { position: absolute; z-index: 5; bottom: calc(100% + 4px); display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border-radius: 8px; background: var(--ink); color: var(--ink-text); font-size: 12px; white-space: nowrap; pointer-events: none; box-shadow: var(--shadow-2); }
.tip[hidden] { display: none; }
.tip > b { font-weight: 400; opacity: .68; }
.tip span { display: flex; align-items: center; gap: 7px; }
.tip span b { font-weight: 500; }
.tip i { width: 9px; height: 3px; border-radius: 2px; }
.ov-list { display: flex; flex-direction: column; min-width: 0; }
.ov-none { margin: auto 0; padding: 30px 20px 36px; text-align: center; font-size: 13px; color: var(--text-2); }
.ov-none b { display: block; margin-bottom: 2px; color: var(--text); font-weight: 500; font-size: 13.5px; }
.ov-none p { max-width: 44ch; margin: 0 auto; }
.rank { list-style: none; margin: 0; padding: 4px 16px 12px; }
.rank li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 14px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.rank li:first-child { border-top: 0; }
.rank-what { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 13px; }
.rank-n { font-size: 13px; font-weight: 500; text-align: right; }
.rank-bar { height: 4px; border-radius: 4px; background: var(--bg-3); overflow: hidden; }
.rank-bar i { display: block; height: 100%; border-radius: 4px; }
.rank-sub { font-size: 12px; color: var(--text-3); text-align: right; }
.rows { list-style: none; margin: 0; padding: 4px 0 8px; }
.rows a { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 7px 16px; color: inherit; text-decoration: none; font-size: 13px; transition: background .15s; }
.rows a:hover { background: var(--bg-hover); }
.rows .two { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.rows .two small { font-size: 12px; color: var(--text-3); }
.rows b { font-weight: 500; }
.rows .mixbar { width: 104px; flex: none; }
.rows .n { width: 40px; flex: none; text-align: right; font-weight: 500; }
.rows time { width: 58px; flex: none; text-align: right; font-size: 12px; }
.rows .seq { width: 44px; flex: none; text-align: right; font-size: 11.5px; }
.rows .act { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.rows .act b { flex: none; font-family: var(--mono); font-size: 12.5px; }
.rows .act span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 12px; color: var(--text-3); }
/* The newest decisions hang on one line: the chain. */
.chainrows li { position: relative; }
.chainrows li::before { content: ""; position: absolute; left: 22.5px; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.chainrows li:first-child::before { top: 50%; }
.chainrows li:last-child::before { bottom: 50%; }
.chainrows li:only-child::before { display: none; }
.chainrows .node { position: relative; z-index: 1; display: grid; padding: 4px 0; background: var(--bg); transition: background .15s; }
.chainrows a:hover .node { background: var(--bg-hover); }

@media (max-width: 1180px) {
  .ov-row.a, .ov-row.b, .ov-row.c { grid-template-columns: minmax(0, 1fr); }
  .ov-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-start ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .main { padding: 0; }
  .top { height: 54px; padding: 0 16px; }
  .top h1 { font-size: 18px; }
  .sheet { border: 0; border-radius: 0; border-top: 1px solid var(--line); }
  .sheet.desk { border-top: 0; }
  .sheet.desk > .body { margin: 0; padding: 0 12px; }
  .proof { display: none; }
  .mnav { background: var(--bg); }
  .ov-tiles { gap: 10px; }
  .ov, .ov-row { gap: 10px; }
  .ov-start ol { grid-template-columns: minmax(0, 1fr); }
  .rows .mixbar, .rows .seq { display: none; }
  .plot { margin-left: 38px; }
  .ov-chart .axis { margin-left: 38px; }
}

/* ---- the ledger: every receipt is a node on one line ---- */
.band { padding: 18px 20px 12px; }
.band-head { align-items: baseline; }
.band-head b { font-size: 26px; line-height: 1; font-weight: 450; letter-spacing: -.03em; }
.chart svg { height: 72px; }
.lg tbody tr { --row: var(--bg); }
.lg tbody tr:hover { --row: var(--bg-hover); }
.lg tbody tr.kid { --row: var(--bg-2); }
.lg tbody tr.kid:hover { --row: var(--bg-hover); }
.lg tbody tr.sel { --row: var(--accent-soft); }
.lg td.sc { position: relative; white-space: nowrap; }
.lg td.sc::after { content: ""; position: absolute; left: 26.5px; top: 0; bottom: -1px; width: 1px; background: var(--line-2); }
.lg tbody tr:first-child td.sc::after { top: 50%; }
.lg .node { position: relative; z-index: 1; display: inline-grid; vertical-align: middle; margin-right: 12px; padding: 5px 0; background: var(--row); transition: background .12s; }
.lg tr.kid td.sc { padding-left: 20px !important; }
.lg .st { padding-left: 0; color: var(--text-2); font-weight: 450; }
.lg .st::before, .lg td.sc .badge::before { display: none; }
.lg td.sc .badge { padding: 0 8px; }
.lg .times { border-radius: 5px; font-weight: 500; }
.tbl tbody tr.sel td:first-child::before { top: 0; bottom: 0; border-radius: 0; }

/* ---- a record, opened ---- */
.drawer { width: min(520px, 100%); border-left: 1px solid var(--line); box-shadow: var(--shadow-3); }
.drawer-head { height: 64px; gap: 12px; padding: 0 12px 0 20px; }
.drawer-head .two { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.drawer-head h2 { font-size: 15px; }
.drawer-head small { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.drawer-body { padding: 20px; gap: 0; }
.drawer-body > * + * { margin-top: 20px; }
.drawer-body > .sect { padding-top: 18px; border-top: 1px solid var(--line); }
.drawer-body > .sect > h3 { color: var(--text); font-size: 13px; }
.drawer-foot { padding: 12px 20px; background: var(--bg); }
.kv { grid-template-columns: 132px minmax(0, 1fr); gap: 9px 12px; }
.life .dot { width: 22px; height: 22px; background: var(--bg-3); }
.life b { font-weight: 500; }
.ask-block { border-radius: 8px; }

/* ---- approvals: held actions on the desk, decided ones beside them ---- */
.page.appr { max-width: 1480px; margin: 0 auto; padding: 2px 0 28px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 14px 22px; align-items: start; }
.page.appr > .appr-main:only-child { grid-column: 1 / -1; max-width: 860px; }
.appr-h { min-height: 30px; display: flex; align-items: center; padding: 0 4px; margin-bottom: 8px; font-size: 15px; }
.appr-side { position: sticky; top: 2px; }
.ticket-head { padding: 14px 16px; gap: 12px; }
.ticket-body { padding: 16px; }
.ticket .ask-line { font-size: 14px; line-height: 1.5; }
.ticket-foot { padding: 12px 12px 12px 16px; }
.decided { border-radius: 12px; }
.dec { grid-template-columns: 16px minmax(0, 1fr) auto 14px; padding: 12px 14px 12px 16px; transition: background .15s; }
.dec:hover { background: var(--bg-hover); }
.dec-act { font-size: 12.5px; }
@media (max-width: 1100px) { .page.appr { grid-template-columns: minmax(0, 1fr); } .appr-side { position: static; } }
@media (max-width: 900px) { .page.appr { padding: 0 0 24px; } }

/* ---- the passport ---- */
.passport { border-radius: 14px; border-color: var(--line-2); box-shadow: var(--shadow-2); }
.passport .p-name { font-weight: 500; letter-spacing: -.02em; }
.passport .p-row > span { font: 500 11px/1.3 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.passport .avatar.lg { border-radius: 10px; }
.passport .seal { color: var(--m-allow); }
.passport.revoked .seal { color: var(--m-deny); }
.statline b { font-weight: 450; letter-spacing: -.03em; }

/* ---- pages that are one document: centred on the sheet ---- */
.sheet > .body > .page { margin-inline: auto; }
.page { max-width: 1040px; padding: 30px 36px 72px; }
.page.narrow { max-width: 820px; }
.ctl-page { max-width: 940px; }
.page > .lede, .page .lede { font-size: 15px; line-height: 1.5; color: var(--text-2); max-width: 64ch; }
.sect > h3 { color: var(--text); font-size: 14px; }
.sect.ctl > h3 { font-size: 15px; }
/* Figures in a row share one ruled strip. */
.statline, .sect.ctl .statline { display: flex; flex-wrap: wrap; gap: 1px; padding: 0; margin: 2px 0 6px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.statline > div { flex: 1 1 132px; gap: 3px; padding: 13px 16px 12px; background: var(--bg); }
.statline b, .sect.ctl .statline b { font-size: 24px; line-height: 1.15; font-weight: 450; letter-spacing: -.03em; }
.statline span { font-size: 12px; color: var(--text-3); }
.drawer .statline > div { flex-basis: 96px; padding: 11px 12px 10px; }
.drawer .statline b { font-size: 20px; }
.ctl-period b { font-weight: 500; }
.ctl-row b, .ctl-read b, .ctl-strip-head b { font-weight: 500; }
.ctl-chart { border-radius: 10px; }
.ctl-meter { height: 4px; }
.ctl-bars u { background: var(--text-3); border-radius: 2px 2px 0 0; }
.ev-hero { display: flex; align-items: flex-start; gap: 18px; padding: 4px 0 22px; }
.ev-hero .lede { margin: 0 0 14px; }
.ev-hero .seal-lg { transition: background .3s, box-shadow .3s; }
.ev-hero.signed .seal-lg { background: var(--allow-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--m-allow) 40%, transparent); }
.chain { border-radius: 8px; }

/* ---- policy: numbered because the order decides ---- */
.rcard { border-radius: 10px; }
.rhead { border-radius: 10px; }
.rnum { border-radius: 5px; font: 500 11px/1 var(--mono); }
.rcard.open { box-shadow: none; border-color: color-mix(in srgb, var(--text) 30%, var(--line-2)); }
.rlabel { font-weight: 500; }

/* ---- the front door: sign in, sign up, first run ----
   The form sits on paper. The stage beside it is ink with the brand's colour field at rest,
   and whatever stands on the stage reads the dark values in both themes. */
.auth-stage, .ob-right {
  --bg: #111317; --bg-2: #15171c; --bg-3: #1c1f25; --bg-hover: #171a1f; --bg-active: #20232a;
  --line: rgba(255, 255, 255, .1); --line-2: rgba(255, 255, 255, .17);
  --text: #f4f4f2; --text-2: rgba(244, 244, 242, .7); --text-3: rgba(244, 244, 242, .52);
  --ink: #f4f4f2; --ink-text: #07080a; --accent: #8098ff; --accent-soft: #151c40;
  --allow: #45c987; --m-allow: #22ad7d; --allow-bg: rgba(69, 201, 135, .14);
  --deny: #ff7669; --m-deny: #f05b4f; --deny-bg: rgba(255, 118, 105, .14);
  --esc: #f2b450; --m-esc: #e8ab30; --esc-bg: rgba(242, 180, 80, .15);
  --ref: #a5a9b3; --m-ref: #7f8591; --ref-bg: rgba(255, 255, 255, .08);
  position: relative; isolation: isolate; border-left: 0; background: var(--rail); color: var(--text);
}
.ob-right { position: sticky; }
.auth-stage::before, .ob-right::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(70% 58% at 10% 6%, rgba(48, 80, 255, .46), transparent 62%), radial-gradient(64% 56% at 92% 84%, rgba(201, 138, 43, .28), transparent 66%), radial-gradient(46% 44% at 62% 34%, rgba(93, 111, 150, .2), transparent 70%); }
.stage-wrap > p { font-size: 30px; line-height: 1.12; font-weight: 400; letter-spacing: -.035em; max-width: 19ch; }
.feed, .rec, .ob-right .passport { border: 0; border-radius: 14px; background: rgba(11, 13, 19, .64); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13), inset 0 1px 0 rgba(255, 255, 255, .18), 0 40px 90px -20px rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(24px) saturate(1.2); backdrop-filter: blur(24px) saturate(1.2); }
.feed-head { font-weight: 500; }
.ob-right .passport .p-mrz { background: rgba(255, 255, 255, .03); }
.steps-mini { color: var(--text-2); }
.auth-form h1, .ob-step h1 { font-size: 28px; letter-spacing: -.03em; }
.ob-prog i.on { background: var(--ink); }
.pick { border-radius: 8px; }
.pick .pi { border-radius: 7px; }
.pick b { font-weight: 500; }
.pick.on { border-color: var(--text); background: var(--bg-2); box-shadow: 0 0 0 1px var(--text); }
.pick.on .pi { color: var(--text); }
.approve-bar { border-radius: 8px; }
.auth-form > .row:first-child { margin-bottom: 26px; }
.feed-row { position: relative; grid-template-columns: 150px 118px 1fr auto; }
.feed-row::before, .feed-row::after { content: ""; position: absolute; left: 20.5px; width: 1px; height: calc(50% - 12px); background: var(--line-2); }
.feed-row::before { top: 0; }
.feed-row::after { bottom: 0; }
.feed-row:first-child::before { display: none; }
.fr-dec { display: flex; align-items: center; gap: 11px; min-width: 0; }
.fr-dec .st { color: var(--text-2); font-size: 12.5px; white-space: nowrap; }
.fr-dec .badge::before { display: none; }
.fr-dec .badge { padding: 0 8px; }

@media (max-width: 560px) {
  .top { height: auto; min-height: 54px; flex-wrap: wrap; row-gap: 8px; padding: 10px 16px; }
  .top .seg { width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .top .seg button { flex: 1 0 auto; padding: 0 7px; font-size: 12.5px; white-space: nowrap; }
  .held li { flex-wrap: wrap; }
  .held .acts { width: 100%; justify-content: flex-end; }
  .tile { padding: 13px 13px 12px; }
  .tile .fig { font-size: 26px; }
  .page { padding: 20px 16px 60px; }
}
.side-nav > * { flex-shrink: 0; }
/* When the window is short the list scrolls, and its end fades instead of being cut. */
.side-nav { -webkit-mask-image: linear-gradient(#000 calc(100% - 18px), transparent); mask-image: linear-gradient(#000 calc(100% - 18px), transparent); padding-bottom: 12px; }
.drawer-body > * { flex-shrink: 0; }
/* On a short window the rail tightens, then gives up the plan card, so every page stays in reach. */
@media (max-height: 860px) {
  .side .nav { height: 31px; }
  .side-label { padding: 13px 9px 4px; }
  .brand { margin-bottom: 10px; }
  .side .kbtn { margin-bottom: 10px; }
}
@media (max-height: 820px) { .side .usage { display: none; } }
@media (max-height: 760px) {
  .side .nav { height: 29px; }
  .side-label { padding: 10px 9px 3px; }
  .brand { margin-bottom: 8px; }
  .side .kbtn { height: 32px; margin-bottom: 8px; }
  .side-nav { padding-bottom: 6px; }
}

/* A page of cards sits on the desk, not on a sheet of its own. */
.sheet:has(.agrid) { background: transparent; border: 0; border-radius: 0; overflow: visible; }
.sheet:has(.agrid) > .body { margin: 0 -16px; padding: 0 16px; }
.agrid { padding: 2px 0 24px; gap: 14px; }
.acard { border-radius: 12px; }
.acard:hover { box-shadow: none; transform: none; border-color: color-mix(in srgb, var(--text) 24%, var(--line-2)); }
.acard-top b { font-weight: 500; }
.sheet.desk .drawer, .sheet:has(.agrid) .drawer { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.statline, .sect.ctl .statline { margin: 2px 0 14px; }

/* ---- a published receipt: one document on the desk ---- */
body:has(#app > .pub) { background: var(--canvas); }
.pub { max-width: 780px; padding: 22px 20px 72px; gap: 18px; }
.pub-body { padding: 30px 32px 32px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.pub-what { font-weight: 500; letter-spacing: -.02em; }
.pub .sect h3 { font-weight: 500; }
.pub-foot { border-top: 0; padding: 8px 4px 0; }
.pub-foot .label { font-weight: 500; }
.pub-foot .code { background: var(--bg); }
@media (max-width: 560px) { .pub-body { padding: 20px 18px 22px; } }
.only-sm { display: none !important; }
@media (max-width: 560px) {
  .only-sm { display: block !important; }
  .lg th:nth-child(3), .lg td:nth-child(3) { display: none; }
  .lg th:nth-child(1) { width: 132px !important; }
  .lg th:nth-child(6) { width: 70px !important; }
  .band .seg { width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .band .seg button { flex: 1 0 auto; padding: 0 7px; font-size: 12.5px; white-space: nowrap; }
  .band-head { row-gap: 10px; }
}
.aname b { font-weight: 500; }
@media (max-width: 1100px) { .page.pol { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  /* Agents: the name gets the room. Who ran it is in the agent's drawer. */
  .atbl th:nth-child(2) { width: auto !important; }
  .atbl th:nth-child(3), .atbl td:nth-child(3) { display: none; }
  .atbl th:nth-child(5) { width: 96px !important; }
  .atbl .aid { display: none; }
  .rhead { flex-wrap: wrap; }
  .pol-main > .row { flex-wrap: wrap; }
}
.ev-hero > div { flex: 1; min-width: 0; }
.ev-hero .row { flex-wrap: wrap; }
@media (max-width: 560px) { .ev-hero { gap: 14px; } .ev-hero .seal-lg { width: 44px; height: 44px; border-radius: 10px; } }

/* ---- on paper ----
   The Controls report is printed and saved as a PDF. It prints as the document alone, in the
   light colours whatever the theme on screen, and it is never cut to the height of the window. */
@media print {
  :root[data-theme="dark"] {
    --canvas: #ffffff; --bg: #ffffff; --bg-2: #faf9f7; --bg-3: #f1f0ec; --bg-hover: #f6f5f2; --bg-active: #eeede8;
    --line: #e9e7e1; --line-2: #d9d6cd; --text: #0a0b0d; --text-2: #53555b; --text-3: #6e6f75; --ink: #07080a; --ink-text: #ffffff;
    --accent: #3050ff; --accent-soft: #eef1ff; --accent-line: #c7d1ff;
    --allow: #0a7a43; --m-allow: #16a05e; --allow-bg: #e7f5ec; --deny: #b8261f; --m-deny: #cf3b30; --deny-bg: #fdecea;
    --esc: #8f5200; --m-esc: #e8a700; --esc-bg: #fcf1dd; --ref: #55565c; --m-ref: #85878e; --ref-bg: #efeee9;
    color-scheme: light;
  }
  .proof { display: none !important; }
  .shell { background: #fff !important; }
  .main { padding: 0 !important; }
  .sheet { display: block !important; height: auto !important; overflow: visible !important; border: 0 !important; border-radius: 0 !important; background: #fff !important; }
  .top { height: auto; padding: 0 0 10px; }
  .page, .ctl-page { margin: 0 !important; padding: 0 !important; max-width: none !important; }
  .statline, .ctl-chart, .card { break-inside: avoid; }
}

/* ---- First-run setup: one column that holds everything to press, and a stage
   beside it that only shows. Nothing to press is ever in the stage, so nothing is lost when a
   narrow window hides it. ---- */
.ob.fr { grid-template-columns: minmax(520px, 660px) 1fr; }
.fr .ob-left { padding-bottom: 28px; }
.fr .ob-step { gap: 20px; }
.fr .ob-step > p.lede { max-width: 56ch; }
.fr-quiet { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
.fr-quiet .i { flex: none; margin-top: 2px; width: 13px; height: 13px; }
.agents { display: flex; flex-wrap: wrap; gap: 8px; }
.agent { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 5px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); font-size: 13px; font-weight: 500; color: var(--text); transition: border-color .15s, box-shadow .15s, background .15s; }
.agent[data-agent="other"] { padding: 0 12px; color: var(--text-2); }
.agent .ilogo { border-radius: 6px; }
.agent:hover { border-color: var(--text-3); }
.agent.on { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); background: var(--bg-2); }
/* The agent a signed command is for: the picked chip, kept as a statement and not a button. */
.agent.set { cursor: default; }
.agent.set:hover { border-color: var(--text); }
.agent[data-act="change-agent"] { padding: 0 12px; color: var(--text-2); }
/* The way back, inside "Another kind": to the kinds, or to the products of one kind. */
.fr-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px 0 6px; margin-left: -6px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 13px; font-weight: 500; color: var(--text-2); cursor: pointer; }
.fr-back:hover { background: var(--bg-2); color: var(--text); }
.fr-back:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fr-back .i { width: 14px; height: 14px; }
.fr-other .ilist .ihow { white-space: nowrap; }
.fr-other { scroll-margin-top: 20px; }
.linkish { border: 0; background: none; padding: 0; font: inherit; font-size: inherit; color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); cursor: pointer; }
.linkish:hover { text-decoration-color: var(--text); }
.fr-terms { display: flex; flex-direction: column; gap: 12px; }
.fr-terms p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.55; max-width: 60ch; }
.fr-cmd { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 260px; user-select: all; }
.fr-msg { font-family: var(--sans); font-size: 13px; line-height: 1.55; max-height: 460px; }
.fr-q { padding: 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); }
.fr-q h2, .fr-h2 { font-size: 15px; font-weight: 550; margin: 0; }
.fr-q p { margin: 3px 0 12px; font-size: 13px; }
.picks.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.picks.three .pick { justify-content: center; text-align: center; padding: 11px 8px; }
.fr-next { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--bg); }
.fr-next li + li { border-top: 1px solid var(--line); }
.fr-next a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: inherit; text-decoration: none; transition: background .15s; }
.fr-next a:hover { background: var(--bg-hover); }
.fr-next .two { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.fr-next b { font-size: 13.5px; font-weight: 500; }
.fr-next small { font-size: 12.5px; color: var(--text-3); line-height: 1.45; }
.fr-next .pi, .fr-other .pi { width: 30px; height: 30px; border-radius: 7px; background: var(--bg-3); display: grid; place-items: center; flex: none; }
.fr-feed { box-shadow: none; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
.fr-feed .feed-rows { height: auto; min-height: 0; }
.fr-feed .feed-row { grid-template-columns: 172px minmax(0, 1fr) auto; }
.fr-feed .feed-row > .trunc { display: none; }
.fr .sim-note { min-height: 0; margin: 0; }
.approve-bar.stop { background: var(--deny-bg); color: var(--deny); box-shadow: 0 0 0 1px var(--deny), var(--shadow-2); }
.pw { position: relative; display: flex; }
.pw .input { flex: 1; padding-right: 58px; }
.pw-show { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 28px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; font: inherit; font-size: 12.5px; font-weight: 500; color: var(--text-2); cursor: pointer; }
.pw-show:hover { background: var(--bg-hover); color: var(--text); }
@media (max-width: 900px) {
  .ob.fr { grid-template-columns: minmax(0, 1fr); }
  .fr-feed .feed-row { grid-template-columns: minmax(0, 1fr) auto; height: auto; padding: 8px 12px; row-gap: 2px; }
  .fr-feed .feed-row .t { grid-column: 1 / -1; grid-row: 2; white-space: normal; overflow-wrap: anywhere; }
  .fr-feed .feed-row::before, .fr-feed .feed-row::after { display: none; }
}

/* ---- Getting started on Overview: first on the page until it is done. ---- */
.ov-start-slot:empty, .ov-since-slot:empty { display: none; }
.ov-start.slim .card-head { border-bottom: 0; }
.ov-since { margin-top: 0; }
.ov-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.ov-fig { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--bg); color: inherit; text-decoration: none; }
.ov-fig:hover { background: var(--bg-hover); }
.ov-fig .fig { font-size: 26px; font-weight: 450; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ov-fig span { font-size: 12.5px; color: var(--text-3); }
.ov-since-lines { list-style: none; margin: 0; padding: 6px 16px 12px; border-top: 1px solid var(--line); }
.ov-since-lines li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.ov-since-lines li .i { flex: none; margin-top: 3px; }
.ov-since-lines b { color: var(--text); font-weight: 550; }
.ov .ov-start-slot + .ov-since-slot:not(:empty) { margin-top: 0; }

/* ---- The starter rules on the Policy page (prototype). ---- */
.starter { overflow: hidden; }
.starter-head { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px 12px; }
.starter-head h2 { font-size: 15px; font-weight: 550; margin: 0 0 4px; }
.starter-head p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.5; max-width: 68ch; }
.starter-list { list-style: none; margin: 0; padding: 0; }
.starter-list > li { border-top: 1px solid var(--line); padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.starter-list > li.want { background: var(--bg-2); }
.starter-row { display: flex; gap: 14px; align-items: flex-start; }
.starter-row b { font-size: 13.5px; font-weight: 550; }
.starter-eg { font-size: 12px; color: var(--text-3); line-height: 1.5; overflow-wrap: anywhere; }
.starter-eg .mono { font-size: 11.5px; }
.starter-v { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 5px; font-size: 13px; color: var(--text-2); }
.starter-v.hit b { color: var(--esc); font-weight: 550; }
.starter-v.on { color: var(--allow); }
.starter-v .i { width: 13px; height: 13px; }
.starter-hits { list-style: none; margin: 0; padding: 4px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.starter-hits li { display: flex; flex-direction: column; gap: 1px; padding: 7px 0; border-top: 1px solid var(--line); min-width: 0; }
.starter-hits li:first-child { border-top: 0; }
.starter-hits .mono { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.starter-hits small { font-size: 12px; color: var(--text-3); }
.starter-hits .starter-fine { font-size: 12px; color: var(--text-3); }
.starter-people { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid color-mix(in srgb, var(--m-esc) 40%, transparent); border-radius: 8px; background: var(--esc-bg); font-size: 13px; color: var(--text-2); line-height: 1.5; }
.starter-people > .i { flex: none; margin-top: 3px; color: var(--esc); }
.starter-people b { color: var(--text); font-weight: 550; }
.starter-foot { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--bg-2); }
.starter-foot span { font-size: 12.5px; color: var(--text-3); flex: 1; min-width: 220px; line-height: 1.45; }

/* ---- What an invited approver lands on (prototype). ---- */
.appr-me { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.appr-me h2 { font-size: 15px; font-weight: 550; margin: 0; }
.appr-me p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.55; max-width: 66ch; }
.appr-me p.faint { color: var(--text-3); font-size: 12.5px; }
.appr-code { font-size: 17px; letter-spacing: .06em; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-2); align-self: flex-start; }
.appr-lead { margin-top: 8px !important; }
@media (max-width: 900px) {
  .starter-row { gap: 10px; }
  .starter-head { flex-wrap: wrap; }
  .appr-me { flex-direction: column; }
}

/* ---- First run, shared by sign-up, the recovery kit, the connect screen and the first receipt.
   The four steps are seals on one line: closed when a step is done, open on the step someone
   is on. The stage beside them holds one card, framed by the brand's two corner marks. ---- */
.fr-chain { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; font-size: 12.5px; color: var(--text-3); }
.fr-chain li { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.fr-chain li + li { flex: 1 1 auto; }
.fr-chain li + li::before { content: ""; flex: 1 1 14px; min-width: 14px; height: 1px; background: var(--line-2); margin: 0 5px 0 3px; }
.fr-chain li.done + li::before { background: color-mix(in srgb, var(--m-allow) 60%, var(--line-2)); }
.fr-chain li.on { color: var(--text); font-weight: 500; }
.fr-chain li.done { color: var(--text-2); }
.fr .fr-chain { margin: 30px 0 28px; }
.fr-nochain { height: 28px; }
.auth.first { grid-template-columns: minmax(460px, 580px) 1fr; }
.auth.first .auth-form > .row:first-child { margin-bottom: 30px; }

.crop { position: relative; display: flex; flex-direction: column; gap: 16px; width: 100%; }
.crop > .c1, .crop > .c2 { position: absolute; width: 15px; height: 15px; pointer-events: none; opacity: .5; }
.crop > .c1 { left: -13px; bottom: -13px; border-left: 1px solid var(--text); border-bottom: 1px solid var(--text); }
.crop > .c2 { right: -13px; top: -13px; border-right: 1px solid var(--text); border-top: 1px solid var(--text); }
.fr-stage { width: min(470px, 100%); }
.fr-stage .passport { max-width: none; }

.rec { overflow: hidden; color: var(--text); }
.rec-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.rec-head .mark { fill: currentColor; flex: none; }
.rec-title { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.rec-status { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font: 400 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.rec-status.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--m-allow); box-shadow: 0 0 0 3px color-mix(in srgb, var(--m-allow) 26%, transparent); }
.rec-rows { list-style: none; margin: 0; padding: 6px 0; }
.rec-rows li { position: relative; display: grid; grid-template-columns: 16px 30px minmax(0, 1fr) auto; column-gap: 10px; align-items: start; padding: 9px 16px; }
.rec-rows li::before, .rec-rows li::after { content: ""; position: absolute; left: 23.5px; width: 1px; background: var(--line-2); }
.rec-rows li::before { top: 0; height: 8px; }
.rec-rows li::after { top: 29px; bottom: 0; }
.rec-rows li:first-child::before, .rec-rows li:last-child::after { display: none; }
.rec-rows li.todo::before, .rec-rows li.on::before, .rec-rows li.on::after, .rec-rows li.todo::after { background: none; border-left: 1px dashed var(--line-2); }
.rec-rows .node { margin-top: 3px; display: grid; }
.rec-rows .n { font: 400 11.5px/20px var(--mono); color: var(--text-3); font-variant-numeric: tabular-nums; }
.rec-rows .two { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rec-rows b { font-size: 13.5px; line-height: 20px; font-weight: 450; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-rows small { font-size: 12px; color: var(--text-3); line-height: 1.45; }
.rec-rows .r { font: 400 11.5px/20px var(--mono); color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rec-rows li.todo b { color: var(--text-2); font-weight: 400; }
.rec-rows li.hit { background: rgba(255, 255, 255, .06); }
.rec-rows li.hit b { font-weight: 500; }
.rec-rows li.fresh { animation: rowin .5s var(--ease); }
.rec-rows li.on .node { animation: waiting 1.8s ease-in-out infinite; }
@keyframes waiting { 50% { opacity: .45; } }
.rec-foot { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--line); font: 400 11px/1.3 var(--mono); letter-spacing: .02em; color: var(--text-3); }
.rec-try { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; margin: 2px 12px 12px; padding: 10px 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); background: rgba(255, 255, 255, .035); }
.rec-try .t { font-family: var(--mono); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-try .t span { color: var(--text-3); }
.rec-try .st { color: var(--allow); font-size: 12.5px; }
.rec-try .s { font: 400 11.5px/1 var(--mono); color: var(--text-3); }

/* The recovery kit. On the left, the code and one press that saves it. On the stage, the page
   that is saved: paper on ink, in both themes, with a seal that closes once it has been. */
.kit-panel { margin: auto 0; display: flex; flex-direction: column; gap: 16px; max-width: 400px; width: 100%; }
.kit-warn { display: flex; gap: 9px; margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--esc-bg); color: var(--text-2); font-size: 13px; line-height: 1.5; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--m-esc) 38%, transparent); }
.kit-warn .i { flex: none; color: var(--esc); margin-top: 2px; }
.kit-warn b { color: var(--text); font-weight: 550; }
.kit-label { font: 500 11px/1.3 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.kit-codebox { display: flex; flex-direction: column; gap: 6px; }
.kit-codebox .code { padding: 16px 12px; font-size: 19px; letter-spacing: .05em; text-align: center; user-select: all; white-space: normal; overflow-wrap: anywhere; }
.kit-acts { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.kit-status { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-height: 40px; }
.kit-say { margin: 0; font-size: 13px; color: var(--text-3); line-height: 1.5; }
.kit-say.bad { color: var(--deny); }
.kit-status .linkish { font-size: 13px; }
.kit-fine { font-size: 12px; margin: 0; line-height: 1.5; }
.kit-stage { align-items: center; }
.kit-stage .crop { width: min(440px, 100%); }
.kit { --bg: #fff; --bg-2: #faf9f7; --text: #0a0b0d; --text-2: #53555b; --text-3: #6e6f75; --line: #e9e7e1; --line-2: #d9d6cd; --allow: #0a7a43; --m-allow: #16a05e; --allow-bg: #e7f5ec; --m-esc: #e8a700;
  background: var(--bg); color: var(--text); border-radius: 12px; padding: 24px 28px 16px; box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .6); }
.kit-head { display: flex; align-items: center; justify-content: space-between; }
.kit-head .lockup { font-size: 16px; }
.kit-title { font-size: 22px; font-weight: 500; letter-spacing: -.03em; margin-top: 14px; }
.kit-rows { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 5px 12px; margin: 12px 0 16px; font-size: 13px; }
.kit-rows dt { color: var(--text-3); }
.kit-rows dd { margin: 0; overflow-wrap: anywhere; }
.kit .kit-label { margin-bottom: 6px; }
.kit-code { font: 400 17px/1.3 var(--mono); letter-spacing: .05em; padding: 13px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-2); text-align: center; overflow-wrap: anywhere; }
.kit-sects { display: grid; gap: 10px; margin-top: 16px; }
.kit-sects b { font-size: 12.5px; font-weight: 600; }
.kit-sects p { margin: 1px 0 0; font-size: 12px; color: var(--text-2); line-height: 1.5; }
.kit-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 11px; border-top: 1px solid var(--line); font: 400 11px/1.3 var(--mono); color: var(--text-3); }
.kit.signed .kit-foot span:first-child { color: var(--allow); }

/* The connect screen: three doors, the command with its two tabs, the three lines that tick by
   themselves, and what is sent. */
.fr-doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.door { display: flex; flex-direction: column; gap: 5px; padding: 12px 12px 13px; text-align: left; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); color: var(--text); transition: border-color .15s, background .15s, box-shadow .15s; }
.door:hover { border-color: var(--text-3); }
.door.on { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); background: var(--bg-2); }
.door-top { display: flex; align-items: center; gap: 8px; }
.door b { font-size: 13.5px; font-weight: 500; }
.door-sub { font-size: 12px; color: var(--text-3); line-height: 1.4; }
.agent-i { width: 22px; height: 22px; border-radius: 6px; background: var(--bg-3); display: grid; place-items: center; }
.agent-i .i { width: 13px; height: 13px; }
.fr-cmdbox { border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); overflow: hidden; }
.fr-cmdhead { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.fr-cmdtitle { font-size: 13px; font-weight: 500; padding-left: 4px; }
/* The box scrolls when the text is long. A soft edge shows at the top or the foot only while
   there is more that way, so a prompt that runs on is not taken for one that ends there. */
.fr-cmdbox .fr-cmd { border: 0; border-radius: 0; max-height: 230px;
  background:
    linear-gradient(var(--bg) 40%, transparent) top / 100% 34px no-repeat local,
    linear-gradient(transparent, var(--bg) 60%) bottom / 100% 34px no-repeat local,
    linear-gradient(color-mix(in srgb, var(--text) 16%, transparent), transparent) top / 100% 12px no-repeat scroll,
    linear-gradient(transparent, color-mix(in srgb, var(--text) 16%, transparent)) bottom / 100% 12px no-repeat scroll,
    var(--bg); }
/* The prompt is longer than the command, and the one command it holds sits in its middle:
   tall enough that the command is on show without scrolling. */
.fr-cmdbox .fr-cmd[data-mode="prompt"] { max-height: 356px; }
.fr-cmdfoot { margin: 0; padding: 10px 14px 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
.fr-steps { list-style: none; margin: 0; padding: 4px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); }
.fr-steps li { position: relative; display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 12px; align-items: start; padding: 11px 0; color: var(--text-3); }
.fr-steps li::before, .fr-steps li::after { content: ""; position: absolute; left: 7.5px; width: 1px; background: var(--line-2); }
.fr-steps li::before { top: 0; height: 10px; }
.fr-steps li::after { top: 32px; bottom: 0; }
.fr-steps li:first-child::before, .fr-steps li:last-child::after { display: none; }
.fr-steps .node { margin-top: 3px; display: grid; }
.fr-steps li > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fr-steps b { font-size: 13.5px; font-weight: 500; overflow-wrap: anywhere; }
.fr-steps span { font-size: 12.5px; line-height: 1.5; }
.fr-steps li.on { color: var(--text-2); }
.fr-steps li.on b, .fr-steps li.done b { color: var(--text); }
.fr-steps li.on .node { animation: waiting 1.8s ease-in-out infinite; }
.fr-steps li.bad b { color: var(--deny); }
.fr-offline { display: flex; gap: 9px; margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--deny-bg); font-size: 13px; color: var(--text-2); line-height: 1.5; }
.fr-offline .i { flex: none; color: var(--deny); margin-top: 2px; }
.fr-offline b { color: var(--text); font-weight: 550; }
.fr-sent { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.fr-sent > div { padding: 11px 14px 12px; }
.fr-sent > div + div { border-left: 1px solid var(--line); }
.fr-sent b { font-size: 12.5px; font-weight: 550; }
.fr-sent p { margin: 3px 0 0; font-size: 12px; color: var(--text-2); line-height: 1.5; }

/* The first receipt, as a document: what was asked, the decision, and the facts on it. */
.fr-receipt { border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); overflow: hidden; }
.rcpt-top { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.rcpt-top .two { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rcpt-n { font: 400 12px/1.4 var(--mono); color: var(--text-3); }
.rcpt-st { font-size: 14.5px; font-weight: 550; }
.rcpt-st.allow { color: var(--allow); }
.rcpt-st.deny { color: var(--deny); }
.rcpt-st.escalate, .rcpt-st.late { color: var(--esc); }
.rcpt-st.refused { color: var(--ref); }
.fr-receipt .ask-line { padding: 13px 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); font: 400 13.5px/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 132px; overflow: auto; }
.rcpt-facts { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 7px 12px; margin: 0; padding: 14px 16px; font-size: 13px; }
.rcpt-facts dt { color: var(--text-3); }
.rcpt-facts dd { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .auth.first { grid-template-columns: minmax(0, 1fr); }
  .fr .fr-chain { margin: 22px 0 22px; }
}
@media (max-width: 560px) {
  .fr-chain li:not(.on) .l { display: none; }
  .fr-chain li + li::before { margin: 0 4px 0 0; }
  .fr-doors { grid-template-columns: minmax(0, 1fr); }
  .door { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
  .fr-sent { grid-template-columns: minmax(0, 1fr); }
  .fr-sent > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .kit-acts { grid-template-columns: minmax(0, 1fr); }
  .kit-codebox .code { font-size: 17px; }
}
@media (max-height: 780px) { .ob-right .passport .p-mrz { display: none; } }
@media (prefers-reduced-motion: reduce) { .rec-rows li.on .node, .fr-steps li.on .node { animation: none; } .rec-rows li.fresh { animation: none; } }

/* Getting started: the job in hand on the left, with its one button. Every job on the right, as
   nodes on one line: closed when done, open on the one in hand. It opens part done. */
.gs-count { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.gs-seals { display: inline-flex; gap: 3px; }
.gs { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.gs-next { display: flex; gap: 16px; align-items: flex-start; padding: 22px 22px 24px; border-right: 1px solid var(--line); background: var(--bg-2); border-radius: 0 0 0 12px; }
.gs-next-b { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gs-next h2 { font-size: 19px; line-height: 1.25; font-weight: 500; letter-spacing: -.02em; }
.gs-next h2 b { font-weight: inherit; }
.gs-next p { font-size: 13.5px; color: var(--text-2); line-height: 1.5; max-width: 52ch; }
.gs-act { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.gs-note { margin: 0; flex: 1 1 240px; }
.gs-invite { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.gs-invite .row { gap: 8px; flex-wrap: wrap; }
.gs-invite .input { flex: 1 1 220px; max-width: 300px; }
.gs-invite .err { font-size: 12.5px; color: var(--deny); }
.gs-invited { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.gs-list { list-style: none; margin: 0; padding: 10px 10px 12px; }
.gs-list li { position: relative; display: flex; align-items: center; gap: 6px; border-radius: 8px; }
.gs-list li::before, .gs-list li::after { content: ""; position: absolute; left: 16.5px; width: 1px; height: 6px; background: var(--line-2); }
.gs-list li::before { top: 0; }
.gs-list li::after { bottom: 0; }
.gs-list li:first-child::before, .gs-list li:last-child::after { display: none; }
.gs-row { flex: 1; min-width: 0; display: flex; align-items: center; gap: 11px; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; font: inherit; color: var(--text-2); }
button.gs-row:hover { background: var(--bg-hover); color: var(--text); }
.gs-row .node { display: grid; flex: none; }
.gs-row b { font-size: 13px; font-weight: 450; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-list li.cur .gs-row { background: var(--bg-active); color: var(--text); }
.gs-list li.cur b { font-weight: 550; }
.gs-list li.done .gs-row { color: var(--text-3); }
.gs-list li.put .gs-row { color: var(--text-3); opacity: .7; }
.gs-skip { flex: none; height: 24px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; font: inherit; font-size: 12px; color: var(--text-3); cursor: pointer; }
.gs-skip:hover { background: var(--bg-active); color: var(--text); }
.gs-done { flex: none; padding: 0 8px; font-size: 12px; color: var(--text-3); }
@media (max-width: 900px) {
  .gs { grid-template-columns: minmax(0, 1fr); }
  .gs-next { border-right: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 18px 16px 20px; }
  .gs-next .seal-lg { display: none; }
  .gs-seals { display: none; }
}

/* small fixes for the first-run column */
.fr-chain + .fr-quiet { margin: -14px 0 20px; }
.gs-act a.btn { text-decoration: none; }
.gs-next { align-items: flex-start; min-height: 100%; }
.auth.first .fr-chain { margin-bottom: 28px; }
.auth.first .auth-form > p.faint { margin-top: 18px; }
@media (max-width: 560px) { .fr-cmdhead { flex-wrap: wrap; } .fr-cmdhead .seg { flex: 1 1 100%; } .fr-cmdhead .seg button { flex: 1; padding: 0 6px; font-size: 12.5px; } }
.tag-test { margin-left: 8px; padding: 1px 6px; border-radius: 4px; font: 500 11px/1.5 var(--sans); letter-spacing: .02em; color: var(--text-2); background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line); vertical-align: 1px; }

/* Handing the command on by email: two fields side by side, and the email shown before it goes. */
.fr-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; }
.fr-two > .field:only-child { grid-column: 1 / -1; max-width: 260px; }
textarea.input { height: auto; padding: 8px 10px; line-height: 1.5; resize: vertical; min-height: 56px; }
.fr-mail { border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); overflow: hidden; }
.fr-mail dl { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 12px; margin: 0; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); font-size: 13px; }
.fr-mail dt { color: var(--text-3); }
.fr-mail dd { margin: 0; overflow-wrap: anywhere; }
.fr-mail-body { padding: 14px; font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 320px; overflow: auto; }
@media (max-width: 560px) { .fr-two { grid-template-columns: minmax(0, 1fr); } }

