:root {
  color-scheme: dark;
  --canvas: #06080c;
  --canvas-2: #090d14;
  --surface: rgba(13, 19, 29, 0.82);
  --surface-solid: #0d131d;
  --surface-raised: rgba(18, 27, 41, 0.86);
  --surface-soft: rgba(255,255,255,0.035);
  --ink: #f4f8ff;
  --muted: #a7b4c8;
  --muted-2: #75839a;
  --line: rgba(126, 151, 190, 0.2);
  --line-strong: rgba(126, 151, 190, 0.42);
  --gold: #ffd400;
  --cyan: #72e6f4;
  --blue: #5b82ff;
  --violet: #9a7dff;
  --success: #6de6a8;
  --danger: #ff918b;
  --font: Hind, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Crimson Pro", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 30px;
  --radius-xl: 48px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --fast: 160ms;
  --standard: 320ms;
  --emphasis: 560ms;
  --ease: cubic-bezier(.2,.72,.16,1);
  --header-h: 76px;
  --dock-h: 68px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
button { border: 0; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: 999px;
  color: #080a0d;
  background: var(--gold);
  font-weight: 800;
  transition: top var(--fast) var(--ease);
}
.skip-link:focus { top: 12px; }

.ambient { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
#ambient-canvas { width: 100%; height: 100%; opacity: .58; }
.ambient__glow { position: absolute; width: 45vw; height: 45vw; border-radius: 50%; filter: blur(120px); opacity: .13; }
.ambient__glow--one { left: 10%; top: 15%; background: var(--blue); animation: drift-one 18s ease-in-out infinite alternate; }
.ambient__glow--two { right: 2%; bottom: 8%; background: var(--violet); animation: drift-two 22s ease-in-out infinite alternate; }
.ambient__grain { position: absolute; inset: 0; opacity: .06; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E"); }
@keyframes drift-one { to { transform: translate(16vw, 9vh) scale(1.16); } }
@keyframes drift-two { to { transform: translate(-12vw, -7vh) scale(.88); } }

.hub-header {
  position: relative;
  z-index: 20;
  height: var(--header-h);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 20px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 8, 12, .72);
  backdrop-filter: blur(24px) saturate(140%);
}
.brand { width: 190px; align-self: center; }
.brand img { width: 100%; height: auto; }
.hub-context {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .04em;
  white-space: nowrap;
}
.hub-context__signal { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
.hub-context__state { color: var(--ink); padding-left: 10px; border-left: 1px solid var(--line); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.icon-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  cursor: pointer;
  transition: border-color var(--fast), background var(--fast), transform var(--fast);
}
.icon-action:hover { border-color: var(--line-strong); background: rgba(255,255,255,.06); transform: translateY(-1px); }
.icon-action svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.icon-action span { font-size: .8rem; font-weight: 700; }
kbd { padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: .68rem; background: rgba(0,0,0,.24); }

.hub-shell {
  position: relative;
  z-index: 2;
  height: calc(100vh - var(--header-h) - var(--dock-h));
  display: grid;
  grid-template-columns: minmax(230px, 17vw) minmax(520px, 1fr) minmax(280px, 22vw);
  overflow: hidden;
}
.system-rail, .inspector { min-width: 0; background: rgba(6, 9, 14, .6); backdrop-filter: blur(20px); }
.system-rail { display: flex; flex-direction: column; border-right: 1px solid var(--line); padding: 26px 18px 18px; overflow: auto; }
.rail-heading { padding: 0 8px 18px; }
.micro-label { margin: 0 0 9px; color: var(--cyan); font-size: .68rem; line-height: 1.2; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.rail-heading h1 { max-width: 15ch; margin: 0; font-family: var(--display); font-size: clamp(1.1rem, 1.55vw, 1.55rem); line-height: 1.04; letter-spacing: -.035em; }
.system-nav { display: grid; gap: 7px; }
.system-link {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 11px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: color var(--fast), border-color var(--fast), background var(--fast), transform var(--fast);
}
.system-link:hover { color: var(--ink); background: rgba(255,255,255,.035); transform: translateX(2px); }
.system-link.is-active { color: var(--ink); border-color: var(--line); background: linear-gradient(115deg, rgba(114,230,244,.09), rgba(91,130,255,.035)); }
.system-link strong, .system-link small { display: block; }
.system-link strong { font-size: .84rem; line-height: 1.25; }
.system-link small { margin-top: 3px; color: var(--muted-2); font-size: .68rem; line-height: 1.35; }
.system-link__glyph { width: 30px; height: 30px; position: relative; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.035); border: 1px solid var(--line); }
.system-link__glyph::before, .system-link__glyph::after { content:""; position:absolute; border-radius:50%; }
.system-link__glyph::before { width: 8px; height: 8px; background: currentColor; box-shadow: 0 0 12px currentColor; }
.system-link__glyph::after { width: 18px; height: 18px; border: 1px solid currentColor; opacity: .55; }
.system-link__glyph--all { color: var(--gold); }
.system-link__glyph--challenge { color: var(--cyan); }
.system-link__glyph--research { color: var(--blue); }
.system-link__glyph--prototype { color: var(--violet); }
.system-link__glyph--venture { color: #c2a8ff; }
.system-link__glyph--skills { color: #e3edff; }
.rail-note { margin-top: auto; display: grid; grid-template-columns: 8px 1fr; gap: 10px; align-items: start; padding: 14px 10px 2px; color: var(--muted-2); font-size: .67rem; line-height: 1.45; }
.rail-note p { margin: 0; }
.rail-note strong { color: var(--muted); }
.status-dot { width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px rgba(255,212,0,.55); }

.field-stage { position: relative; min-width: 0; padding: 26px 28px 16px; overflow: hidden; }
.field-stage__topline { position: relative; z-index: 5; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.field-stage__topline h2 { max-width: 19ch; margin: 0; font-family: var(--display); font-size: clamp(2rem, 3.2vw, 4.2rem); line-height: .92; letter-spacing: -.055em; text-wrap: balance; }
.field-intro { position: relative; z-index: 5; max-width: 65ch; margin: 12px 0 0; color: var(--muted); font-size: clamp(.86rem, 1vw, 1rem); line-height: 1.55; }
.field-controls { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.control-chip, .choice-chip {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
  color: var(--muted);
  border-radius: 999px;
  cursor: pointer;
  transition: color var(--fast), background var(--fast), border-color var(--fast);
}
.control-chip { padding: 8px 11px; font-size: .7rem; }
.control-chip:hover, .control-chip.is-active, .choice-chip:hover, .choice-chip.is-active { color: var(--ink); border-color: rgba(114,230,244,.45); background: rgba(114,230,244,.09); }
.field-map-wrap { position: absolute; inset: 126px 14px 32px; min-height: 420px; overflow: hidden; border-radius: 50% 45% 48% 42% / 52% 42% 55% 44%; }
.field-map-wrap::before { content:""; position:absolute; inset: 13%; border: 1px solid rgba(114,230,244,.08); border-radius:50%; box-shadow: 0 0 120px rgba(91,130,255,.08) inset; }
.field-map-wrap::after { content:""; position:absolute; inset: 27%; border: 1px dashed rgba(154,125,255,.1); border-radius:50%; }
.field-orbit { position:absolute; left:50%; top:50%; width:60%; aspect-ratio:1.5; transform:translate(-50%,-50%) rotate(-7deg); border:1px solid rgba(255,255,255,.055); border-radius:50%; }
.connection-layer, .field-map { position:absolute; inset:0; width:100%; height:100%; }
.connection-line { stroke: rgba(114,230,244,.12); stroke-width: .7; vector-effect: non-scaling-stroke; transition: stroke var(--fast), stroke-width var(--fast), opacity var(--fast); }
.connection-line.is-muted { opacity: .12; }
.connection-line.is-active { stroke: rgba(114,230,244,.74); stroke-width: 1.4; filter: drop-shadow(0 0 5px rgba(114,230,244,.55)); }
.connection-line.is-evidence { stroke-dasharray: 3 4; stroke: rgba(255,212,0,.32); }
.field-map { z-index:2; }
.field-node {
  position:absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: var(--node-size, 44px);
  height: var(--node-size, 44px);
  transform: translate(-50%, -50%);
  display:grid;
  place-items:center;
  padding:0;
  border-radius:50%;
  color: var(--node-color, var(--cyan));
  background: radial-gradient(circle at 40% 35%, rgba(255,255,255,.16), rgba(255,255,255,.02) 48%, rgba(0,0,0,.16) 70%);
  border: 1px solid color-mix(in srgb, var(--node-color) 48%, transparent);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--node-color) 5%, transparent), 0 0 32px color-mix(in srgb, var(--node-color) 15%, transparent);
  cursor:pointer;
  transition: transform var(--standard) var(--ease), opacity var(--standard), filter var(--standard), box-shadow var(--standard), border-color var(--standard);
}
.field-node::before { content:""; width: 18%; aspect-ratio:1; border-radius:50%; background: currentColor; box-shadow:0 0 12px currentColor; animation: node-core 4.8s ease-in-out infinite alternate; animation-delay: calc(var(--x) * -24ms); }
.field-node::after { content:attr(data-short); position:absolute; left:50%; top:calc(100% + 9px); min-width:120px; transform:translateX(-50%); color:var(--muted); font-size:.68rem; line-height:1.2; font-weight:700; text-align:center; opacity:.72; pointer-events:none; transition:color var(--fast), opacity var(--fast), transform var(--fast); }
.field-node:hover, .field-node:focus-visible { z-index:9; transform:translate(-50%,-50%) scale(1.22); box-shadow:0 0 0 11px color-mix(in srgb,var(--node-color) 8%,transparent),0 0 48px color-mix(in srgb,var(--node-color) 40%,transparent); }
.field-node:hover::after, .field-node:focus-visible::after, .field-node.is-selected::after { color:var(--ink); opacity:1; transform:translateX(-50%) translateY(2px); }

.field-node[data-edge="left"]::after { left:50%; transform:none; text-align:left; }
.field-node[data-edge="right"]::after { left:auto; right:50%; transform:none; text-align:right; }
.field-node[data-vertical="bottom"]::after { top:auto; bottom:calc(100% + 9px); }
.field-node[data-edge="left"]:hover::after, .field-node[data-edge="left"]:focus-visible::after, .field-node[data-edge="left"].is-selected::after,
.field-node[data-edge="right"]:hover::after, .field-node[data-edge="right"]:focus-visible::after, .field-node[data-edge="right"].is-selected::after { transform:translateY(2px); }

.field-node.is-selected { z-index:8; transform:translate(-50%,-50%) scale(1.35); border-color:var(--ink); box-shadow:0 0 0 12px color-mix(in srgb,var(--node-color) 9%,transparent),0 0 56px color-mix(in srgb,var(--node-color) 44%,transparent); }
.field-node.is-related { filter:brightness(1.25); box-shadow:0 0 0 9px color-mix(in srgb,var(--node-color) 8%,transparent),0 0 38px color-mix(in srgb,var(--node-color) 30%,transparent); }
.field-node.is-muted { opacity:.17; filter:saturate(.35); }
.field-node.is-hidden { opacity:0; pointer-events:none; transform:translate(-50%,-50%) scale(.5); }
.field-node[data-size="small"] { --node-size: 31px; }
.field-node[data-size="medium"] { --node-size: 43px; }
.field-node[data-size="large"] { --node-size: 56px; }
.field-node[data-system="challenge"] { --node-color: var(--cyan); }
.field-node[data-system="research"] { --node-color: var(--blue); }
.field-node[data-system="prototype"] { --node-color: var(--violet); }
.field-node[data-system="venture"] { --node-color: #c2a8ff; }
.field-node[data-system="skills"] { --node-color: #e3edff; }
.field-node[data-evidence="strong"] { box-shadow:0 0 0 10px color-mix(in srgb,var(--gold) 7%,transparent),0 0 42px color-mix(in srgb,var(--gold) 24%,transparent); }
@keyframes node-core { to { transform:scale(1.45); opacity:.62; } }
.field-centre { position:absolute; z-index:3; left:50%; top:52%; width:100px; height:100px; transform:translate(-50%,-50%); display:grid; place-items:center; border-radius:50%; pointer-events:none; }
.field-centre__core { position:absolute; inset:25%; border-radius:50%; background:radial-gradient(circle,var(--gold),rgba(255,212,0,.08) 60%,transparent 70%); box-shadow:0 0 70px rgba(255,212,0,.22); animation: core-pulse 4s ease-in-out infinite alternate; }
.field-centre__label { z-index:1; color:#fffbe3; font-size:.63rem; line-height:1.15; font-weight:900; letter-spacing:.08em; text-align:center; text-transform:uppercase; }
@keyframes core-pulse { to { transform:scale(1.12); opacity:.78; } }
.map-guide { position:absolute; left:18px; bottom:16px; z-index:4; display:flex; gap:16px; color:var(--muted-2); font-size:.62rem; }
.map-guide span { display:flex; align-items:center; gap:6px; }
.map-guide span::before { content:""; width:18px; height:1px; background:var(--line-strong); }
.field-legend { position:absolute; z-index:6; right:24px; bottom:12px; display:flex; gap:12px; flex-wrap:wrap; justify-content:flex-end; color:var(--muted-2); font-size:.61rem; }
.field-legend span { display:flex; gap:5px; align-items:center; }
.legend-dot { width:7px; height:7px; border-radius:50%; }
.legend-dot--challenge{background:var(--cyan)}.legend-dot--research{background:var(--blue)}.legend-dot--prototype{background:var(--violet)}.legend-dot--venture{background:#c2a8ff}.legend-dot--skills{background:#e3edff}

.field-list { position:absolute; inset:130px 20px 18px; z-index:7; padding:12px; overflow:auto; border:1px solid var(--line); border-radius:var(--radius-lg); background:rgba(8,12,18,.9); backdrop-filter:blur(24px); }
.list-toolbar { display:flex; justify-content:space-between; gap:20px; align-items:center; padding:6px 8px 16px; color:var(--muted); font-size:.75rem; }
.list-toolbar p { margin:0; }
.signal-list { display:grid; gap:8px; }
.signal-list-item { width:100%; display:grid; grid-template-columns:140px 1fr 120px; gap:18px; align-items:center; padding:13px 14px; border:1px solid var(--line); border-radius:var(--radius-md); background:rgba(255,255,255,.025); color:var(--ink); text-align:left; cursor:pointer; transition:background var(--fast),border-color var(--fast),transform var(--fast); }
.signal-list-item:hover { transform:translateX(3px); border-color:var(--line-strong); background:rgba(255,255,255,.05); }
.signal-list-item span { color:var(--muted-2); font-size:.68rem; text-transform:uppercase; letter-spacing:.08em; }
.signal-list-item strong { font-size:.9rem; }
.signal-list-item em { color:var(--muted); font-size:.7rem; font-style:normal; text-align:right; }

.inspector { border-left:1px solid var(--line); padding:26px 22px 20px; overflow:auto; }
.inspector__idle { min-height:100%; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; }
.idle-glyph { position:relative; width:118px; height:118px; margin:10px 0 26px; }
.idle-glyph span { position:absolute; border:1px solid var(--line-strong); border-radius:50%; }
.idle-glyph span:nth-child(1){inset:0}.idle-glyph span:nth-child(2){inset:21px;border-color:rgba(114,230,244,.35)}.idle-glyph span:nth-child(3){inset:45px;background:var(--gold);border:0;box-shadow:0 0 30px rgba(255,212,0,.28)}
.inspector h2 { margin:0; font-family:var(--display); font-size:clamp(1.55rem,2.2vw,2.5rem); line-height:.98; letter-spacing:-.045em; }
.inspector__idle > p:not(.micro-label) { color:var(--muted); font-size:.82rem; line-height:1.55; }
.text-action { padding:0; background:transparent; color:var(--cyan); font-size:.78rem; font-weight:800; cursor:pointer; }
.inspector__content { animation: inspector-in var(--emphasis) var(--ease) both; }
@keyframes inspector-in { from { opacity:0; transform:translateX(16px); } }
.inspector__top { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:28px; }
.signal-type { padding:7px 10px; border:1px solid rgba(114,230,244,.24); border-radius:999px; background:rgba(114,230,244,.07); color:var(--cyan); font-size:.66rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.close-focus { width:34px; height:34px; border-radius:50%; background:rgba(255,255,255,.04); color:var(--muted); font-size:1.25rem; cursor:pointer; }
.inspector__summary { margin:14px 0 22px; color:var(--muted); font-size:.86rem; line-height:1.6; }
.signal-facts { display:grid; gap:0; margin:0; border-top:1px solid var(--line); }
.signal-facts div { padding:13px 0; border-bottom:1px solid var(--line); }
.signal-facts dt { color:var(--muted-2); font-size:.62rem; text-transform:uppercase; letter-spacing:.11em; }
.signal-facts dd { margin:5px 0 0; color:var(--ink); font-size:.76rem; line-height:1.45; }
.next-decision { margin:18px 0; padding:16px; border:1px solid rgba(255,212,0,.2); border-radius:var(--radius-md); background:linear-gradient(130deg,rgba(255,212,0,.08),rgba(255,255,255,.02)); }
.next-decision span, .related-signals > span { color:var(--gold); font-size:.61rem; font-weight:800; text-transform:uppercase; letter-spacing:.11em; }
.next-decision p { margin:8px 0 0; font-size:.78rem; line-height:1.48; }
.related-signals { margin-bottom:18px; }
.related-signals > div { display:flex; flex-wrap:wrap; gap:6px; margin-top:9px; }
.related-chip { padding:7px 9px; border:1px solid var(--line); border-radius:999px; background:rgba(255,255,255,.025); color:var(--muted); font-size:.64rem; cursor:pointer; }
.related-chip:hover { color:var(--ink); border-color:var(--line-strong); }
.primary-action, .compose-action { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:44px; padding:11px 16px; border-radius:999px; background:var(--gold); color:#090a0c; font-weight:900; text-decoration:none; cursor:pointer; transition:transform var(--fast),box-shadow var(--fast); }
.primary-action:hover, .compose-action:hover { transform:translateY(-2px); box-shadow:0 12px 34px rgba(255,212,0,.16); }
.inspector .primary-action { width:100%; }
.fine-print { color:var(--muted-2); font-size:.62rem; line-height:1.4; text-align:center; }

.intelligence-dock { position:relative; z-index:30; height:var(--dock-h); border-top:1px solid var(--line); background:rgba(6,8,12,.86); backdrop-filter:blur(24px); }
.dock-handle { width:100%; min-height:var(--dock-h); display:flex; align-items:center; justify-content:center; gap:12px; background:transparent; cursor:pointer; }
.dock-handle > span:nth-child(2) { text-align:left; }
.dock-handle strong, .dock-handle small { display:block; }
.dock-handle strong { font-size:.78rem; }
.dock-handle small { margin-top:3px; color:var(--muted-2); font-size:.62rem; }
.guide-mark { width:28px; height:28px; position:relative; border-radius:50%; border:1px solid rgba(114,230,244,.42); }
.guide-mark::before, .guide-mark::after { content:""; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); border-radius:50%; }
.guide-mark::before { width:6px; height:6px; background:var(--cyan); box-shadow:0 0 14px var(--cyan); }
.guide-mark::after { width:16px; height:16px; border:1px dashed rgba(154,125,255,.65); animation:spin 8s linear infinite; }
@keyframes spin { to { transform:translate(-50%,-50%) rotate(360deg); } }
.dock-arrow { margin-left:12px; color:var(--muted); transition:transform var(--standard); }
.dock-handle[aria-expanded="true"] .dock-arrow { transform:rotate(180deg); }
.guide-panel { position:absolute; left:16%; right:16%; bottom:calc(100% + 12px); display:grid; grid-template-columns:1.15fr .85fr; gap:12px; padding:12px; border:1px solid var(--line-strong); border-radius:var(--radius-lg); background:rgba(9,13,20,.96); backdrop-filter:blur(34px); box-shadow:var(--shadow); animation:panel-up var(--standard) var(--ease) both; }
@keyframes panel-up { from { opacity:0; transform:translateY(15px) scale(.98); } }
.guide-inputs, .route-result { padding:18px; border-radius:22px; background:rgba(255,255,255,.025); }
.guide-inputs { display:grid; gap:16px; }
.guide-inputs fieldset { margin:0; padding:0; border:0; }
.guide-inputs legend { margin-bottom:8px; color:var(--muted); font-size:.72rem; font-weight:800; }
.choice-row { display:flex; gap:6px; flex-wrap:wrap; }
.choice-chip { padding:8px 10px; font-size:.68rem; }
.compose-action { justify-self:start; border:0; }
.route-result h3 { margin:0; font-family:var(--display); font-size:1.65rem; letter-spacing:-.04em; }
.route-result > p:not(.micro-label) { color:var(--muted); font-size:.76rem; line-height:1.5; }
.route-result ol { margin:15px 0; padding:0; list-style:none; counter-reset:route; display:grid; gap:7px; }
.route-result li { counter-increment:route; display:grid; grid-template-columns:24px 1fr; gap:8px; align-items:center; font-size:.72rem; }
.route-result li::before { content:counter(route); width:22px; height:22px; display:grid; place-items:center; border:1px solid var(--line); border-radius:50%; color:var(--cyan); font-size:.61rem; }
.route-result details { border-top:1px solid var(--line); padding-top:12px; }
.route-result summary { color:var(--cyan); font-size:.7rem; font-weight:800; cursor:pointer; }
.route-transparency { display:grid; gap:10px; margin-top:12px; }
.route-transparency strong { color:var(--muted-2); font-size:.61rem; text-transform:uppercase; letter-spacing:.09em; }
.route-transparency p, .route-transparency ul { margin:4px 0 0; color:var(--muted); font-size:.67rem; line-height:1.45; }
.route-transparency ul { padding-left:18px; }

.command-dialog, .review-dialog { width:min(760px,calc(100vw - 30px)); max-width:none; padding:0; border:1px solid var(--line-strong); border-radius:var(--radius-lg); background:rgba(9,13,20,.98); color:var(--ink); box-shadow:var(--shadow); }
.command-dialog::backdrop, .review-dialog::backdrop { background:rgba(0,0,0,.66); backdrop-filter:blur(12px); }
.command-shell { padding:12px; }
.command-input-wrap { display:grid; grid-template-columns:26px 1fr auto; gap:10px; align-items:center; padding:12px; border:1px solid var(--line); border-radius:18px; background:rgba(255,255,255,.035); }
.command-input-wrap svg { width:20px; fill:none; stroke:var(--muted); stroke-width:1.7; stroke-linecap:round; }
.command-input-wrap input { width:100%; padding:0; border:0; outline:0; background:transparent; color:var(--ink); font-size:1rem; }
.command-input-wrap input::placeholder { color:var(--muted-2); }
.command-input-wrap button { padding:6px 8px; border-radius:7px; background:rgba(255,255,255,.05); color:var(--muted); font-size:.62rem; }
.command-results { display:grid; gap:5px; max-height:430px; overflow:auto; padding:10px 2px; }
.command-result { width:100%; display:grid; grid-template-columns:34px 1fr auto; gap:10px; align-items:center; padding:10px; border-radius:14px; background:transparent; color:var(--ink); text-align:left; cursor:pointer; }
.command-result:hover, .command-result.is-keyboard-active { background:rgba(114,230,244,.08); }
.command-result__dot { width:26px; height:26px; border-radius:50%; border:1px solid currentColor; display:grid; place-items:center; color:var(--cyan); }
.command-result__dot::before { content:""; width:5px; height:5px; border-radius:50%; background:currentColor; }
.command-result strong, .command-result small { display:block; }
.command-result strong { font-size:.78rem; }
.command-result small { margin-top:2px; color:var(--muted-2); font-size:.63rem; }
.command-result em { color:var(--muted); font-size:.62rem; font-style:normal; }
.command-help { margin:5px 8px 2px; color:var(--muted-2); font-size:.62rem; }
.review-card { padding:34px; text-align:center; }
.review-icon { width:54px; height:54px; display:grid; place-items:center; margin:0 auto 20px; border:1px solid rgba(255,212,0,.32); border-radius:50%; color:var(--gold); font-size:1.5rem; box-shadow:0 0 34px rgba(255,212,0,.12); }
.review-card h2 { margin:0; font-family:var(--display); font-size:2rem; letter-spacing:-.045em; }
.review-card > p:not(.micro-label) { max-width:54ch; margin:14px auto 22px; color:var(--muted); line-height:1.6; }
.review-actions { display:flex; justify-content:center; }

.mobile-dock, .mobile-sheet { display:none; }
.error-page { display:grid; place-items:center; min-height:100vh; padding:24px; overflow:auto; }
.error-page main { max-width:650px; text-align:center; }
.error-page img { width:230px; margin:0 auto 54px; }
.error-page h1 { margin:0 0 18px; font-family:var(--display); font-size:clamp(2.8rem,7vw,6rem); line-height:.92; letter-spacing:-.06em; }
.error-page p:not(.micro-label) { margin:0 auto 28px; color:var(--muted); }

@media (max-width: 1180px) {
  .hub-shell { grid-template-columns: 210px minmax(460px,1fr) 270px; }
  .field-stage { padding-inline:20px; }
  .field-stage__topline h2 { font-size:clamp(2rem,3.5vw,3.2rem); }
  .guide-panel { left:8%; right:8%; }
}

@media (max-width: 940px) {
  :root { --header-h: 68px; --dock-h: 72px; }
  body { overflow:auto; padding-bottom:72px; }
  .hub-header { position:sticky; top:0; grid-template-columns:1fr auto; padding:10px 14px; }
  .brand { width:164px; }
  .hub-context { display:none; }
  .icon-action span, .icon-action kbd { display:none; }
  .icon-action { width:40px; height:40px; justify-content:center; padding:0; }
  .hub-shell { height:auto; min-height:calc(100vh - var(--header-h)); display:block; overflow:visible; }
  .system-rail, .inspector { display:none; }
  .field-stage { min-height:calc(100vh - var(--header-h) - 72px); padding:22px 16px 92px; overflow:hidden; }
  .field-stage__topline { display:block; }
  .field-stage__topline h2 { max-width:16ch; font-size:clamp(2.35rem,10.5vw,4.5rem); }
  .field-controls { justify-content:flex-start; margin-top:14px; }
  .field-intro { max-width:48ch; }
  .field-map-wrap { inset:205px -72px 88px; min-height:500px; transform:scale(1.02); }
  .field-node::after { min-width:88px; font-size:.58rem; }
  .field-node[data-size="large"] { --node-size:48px; }
  .field-node[data-size="medium"] { --node-size:38px; }
  .field-node[data-size="small"] { --node-size:29px; }
  .field-centre { width:84px; height:84px; }
  .map-guide { display:none; }
  .field-legend { display:none; }
  .field-list { inset:207px 12px 88px; }
  .signal-list-item { grid-template-columns:1fr; gap:4px; }
  .signal-list-item em { text-align:left; }
  .intelligence-dock { display:none; }
  .mobile-dock {
    position:fixed;
    z-index:45;
    left:12px;
    right:12px;
    bottom:10px;
    height:62px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    padding:5px;
    border:1px solid var(--line-strong);
    border-radius:21px;
    background:rgba(9,13,20,.9);
    backdrop-filter:blur(24px);
    box-shadow:0 18px 60px rgba(0,0,0,.4);
  }
  .mobile-dock button { display:grid; place-items:center; align-content:center; gap:2px; border-radius:16px; background:transparent; color:var(--muted-2); cursor:pointer; }
  .mobile-dock button span { font-size:.95rem; }
  .mobile-dock button small { font-size:.57rem; font-weight:800; }
  .mobile-dock button.is-active { background:rgba(114,230,244,.08); color:var(--cyan); }
  .mobile-sheet { position:fixed; z-index:50; left:10px; right:10px; bottom:82px; max-height:70vh; display:block; overflow:hidden; border:1px solid var(--line-strong); border-radius:26px; background:rgba(9,13,20,.97); backdrop-filter:blur(30px); box-shadow:var(--shadow); animation:panel-up var(--standard) var(--ease) both; }
  .mobile-sheet__bar { height:52px; display:flex; align-items:center; justify-content:space-between; padding:0 16px; border-bottom:1px solid var(--line); color:var(--muted); font-size:.7rem; font-weight:800; text-transform:uppercase; letter-spacing:.1em; }
  .mobile-sheet__bar button { width:34px; height:34px; border-radius:50%; background:rgba(255,255,255,.05); color:var(--muted); font-size:1.15rem; }
  .mobile-sheet__body { max-height:calc(70vh - 52px); overflow:auto; padding:14px; }
  .mobile-sheet__body .system-nav { display:grid; }
  .mobile-sheet__body .inspector__idle { min-height:320px; }
  .mobile-sheet__body .guide-panel { position:static; display:block; padding:0; border:0; box-shadow:none; background:transparent; }
  .mobile-sheet__body .guide-inputs, .mobile-sheet__body .route-result { margin-bottom:10px; }
  .mobile-sheet__body .inspector__content { display:block; }
}

@media (max-width: 560px) {
  .header-actions { gap:5px; }
  .field-stage__topline h2 { font-size:clamp(2.35rem,12vw,3.45rem); }
  .field-map-wrap { inset:224px -116px 100px; }
  .field-intro { font-size:.82rem; line-height:1.48; }
  .field-legend { font-size:.55rem; }
  .field-node::after { opacity:.64; }
  .command-dialog { border-radius:24px; }
  .command-input-wrap { grid-template-columns:22px 1fr; }
  .command-input-wrap > button { display:none; }
  .command-result { grid-template-columns:30px 1fr; }
  .command-result em { display:none; }
  .review-card { padding:26px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
  .ambient__glow, .field-node::before, .field-centre__core, .guide-mark::after { animation:none !important; }
}


/* Stage 6 Omega additions */
.system-link__glyph--ai { color:#55d5c6; }
.system-link__glyph--startup { color:#ffcf73; }
.system-link__glyph--ecosystem { color:#7ce3a7; }
.field-node[data-system="ai"] { --node-color:#55d5c6; }
.field-node[data-system="startup"] { --node-color:#ffcf73; }
.field-node[data-system="ecosystem"] { --node-color:#7ce3a7; }
.legend-dot--ai{background:#55d5c6}.legend-dot--startup{background:#ffcf73}.legend-dot--ecosystem{background:#7ce3a7}
.brand { display:flex; align-items:center; gap:12px; color:var(--ink); text-decoration:none; }
.brand img { width:148px; }
.brand-context { padding-left:12px; border-left:1px solid var(--line); color:var(--muted); font-size:.65rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.header-link { min-height:42px; display:inline-flex; align-items:center; padding:9px 12px; border:1px solid transparent; border-radius:999px; color:var(--muted); font-size:.75rem; font-weight:750; text-decoration:none; }
.header-link:hover { border-color:var(--line); color:var(--ink); background:rgba(255,255,255,.03); }
.hub-intent { position:relative; z-index:18; min-height:44px; display:flex; align-items:center; justify-content:center; gap:10px; padding:8px 18px; border-bottom:1px solid var(--line); background:rgba(10,15,23,.9); color:var(--muted); font-size:.74rem; }
.hub-intent strong { color:var(--ink); }
.hub-intent a { color:var(--cyan); font-weight:750; }
.system-pages { margin-top:18px; padding-top:16px; border-top:1px solid var(--line); }
.system-pages > span { display:block; padding:0 9px 8px; color:var(--muted-2); font-size:.61rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.system-pages__links { display:grid; grid-template-columns:1fr 1fr; gap:5px; }
.system-pages__links a { min-height:34px; display:flex; align-items:center; padding:7px 9px; border-radius:10px; color:var(--muted); font-size:.66rem; font-weight:700; text-decoration:none; }
.system-pages__links a:hover { background:rgba(255,255,255,.04); color:var(--ink); }
.field-stage__topline h1 { max-width:19ch; margin:0; font-family:var(--display); font-size:clamp(2rem,3.2vw,4.2rem); line-height:.92; letter-spacing:-.055em; text-wrap:balance; }
.system-rail .rail-heading h2 { max-width:15ch; margin:0; font-family:var(--display); font-size:clamp(1.1rem,1.55vw,1.55rem); line-height:1.04; letter-spacing:-.035em; }
.route-page { overflow:auto; padding-bottom:0; background:var(--canvas); }
.route-page .ambient { z-index:0; }
.route-page .hub-header { position:sticky; top:0; }
.route-main { position:relative; z-index:2; }
.route-shell { width:min(calc(100% - 2rem),1220px); margin-inline:auto; }
.route-nav { position:sticky; top:var(--header-h); z-index:12; overflow-x:auto; display:flex; gap:5px; padding:10px max(1rem,calc((100vw - 1220px)/2)); border-bottom:1px solid var(--line); background:rgba(6,8,12,.88); backdrop-filter:blur(20px); scrollbar-width:none; }
.route-nav::-webkit-scrollbar { display:none; }
.route-nav a { flex:0 0 auto; min-height:38px; display:inline-flex; align-items:center; padding:8px 11px; border-radius:999px; color:var(--muted); font-size:.7rem; font-weight:750; text-decoration:none; }
.route-nav a:hover,.route-nav a[aria-current="page"] { color:var(--ink); background:rgba(114,230,244,.08); }
.route-hero { min-height:72vh; display:grid; align-items:end; padding:clamp(6rem,12vw,10rem) 0 clamp(4rem,8vw,7rem); border-bottom:1px solid var(--line); }
.route-hero__grid { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(280px,.65fr); gap:clamp(2rem,8vw,8rem); align-items:end; }
.route-hero h1 { max-width:11ch; margin:.7rem 0 1.4rem; font-family:var(--display); font-size:clamp(3.5rem,8vw,8.2rem); line-height:.84; letter-spacing:-.07em; text-wrap:balance; }
.route-hero__lede { max-width:56ch; color:var(--muted); font-size:clamp(1rem,1.6vw,1.25rem); line-height:1.55; }
.route-hero__actions { display:flex; flex-wrap:wrap; gap:9px; margin-top:2rem; }
.route-primary,.route-secondary { min-height:48px; display:inline-flex; align-items:center; justify-content:center; padding:12px 16px; border-radius:999px; font-weight:800; text-decoration:none; }
.route-primary { background:var(--cyan); color:#061015; }
.route-secondary { border:1px solid var(--line-strong); color:var(--ink); }
.route-hero__instrument { min-height:350px; display:grid; align-content:space-between; padding:24px; border:1px solid var(--line); border-radius:36px; background:linear-gradient(145deg,rgba(114,230,244,.06),rgba(154,125,255,.04)); box-shadow:var(--shadow); }
.route-hero__instrument::before { content:""; width:120px; aspect-ratio:1; justify-self:end; border:1px solid var(--line-strong); border-radius:50%; box-shadow:0 0 0 28px rgba(91,130,255,.035),0 0 0 58px rgba(154,125,255,.02); }
.route-hero__instrument span { color:var(--cyan); font-size:.64rem; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.route-hero__instrument strong { display:block; margin-top:8px; font-family:var(--display); font-size:2rem; line-height:1; letter-spacing:-.04em; }
.route-hero__instrument p { color:var(--muted); font-size:.78rem; line-height:1.5; }
.route-section { padding:clamp(5rem,10vw,9rem) 0; border-bottom:1px solid var(--line); }
.route-section__head { display:grid; grid-template-columns:minmax(0,1fr) minmax(260px,.45fr); gap:clamp(2rem,8vw,7rem); align-items:end; margin-bottom:clamp(2.5rem,6vw,5rem); }
.route-section__head h2 { max-width:13ch; margin:.7rem 0 0; font-family:var(--display); font-size:clamp(2.4rem,5vw,5.4rem); line-height:.9; letter-spacing:-.055em; }
.route-section__head > p { color:var(--muted); line-height:1.6; }
.route-steps { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.route-step { min-height:280px; display:flex; flex-direction:column; padding:22px; border:1px solid var(--line); border-radius:26px; background:rgba(255,255,255,.025); }
.route-step > span { color:var(--cyan); font-size:.64rem; font-weight:800; letter-spacing:.12em; }
.route-step h3 { margin:auto 0 12px; font-family:var(--display); font-size:1.8rem; letter-spacing:-.04em; }
.route-step p { margin:0; color:var(--muted); font-size:.82rem; line-height:1.55; }
.signal-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.signal-card { position:relative; min-height:290px; display:flex; flex-direction:column; padding:24px; border:1px solid var(--line); border-radius:28px; background:linear-gradient(150deg,rgba(255,255,255,.035),rgba(255,255,255,.012)); overflow:hidden; }
.signal-card::after { content:""; position:absolute; width:160px; aspect-ratio:1; right:-70px; top:-80px; border:1px solid var(--line); border-radius:50%; box-shadow:0 0 45px rgba(91,130,255,.08) inset; }
.signal-card__type { color:var(--cyan); font-size:.64rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.signal-card h3 { max-width:18ch; margin:1.2rem 0 .8rem; font-family:var(--display); font-size:2rem; line-height:1; letter-spacing:-.04em; }
.signal-card p { color:var(--muted); line-height:1.55; }
.signal-card__meta { margin-top:auto; display:flex; justify-content:space-between; gap:1rem; padding-top:1.2rem; border-top:1px solid var(--line); color:var(--muted-2); font-size:.68rem; }
.route-decision { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:14px; }
.decision-card { padding:28px; border:1px solid var(--line); border-radius:28px; background:rgba(255,255,255,.025); }
.decision-card h3 { margin:0 0 16px; font-family:var(--display); font-size:2rem; letter-spacing:-.04em; }
.decision-card p,.decision-card li { color:var(--muted); line-height:1.58; }
.decision-card ul { padding-left:18px; }
.route-related { display:flex; flex-wrap:wrap; gap:8px; }
.route-related a { min-height:43px; display:inline-flex; align-items:center; padding:10px 13px; border:1px solid var(--line); border-radius:999px; color:var(--ink); font-size:.74rem; font-weight:750; text-decoration:none; }
.route-footer { padding:34px 0 110px; }
.route-footer__inner { display:flex; justify-content:space-between; gap:2rem; color:var(--muted-2); font-size:.72rem; }
.route-footer a { color:var(--muted); }
.route-notice { display:flex; gap:10px; align-items:flex-start; margin-top:18px; padding:14px 16px; border:1px solid rgba(255,212,0,.18); border-radius:16px; background:rgba(255,212,0,.04); color:var(--muted); font-size:.74rem; line-height:1.5; }
.route-notice::before { content:""; flex:0 0 7px; width:7px; height:7px; margin-top:5px; border-radius:50%; background:var(--gold); box-shadow:0 0 12px rgba(255,212,0,.5); }
.hub-mobile-menu-button { display:none; }
.hub-mobile-menu { display:none; }
@media (max-width:940px){
  .header-link { display:none; }
  .brand-context { display:none; }
  .hub-intent { justify-content:flex-start; overflow:auto; white-space:nowrap; }
  .field-stage__topline h1 { max-width:16ch; font-size:clamp(2.35rem,10.5vw,4.5rem); }
  .system-pages { display:none; }
  .route-page { padding-bottom:0; }
  .route-page .hub-header { grid-template-columns:1fr auto; }
  .route-nav { top:var(--header-h); }
  .route-hero { min-height:auto; padding-top:6rem; }
  .route-hero__grid,.route-section__head,.route-decision { grid-template-columns:1fr; }
  .route-hero h1 { font-size:clamp(3.2rem,16vw,5.8rem); }
  .route-hero__instrument { min-height:270px; }
  .route-steps { grid-template-columns:1fr; }
  .route-step { min-height:220px; }
  .signal-cards { grid-template-columns:1fr; }
  .route-footer__inner { display:grid; }
}
@media (max-width:560px){
  .route-shell { width:min(calc(100% - 1.25rem),1220px); }
  .route-nav { padding-inline:.65rem; }
  .route-hero h1 { max-width:10ch; }
  .route-hero__actions a { width:100%; }
}
.icon-action { text-decoration:none; color:var(--ink); }

/* The desktop route composer is intentionally compact; the mobile composer remains touch-sized. */
#guide-panel .compose-action { min-height:20px; height:20px; padding:0 12px; border-radius:20px; background:#72e6f4; color:#090d14; font-size:.68rem; line-height:1; }
#guide-panel .compose-action:hover { box-shadow:0 8px 22px rgba(114,230,244,.24); }
