:root {
  --bg: #07080c;
  --bg-2: #0c0e15;
  --panel: rgba(14, 16, 24, .92);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --ink: #f2f3f7;
  --ink-2: #b9bdc9;
  --ink-3: #7c8190;
  --lime: #D9EE50;
  --lime-2: #b9cf2a;
  --cyan: #5CE1E6;
  --violet: #9B8CFF;
  --grey: #6e7383;
  --red: #FD5254;
  --shipped: var(--lime);
  --active: var(--cyan);
  --design: var(--violet);
  --planned: #8b90a0;
  --support: #55596a;
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --hud-h: 64px;
  --foot-h: 40px;
  --panel-w: 520px;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
kbd { font-family: var(--font-mono); font-size: 11px; padding: 1px 5px; border: 1px solid var(--line-2); border-radius: 4px; }

#stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* ── HUD ─────────────────────────────────── */
.hud {
  position: fixed; top: 0; left: 0; right: 0; height: var(--hud-h); z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 20px;
  background: linear-gradient(180deg, rgba(7,8,12,.95), rgba(7,8,12,.6) 70%, transparent);
}
.hud-left { display: flex; align-items: center; }
.hud-right { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 34px; height: 34px; color: var(--lime); filter: drop-shadow(0 0 10px rgba(217,238,80,.45)); }
.brand-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand-title span { color: var(--ink-3); font-weight: 500; }
.brand-sub { font-size: 12px; color: var(--ink-3); margin-top: -2px; }

.hud-center { display: flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(12,14,21,.8); backdrop-filter: blur(8px); }
.seg { border: 0; background: transparent; color: var(--ink-2); padding: 7px 16px; border-radius: 999px; font-weight: 500; font-size: 13px; transition: .2s; }
.seg.on { background: var(--ink); color: #0b0c10; }
.seg:not(.on):hover { color: var(--ink); }

.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: var(--ink); color: #0b0c10; border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 13px; text-decoration: none; transition: .2s; }
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: rgba(12,14,21,.8); color: var(--ink-2); backdrop-filter: blur(8px); }
.btn.ghost:hover { color: var(--ink); border-color: rgba(255,255,255,.3); }
.ic { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#path-play .ic { fill: currentColor; stroke: none; }

.legend { display: flex; gap: 12px; font-size: 12px; color: var(--ink-2); }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg::before { content: ''; width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.lg-shipped::before { background: var(--shipped); color: var(--shipped); }
.lg-active::before { background: var(--active); color: var(--active); }
.lg-design::before { background: var(--design); color: var(--design); }
.lg-planned::before { background: transparent; border: 1.5px solid var(--planned); box-shadow: none; }

/* ── Stage / map ─────────────────────────── */
#stage { position: fixed; inset: 0; z-index: 5; }
#viewport { position: absolute; inset: 0; cursor: grab; overflow: hidden; }
#viewport.dragging { cursor: grabbing; }
#map { width: 100%; height: 100%; display: block; }

/* act columns */
.act-col rect { fill: rgba(255,255,255,.012); stroke: var(--line); }
.act-col.lit rect { fill: rgba(217,238,80,.035); stroke: rgba(217,238,80,.25); }
.act-key { font-family: var(--font-display); font-weight: 700; font-size: 56px; fill: rgba(255,255,255,.06); letter-spacing: -.02em; }
.act-name { font-family: var(--font-display); font-weight: 600; font-size: 20px; fill: var(--ink); }
.act-tag { font-family: var(--font-mono); font-size: 11px; fill: var(--ink-3); letter-spacing: .12em; text-transform: uppercase; }
.act-blurb { font-size: 13px; fill: var(--ink-3); }
.act-col.lit .act-key { fill: rgba(217,238,80,.14); }
.act-col.lit .act-tag { fill: var(--lime); }
.lane-label { font-family: var(--font-mono); font-size: 11px; fill: var(--ink-3); letter-spacing: .12em; text-transform: uppercase; }
.lane-line { stroke: var(--line); stroke-dasharray: 2 8; }

/* edges */
.edge { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1.7; transition: stroke .25s, stroke-width .25s, opacity .25s; }
.edge.alt { stroke-dasharray: 5 6; }
.edge-hit { fill: none; stroke: transparent; stroke-width: 18; cursor: help; }
.edge.up { stroke: var(--cyan); stroke-width: 2.4; filter: url(#glow); }
.edge.down { stroke: var(--lime); stroke-width: 2.4; filter: url(#glow); }
.edge.dim { opacity: .12; }
.ally-edge { fill: none; stroke: rgba(255,255,255,.2); stroke-width: 1.3; stroke-dasharray: 3 6; }
.ally-edge.dim { opacity: .1; }
.particle { fill: var(--lime); filter: url(#glow); }
.particle.up { fill: var(--cyan); }

/* nodes */
.node { cursor: pointer; transition: opacity .3s; }
.node.dim { opacity: .18; }
.node .card { fill: rgba(16,18,27,.92); stroke: rgba(255,255,255,.14); stroke-width: 1.2; transition: .25s; }
.node .card-inner { fill: none; stroke: rgba(255,255,255,.05); }
.node:hover .card, .node.selected .card { stroke: rgba(255,255,255,.55); }
.node .ring { fill: none; stroke-width: 1.5; opacity: 0; transition: .25s; }
.node.selected .ring, .node.hot .ring { opacity: 1; }
.node .icon-bg { fill: rgba(255,255,255,.06); }
.node .icon-glyph { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.node .name { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; fill: var(--ink); }
.node .status { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.node .lead { font-size: 11px; fill: var(--ink-3); }
.node .pip { stroke-width: 1.2; }
.node .pip.done { fill: currentColor; stroke: currentColor; }
.node .pip.todo { fill: transparent; stroke: currentColor; opacity: .55; }
.node .pip.lit { fill: var(--lime); stroke: var(--lime); opacity: 1; filter: url(#glow); }
.node .pip.part { fill: url(#partial); }

.node.s-shipped { color: var(--shipped); }
.node.s-active { color: var(--active); }
.node.s-design { color: var(--design); }
.node.s-planned { color: var(--planned); }
.node.s-support { color: var(--support); }
.node.s-shipped .card { stroke: rgba(217,238,80,.35); }
.node.s-active .card { stroke: rgba(92,225,230,.35); }
.node.s-design .card { stroke: rgba(155,140,255,.35); }
.node.s-planned .card { stroke-dasharray: 4 4; }
.node.s-support .card { stroke-dasharray: 2 4; }
.node.s-support .name { fill: var(--ink-2); }
.node .ring { stroke: currentColor; }

.node.final .card { fill: rgba(22,25,18,.95); stroke: var(--lime); stroke-width: 1.6; }
.node.final .name { font-size: 18px; }
.node.final .halo { animation: breathe 4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes breathe { 0%,100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
.node.s-active .icon-bg { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: .5; } 50% { opacity: 1; } }

.ally { cursor: pointer; transition: opacity .3s; }
.ally.dim { opacity: .15; }
.ally .dia { fill: rgba(16,18,27,.92); stroke: rgba(255,255,255,.2); }
.ally.a-active .dia { stroke: var(--cyan); }
.ally.a-shipped .dia { stroke: var(--lime); }
.ally .name { font-family: var(--font-display); font-weight: 600; font-size: 12px; fill: var(--ink-2); }
.ally .team { font-family: var(--font-mono); font-size: 10px; fill: var(--ink-3); }
.ally:hover .dia { stroke: var(--ink); }

/* edge tooltip */
.tip { position: fixed; z-index: 30; max-width: 320px; padding: 10px 12px; border-radius: 10px; background: rgba(14,16,24,.96); border: 1px solid var(--line-2); box-shadow: 0 10px 40px rgba(0,0,0,.5); font-size: 13px; color: var(--ink-2); pointer-events: none; }
.tip b { color: var(--ink); display: block; font-size: 12px; font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 3px; }
.tip[hidden] { display: none; }

/* ── Panel ─────────────────────────────────── */
.panel {
  position: fixed; top: var(--hud-h); right: 0; bottom: var(--foot-h); width: var(--panel-w); z-index: 25;
  background: var(--panel); border-left: 1px solid var(--line-2); backdrop-filter: blur(14px);
  transform: translateX(0); transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .3s;
  box-shadow: -30px 0 80px rgba(0,0,0,.45);
}
.panel[hidden] { display: block; transform: translateX(105%); opacity: 0; pointer-events: none; }
.panel-scroll { height: 100%; overflow-y: auto; padding: 22px 24px 32px; scrollbar-width: thin; }
.panel-close { position: absolute; top: 12px; right: 14px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--ink-2); font-size: 20px; line-height: 1; }
.panel-close:hover { color: var(--ink); background: rgba(255,255,255,.1); }
.panel-head { display: flex; gap: 14px; align-items: flex-start; padding-right: 32px; }
.panel-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); flex: none; }
.panel-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.panel h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin: 2px 0 6px; letter-spacing: -.01em; line-height: 1.2; }
.panel-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--ink-2); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.badge.s-shipped { color: var(--shipped); } .badge.s-active { color: var(--active); } .badge.s-design { color: var(--design); } .badge.s-planned { color: var(--planned); } .badge.s-support { color: var(--support); }
.badge.plain::before { display: none; }

.panel-summary { font-size: 14.5px; color: var(--ink); margin: 18px 0 12px; }
.panel-why { margin: 0 0 6px; padding: 12px 14px; border-left: 2px solid var(--lime); background: rgba(217,238,80,.05); color: var(--ink-2); font-size: 13.5px; border-radius: 0 10px 10px 0; }
.panel-sec { margin-top: 22px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sec-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; display: flex; justify-content: space-between; gap: 8px; }
.sec-hint { text-transform: none; letter-spacing: 0; color: var(--ink-3); font-family: var(--font-body); }

.ms-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ms { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.02); transition: .2s; }
.ms.lit { border-color: rgba(217,238,80,.5); background: rgba(217,238,80,.06); }
.ms-rank { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; border: 1px solid var(--line-2); color: var(--ink-2); }
.ms.done .ms-rank { background: var(--lime); color: #0b0c10; border-color: var(--lime); }
.ms.done .ms-rank svg { width: 14px; height: 14px; stroke: #0b0c10; stroke-width: 2.6; fill: none; }
.ms-name { font-size: 13px; color: var(--ink); }
.ms.done .ms-name { color: var(--ink-2); }
.ms-act { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; color: var(--ink-3); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line); white-space: nowrap; }
.ms-bar { grid-column: 2 / 4; height: 3px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: -2px; }
.ms-bar i { display: block; height: 100%; background: var(--cyan); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); font-size: 12px; color: var(--ink-2); cursor: pointer; transition: .15s; }
.chip:hover { color: var(--ink); border-color: rgba(255,255,255,.4); }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.s-shipped { color: var(--shipped); } .chip.s-active { color: var(--active); } .chip.s-design { color: var(--design); } .chip.s-planned { color: var(--planned); } .chip.s-support { color: var(--support); }
.chip.ally { color: var(--ink-2); } .chip.ally::before { border-radius: 1px; transform: rotate(45deg); }
.chips .none { color: var(--ink-3); font-size: 12px; }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shot { border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); background: #fff; cursor: zoom-in; transition: .2s; position: relative; }
.shot:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.5); }
.shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 10px; font-size: 11px; color: var(--ink); background: linear-gradient(transparent, rgba(7,8,12,.9)); }
.gallery .none { grid-column: 1/-1; color: var(--ink-3); font-size: 12px; }

.links { display: grid; gap: 6px; }
.lnk { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); text-decoration: none; color: var(--ink); font-size: 13px; transition: .15s; }
.lnk:hover { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.4); }
.lnk small { color: var(--ink-3); font-family: var(--font-mono); font-size: 11px; }
.lnk .ic { width: 14px; height: 14px; color: var(--ink-3); }

/* ── Path drawer ─────────────────────────── */
.path {
  position: fixed; left: 20px; right: 20px; bottom: calc(var(--foot-h) + 14px); z-index: 24;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; backdrop-filter: blur(14px);
  padding: 18px 22px 16px; box-shadow: 0 30px 80px rgba(0,0,0,.5);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .3s;
}
.path[hidden] { display: block; transform: translateY(40px); opacity: 0; pointer-events: none; }
body.panel-open .path { right: calc(var(--panel-w) + 20px); }
.panel-sec + .panel-sec { margin-top: 18px; }
.path-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.path h2 { font-family: var(--font-display); font-size: 22px; margin: 2px 0 4px; letter-spacing: -.01em; }
.path p { margin: 0; color: var(--ink-2); max-width: 720px; }
.path-controls { display: flex; gap: 8px; flex: none; }
.path-acts { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 0; margin: 14px 0 12px; }
.path-acts li { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; transition: .2s; display: flex; gap: 10px; align-items: center; }
.path-acts li .k { font-family: var(--font-display); font-weight: 700; color: var(--ink-3); }
.path-acts li .n { font-size: 13px; color: var(--ink-2); }
.path-acts li .c { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.path-acts li:hover { border-color: rgba(255,255,255,.3); }
.path-acts li.on { border-color: var(--lime); background: rgba(217,238,80,.07); }
.path-acts li.on .k, .path-acts li.on .n { color: var(--ink); }
.path-acts li.past { opacity: .6; }
.path-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; max-height: 26vh; overflow-y: auto; scrollbar-width: thin; }
.step { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.02); cursor: pointer; opacity: 0; transform: translateY(8px); animation: rise .45s forwards; transition: border-color .2s; }
.step:hover { border-color: rgba(255,255,255,.35); }
.step .who { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); display: flex; gap: 8px; align-items: center; }
.step .who i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.step .ms-n { font-size: 12.5px; color: var(--ink-2); margin: 3px 0 2px; }
.step .unl { font-size: 13px; color: var(--ink); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ── Lightbox ─────────────────────────────── */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(4,5,8,.92); display: grid; place-items: center; padding: 40px 80px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: grid; gap: 10px; justify-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); border-radius: 10px; box-shadow: 0 30px 100px rgba(0,0,0,.6); background: #fff; }
.lightbox figcaption { color: var(--ink-2); font-size: 13px; }
.lb-close, .lb-nav { position: absolute; border: 1px solid var(--line-2); background: rgba(14,16,24,.9); color: var(--ink); width: 44px; height: 44px; border-radius: 50%; font-size: 26px; line-height: 1; }
.lb-close { top: 20px; right: 20px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 20px; } .lb-next { right: 20px; }

/* ── Footer ─────────────────────────────── */
.foot { position: fixed; left: 0; right: 0; bottom: 0; height: var(--foot-h); z-index: 20; display: flex; align-items: center; gap: 10px; padding: 0 20px; font-size: 12px; color: var(--ink-3); background: linear-gradient(0deg, rgba(7,8,12,.95), transparent); }
.foot .dot { opacity: .5; } .foot .spacer { flex: 1; }
.kbd-hint { display: flex; gap: 6px; align-items: center; }

/* ── Intro ─────────────────────────────── */
body.intro #nodes-layer, body.intro #edges-layer, body.intro #allies-layer, body.intro #ally-edges-layer { opacity: 0; }
.reveal { animation: reveal .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hud { grid-template-columns: 1fr auto; }
  .hud-right .legend { display: none; }
  .brand-sub { display: none; }
  .panel { width: 100vw; }
  .path-acts { grid-template-columns: repeat(2, 1fr); }
  .kbd-hint { display: none; }
}

/* ── milestone-node additions ─────────────── */
.row-head { cursor: pointer; }
.row-head .row-card { fill: rgba(16,18,27,.9); stroke: rgba(255,255,255,.12); transition: .2s; }
.row-head:hover .row-card, .row-head.selected .row-card { stroke: rgba(255,255,255,.5); }
.row-head .icon-bg { fill: rgba(255,255,255,.06); }
.row-head .icon-glyph { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.row-head .row-name { font-family: var(--font-display); font-weight: 600; font-size: 14px; fill: var(--ink); }
.row-head .row-meta { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; fill: var(--ink-3); }
.row-head.s-shipped { color: var(--shipped); } .row-head.s-design { color: var(--design); } .row-head.s-active { color: var(--active); } .row-head.s-planned { color: var(--planned); }
.row-head.final { color: var(--lime); }
.row-head.final .row-card { stroke: rgba(217,238,80,.45); }

.node .rank-bg { fill: rgba(255,255,255,.06); stroke: currentColor; stroke-opacity: .5; stroke-width: 1; }
.node .rank { font-family: var(--font-mono); font-size: 13px; font-weight: 500; fill: var(--ink); }
.node .rank-check { fill: none; stroke: #0b0c10; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.node.s-shipped .rank-bg { fill: var(--lime); stroke: var(--lime); }
.node .meta { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; fill: var(--ink-3); }
.node .bar-bg { fill: rgba(255,255,255,.08); }
.node .bar { fill: var(--cyan); }
.node.past { opacity: .55; }
.node.past .card { stroke: rgba(217,238,80,.3); }
.node.final .card { fill: rgba(22,25,18,.96); stroke: var(--lime); stroke-width: 1.8; }
.node.final .name { font-size: 15px; }
.node.final .rank-bg { fill: rgba(217,238,80,.15); stroke: var(--lime); }
.node.final .rank { fill: var(--lime); }
.edge.intra { stroke: rgba(255,255,255,.22); }
.edge.cross { stroke: rgba(255,255,255,.28); }
.edge.found { stroke: rgba(217,238,80,.16); }
body.focus .edge:not(.up):not(.down):not(.past) { opacity: .07; }
.edge.past { stroke: rgba(217,238,80,.35); opacity: .6; }
.ally-glyph { fill: none; stroke: #b9bdc9; stroke-width: 1.6; }

.ms { grid-template-columns: 26px 1fr auto; }
.ms { cursor: pointer; }
.ms-blurb { grid-column: 1 / 4; display: none; color: var(--ink-2); font-size: 13px; padding-top: 4px; }
.ms.open .ms-blurb { display: block; }
.ms.lit { border-color: rgba(217,238,80,.55); background: rgba(217,238,80,.07); box-shadow: 0 0 0 1px rgba(217,238,80,.15), 0 0 30px rgba(217,238,80,.08); }
.ms-deps { grid-column: 1 / 4; display: grid; gap: 6px; padding-top: 6px; }
.dep-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dep-l { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); width: 56px; }
.who-n { color: var(--ink-3); }
.path-steps { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.path-acts li .c { font-size: 10px; }


/* ── panel v2: project + milestone views ─────────── */
.row-pip { fill: transparent; stroke: currentColor; stroke-width: 1.1; opacity: .6; }
.row-pip.done { fill: currentColor; opacity: 1; }
.node .has-shots { fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.crumb { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-right: 36px; margin-bottom: 14px; }
.back { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--ink-2); border-radius: 999px; padding: 6px 12px 6px 10px; font-size: 13px; font-weight: 500; transition: .15s; }
.back:hover { color: var(--ink); border-color: rgba(255,255,255,.4); }
.back-arrow { color: var(--ink-3); }
.back-icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; display: block; }
.crumb-n { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.strip { display: flex; align-items: center; margin: 4px 0 16px; }
.strip-pill { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--ink-2); font-family: var(--font-mono); font-size: 12px; display: grid; place-items: center; transition: .15s; flex: none; }
.strip-pill svg { width: 14px; height: 14px; fill: none; stroke: #0b0c10; stroke-width: 2.6; }
.strip-pill.done { background: var(--lime); border-color: var(--lime); color: #0b0c10; }
.strip-pill.part { border-color: var(--cyan); color: var(--cyan); }
.strip-pill.cur { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--lime); color: var(--ink); border-color: var(--lime); }
.strip-pill:hover { border-color: rgba(255,255,255,.5); }
.strip-link { flex: 1; height: 1px; background: rgba(255,255,255,.14); min-width: 10px; }
.strip-link.done { background: rgba(217,238,80,.6); }
.ms-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin: 2px 0 8px; letter-spacing: -.01em; line-height: 1.15; }
.hero { margin: 16px 0 8px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: #fff; cursor: zoom-in; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.45); transition: .2s; }
.hero:hover { border-color: rgba(255,255,255,.5); transform: translateY(-1px); }
.hero img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.hero figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; font-size: 12.5px; color: var(--ink); background: linear-gradient(transparent, rgba(7,8,12,.92)); display: flex; gap: 8px; align-items: baseline; }
.hero-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); flex: none; }
.thumbs { display: flex; gap: 8px; margin-bottom: 6px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.thumb { flex: none; width: 84px; height: 54px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-2); background: #fff; padding: 0; opacity: .7; transition: .15s; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.thumb:hover, .thumb.cur { opacity: 1; border-color: var(--lime); }
.no-shot { display: flex; align-items: center; gap: 10px; margin: 16px 0 6px; padding: 14px; border-radius: 12px; border: 1px dashed var(--line-2); color: var(--ink-3); font-size: 13px; }
.no-shot .ic { width: 16px; height: 16px; }
.why-l { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); margin-bottom: 4px; }
.ms { grid-template-columns: 26px 1fr auto; align-items: start; }
.ms-body { display: grid; gap: 2px; min-width: 0; }
.ms-sub { font-size: 12px; color: var(--ink-3); line-height: 1.4; }
.ms-right { display: grid; gap: 6px; justify-items: end; }
.ms-thumb { width: 64px; height: 40px; object-fit: cover; object-position: top; border-radius: 6px; border: 1px solid var(--line-2); background: #fff; }
.ms:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.04); }
.chip small { color: var(--ink-3); font-size: 11px; margin-left: 2px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 22px; }
.ms-nav .btn { max-width: 48%; font-size: 12px; font-weight: 500; }
.ms-nav .btn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }
