/* Nettie uses Postie's design system: the same tokens, type, buttons, pills, drawer and toast (LinkedIn/post-editor/public/style.css) */
:root {
  --ink: #111318; --muted: #6b7079; --line: #ececee; --soft: #f7f7f8; --accent: #0a66c2;
  --primary: #b9f081; --primary-hover: #a8e76c; --primary-edge: #a2dc68; --primary-ink: #111318; --primary-soft: #f5fcee; --tips: #047857; --tips-bg: #e3f6ee; --booked: #1d4ed8; --booked-bg: #e8effd; --follow: #a15c07; --follow-bg: #fdf3e1;
  --danger: #b42318; --hover: #f1f2f4; --active: #eceef1; --link: #3b7a1e;
  --r-xs: 4px; --r-sm: 6px; --r: 8px; --r-lg: 12px; --r-xl: 14px;
  --side: 300px; --rail: 56px; --panel: 420px;
  --bg: #ffffff; --surface: #ffffff; --side-bg: #fcfcfd; --stage: #fbfbfc; --dot: #e3e5e9; --edge: #d6d8dd; --glass: rgba(255,255,255,.92); --focus: #c9ccd2;
}
/* Dark: Postie has no dark theme, so these keep its lime and pill hues on cool near-black neutrals */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eceef2; --muted: #9a9fa9; --line: #2a2d34; --soft: #1d2026; --hover: #23262d; --active: #2a2e36; --link: #a8e76c; --accent: #6aa8f0; --danger: #f2837a;
    --bg: #131519; --surface: #181a1f; --side-bg: #15171b; --stage: #111317; --dot: #24272e; --edge: #3a3e47; --glass: rgba(24,26,31,.92); --focus: #4a4f59; --primary-soft: #1f2a17; --tips: #7fd8b0; --tips-bg: #15332a; --booked: #9db8f5; --booked-bg: #1e2a44; --follow: #f0b968; --follow-bg: #3a2a12;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #eceef2; --muted: #9a9fa9; --line: #2a2d34; --soft: #1d2026; --hover: #23262d; --active: #2a2e36; --link: #a8e76c; --accent: #6aa8f0; --danger: #f2837a;
  --bg: #131519; --surface: #181a1f; --side-bg: #15171b; --stage: #111317; --dot: #24272e; --edge: #3a3e47; --glass: rgba(24,26,31,.92); --focus: #4a4f59; --primary-soft: #1f2a17; --tips: #7fd8b0; --tips-bg: #15332a; --booked: #9db8f5; --booked-bg: #1e2a44; --follow: #f0b968; --follow-bg: #3a2a12;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; overflow: hidden; }
h1 { font-size: 20px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 16px; font-weight: 600; margin: 0; }
.muted { color: var(--muted); margin: 0; }
.label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { border: 1px solid var(--line); border-radius: var(--r); padding: 6px 10px; background: var(--surface); outline: none; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); }
select { appearance: none; padding-right: 30px; cursor: pointer; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%236b7079' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.5l3 3 3-3'/%3E%3C/svg%3E") no-repeat right 10px center / 12px; }
input, select { height: 34px; }
textarea { resize: vertical; min-height: 110px; line-height: 1.55; padding: 8px 10px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
* { scrollbar-width: thin; scrollbar-color: #d9dbe0 transparent; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 0 14px; cursor: pointer; font-weight: 500; white-space: nowrap; }
.btn:hover { background: var(--soft); }
.btn.primary { background: var(--primary); border-color: var(--primary-edge); color: var(--primary-ink); }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--hover); }
.btn.danger { color: var(--danger); }
.btn.destroy { background: #e5484d; border-color: #e5484d; color: #fff; font-weight: 600; }
.btn.destroy:hover { background: #d93d42; border-color: #d93d42; }
.btn.sm { height: 30px; padding: 0 11px; font-size: 13px; }
.btn.grow { flex: 1; }
.btn svg, .icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; flex: none; }
.icon-btn svg.fill { fill: currentColor; stroke: none; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid transparent; border-radius: var(--r); background: none; cursor: pointer; color: var(--muted); flex: none; }
.icon-btn:hover { background: var(--hover); color: var(--ink); }
.icon-btn.solid { width: 30px; height: 30px; background: var(--surface); border-color: var(--line); color: var(--ink); }
.icon-btn.solid:hover { background: var(--soft); }
.pill { display: inline-block; font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.stat { display: inline-block; font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 999px; color: var(--muted); background: var(--hover); white-space: nowrap; }
.stat b { color: var(--ink); font-weight: 600; }

/* Layout */
.app { display: flex; height: 100%; }
.side { position: relative; height: 100%; width: var(--side); flex: none; display: flex; flex-direction: column; background: var(--side-bg); border-right: 1px solid var(--line); z-index: 8; }
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 16px; gap: 8px; }
.side-actions { display: flex; align-items: center; gap: 2px; }
.side-actions .icon-btn svg { width: 18px; height: 18px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo { flex: none; width: 28px; height: 28px; border-radius: var(--r); background: var(--primary); border: 1px solid var(--primary-edge); display: grid; place-items: center; font-weight: 700; font-size: 15px; color: var(--primary-ink); }
/* Postie .badge */
.side-stats { display: inline-block; font-size: 12px; font-weight: 500; padding: 1px 8px; border-radius: 999px; background: var(--tips-bg); color: var(--tips); flex: none; white-space: nowrap; }
.side-search { padding: 0 12px 8px; }
.side-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 12px 10px; }
.side-filters .dd { min-width: 0; }
.dd .multi-btn { height: 32px; font: inherit; font-size: 13px; color: var(--ink); }
.dd .multi-btn.empty { color: var(--muted); }
.dd .multi-btn:disabled { background-color: var(--soft); cursor: default; }
.dd .multi-menu { right: auto; min-width: 100%; width: max-content; max-width: 260px; }
.side-filters .dd:last-child .multi-menu { left: auto; right: 0; }
.dd .menu-item { justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink); }
.dd .menu-item span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd .menu-item.selected { font-weight: 600; background: var(--soft); }
.dd-n { color: var(--muted); font-size: 12px; font-weight: 400; flex: none; }
.side-search input { background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none' stroke='%236b7079' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='4.5'/%3E%3Cpath d='M10.5 10.5L14 14'/%3E%3C/svg%3E") no-repeat 10px center / 14px; padding-left: 32px; }
.side-list { flex: 1; overflow-y: auto; padding: 6px 8px 12px; border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--r); cursor: pointer; }
.row:hover { background: var(--hover); }
.row.on { background: var(--active); }
.row .who { min-width: 0; flex: 1; }
.row .who b { display: block; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .who span { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; border: 1.5px solid; }
.side-empty { padding: 12px 8px; font-size: 13px; color: var(--muted); }

/* Status badges (Postie .badge shape) */
.badge { display: inline-block; font-size: 12px; font-weight: 500; padding: 1px 8px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; flex: none; line-height: 18px; }
.s-reach { color: var(--muted); background: transparent; border: 1px dashed #b4b8bf; }
.s-booked { color: #1d4ed8; background: #e8effd; }
.s-chat { color: var(--tips); background: var(--tips-bg); }
.badge .num-badge { margin-left: 5px; vertical-align: 1px; background: var(--tips); color: #fff; }
.status-pick .badge:not(.on) .num-badge { background: var(--muted); }
.s-follow { color: #a15c07; background: #fdf3e1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .s-reach { border-color: #4a4f59; } :root:not([data-theme="light"]) .s-booked { color: #9db8f5; background: #1e2a44; } :root:not([data-theme="light"]) .s-follow { color: #f0b968; background: #3a2a12; } }
:root[data-theme="dark"] .s-reach { border-color: #4a4f59; } :root[data-theme="dark"] .s-booked { color: #9db8f5; background: #1e2a44; } :root[data-theme="dark"] .s-follow { color: #f0b968; background: #3a2a12; }
.status-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.status-pick .badge { cursor: pointer; font: inherit; font-size: 12px; font-weight: 500; padding: 3px 10px; color: var(--muted); background: transparent; border: 1px solid var(--edge); }
.status-pick .badge:hover { color: var(--ink); border-color: var(--focus); }
.status-pick .badge.on { color: var(--primary-ink); background: var(--primary); border-color: var(--primary-edge); }
.panel header #pBadge { margin-top: 8px; }

/* Postie sidebar: collapsed icon rail, edge handle, phone drawer */
.edge-toggle { position: absolute; top: 60px; right: -12px; z-index: 9; width: 24px; height: 24px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: #b4b8bf; box-shadow: 0 1px 3px rgba(17,19,24,.08); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .15s ease, color .15s ease; }
.edge-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.edge-toggle:hover { color: var(--muted); }
body.collapsed .side:hover .edge-toggle, body.collapsed .edge-toggle:focus-visible { opacity: 1; pointer-events: auto; }
body:not(.collapsed) .edge-toggle { visibility: hidden; }
body.collapsed .side { width: var(--rail); }
body.collapsed .side-top { flex-direction: column; padding: 8px 0; gap: 10px; }
body.collapsed .brand, body.collapsed .side-search, body.collapsed .side-filters, body.collapsed .row .who, body.collapsed .row .badge, body.collapsed .side-empty { display: none; }
body.collapsed .side-list { padding: 8px 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
body.collapsed .row { width: 40px; height: 40px; padding: 0; justify-content: center; }
.side-scrim { display: none; }

.stage { flex: 1; min-width: 0; position: relative; background: var(--stage); background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 22px 22px; }
.stage-bar { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; align-items: flex-start; gap: 8px; pointer-events: none; z-index: 2; }
.stage-bar > * { pointer-events: auto; }
.zoom { margin-left: auto; display: flex; gap: 6px; }
#graph { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
#graph:focus, #graph:focus-visible { outline: none; }
#graph.panning { cursor: grabbing; }
.stage > .empty { position: absolute; inset: 0; margin: auto; width: min(360px, calc(100% - 32px)); height: max-content; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.stage > .empty.hint-bar { inset: auto 0 20px 0; width: max-content; max-width: calc(100% - 32px); padding: 8px 14px; border-radius: 999px; pointer-events: none; }

/* Graph */
.edge { stroke: var(--edge); stroke-linecap: round; transition: opacity .15s; }
.edge-label { font-size: 12px; font-weight: 600; fill: var(--muted); stroke: var(--bg); stroke-width: 5px; stroke-linejoin: round; paint-order: stroke; pointer-events: none; transition: opacity .15s; }
.edge-label.dim { opacity: .15; }
.node { cursor: pointer; transition: opacity .15s; }
.node:focus { outline: none; }
.node:focus-visible .disc { stroke: var(--accent) !important; stroke-width: 3; }
.node .disc { stroke-width: 2; transition: stroke-width .12s; }
.node:hover .disc, .node.sel .disc { stroke-width: 3.5; }
.node .ini { font-size: 14px; font-weight: 600; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.node.center .ini { font-size: 19px; }
.node text.t { text-anchor: middle; paint-order: stroke; stroke: var(--stage); stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.node .name { font-size: 12.5px; font-weight: 600; fill: var(--ink); }
.node.center .name { font-size: 14px; }
.node .port { fill: var(--surface); stroke: var(--edge); stroke-width: 1.5; transition: r .12s, fill .12s, stroke .12s; }
.node .port.anchor { pointer-events: none; }
.node .port.branch { cursor: crosshair; stroke: var(--muted); }
.node .port.branch:hover { r: 7.5; fill: var(--primary); stroke: var(--primary-edge); }
.node:hover .port.branch { stroke: var(--ink); }
.node.center { cursor: crosshair; }
.node.drop .disc { stroke-width: 4; stroke: var(--accent) !important; }
#ghost { stroke: var(--muted); stroke-opacity: .7; stroke-width: 1.5; stroke-dasharray: 5 5; pointer-events: none; }
.rel-menu { display: flex; flex-direction: column; min-width: 200px; max-height: calc(100vh - 16px); overflow-y: auto; }
.rel-menu .label { padding: 6px 10px 4px; }
.rel-menu .menu-item { display: flex; align-items: center; gap: 8px; border: 0; background: none; text-align: left; width: 100%; }
.rel-menu .menu-item:focus-visible { outline: none; background: var(--soft); }
.rel-menu i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.node .role { font-size: 11px; fill: var(--muted); }
.node .rel { font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; fill: var(--muted); }
.dim { opacity: .18; }

/* Detail panel: Postie's drawer, docked to the right so the graph stays in view */
.panel { width: var(--panel); flex: none; display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--line); box-shadow: -12px 0 32px rgba(17,19,24,.06); z-index: 9; animation: slide-in .18s ease-out; }
@keyframes slide-in { from { transform: translateX(16px); opacity: 0; } }
.panel header { display: flex; align-items: flex-start; gap: 14px; padding: 18px 16px 16px 24px; border-bottom: 1px solid var(--line); }
.panel header .avatar { width: 40px; height: 40px; font-size: 14px; border-width: 1.5px; }
.panel header .who { flex: 1; min-width: 0; }
.panel header .who .name { font-size: 18px; font-weight: 600; line-height: 1.3; word-break: break-word; }
.panel header .who .role { font-size: 13px; color: var(--muted); margin-top: 1px; }
.panel .body { flex: 1; overflow-y: auto; padding: 20px 24px 28px; display: flex; flex-direction: column; gap: 16px; overscroll-behavior: contain; }
.panel footer { padding: 12px 24px; border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: center; }
.panel footer .spacer { flex: 1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.section-title { padding-top: 6px; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 16px; }
/* Timeline */
.timeline { list-style: none; margin: 2px 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 1.5px; background: var(--line); }
.tl { position: relative; display: flex; gap: 12px; padding: 4px 0; }
.tl-dot { position: relative; z-index: 1; flex: none; width: 12px; height: 12px; margin-top: 6px; border-radius: 50%; background: var(--surface); border: 2px solid var(--edge); }
.tl-meeting .tl-dot { background: var(--primary); border-color: var(--primary-edge); }
.tl-booked .tl-dot { background: #e8effd; border-color: #1d4ed8; }
.tl-follow .tl-dot { background: #fdf3e1; border-color: #a15c07; }
.tl-main { flex: 1; min-width: 0; }
.tl-head { display: flex; align-items: center; gap: 8px; min-height: 24px; }
.tl-head b { font-size: 13px; font-weight: 600; }
.tl-date { font-size: 12px; color: var(--muted); margin-right: auto; }
.icon-btn.sm { width: 24px; height: 24px; border-radius: var(--r-sm); }
.icon-btn.sm svg { width: 14px; height: 14px; stroke-linejoin: round; }
.tl .icon-btn.sm { opacity: .55; }
.tl:hover .icon-btn.sm, .tl .icon-btn.sm.on, .tl .icon-btn.sm:focus-visible { opacity: 1; }
.tl .icon-btn.sm.on { color: var(--ink); }
.tl-edit { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.tl-edit input { height: 30px; font-size: 13px; width: auto; flex: 1; }
.tl-note { margin: 2px 0 0; font-size: 13px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.tl-note-in { margin-top: 6px; min-height: 60px; font-size: 13px; }
.add-meeting { align-self: flex-start; margin-top: 4px; }
.hint { font-size: 12px; color: var(--muted); }
.link-out { color: var(--link); font-size: 12px; text-decoration: none; }
.link-out:hover { text-decoration: underline; }
.conns { display: flex; flex-wrap: wrap; gap: 6px; }
.conn { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; }
.conn .avatar { width: 22px; height: 22px; font-size: 10px; border-width: 1px; }
.conn button { border: 0; background: none; cursor: pointer; padding: 0 2px; color: var(--muted); display: inline-flex; }
.conn button:hover { color: var(--danger); }
.conn button svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; }
.conn .go { color: var(--ink); font-weight: 500; padding: 0; }
.conn .go:hover { color: var(--ink); text-decoration: underline; }

.menu { position: fixed; z-index: 60; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 8px 24px rgba(17,19,24,.08); padding: 4px; min-width: 220px; }
.menu-item { padding: 7px 10px; border-radius: var(--r-sm); cursor: pointer; }
/* Multi-select dropdown, built on Postie's select + menu */
.multi { position: relative; }
.multi-btn { width: 100%; height: 34px; border: 1px solid var(--line); border-radius: var(--r); padding: 6px 30px 6px 10px; text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%236b7079' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.5l3 3 3-3'/%3E%3C/svg%3E") no-repeat right 10px center / 12px; }
.multi-btn.empty { color: var(--muted); }
.multi-btn[aria-expanded=true] { border-color: var(--focus); }
.multi-menu { position: absolute; top: calc(100% + 4px); left: 0; right: 0; max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; z-index: 20; }
.multi-menu .menu-item { display: flex; align-items: center; gap: 9px; border: 0; background: none; text-align: left; width: 100%; }
.multi-menu .menu-item:focus-visible { outline: none; background: var(--soft); }
.check { width: 15px; height: 15px; border: 1.5px solid var(--edge); border-radius: 4px; flex: none; display: grid; place-items: center; }
[aria-selected=true] > .check { background: var(--primary); border-color: var(--primary-edge); }
[aria-selected=true] > .check::after { content: ""; width: 7px; height: 4px; border: solid var(--primary-ink); border-width: 0 0 1.6px 1.6px; transform: translateY(-1px) rotate(-45deg); }
.menu-item:hover { background: var(--soft); }
.menu-item.danger { color: var(--danger); }

.scrim { position: fixed; inset: 0; background: rgba(17,19,24,.32); display: grid; place-items: center; z-index: 80; padding: 16px; }
.dialog { width: min(400px, 100%); background: var(--surface); border-radius: var(--r-xl); box-shadow: 0 24px 64px rgba(17,19,24,.18); padding: 22px 24px 18px; display: flex; flex-direction: column; gap: 8px; animation: pop-in .16s ease-out; }
@keyframes pop-in { from { transform: scale(.97); opacity: 0; } }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }

.toast { position: fixed; bottom: 20px; left: 50%; z-index: 90; display: flex; align-items: center; gap: 6px; max-width: min(360px, calc(100vw - 32px)); padding: 7px 12px; border-radius: var(--r); background: var(--primary); border: 1px solid var(--primary-edge); color: var(--primary-ink); font-size: 13px; font-weight: 500; box-shadow: 0 6px 18px rgba(17,19,24,.12); transform: translate(-50%, calc(100% + 28px)); opacity: 0; pointer-events: none; transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .2s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.only-phone { display: none; }
@media (max-width: 1100px) {
  .panel { position: fixed; top: 0; right: 0; bottom: 0; }
}
@media (max-width: 760px) {
  .only-phone { display: inline-flex; }
  .side { position: fixed; top: 0; bottom: 0; left: 0; width: min(300px, 86vw); transform: translateX(-100%); transition: transform .2s ease; z-index: 50; }
  body.side-open .side { transform: none; box-shadow: 12px 0 40px rgba(17,19,24,.12); }
  body.side-open .side-scrim { display: block; position: fixed; inset: 0; background: rgba(17,19,24,.32); z-index: 49; }
  #collapse, .edge-toggle { display: none; }
  .panel { width: 100%; z-index: 30; }
  .panel header { padding-left: 16px; }
  .panel .body { padding: 16px; }
  .panel footer { padding: 12px 16px; flex-wrap: wrap; }
  .field-row { grid-template-columns: 1fr; }
  .stage-bar { left: 16px; right: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
body.waiting #graph, body.waiting .stage-bar, body.waiting .side-list, body.waiting .side-stats { visibility: hidden; }
/* Postie number badge */
.num-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--primary); color: var(--primary-ink); font-size: 10px; font-weight: 600; line-height: 1; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; box-sizing: border-box; vertical-align: middle; }
.label .num-badge { margin-left: 6px; vertical-align: 1px; }
