/* ═════════ Mission Atlas (js/views/milestone_atlas.js + atlas_map.js) ═════════ Ghost tokens only: near-black surfaces, one acid accent, thin borders, chamfered corners, status never by colour alone. */
.atl > * { min-width: 0; } .atl { max-width: 100%; --c-done: var(--ok); --c-on_track: var(--hit); --c-at_risk: var(--s5); --c-late: var(--alert); --c-blocked: var(--alert); --c-not_started: var(--ink-2); --c-on_hold: var(--ink-3); --c-cancelled: var(--ink-3); --c-untracked: var(--ink-3); display: grid; gap: 12px; min-width: 0; }
.atl [data-s='done'] { --sc: var(--c-done); } .atl [data-s='on_track'] { --sc: var(--c-on_track); } .atl [data-s='at_risk'] { --sc: var(--c-at_risk); } .atl [data-s='late'] { --sc: var(--c-late); } .atl [data-s='blocked'] { --sc: var(--c-blocked); }
.atl [data-s='not_started'] { --sc: var(--c-not_started); } .atl [data-s='on_hold'] { --sc: var(--c-on_hold); } .atl [data-s='cancelled'] { --sc: var(--c-cancelled); } .atl [data-s='untracked'] { --sc: var(--c-untracked); }
.atl .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.atl .dim, .atl small.dim { color: var(--ink-3); } .atl .is-bad { color: var(--alert); } .atl .is-warn { color: var(--s5); }
.atl button, .atl a { font-family: inherit; } .atl button:focus-visible, .atl a:focus-visible, .atl input:focus-visible, .atl select:focus-visible, .atl textarea:focus-visible, .atl [tabindex]:focus-visible { outline: 2px solid var(--hit); outline-offset: 2px; }

/* command strip */
.atl-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 10px 14px; background: var(--bg-2); border: 1px solid var(--line); position: relative; z-index: 6; }
.atl-brand p { margin: 0; font: 500 10px var(--font-mono); letter-spacing: .16em; color: var(--ink-3); } .atl-brand h1 { margin: 2px 0 0; font: 800 clamp(18px, 2.2vw, 26px)/1 var(--font-display); letter-spacing: -.01em; text-transform: uppercase; }
.atl-metrics { display: flex; flex-wrap: wrap; gap: 0; align-items: stretch; margin-right: auto; }
.atl-m { appearance: none; background: transparent; border: 0; border-left: 1px solid var(--line); color: var(--ink); display: grid; gap: 1px; padding: 2px 16px; text-align: left; cursor: pointer; min-width: 64px; }
.atl-m b { font: 700 20px/1 var(--font-display); } .atl-m span { font: 500 10px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.atl-m.is-warn b { color: var(--s5); } .atl-m.is-bad b { color: var(--alert); } .atl-m:disabled { cursor: default; opacity: .55; } .atl-m:not(:disabled):hover, .atl-m.is-on { background: var(--bg-3); } .atl-m.is-on { box-shadow: inset 0 -2px 0 var(--hit); }
.atl-m--next b { font-size: 15px; } .atl-m--next span { white-space: nowrap; }
.atl-strip.is-min { padding-block: 6px; } .atl-strip.is-min .atl-brand p { display: none; } .atl-strip.is-min .atl-brand h1 { font-size: 15px; }
.atl-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.atl-btn { appearance: none; background: transparent; color: var(--ink); border: 1px solid var(--line-strong); padding: 7px 12px; font: 600 12px var(--font-body); letter-spacing: .02em; cursor: pointer; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; min-height: 34px; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); }
.atl-btn:hover:not(:disabled) { background: var(--bg-3); } .atl-btn:disabled { opacity: .45; cursor: default; } .atl-btn.is-on { border-color: var(--hit); color: var(--hit); } .atl-btn b { font-family: var(--font-mono); color: var(--hit); }
.atl-btn--solid { background: var(--hit); color: var(--on-hit); border-color: var(--hit); } .atl-btn--solid:hover:not(:disabled) { background: var(--hit); filter: brightness(1.08); } .atl-btn--danger { color: var(--alert); border-color: color-mix(in srgb, var(--alert) 55%, transparent); }
.atl-ico { appearance: none; background: transparent; color: var(--ink-2); border: 1px solid var(--line); width: 34px; height: 34px; cursor: pointer; font-size: 16px; line-height: 1; } .atl-ico:hover { color: var(--ink); background: var(--bg-3); }
.atl-search { position: relative; display: block; } .atl-search input { width: 190px; background: var(--bg); border: 1px solid var(--line-strong); color: var(--ink); padding: 7px 10px; min-height: 34px; font: 500 12px var(--font-body); }
.atl-found { position: absolute; top: calc(100% + 4px); left: 0; z-index: 30; min-width: 280px; margin: 0; padding: 4px; list-style: none; background: var(--bg-2); border: 1px solid var(--line-strong); }
.atl-found button { appearance: none; width: 100%; background: transparent; border: 0; color: var(--ink); text-align: left; padding: 8px 10px; cursor: pointer; display: grid; gap: 1px; } .atl-found button:hover, .atl-found button:focus-visible { background: var(--bg-3); } .atl-found small { color: var(--ink-3); font: 11px var(--font-mono); }
.atl-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); } .atl-tab { padding: 9px 18px; font: 600 12px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; } .atl-tab:hover { color: var(--ink); } .atl-tab.is-on { color: var(--hit); border-bottom-color: var(--hit); }

/* popover */
.atl-pop { position: absolute; right: 14px; top: 64px; z-index: 40; width: min(360px, calc(100vw - 28px)); background: var(--bg-2); border: 1px solid var(--line-strong); padding: 14px; display: grid; gap: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.35); }
.atl-pop header { display: flex; justify-content: space-between; align-items: center; } .atl-pop h2 { margin: 0; font: 700 13px var(--font-display); text-transform: uppercase; }
.atl { position: relative; } .atl-clear { color: var(--hit); font-size: 12px; }
.atl-f { display: grid; gap: 4px; min-width: 0; } .atl-f > span { font: 500 10px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.atl-f input, .atl-f select, .atl-f textarea, .mi-fl select, .mi-note textarea { width: 100%; background: var(--bg); border: 1px solid var(--line-strong); color: var(--ink); padding: 8px 10px; font: 500 13px var(--font-body); min-height: 36px; border-radius: 0; } .atl-f textarea, .mi-note textarea { resize: vertical; }
.atl-f small, .atl-hint, .atl-note { color: var(--ink-3); font-size: 11.5px; line-height: 1.45; margin: 0; } .atl-err { color: var(--alert); font-size: 12px; margin: 0; }
.atl-k0 { margin: 0; font: 500 10px var(--font-mono); letter-spacing: .16em; color: var(--ink-3); text-transform: uppercase; } .atl-k0 a { color: var(--ink-2); }

/* chips */
.atl-chip { display: inline-flex; gap: 6px; align-items: center; font: 600 10.5px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; color: var(--sc, var(--ink-2)); border: 1px solid color-mix(in srgb, var(--sc, var(--ink-3)) 55%, transparent); background: color-mix(in srgb, var(--sc, var(--ink-3)) 10%, transparent); }
.atl-chip i { font-style: normal; } .atl-chip--sm { font-size: 9.5px; padding: 2px 6px; } .atl-chip--big { font-size: 11.5px; padding: 4px 10px; }
.atl-manual { font: 9.5px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-left: 4px; border: 1px dashed var(--line-strong); padding: 1px 5px; }
.atl-untracked { font: 600 10.5px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); } .atl-ok { font: 11px var(--font-mono); color: var(--ok); }
.atl-ring__t { stroke: var(--ink); stroke-opacity: .16; } .atl-ring__p { stroke: var(--sc, var(--hit)); } .atl-ring { --sc: var(--hit); }
.atl-ring[data-s='late'], .atl-ring[data-s='blocked'] { --sc: var(--alert); } .atl-ring[data-s='at_risk'] { --sc: var(--s5); } .atl-ring[data-s='done'] { --sc: var(--ok); }
.atl-bar { display: block; height: 4px; background: color-mix(in srgb, var(--ink) 16%, transparent); min-width: 60px; } .atl-bar i { display: block; height: 100%; background: var(--sc, var(--hit)); }

/* body + map stage */
.atl-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; min-width: 0; align-items: start; }
.atl.has-panel .atl-main { grid-template-columns: minmax(0, 1fr) 400px; }
.atl--map .atl-body { height: clamp(520px, calc(100vh - 230px), 980px); min-height: 0; }
.am-stage { position: relative; height: 100%; overflow: hidden; background-color: var(--bg); background-image: radial-gradient(circle, color-mix(in srgb, var(--ink) 26%, transparent) 1px, transparent 1.3px); background-size: 28px 28px; border: 1px solid var(--line); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.am-stage.is-drag { cursor: grabbing; } .am-stage:focus-visible { outline: 2px solid var(--hit); outline-offset: -2px; }
.am-stage--empty { cursor: default; display: grid; place-items: center; touch-action: auto; user-select: auto; }
.am-svg { display: block; position: absolute; inset: 0; } .am-svg text { font-family: var(--font-body); fill: var(--ink); }

/* territories */
.tr-box { fill: color-mix(in srgb, var(--bg-2) 55%, transparent); stroke: var(--line-strong); stroke-width: 1; } .tr.is-focus .tr-box { stroke: var(--hit); stroke-width: 1.5; } .tr-ticks { fill: none; stroke: var(--ink-3); stroke-width: 1.5; } .tr.is-focus .tr-ticks { stroke: var(--hit); }
.am-stage { --z: 1; } .tr-head { cursor: pointer; } .tr-name { font: 800 calc(14px * var(--z)) var(--font-display) !important; text-transform: uppercase; letter-spacing: -.01em; } .tr-meta, .tr-risk { font: 500 calc(9.5px * min(var(--z), 1.6)) var(--font-mono) !important; letter-spacing: .1em; fill: var(--ink-3) !important; }
.tr-risk .tr-bad { fill: var(--alert); } .tr-risk .tr-warn { fill: var(--s5); } .tr-risk .tr-ok { fill: var(--ok); } .tr-pt { fill: var(--ink); fill-opacity: .16; } .tr-pf { fill: var(--hit); }
.tr-head:hover .tr-name, .tr-head:focus-visible .tr-name { fill: var(--hit); }

/* nodes: a disc on a progress ring with its label underneath, like the Network map */
.mn { cursor: pointer; --sc: var(--ink-3); outline: none; transition: opacity .18s; } .mn-hit { fill: transparent; }
.mn-ring { fill: var(--bg-2); stroke: var(--line-strong); stroke-width: 3; } .mn-arc { fill: none; stroke: var(--sc); stroke-width: 3; stroke-linecap: butt; } .mn-disc { fill: var(--bg-2); stroke: var(--ink-3); stroke-width: 1; }
.mn-halo { fill: none; stroke: transparent; stroke-width: 2; } .mn-g { font: 700 13px var(--font-mono) !important; fill: var(--sc) !important; } .mn-pin { fill: var(--alert); stroke: var(--bg); stroke-width: 2; }
.mn .mn-t { font: 700 11.5px var(--font-body); } .mn .mn-sub { font: 600 9px var(--font-mono); letter-spacing: .08em; fill: var(--ink-3); }
.mn[data-s='on_track'] .mn-disc { fill: color-mix(in srgb, var(--hit) 16%, var(--bg-2)); } .mn[data-s='done'] .mn-disc { fill: color-mix(in srgb, var(--ok) 20%, var(--bg-2)); } .mn[data-s='late'] .mn-disc, .mn[data-s='blocked'] .mn-disc { fill: color-mix(in srgb, var(--alert) 18%, var(--bg-2)); } .mn[data-s='at_risk'] .mn-disc { fill: color-mix(in srgb, var(--s5) 16%, var(--bg-2)); }
.mn[data-s='late'] .mn-ring, .mn[data-s='blocked'] .mn-ring { stroke: color-mix(in srgb, var(--alert) 45%, var(--line-strong)); } .mn[data-s='blocked'] .mn-disc { stroke: var(--alert); stroke-width: 2; }
.mn[data-s='untracked'] .mn-ring, .mn[data-s='cancelled'] .mn-ring { stroke-dasharray: 3 3; } .mn[data-s='done'] .mn-t { fill: var(--ink-2); }
.mn:hover .mn-halo, .mn:focus-visible .mn-halo { stroke: var(--ink-3); } .mn.is-sel .mn-halo { stroke: var(--hit); stroke-width: 2.5; } .mn.is-hot .mn-halo, .mn.is-attn .mn-halo { stroke: var(--hit); } .mn.is-up .mn-halo, .mn.is-down .mn-halo { stroke: var(--ink-2); }
.mn.is-dim { opacity: .2; } .mn.is-sel .mn-sub { fill: var(--ink); }
.am-stage[data-lod='c'] .mn-sub { display: none; } .am-stage[data-lod='c'] .mn-t { font-size: 15px; }

/* edges */
.me-p { fill: none; stroke: var(--ink-3); stroke-width: 1.6; } .me-ar { fill: var(--ink-3); } .me.is-done .me-p { stroke-dasharray: 3 4; opacity: .7; }
.me.is-crit .me-p { stroke: var(--alert); stroke-width: 2.6; } .me-ar-c { fill: var(--alert); } .me-l rect { fill: var(--bg); stroke: var(--alert); } .me-l text { font: 700 9.5px var(--font-mono) !important; letter-spacing: .12em; fill: var(--alert) !important; }
.me.is-chain .me-p { stroke: var(--hit); stroke-width: 2.8; } .me.is-chain.is-crit .me-p { stroke: var(--alert); } .me.is-dim { opacity: .12; }

/* floating map furniture */
.am-legend { position: absolute; left: 12px; bottom: 56px; z-index: 3; background: color-mix(in srgb, var(--bg-2) 94%, transparent); border: 1px solid var(--line); padding: 8px 12px; font-size: 11px; color: var(--ink-2); cursor: default; } .am-legend p { margin: 0 0 4px; color: var(--ink-3); } .am-legend ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; } .am-legend li { display: flex; gap: 8px; align-items: center; }
.lg-e { stroke: var(--ink-3); stroke-width: 1.6; fill: none; } .lg-a { fill: var(--ink-3); } .lg-c { stroke: var(--alert); stroke-width: 2.6; } .lg-ac { fill: var(--alert); } .lg-d { width: 14px; height: 10px; border: 1px solid var(--ink-3); opacity: .35; display: inline-block; }
.am-ctl { position: absolute; right: 12px; top: 12px; z-index: 3; display: flex; gap: 0; border: 1px solid var(--line-strong); background: var(--bg-2); cursor: default; } .am-ctl button { appearance: none; background: transparent; border: 0; border-right: 1px solid var(--line); color: var(--ink); min-width: 38px; height: 36px; padding: 0 10px; cursor: pointer; font: 600 11px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; } .am-ctl button:last-child { border-right: 0; } .am-ctl button:hover { background: var(--bg-3); color: var(--hit); }
.am-nav { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 3; display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; overflow-y: hidden; padding: 2px 0; scrollbar-width: thin; cursor: default; }
.am-chip { appearance: none; flex: 0 0 auto; background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line-strong); padding: 6px 12px; min-height: 34px; font: 600 11px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; } .am-chip:hover { color: var(--ink); } .am-chip.is-on { color: var(--on-hit); background: var(--hit); border-color: var(--hit); }
.am-dot { width: 7px; height: 7px; background: var(--alert); display: inline-block; }
.am-attn { position: absolute; left: 12px; top: 12px; z-index: 4; width: min(340px, calc(100% - 24px)); max-height: calc(100% - 140px); overflow: auto; background: var(--bg-2); border: 1px solid var(--line-strong); padding: 12px; cursor: default; } .am-attn header { display: flex; justify-content: space-between; align-items: center; } .am-attn h2 { margin: 0; font: 700 13px var(--font-display); text-transform: uppercase; } .am-attn h2 b { color: var(--hit); font-family: var(--font-mono); }
.am-attn ol { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; } .am-attn li button { appearance: none; width: 100%; text-align: left; background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--ink-3); color: var(--ink); padding: 8px 10px; cursor: pointer; display: grid; gap: 2px; } .am-attn li button:hover { background: var(--bg-3); }
.am-attn li button[data-k='late'], .am-attn li button[data-k='blocked'] { border-left-color: var(--alert); } .am-attn li button[data-k='soon'] { border-left-color: var(--s5); } .am-attn small { color: var(--ink-3); font-size: 11.5px; line-height: 1.4; } .am-attn .mono { color: var(--ink-3); font-size: 10px; }
.am-mini { position: absolute; right: 12px; bottom: 56px; z-index: 3; background: var(--bg-2); border: 1px solid var(--line-strong); padding: 4px; cursor: pointer; } .am-mini svg { display: block; } .mm-t { fill: none; stroke: var(--ink-3); stroke-width: 6; } .mm-n { fill: var(--ink-3); } .mm-n[data-s='late'], .mm-n[data-s='blocked'] { fill: var(--alert); } .mm-n[data-s='at_risk'] { fill: var(--s5); } .mm-n[data-s='on_track'] { fill: var(--hit); } .mm-n[data-s='done'] { fill: var(--ok); } .mm-v { fill: color-mix(in srgb, var(--hit) 14%, transparent); stroke: var(--hit); stroke-width: 10; }

/* empty */
.atl-empty { max-width: 520px; padding: 28px; border: 1px solid var(--line-strong); background: var(--bg-2); display: grid; gap: 10px; justify-items: start; margin: 24px auto; } .atl-empty b { font: 800 22px var(--font-display); text-transform: uppercase; } .atl-empty p { margin: 0; color: var(--ink-2); line-height: 1.55; } .atl-empty__a { display: flex; gap: 8px; flex-wrap: wrap; }

/* inspector */
.mi:focus { outline: none; } .mi { background: var(--bg-2); border: 1px solid var(--line); border-left: 2px solid var(--hit); display: flex; flex-direction: column; height: clamp(520px, calc(100vh - 230px), 980px); min-width: 0; position: sticky; top: 8px; }
.mi-h { position: relative; padding: 14px 54px 10px 16px; display: grid; gap: 6px; border-bottom: 1px solid var(--line); } .mi-h > .atl-ico { position: absolute; top: 10px; right: 10px; } .mi-h h2 { margin: 0; font: 800 18px var(--font-display); text-transform: uppercase; }
.mi-title { width: 100%; background: transparent; border: 1px solid transparent; color: var(--ink); font: 800 18px/1.2 var(--font-display); padding: 4px 6px; margin: 0 -6px; } .mi-title:hover { border-color: var(--line); } .mi-title:focus { border-color: var(--hit); background: var(--bg); outline: none; }
.mi-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .mi-save { font: 11px var(--font-mono); color: var(--ok); margin-left: auto; } .mi-save.is-bad { color: var(--alert); }
.mi-tabs { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; } .mi-tab { appearance: none; flex: 1; background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--ink-3); padding: 10px 8px; font: 600 11px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; white-space: nowrap; } .mi-tab:hover { color: var(--ink); } .mi-tab.is-on { color: var(--hit); border-bottom-color: var(--hit); } .mi-tab b { color: var(--ink-3); } .mi-tab b.is-bad { color: var(--alert); }
.mi-body { flex: 1; overflow-y: auto; padding: 14px 16px 24px; display: grid; gap: 14px; align-content: start; overscroll-behavior: contain; }
.mi-prog { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; } .mi-prog > div { display: grid; gap: 3px; } .mi-prog b { font: 800 24px var(--font-display); } .mi-prog span, .mi-prog small { color: var(--ink-2); font-size: 12px; line-height: 1.45; } .mi-prog small { color: var(--ink-3); }
.mi-why { margin: 0; padding: 10px 12px; background: var(--bg); border-left: 3px solid var(--sc, var(--ink-3)); font-size: 12.5px; line-height: 1.5; color: var(--ink-2); } .mi-why b { color: var(--ink); }
.mi-grid, .mi-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .mi-v { margin: 0; padding: 8px 0; font-size: 13px; }
.mi-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.mi-s { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; } .mi-s h3 { margin: 0; font: 600 11px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); display: flex; gap: 8px; align-items: baseline; } .mi-s h3 b { color: var(--hit); } .mi-cr { margin-left: auto; font-size: 10.5px; }
.mi-tasks, .mi-res, .mi-dep, .mi-dchk, .mi-blk, .mi-next, .mi-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mi-t { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 8px 10px; background: var(--bg); border: 1px solid var(--line); font-size: 12.5px; } .mi-t small { display: block; color: var(--ink-3); font-size: 11px; } .tlink { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; } .tlink:hover { color: var(--hit); }
.mi-t__m { text-align: right; font-size: 11.5px; color: var(--ink-2); } .mi-t__a { grid-column: 1 / -1; display: flex; gap: 12px; font-size: 11.5px; } .mi-t__a a { color: var(--hit); }
.atl-lnk { appearance: none; background: transparent; border: 0; color: var(--ink-2); text-decoration: underline; cursor: pointer; font-size: 11.5px; padding: 2px 0; text-align: left; } .atl-lnk:hover { color: var(--hit); }
.mi-fl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 6px 0; } .mi-fl select { font-size: 11.5px; min-height: 32px; padding: 5px 6px; }
.mi-res li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 7px 10px; background: var(--bg); border: 1px solid var(--line); font-size: 12.5px; } .mi-res small { display: block; color: var(--ink-3); font-size: 11px; } .mi-res li.atl-hint, .mi-res li.atl-err { display: block; border: 0; background: transparent; }
.mi-dep button { appearance: none; width: 100%; text-align: left; background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--sc, var(--ink-3)); color: var(--ink); padding: 8px 10px; cursor: pointer; display: grid; gap: 1px; font-size: 13px; } .mi-dep button small { color: var(--ink-3); font-size: 11px; } .mi-dep button:hover { background: var(--bg-3); }
.mi-dchk { max-height: 240px; overflow: auto; border: 1px solid var(--line); padding: 6px 8px; background: var(--bg); } .mi-dchk label { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; cursor: pointer; padding: 3px 0; } .mi-dchk input { accent-color: var(--hit); margin-top: 3px; }
.mi-blk li { display: grid; grid-template-columns: 18px 1fr; gap: 6px; padding: 8px 10px; background: var(--bg); border-left: 3px solid var(--s5); font-size: 12.5px; line-height: 1.45; } .mi-blk li[data-level='blocked'] { border-left-color: var(--alert); } .mi-blk li i { font-style: normal; color: var(--s5); } .mi-blk li[data-level='blocked'] i { color: var(--alert); }
.mi-next { list-style: square; padding-left: 18px; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; } .mi-hist li { font-size: 11.5px; color: var(--ink-2); } .mi-hist time { font-family: var(--font-mono); color: var(--ink-3); }
.mi-note { display: grid; gap: 6px; justify-items: start; } .mi-form { gap: 14px; }

/* portfolio */
.pf { display: grid; gap: 14px; min-width: 0; } .pf-axis { display: grid; grid-template-columns: minmax(180px, 1.1fr) 110px minmax(160px, 2.2fr) 150px 170px; gap: 0 12px; padding: 0 12px; } .pf-axis__lane { grid-column: 3; position: relative; height: 24px; border-bottom: 1px solid var(--line); font: 10px var(--font-mono); color: var(--ink-3); } .pf-axis__lane span { position: absolute; top: 4px; transform: translateX(-2px); white-space: nowrap; }
.pf-today { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--hit); } .pf-today em { position: absolute; top: -2px; left: 4px; font-style: normal; color: var(--hit); font: 9px var(--font-mono); text-transform: uppercase; }
.pf-g { border: 1px solid var(--line); background: var(--bg-2); } .pf-g__h { display: grid; grid-template-columns: minmax(180px, 1fr) 1fr auto; gap: 12px; align-items: center; padding: 12px; border-bottom: 1px solid var(--line); } .pf-g__h h2 { margin: 0; font: 800 17px var(--font-display); text-transform: uppercase; } .pf-g__h h2 a { color: var(--ink); text-decoration: none; } .pf-g__h h2 a:hover { color: var(--hit); } .pf-g__h p { margin: 2px 0 0; color: var(--ink-3); font-size: 12px; }
.pf-g__f { display: flex; gap: 6px; flex-wrap: wrap; } .pf-g__p { text-align: right; } .pf-g__p b { font: 800 20px var(--font-display); display: block; } .pf-g__p small { color: var(--ink-3); font-size: 11px; }
.pf-rows { list-style: none; margin: 0; padding: 0; } .pf-row { display: grid; grid-template-columns: minmax(180px, 1.1fr) 110px minmax(160px, 2.2fr) 150px 170px; gap: 12px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer; border-left: 3px solid var(--sc, var(--line)); } .pf-rows li:last-child .pf-row { border-bottom: 0; } .pf-row:hover { background: var(--bg-3); }
.pf-row__t h3 { margin: 0; font: 700 13.5px var(--font-body); } .pf-row__t p { margin: 2px 0 0; font-size: 11.5px; color: var(--ink-3); } .pf-row__p { display: grid; gap: 3px; font-size: 12px; } .pf-row__p small { color: var(--ink-3); font-size: 11px; } .pf-row__d { display: grid; gap: 2px; font-size: 12px; text-align: right; color: var(--ink-2); }
.pf-lane { position: relative; height: 22px; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 6 - 1px), var(--line) calc(100% / 6 - 1px) calc(100% / 6)); } .pf-bar { position: absolute; top: 5px; height: 12px; background: color-mix(in srgb, var(--sc, var(--ink-3)) 22%, transparent); border: 1px solid var(--sc, var(--ink-3)); } .pf-bar i { display: block; height: 100%; background: var(--sc, var(--hit)); } .pf-bar.is-ghost { border-style: dashed; }

/* timeline */
.atx { border: 1px solid var(--line); background: var(--bg-2); } .atx-bar2 { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); } .atx-bar2 h2 { margin: 0; font: 800 15px var(--font-display); text-transform: uppercase; } .atx-bar2 p { margin: 0; color: var(--ink-3); font-size: 12px; flex: 1; }
.atl-zoom { display: flex; border: 1px solid var(--line-strong); } .atl-zoom button { appearance: none; background: transparent; border: 0; border-right: 1px solid var(--line); color: var(--ink); min-width: 36px; height: 32px; cursor: pointer; font: 600 11px var(--font-mono); } .atl-zoom button:last-child { border: 0; } .atl-zoom button:hover { background: var(--bg-3); }
.atl-scroll { overflow-x: auto; } .atx-axis { position: relative; height: 26px; margin-left: 220px; border-bottom: 1px solid var(--line); } .atx-axis span { position: absolute; top: 6px; font: 10px var(--font-mono); color: var(--ink-3); text-transform: uppercase; }
.atx-gh { display: flex; gap: 12px; align-items: baseline; padding: 8px 14px; background: var(--bg-3); border-block: 1px solid var(--line); position: sticky; left: 0; } .atx-gh b { font: 800 13px var(--font-display); text-transform: uppercase; } .atx-gh span { color: var(--ink-3); font-size: 11.5px; }
.atx-r { display: flex; align-items: center; cursor: pointer; border-left: 3px solid var(--sc, var(--line)); } .atx-r:hover { background: var(--bg-3); } .atx-l { width: 217px; flex: 0 0 217px; padding: 7px 10px; position: sticky; left: 0; background: var(--bg-2); z-index: 1; } .atx-r:hover .atx-l { background: var(--bg-3); } .atx-l b { display: block; font-size: 12.5px; } .atx-l small { color: var(--ink-3); font-size: 11px; }
.atx-track { position: relative; height: 34px; } .atx-grid { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); } .atx-today { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--hit); } .atx-bar { position: absolute; top: 11px; height: 12px; background: color-mix(in srgb, var(--sc, var(--ink-3)) 22%, transparent); border: 1px solid var(--sc, var(--ink-3)); } .atx-bar i { display: block; height: 100%; background: var(--sc, var(--hit)); } .atx-bar.is-ghost { border-style: dashed; }
.atx-end, .atx-warn { position: absolute; top: 9px; font: 10.5px var(--font-mono); font-style: normal; color: var(--ink-3); white-space: nowrap; } .atx-warn { color: var(--alert); font-weight: 700; }

@media (max-width: 1100px) {
  .atl.has-panel .atl-main { grid-template-columns: minmax(0, 1fr); }
  .atl.has-panel .mi { position: fixed; right: 0; top: 0; bottom: 0; width: min(420px, 94vw); height: auto; z-index: 50; box-shadow: -14px 0 32px rgba(0,0,0,.45); }
  .pf-axis { display: none; } .pf-row { grid-template-columns: 1fr auto; } .pf-lane { grid-column: 1 / -1; order: 5; } .pf-row__p, .pf-row__d { text-align: left; } .pf-g__h { grid-template-columns: 1fr auto; } .pf-g__f { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 720px) {
  .atl { gap: 8px; } .atl-strip { padding: 8px 10px; gap: 8px; } .atl-brand p { display: none; } .atl-brand h1 { font-size: 16px; }
  .atl-metrics { width: 100%; overflow-x: auto; flex-wrap: nowrap; order: 3; margin: 0; scrollbar-width: none; } .atl-m { padding: 2px 12px; flex: 0 0 auto; min-width: 0; } .atl-m:first-child { border-left: 0; padding-left: 0; } .atl-m b { font-size: 17px; } .atl-m--next { display: none; }
  .atl-brand { flex: 1; } .atl-acts { display: contents; } .atl-acts .atl-btn:not([data-attn]):not([data-pop]):not(.atl-btn--solid), .atl-acts a.atl-btn { display: none; } .atl-search { order: 4; flex: 1 1 100%; } .atl-search input { width: 100%; min-width: 0; } .atl-ico[data-strip] { order: 1; width: 40px; height: 40px; } .atl-btn { min-height: 40px; padding: 7px 10px; }
  .atl--map .atl-body { height: clamp(420px, calc(100vh - 300px), 760px); } .atl-tab { padding: 9px 4px; flex: 1; text-align: center; font-size: 10.5px; letter-spacing: .08em; }
  .am-legend { display: none; } .am-mini { display: none; } .am-ctl { top: auto; bottom: 54px; right: 10px; flex-direction: column; } .am-ctl button { border-right: 0; border-bottom: 1px solid var(--line); height: 42px; min-width: 46px; } .am-ctl button:last-child { border-bottom: 0; } .am-ctl button[data-z='blockers'], .am-ctl button[data-z='reset'] { display: none; }
  .am-attn { width: calc(100% - 24px); max-height: 55%; } .am-chip { min-height: 40px; }
  .atl.has-panel > .atl-strip, .atl.has-panel > .atl-tabs { display: none; } .atl.has-panel .mi { top: auto; left: 0; right: 0; width: auto; height: 56vh; border-left: 0; border-top: 2px solid var(--hit); box-shadow: 0 -14px 32px rgba(0,0,0,.5); }
  .mi-grid, .mi-row { grid-template-columns: 1fr; } .atl-pop { right: 8px; left: 8px; width: auto; top: auto; }
  .atx-l { width: 150px; flex-basis: 150px; } .atx-axis { margin-left: 150px; }
}
@media (prefers-reduced-motion: reduce) { .mn, .mn * { transition: none !important; } }
[data-theme='light'] .atl-pop, [data-theme='light'] .mi, [data-theme='light'] .atl-found { box-shadow: 0 8px 22px rgba(0,0,0,.14); }

.mi-hid { display: block; font: 600 10px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--s5); margin-top: 2px; } .mi-dep button[data-reveal] { border-style: dashed; border-left-style: dashed; }
.am-stage:has(.am-attn) .am-legend { display: none; }

.tr-meta.is-bad { fill: var(--alert) !important; } .tr-box { fill: color-mix(in srgb, var(--bg-2) 35%, transparent); stroke: var(--line); }
/* the HUD: the only chrome above the canvas */
.atl--map { gap: 8px; } .atl-hud { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 40px; z-index: 6; position: relative; }
.atl-hud__v { display: flex; gap: 2px; } .atl-hud__v a { padding: 7px 12px; font: 600 11px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); text-decoration: none; border-bottom: 2px solid transparent; } .atl-hud__v a:hover { color: var(--ink); } .atl-hud__v a.is-on { color: var(--hit); border-bottom-color: var(--hit); }
.atl-hud__m { display: flex; gap: 6px; flex-wrap: wrap; margin-right: auto; } .atl-p { appearance: none; background: transparent; border: 1px solid var(--line); color: var(--ink-2); padding: 4px 10px; font: 600 10.5px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; display: inline-flex; gap: 6px; align-items: baseline; } .atl-p b { font-size: 13px; color: var(--ink); } .atl-p.is-warn b { color: var(--s5); } .atl-p.is-bad b { color: var(--alert); } .atl-p:hover, .atl-p.is-on { border-color: var(--hit); color: var(--ink); }
.atl-hud__a { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .atl-hud .atl-pop { top: 44px; right: 0; }
.am-fab { position: absolute; right: 16px; bottom: 14px; z-index: 5; width: 52px; height: 52px; background: var(--hit); color: var(--on-hit); border: 0; font: 700 28px/1 var(--font-body); cursor: pointer; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); } .am-fab:hover { filter: brightness(1.08); }
.am-stage { background-image: radial-gradient(circle, color-mix(in srgb, var(--ink) 14%, transparent) 1px, transparent 1.3px); }
.am-mini { right: 16px; bottom: 78px; } .am-nav { right: 80px; }
.mi-man summary { cursor: pointer; font: 600 11px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); } .mi-man[open] summary { margin-bottom: 8px; } .mi { border-left-width: 1px; }
.atl.has-panel .atl-main { grid-template-columns: minmax(0, 1fr) 340px; } .atl--map .atl-main { gap: 0; }
@media (max-width: 720px) { .atl-hud__v a { padding: 7px 8px; font-size: 10px; letter-spacing: .08em; } .atl-hud__m { width: 100%; order: 3; } .atl-search input { width: 130px; } .am-fab { bottom: 60px; right: 12px; } .am-nav { right: 10px; } .atl.has-panel > .atl-hud { display: none; } }
@media (max-width: 720px) { .am-ctl { top: 10px; bottom: auto; right: 10px; flex-direction: row; } .am-ctl button { border-bottom: 0; border-right: 1px solid var(--line); height: 38px; min-width: 40px; } .am-ctl button:last-child { border-right: 0; } }
.am-legend { bottom: 66px; padding: 6px 10px; } .am-legend ul { display: none; } .am-legend:hover ul, .am-legend:focus-within ul { display: grid; } .am-legend p { margin: 0; cursor: default; } .am-legend:hover p { margin-bottom: 4px; }
.mi-h h2 { font-size: 15px; }
@media (max-width: 1100px) { .atl.has-panel .atl-main { grid-template-columns: minmax(0, 1fr); } }

/* ── map intelligence (Blockers lens, Impact, Relationship, semantic zoom) ── */
.mn .mn-det { display: none; font: 600 8.5px var(--font-mono); letter-spacing: .06em; fill: var(--ink-3); text-transform: uppercase; }
.am-stage[data-lod='d'] .mn-det { display: block; } .am-stage[data-lod='d'] .mn .mn-t { font-size: 12.5px; }
.am-stage[data-lod='c'] .mn:not([data-s='late']):not([data-s='blocked']):not([data-s='at_risk']):not(.is-sel):not(.is-hot):not(.is-path) .mn-t { display: none; }   /* strategic view: names only where something needs attention */
.mn.is-wait .mn-disc { stroke-dasharray: 2 2; } .mn.is-wait .mn-sub { fill: var(--ink-2); }
.mn.is-path .mn-halo { stroke: var(--hit); stroke-width: 2.5; } .me.is-path .me-p { stroke: var(--hit); stroke-width: 3.2; } .me.is-path.is-dim { opacity: 1; }
.am-cf { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 4; max-width: min(640px, calc(100% - 240px)); padding: 7px 12px; background: color-mix(in srgb, var(--bg-2) 95%, transparent); border: 1px solid var(--line-strong); font-size: 12px; color: var(--ink-2); line-height: 1.4; text-align: center; } .am-cf b { color: var(--ink); font: 700 11px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; margin-right: 8px; } .am-cf .atl-lnk { margin-left: 10px; }
.am-lens { border-left: 3px solid var(--alert); }
.mi-sum { margin: 0; font-size: 12.5px; color: var(--ink); line-height: 1.5; } .mi-trace { margin: 0; padding: 8px 10px; background: var(--bg); border-left: 3px solid var(--hit); font-size: 12px; color: var(--ink-2); line-height: 1.45; }
.mi-row2 { display: flex; gap: 8px; } .mi-dchk label.is-off { opacity: .45; cursor: not-allowed; }
.mi-grip { display: none; }
@keyframes mk-halo { from { stroke: transparent; stroke-width: 0; } 40% { stroke: var(--hit); stroke-width: 4; } to { stroke: var(--ink-3); stroke-width: 1.5; } }
@keyframes mk-draw { from { stroke-dashoffset: 900; } to { stroke-dashoffset: 0; } }
@keyframes mk-in { from { opacity: .25; } to { opacity: 1; } }
.mn.is-fx { animation: mk-in .25s ease-out calc(var(--d, 0) * 120ms) both; } .mn.is-fx .mn-halo { animation: mk-halo .6s ease-out calc(var(--d, 0) * 120ms) both; }
.me.is-fx .me-p { stroke-dasharray: 900; animation: mk-draw .45s ease-out calc(var(--d, 0) * 120ms) both; }
.mn-arc { transition: stroke-dasharray .45s ease-out; } .mn { transition: opacity .2s; } .me { transition: opacity .2s; }
@media (prefers-reduced-motion: reduce) { .mn.is-fx, .mn.is-fx .mn-halo, .me.is-fx .me-p { animation: none !important; } .mn-arc, .mn, .me { transition: none !important; } }
html.mk-fs .atl--map .atl-body { height: calc(100vh - 64px) !important; } html.mk-fs .atl .mi { height: calc(100vh - 64px) !important; top: 0; }
@media (max-width: 720px) {
  .atl-hud .atl-btn[data-mk] span { display: none; } .atl-hud .atl-btn[data-mk] { padding: 7px 9px; }
  .atl.has-panel .mi { height: 56vh; padding-bottom: env(safe-area-inset-bottom, 0); transition: height .2s ease; } .atl.has-panel .mi[data-snap='0'] { height: 30vh; } .atl.has-panel .mi[data-snap='2'] { height: 80vh; }
  .mi-grip { display: block; position: absolute; left: 50%; top: 4px; transform: translateX(-50%); width: 64px; height: 18px; border: 0; background: none; cursor: pointer; z-index: 2; } .mi-grip::before { content: ''; display: block; width: 36px; height: 4px; margin: 7px auto 0; background: var(--ink-3); }
  .am-cf { top: 56px; max-width: calc(100% - 24px); font-size: 11.5px; }
  html.mk-fs .atl.has-panel .mi { height: 56vh !important; top: auto; }
}
/* strategic view of a large map: only what the eye uses at that scale stays in the render tree (measured: 400 nodes, a zoom step costs 5.8 ms of style + layout, 3.1 ms with this) */
.am-stage[data-lod='c'] .mn-hit, .am-stage[data-lod='c'] .mn-sub, .am-stage[data-lod='c'] .mn-det, .am-stage[data-lod='c'] .mn-g, .am-stage[data-lod='c'] .me-l { display: none; } .am-stage[data-lod='c'] .mn:not(.is-sel):not(.is-hot):not(.is-path) .mn-halo { display: none; }
