/* ATLAS — analyst-console style. Everything is scoped under .atlas / [data-skin="atlas"]. */
.atlas {
  --bg: #0a0e13; --panel: #10161d; --panel-2: #131b24; --line: #1e2731; --line-2: #2a3644;
  --ink: #d6dde6; --ink-2: #a3b1c0; --ink-3: #7b8794;
  --blue: #4c9aff; --green: #3ecf8e; --amber: #f5a524;
  --org: #4c9aff; --proj: #1fa874; --award: #d98a10;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --bar: 52px; --rail: 72px;
  color: var(--ink); background: var(--bg); font: 400 15px/1.55 var(--sans); min-height: 100vh;
  background-image: linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: 32px 32px; background-attachment: fixed;
  -webkit-font-smoothing: antialiased; color-scheme: dark;
}
.atlas *, .atlas *::before, .atlas *::after { box-sizing: border-box; }
.atlas h1, .atlas h2, .atlas h3, .atlas h4 { font-family: var(--sans); letter-spacing: -.01em; margin: 0; line-height: 1.2; }
.atlas p { margin: 0; }
.atlas ul, .atlas dl { margin: 0; padding: 0; list-style: none; }
.atlas a { color: inherit; }
.atlas .mono { font-family: var(--mono); }
.atlas .dim { color: var(--ink-3); }
.atlas .amber { color: var(--amber); }
.atlas :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.atlas kbd { font: 500 10px/1 var(--mono); padding: 3px 5px; border: 1px solid var(--line-2); border-radius: 3px; color: var(--ink-3); }
.atlas .ai { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.atlas .ai-ext { width: 12px; height: 12px; }

/* ---------- command bar ---------- */
.a-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 30; height: var(--bar); display: flex; align-items: center; gap: 16px;
  padding: 0 16px 0 0; background: rgba(10, 14, 19, .92); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px);
}
.a-brand { width: var(--rail); flex: none; display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; font: 600 13px/1 var(--mono); letter-spacing: .14em; height: 100%; border-right: 1px solid var(--line); }
.a-brand span:not(.a-brand-sub), .a-brand i, .a-brand-sub { display: none; }
.a-logo { width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 1.5; }
.a-crumbs { display: flex; align-items: center; gap: 8px; font: 500 13px/1 var(--mono); color: var(--ink-3); white-space: nowrap; }
.a-crumbs::before { content: "ATLAS"; color: var(--ink); letter-spacing: .14em; margin-right: 6px; }
.a-crumbs i { font-style: normal; }
.a-crumbs b { color: var(--ink); font-weight: 600; }
.a-search {
  margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 240px; padding: 7px 10px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 6px; color: var(--ink-3); font: 13px/1 var(--sans);
}
.a-search span { flex: 1; text-align: left; }
.a-search:hover { border-color: var(--blue); color: var(--ink); }
.a-clock { display: flex; gap: 14px; font: 500 12px/1 var(--mono); color: var(--ink); white-space: nowrap; }
.a-clock em { font-style: normal; color: var(--ink-3); margin-right: 6px; }
.a-livebadge { display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1 var(--mono); letter-spacing: .12em; color: var(--green); }
.a-livebadge i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(62, 207, 142, .6); animation: a-ping 2s infinite; }
@keyframes a-ping { 70% { box-shadow: 0 0 0 7px rgba(62, 207, 142, 0); } 100% { box-shadow: 0 0 0 0 rgba(62, 207, 142, 0); } }
.a-seg { display: flex; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.a-seg button { font: 600 11px/1 var(--mono); letter-spacing: .08em; padding: 8px 9px; background: transparent; color: var(--ink-3); border: 0; cursor: pointer; }
.a-seg button + button { border-left: 1px solid var(--line-2); }
.a-seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.a-seg button:not([aria-pressed="true"]):hover { color: var(--ink); background: var(--panel-2); }

/* ---------- rail ---------- */
.a-rail {
  position: fixed; top: var(--bar); bottom: 0; left: 0; z-index: 25; width: var(--rail); padding: 10px 0;
  display: flex; flex-direction: column; gap: 2px; background: rgba(10, 14, 19, .92); border-right: 1px solid var(--line);
}
.a-rail a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px; text-decoration: none; color: var(--ink-3); font: 500 10px/1.1 var(--sans); text-align: center; }
.a-rail a:hover { color: var(--ink); }
.a-rail a.on { color: var(--ink); }
.a-rail a.on::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: var(--blue); }
.a-rail a.on .ai { stroke: var(--blue); }
.a-rail kbd { display: none; }

/* ---------- layout ---------- */
.a-main { margin-left: var(--rail); padding: calc(var(--bar) + 28px) clamp(16px, 3vw, 40px) 48px; max-width: calc(1360px + var(--rail)); }
.a-sec { scroll-margin-top: calc(var(--bar) + 16px); margin-bottom: 36px; }
.a-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.a-idx { font: 600 12px/1 var(--mono); color: var(--blue); }
.a-head h2 { font-size: 20px; font-weight: 600; }
.a-meta { margin-left: auto; font: 500 11px/1 var(--mono); letter-spacing: .1em; color: var(--ink-3); text-transform: uppercase; }
.a-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; }
.span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.a-card {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px;
  opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .8, .2, 1);
}
.a-card.in { opacity: 1; transform: none; }
.a-card::before, .a-card::after { content: ""; position: absolute; width: 10px; height: 10px; border-color: var(--line-2); border-style: solid; pointer-events: none; }
.a-card::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; border-top-left-radius: 8px; }
.a-card::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; border-bottom-right-radius: 8px; }
.a-card.in::before { animation: a-sweep .9s ease both; }
@keyframes a-sweep { from { box-shadow: 0 0 0 0 rgba(76, 154, 255, .5); } to { box-shadow: 0 0 0 0 rgba(76, 154, 255, 0); } }
.a-card h3 { font: 600 12px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.a-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.a-note { color: var(--ink-3); font-size: 13.5px; margin-top: 4px; }
.a-readout { font-size: 11.5px; color: var(--ink-2); letter-spacing: .04em; }
.a-scroll { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }

/* ---------- subject ---------- */
.a-subj-top { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.a-photo { position: relative; flex: none; width: 112px; height: 112px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line-2); }
.a-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); }
.a-ret { position: absolute; inset: 10px; border: 1px solid rgba(76, 154, 255, .7); }
.a-ret::before, .a-ret::after { content: ""; position: absolute; background: rgba(76, 154, 255, .7); }
.a-ret::before { left: 50%; top: -6px; bottom: -6px; width: 1px; opacity: .5; }
.a-ret::after { top: 50%; left: -6px; right: -6px; height: 1px; opacity: .5; }
.a-chip { display: inline-block; font: 600 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--green); border: 1px solid rgba(62, 207, 142, .45); padding: 5px 7px; border-radius: 3px; margin-bottom: 10px; }
.a-subject h1 { font: 600 clamp(22px, 2.4vw, 28px)/1.1 var(--mono); letter-spacing: .02em; }
.a-sub { color: var(--ink-2); margin-top: 6px; font-size: 14px; }
.a-facts { display: grid; grid-template-columns: 110px 1fr; gap: 9px 14px; font-size: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.a-facts dt { font: 500 11px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.a-facts dd { margin: 0; color: var(--ink); }

/* ---------- map ---------- */
.a-mapcard { display: flex; flex-direction: column; }
.a-map { position: relative; flex: 1; border-radius: 6px; overflow: hidden; background: radial-gradient(80% 90% at 72% 40%, rgba(76, 154, 255, .06), transparent 70%); }
.a-map canvas { display: block; width: 100%; cursor: crosshair; }
.a-tip {
  position: fixed; z-index: 60; display: grid; gap: 3px; max-width: 280px; padding: 9px 11px; pointer-events: none;
  background: #0d131a; border: 1px solid var(--line-2); border-radius: 6px; font-size: 12.5px; color: var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.a-tip b { font: 600 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- KPIs ---------- */
.a-kpi { display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.a-kpi-label { font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.a-kpi-num { font-size: 34px; font-weight: 600; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.a-kpi-sub { font-size: 11px; color: var(--ink-3); }
.a-spark { position: absolute; right: 14px; bottom: 16px; width: 44%; height: 30px; opacity: .9; }

/* ---------- link graph ---------- */
.a-legend { display: flex; gap: 14px; flex-wrap: wrap; font: 500 11px/1 var(--mono); color: var(--ink-2); }
.a-legend li { display: flex; align-items: center; gap: 6px; }
.a-legend i { width: 10px; height: 10px; display: inline-block; }
.lg-org { background: var(--org); border-radius: 50%; }
.lg-proj { background: var(--proj); border-radius: 2px; }
.lg-award { background: var(--award); transform: rotate(45deg) scale(.85); }
.a-graph { display: block; width: 100%; min-width: 720px; height: auto; }
.g-edge { stroke: #2b3a4c; stroke-width: 1.2; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke .2s, stroke-width .2s, opacity .2s; }
.a-card.in .g-edge { animation: g-draw .9s ease forwards; animation-delay: var(--d); }
@keyframes g-draw { to { stroke-dashoffset: 0; } }
.g-edge.g-award { stroke: rgba(217, 138, 16, .6); stroke-dasharray: 4 4; animation: none !important; stroke-dashoffset: 0; }
.g-node { cursor: pointer; transition: opacity .2s; outline: none; }
.g-hit { fill: transparent; }
.g-center { fill: #0f2340; stroke: var(--blue); stroke-width: 2; }
.g-halo { fill: none; stroke: rgba(76, 154, 255, .25); stroke-width: 1; }
.a-card.in .g-halo { animation: g-halo 3s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes g-halo { 50% { transform: scale(1.18); opacity: .3; } }
.g-in { fill: var(--ink); font: 600 13px var(--mono); text-anchor: middle; }
.g-label { fill: var(--ink-2); font: 500 12px var(--sans); text-anchor: middle; paint-order: stroke; stroke: var(--panel); stroke-width: 4px; stroke-linejoin: round; }
.g-small { font-size: 10.5px; fill: var(--ink-3); }
.g-center + .g-halo + .g-in + .g-label, .g-node[data-id="adam"] .g-label { fill: var(--ink); font: 600 12px var(--mono); letter-spacing: .08em; }
.a-graph.hl .g-node:not(.on) { opacity: .22; }
.a-graph.hl .g-edge { opacity: .15; }
.a-graph.hl .g-edge.on { opacity: 1; stroke: var(--blue); stroke-width: 2; }
.g-node.on .g-label { fill: var(--ink); }
.g-node:focus-visible .g-hit { stroke: var(--blue); stroke-width: 1.5; }

/* ---------- tables ---------- */
.a-tablecard { padding: 0; overflow: hidden; }
.a-toolbar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.a-chipbtn { font: 500 12px/1 var(--mono); padding: 7px 10px; border-radius: 4px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); cursor: pointer; }
.a-chipbtn[aria-pressed="true"] { background: rgba(76, 154, 255, .14); border-color: var(--blue); color: var(--ink); }
.a-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.a-table th { text-align: left; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--panel-2); white-space: nowrap; }
.a-table th button { all: unset; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.a-table th button:hover { color: var(--ink); }
.a-table th button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.a-sort { font-size: 9px; opacity: .7; }
.a-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ink-2); }
.a-table tbody tr:last-child td { border-bottom: 0; }
.a-row { cursor: pointer; transition: background-color .15s; }
.a-row:hover, .a-row.open { background: rgba(76, 154, 255, .05); }
.a-row.flash { animation: a-flash 1.6s ease; }
@keyframes a-flash { 0%, 40% { background: rgba(76, 154, 255, .22); } }
.a-namecell { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.a-namecell img { width: 28px; height: 28px; border-radius: 7px; }
.a-namecell b { font-weight: 600; }
.a-detail td { color: var(--ink-2); background: rgba(76, 154, 255, .04); padding-top: 4px; font-size: 14px; }
.a-pill { display: inline-flex; align-items: center; gap: 5px; font: 600 11px/1 var(--mono); padding: 5px 8px; border-radius: 3px; white-space: nowrap; }
.a-award { color: var(--amber); background: rgba(245, 165, 36, .1); border: 1px solid rgba(245, 165, 36, .35); }

.a-pill.a-live { color: var(--green); background: rgba(62, 207, 142, .08); border: 1px solid rgba(62, 207, 142, .3); }
.a-beta { color: var(--blue); background: rgba(76, 154, 255, .1); border: 1px solid rgba(76, 154, 255, .35); }
.a-links { white-space: nowrap; }
.a-link { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line-2); padding-bottom: 1px; }
.a-link:hover { color: var(--blue); border-color: var(--blue); }
.a-link.sm { font-size: 13px; margin-right: 12px; }
.a-opshead { display: flex; align-items: center; gap: 14px; padding: 14px; border-bottom: 1px solid var(--line); }
.a-opshead p { flex: 1; color: var(--ink-2); font-size: 14px; }
.a-crest { width: 40px; height: 40px; filter: invert(1); opacity: .9; }
.a-tico { width: 26px; height: 26px; padding: 5px; border-radius: 5px; background: var(--panel-2); border: 1px solid var(--line); display: inline-grid; }
.a-tico svg { width: 100%; height: 100%; }
.a-rowdesc { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-3); max-width: 60ch; white-space: normal; }
.a-ops td:first-child { min-width: 320px; }

/* ---------- buttons ---------- */
.a-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 6px; font: 600 13px/1 var(--sans); text-decoration: none; cursor: pointer; border: 1px solid var(--blue); background: var(--blue); color: #061222; }
.a-btn:hover { filter: brightness(1.1); }
.a-btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.a-btn.ghost:hover { border-color: var(--blue); }
.a-btn .ai { width: 15px; height: 15px; }

/* ---------- signals ---------- */
.a-chart svg { display: block; width: 100%; height: auto; }
.c-grid { stroke: var(--line); stroke-width: 1; }
.c-ax { fill: var(--ink-3); font: 500 10.5px var(--mono); }
.c-area { fill: url(#ag); }
.c-line { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; }
.c-cross { stroke: var(--ink-3); stroke-dasharray: 3 3; }
.c-dot { fill: var(--blue); stroke: var(--panel); stroke-width: 2; }
.c-hit { fill: transparent; cursor: crosshair; }
.a-stats h3 { margin-bottom: 12px; }
.a-statlist { display: grid; gap: 0; }
.a-statlist div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.a-statlist div:first-child { border-top: 0; }
.a-statlist dt { font: 500 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.a-statlist dd { margin: 0; font-size: 20px; font-weight: 600; color: var(--ink); text-align: right; }
.a-statlist small { font-size: 11px; color: var(--ink-3); font-weight: 500; }
.a-heat { display: block; width: 100%; height: auto; }

/* ---------- timeline ---------- */
.a-tl { display: block; width: 100%; min-width: 760px; height: auto; }
.tl-band { fill: transparent; }
.tl-row:hover .tl-band, .tl-row:focus .tl-band { fill: rgba(76, 154, 255, .05); }
.tl-row { outline: none; cursor: default; }
.tl-label { fill: var(--ink-2); font: 500 12px var(--sans); }
.tl-row:hover .tl-label { fill: var(--ink); }
.tl-future { fill: rgba(255, 255, 255, .03); stroke-width: 1.2; stroke-dasharray: 3 3; }
.c-today { stroke: var(--green); stroke-width: 1.2; stroke-dasharray: 2 3; }
.c-todayl { fill: var(--green); }
.tl-pulse { animation: tl-pulse 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes tl-pulse { 50% { transform: scale(1.7); opacity: .4; } }
.tl-bar { transform-box: fill-box; transform-origin: left; }
.a-card.in .tl-bar { animation: tl-grow .8s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes tl-grow { from { transform: scaleX(0); } }

/* ---------- dossier ---------- */
.a-file { background: linear-gradient(180deg, #121a23, var(--panel)); }
.a-filehead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px dashed var(--line-2); }
.a-filehead .a-note { flex: 1; margin: 0; }
.a-stamp { font: 700 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; padding: 7px 10px; border: 2px solid #e5484d; color: #ff6b6f; transform: rotate(-2deg); }
.a-stamp.ok { border-color: var(--green); color: var(--green); }
.a-filebody { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 22px 28px; overflow: hidden; }
.a-filebody section.wide { grid-column: 1 / -1; }
.a-filebody h4 { font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.a-rows li { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.a-rows li:first-child { border-top: 0; }
.a-rows li b { color: var(--ink); font-weight: 600; }
.a-rows.stack li { flex-direction: column; }
.a-cert { columns: 2 260px; column-gap: 28px; }
.a-cert li { break-inside: avoid; padding: 6px 0 6px 16px; position: relative; color: var(--ink-2); font-size: 14px; }
.a-cert li::before { content: "▸"; position: absolute; left: 0; color: var(--ink-3); }
.rd { background: #05080b; color: transparent; border-radius: 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; user-select: none; transition: background-color .25s ease, color .25s ease; transition-delay: var(--d, 0ms); }
.a-file.open .rd { background: transparent; color: inherit; user-select: auto; }
.a-file.nomotion .rd { transition: none; }
.a-scanline { position: absolute; left: 0; right: 0; top: -10%; height: 70px; pointer-events: none; opacity: 0; background: linear-gradient(180deg, transparent, rgba(76, 154, 255, .18) 70%, rgba(140, 194, 255, .9) 98%, transparent); }
.a-file.scanning .a-scanline { animation: a-scan 1.25s linear forwards; }
@keyframes a-scan { 0% { top: -70px; opacity: 1; } 95% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* ---------- contact ---------- */
.a-term { padding: 0; overflow: hidden; background: #0b1016; }
.a-term-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--panel-2); font: 500 11px/1 var(--mono); color: var(--ink-3); }
.a-term-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.a-term-bar span { margin-left: 8px; }
.a-term-body { padding: 18px; font-size: 13.5px; line-height: 1.8; display: grid; gap: 2px; }
.a-term-body .pr { color: var(--blue); margin-right: 6px; }
.a-term-body .ok { color: var(--green); font-weight: 600; }
.a-caret { display: inline-block; width: 8px; height: 15px; background: var(--ink); vertical-align: -2px; animation: a-blink 1s steps(1) infinite; }
@keyframes a-blink { 50% { opacity: 0; } }
.a-term-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 0 18px 18px; }
.a-term-actions .mono { font-size: 12px; }
.a-socials li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.a-socials li:first-child { border-top: 0; margin-top: 8px; }
.a-socials .mono { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.a-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12.5px; }
.a-foot .mono { font-size: 11px; letter-spacing: .08em; }

/* ---------- command palette ---------- */
.a-palette { position: fixed; inset: 0; z-index: 70; background: rgba(3, 6, 10, .6); backdrop-filter: blur(3px); display: grid; justify-items: center; align-items: start; padding-top: 12vh; }
.a-palette[hidden] { display: none; }
.a-pal-box { width: min(620px, calc(100vw - 24px)); background: #0f151c; border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); overflow: hidden; animation: a-pop .18s ease; }
@keyframes a-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.a-pal-in { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.a-pal-in input:focus-visible { outline: none; }
.a-pal-in input { flex: 1; background: none; border: 0; outline: none; color: var(--ink); font: 15px/1.4 var(--sans); }
.a-pal-list { max-height: 50vh; overflow-y: auto; padding: 6px; }
.a-pal-g { font: 600 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding: 10px 10px 6px; }
.a-pal-it { display: flex; width: 100%; justify-content: space-between; gap: 12px; padding: 9px 10px; border: 0; border-radius: 6px; background: none; color: var(--ink); font: 14px/1.3 var(--sans); cursor: pointer; text-align: left; }
.a-pal-it .mono { font-size: 11.5px; }
.a-pal-it.sel { background: rgba(76, 154, 255, .14); box-shadow: inset 2px 0 0 var(--blue); }
.a-pal-empty { padding: 18px; color: var(--ink-3); text-align: center; }
.a-pal-hint { padding: 9px 14px; border-top: 1px solid var(--line); font: 500 11px/1 var(--mono); color: var(--ink-3); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .a-clock span:first-child, .a-crumbs span, .a-crumbs i { display: none; }
  .span-5, .span-7 { grid-column: span 12; }
  .span-3 { grid-column: span 6; }
  .span-8, .span-4 { grid-column: span 12; }
}
@media (max-width: 900px) {
  .atlas { --rail: 0px; font-size: 15px; }
  .a-bar { gap: 10px; padding: 0 10px; }
  .a-brand { width: auto; border: 0; padding-right: 2px; }
  .a-crumbs, .a-clock, .a-livebadge { display: none; }
  .a-search { min-width: 0; margin-left: auto; padding: 8px; }
  .a-search span, .a-search kbd { display: none; }
  .a-seg button { padding: 8px 7px; }
  .a-skin button[aria-pressed="true"] { display: none; }
  .a-skin button + button { border-left: 0; }
  .a-rail {
    top: auto; bottom: 0; width: 100%; height: calc(62px + env(safe-area-inset-bottom)); flex-direction: row; padding: 0 4px env(safe-area-inset-bottom);
    border-right: 0; border-top: 1px solid var(--line); justify-content: space-between;
  }
  .a-rail a { flex: 1; padding: 9px 0 6px; font-size: 9.5px; gap: 4px; }
  .a-rail a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .a-rail a.on::before { left: 18%; right: 18%; top: 0; bottom: auto; width: auto; height: 2px; }
  .a-main { padding: calc(var(--bar) + 18px) 14px calc(84px + env(safe-area-inset-bottom)); }
  .span-3 { grid-column: span 6; }
  .a-filebody { grid-template-columns: 1fr; }
  .a-facts { grid-template-columns: 96px 1fr; }
  .a-kpi-num { font-size: 28px; }
  .a-spark { display: none; }
  .a-head { flex-wrap: wrap; }
  .a-meta { margin-left: 0; width: 100%; }
}
@media (max-width: 640px) {
  /* tables become stacked record cards */
  .a-table, .a-table tbody, .a-table tr, .a-table td { display: block; min-width: 0; width: 100%; }
  .a-table thead { display: none; }
  .a-table .a-row, .a-ops tbody tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 14px; border-bottom: 1px solid var(--line); }
  .a-table td { padding: 0; border: 0; }
  .a-table .a-row td:nth-child(1) { grid-column: 1; }
  .a-table .a-row td:nth-child(4) { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; }
  .a-table .a-row td:nth-child(2), .a-table .a-row td:nth-child(3) { grid-column: 1 / -1; display: inline; font-size: 13px; color: var(--ink-3); }
  .a-table .a-row td:nth-child(2) { padding-left: 38px; }
  .a-table .a-row td:nth-child(3)::before { content: "· "; }
  .a-table .a-row td:nth-child(2), .a-table .a-row td:nth-child(3) { grid-column: auto; }
  .a-table .a-row { grid-template-areas: "name status" "meta meta" "links links"; }
  .a-table .a-row td:nth-child(1) { grid-area: name; }
  .a-table .a-row td:nth-child(4) { grid-area: status; }
  .a-table .a-row td:nth-child(5) { grid-area: links; padding-left: 38px; white-space: normal; }
  .a-table .a-row td:nth-child(2) { grid-area: meta; }
  .a-table .a-row td:nth-child(3) { display: none; }
  .a-detail td { padding: 0 14px 14px 52px; border-bottom: 1px solid var(--line); }
  .a-ops tbody tr { grid-template-columns: 1fr; }
  .a-opshead { display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
  .a-opshead > .a-btn { grid-column: 1 / -1; justify-self: start; }
  .a-ops td:first-child { min-width: 0; }
  .a-ops td:nth-child(2) { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-left: 36px; }
  .a-ops td:nth-child(3) { padding-left: 36px; white-space: normal; }
  .a-rowdesc { padding-left: 36px; }
  .a-link.sm { margin: 4px 14px 0 0; }
}
@media (max-width: 520px) {
  .a-subj-top { flex-direction: column; align-items: flex-start; }
  .a-socials li { flex-direction: column; align-items: flex-start; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .atlas *, .atlas *::before, .atlas *::after { animation: none !important; transition: none !important; }
  .a-card { opacity: 1; transform: none; }
  .g-edge { stroke-dashoffset: 0; }
}

/* =========================================================
   Analyst pass — flatter, denser, sharper. Gray-scale surfaces,
   one blue intent, 2–3px corners, sans labels (mono only for data).
   ========================================================= */
.atlas {
  --bg: #111418; --panel: #1c2127; --panel-2: #252a31; --line: #2f343c; --line-2: #404854;
  --ink: #f6f7f9; --ink-2: #c5cbd3; --ink-3: #8f99a8;
  --blue: #4c90f0; --blue-fill: #2d72d2; --green: #72ca9b; --amber: #fbb360;
  --org: #4c90f0; --proj: #29a16a; --award: #d68a2e;
  --label: 600 11px/1.3 var(--sans);
  background: var(--bg); background-image: none;
}
.a-card { border-radius: 3px; border-color: var(--line); box-shadow: 0 0 0 1px rgba(17, 20, 24, .4), 0 1px 1px rgba(17, 20, 24, .4); }
.a-card::before, .a-card::after { display: none; }

/* labels: sans, small caps-style */
.a-card h3, .a-facts dt, .a-kpi-label, .a-table th, .a-statlist dt, .a-filebody h4, .a-pal-g, .a-meta, .a-legend, .a-chip, .a-pill,
.a-ops td:nth-child(2) {
  font: var(--label); letter-spacing: .04em; text-transform: uppercase;
}
.a-card h3 { color: var(--ink-3); }
.a-legend, .a-pill { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12px; }
.a-head h2 { font-size: 18px; }
.a-idx { color: var(--ink-3); font-weight: 500; }
.a-meta { color: var(--ink-3); font-weight: 500; }

/* navbar */
.a-bar { height: 50px; background: var(--panel-2); border-bottom: 0; box-shadow: 0 0 0 1px rgba(17, 20, 24, .4), 0 1px 1px rgba(17, 20, 24, .4); backdrop-filter: none; }
.a-brand { border-right-color: var(--line); }
.a-crumbs { font: 500 13px/1 var(--sans); color: var(--ink-3); }
.a-crumbs::before { font: 700 14px/1 var(--sans); letter-spacing: .02em; color: var(--ink); margin-right: 14px; padding-right: 14px; border-right: 1px solid var(--line-2); }
.a-search { border: 0; border-radius: 3px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); }
.a-search:hover { box-shadow: inset 0 0 0 1px var(--blue); }
.a-search kbd, .atlas kbd { border-radius: 2px; background: var(--panel-2); font-family: var(--sans); }
.a-clock { font-family: var(--mono); font-size: 12px; }
.a-clock em { font: 600 11px/1 var(--sans); letter-spacing: .04em; }
.a-livebadge { font: 600 11px/1 var(--sans); letter-spacing: .04em; color: var(--green); }
.a-livebadge i { background: #32a467; }

/* button groups */
.a-seg { border: 0; border-radius: 3px; background: var(--line); gap: 1px; padding: 0; }
.a-seg button { font: 500 12px/1 var(--sans); letter-spacing: 0; padding: 8px 10px; color: var(--ink-2); background: var(--line); }
.a-seg button + button { border-left: 0; }
.a-seg button[aria-pressed="true"] { background: var(--blue-fill); color: #fff; }
.a-seg button:not([aria-pressed="true"]):hover { background: #383e47; color: var(--ink); }

/* rail */
.a-rail { background: var(--panel); border-right-color: var(--line); }
.a-rail a { margin: 0 6px; border-radius: 3px; padding: 9px 2px; }
.a-rail a:hover { background: rgba(143, 153, 168, .12); }
.a-rail a.on { background: rgba(45, 114, 210, .2); color: #8abbff; }
.a-rail a.on::before { display: none; }
.a-rail a.on .ai { stroke: #8abbff; }

/* buttons, chips, tags */
.a-btn { border: 0; border-radius: 3px; background: var(--blue-fill); color: #fff; font: 500 13px/1 var(--sans); padding: 9px 14px; box-shadow: inset 0 0 0 1px rgba(17, 20, 24, .2); }
.a-btn:hover { background: #215db0; filter: none; }
.a-btn.ghost { background: var(--line); color: var(--ink); border: 0; }
.a-btn.ghost:hover { background: #383e47; }
.a-chipbtn { font: 500 12px/1 var(--sans); border: 0; border-radius: 3px; background: var(--line); color: var(--ink-2); }
.a-chipbtn:hover { background: #383e47; color: var(--ink); }
.a-chipbtn[aria-pressed="true"] { background: var(--blue-fill); color: #fff; border: 0; }
.a-chip { border: 0; border-radius: 2px; padding: 4px 7px; color: var(--green); background: rgba(35, 133, 81, .25); font-size: 10.5px; }
.a-pill { border: 0 !important; border-radius: 2px; padding: 4px 8px; }
.a-award { background: rgba(200, 118, 25, .25); color: var(--amber); }
.a-pill.a-live { background: rgba(35, 133, 81, .25); color: var(--green); }
.a-beta { background: rgba(45, 114, 210, .25); color: #8abbff; }
.a-link { color: #8abbff; border-bottom: 0; }
.a-link:hover { color: #b3d5ff; text-decoration: underline; }
.a-photo { border-radius: 2px; border-color: var(--line-2); }
.a-ret { border-color: rgba(76, 144, 240, .65); }
.a-tico { border-radius: 2px; color: var(--ink-2); display: inline-grid; place-items: center; padding: 4px; }
.a-tico .ai { width: 16px; height: 16px; }

/* tables */
.a-table th { background: var(--panel-2); color: var(--ink-3); }
.a-table td { border-bottom-color: var(--line); }
.a-row:hover, .a-row.open { background: rgba(143, 153, 168, .08); }
.a-detail td { background: rgba(143, 153, 168, .05); }
.a-toolbar, .a-opshead { border-bottom-color: var(--line); }

/* map + tooltip + palette */
.a-map { background: none; }
.a-tip { border-radius: 3px; background: #383e47; border: 0; box-shadow: 0 2px 4px rgba(17, 20, 24, .4), 0 8px 24px rgba(17, 20, 24, .4); }
.a-tip b { font: 600 12px/1.2 var(--sans); letter-spacing: 0; text-transform: none; }
.a-pal-box { border-radius: 4px; background: var(--panel-2); border: 0; }
.a-pal-it { border-radius: 2px; }
.a-pal-it.sel { background: var(--blue-fill); box-shadow: none; }
.a-pal-it.sel .dim { color: #dce9ff; }
.a-pal-hint { font-family: var(--sans); }

/* charts */
.c-ax { font-family: var(--sans); font-size: 11px; }
.c-line { stroke: var(--blue); }
.c-dot { fill: var(--blue); }
.g-center { fill: #1c3460; stroke: var(--blue); }
.g-halo { stroke: rgba(76, 144, 240, .25); }
.g-label { stroke: var(--panel); }
.g-node[data-id="adam"] .g-label { font: 700 12px var(--sans); letter-spacing: .04em; }
.g-in { font: 700 13px var(--sans); }
.a-graph.hl .g-edge.on { stroke: var(--blue); }

/* dossier */
.a-file { background: var(--panel); }
.a-filehead { border-bottom-style: solid; border-bottom-color: var(--line); }
.a-stamp { transform: none; border-width: 1px; border-radius: 2px; font: 700 11px/1 var(--sans); letter-spacing: .14em; color: #fa999c; border-color: #cd4246; background: rgba(205, 66, 70, .15); }
.a-stamp.ok { color: var(--green); border-color: #238551; background: rgba(35, 133, 81, .2); }
.rd { background: #000; }
.a-cert li::before { content: "—"; }

/* contact */
.a-term { background: #0d1014; }
.a-term-bar { background: var(--panel-2); }
.a-socials .mono { font: var(--label); letter-spacing: .04em; }
.a-foot .mono { font-family: var(--sans); letter-spacing: .04em; }

/* notifications (toasts live outside #atlas) */
[data-skin="atlas"] .a-toast {
  display: flex; align-items: flex-start; gap: 10px; width: min(380px, calc(100vw - 24px)); padding: 11px 14px 11px 12px;
  background: #383e47; color: #f6f7f9; border-radius: 3px; font: 400 13.5px/1.4 Inter, system-ui, sans-serif;
  box-shadow: inset 3px 0 0 #2d72d2, 0 2px 4px rgba(17, 20, 24, .4), 0 8px 24px rgba(17, 20, 24, .4);
  animation: atlas-toast .25s cubic-bezier(.2, .8, .2, 1) both;
}
[data-skin="atlas"] .a-toast.warn { box-shadow: inset 3px 0 0 #c87619, 0 2px 4px rgba(17, 20, 24, .4), 0 8px 24px rgba(17, 20, 24, .4); }
[data-skin="atlas"] .a-toast.out { animation: atlas-toast-out .25s ease both; }
[data-skin="atlas"] .a-toast b { display: block; font-weight: 600; font-size: 13px; margin-bottom: 1px; }
[data-skin="atlas"] .a-toast-ico { color: #8abbff; padding-top: 1px; }
[data-skin="atlas"] .a-toast.warn .a-toast-ico { color: #fbb360; }
[data-skin="atlas"] .a-toast .ai { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.boot { background: #111418; color: #abb3bf; }
.boot p.ok { color: #72ca9b; }
.atlas .a-link { color: #8abbff; }
.atlas .a-link:hover { color: #b3d5ff; }


/* ---------- map v2: inset, legend ---------- */
.a-map { position: relative; flex: none; }
.a-inset {
  position: absolute; left: 31%; bottom: 8px; width: 37%; overflow: hidden;
  background: rgba(17, 20, 24, .94); border: 1px solid var(--line-2); border-radius: 3px;
  box-shadow: 0 2px 4px rgba(17, 20, 24, .4), 0 8px 24px rgba(17, 20, 24, .5);
}
.a-inset canvas { display: block; width: 100%; cursor: crosshair; }
.a-inset-tag { position: absolute; left: 8px; top: 7px; z-index: 1; pointer-events: none; font: var(--label); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.a-maplegend { margin-top: 12px; }
.lg-home { background: var(--org); border-radius: 50%; box-shadow: 0 0 0 3px rgba(76, 144, 240, .28); }
.a-mapcard { justify-content: space-between; }
@media (max-width: 640px) {
  .a-inset { position: relative; left: auto; bottom: auto; width: 100%; margin-top: 10px; }
}

/* ---------- heatmap + timeline: pinned labels, open on today ---------- */
.a-heatwrap, .a-tlwrap { display: flex; align-items: flex-start; }
.a-heatwrap > .a-scroll, .a-tlwrap > .a-scroll { flex: 1; min-width: 0; padding-bottom: 10px; }
.atlas .a-heat, .atlas .a-tl { display: block; width: auto; min-width: 0; max-width: none; height: auto; }
.a-daylabels { flex: none; width: 36px; }
.a-daylabels li { font: 500 11px var(--sans); color: var(--ink-3); }
.a-tl-labels { flex: none; width: 270px; border-right: 1px solid var(--line); }
.a-tl-labels li { display: flex; align-items: center; gap: 8px; height: 30px; padding-right: 12px; font: 500 12.5px/30px var(--sans); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: default; }
.a-tl-labels li i { flex: none; width: 6px; height: 6px; border-radius: 1px; }
.a-tl-labels li.hl, .tl-row.hl .tl-band { color: var(--ink); background: rgba(76, 144, 240, .07); fill: rgba(76, 144, 240, .07); }
.a-scroll[data-heatscroll], .a-scroll[data-tlscroll] { -webkit-mask-image: none; mask-image: none; }
.a-scroll.can-left { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 36px); mask-image: linear-gradient(90deg, transparent 0, #000 36px); }
.a-scroll.can-left.can-right { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - 24px), transparent); }
@media (max-width: 640px) {
  .a-tl-labels { width: 132px; }
  .a-tl-labels li { font-size: 12px; padding-right: 8px; }
  .a-daylabels { width: 30px; }
}

.a-tl-labels li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
