/* ODIN design system — "the flow itself".
 *
 * Rules (keep them as ODIN grows):
 *   1. Motion communicates activity. Glow communicates exceptional focus. Nothing else glows.
 *   2. Healthy things recede. Exceptions come forward.
 *   3. Content before containers: hairlines and space, not boxes.
 *   4. One type family (Inter Tight). Small labels are tracked capitals, not a code font.
 *   5. Every state is readable in words with motion switched off.
 */

@font-face { font-family: 'Inter Tight'; font-weight: 300; font-display: swap; src: url('/shared/fonts/inter-tight-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-weight: 400; font-display: swap; src: url('/shared/fonts/inter-tight-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-weight: 500; font-display: swap; src: url('/shared/fonts/inter-tight-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-weight: 600; font-display: swap; src: url('/shared/fonts/inter-tight-latin-600-normal.woff2') format('woff2'); }

:root {
  --bg: #0B0C0E;
  --bg-attention: #0D0C0A;
  --surface: #121316;
  --surface-2: #16171A;
  --surface-3: #1C1D21;
  --ink: #ECEDEE;
  --ink-2: #C9CCD0;
  --muted: #8E939B;
  --faint: #5C6168;
  --line: rgba(236, 237, 238, 0.10);
  --line-2: rgba(236, 237, 238, 0.06);
  --flow: #5EE6B0;
  --flow-2: #BFFBE3;
  --flow-soft: rgba(94, 230, 176, 0.10);
  --amber: #FFB020;
  --amber-ink: #FFC555;
  --amber-soft: rgba(255, 176, 32, 0.12);
  --danger: #FF7A6E;
  --danger-soft: rgba(255, 122, 110, 0.12);
  --info: #9DB8E8;
  --radius: 14px;
  --radius-sm: 9px;
  --ease: cubic-bezier(0.6, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; /* only for IDs a person may copy */
  --gutter: clamp(20px, 7vw, 116px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; font-feature-settings: 'tnum' 0; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.num, .tnum { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 0.88em; letter-spacing: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.tiny { font-size: 13.5px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.label { font-weight: 500; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---- type scale -------------------------------------------------------------------- */
.display { margin: 0; font-weight: 300; font-size: clamp(44px, 7vw, 120px); line-height: 0.95; letter-spacing: -0.035em; }
.display.md { font-size: clamp(38px, 5.4vw, 88px); }
.display.sm { font-size: clamp(32px, 3.8vw, 60px); line-height: 1; }
.display b, .display strong { font-weight: 500; }
.display .amber { color: var(--amber); font-weight: 500; }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 40em; }
.lede.muted { color: var(--muted); }
.chapter-num { display: block; color: var(--flow); margin-bottom: 20px; }
.chapter-num.amber { color: var(--amber); }

/* ---- entrance: content arrives, it doesn't pop -------------------------------------- */
.rise { animation: rise 0.8s var(--ease-out) both; }
.rise-2 { animation: rise 0.8s 0.12s var(--ease-out) both; }
.rise-3 { animation: rise 0.8s 0.24s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---- controls ------------------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid rgba(236, 237, 238, 0.28); background: none; color: var(--ink); font-weight: 500; font-size: 16px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s; }
.btn:hover { border-color: var(--ink); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-primary:hover { background: #fff; border-color: #fff; }
.btn-ghost { border-color: transparent; color: var(--muted); padding: 0 12px; }
.btn-ghost:hover { color: var(--ink); border-color: transparent; }
.btn-danger { border-color: rgba(255, 122, 110, 0.5); color: var(--danger); }
.btn-danger:hover { border-color: var(--danger); }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn.on, .btn[aria-pressed='true'] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.quiet { background: none; border: 0; padding: 10px 0; min-height: 44px; color: var(--muted); font-weight: 500; font-size: 16px; cursor: pointer; text-decoration: none; border-bottom: 1px solid rgba(236, 237, 238, 0.2); display: inline-flex; align-items: center; }
.quiet:hover { color: var(--ink); border-color: var(--ink); }

.field { display: grid; gap: 7px; }
.field label, .field .label { font-size: 14px; color: var(--ink-2); font-weight: 500; letter-spacing: 0; text-transform: none; }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 16px; transition: border-color 0.2s, background 0.2s; }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(236, 237, 238, 0.22); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); background: var(--surface-2); }
.input:disabled { color: var(--muted); }
.input.big { font-size: 20px; min-height: 58px; padding: 14px 18px; }
.textarea { min-height: 96px; resize: vertical; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.hint { font-size: 13.5px; color: var(--muted); }
.form-grid { display: grid; gap: 18px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.error-text { color: var(--danger); font-size: 14.5px; }
.row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.spacer { flex: 1; }
.stack { display: grid; gap: 18px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---- status words (not badges) -------------------------------------------------------- */
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; letter-spacing: 0; }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.9; }
.pill.ok, .pill.progress { color: var(--flow); }
.pill.attention, .pill.warn { color: var(--amber-ink); }
.pill.failing { color: var(--amber-ink); } /* exceptions are amber; red is only for errors in forms */
.pill.info { color: var(--info); }
.pill.off { color: var(--faint); }
.pill.test { color: var(--amber-ink); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid rgba(255, 176, 32, 0.4); border-radius: 4px; padding: 3px 7px; }
.pill.test::before { display: none; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.ok, .dot.progress { background: var(--flow); }
.dot.attention { background: var(--amber); }
.dot.failing { background: var(--amber); }
.dot.off { background: var(--faint); }

/* ---- sections (instead of cards) ------------------------------------------------------- */
.card { border-top: 1px solid var(--line); padding: 22px 0 0; }
.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h3 { font-size: 18px; }
.card-pad { padding: 4px 0; }
.card-label { font-size: 13px; color: var(--muted); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 0; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink-2); min-width: 0; overflow-wrap: anywhere; }
.empty { padding: 48px 0; color: var(--muted); }
.empty h3 { color: var(--ink); font-weight: 400; font-size: 24px; margin-bottom: 6px; }
.callout { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); margin-bottom: 8px; flex-wrap: wrap; }
.callout.attention { color: var(--amber-ink); }
.callout.failing { color: var(--danger); }
.callout p { flex: 1; min-width: 200px; color: var(--ink-2); }
.never, .safe { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--line-2); }
.never svg, .safe svg { width: 15px; height: 15px; flex: none; }

/* ---- tables: conventional, when a person asks for a table's worth -------------------------- */
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; font-weight: 500; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 12px 18px 12px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 15px 18px 15px 0; border-bottom: 1px solid var(--line-2); color: var(--ink-2); vertical-align: middle; }
.tbl tr.link { cursor: pointer; transition: background 0.15s; }
.tbl tr.link:hover td { color: var(--ink); background: rgba(236, 237, 238, 0.025); }
.tbl tr.link:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.tbl .cell-main { color: var(--ink); font-weight: 500; }
.tbl .cell-sub { font-size: 13px; color: var(--muted); }
.tbl .num { text-align: right; }
.no { color: var(--faint); }
.yes { color: var(--flow); display: inline-flex; }
.yes svg { width: 16px; height: 16px; }

/* ---- steps / progress bar / feed -------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: center; color: var(--muted); }
.steps li .mark { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--faint); display: grid; place-items: center; flex: none; }
.steps li .mark svg { width: 12px; height: 12px; }
.steps li.done { color: var(--ink-2); }
.steps li.done .mark { background: var(--flow); border-color: var(--flow); color: var(--bg); }
.steps li.next { color: var(--ink); }
.steps li.next .mark { border-color: var(--amber); }
.meter { width: 90px; height: 2px; background: var(--line); position: relative; }
.meter i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--muted); }
.meter.done i { background: var(--flow); }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 140px 1fr; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; color: var(--ink-2); }
.feed time { color: var(--muted); font-size: 14px; }

/* ---- modal (forms only; never for decisions inside a flow) ---------------------------------- */
.modal-back { position: fixed; inset: 0; background: rgba(5, 6, 7, 0.72); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; z-index: 50; animation: fade 0.25s ease both; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; animation: rise 0.35s var(--ease-out) both; }
.modal header { padding: 28px 28px 8px; }
.modal header h3 { font-size: 24px; font-weight: 400; letter-spacing: -0.02em; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.modal header p { color: var(--muted); margin-top: 6px; }
.modal .body { padding: 16px 28px; }
.modal footer { padding: 12px 28px 26px; display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.copybox { display: flex; gap: 10px; align-items: center; padding: 10px 10px 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.copybox code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-family: var(--mono); font-size: 13px; color: var(--ink-2); }

.toasts { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 8px; z-index: 60; }
.toast { background: var(--surface-3); border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; min-width: 260px; max-width: 380px; display: grid; gap: 2px; animation: rise 0.35s var(--ease-out) both; }
.toast span { color: var(--muted); font-size: 14px; }
.toast.bad strong { color: var(--danger); }

/* ---- the flow: Lely FSM → ODIN → destination ----------------------------------------------
 * One object, kept on screen. Its state is one class on .flow (is-<state>); only classes change,
 * so every change is a transition, never a redraw.
 */
.flow { position: relative; height: 2px; width: 100%; margin: 0 auto; transition: max-width 1s var(--ease), opacity 0.8s; }
.flow .seg { position: absolute; top: 0; height: 2px; background: rgba(236, 237, 238, 0.14); overflow: visible; transition: background 0.8s; }
.flow .seg.l { left: 0; width: 50%; }
.flow .seg.r { left: 50%; width: 50%; }
.flow .dot-t { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--flow); opacity: 0; animation: travel 4.8s linear infinite; transition: opacity 0.6s, background 0.6s; }
.flow .dot-t:nth-child(2) { animation-delay: -1.6s; }
.flow .dot-t:nth-child(3) { animation-delay: -3.2s; }
@keyframes travel { from { left: 0; } to { left: 100%; } }
@keyframes travelY { from { top: 0; } to { top: 100%; } }

.flow .node { position: absolute; top: 1px; width: 0; height: 0; transition: opacity 0.8s; }
.flow .node.f { left: 0; }
.flow .node.o { left: 50%; }
.flow .node.b { left: 100%; }
.flow .node .c { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 2px solid #6B7078; transition: transform 0.9s cubic-bezier(0.3, 1.3, 0.5, 1), background 0.6s, border-color 0.6s, box-shadow 0.6s; }
.flow .node.o .c { left: -13px; top: -13px; width: 26px; height: 26px; }
.flow .node.o .c::after { content: ''; position: absolute; inset: -11px; border-radius: 50%; border: 1px dashed rgba(94, 230, 176, 0.55); opacity: 0; transition: opacity 0.6s; animation: spin 7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.flow .lab { position: absolute; top: 26px; left: 0; transform: translateX(-50%); text-align: center; white-space: nowrap; transition: transform 0.9s var(--ease), opacity 0.6s; }
.flow .lab b { display: block; font-weight: 500; font-size: 17px; color: var(--ink); transition: color 0.6s; }
.flow .lab .label { display: block; margin-top: 6px; min-height: 1em; }
.flow .lab .pill.test { margin-top: 8px; }
.flow .node.f .lab { left: 0; }
.flow .node.b .lab { left: 0; }

/* state: idle — everything flowing, slowly */
.flow.is-idle .dot-t, .flow.is-done-idle .dot-t { opacity: 0.55; }
.flow.is-idle .node .c, .flow.is-attention .node.f .c, .flow.is-attention .node.b .c { background: var(--flow); border-color: var(--flow); }

/* setup: the flow being assembled */
.flow.is-setup .node .c { border-style: dashed; }
.flow.is-setup .node.has .c { background: var(--flow); border-color: var(--flow); border-style: solid; }
.flow.is-setup .seg.has { background: rgba(94, 230, 176, 0.35); }
.flow.is-setup .node.next .c { border-color: var(--amber); }
.flow.is-setup .node.next .lab b { color: var(--amber-ink); }

/* find: Lely FSM is giving */
.flow.is-find .seg.l { background: rgba(94, 230, 176, 0.32); }
.flow.is-find .seg.l .dot-t { opacity: 1; animation-duration: 1.05s; background: var(--flow-2); }
.flow.is-find .seg.l .dot-t:nth-child(2) { animation-delay: -0.35s; }
.flow.is-find .seg.l .dot-t:nth-child(3) { animation-delay: -0.7s; }
.flow.is-find .node.f .c { transform: scale(1.8); background: var(--flow-2); border-color: var(--flow-2); box-shadow: 0 0 0 8px var(--flow-soft); }
.flow.is-find .node.f .lab { transform: translateX(-50%) translateY(12px); }
.flow.is-find .node.b { opacity: 0.35; }

/* check: ODIN is working */
.flow.is-check .seg.l, .flow.is-review .seg.l, .flow.is-ready .seg.l, .flow.is-send .seg.l, .flow.is-done .seg.l { background: rgba(94, 230, 176, 0.38); }
.flow.is-check .node.f, .flow.is-review .node.f, .flow.is-ready .node.f, .flow.is-send .node.f { opacity: 0.4; }
.flow.is-check .node.b, .flow.is-review .node.b { opacity: 0.35; }
.flow.is-check .node.o .c { transform: scale(1.7); background: var(--flow-2); border-color: var(--flow-2); box-shadow: 0 0 0 8px var(--flow-soft); }
.flow.is-check .node.o .c::after { opacity: 1; }
.flow.is-check .node.o .lab { transform: translateX(-50%) translateY(14px); }

/* review / attention: a person is needed, at ODIN */
.flow.is-review .node.o .c, .flow.is-attention .node.o .c { transform: scale(1.4); background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 8px var(--amber-soft); }
.flow.is-review .node.o .lab b, .flow.is-attention .node.o .lab b { color: var(--amber-ink); }

/* where the data has already been: quietly filled */
.flow.is-check .node.f .c, .flow.is-review .node.f .c, .flow.is-ready .node.f .c, .flow.is-send .node.f .c { background: var(--flow); border-color: var(--flow); }

/* ready: the path to the destination opens */
.flow.is-ready .node.o .c, .flow.is-send .node.o .c, .flow.is-done .node .c { background: var(--flow); border-color: var(--flow); }
.flow.is-ready .seg.r { background: linear-gradient(90deg, rgba(94, 230, 176, 0.5), rgba(94, 230, 176, 0.08)); }
.flow.is-ready .node.b .c { border-color: var(--flow); }

/* send: the destination is receiving */
.flow.is-send .seg.r { background: rgba(94, 230, 176, 0.32); }
.flow.is-send .seg.r .dot-t { opacity: 1; animation-duration: 1.05s; background: var(--flow-2); }
.flow.is-send .seg.r .dot-t:nth-child(2) { animation-delay: -0.35s; }
.flow.is-send .seg.r .dot-t:nth-child(3) { animation-delay: -0.7s; }
.flow.is-send .node.b .c { transform: scale(1.8); background: var(--flow-2); border-color: var(--flow-2); box-shadow: 0 0 0 8px var(--flow-soft); }
.flow.is-send .node.b .lab { transform: translateX(-50%) translateY(12px); }

/* done: calm, solid, complete */
.flow.is-done .seg.r { background: rgba(94, 230, 176, 0.38); }

/* broken at the source: Lely FSM can't be read */
.flow.is-broken-source .seg.l { background: repeating-linear-gradient(90deg, rgba(255, 176, 32, 0.75) 0 8px, transparent 8px 16px); }
.flow.is-broken-source .node.f .c { transform: scale(1.4); background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 8px var(--amber-soft); }
.flow.is-broken-source .node.f .lab b { color: var(--amber-ink); }
.flow.is-broken-source .node.o, .flow.is-broken-source .node.b { opacity: 0.45; }

/* broken at the destination: registrations wait, visibly, at ODIN */
.flow.is-broken-dest .seg.l { background: rgba(94, 230, 176, 0.3); }
.flow.is-broken-dest .seg.l .dot-t { animation: none; opacity: 1; background: var(--amber); }
.flow.is-broken-dest .seg.l .dot-t:nth-child(1) { left: calc(100% - 22px); }
.flow.is-broken-dest .seg.l .dot-t:nth-child(2) { left: calc(100% - 36px); }
.flow.is-broken-dest .seg.l .dot-t:nth-child(3) { left: calc(100% - 50px); }
.flow.is-broken-dest .seg.r { background: repeating-linear-gradient(90deg, rgba(255, 176, 32, 0.75) 0 8px, transparent 8px 16px); }
.flow.is-broken-dest .node.f .c, .flow.is-broken-dest .node.o .c { background: var(--flow); border-color: var(--flow); }
.flow.is-broken-dest .node.b .c { transform: scale(1.4); background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 8px var(--amber-soft); }
.flow.is-broken-dest .node.b .lab b { color: var(--amber-ink); }

/* a source or destination not chosen yet */
.flow .node.b.unset .c, .flow .node.f.unset .c { border-style: dashed; background: var(--bg); }
.flow .node.b.unset .lab b, .flow .node.f.unset .lab b { color: var(--muted); font-weight: 400; }

/* mini flows (Admin): the same object, smaller, no labels */
.flow.mini .node .c { left: -5px; top: -5px; width: 10px; height: 10px; border-width: 1.5px; }
.flow.mini .node.o .c { left: -6px; top: -6px; width: 12px; height: 12px; }
.flow.mini .node .c, .flow.mini.is-broken-dest .node.b .c, .flow.mini.is-broken-source .node.f .c, .flow.mini.is-attention .node.o .c { transform: none; box-shadow: none; }
.flow.mini .lab { display: none; }
.flow.mini .node.o .c::after { display: none; }

/* ---- reduced motion: meaning stays, movement goes --------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .flow .dot-t { display: none; }
}

/* ---- narrow: the flow turns vertical, Lely FSM at the top ----------------------------------- */
@media (max-width: 720px) {
  .flow:not(.mini) { width: 2px; height: 240px; margin: 0 0 0 14px; max-width: none !important; }
  .flow:not(.mini) .seg { left: 0 !important; width: 2px; height: 50%; }
  .flow:not(.mini) .seg.l { top: 0; }
  .flow:not(.mini) .seg.r { top: 50%; }
  .flow:not(.mini) .dot-t { left: -3px !important; margin-left: 0; margin-top: -4px; top: 0; animation-name: travelY; }
  .flow:not(.mini).is-broken-dest .seg.l .dot-t { animation: none; }
  .flow:not(.mini).is-broken-dest .seg.l .dot-t:nth-child(1) { top: calc(100% - 22px); }
  .flow:not(.mini).is-broken-dest .seg.l .dot-t:nth-child(2) { top: calc(100% - 36px); }
  .flow:not(.mini).is-broken-dest .seg.l .dot-t:nth-child(3) { top: calc(100% - 50px); }
  .flow:not(.mini) .is-broken-source .seg.l, .flow:not(.mini).is-broken-source .seg.l, .flow:not(.mini).is-broken-dest .seg.r { background: repeating-linear-gradient(180deg, rgba(255, 176, 32, 0.75) 0 8px, transparent 8px 16px); }
  .flow:not(.mini).is-ready .seg.r { background: linear-gradient(180deg, rgba(94, 230, 176, 0.5), rgba(94, 230, 176, 0.08)); }
  .flow:not(.mini) .node { left: 1px !important; }
  .flow:not(.mini) .node.f { top: 0; }
  .flow:not(.mini) .node.o { top: 50%; }
  .flow:not(.mini) .node.b { top: 100%; }
  .flow:not(.mini) .lab, .flow:not(.mini) .node .lab { left: 30px !important; top: -12px; transform: none !important; text-align: left; }
  .flow:not(.mini) .lab .label { margin-top: 3px; }
  .flow:not(.mini) .lab .pill.test { margin-top: 6px; }
  .form-grid.two, .grid-2 { grid-template-columns: 1fr; }
  .feed li { grid-template-columns: 1fr; gap: 2px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
}
