/* Vektrum Brain · Command Center
   Design system adapted from the Vektrum brand (website globals.css): ultramarine #2B1FDB, lime #D6FF47,
   ink #131216, paper #F5F1EA, Inter. Dark-first: ink surfaces, ultramarine as the structural accent,
   lime reserved for "alive" (healthy, live, flowing), violet/cyan for data series. */

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

:root {
  --bg: #07070c;
  --bg-2: #0b0b13;
  --panel: #0f0f1a;
  --panel-2: #141424;
  --raise: #1a1a2e;
  --line: rgba(236, 234, 244, 0.07);
  --line-2: rgba(236, 234, 244, 0.12);
  --text: #eceaf4;
  --text-2: #b9b7cc;
  --muted: #8a88a2;
  --faint: #5d5b73;

  --brand: #2b1fdb;          /* Vektrum ultramarine */
  --accent: #5b4dff;         /* ultramarine lifted for dark surfaces */
  --accent-2: #8f84ff;       /* violet */
  --cyan: #3fd5f2;
  --lime: #d6ff47;           /* Vektrum pop: alive / healthy */
  --paper: #f5f1ea;

  --ok: #d6ff47;
  --warn: #ffb547;
  --err: #ff5a78;
  --off: #5d5b73;
  --info: #3fd5f2;

  --radius: 14px;
  --radius-s: 9px;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 20px 50px -24px rgba(0,0,0,.7);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --rail: 232px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
::selection { background: rgba(91, 77, 255, .45); color: #fff; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: #fff; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12px; }
.xs { font-size: 11px; letter-spacing: .02em; }
.upper { text-transform: uppercase; letter-spacing: .12em; font-size: 10.5px; font-weight: 600; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.top { align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.spacer { flex: 1; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- boot / sign-in ---------------------------------------------------------------------------------------- */
.boot { height: 100vh; display: grid; place-content: center; justify-items: center; gap: 18px; color: var(--muted); }
.boot-mark { width: 44px; height: 44px; border-radius: 12px; background: var(--brand);
  box-shadow: 0 0 0 0 rgba(91,77,255,.6); animation: breathe 2.4s var(--ease) infinite; }
@keyframes breathe { 0%,100% { box-shadow: 0 0 0 0 rgba(91,77,255,.45); } 50% { box-shadow: 0 0 0 14px rgba(91,77,255,0); } }

.signin { height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.signin-art { position: relative; overflow: hidden; background:
  radial-gradient(1200px 600px at 20% 110%, rgba(43,31,219,.55), transparent 60%),
  radial-gradient(800px 500px at 90% -10%, rgba(63,213,242,.10), transparent 60%), var(--bg-2);
  border-right: 1px solid var(--line); padding: 48px; display: flex; flex-direction: column; }
.signin-art svg.lattice { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.signin-art .claim { margin-top: auto; position: relative; max-width: 520px; }
.signin-art h1 { font-size: 44px; line-height: 1.05; letter-spacing: -.03em; font-weight: 650; margin: 0 0 14px; }
.signin-art h1 em { font-style: normal; color: var(--lime); }
.signin-art p { color: var(--text-2); font-size: 15px; max-width: 440px; margin: 0; }
.signin-form { display: grid; place-content: center; padding: 48px; }
.signin-card { width: min(420px, 100%); }
.signin-card h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.01em; font-weight: 600; }
.signin-card .lede { color: var(--muted); margin: 0 0 24px; }
.signin-card .fine { margin-top: 22px; color: var(--faint); font-size: 12px; line-height: 1.6; }

.logo { display: block; height: 22px; aspect-ratio: 2000 / 501; background: var(--paper);
  -webkit-mask: url("img/vektrum-logo.png") left center / contain no-repeat;
  mask: url("img/vektrum-logo.png") left center / contain no-repeat; }
.logo.lg { height: 30px; }

/* ---- shell --------------------------------------------------------------------------------------------------- */
.shell { display: grid; grid-template-columns: var(--rail) 1fr; grid-template-rows: 56px 1fr; height: 100vh; }
.rail { grid-row: 1 / 3; background: var(--bg-2); border-right: 1px solid var(--line); display: flex;
  flex-direction: column; padding: 18px 12px; gap: 4px; }
.rail .brand { display: flex; align-items: center; gap: 10px; padding: 2px 10px 20px; }
.rail .brand .product { font-size: 11px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase;
  border-left: 1px solid var(--line-2); padding-left: 10px; font-weight: 600; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 9px; color: var(--text-2);
  font-weight: 500; position: relative; transition: background .2s var(--ease), color .2s; }
.nav-item svg { width: 17px; height: 17px; flex: none; opacity: .8; }
.nav-item:hover { background: rgba(255,255,255,.04); color: var(--text); }
.nav-item.active { background: linear-gradient(90deg, rgba(91,77,255,.22), rgba(91,77,255,.04)); color: #fff; }
.nav-item.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--accent); }
.nav-item .badge { margin-left: auto; }
.nav-section { margin: 16px 10px 6px; }
.rail .foot { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--line); color: var(--faint);
  font-size: 11.5px; line-height: 1.6; }

.topbar { display: flex; align-items: center; gap: 14px; padding: 0 22px; border-bottom: 1px solid var(--line);
  background: rgba(7,7,12,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); z-index: 5; }
.topbar h1 { font-size: 15px; font-weight: 600; margin: 0; letter-spacing: -.005em; }
.topbar .crumb { color: var(--muted); font-weight: 500; }
.kbd { font-family: var(--mono); font-size: 10.5px; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-2);
  color: var(--muted); background: rgba(255,255,255,.03); }
.omni { display: flex; align-items: center; gap: 8px; width: 340px; padding: 7px 10px; border-radius: 10px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--muted); cursor: text; }
.omni:hover { border-color: rgba(143,132,255,.4); }
.omni svg { width: 15px; height: 15px; }
.omni span.grow { font-size: 13px; }
.who { display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; border-radius: 999px;
  border: 1px solid var(--line-2); }
.avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px;
  font-weight: 700; background: linear-gradient(135deg, var(--brand), #6a5cff); color: #fff; }

main.view { overflow: auto; padding: 24px 28px 56px; scroll-behavior: smooth; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.page-head h2 { font-size: 26px; letter-spacing: -.025em; margin: 0; font-weight: 650; }
.page-head p { margin: 4px 0 0; color: var(--muted); max-width: 760px; }

/* ---- surfaces ------------------------------------------------------------------------------------------------ */
.panel { background: linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,0)) , var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel > header { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel > header h3 { margin: 0; font-size: 13.5px; font-weight: 600; letter-spacing: .005em; }
.panel > header .sub { color: var(--muted); font-size: 12px; }
.panel .body { padding: 16px 18px; }
.panel .body.tight { padding: 6px 0; }
.glass { background: rgba(16,16,28,.72); backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%); border: 1px solid var(--line-2); }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); gap: 16px; }
.split-even { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }

/* ---- controls ------------------------------------------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--text); font-weight: 500;
  font-size: 13px; transition: background .15s, border-color .15s, transform .1s; white-space: nowrap; }
.btn:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: transparent; color: #fff; }
.btn.primary:hover { background: #6d61ff; }
.btn.danger { color: #ffd0da; border-color: rgba(255,90,120,.35); background: rgba(255,90,120,.08); }
.btn.danger:hover { background: rgba(255,90,120,.16); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: rgba(255,255,255,.05); }
.btn.sm { padding: 4px 9px; font-size: 12px; border-radius: 7px; }
.btn svg { width: 15px; height: 15px; }
.input, .select, textarea.input { width: 100%; padding: 8px 11px; border-radius: 9px; border: 1px solid var(--line-2);
  background: rgba(0,0,0,.25); color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus, .select:focus { border-color: rgba(143,132,255,.6); box-shadow: 0 0 0 3px rgba(91,77,255,.18); }
.select { appearance: none; padding-right: 28px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
  linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%;
  background-size: 5px 5px; background-repeat: no-repeat; }
.select option { background: var(--panel-2); }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 500; }
label.field .hint { color: var(--faint); font-weight: 400; }
.search-xl { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px;
  border: 1px solid var(--line-2); background: rgba(0,0,0,.3); transition: border-color .2s, box-shadow .2s; }
.search-xl:focus-within { border-color: rgba(143,132,255,.55); box-shadow: 0 0 0 4px rgba(91,77,255,.14); }
.search-xl input { flex: 1; border: 0; outline: none; background: transparent; font-size: 16px; }
.search-xl svg { width: 20px; height: 20px; color: var(--accent-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px;
  border: 1px solid var(--line-2); color: var(--text-2); background: rgba(255,255,255,.02); cursor: pointer;
  transition: all .15s; user-select: none; }
.chip:hover { border-color: rgba(255,255,255,.22); color: var(--text); }
.chip.on { border-color: rgba(143,132,255,.6); background: rgba(91,77,255,.18); color: #fff; }
.chip .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tab { padding: 9px 14px; color: var(--muted); cursor: pointer; border: 0; background: none; font-weight: 500;
  border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--text); }
.tab.on { color: #fff; border-bottom-color: var(--accent); }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.seg button { border: 0; background: none; padding: 5px 11px; border-radius: 7px; cursor: pointer; color: var(--muted);
  font-size: 12.5px; font-weight: 500; }
.seg button.on { background: var(--raise); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.4); }

/* ---- status ------------------------------------------------------------------------------------------------ */
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--off); flex: none; display: inline-block; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(214,255,71,.12); }
.dot.live { background: var(--ok); animation: live 2s ease-in-out infinite; }
.dot.warn { background: var(--warn); box-shadow: 0 0 0 3px rgba(255,181,71,.12); }
.dot.err { background: var(--err); box-shadow: 0 0 0 3px rgba(255,90,120,.14); }
.dot.info { background: var(--info); }
@keyframes live { 0%,100% { box-shadow: 0 0 0 0 rgba(214,255,71,.55); } 60% { box-shadow: 0 0 0 7px rgba(214,255,71,0); } }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .01em; border: 1px solid; white-space: nowrap; }
.pill.ok { color: var(--lime); border-color: rgba(214,255,71,.28); background: rgba(214,255,71,.06); }
.pill.warn { color: var(--warn); border-color: rgba(255,181,71,.3); background: rgba(255,181,71,.07); }
.pill.err { color: #ff8aa0; border-color: rgba(255,90,120,.32); background: rgba(255,90,120,.08); }
.pill.off { color: var(--muted); border-color: var(--line-2); background: rgba(255,255,255,.02); }
.pill.info { color: var(--cyan); border-color: rgba(63,213,242,.28); background: rgba(63,213,242,.06); }
.pill.accent { color: #c9c3ff; border-color: rgba(143,132,255,.35); background: rgba(91,77,255,.12); }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 1px 7px; border-radius: 6px; font-size: 11px;
  font-weight: 500; color: var(--text-2); background: rgba(255,255,255,.05); border: 1px solid var(--line); white-space: nowrap; }
.tag.src-github { color: #e7e5f5; }
.tag.src-gdrive { color: #9fe6ff; }
.tag.src-supabase, .tag.src-crm { color: #c8ff8a; }
.tag.src-postgres { color: #b5adff; }
.tag.src-brain { color: #ffd6a1; }
.badge { min-width: 18px; height: 18px; padding: 0 6px; border-radius: 999px; font-size: 10.5px; font-weight: 700;
  display: inline-grid; place-items: center; background: var(--err); color: #fff; }
.badge.soft { background: rgba(255,255,255,.08); color: var(--text-2); }

/* ---- command center ---------------------------------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; margin-bottom: 16px; }
.pulse-panel { position: relative; overflow: hidden; min-height: 470px;
  background: radial-gradient(900px 420px at 50% 52%, rgba(43,31,219,.22), transparent 65%),
              radial-gradient(500px 300px at 85% 0%, rgba(63,213,242,.06), transparent 70%), var(--panel); }
.pulse-panel > header { position: absolute; top: 0; left: 0; right: 0; border: 0; z-index: 2; }
.pulse-svg { width: 100%; height: 470px; display: block; margin-top: 18px; }
.pulse-legend { position: absolute; left: 18px; bottom: 14px; display: flex; gap: 14px; flex-wrap: wrap; z-index: 2;
  font-size: 11.5px; color: var(--muted); }
.pulse-legend i { display: inline-block; width: 18px; height: 0; border-top: 2px solid; vertical-align: middle;
  margin-right: 6px; }
.pulse-legend i.ok { border-color: var(--lime); }
.pulse-legend i.idle { border-color: rgba(214,255,71,.35); }
.pulse-legend i.warn { border-color: var(--warn); border-top-style: dashed; }
.pulse-legend i.err { border-color: var(--err); border-top-style: dotted; }
.pulse-legend i.group { border-color: rgba(255,255,255,.25); border-top-style: dashed; border-top-width: 1px; }
.p-edge { fill: none; stroke-linecap: round; }
.p-edge.base { stroke: rgba(236,234,244,.07); stroke-width: 1.2; }
.p-edge.ok { stroke: var(--lime); stroke-width: 1.6; stroke-dasharray: 2 9; animation: flow var(--speed, 2.6s) linear infinite;
  filter: drop-shadow(0 0 3px rgba(214,255,71,.55)); }
.p-edge.out.ok { animation-direction: reverse; }
.p-edge.idle { stroke: rgba(214,255,71,.32); stroke-width: 1.1; }
.p-edge.warn { stroke: var(--warn); stroke-width: 1.5; stroke-dasharray: 6 6; animation: flow 6s linear infinite; }
.p-edge.err { stroke: var(--err); stroke-width: 1.5; stroke-dasharray: 2 5; opacity: .9; }
.p-edge.off { stroke: rgba(236,234,244,.12); stroke-width: 1; stroke-dasharray: 1 6; }
@keyframes flow { to { stroke-dashoffset: -22; } }
.p-node { cursor: pointer; }
.p-node .halo { fill: none; stroke-width: 1; opacity: 0; transition: opacity .25s; }
.p-node:hover .halo, .p-node:focus .halo { opacity: 1; }
.p-node .disc { fill: #121222; stroke-width: 1.4; transition: transform .25s var(--ease); }
.p-node text { fill: var(--text); font-size: 11.5px; font-weight: 550; }
.p-node text.sub { fill: var(--muted); font-size: 10.5px; font-weight: 450; }
.p-node text.glyph { font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.p-group { fill: none; stroke: rgba(236,234,244,.13); stroke-dasharray: 2 6; }
.p-group-label { fill: var(--faint); font-size: 10px; letter-spacing: .16em; font-weight: 600; }
.p-core-ring { fill: none; stroke: rgba(143,132,255,.35); stroke-width: 1; stroke-dasharray: 3 7;
  transform-origin: center; transform-box: fill-box; animation: spin 40s linear infinite; }
.p-core-ring.busy { stroke: rgba(214,255,71,.6); animation-duration: 6s; }
@keyframes spin { to { transform: rotate(360deg); } }
.p-tip { position: absolute; pointer-events: none; z-index: 4; min-width: 220px; max-width: 300px; padding: 12px 14px;
  border-radius: 12px; font-size: 12px; transform: translate(-50%, calc(-100% - 14px)); transition: opacity .15s; }
.p-tip h4 { margin: 0 0 6px; font-size: 13px; }
.p-tip dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; }
.p-tip dt { color: var(--muted); }
.p-tip dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }

.status-line { font-size: 13px; color: var(--text-2); }
.vitals { display: flex; flex-direction: column; gap: 10px; }
.vital { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,.015); cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.vital:hover { border-color: rgba(143,132,255,.35); background: rgba(91,77,255,.06); transform: translateX(2px); }
.vital .k { color: var(--muted); font-size: 12px; }
.vital .v { font-size: 13px; font-weight: 600; }

.metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 12px; margin-bottom: 16px; }
.metric { position: relative; padding: 14px 16px 13px; border-radius: 13px; border: 1px solid var(--line); background: var(--panel);
  cursor: pointer; text-align: left; transition: border-color .2s, transform .2s var(--ease), background .2s; overflow: hidden; }
.metric:hover { border-color: rgba(143,132,255,.4); transform: translateY(-2px); background: var(--panel-2); }
.metric .label { color: var(--muted); font-size: 11.5px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.metric .value { font-size: 26px; font-weight: 650; letter-spacing: -.03em; margin-top: 6px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.metric .value small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 3px; }
.metric .foot { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.metric .go { position: absolute; right: 12px; top: 12px; opacity: 0; transition: opacity .2s; color: var(--accent-2); }
.metric:hover .go { opacity: 1; }
.metric.alert { border-color: rgba(255,90,120,.35); }
.metric .spark { position: absolute; right: 12px; top: 40px; width: 42%; height: 26px; opacity: .6; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; padding: 9px 18px; align-items: start;
  border-bottom: 1px solid var(--line); animation: enter .5s var(--ease) both; }
.feed li:last-child { border-bottom: 0; }
.feed .ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,.04); }
.feed .ico svg { width: 14px; height: 14px; }
.feed .what { font-size: 12.8px; line-height: 1.45; min-width: 0; }
.feed .what b { font-weight: 600; }
.feed .meta { color: var(--faint); font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
@keyframes enter { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---- lists & tables ------------------------------------------------------------------------------------------ */
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: left; font-weight: 600; color: var(--muted); font-size: 11px; text-transform: uppercase;
  letter-spacing: .08em; padding: 10px 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); }
table.t td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: rgba(255,255,255,.025); }
table.t tr.sel td { background: rgba(91,77,255,.1); }
table.t td.r, table.t th.r { text-align: right; }
dl.kv { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 8px 16px; margin: 0; font-size: 13px; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

.result { padding: 14px 16px; border-radius: 12px; border: 1px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s; }
.result:hover { background: rgba(255,255,255,.025); border-color: var(--line); }
.result.sel { background: rgba(91,77,255,.09); border-color: rgba(143,132,255,.35); }
.result h4 { margin: 0 0 4px; font-size: 14px; font-weight: 600; line-height: 1.35; }
.result .trail { color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.result .snip { color: var(--text-2); font-size: 12.8px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden; }
mark { background: rgba(214,255,71,.18); color: #f4ffd0; border-radius: 3px; padding: 0 2px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.card { padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); cursor: pointer;
  display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, transform .2s var(--ease), background .2s; min-width: 0; }
.card:hover { border-color: rgba(143,132,255,.38); transform: translateY(-2px); background: var(--panel-2); }
.card h4 { margin: 0; font-size: 14.5px; font-weight: 600; letter-spacing: -.005em; }
.card .desc { color: var(--text-2); font-size: 12.8px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden; }
.card .foot { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 12px; }
.icon-tile { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, rgba(91,77,255,.35), rgba(91,77,255,.08)); border: 1px solid rgba(143,132,255,.25);
  font-weight: 700; font-size: 13px; color: #fff; }
.icon-tile svg { width: 18px; height: 18px; }

/* ---- source pipeline ------------------------------------------------------------------------------------------ */
.pipeline { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 0; margin: 6px 0 4px; }
.stage { position: relative; padding: 12px 14px 12px 16px; border: 1px solid var(--line); background: rgba(255,255,255,.015);
  min-width: 0; }
.stage:first-child { border-radius: 12px 0 0 12px; }
.stage:last-child { border-radius: 0 12px 12px 0; }
.stage + .stage { border-left: 0; }
.stage .name { display: flex; align-items: center; gap: 7px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  font-weight: 600; color: var(--muted); }
.stage .det { font-size: 12.3px; margin-top: 6px; color: var(--text-2); line-height: 1.4; }
.stage::after { content: ""; position: absolute; right: -7px; top: 50%; width: 12px; height: 12px; transform: translateY(-50%) rotate(45deg);
  background: var(--panel); border-top: 1px solid var(--line); border-right: 1px solid var(--line); z-index: 1; }
.stage:last-child::after { display: none; }
.stage.st-ok { box-shadow: inset 0 2px 0 rgba(214,255,71,.55); }
.stage.st-warn { box-shadow: inset 0 2px 0 var(--warn); }
.stage.st-error { box-shadow: inset 0 2px 0 var(--err); }
.stage.st-unknown, .stage.st-off, .stage.st-empty { box-shadow: inset 0 2px 0 var(--off); }

/* ---- charts ------------------------------------------------------------------------------------------------ */
.chart { width: 100%; display: block; }
.chart .grid-line { stroke: rgba(236,234,244,.06); }
.chart .axis { fill: var(--faint); font-size: 10px; font-variant-numeric: tabular-nums; }
.chart .series-a { stroke: var(--accent-2); fill: none; stroke-width: 1.8; }
.chart .series-b { stroke: var(--cyan); fill: none; stroke-width: 1.4; stroke-dasharray: 3 3; }
.chart .area-a { fill: url(#gradA); }
.chart .bar { fill: rgba(143,132,255,.55); }
.chart .bar.err { fill: var(--err); }
.legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 2px; vertical-align: middle; margin-right: 6px; }
.gauge { display: flex; flex-direction: column; gap: 8px; }
.gauge .bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.gauge .bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .6s var(--ease); }
.gauge .bar.warn > span { background: var(--warn); }
.gauge .bar.err > span { background: var(--err); }

/* ---- overlays ------------------------------------------------------------------------------------------------ */
.scrim { position: fixed; inset: 0; background: rgba(3,3,8,.6); backdrop-filter: blur(3px); z-index: 40;
  animation: fade .2s ease both; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 94vw); z-index: 41; display: flex; flex-direction: column;
  animation: slide .32s var(--ease) both; border-left: 1px solid var(--line-2); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer > header { display: flex; align-items: flex-start; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer > header h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; }
.drawer .content { overflow: auto; padding: 18px 22px 40px; flex: 1; }
.modal { position: fixed; left: 50%; top: 12vh; transform: translateX(-50%); width: min(580px, 94vw); max-height: 78vh;
  z-index: 42; border-radius: 18px; display: flex; flex-direction: column; animation: pop .25s var(--ease) both; }
.modal.wide { width: min(760px, 94vw); }
@keyframes pop { from { opacity: 0; transform: translate(-50%, 8px) scale(.98); } }
.modal > header { padding: 18px 22px 6px; }
.modal > header h3 { margin: 0; font-size: 17px; font-weight: 600; }
.modal .content { padding: 10px 22px 18px; overflow: auto; display: flex; flex-direction: column; gap: 14px; }
.modal > footer { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; }
.secret-box { font-family: var(--mono); font-size: 13px; padding: 14px; border-radius: 10px; background: #05050a;
  border: 1px dashed rgba(214,255,71,.45); color: var(--lime); word-break: break-all; user-select: all; }
.notice { display: flex; gap: 10px; padding: 11px 13px; border-radius: 11px; font-size: 12.5px; line-height: 1.5;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.025); color: var(--text-2); }
.notice svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.notice.info { border-color: rgba(63,213,242,.25); background: rgba(63,213,242,.05); }
.notice.warn { border-color: rgba(255,181,71,.3); background: rgba(255,181,71,.06); }
.notice.err { border-color: rgba(255,90,120,.32); background: rgba(255,90,120,.07); color: #ffd4dc; }
.notice.live { border-color: rgba(214,255,71,.3); background: rgba(214,255,71,.05); }
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { padding: 11px 15px; border-radius: 12px; font-size: 13px; min-width: 260px; max-width: 420px;
  animation: pop2 .3s var(--ease) both; display: flex; gap: 10px; align-items: center; }
@keyframes pop2 { from { opacity: 0; transform: translateY(8px); } }
.palette { position: fixed; left: 50%; top: 14vh; transform: translateX(-50%); width: min(620px, 94vw); z-index: 50;
  border-radius: 16px; overflow: hidden; animation: pop .2s var(--ease) both; }
.palette input { width: 100%; padding: 16px 18px; border: 0; border-bottom: 1px solid var(--line); background: transparent;
  font-size: 15px; outline: none; }
.palette ul { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow: auto; }
.palette li { padding: 9px 12px; border-radius: 9px; display: flex; gap: 10px; align-items: center; cursor: pointer; }
.palette li.on { background: rgba(91,77,255,.2); }
.palette li svg { width: 15px; height: 15px; color: var(--muted); }

/* ---- markdown ------------------------------------------------------------------------------------------------ */
.md { font-size: 13.8px; line-height: 1.68; color: var(--text-2); overflow-wrap: anywhere; }
.md h1, .md h2, .md h3, .md h4 { color: var(--text); letter-spacing: -.01em; line-height: 1.3; margin: 1.4em 0 .5em; }
.md h1 { font-size: 21px; } .md h2 { font-size: 17.5px; } .md h3 { font-size: 15px; } .md h4 { font-size: 14px; }
.md > :first-child { margin-top: 0; }
.md p { margin: 0 0 .85em; }
.md ul, .md ol { margin: 0 0 .9em; padding-left: 1.35em; }
.md li { margin: .2em 0; }
.md code { font-family: var(--mono); font-size: .88em; padding: 1px 5px; border-radius: 5px; background: rgba(255,255,255,.06);
  color: #e6e1ff; }
.md pre { background: #06060b; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow: auto; }
.md pre code { padding: 0; background: none; color: #d7d4ea; font-size: 12.5px; line-height: 1.55; }
.md blockquote { margin: 0 0 1em; padding: 4px 14px; border-left: 3px solid var(--accent); color: var(--text-2);
  background: rgba(91,77,255,.06); border-radius: 0 8px 8px 0; }
.md table { border-collapse: collapse; margin: 0 0 1em; font-size: 12.8px; display: block; overflow: auto; }
.md th, .md td { border: 1px solid var(--line-2); padding: 6px 10px; text-align: left; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 1.4em 0; }
.md .fm { font-family: var(--mono); font-size: 12px; color: var(--muted); background: rgba(255,255,255,.025);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; white-space: pre-wrap; margin-bottom: 1em; }

/* ---- graph ------------------------------------------------------------------------------------------------- */
.graph-wrap { position: relative; height: calc(100vh - 240px); min-height: 520px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: radial-gradient(900px 500px at 50% 50%, rgba(43,31,219,.14), transparent 70%), var(--bg-2); }
.graph-wrap canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.graph-wrap canvas:active { cursor: grabbing; }
.graph-legend { position: absolute; left: 14px; top: 14px; padding: 12px 14px; border-radius: 12px; font-size: 11.5px;
  display: flex; flex-direction: column; gap: 6px; max-width: 260px; }
.graph-legend .sw { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 8px; vertical-align: -1px; }
.graph-card { position: absolute; right: 14px; top: 14px; width: 280px; padding: 14px 16px; border-radius: 12px; }

/* ---- skeleton / empty ------------------------------------------------------------------------------------------ */
.skel { border-radius: 8px; background: linear-gradient(90deg, rgba(255,255,255,.03), rgba(255,255,255,.07), rgba(255,255,255,.03));
  background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { padding: 36px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 28px; height: 28px; color: var(--faint); margin-bottom: 8px; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.15); border-top-color: var(--accent-2);
  animation: spin .8s linear infinite; display: inline-block; }

/* ---- privacy (presentation) mode: blur client names and content on screen ------------------------------------ */
body.privacy [data-sensitive] { filter: blur(6px); transition: filter .2s; }
body.privacy [data-sensitive]:hover { filter: blur(6px); }

@media (max-width: 1280px) {
  .hero { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  :root { --rail: 64px; }
  .rail .label, .rail .brand .product, .rail .foot, .nav-section { display: none; }
  .omni { width: auto; }
  .omni span.grow, .omni .kbd { display: none; }
  .signin { grid-template-columns: 1fr; }
  .signin-art { display: none; }
  .g2, .g3, .split-even { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  .stage, .stage:first-child, .stage:last-child { border-radius: 0; border-left: 1px solid var(--line); }
  .stage::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; }
  .p-edge.ok, .p-edge.warn { animation: none !important; }
}

/* ==== Live v2: environment, language, network, details, lanes (shared with the demo) ==================== */
.env-badge { display: inline-flex; align-items: center; gap: 7px; margin-left: 12px; padding: 3px 11px 3px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; color: var(--lime); border: 1px solid rgba(214,255,71,.3); background: rgba(214,255,71,.06); white-space: nowrap; }
.lang-switch button { min-width: 34px; font-weight: 600; letter-spacing: .04em; }
.lang-switch.compact button { padding: 3px 8px; font-size: 11.5px; }
.menu-btn, .menu-close, .menu-scrim { display: none; }
.env-badge .short { display: none; }
.hint-touch { display: none; }

.pulse-wrap { position: relative; }
.p-node .disc { fill: #121222; stroke-width: 1.5; transition: transform .25s var(--ease), stroke .3s; }
.p-node .inner { fill: none; stroke: rgba(236,234,244,.08); }
.p-node .label { fill: var(--text); font-size: 11.5px; font-weight: 550; }
.p-node.dim { opacity: .28; transition: opacity .25s; }
.p-node.rel .halo, .p-node.sel .halo { opacity: 1; }
.p-node.sel .disc { stroke-width: 2.6; }
.p-node.k-agent .label { font-size: 11px; }
.p-node .sync-ring { fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-dasharray: 4 6; transform-box: fill-box; transform-origin: center;
  animation: spin 3s linear infinite; }
.badge-lock circle { fill: #2a0d16; stroke: var(--err); }
.badge-lock path { fill: none; stroke: var(--err); stroke-width: 1.4; }
.badge-tools rect { fill: #1c1a3a; stroke: rgba(143,132,255,.6); }
.badge-tools text { fill: #d9d5ff; font-size: 9.5px; font-weight: 700; }
g.dim .p-edge { opacity: .18; }
.p-edge.sync { stroke: var(--cyan); stroke-width: 1.6; stroke-dasharray: 3 8; animation: flow 1.8s linear infinite; }
.p-link { fill: none; stroke: rgba(143,132,255,.85); stroke-width: 1.5; stroke-dasharray: 5 5; animation: flow 1.6s linear infinite;
  filter: drop-shadow(0 0 4px rgba(143,132,255,.6)); }
.core-label { fill: var(--text); font-size: 12px; font-weight: 650; letter-spacing: .18em; }
.core-sub { fill: var(--muted); font-size: 10.5px; }
.pkt-live { fill: var(--lime); filter: drop-shadow(0 0 6px rgba(214,255,71,.95)); }
.pkt-live.err { fill: var(--err); filter: drop-shadow(0 0 6px rgba(255,90,120,.9)); }
.pkt-live.sync { fill: var(--cyan); filter: drop-shadow(0 0 6px rgba(63,213,242,.9)); }
.p-tip { transform: translate(-50%, calc(-100% - 22px)); min-width: 180px; max-width: 260px; }
.pulse-legend { position: static; padding: 4px 18px 14px; }
.pulse-legend .shape i { display: inline-block; width: 11px; height: 11px; margin-right: 6px; vertical-align: -1px; border: 1.5px solid var(--lime); background: #121222; }
.pulse-legend .sh-source { border-radius: 50%; }
.pulse-legend .sh-int { border-radius: 3px; }
.pulse-legend .sh-agent { transform: rotate(45deg) scale(.85); }
.pulse-legend .sep { width: 1px; height: 12px; background: var(--line-2); }
.pulse-legend .ln { display: inline-block; width: 16px; height: 0; border-top: 2px solid; vertical-align: middle; margin-right: 6px; }
.pulse-legend .ln.ok { border-color: var(--lime); } .pulse-legend .ln.sync { border-color: var(--cyan); border-top-style: dashed; }
.pulse-legend .ln.warn { border-color: var(--warn); border-top-style: dashed; } .pulse-legend .ln.err { border-color: var(--err); border-top-style: dotted; }
.pulse-legend .ln.off { border-color: var(--off); border-top-style: dotted; }
.pulse-panel { min-height: 0; }
.pulse-svg { height: auto; aspect-ratio: 1000 / 480; margin-top: 18px; }
.node-detail { position: absolute; right: 14px; top: 54px; width: min(320px, calc(100% - 28px)); padding: 14px 16px; border-radius: 14px; z-index: 3;
  animation: pop2 .25s var(--ease) both; box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); }
.node-detail h3 { margin: 4px 0 4px; font-size: 16px; }

.status-strip { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.strip-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.strip-title { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); margin-right: 4px; min-width: 150px; }
.strip-title b { color: var(--text); margin-left: 2px; }
.strip-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; border: 1px solid var(--line-2); color: var(--text-2); }
.strip-chip .dot { width: 7px; height: 7px; }
.strip-chip.st-healthy .dot { background: var(--lime); } .strip-chip.st-syncing .dot { background: var(--cyan); }
.strip-chip.st-degraded .dot { background: var(--warn); } .strip-chip.st-auth .dot { background: var(--err); } .strip-chip.st-disconnected .dot { background: var(--off); }
.strip-chip.st-auth { border-color: rgba(255,90,120,.35); color: #ffc2cf; } .strip-chip.st-degraded { border-color: rgba(255,181,71,.35); }

.lanes { display: flex; flex-direction: column; gap: 10px; }
.lane-axis { display: flex; justify-content: space-between; margin-left: 180px; font-size: 10.5px; color: var(--faint); }
.lane { display: grid; grid-template-columns: 170px minmax(0, 1fr); grid-template-rows: auto auto; gap: 4px 10px; align-items: center; }
.lane-who { display: flex; flex-direction: column; min-width: 0; }
.lane-who b { font-size: 12.5px; }
.lane-track { position: relative; height: 22px; border-radius: 8px; background: linear-gradient(90deg, rgba(255,255,255,.015), rgba(91,77,255,.08)); border: 1px solid var(--line); }
.lane-track .tick { position: absolute; top: 5px; width: 3px; height: 12px; margin-left: -1.5px; border-radius: 2px; background: var(--lime);
  box-shadow: 0 0 6px rgba(214,255,71,.6); }
.lane-track .tick.err { background: var(--err); box-shadow: 0 0 6px rgba(255,90,120,.7); }
.lane-tools { grid-column: 2; display: flex; gap: 6px; flex-wrap: wrap; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat-row > div { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; gap: 2px; }
.stat-row b { font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-row span { font-size: 12px; color: var(--muted); }
.integ-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.integ-stats > div { display: flex; flex-direction: column; }
.integ-stats b { font-size: 16px; font-variant-numeric: tabular-nums; }
.integ-stats span { font-size: 11px; color: var(--muted); }
.okbar { height: 4px; border-radius: 999px; background: rgba(255,90,120,.35); overflow: hidden; }
.okbar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--lime), #b6f03a); }
.code-box { white-space: pre-wrap; background: #05050a; padding: 10px 12px; border-radius: 9px; font-size: 11.5px; max-height: 260px; overflow: auto;
  border: 1px solid var(--line); margin: 0; color: var(--text-2); }
.code-box.tall { max-height: 420px; } .code-box.plain { background: transparent; border: 0; padding: 0; max-height: none; }
.table-wrap { overflow-x: auto; }
.doc-pane { position: sticky; top: 0; align-self: start; max-height: calc(100vh - 140px); overflow: auto; }
.source-card.focus { border-color: rgba(143,132,255,.55); box-shadow: 0 0 0 3px rgba(91,77,255,.15); }
tr.muted-row td { opacity: .6; }

/* ---- mobile ------------------------------------------------------------------------------------------------ */
@media (max-width: 760px) {
  body { overflow: auto; }
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: 56px 1fr; height: auto; min-height: 100vh; }
  .shell > * { min-width: 0; }
  .rail { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 70; transform: translateX(-105%); transition: transform .3s var(--ease); }
  .rail .label, .rail .brand .product, .rail .foot, .nav-section { display: initial; }
  .rail .foot { display: block; }
  .shell.menu-open .rail { transform: none; box-shadow: 30px 0 80px rgba(0,0,0,.6); }
  .shell.menu-open .menu-scrim { display: block; z-index: 65; }
  .menu-btn, .menu-close { display: inline-flex; }
  .menu-close { margin-left: auto; }
  .topbar { position: sticky; top: 0; padding: 0 10px; gap: 8px; }
  .topbar h1 { font-size: 14px; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar h1 .crumb { overflow: hidden; text-overflow: ellipsis; }
  .topbar .spacer { display: none; }
  .env-badge .long { display: none; } .env-badge .short { display: inline; }
  .who { gap: 4px; padding: 3px; }
  .omni, .who-name, .privacy-btn { display: none; }
  .env-badge { margin-left: 0; padding: 2px 8px; font-size: 10.5px; }
  main.view { padding: 16px 12px 48px; overflow: visible; }
  .page-head { flex-wrap: wrap; }
  .page-head h2 { font-size: 22px; }
  .hero, .split, .split-even { grid-template-columns: minmax(0, 1fr); }
  .split > *, .hero > *, .split-even > * { min-width: 0; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric .value { font-size: 21px; }
  .metric .spark { display: none; }
  .grid.g3, .grid.g4, .grid.g2 { grid-template-columns: minmax(0, 1fr); }
  .pulse-wrap { overflow-x: auto; overscroll-behavior-x: contain; }
  .pulse-svg { min-width: 760px; margin-top: 0; }
  .pulse-panel > header { position: static; flex-wrap: wrap; }
  .hint-hover { display: none; } .hint-touch { display: inline; }
  .p-node .label, .p-node text.sub { font-size: 15px; }
  .node-detail { position: static; width: auto; margin: 0 12px 12px; }
  .lane { grid-template-columns: 1fr; } .lane-tools { grid-column: 1; } .lane-axis { margin-left: 0; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .panel > header { flex-wrap: wrap; row-gap: 8px; }
  .filters .select, .filters .input { width: 100% !important; }
  .drawer { width: 100vw; }
  .tabs { overflow-x: auto; }
  .tab { white-space: nowrap; }
  .search-xl input { font-size: 15px; }
  .doc-pane { position: static; max-height: none; }
  .pipeline { grid-template-columns: 1fr; }
}
