/* =============================================================
   figma.warren.digital
   A Weave graph, rendered in Figma UI3 dark chrome.
   Hand written. No framework, no build step.
   ============================================================= */

:root {
  /* UI3 dark chrome */
  --canvas:      #1E1E1E;
  --panel:       #2C2C2C;
  --elevated:    #383838;
  --hover:       #444444;
  --line:        #383838;
  --line-2:      #4D4D4D;
  --ink:         #FFFFFF;
  --ink-2:       #B3B3B3;
  --ink-3:       #909090;   /* 5.2:1 on canvas */
  --ink-4:       #828282;   /* 4.3:1 on canvas */
  --select:      #0D99FF;
  --select-wash: rgba(13,153,255,.16);

  /* Figma's five */
  --red:    #F24E1E;
  --orange: #FF7262;
  --purple: #A259FF;
  --blue:   #1ABCFE;
  --green:  #0ACF83;

  --ok:   var(--green);
  --warn: var(--orange);
  --err:  var(--red);

  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 13px;

  --ease: cubic-bezier(.22,1,.36,1);
  --fast: 120ms var(--ease);
  --mid:  260ms var(--ease);
  --slow: 520ms var(--ease);

  --toolbar-h: 48px;
  --rail-l: 236px;
  --rail-r: 272px;

  --ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  height: 100%;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; }

a { color: inherit; }

::selection { background: var(--select-wash); color: #fff; }

:focus-visible {
  outline: 2px solid var(--select);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  height: 32px; padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font: 600 13px/1 var(--ui);
  letter-spacing: -.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--fast), border-color var(--fast), transform var(--fast), color var(--fast);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--select); color: #fff; }
.btn-primary:hover { background: #0A85E0; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--ink-2); background: rgba(255,255,255,.04); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); background: rgba(255,255,255,.06); }

.chip {
  display: inline-flex; align-items: center;
  height: 20px; padding: 0 7px;
  border-radius: var(--r-sm);
  font: 500 11px/1 var(--mono);
  letter-spacing: .02em;
}
.chip-draft { background: rgba(162,89,255,.16); color: var(--purple); }
.chip-live { background: rgba(10,207,131,.16); color: var(--green); gap: 5px; }
.chip-live i {
  width: 6px; height: 6px; border-radius: 999px; background: var(--green);
  box-shadow: 0 0 0 0 rgba(10,207,131,.6); animation: beat 2s var(--ease) infinite;
}
@keyframes beat {
  0% { box-shadow: 0 0 0 0 rgba(10,207,131,.55); }
  70%,100% { box-shadow: 0 0 0 6px rgba(10,207,131,0); }
}

.pill {
  display: inline-block; padding: 2px 6px; margin-right: 6px;
  border-radius: var(--r-sm); font: 600 9.5px/1.4 var(--mono);
  letter-spacing: .04em; text-transform: uppercase;
}
.pill.ok   { background: rgba(10,207,131,.16); color: var(--green); }
.pill.warn { background: rgba(255,114,98,.18); color: var(--orange); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.ava {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 999px;
  background: var(--c, var(--purple));
  color: #16110A;
  font: 700 10px/1 var(--ui);
  letter-spacing: .02em;
  border: 2px solid var(--panel);
  flex: none;
}
.ava.sm { width: 22px; height: 22px; font-size: 9px; border-width: 0; }

/* =============================================================
   APP SHELL
   ============================================================= */
.app {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
}

/* ---------------------- TOOLBAR ---------------------- */
.toolbar {
  height: var(--toolbar-h); flex: none;
  display: flex; align-items: center; gap: 12px;
  padding: 0 12px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  z-index: 40;
}
.tb-left, .tb-right { display: flex; align-items: center; gap: 10px; }
.tb-left { flex: 1; min-width: 0; }
.tb-right { flex: 1; justify-content: flex-end; }
.tb-center { display: flex; align-items: center; gap: 2px; }

.tb-glyph { position: relative; width: 16px; height: 16px; flex: none; }
.tb-glyph i { position: absolute; width: 6px; height: 6px; border-radius: 999px; }
.tb-glyph i:nth-child(1) { left: 0; top: 0; background: var(--purple); }
.tb-glyph i:nth-child(2) { right: 0; bottom: 0; background: var(--green); }
.tb-glyph b {
  position: absolute; left: 3px; top: 3px; width: 10px; height: 10px;
  border-left: 1.4px solid var(--ink-3); border-bottom: 1.4px solid var(--ink-3);
  border-bottom-left-radius: 8px;
}

.tb-file { display: flex; align-items: baseline; gap: 5px; font-size: 12.5px; min-width: 0; }
.tb-org { color: var(--ink-3); font-family: var(--mono); }
.tb-slash { color: var(--ink-4); }
.tb-name { color: var(--ink); font-weight: 600; font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-saved { font-size: 11.5px; color: var(--ink-4); white-space: nowrap; }

.tool {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: transparent; border: 0; border-radius: var(--r-md);
  color: var(--ink-2); cursor: pointer;
  transition: background var(--fast), color var(--fast);
}
.tool svg { width: 16px; height: 16px; }
.tool:hover { background: var(--hover); color: var(--ink); }
.tool.is-active { background: var(--select); color: #fff; }

.avastack {
  display: flex; align-items: center; gap: 0;
  text-decoration: none; padding: 3px 8px 3px 3px; border-radius: 999px;
  transition: background var(--fast);
}
.avastack:hover { background: rgba(255,255,255,.06); }
.avastack .ava { margin-right: -8px; }
.avastack-label { margin-left: 16px; font-size: 11px; color: var(--ink-3); }

/* ---------------------- SHELL ---------------------- */
.shell { flex: 1; min-height: 0; display: flex; }

.rail {
  flex: none;
  background: var(--panel);
  display: flex; flex-direction: column;
  z-index: 30;
}
.rail-left { width: var(--rail-l); border-right: 1px solid var(--line); }
.rail-right { width: var(--rail-r); border-left: 1px solid var(--line); }

.rail-head {
  display: flex; align-items: center; justify-content: space-between;
  height: 38px; flex: none; padding: 0 14px;
  border-bottom: 1px solid var(--line);
  font: 600 11px/1 var(--ui); letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-2);
}
.rail-count { color: var(--ink-4); font-family: var(--mono); letter-spacing: 0; text-transform: none; }
.rail-foot {
  flex: none; padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-size: 10.5px; color: var(--ink-4);
}

/* node list */
.nodelist { flex: 1; overflow-y: auto; padding: 6px 6px 12px; }
.nl {
  display: flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 8px;
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--ink-2);
  transition: background var(--fast), color var(--fast);
}
.nl:hover { background: var(--hover); color: var(--ink); }
.nl.is-active { background: var(--select-wash); color: #fff; }
.nl-id { font: 500 10.5px/1 var(--mono); color: var(--ink-4); flex: none; }
.nl.is-active .nl-id { color: var(--select); }
.nl-name { font: 500 12px/1 var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nl-warn {
  margin-left: auto; flex: none;
  display: grid; place-items: center;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: rgba(242,78,30,.2); color: var(--red);
  font: 600 10px/1 var(--mono);
}
.nl.is-error .nl-name { color: var(--red); }
.nl-ic { width: 10px; height: 10px; flex: none; border-radius: 2px; }
.nl-ic.out { background: var(--purple); }
.nl-ic.model { background: var(--blue); }
.nl-ic.table { border: 1.5px solid var(--orange); }
.nl-ic.flow { background: var(--green); border-radius: 999px; }
.nl-ic.batch { background: linear-gradient(135deg, var(--blue) 50%, transparent 50%); border: 1.5px solid var(--blue); }
.nl-ic.lock { background: var(--red); border-radius: 999px; }
.nl-ic.variant { border: 1.5px solid var(--orange); border-radius: 999px; }
.nl-ic.queue { background: var(--purple); border-radius: 999px; }
.nl-ic.chain { background: var(--green); }
.nl-ic.err { background: var(--red); }
.nl-ic.exp { border: 1.5px solid var(--orange); }
.nl-ic.why { background: var(--orange); border-radius: 999px 2px 999px 999px; }
.nl-ic.run { background: var(--green); border-radius: 999px; box-shadow: 0 0 0 3px rgba(10,207,131,.18); }
.nl-ic.quote { border: 1.5px solid var(--orange); border-radius: 999px 999px 999px 2px; }
.nl-live {
  margin-left: auto; flex: none;
  padding: 2px 6px; border-radius: 999px;
  background: rgba(10,207,131,.16); color: var(--green);
  font: 600 9.5px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase;
}

/* inspector */
.insp { flex: 1; overflow-y: auto; padding: 16px 14px; }
.insp-title { margin: 0 0 4px; font: 600 13.5px/1.3 var(--mono); color: var(--ink); word-break: break-word; }
.insp-type { display: inline-block; margin-bottom: 16px; font-size: 11.5px; color: var(--ink-3); }
.insp-sec { display: flex; align-items: baseline; gap: 10px; padding: 5px 0; }
.insp-sec.col { flex-direction: column; gap: 3px; }
.insp-k { flex: none; width: 60px; font-size: 11px; color: var(--ink-4); }
.insp-sec.col .insp-k { width: auto; }
.insp-v { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.insp-rule { height: 1px; background: var(--line); margin: 12px 0; }

/* =============================================================
   CANVAS
   ============================================================= */
.canvas {
  flex: 1; min-width: 0;
  position: relative;
  overflow-y: auto; overflow-x: hidden;
  scroll-behavior: smooth;
  background: var(--canvas);
}
.grid-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.075) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}
.canvas-inner {
  position: relative; z-index: 1;
  padding: 64px 52px 40px;
  max-width: 1320px;
  margin: 0 auto;
}

/* ---------------------- NODE CARD ---------------------- */
.node {
  position: relative;
  width: min(100%, 880px);
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,.34);
  transform: translateX(var(--offpx, 0px));
  transition: opacity var(--mid), border-color var(--fast), box-shadow var(--fast), filter var(--mid);
  scroll-margin-top: 28px;
}
.node-wide { width: min(100%, 1060px); }
.node:hover { border-color: #5C5C5C; }
.node.is-selected { border-color: var(--select); box-shadow: 0 0 0 1px var(--select), 0 8px 32px rgba(0,0,0,.34); }
.node.is-dim { opacity: .22; filter: saturate(.35); }

.node.enter { opacity: 0; transform: translateX(var(--offpx, 0px)) translateY(20px) scale(.985); }
.node.enter.in {
  opacity: 1; transform: translateX(var(--offpx, 0px)) translateY(0) scale(1);
  transition: opacity 560ms var(--ease), transform 560ms var(--ease);
}

.node-head {
  display: flex; align-items: center; gap: 9px;
  height: 38px; padding: 0 14px;
  background: var(--elevated);
  border-bottom: 1px solid var(--line);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.node-dot { width: 9px; height: 9px; border-radius: 999px; background: var(--c, var(--purple)); flex: none; }
.node-id { font-size: 11px; color: var(--ink-4); }
.node-name { font: 600 12.5px/1 var(--mono); color: var(--ink); }
.node-badge {
  margin-left: 4px; padding: 3px 7px;
  border-radius: var(--r-sm); background: rgba(255,255,255,.07);
  font-size: 10.5px; color: var(--ink-3); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.node-state {
  margin-left: auto; flex: none;
  padding: 3px 8px; border-radius: 999px;
  font: 600 10.5px/1 var(--mono); letter-spacing: .01em;
}
.node-state.ok   { background: rgba(10,207,131,.14); color: var(--green); }
.node-state.warn { background: rgba(255,114,98,.16); color: var(--orange); }
.node-state.err  { background: rgba(242,78,30,.18); color: var(--red); }

.node-body { padding: 30px 34px 34px; }

/* ports */
.port {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 11px; height: 11px; border-radius: 999px;
  background: var(--canvas); border: 2px solid var(--ink-3);
  z-index: 3;
}
.port-in  { top: -6px; }
.port-out { bottom: -6px; }
.node.is-selected .port { border-color: var(--select); }

/* ---------------------- WIRES ---------------------- */
.wire { position: relative; height: 108px; width: 100%; }
.wire svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wire path {
  fill: none; stroke: var(--ink-4); stroke-width: 1.6;
  stroke-dasharray: var(--len, 400); stroke-dashoffset: var(--len, 400);
}
.wire.in path { stroke-dashoffset: 0; transition: stroke-dashoffset 900ms var(--ease); }
.wire.error path { stroke: rgba(242,78,30,.6); }
.wire-label {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  padding: 3px 9px; border-radius: 999px;
  background: var(--canvas); border: 1px solid var(--line-2);
  font: 500 10.5px/1.4 var(--mono); color: var(--ink-3);
  white-space: nowrap;
  opacity: 0; transition: opacity 400ms var(--ease) 300ms;
}
.wire.in .wire-label { opacity: 1; }
.wire.error .wire-label { color: var(--red); border-color: rgba(242,78,30,.4); }

/* ---------------------- TYPE ---------------------- */
.kicker { font-size: 11px; letter-spacing: .1em; color: var(--ink-3); margin: 0 0 20px; }
.display {
  margin: 0 0 20px;
  font: 800 clamp(30px, 4.6vw, 58px)/1.03 var(--ui);
  letter-spacing: -.035em;
  background: linear-gradient(180deg, #fff 40%, #C9C9C9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.h2 {
  margin: 0 0 12px;
  font: 700 clamp(19px, 2.2vw, 27px)/1.18 var(--ui);
  letter-spacing: -.022em; color: var(--ink);
}
.lede { margin: 0 0 24px; max-width: 62ch; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.lede.sm { font-size: 14px; margin-bottom: 22px; }
.node-note {
  margin: 24px 0 0; padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px; line-height: 1.6; color: var(--ink-3); max-width: 78ch;
}
.big { font: 700 18px/1.35 var(--ui); letter-spacing: -.015em; color: var(--ink); margin: 0 0 10px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.cta-row .btn { height: 38px; padding: 0 18px; font-size: 13.5px; }

.cover-meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--ink-3);
}
.cover-meta b { color: var(--ink); font-size: 15px; margin-right: 5px; }

/* ---------------------- 01 MODELS ---------------------- */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.model {
  display: flex; flex-direction: column; align-items: flex-start; gap: 7px;
  text-align: left; padding: 16px;
  background: var(--canvas);
  border: 1px solid var(--line-2); border-radius: var(--r-md);
  cursor: pointer; color: inherit; font: inherit;
  transition: border-color var(--fast), background var(--fast), transform var(--fast);
}
.model:hover { border-color: #5C5C5C; transform: translateY(-2px); }
.model[aria-pressed="true"] { border-color: var(--select); background: var(--select-wash); }
.model-dot { width: 10px; height: 10px; border-radius: 999px; background: var(--c); }
.model-name { font-size: 11.5px; font-weight: 600; color: var(--ink); word-break: break-word; }
.model-desc { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.model-count { margin-top: auto; padding-top: 8px; font-size: 10.5px; color: var(--ink-4); }

/* ---------------------- 02 COMPARE ---------------------- */
.cmp { width: 100%; border-collapse: collapse; font-size: 13px; }
.cmp thead th {
  text-align: left; padding: 0 12px 10px;
  font: 600 10.5px/1 var(--ui); letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-4); border-bottom: 1px solid var(--line);
}
.cmp thead th:first-child { width: 34px; }
.cmp tbody tr {
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background var(--fast);
}
.cmp tbody tr:hover { background: rgba(255,255,255,.035); }
.cmp tbody tr:focus-visible { background: var(--select-wash); }
.cmp td { padding: 13px 12px; vertical-align: top; line-height: 1.5; }
.cmp td:nth-child(2) { color: var(--ink-2); width: 34%; }
.cmp td:nth-child(3) { color: var(--ink); }
.cmp td.mono { color: var(--ink-4); font-size: 11px; padding-top: 15px; }
.cmp-go { width: 52px; text-align: right; font-size: 11px; color: var(--ink-4); white-space: nowrap; }
.cmp tbody tr:hover .cmp-go { color: var(--select); }
.cmp-go.warn { color: var(--orange); }

/* ---------------------- 03 RELAY ---------------------- */
.relay {
  display: grid;
  grid-template-columns: 1fr 90px 1fr 70px 1fr;
  gap: 0; align-items: center;
  padding: 8px 0 4px;
}
.relay-col { display: flex; flex-direction: column; gap: 7px; }
.col-label { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 4px; }
.inlet {
  padding: 9px 11px;
  background: var(--canvas); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  font: 500 11.5px/1.3 var(--mono); color: var(--ink-2);
  transition: border-color var(--fast), color var(--fast), background var(--fast);
}
.inlet.hot { border-color: var(--green); color: var(--ink); background: rgba(10,207,131,.09); }

.relay-wires { width: 100%; height: 260px; overflow: visible; }
.relay-wires path { fill: none; stroke: var(--ink-4); stroke-width: 1.3; }
.relay-wires .chip-dot { fill: var(--green); }

.triage {
  position: relative;
  padding: 16px 14px;
  background: linear-gradient(180deg, rgba(10,207,131,.10), rgba(10,207,131,.02));
  border: 1px solid rgba(10,207,131,.45); border-radius: var(--r-md);
}
.triage-title { display: block; font-size: 12.5px; font-weight: 600; color: var(--green); margin-bottom: 10px; }
.triage-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.triage-steps li {
  font-size: 11px; color: var(--ink-2); padding-left: 14px; position: relative;
}
.triage-steps li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 5px; height: 5px; border-radius: 999px; background: var(--ink-4);
}
.triage-steps li.hot::before { background: var(--green); box-shadow: 0 0 0 3px rgba(10,207,131,.2); }
.triage-pulse {
  position: absolute; inset: -1px; border-radius: var(--r-md);
  border: 1px solid var(--green); opacity: 0; pointer-events: none;
}
.triage.firing .triage-pulse { animation: pulse 1200ms var(--ease) infinite; }
@keyframes pulse { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.035); } }

.outcard {
  padding: 13px;
  background: var(--canvas); border: 1px solid var(--line-2); border-radius: var(--r-sm);
}
.outcard b { display: block; font-size: 13px; margin-bottom: 4px; }
.outcard p { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--ink-3); }
.outcard.asana { border-color: rgba(255,114,98,.4); }
.outcard.asana b { color: var(--orange); }
.pipe { text-align: center; font-size: 10.5px; color: var(--ink-4); padding: 6px 0; }

/* ---------------------- 04 PUBLISH ---------------------- */
.publish { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tile {
  aspect-ratio: 4 / 3; border-radius: var(--r-sm);
  position: relative;
}
.tile.done {
  background: linear-gradient(145deg, rgba(26,188,254,.30), rgba(26,188,254,.10));
  border: 1px solid rgba(26,188,254,.55);
}
.tile.done::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 13px; height: 7px; margin: -6px 0 0 -7px;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}
.tile.pending { border: 1px dashed var(--line-2); background: rgba(255,255,255,.02); }
.tile.pending::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 10px; height: 1.5px; margin: -1px 0 0 -5px; background: var(--ink-4);
}
.tile.pop { animation: tilePop 420ms var(--ease) both; }
@keyframes tilePop { from { opacity: 0; transform: scale(.7); } }

.publish-stats { display: flex; flex-direction: column; gap: 20px; }
.stat { display: flex; flex-direction: column; }
.stat-pre { font-size: 10.5px; color: var(--ink-4); letter-spacing: .06em; text-transform: uppercase; }
.stat-num {
  font: 800 clamp(34px, 5vw, 54px)/1 var(--ui); letter-spacing: -.04em;
  color: var(--ink);
}
.stat-num.plain { font-size: clamp(28px, 4vw, 42px); }
.stat-label { font-size: 12px; color: var(--ink-3); margin-top: 4px; }

/* ---------------------- 05 LANES ---------------------- */
.lanes { position: relative; padding: 6px 0 30px; }
.lane { display: flex; align-items: center; gap: 14px; height: 34px; }
.lane-name { width: 100px; flex: none; font-size: 11px; color: var(--ink-3); text-align: right; }
.lane-bar {
  height: 12px; border-radius: 999px;
  background: linear-gradient(90deg, var(--c1, var(--purple)), var(--c2, var(--blue)));
  width: 0; transition: width 760ms var(--ease);
}
.lane[data-lane="0"] .lane-bar { --c1: #7B3BE0; --c2: var(--purple); }
.lane[data-lane="1"] .lane-bar { --c1: var(--purple); --c2: var(--blue); }
.lane[data-lane="2"] .lane-bar { --c1: var(--blue); --c2: var(--green); }
.lane[data-lane="3"] .lane-bar { --c1: var(--green); --c2: #7ED957; }
.lane[data-lane="4"] .lane-bar { --c1: var(--orange); --c2: var(--red); }

.datelock {
  position: absolute; top: 0; bottom: 0; right: 4%;
  width: 0; border-left: 2px dashed var(--red);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
}
.datelock-pin {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 24px; display: grid; place-items: center;
  border-radius: 999px; background: var(--red); color: #fff;
}
.datelock-pin svg { width: 13px; height: 13px; }
.datelock-label {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  font-size: 10px; color: var(--red); white-space: nowrap;
  padding: 2px 7px; border-radius: 999px; background: rgba(242,78,30,.14);
}

/* ---------------------- 08 CHAIN ---------------------- */
.chain {
  display: flex; gap: 0; overflow-x: auto; padding: 6px 2px 18px;
  scrollbar-width: thin;
}
.cn {
  position: relative; flex: none;
  width: 232px; margin-right: 26px;
  text-align: left; padding: 14px;
  background: var(--canvas); border: 1px solid var(--line-2); border-radius: var(--r-md);
  color: inherit; font: inherit; cursor: pointer;
  transition: border-color var(--fast), transform var(--fast), background var(--fast);
}
.cn:last-child { margin-right: 0; }
.cn::after {
  content: ""; position: absolute; right: -26px; top: 50%;
  width: 26px; height: 1.4px; background: var(--ink-4);
}
.cn:last-child::after { display: none; }
.cn:hover { border-color: #5C5C5C; transform: translateY(-2px); }
.cn.is-picked { border-color: var(--select); background: var(--select-wash); }
.cn.is-current { border-color: rgba(10,207,131,.5); }
.cn-v { display: inline-block; font-size: 10.5px; color: var(--green); margin-right: 8px; }
.cn-y { font-size: 10.5px; color: var(--ink-4); }
.cn b { display: block; margin: 8px 0 6px; font-size: 15px; letter-spacing: -.015em; }
.cn-d { display: block; font-size: 12px; line-height: 1.5; color: var(--ink-3); }

/* ---------------------- 10 ERROR NODE ---------------------- */
.node-error { border-color: rgba(242,78,30,.55); box-shadow: 0 8px 32px rgba(0,0,0,.34), 0 0 0 1px rgba(242,78,30,.14); }
.node-error .node-head { background: rgba(242,78,30,.10); border-bottom-color: rgba(242,78,30,.28); }
.err-banner {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 14px; margin-bottom: 24px;
  background: rgba(242,78,30,.10); border: 1px solid rgba(242,78,30,.32); border-radius: var(--r-sm);
  font: 500 12px/1.4 var(--mono); color: var(--orange);
}
.err-banner svg { width: 15px; height: 15px; flex: none; }
.gaps { margin: 0; padding: 0 0 0 22px; display: flex; flex-direction: column; gap: 18px; }
.gaps li::marker { color: var(--red); font-family: var(--mono); font-size: 12px; }
.gaps b { display: block; font-size: 15px; letter-spacing: -.015em; margin-bottom: 6px; }
.gaps p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); max-width: 70ch; }
.migration {
  margin-top: 26px; padding: 18px 20px;
  background: var(--canvas); border: 1px solid var(--line-2); border-radius: var(--r-md);
}
.migration-label {
  display: block; margin-bottom: 8px;
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--green);
}
.migration p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--ink); max-width: 70ch; }

/* ---------------------- 11 EXPORT ---------------------- */
.node-export .node-head { background: linear-gradient(90deg, rgba(255,114,98,.14), transparent 70%); }
.export { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ex {
  display: flex; flex-direction: column; gap: 5px;
  padding: 16px;
  background: var(--canvas); border: 1px solid var(--line-2); border-radius: var(--r-md);
  text-decoration: none;
  transition: border-color var(--fast), transform var(--fast), background var(--fast);
}
.ex:hover { border-color: var(--orange); transform: translateY(-2px); background: rgba(255,114,98,.06); }
.ex-k { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); }
.ex b { font-size: 14px; letter-spacing: -.015em; word-break: break-word; }

/* ---------------------- FOOT ---------------------- */
.canvas-foot {
  margin-top: 90px; padding: 26px 0 10px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.canvas-foot p { margin: 0 0 6px; font-size: 11.5px; color: var(--ink-4); }
.canvas-foot p.mono { font-size: 10.5px; color: var(--ink-4); letter-spacing: .02em; }

/* =============================================================
   FLOATING CONTROLS
   ============================================================= */
.zoom {
  position: fixed; left: calc(var(--rail-l) + 16px); bottom: 16px; z-index: 50;
  display: flex; align-items: center;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-md);
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
  overflow: hidden;
}
.zoom button {
  height: 30px; min-width: 30px; padding: 0 8px;
  background: transparent; border: 0; color: var(--ink-2);
  font: 500 12px/1 var(--mono); cursor: pointer;
  transition: background var(--fast), color var(--fast);
}
.zoom button:hover { background: var(--hover); color: var(--ink); }
#zoom-val { min-width: 52px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }

.dock {
  position: fixed; right: calc(var(--rail-r) + 16px); bottom: 16px; z-index: 50;
  display: flex; align-items: center; gap: 6px;
  padding: 5px; background: var(--panel);
  border: 1px solid var(--line-2); border-radius: 999px;
  box-shadow: 0 8px 26px rgba(0,0,0,.46);
}
.dock-main {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 16px; border-radius: 999px;
  background: var(--select); color: #fff;
  font: 600 13px/1 var(--ui); text-decoration: none;
  transition: background var(--fast);
}
.dock-main:hover { background: #0A85E0; }
.dock-main svg { width: 15px; height: 15px; }
.dock-side {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 999px;
  background: var(--elevated); color: var(--ink-2);
  font: 700 12px/1 var(--ui); text-decoration: none;
  transition: background var(--fast), color var(--fast);
}
.dock-side:hover { background: var(--hover); color: var(--ink); }

/* ---------------------- CURSORS ---------------------- */
.cursors { position: fixed; inset: 0; pointer-events: none; z-index: 45; }
.mcur {
  position: absolute; display: flex; align-items: flex-start; gap: 0;
  opacity: 0; transform: translate(0,0);
  transition: opacity 400ms var(--ease), left 2600ms var(--ease), top 2600ms var(--ease);
}
.mcur.show { opacity: 1; }
.mcur svg { width: 18px; height: 18px; flex: none; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.mcur span {
  margin: 12px 0 0 -2px; padding: 3px 8px; border-radius: 999px;
  background: var(--c); color: #14100B;
  font: 600 10.5px/1.3 var(--ui); white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}

/* =============================================================
   SHARED SMALL TYPE
   ============================================================= */
.h3 { margin: 0 0 8px; font: 700 16px/1.3 var(--ui); letter-spacing: -.018em; color: var(--ink); }
.body { margin: 22px 0 0; font-size: 14px; line-height: 1.65; color: var(--ink-2); max-width: 74ch; }
.cap { margin: 10px 0 0; font-size: 11.5px; color: var(--ink-4); }

/* =============================================================
   02 · AGENT SQUADS
   ============================================================= */
.squads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.squad {
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 12px;
  background: var(--canvas);
  border: 1px solid var(--line-2); border-top: 2px solid var(--c);
  border-radius: var(--r-md);
}
.squad-name {
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c); margin-bottom: 4px;
}
.agent {
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
  padding: 6px 8px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.03);
  font: 600 12px/1.3 var(--ui); color: var(--ink);
}
.agent em {
  font-style: normal; font-weight: 400;
  font-family: var(--mono); font-size: 10px; color: var(--ink-4);
}

/* screenshots of the running system */
.shot { margin: 24px 0 0; }
.shot img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line-2); border-radius: var(--r-md);
  background: #111;
}
.shot figcaption {
  margin-top: 8px; font-size: 11.5px; line-height: 1.5; color: var(--ink-3);
}

/* =============================================================
   03 · THE LIVE CONSOLE
   ============================================================= */
.node-run { border-color: rgba(10,207,131,.42); }
.node-run .node-head { background: linear-gradient(90deg, rgba(10,207,131,.10), transparent 60%); }

.console {
  margin: 26px 0 0;
  background: var(--canvas);
  border: 1px solid rgba(10,207,131,.35);
  border-radius: var(--r-md);
  overflow: hidden;
}
.console-head {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(10,207,131,.06);
}
.console-title { font-size: 11.5px; font-weight: 600; color: var(--green); }
.console-hint { font-size: 11.5px; color: var(--ink-3); }

.console textarea {
  display: block; width: 100%;
  padding: 14px; border: 0; resize: vertical;
  background: transparent; color: var(--ink-2);
  font: 400 12.5px/1.65 var(--mono);
  outline: none;
}
.console textarea:focus { background: rgba(255,255,255,.02); color: var(--ink); }

.console-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; border-top: 1px solid var(--line);
}
.run-dot {
  width: 7px; height: 7px; border-radius: 999px; background: #fff;
}
.is-busy .run-dot { animation: beat 900ms linear infinite; }
.console-status { font-size: 11px; color: var(--ink-4); }
.console-status.is-ok   { color: var(--green); }
.console-status.is-warn { color: var(--orange); }
.console-status.is-err  { color: var(--red); }
.console-status.is-busy { color: var(--blue); }

.console-out { padding: 4px 14px 16px; border-top: 1px solid var(--line); }
.console-note {
  margin: 12px 0 14px; padding: 8px 11px; border-radius: var(--r-sm);
  font: 500 11.5px/1.5 var(--mono);
}
.console-note.ok   { background: rgba(10,207,131,.10); color: var(--green); }
.console-note.warn { background: rgba(255,114,98,.12); color: var(--orange); }
.console-fail { margin: 12px 0; font-size: 12.5px; line-height: 1.6; color: var(--orange); }

.tri-head {
  display: grid; grid-template-columns: 34px 1fr 210px; gap: 12px;
  padding: 0 0 8px; border-bottom: 1px solid var(--line);
  font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4);
}
.tri {
  display: grid; grid-template-columns: 34px 1fr 210px; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
  align-items: start;
}
.tri-seq {
  display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: var(--r-sm);
  background: var(--elevated); color: var(--ink-2);
  font-size: 11px; font-weight: 600;
}
.tri-from { display: block; font-size: 10.5px; color: var(--ink-4); margin-bottom: 2px; }
.tri-main b { display: block; font-size: 13.5px; letter-spacing: -.012em; }
.tri-miss { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.miss {
  padding: 2px 7px; border-radius: 999px;
  background: rgba(242,78,30,.13); color: var(--orange);
  font: 500 10.5px/1.5 var(--mono);
}
.miss.none { background: rgba(10,207,131,.12); color: var(--green); }
.tri-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tri-ws {
  padding: 3px 8px; border-radius: var(--r-sm);
  background: rgba(26,188,254,.14); color: var(--blue); font-size: 10.5px;
}
.tri-eff {
  display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: var(--r-sm);
  background: var(--elevated); color: var(--ink-2); font-size: 10.5px; font-weight: 600;
}
.tri-health { position: relative; flex: 1; min-width: 70px; display: flex; align-items: center; gap: 7px; }
.tri-health::before {
  content: ""; position: absolute; left: 0; right: 26px; height: 5px; border-radius: 999px;
  background: rgba(255,255,255,.08);
}
.tri-health i { position: relative; height: 5px; border-radius: 999px; max-width: calc(100% - 26px); }
.tri-health em { margin-left: auto; font-style: normal; font-size: 10.5px; }
.tri-health.ok   i { background: var(--green); }  .tri-health.ok   em { color: var(--green); }
.tri-health.warn i { background: var(--orange); } .tri-health.warn em { color: var(--orange); }
.tri-health.err  i { background: var(--red); }    .tri-health.err  em { color: var(--red); }
.tri-plan { margin: 16px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--ink); max-width: 74ch; }

/* two-up explainer */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 26px; }
.pair-half p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.62; color: var(--ink-2); }
.pair-split { margin-top: 8px; gap: 34px; }
.pair-tag {
  display: inline-block; margin-bottom: 10px; padding: 3px 9px;
  border-radius: 999px; border: 1px solid var(--c);
  color: var(--c); font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
}

.openq { display: flex; flex-direction: column; gap: 7px; margin-top: 16px; }
.openq-row {
  display: flex; align-items: center; gap: 9px;
  font: 500 12px/1 var(--mono); color: var(--ink-3);
}
.openq-row i {
  width: 9px; height: 9px; border-radius: 999px;
  border: 1.5px solid var(--ink-4); flex: none;
}
.openq-row.done { color: var(--purple); }
.openq-row.done i { border-color: var(--purple); background: var(--purple); }

/* =============================================================
   04 · PRODUCTS
   ============================================================= */
.products { display: flex; flex-direction: column; gap: 10px; }
.prod {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px;
  background: var(--canvas); border: 1px solid var(--line-2); border-radius: var(--r-md);
  transition: border-color var(--fast);
}
.prod:hover { border-color: #5C5C5C; }
.prod-dot { width: 9px; height: 9px; border-radius: 999px; background: var(--c); margin-top: 6px; flex: none; }
.prod-main { min-width: 0; }
.prod-main b { font-size: 15px; letter-spacing: -.015em; margin-right: 10px; }
.prod-url { font-size: 11.5px; color: var(--ink-4); text-decoration: none; }
a.prod-url:hover { color: var(--select); }
.prod-status {
  display: inline-block; margin-top: 6px; padding: 2px 8px;
  border-radius: 999px; font-size: 10.5px;
}
.prod-status.ok   { background: rgba(10,207,131,.14); color: var(--green); }
.prod-status.warn { background: rgba(255,114,98,.14); color: var(--orange); }
.prod-main p { margin: 8px 0 0; font-size: 13px; line-height: 1.6; color: var(--ink-2); max-width: 78ch; }

/* =============================================================
   06 · FIGURES AND OUTFLOW
   ============================================================= */
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.fig {
  padding: 16px; background: var(--canvas);
  border: 1px solid var(--line-2); border-radius: var(--r-md);
}
.fig b {
  display: block; font: 800 clamp(26px, 3.4vw, 38px)/1 var(--ui);
  letter-spacing: -.04em; color: var(--ink);
}
.fig span { display: block; margin-top: 6px; font-size: 12px; line-height: 1.4; color: var(--ink-3); }

.outflow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 16px; background: var(--canvas);
  border: 1px solid var(--line-2); border-radius: var(--r-md);
}
.outflow-label {
  width: 100%; font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-4); margin-bottom: 4px;
}
.of {
  padding: 7px 12px; border-radius: 999px;
  background: rgba(162,89,255,.10); border: 1px solid rgba(162,89,255,.32);
  font-size: 12px; color: var(--ink-2);
}

/* =============================================================
   07 · CADENCE BLOCK
   ============================================================= */
.cadence { margin-top: 28px; }
.cadence-label {
  display: block; margin-bottom: 10px;
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4);
}
.cadence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cad {
  padding: 14px; background: var(--canvas);
  border: 1px solid var(--line-2); border-radius: var(--r-md);
}
.cad b { display: block; font-size: 13.5px; letter-spacing: -.012em; margin-bottom: 6px; }
.cad p { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }

/* =============================================================
   09 · REFERENCES
   ============================================================= */
.refs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ref {
  margin: 0; padding: 20px 22px;
  background: var(--canvas);
  border: 1px solid var(--line-2); border-left: 3px solid var(--c, var(--purple));
  border-radius: 0 var(--r-md) var(--r-md) 0;
  display: flex; flex-direction: column;
}
.ref p {
  margin: 0 0 16px;
  font: 400 13.5px/1.62 var(--ui); letter-spacing: -.008em; color: var(--ink);
}
.ref cite {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  margin-top: auto; font-style: normal; font-size: 12px;
}
.ref cite b { font-size: 12.5px; }
.ref cite em { font-style: normal; color: var(--ink-3); }

/* =============================================================
   11 · WHY THIS ONE
   ============================================================= */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.wy {
  padding: 18px 16px;
  background: var(--canvas);
  border: 1px solid var(--line-2); border-radius: var(--r-md);
}
.wy-n {
  display: block; margin-bottom: 10px;
  font-size: 10.5px; letter-spacing: .08em; color: var(--orange);
}
.wy b { display: block; margin-bottom: 8px; font-size: 14.5px; letter-spacing: -.015em; }
.wy p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink-2); }

.dream {
  margin-top: 22px; padding: 20px 22px;
  background: linear-gradient(90deg, rgba(255,114,98,.10), rgba(162,89,255,.06) 60%, transparent);
  border: 1px solid rgba(255,114,98,.30); border-radius: var(--r-md);
}
.dream p {
  margin: 0; max-width: 74ch;
  font: 500 15.5px/1.6 var(--ui); letter-spacing: -.014em; color: var(--ink);
}

/* =============================================================
   TOOL MODES  ·  the toolbar buttons actually do something
   ============================================================= */

/* Frame tool: every node gets a Figma frame label */
body.show-frames .node { border-style: dashed; border-color: rgba(26,188,254,.5); }
body.show-frames .node::before {
  content: attr(data-title);
  position: absolute; left: 0; top: -19px;
  font: 500 10.5px/1 var(--mono); color: var(--blue);
  letter-spacing: .01em;
}
body.show-frames .port { border-color: var(--blue); }

/* Connector tool: the graph reads as a graph */
body.show-wires .wire path { stroke: var(--purple); stroke-width: 2; }
body.show-wires .wire.error path { stroke: var(--red); }
body.show-wires .wire-label { opacity: 1; color: var(--ink); border-color: var(--purple); }
body.show-wires .port { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(162,89,255,.16); }
body.show-wires .relay-wires path { stroke: var(--green); stroke-width: 1.8; }

/* Comment tool: pins appear where real people are on record */
body.show-comments #n09::after,
body.show-comments #n02::after,
body.show-comments #n10::after {
  content: "1";
  position: absolute; right: -13px; top: -13px; z-index: 5;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 999px 999px 999px 3px;
  background: var(--blue); color: #10222A;
  font: 700 11px/1 var(--ui);
  box-shadow: 0 3px 10px rgba(0,0,0,.5);
  animation: pinIn 320ms var(--ease) both;
}
body.show-comments #n09::after { content: "4"; }
body.show-comments #n02::after { content: "2"; background: var(--green); color: #0C2019; }
body.show-comments #n10::after { content: "3"; background: var(--red); color: #fff; }
@keyframes pinIn { from { opacity: 0; transform: scale(.5); } }
body.show-comments .ref,
body.show-comments .shot { outline: 1px solid rgba(26,188,254,.45); outline-offset: 3px; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1240px) {
  .canvas-inner { padding: 52px 32px 32px; }
}

@media (max-width: 1180px) {
  .rail-right { display: none; }
  .dock { right: 16px; }
}

@media (max-width: 1100px) {
  .squads { grid-template-columns: 1fr 1fr; }
  .refs { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .rail-left { display: none; }
  .zoom { display: none; }
  .tb-center { display: none; }
  .avastack-label { display: none; }
  .models { grid-template-columns: 1fr 1fr; }
  .pair, .cadence-grid, .why { grid-template-columns: 1fr; }
  .figures { grid-template-columns: 1fr; }
  .tri, .tri-head { grid-template-columns: 28px 1fr; }
  .tri-meta { grid-column: 2; margin-top: 4px; }
  .tri-head span:last-child { display: none; }
  .publish { grid-template-columns: 1fr; gap: 24px; }
  .export { grid-template-columns: 1fr; }
  .relay { grid-template-columns: 1fr; }
  .relay-wires { display: none; }
  .relay-col { margin-bottom: 18px; }
  .cmp thead { display: none; }
  .cmp tbody tr { display: grid; grid-template-columns: 34px 1fr 44px; grid-template-areas: "n a g" "n b g"; padding: 6px 0; }
  .cmp td:nth-child(1) { grid-area: n; }
  .cmp td:nth-child(2) { grid-area: a; width: auto; padding-bottom: 4px; }
  .cmp td:nth-child(3) { grid-area: b; padding-top: 0; }
  .cmp td:nth-child(4) { grid-area: g; align-self: center; }
}

@media (max-width: 700px) {
  .canvas-inner { padding: 32px 16px 24px; }
  .node-body { padding: 22px 18px 24px; }
  .toolbar { gap: 8px; padding: 0 10px; }
  .tb-saved, .chip-draft { display: none; }
  .tb-org, .tb-slash { display: none; }
  .toolbar .btn-ghost { display: none; }
  .models { grid-template-columns: 1fr; }
  .squads { grid-template-columns: 1fr; }
  .console-hint { display: none; }
  .wire { height: 76px; }
  .lane-name { width: 74px; font-size: 10px; }
  .quote p { font-size: 14.5px; }
  .dock-main span { display: none; }
  .dock-main { padding: 0 12px; }
  .node-badge { display: none; }
  .cover-meta { gap: 8px 18px; }
}

/* =============================================================
   REDUCED MOTION
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .canvas { scroll-behavior: auto; }
  .node.enter { opacity: 1; transform: translateX(var(--offpx, 0px)); }
  .wire path { stroke-dashoffset: 0; }
  .wire-label { opacity: 1; }
  .mcur { display: none; }
}
