:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --paper: #fff;
  --soft: #e8f4f4;
  --line: #d9deea;
  --text: #1f2933;
  --muted: #667284;
  --accent: #117985;
  --accent-text: #fff;
  --green: #168a58;
  --yellow: #b57b11;
  --gray: #8993a3;
  --shadow: 0 8px 24px #1f29330d;
  --main-node: #dcebff;
  --main-border: #476e9e;
  --main-edge: #4c78a8;
  --side-edge: #8993a3;
  --branch-0-fill: #eef5e7;
  --branch-0-stroke: #7e8574;
  --branch-1-fill: #fff3e6;
  --branch-1-stroke: #a7794f;
  --branch-2-fill: #f4ecfa;
  --branch-2-stroke: #80669b;
  --branch-3-fill: #e8f4f4;
  --branch-3-stroke: #5f8888;
  --branch-4-fill: #fcecef;
  --branch-4-stroke: #a36b75;
  --branch-5-fill: #f2f1e7;
  --branch-5-stroke: #8a8661;
  --branch-6-fill: #ebeff7;
  --branch-6-stroke: #607ba0;
  --branch-7-fill: #f6ede7;
  --branch-7-stroke: #956e57;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e0f11;
  --paper: #14171a;
  --soft: #182b2d;
  --line: #3a4842;
  --text: #d0d4d1;
  --muted: #909992;
  --accent: #79c7d0;
  --accent-text: #102729;
  --green: #9aff8f;
  --yellow: #ffd375;
  --gray: #a4b5a0;
  --shadow: 0 8px 24px #0002;
  --main-node: #152430;
  --main-border: #4c7fa8;
  --main-edge: #4c7fa8;
  --side-edge: #56616c;
  --branch-0-fill: #122117;
  --branch-0-stroke: #396b4a;
  --branch-1-fill: #241b0e;
  --branch-1-stroke: #8a5d24;
  --branch-2-fill: #21132a;
  --branch-2-stroke: #704487;
  --branch-3-fill: #102327;
  --branch-3-stroke: #32727a;
  --branch-4-fill: #27131a;
  --branch-4-stroke: #7d3d50;
  --branch-5-fill: #25230e;
  --branch-5-stroke: #7c7429;
  --branch-6-fill: #121c2a;
  --branch-6-stroke: #3f5f8a;
  --branch-7-fill: #23170f;
  --branch-7-stroke: #74503a;
}

* { box-sizing: border-box; }
* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--muted) 48%, transparent) transparent; }
*::-webkit-scrollbar { width: 7px; height: 7px; }
*::-webkit-scrollbar-track, *::-webkit-scrollbar-corner { background: transparent; }
*::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--muted) 46%, transparent); border-radius: 8px; }
*::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--muted) 72%, transparent); }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { letter-spacing: -.035em; line-height: 1.12; }
.hidden { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); }
.wordmark { color: var(--text); font-size: 25px; font-weight: 800; letter-spacing: -.045em; margin: 0 0 16px; white-space: nowrap; }
.wordmark span { color: var(--accent); }

.preferences { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.login-preferences { position: fixed; top: 16px; right: 18px; z-index: 10; }
.workspace-open > .login-preferences { display: none; }
.menu-picker { position: relative; display: inline-flex; align-items: center; min-width: 0; }
.menu-picker > select { display: none; }
.picker-source { display: none; }
.picker-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 30px; height: 30px; padding: 4px 7px; color: var(--accent); background: transparent; border: 1px solid transparent; border-radius: 6px; white-space: nowrap; line-height: 16px; }
.picker-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.context-picker svg { flex: none; width: 11px; height: 11px; color: var(--muted); }
.picker-trigger:hover, .menu-picker.open > .picker-trigger { border-color: var(--line); background: var(--soft); }
.icon-picker .picker-trigger { width: 32px; height: 32px; padding: 5px; }
.icon-picker svg, .icon-control svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.context-picker .picker-trigger { justify-content: flex-start; max-width: min(225px, 31vw); font-size: 12px; font-weight: 700; }
.context-navigation > .context-picker:first-child .picker-trigger { padding-left: 0; }
.picker-menu { position: absolute; z-index: 40; top: 100%; left: 0; display: none; width: max-content; min-width: 160px; max-width: min(360px, calc(100vw - 24px)); padding-top: 3px; }
.picker-frame { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 15px 38px #0003; }
.picker-list { max-height: min(330px, 60vh); overflow: auto; padding: 5px; }
.icon-picker .picker-menu { left: auto; right: 0; min-width: 210px; }
.menu-picker:not(.suppress-hover):hover .picker-menu, .menu-picker.open .picker-menu { display: block; }
.picker-option { display: block; width: 100%; padding: 5px 8px; color: var(--text); background: transparent; border: 0; border-radius: 4px; text-align: left; white-space: nowrap; font-size: 12px; }
.picker-option:hover, .picker-option:focus-visible { color: var(--accent); background: var(--soft); }
.picker-option[aria-checked="true"] { color: var(--accent); font-weight: 750; }
.theme-toggle { display: grid; place-items: center; width: 32px; height: 32px; padding: 5px; color: var(--text); background: transparent; border: 1px solid transparent; border-radius: 7px; }
.theme-toggle:hover { color: var(--accent); border-color: var(--line); }
.theme-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .moon-icon { fill: currentColor; stroke: none; }
.sun-icon { display: none; }
:root[data-theme="dark"] .moon-icon { display: none; }
:root[data-theme="dark"] .sun-icon { display: block; }

.screen { min-height: 100vh; }
.login-screen { display: grid; place-items: center; padding: 68px 24px 24px; }
.login-card { width: min(100%, 560px); padding: 48px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.login-card h1 { font-size: clamp(30px, 5vw, 47px); max-width: 460px; margin-bottom: 14px; }
.login-card form { margin-top: 35px; }
.login-card form label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.input-row { display: flex; gap: 8px; }
.input-row input { flex: 1; min-width: 0; }
input, select, .quiet { color: var(--text); background: var(--paper); border: 1px solid var(--line); border-radius: 7px; padding: 9px 11px; }
.primary { color: var(--accent-text); background: var(--accent); border: 1px solid var(--accent); border-radius: 7px; padding: 9px 20px; font-weight: 750; }
.primary:hover { filter: brightness(.95); }
.quiet:hover, select:hover { border-color: var(--accent); }
.message { min-height: 20px; margin: 12px 0 0; color: var(--yellow); font-size: 13px; }

.selection-screen { position: fixed; z-index: 16; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(350px, calc(100vw - 32px)); min-height: 0; max-height: calc(100vh - 32px); overflow: auto; margin: 0; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 15px 38px #0003; }
.selection-screen .wordmark { display: none; }
.selection-screen #shard-project-name { display: block; margin: 0 0 4px; color: var(--muted); font-size: 11px; font-weight: 600; }
.selection-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.selection-header h1 { font-size: 16px; font-weight: 700; margin: 0; }
.selection-header .quiet { padding: 5px 7px; background: transparent; border-color: transparent; font-size: 11px; }
.selection-header .quiet:hover { color: var(--accent); border-color: var(--line); }
.selection-screen .muted { margin: 9px 0 0; font-size: 12px; }
.selection-screen .muted:empty { display: none; }
.selection-list { max-height: min(330px, 60vh); overflow: auto; margin-top: 12px; padding: 5px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.selection-list:empty { display: none; }
.selection-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 34px; padding: 6px 8px; color: var(--text); background: transparent; border: 0; border-radius: 4px; text-align: left; font-size: 12px; }
.selection-option:hover, .selection-option:focus-visible { color: var(--accent); background: var(--soft); }
.selection-label { min-width: 0; overflow-wrap: anywhere; font-weight: 650; }
.selection-detail { flex: none; color: var(--muted); font-size: 10px; white-space: nowrap; }

.workspace-screen { display: flex; flex-direction: column; height: 100vh; min-height: 520px; overflow: hidden; }
.toolbar { position: relative; z-index: 12; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
.toolbar .wordmark { font-size: 19px; margin: 0; }
.toolbar-actions { display: flex; align-items: center; gap: 16px; }
.toolbar .quiet { padding: 6px 9px; color: var(--muted); background: transparent; border-color: transparent; font-size: 12px; white-space: nowrap; }
.toolbar .quiet:hover { color: var(--accent); border-color: var(--line); }
.icon-control { display: grid; place-items: center; width: 32px; height: 32px; padding: 5px; color: var(--accent); background: transparent; border: 1px solid transparent; border-radius: 7px; }
.icon-control:hover { background: var(--soft); border-color: var(--line); }
.signout-control { color: var(--muted); }
.signout-control:hover { color: var(--accent); }
.toolbar-preferences { gap: 9px; }
.workspace-body { position: relative; display: flex; min-height: 0; flex: 1; }
.graph-panel { position: relative; display: flex; min-width: 0; min-height: 0; flex: 1; flex-direction: column; }
.panel-heading { position: relative; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 11px 20px 9px; }
.graph-heading { min-width: 0; }
.graph-heading h2 { margin: 3px 0 0; font-size: 18px; }
.context-navigation { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 30px; color: var(--muted); font-size: 12px; }
.context-divider { color: var(--muted); opacity: .55; }
.shard-selector { display: inline-flex; align-items: center; gap: 4px; }
.branch-selector { display: inline-flex; align-items: center; gap: 4px; }
.graph-tools { display: flex; align-items: center; flex: none; gap: 13px; }
.mode-toggle { height: 30px; padding: 0 10px; color: var(--green); background: transparent; border: 1px solid transparent; border-radius: 7px; font-size: 11px; font-weight: 700; }
.mode-toggle:hover { border-color: var(--line); }
.mode-toggle[data-mode="debug"] { color: var(--yellow); }
.mode-toggle::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.zoom-controls { display: flex; flex: none; align-items: center; gap: 0; }
.zoom-controls button { display: grid; place-items: center; min-width: 27px; height: 29px; padding: 0 4px; border: 1px solid transparent; border-radius: 6px; color: var(--text); background: transparent; line-height: 1; }
.zoom-controls button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.zoom-controls button:hover { color: var(--accent); border-color: var(--line); }
.zoom-controls button:disabled { color: var(--muted); cursor: default; }
.zoom-controls #zoom-reset { min-width: 43px; font-size: 11px; font-variant-numeric: tabular-nums; }

.graph-scroll { position: relative; flex: 1; min-height: 0; overflow: auto; direction: ltr; cursor: grab; -webkit-overflow-scrolling: touch; background-image: radial-gradient(var(--line) .55px, transparent .55px); background-size: 22px 22px; }
.graph-scroll:focus, .graph-scroll:focus-visible { outline: none; }
.graph-scroll.pan-ready { cursor: grab; }
.graph-scroll.panning { cursor: grabbing; user-select: none; }
.graph-stage { position: relative; min-width: 100%; min-height: 100%; }
.graph-canvas { position: relative; transform-origin: 0 0; }
.graph-edges { position: absolute; top: 0; left: 0; pointer-events: none; }
.graph-edges path { fill: none; stroke: var(--side-edge); stroke-width: 1.25; }
.graph-edges path.focused { stroke: var(--main-edge); stroke-width: 1.8; }
.graph-edges marker path { stroke: none; }
.graph-edges marker path.main { fill: var(--main-edge); }
.graph-edges marker path.side { fill: var(--side-edge); }
.node { position: absolute; width: 160px; height: 56px; overflow: hidden; padding: 7px 20px 6px 9px; text-align: left; background: var(--paper); color: var(--text); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.node { cursor: pointer; }
.node.main { background: var(--main-node); border-color: var(--main-border); }
.node.branch-0 { background: var(--branch-0-fill); border-color: var(--branch-0-stroke); }
.node.branch-1 { background: var(--branch-1-fill); border-color: var(--branch-1-stroke); }
.node.branch-2 { background: var(--branch-2-fill); border-color: var(--branch-2-stroke); }
.node.branch-3 { background: var(--branch-3-fill); border-color: var(--branch-3-stroke); }
.node.branch-4 { background: var(--branch-4-fill); border-color: var(--branch-4-stroke); }
.node.branch-5 { background: var(--branch-5-fill); border-color: var(--branch-5-stroke); }
.node.branch-6 { background: var(--branch-6-fill); border-color: var(--branch-6-stroke); }
.node.branch-7 { background: var(--branch-7-fill); border-color: var(--branch-7-stroke); }
.node:hover, .node.active { outline: 2px solid var(--accent); outline-offset: 1px; }
.node-title { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; white-space: pre-line; font-size: 11.5px; font-weight: 750; line-height: 1.12; }
.node-sub { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.routing-dot { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--gray); opacity: .72; }
.routing-dot.green { background: var(--green); }
.routing-dot.yellow { background: var(--yellow); }
.branch-toggle { position: absolute; z-index: 3; display: grid; place-items: center; width: 20px; height: 20px; padding: 0; color: var(--accent); background: transparent; border: 1px solid transparent; border-radius: 5px; }
.branch-toggle:hover, .branch-toggle[aria-expanded="true"] { background: var(--soft); border-color: var(--accent); }
.branch-toggle svg { width: 13px; height: 13px; }
.branch-continuation { position: absolute; z-index: 3; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; color: var(--accent); background: transparent; border: 0; outline: none; }
.branch-continuation svg { display: block; width: 24px; height: 24px; }
.branch-continuation circle { fill: currentColor; }
.branch-continuation:hover, .branch-continuation:focus-visible, .branch-continuation[aria-expanded="true"] { filter: brightness(1.35) drop-shadow(0 0 3px var(--accent)); }
.page-continuation { position: absolute; z-index: 3; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; color: var(--accent); background: transparent; border: 0; border-radius: 4px; cursor: pointer; }
.page-continuation:hover, .page-continuation:focus-visible { background: var(--soft); outline: 1px solid var(--accent); }
.page-continuation svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.page-continuation.previous svg { transform: scaleX(-1); }
.graph-edges path.page-edge { stroke: var(--main-edge); stroke-dasharray: 3 3; }
.graph-edges path.graph-growing-edge { marker-end: none; stroke-dasharray: 1; stroke-dashoffset: 1; animation: graph-edge-grow 45ms ease-out both; animation-delay: var(--grow-delay, 0ms); }
.node.graph-growing-node, .graph-growing-control { animation: graph-node-grow 35ms cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--grow-delay, 0ms); }
@keyframes graph-edge-grow { from { opacity: 0; stroke-dashoffset: 1; } to { opacity: 1; stroke-dashoffset: 0; } }
@keyframes graph-node-grow { from { opacity: 0; transform: translateX(-8px) scale(.88); } to { opacity: 1; transform: none; } }
.branch-menu { position: fixed; z-index: 80; min-width: 190px; max-width: min(290px, calc(100vw - 16px)); overflow: hidden; color: var(--text); background: var(--paper); border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 16px 42px #0004; }
.branch-menu-scroll { max-height: min(360px, 60vh); overflow: auto; padding: 5px; }
.branch-menu-heading { padding: 5px 8px 7px; color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.branch-menu-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 29px; padding: 5px 8px; color: var(--text); background: transparent; border: 0; border-radius: 5px; text-align: left; font-size: 11px; }
.branch-menu-option:hover, .branch-menu-option:focus-visible, .branch-menu-option[aria-checked="true"] { color: var(--accent); background: var(--soft); outline: none; }
.branch-menu-label { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.branch-menu-code { flex: none; min-width: 28px; font-weight: 750; }
.branch-menu-check { flex: none; display: grid; place-items: center; width: 13px; height: 13px; }
.branch-menu-check svg { width: 12px; height: 12px; }
.branch-menu-option[aria-checked="false"] .branch-menu-check { visibility: hidden; }

.node-overlay { position: absolute; z-index: 7; display: flex; flex-direction: column; width: fit-content; max-width: calc(100% - 24px); max-height: min(80vh, calc(100% - 108px)); background: var(--paper); border: 1px solid var(--accent); border-radius: 9px; box-shadow: 0 18px 50px #0004; }
.node-overlay.table-centered { transition: left 145ms cubic-bezier(.2,.7,.2,1), top 145ms cubic-bezier(.2,.7,.2,1); }
.node-overlay.position-instant { transition: none; }
.graph-stage.page-arriving #graph-nodes, .graph-stage.page-arriving .graph-edges { animation: page-arrive 145ms ease-out; }
@keyframes page-arrive { from { opacity: .72; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .node-overlay.table-centered { transition: none; }
  .graph-stage.page-arriving #graph-nodes, .graph-stage.page-arriving .graph-edges { animation: none; }
  .graph-edges path.graph-growing-edge { marker-end: var(--grow-marker, none); animation: none; stroke-dasharray: none; stroke-dashoffset: 0; opacity: 1; }
  .node.graph-growing-node, .graph-growing-control { animation: none; opacity: 1; transform: none; }
}
.node-overlay:not(.admin) { min-width: 320px; }
.node-overlay.loading .detail-content { opacity: .38; pointer-events: none; }
.pinned-views { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.pinned-views .node-overlay { pointer-events: auto; }
.pinned-views .overlay-heading { cursor: move; touch-action: none; }
.overlay-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex: none; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.overlay-heading strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.overlay-actions { display: flex; align-items: center; gap: 4px; }
.node-navigation { display: flex; align-items: center; gap: 1px; margin-right: 5px; }
.node-navigation #overlay-prev svg { transform: scaleX(-1); }
.node-navigation #overlay-start svg { width: 13px; height: 13px; }
.overlay-heading button { display: grid; place-items: center; flex: none; width: 25px; height: 25px; padding: 0; color: var(--muted); background: transparent; border: 0; border-radius: 4px; font-size: 20px; line-height: 1; }
.overlay-heading button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pinned-card .pin-control { color: var(--accent); }
.overlay-heading button:hover { color: var(--text); background: var(--soft); }
.overlay-heading button:disabled { opacity: .35; cursor: default; }
.overlay-body { min-height: 0; overflow: auto; padding: 10px 24px 16px; cursor: grab; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.overlay-body.table-panning { cursor: grabbing; user-select: none; }
.node-table { cursor: text; }
.overlay-body > .muted { min-height: 0; margin: 3px 0; font-size: 11px; }
.section-title { margin: 12px 0 5px; color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .025em; }
.section-toggle { display: inline-flex; align-items: center; gap: 5px; padding: 0; color: inherit; background: none; border: 0; font: inherit; letter-spacing: inherit; text-align: left; text-transform: inherit; cursor: pointer; }
.section-toggle svg { flex: none; width: 11px; height: 11px; color: var(--muted); transition: transform 120ms ease; }
.section-toggle[aria-expanded="false"] svg { transform: rotate(-90deg); }
.section-toggle:hover, .section-toggle:focus-visible { color: var(--accent); }
.section-toggle:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.table-frame { width: max-content; }
.node-table { width: max-content; table-layout: fixed; border-collapse: collapse; text-align: right; font: 10.8px/1.4 SFMono-Regular, Monaco, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }
.node-table th, .node-table td { padding: 5px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.node-table th { color: var(--muted); font-size: 9px; font-weight: 650; }
.node-table th sup { font-size: 7px; font-weight: inherit; line-height: 0; vertical-align: super; }
.node-table td:first-child { position: relative; max-width: 210px; }
.label-line { display: inline-flex; align-items: center; max-width: 100%; min-height: 1.4em; vertical-align: middle; }
.cell-label { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.seed-part { display: inline-block; width: var(--seed-width, auto); max-width: 18ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.variant-id { color: var(--muted); }
.node-table .section-row td { padding-top: 10px; padding-bottom: 3px; color: var(--muted); text-align: left; font-size: 9px; font-weight: 650; border: 0; }
.node-table th:first-child, .node-table td:first-child { text-align: left; padding-left: 0; }
.node-table th:last-child, .node-table td:last-child { padding-right: 0; }
.node-table tr.total-row td { border-top: 1px solid var(--text); font-weight: 700; }
.node-table tr.total-row:last-child td { border-bottom: 0; }
.node-table.admin-table th:nth-child(4), .node-table.admin-table td:nth-child(4),
.node-table.admin-table th:nth-child(7), .node-table.admin-table td:nth-child(7),
.node-table.admin-table th:nth-child(10), .node-table.admin-table td:nth-child(10) { padding-left: 13px; }
.routing-rank { position: absolute; top: 50%; left: -21px; width: 17px; transform: translateY(-50%); text-align: right; font-size: 8px; font-weight: 650; line-height: 1; opacity: .72; }
.routing-rank.winner-marker { font-size: 0; }
.routing-rank.winner-marker::before {
  content: "";
  display: block;
  width: 2px;
  height: 2px;
  margin-left: auto;
  margin-right: 3.8px;
  border-radius: 50%;
  background: currentColor;
}
.routing-rank.green { color: var(--green); }
.routing-rank.yellow { color: var(--yellow); }
.routing-rank.gray { color: var(--gray); }

.graph-footer { display: flex; align-items: center; gap: 12px; padding: 7px 20px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }
.footer-help { display: grid; place-items: center; flex: none; width: 23px; height: 23px; padding: 0; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 5px; }
.footer-help:hover, .footer-help[aria-expanded="true"] { color: var(--accent); border-color: var(--line); background: var(--soft); }
.footer-help svg { width: 16px; height: 16px; fill: none; stroke: currentColor; }
.help-view { position: absolute; z-index: 20; left: 20px; bottom: 48px; width: min(390px, calc(100% - 40px)); max-height: min(540px, calc(100% - 145px)); display: flex; flex-direction: column; overflow: hidden; background: var(--paper); border: 1px solid var(--accent); border-radius: 9px; box-shadow: 0 18px 50px #0004; }
.help-rows { overflow: auto; padding: 12px 18px 17px; font-size: 11px; }
.help-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 29px; border-bottom: 1px solid var(--line); }
.help-row:last-child { border-bottom: 0; }
.help-row kbd { width: fit-content; max-width: 100%; color: var(--accent); font: 10px/1.4 SFMono-Regular, Monaco, Menlo, Consolas, monospace; white-space: nowrap; }
.help-row span { color: var(--text); }
.graph-footer .status-pill { margin-left: auto; }
.pan-hint { display: inline-flex; align-items: center; gap: 4px; line-height: 1; white-space: nowrap; }
.graph-footer kbd { display: inline-grid; place-items: center; height: 18px; padding: 0 5px; border: 1px solid var(--line); border-radius: 4px; font: inherit; line-height: 1; }
.pan-hint svg { display: block; flex: none; fill: currentColor; stroke: none; }
.pan-hint .pan-plus { width: 10px; height: 10px; }
.pan-hint .pan-arrows { width: 16px; height: 16px; }
svg.sf-symbol { fill: currentColor; stroke: none; }
.status-pill.live { color: var(--green); }
.status-pill.warn { color: var(--yellow); }

@media (max-width: 900px) {
  .toolbar { padding: 9px 12px; }
  .toolbar-actions { gap: 6px; }
  .toolbar-preferences { gap: 4px; }
  .panel-heading { padding: 9px 12px 7px; }
  .context-picker .picker-trigger { max-width: 30vw; }
  .graph-footer { padding: 6px 12px; }
  .graph-footer > span:first-child { display: none; }
}

@media (max-width: 620px) {
  .login-preferences { right: 12px; top: 10px; }
  .login-card { padding: 28px; }
  .toolbar .wordmark { font-size: 16px; }
  .toolbar .quiet { padding: 5px 6px; font-size: 11px; }
  .context-picker .picker-trigger { max-width: 26vw; font-size: 11px; }
  .theme-toggle { width: 29px; height: 29px; }
  .panel-heading { align-items: flex-start; }
  .graph-heading h2 { font-size: 16px; }
  .graph-tools { gap: 4px; }
  .mode-toggle { padding: 0 6px; }
  .zoom-controls button { min-width: 27px; }
  .zoom-controls #zoom-reset { min-width: 43px; }
  .selection-screen { width: min(350px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 14px; }
}
