/* Training Atlas. 지도 데이터와 기존 훈련 흐름을 유지하는 홈 전용 표면. */
@font-face { font-family: "Pretendard Variable"; src: url("assets/fonts/PretendardVariable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
.home-page { --font: "Pretendard Variable", -apple-system, "Malgun Gothic", sans-serif; font-family: var(--font); container: home / inline-size; }
.home-page .topbar-search { display: flex; max-width: 480px; background: var(--surface); }
.atlas {
  --atlas-mint: #b0f4d6; --atlas-muted: #9eb4c2;
  --atlas-card-surface: #173848d6; --atlas-card-active: #254c57e6;
  --atlas-card-ink: #edf7f8; --atlas-card-muted: #c0d2dc; --atlas-badge-surface: #153544cc;
  --atlas-inset: clamp(24px, 3vw, 44px);
  --atlas-height: clamp(620px, calc(100svh - 220px), 980px);
  container-type: inline-size; position: relative; isolation: isolate; overflow: hidden;
  width: min(1600px, calc(100% - 48px));
  margin: 12px 24px 0; padding: 32px var(--atlas-inset) 0; color: #edf5f7;
  background: radial-gradient(ellipse at 52% 44%, #173d50, #0b2333 50%, #091d2b 85%);
  border: 1px solid #203d4b; border-radius: 8px;
  box-shadow: none;
}
.atlas button { color: inherit; font: inherit; cursor: pointer; }
.atlas button:disabled { cursor: default; }
.atlas :focus-visible { outline: 2px solid var(--atlas-mint); outline-offset: 5px; }
.atlas-header, .atlas-header-actions, .atlas-toolbar, .atlas-toolbar nav { display: flex; align-items: center; }
.atlas-header { justify-content: space-between; gap: 24px; }
.atlas-header h2 { margin: 0; font-size: 18px; line-height: 28px; font-weight: 600; letter-spacing: 0; }
.atlas-hint:empty { display: none; }
.atlas-eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; color: #b0c6d3; font-size: 12px; line-height: 1.3; font-weight: 500; letter-spacing: .04em; }
.atlas-eyebrow > span { display: none; }
.atlas-eyebrow i { margin-left: 8px; padding-left: 16px; color: #9bb2c1; border-left: 1px solid #46606d; font-size: 12px; font-style: normal; font-weight: 400; letter-spacing: .02em; }
.atlas h1 { margin: 0; font-size: clamp(30px, 2.8vw, 44px); line-height: 1.24; font-weight: 550; letter-spacing: -.045em; }
.atlas h1 em { color: #c8f4e2; font-style: normal; font-weight: 450; }
.atlas-header-actions { gap: 24px; flex-shrink: 0; }
.atlas-header-status { display: grid; gap: 5px; text-align: right; }
.atlas-update { color: #9cb4c2; font-size: 12px; font-variant-numeric: tabular-nums; }
.atlas-update button { text-decoration: underline; text-underline-offset: 4px; }
.atlas button.atlas-start { display: inline-flex; align-items: center; gap: 30px; min-height: 46px; padding: 12px 20px; color: #163e34; background: #c8f4e2; border: 1px solid #d4ffe6; border-radius: 9px; font-size: 14px; font-weight: 600; transition: background .2s, transform .2s; }
.atlas-start:hover { background: #e0fff0 !important; transform: translateY(-2px); }
.atlas-start svg, .atlas-card-title svg, .atlas-selection svg { width: 17px; height: 17px; }
.atlas-toolbar { flex-shrink: 0; gap: 12px; }
.atlas-toolbar nav { gap: 13px; min-height: 32px; font-size: 14px; }
.atlas-toolbar nav button { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; color: var(--atlas-mint); }
.atlas-toolbar nav button:disabled { color: #cbdce3; }
.atlas-toolbar nav svg { width: 14px; height: 14px; transform: rotate(180deg); }
.atlas-toolbar nav button:disabled svg { display: none; }
.atlas-breadcrumb-divider { color: #55717f; }
.atlas-toolbar strong { font-size: 14px; font-weight: 450; color: #95b0c1; }
.atlas-hint { display: block; margin-top: 6px; color: var(--atlas-muted); font-size: 13px; line-height: 1.5; }
.atlas-hint button { margin-left: 8px; color: var(--atlas-mint); text-decoration: underline; text-underline-offset: 3px; }
.atlas-directory-bar { display: flex; align-items: center; gap: 18px; min-height: 64px; margin-top: 14px; border-top: 1px solid #47657466; border-bottom: 1px solid #47657466; }
.atlas-areas { display: flex; align-items: center; gap: 3px; }
.atlas-areas button { min-height: 36px; padding: 7px 13px; border: 1px solid transparent; border-radius: 7px; color: #afc5d0; font-size: 14px; white-space: nowrap; transition: color .2s, background .2s; }
.atlas-areas button:hover { color: #e1faed; background: #a6ecc908; }
.atlas-areas button[aria-pressed="true"] { color: #dcf9ef; background: #2c4d59; border-color: #4f707b; }
.atlas-directory-info { color: #a0b9c6; font-size: 12px; letter-spacing: .015em; white-space: nowrap; }
.atlas [hidden] { display: none !important; }
.atlas-stage { position: relative; width: min(100%, calc(var(--atlas-height) * 1.697)); aspect-ratio: 1120 / 660; margin: 0 auto; }
.atlas-viewport { position: absolute; inset: 0; overflow: hidden; }
.atlas-map { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: none; }
.atlas-geography { transform-origin: 0 0; transition: transform 1150ms cubic-bezier(.2, .82, .2, 1); }
.atlas-land { fill: url(#atlasLandFill); stroke: #b2d3d9; stroke-width: .7; stroke-linejoin: round; filter: url(#atlasLandShadow); }
.atlas-land path { transition: fill .45s, stroke .45s, opacity .45s; vector-effect: non-scaling-stroke; }
.atlas-land-depth { fill: #102d3b; stroke: #4c7181; stroke-width: 1; transform: translate(0, 11px); }
.atlas-land-depth path { vector-effect: non-scaling-stroke; }
.atlas-land-shelf { opacity: .6; transform: translate(0, -5px); }
.atlas-land .is-covered { fill: #5d8ea2; }
.atlas-land .is-highlighted { fill: #a2d3cb; stroke: #e3fff3; stroke-width: 1.2; }
.atlas-stage.is-inspecting .atlas-land path:not(.is-highlighted) { opacity: .72; }
.atlas[data-level="office"] .atlas-land { stroke: #5b8190; }
.atlas[data-level="office"] .atlas-land .is-region-selected { fill: #416f7b; stroke: #afdcd4; stroke-width: 1.1; }
.atlas-sea-labels { fill: #819fad; font-size: inherit; letter-spacing: 0; }
.atlas:not([data-level="national"]) .atlas-sea-labels { opacity: 0; }
.atlas-compass { fill: #8ba6b7; stroke: #8ba6b7; stroke-width: .7; font-size: inherit; text-anchor: middle; }
.atlas-compass text { stroke: none; }
.atlas-connector { fill: none; stroke: #b4dbd4; stroke-opacity: .32; stroke-width: .7; vector-effect: non-scaling-stroke; }
.atlas-line-tracer { fill: none; stroke: #d7fbea; stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: .04 .96; opacity: 0; }
.atlas-pin { color: var(--atlas-mint); cursor: pointer; }
.atlas-pin-hit { fill: transparent; }
.atlas-pin-arrival { animation: atlas-pin-in .65s cubic-bezier(.2,.7,.3,1) var(--arrival) both; }
.atlas-pin-halo { fill: none; stroke: #b9f6db; stroke-width: 1; opacity: 0; pointer-events: none; }
.atlas-pin-body { filter: drop-shadow(0 2px 4px #06192340); transition: transform .25s, filter .25s; }
.atlas-pin-bezel { fill: var(--atlas-badge-surface); stroke: #acd4d680; stroke-width: 1; transition: fill .25s, stroke .25s; }
.atlas-pin-dial { fill: none; stroke: #94c3c44d; stroke-width: 1.6; }
.atlas-pin-progress { fill: none; stroke: #c1f9df; stroke-width: 2.2; stroke-dasharray: var(--atlas-progress, 0) 100; animation: atlas-meter-in 1s ease-out var(--arrival) both; }
.atlas-pin-index { fill: #e9fff5; font-size: inherit; font-weight: 600; font-variant-numeric: tabular-nums; pointer-events: none; }
.atlas-pin[data-metric-state="unlinked"] .atlas-pin-dial { stroke-dasharray: 2 3; stroke: #91a9bc; }
.atlas-pin-stem { fill: none; stroke: #b5dfd7; stroke-width: 1; opacity: .3; }
.atlas-pin-ground { fill: #c3fbe0; stroke: #dbfff0; stroke-width: .7; opacity: .4; }
.atlas-pin.is-highlighted .atlas-pin-stem, .atlas-pin.is-highlighted .atlas-pin-ground { opacity: .85; }
.atlas-pin-label { fill: #e7f4f2; stroke: #0d2533; stroke-width: 4px; paint-order: stroke fill; font-size: 15px; font-weight: 550; opacity: 0; pointer-events: none; transition: opacity .2s; }
.atlas-pin.is-highlighted .atlas-pin-label, .atlas-pin:focus-visible .atlas-pin-label { opacity: 1; }
.atlas-pin.is-highlighted .atlas-pin-body { transform: scale(1.06); filter: drop-shadow(0 3px 6px #06192366); }
.atlas-pin.is-highlighted .atlas-pin-bezel { fill: var(--atlas-card-active); stroke: #d3f5e3; }
.atlas-pin.is-highlighted .atlas-pin-halo { animation: atlas-focus-ring .8s ease-out both; }
.atlas-pin:focus-visible { outline: none; }
.atlas-pin:focus-visible .atlas-pin-bezel { stroke: #fff; stroke-width: 2; }
.atlas-card {
  position: absolute; top: var(--card-y); left: 0; width: 25.7%; height: var(--card-height); display: flex; flex-direction: column; justify-content: space-between; gap: 0;
  padding: clamp(12px, 1.1cqw, 17px) clamp(14px, 1.4cqw, 22px); color: var(--atlas-card-ink); text-align: left; background: var(--atlas-card-surface);
  border: 1px solid #94bfc33d; border-radius: 12px; backdrop-filter: blur(14px);
  box-shadow: 0 6px 18px #020c1326, inset 0 1px 0 #e1ffef0a;
  animation: atlas-card-in .8s cubic-bezier(.2,.7,.3,1) var(--arrival) both;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.atlas-card[data-side="right"] { left: auto; right: 0; }
.atlas-card-emblem { position: absolute; z-index: 1; top: 50%; right: -16px; width: 32px; height: 32px; display: grid; place-items: center; translate: 0 -50%; filter: drop-shadow(0 2px 4px #05182133); transition: transform .25s; }
.atlas-card[data-side="right"] .atlas-card-emblem { right: auto; left: -16px; }
.atlas-card-emblem svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.atlas-emblem-face { fill: var(--atlas-badge-surface); stroke: #acd4d680; stroke-width: 1; transition: fill .25s; }
.atlas-emblem-track { fill: none; stroke: #94c3c44d; stroke-width: 1.5; }
.atlas-emblem-progress { fill: none; stroke: #c1f9df; stroke-width: 2; stroke-dasharray: var(--atlas-progress, 0) 100; animation: atlas-meter-in 1s ease-out var(--arrival) both; }
.atlas-card-emblem b { position: relative; color: #e9fff5; font-size: 12px; font-weight: 550; font-variant-numeric: tabular-nums; }
.atlas-card[data-metric-state="unlinked"] .atlas-emblem-track { stroke-dasharray: 2 3; }
.atlas-card.is-highlighted .atlas-card-emblem, .atlas-card[aria-pressed="true"] .atlas-card-emblem { transform: scale(1.06); }
.atlas-card.is-highlighted .atlas-emblem-face { fill: var(--atlas-card-active); stroke: #d3f5e3; }
.atlas-card-kicker { display: none; justify-content: space-between; color: var(--atlas-card-muted); font-size: 12px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.atlas-card-kicker > span:last-child { color: var(--atlas-card-muted); font-size: 12px; }
.atlas-card-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--atlas-card-ink); font-size: 16px; font-weight: 600; letter-spacing: -.025em; }
.atlas-card-title svg { flex-shrink: 0; color: var(--atlas-card-muted); width: 15px; transition: transform .25s; }
.atlas-card-result { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.atlas-card-result strong { color: var(--atlas-mint); font-size: clamp(30px, 2.5vw, 38px); line-height: 1; font-weight: 500; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.atlas-card-result strong small { margin-left: 3px; font-size: 14px; font-weight: 400; color: var(--atlas-card-muted); }
.atlas-card-result em { padding: 3px 6px; color: var(--atlas-card-muted); background: #05192340; border: 1px solid #a8cbd326; border-radius: 4px; font-size: 12px; font-style: normal; font-weight: 450; }
.atlas-card-result em.is-met { color: #c8f4e1; background: #80d7b91a; border-color: #a4e1c640; }
.atlas-card-track { position: relative; height: 3px; margin-top: 1px; background: #bfdedc26; border-radius: 2px; }
.atlas-card-track > i { display: block; height: 100%; width: var(--rate); background: var(--atlas-mint); border-radius: inherit; transform-origin: left; animation: atlas-bar-in .95s var(--arrival) both; }
.atlas-card-track > span { position: absolute; top: -2px; left: 90%; height: 7px; width: 1px; background: #adcbd499; }
.atlas-card.is-pending .atlas-card-track { background: repeating-linear-gradient(90deg, #b8d4da33 0 5px, transparent 5px 8px); }
.atlas-card.is-pending .atlas-card-track > span { display: none; }
.atlas-card.is-pending .atlas-card-result strong { color: var(--atlas-card-ink); }
.atlas-card.is-pending .atlas-card-result strong small { font-size: 13px; }
.atlas-card[data-metric-state="empty"],
.atlas-card[data-metric-state="unlinked"],
.atlas-card.is-pending {
  background: #1a3a48e6;
  border-color: #8cb3be66;
  color: #edf7f8;
  opacity: 1;
  animation: none;
}
.atlas-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 7px; font-size: 12px; color: var(--atlas-card-muted); font-variant-numeric: tabular-nums; }
.atlas-card.is-highlighted, .atlas-card[aria-pressed="true"], .atlas-card:hover { border-color: #bae7d599; background: var(--atlas-card-active); box-shadow: 0 8px 24px #020c1340, inset 0 1px 0 #dcfff01a; }
.atlas-card.is-highlighted .atlas-card-title svg { color: var(--atlas-mint); transform: translateX(3px); }
.atlas-stage [data-atlas-key] { transition-property: opacity, fill, stroke, border-color, background, box-shadow; transition-duration: .3s; }
/* 연결선만 필요할 때 드러내고, 모든 본부 배지와 실적 카드는 항상 유지합니다. */
#atlasLines > [data-atlas-key] { opacity: 0; pointer-events: none; }
#atlasLines > .is-highlighted { opacity: 1; }
.atlas-stage.is-inspecting .atlas-pin:not(.is-highlighted) { opacity: .8; }
#atlasLines .is-highlighted .atlas-line-tracer { animation: atlas-link-focus .85s ease-out both; }
.atlas-map-caption { position: absolute; left: 0; bottom: 11px; margin: 0; color: #819eae; font-size: 12px; }
.atlas-loading { position: absolute; top: 43%; width: 100%; text-align: center; color: #c7dedc; font-size: 15px; }
.atlas-empty { position: absolute; top: 25%; left: 0; width: 27%; padding: 25px 20px; border: 1px solid #8cb3be35; border-radius: 6px; background: #19313fcc; backdrop-filter: blur(18px); }
.atlas-empty > span { font-size: 12px; letter-spacing: .08em; color: #a8c1cb; }
.atlas-empty h2 { margin: 15px 0 20px; color: #edf5f7; font-size: 25px; font-weight: 450; }
.atlas-empty p { font-size: 16px; line-height: 1.75; color: #bcd0d9; }
.atlas-unmapped { position: absolute; left: 0; right: 0; bottom: 24px; margin: 0; color: #e1cfa4; font-size: 13px; }
.atlas-selection { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 0; border-top: 1px solid #45607155; }
.atlas-selection-dot { width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: var(--atlas-mint); }
.atlas-selection p { margin: 0; color: #aec4d1; font-size: 13px; line-height: 1.5; }
.atlas-source { margin-left: auto; color: #b8d3d3; font-size: 12px; white-space: nowrap; text-decoration: underline; text-underline-offset: 4px; }
.atlas-source:hover { color: #e4ffeb; }
.atlas-selection button { display: inline-flex; align-items: center; gap: 12px; margin-left: 10px; padding: 6px 0 6px 14px; color: var(--atlas-mint); font-size: 13px; white-space: nowrap; }
.atlas-footer { display: flex; align-items: center; gap: 34px; margin-inline: calc(-1 * var(--atlas-inset)); padding: 26px var(--atlas-inset); color: var(--ink); background: var(--surface); border-top: 1px solid var(--line); }
.atlas-footer :focus-visible { outline-color: var(--accent); }
.atlas-main-stat { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 7px 20px; min-width: 230px; }
.atlas-main-stat > span { grid-column: 1 / -1; color: var(--ink-2); font-size: 14px; }
.atlas-main-stat strong { color: var(--accent); font-size: 48px; line-height: 1; font-weight: 500; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.atlas-main-stat small { color: var(--ink-3); font-size: 12px; }
.atlas-stats { display: flex; align-items: center; justify-content: space-around; flex: 1; gap: 32px; margin: 0; padding-left: 32px; border-left: 1px solid var(--line); }
.atlas-stats div { display: grid; gap: 9px; }
.atlas-stats dt { color: var(--ink-2); font-size: 14px; }
.atlas-stats dd { margin: 0; color: var(--ink); font-size: 34px; line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.atlas-legend { display: grid; gap: 6px; margin-left: auto; color: var(--ink-3); font-size: 12px; }
.atlas-legend span { display: flex; align-items: center; gap: 7px; }
.atlas-legend i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.atlas-legend span:nth-child(2) i { background: var(--ink-3); }

/* One organization context owns its metrics, address and report action. */
.home-page .atlas { --atlas-inset: 24px; padding-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 24px; }
.atlas :is(.atlas-header, .atlas-directory-bar) { grid-column: 1 / -1; }
.atlas .atlas-directory-bar { min-height: 52px; margin-top: 16px; }
.atlas .atlas-canvas { min-width: 0; grid-column: 1; grid-row: 3; }
.atlas .atlas-footer { grid-column: 1; grid-row: 4; align-self: start; display: grid; gap: 12px; margin: 0; padding: 16px 0; border: 0; border-top: 1px solid #47657466; background: none; color: inherit; }
.atlas .atlas-main-stat { min-width: 0; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.atlas .atlas-main-stat > span { color: #edf7f8; font-size: 16px; line-height: 24px; font-weight: 600; overflow-wrap: anywhere; }
.atlas .atlas-main-stat strong { color: var(--atlas-mint); font-size: 28px; line-height: 36px; letter-spacing: 0; }
.atlas .atlas-main-stat small { color: #9eb4c2; }
.atlas-context-path { grid-column: 1 / -1; margin: 0; color: #b0c6d3; font-size: 12px; line-height: 18px; overflow-wrap: anywhere; }
.atlas-summary-progress { grid-column: 1 / -1; }
.atlas-summary-progress > span { display: block; height: 6px; background: #bfdedc26; border-radius: 3px; overflow: hidden; }
.atlas-summary-progress i { display: block; height: 100%; background: var(--atlas-mint); }
.atlas .atlas-stats { flex: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; border: 0; }
.atlas .atlas-stats > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid #47657466; }
.atlas .atlas-stats dt { color: #c0d2dc; font-size: 13px; }
.atlas .atlas-stats dd { color: #edf7f8; font-size: 20px; line-height: 28px; }
.atlas .atlas-legend { margin: 0; color: #9eb4c2; }
.atlas .atlas-legend span:nth-child(2) { display: none; }
.atlas .atlas-selection { grid-column: 1 / -1; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 12px 0 0; border: 0; border-top: 1px solid #47657466; }
.atlas .atlas-selection p { flex: 1 1 100%; min-width: 0; overflow-wrap: anywhere; }
.atlas .atlas-selection-dot { display: none; }
.atlas .atlas-selection .atlas-source { margin: 0; }
.atlas .atlas-selection button { width: auto; min-height: 32px; margin: 0; padding: 4px 0; white-space: normal; overflow-wrap: anywhere; }
.atlas[data-selected-hq]:not([data-selected-hq=""]) #atlasScope { color: var(--atlas-mint); font-weight: 600; }
.atlas .atlas-card[data-metric-state="empty"] .atlas-card-result strong,
.atlas .atlas-card[data-metric-state="unlinked"] .atlas-card-result strong { display: none; }
.atlas .atlas-card[data-metric-state="empty"] .atlas-card-meta,
.atlas .atlas-card[data-metric-state="unlinked"] .atlas-card-meta { display: none; }
.atlas .atlas-card-result em { background: none; border: 0; padding: 0; }
.atlas .atlas-card-title { font-size: 14px; letter-spacing: 0; }
.atlas .atlas-card-result strong { font-size: 22px; letter-spacing: 0; }
.atlas-legend .atlas-legend-none { color: inherit; }
.atlas-card-result em:empty { display: none; }
.atlas-legend a { margin-top: 4px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.atlas-history { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.atlas-history .tr-svg { margin-top: 10px; }
.home-page .lp-office { max-height: 560px; overflow: auto; scrollbar-gutter: stable; }
.home-page .lp-office-head { position: sticky; top: 0; z-index: 2; background: var(--surface); }
@keyframes atlas-pin-in { from { opacity: 0; transform: translateY(10px) scale(.86); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes atlas-card-in { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@keyframes atlas-bar-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes atlas-meter-in { from { stroke-dasharray: 0 100; } to { stroke-dasharray: var(--atlas-progress, 0) 100; } }
@keyframes atlas-focus-ring { from { opacity: .35; transform: scale(.9); } to { opacity: 0; transform: scale(1.4); } }
@keyframes atlas-link-focus { from { stroke-dashoffset: 1; opacity: 0; } 18%, 75% { opacity: 1; } to { stroke-dashoffset: 0; opacity: 0; } }
body.auth-opening .atlas * { animation-play-state: paused; }
@container (max-width: 950px) {
  .atlas-header-actions { gap: 10px; } .atlas-header-status { display: none; }
  .atlas-directory-bar { flex-wrap: wrap; gap: 5px 12px; padding: 9px 0; }
  .atlas-card { padding: 11px 13px; gap: 0; }
  .atlas-card-kicker { display: none; }
  .atlas-card-title { font-size: 15px; }
  .atlas-card-result strong { font-size: 32px; }
  .atlas-card-result em { padding: 2px 3px; font-size: 12px; }
  .atlas-card-meta { flex-wrap: wrap; }
  .atlas-footer { flex-wrap: wrap; gap: 20px; }
  .atlas-legend { display: flex; flex-wrap: wrap; gap: 14px; width: 100%; margin: 0; }
  .atlas-legend a { margin: 0 0 0 auto; }
  .atlas-main-stat { min-width: 190px; } .atlas-main-stat strong { font-size: 40px; }
  .atlas-stats { gap: 20px; padding-left: 22px; }
}
@container home (max-width: 799px) {
  .atlas-header { align-items: flex-start; gap: 12px; }
  .atlas h1 { font-size: 28px; } .atlas h1 em { display: block; }
  .atlas-eyebrow { font-size: 12px; letter-spacing: .04em; } .atlas-eyebrow i { display: none; }
  .atlas button.atlas-start { padding: 11px 13px; gap: 9px; font-size: 13px; white-space: nowrap; }
  .atlas-toolbar { align-items: flex-start; width: 100%; }
  .atlas-hint { width: 100%; font-size: 13px; }
  .atlas-stage { width: 100%; aspect-ratio: auto; }
  .atlas-viewport { position: relative; width: min(100%, 440px); aspect-ratio: 540 / 660; margin: 0 auto; }
  .atlas-map { width: 207.407%; left: -53.704%; height: 100%; top: 0; }
  #atlasLines, .atlas-compass { display: none; }
  .atlas-pin-label { font-size: 17px; }
  .atlas-areas { overflow-x: auto; max-width: 100%; }
  .atlas-areas button { padding: 8px 10px; }
  .atlas-callouts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; padding: 0 0 16px; }
  .atlas-card, .atlas-card[data-side="right"] { position: relative; inset: auto; width: 100%; height: auto; min-height: 181px; padding: 15px 13px; gap: 11px; }
  .atlas-card .atlas-card-emblem, .atlas-card[data-side="right"] .atlas-card-emblem { top: 10px; left: auto; right: 10px; translate: none; }
  .atlas-card-kicker { display: flex; padding-right: 38px; min-height: 28px; align-items: center; font-size: 12px; }
  .atlas-card-title { font-size: 15px; } .atlas-card-title svg { width: 13px; }
  .atlas-card-result { align-items: flex-start; flex-direction: column; gap: 8px; }
  .atlas-card-result strong { font-size: 36px; }
  .atlas-card-meta { flex-direction: column; align-items: flex-start; gap: 5px; font-size: 12px; }
  .atlas-map-caption { position: static; margin: 0 0 16px; font-size: 12px; }
  .atlas-selection { flex-wrap: wrap; gap: 8px; padding: 13px 0; }
  .atlas-selection p { flex: 1; font-size: 13px; }
  .atlas-selection .atlas-source { margin-left: 13px; }
  .atlas-selection button { width: 100%; padding: 6px 0 0 13px; margin: 0; }
  .atlas-footer { display: block; padding-top: 20px; }
  .atlas-main-stat { grid-template-columns: auto 1fr; gap: 8px 16px; margin-bottom: 24px; }
  .atlas-main-stat strong { font-size: 46px; }
  .atlas-stats { justify-content: space-between; gap: 15px; border: 0; padding: 0; }
  .atlas-stats dd { font-size: 30px; }
  .atlas-legend { margin-top: 24px; gap: 12px; font-size: 12px; }
  .atlas-legend a { width: 100%; margin: 0; }
  .atlas-loading, .atlas-unmapped { position: static; grid-column: 1 / -1; padding: 15px; font-size: 14px; }
  .atlas-empty { position: relative; inset: auto; width: 100%; grid-column: 1 / -1; margin-bottom: 16px; }
}
/* Desktop tracks follow content width; the map keeps its geographic aspect ratio. */
@container home (min-width: 800px) {
  .home-page .atlas { --atlas-inset: 20px; --atlas-height: clamp(400px, calc(100svh - 340px), 600px); padding-top: 16px; grid-template-columns: minmax(0, 1fr); }
  .atlas-header { min-width: 0; gap: 16px; align-items: center; }
  .atlas-header > div:first-child { min-width: 0; }
  .atlas-header-actions { gap: 16px; }
  .atlas-header-status { display: grid; }
  .atlas-eyebrow { display: none; }
  .atlas h1 { font-size: 28px; letter-spacing: 0; }
  .atlas h1 em { display: inline; }
  .atlas button.atlas-start { min-height: 40px; padding: 8px 12px; gap: 12px; border-radius: 6px; font-size: 13px; }
  .atlas-hint { margin-top: 4px; }
  .atlas .atlas-directory-bar { min-height: 44px; margin-top: 12px; padding: 4px 0; flex-wrap: wrap; gap: 4px 12px; }
  .atlas-toolbar { width: auto; align-items: center; }
  .atlas-toolbar nav { gap: 8px; }
  .atlas-areas { overflow: visible; flex-wrap: wrap; }
  .atlas-areas button { min-height: 32px; padding: 6px 10px; font-size: 13px; }
  .atlas .atlas-canvas { min-width: 0; display: block; grid-column: 1; grid-row: 3; }
  .atlas-stage { width: min(100%, calc(var(--atlas-height) * 1.697)); aspect-ratio: 1120 / 660; }
  .atlas-card { padding: 8px 12px; border-radius: 8px; }
  .atlas .atlas-card-title { font-size: 14px; line-height: 20px; }
  .atlas-card-title > span { min-width: 0; overflow-wrap: anywhere; }
  .atlas-card-result { gap: 6px; line-height: 1; }
  .atlas .atlas-card-result strong { font-size: 20px; line-height: 24px; white-space: nowrap; }
  .atlas-card-result em { font-size: 12px; line-height: 18px; }
  .atlas-card-meta { line-height: 16px; }
  .atlas-card-meta > span { display: none; }

  .atlas .atlas-footer { grid-column: 1; grid-row: 4; grid-template-columns: minmax(160px, .9fr) minmax(0, 2fr); gap: 12px 24px; padding: 12px 0; }
  .atlas .atlas-main-stat { grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; }
  .atlas .atlas-main-stat strong { font-size: 26px; line-height: 32px; }
  .atlas .atlas-main-stat small { grid-column: 1 / -1; line-height: 18px; }
  .atlas .atlas-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .atlas .atlas-stats > div { display: grid; gap: 4px; padding: 0; border: 0; }
  .atlas .atlas-stats dd { font-size: 20px; line-height: 28px; overflow-wrap: anywhere; }
  .atlas .atlas-legend { grid-column: 1 / -1; display: flex; flex-wrap: wrap; width: auto; gap: 6px 16px; margin: 0; }
  .atlas .atlas-legend a { margin: 0; color: inherit; }
  .atlas .atlas-selection p { flex-basis: 180px; }
  .atlas-empty h2 { font-size: 18px; }
  .atlas-empty p { font-size: 14px; line-height: 1.5; }

}
.atlas[data-density="compact"] .atlas-card[data-metric-state="empty"],
.atlas[data-density="compact"] .atlas-card[data-metric-state="unlinked"] { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto; align-content: center; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 6px; }
.atlas[data-density="compact"] .atlas-card:is([data-metric-state="empty"], [data-metric-state="unlinked"]) .atlas-card-title { grid-area: 1 / 1; font-size: 14px; line-height: 20px; }
.atlas[data-density="compact"] .atlas-card:is([data-metric-state="empty"], [data-metric-state="unlinked"]) .atlas-card-title svg { display: none; }
.atlas[data-density="compact"] .atlas-card:is([data-metric-state="empty"], [data-metric-state="unlinked"]) .atlas-card-result { display: contents; }
.atlas[data-density="compact"] .atlas-card:is([data-metric-state="empty"], [data-metric-state="unlinked"]) .atlas-card-result em { grid-area: 1 / 2; font-size: 12px; white-space: nowrap; padding: 0; }
@container home (min-width: 800px) {
  .atlas[data-density="compact"] .atlas-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto; align-content: center; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; }
  .atlas[data-density="compact"] .atlas-card-kicker,
  .atlas[data-density="compact"] .atlas-card-title svg,
  .atlas[data-density="compact"] .atlas-card-meta,
  .atlas[data-density="compact"] .atlas-card[data-metric-state="ready"] .atlas-card-result em { display: none; }
  .atlas[data-density="compact"] .atlas-card-title { grid-area: 1 / 1; font-size: 14px; line-height: 20px; }
  .atlas[data-density="compact"] .atlas-card-result { display: contents; }
  .atlas[data-density="compact"] .atlas-card-result strong { grid-area: 1 / 2; justify-self: end; font-size: 18px; line-height: 22px; }
  .atlas[data-density="compact"] .atlas-card-result em { grid-area: 1 / 2; padding: 0; border: 0; background: none; font-size: 12px; line-height: 18px; white-space: nowrap; }
  .atlas[data-density="compact"] .atlas-card-track { position: absolute; inset: auto 10px 0; height: 2px; }
  .atlas[data-density="compact"] .atlas-card-track > span { display: none; }
  .atlas .atlas-card-emblem { right: -24px; }
  .atlas .atlas-card[data-side="right"] .atlas-card-emblem { left: -24px; right: auto; }
}
@container home (min-width: 1080px) {
  .home-page .atlas { grid-template-columns: minmax(0, 1fr) 224px; }
  .atlas .atlas-canvas { grid-column: 1; grid-row: 3; }
  .atlas .atlas-footer { grid-column: 2; grid-row: 3; display: flex; flex-direction: column; gap: 12px; margin: 16px 0; padding: 0 0 0 20px; border: 0; border-left: 1px solid #47657466; }
  .atlas .atlas-main-stat { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .atlas .atlas-main-stat strong { font-size: 28px; line-height: 36px; }
  .atlas .atlas-stats { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .atlas .atlas-stats > div { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid #47657466; }
  .atlas .atlas-legend { display: grid; gap: 6px; }
  .atlas .atlas-selection { align-items: flex-start; gap: 8px; }
  .atlas .atlas-selection p { flex: 1 1 100%; }
  .atlas .atlas-selection button { justify-content: flex-start; flex-basis: 100%; }
}
/* National totals precede geographic navigation; drilldown keeps its context layout. */
@container home (min-width: 800px) {
  .home-page .atlas[data-level="national"] { grid-template-columns: minmax(0, 1fr); }
  .atlas[data-level="national"] .atlas-footer { grid-column: 1; grid-row: 3; display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr); align-items: start; gap: 8px 24px; margin: 0; padding: 12px 0; border: 0; border-bottom: 1px solid #47657466; }
  .atlas[data-level="national"] .atlas-canvas { grid-column: 1; grid-row: 4; }
  .atlas[data-level="national"] .atlas-main-stat { grid-row: 1 / 3; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; margin: 0; }
  .atlas[data-level="national"] .atlas-context-path { grid-column: 1; grid-row: 1; }
  .atlas[data-level="national"] .atlas-main-stat > span { grid-column: 1; grid-row: 2; font-size: 14px; line-height: 20px; }
  .atlas[data-level="national"] .atlas-main-stat strong { grid-column: 2; grid-row: 1 / 3; font-size: 26px; line-height: 32px; }
  .atlas[data-level="national"] .atlas-main-stat small { grid-column: 1 / -1; grid-row: 3; line-height: 18px; }
  .atlas[data-level="national"] .atlas-summary-progress { grid-row: 4; }
  .atlas[data-level="national"] .atlas-stats { grid-column: 2; grid-row: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .atlas[data-level="national"] .atlas-stats > div { display: grid; justify-content: normal; gap: 4px; padding: 0; border: 0; }
  .atlas[data-level="national"] .atlas-stats dd { font-size: 20px; line-height: 28px; letter-spacing: 0; overflow-wrap: anywhere; }
  .atlas[data-level="national"] .atlas-legend { grid-column: 2; grid-row: 2; display: flex; flex-wrap: wrap; width: auto; gap: 6px 16px; margin: 0; }
  .atlas[data-level="national"] .atlas-selection { grid-row: 3; align-items: center; }
  .atlas[data-level="national"] .atlas-selection p { flex: 1 1 240px; }
  .atlas[data-level="national"] .atlas-selection button { flex: 0 1 auto; justify-content: flex-end; }
}
.atlas .atlas-stats dd[data-unit]::after { content: attr(data-unit); margin-left: 4px; color: #c0d2dc; font-size: 12px; letter-spacing: 0; }
@media (max-width: 700px) {
  .atlas { --atlas-inset: 20px; padding-top: 24px; border-radius: 16px; }
  .home-page .inner-topbar { height: auto; min-height: var(--topbar-h); padding-block: 12px; flex-wrap: wrap; }
  .home-page .inner-actions { flex-shrink: 0; }
  .home-page .topbar-search kbd { display: none; }
}
@container (max-width: 420px) {
  .atlas-areas { flex-wrap: wrap; overflow: visible; }
  .home-page .hq-row { grid-template-columns: 18px minmax(0, 1fr) 64px; }
  .home-page .hq-track { grid-column: 1 / -1; }
  .home-page .hq-state { grid-column: 2 / -1; text-align: left; }
  .atlas-header { flex-wrap: wrap; }
  .atlas-callouts { grid-template-columns: minmax(0, 1fr); }
  .atlas-card, .atlas-card[data-side="right"] { min-height: 170px; padding: 16px; }
  .atlas-card-result { flex-direction: row; align-items: baseline; }
  .atlas-card-meta { flex-direction: row; flex-wrap: wrap; }
  .atlas-main-stat { min-width: 0; }
  .atlas-main-stat small { grid-column: 1 / -1; }
  .atlas-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .atlas-stats dd { font-size: clamp(20px, 6cqw, 30px); overflow-wrap: anywhere; }
  .atlas-selection p { flex-basis: calc(100% - 20px); overflow-wrap: anywhere; }
}

/* Full-width comparison rows share stable count and progress columns. */
.home-page .lp-body { padding-top: 24px; }
.home-page .lp-pair { grid-template-columns: minmax(0, 1fr); margin-top: 0; gap: 24px; }
.home-page :is(.lp-pair-side, .lp-pair-main) { gap: 12px; }
.home-page .lp-section-head { margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.home-page .lp-section-head h2 { margin: 0; font-size: 18px; line-height: 28px; letter-spacing: 0; }
.home-page .lp-section-head .lp-eyebrow { display: none; }
.home-page .lp-section-head > button { min-height: 32px; }
.home-page .lp-pair :is(.lp-chart, .lp-office) { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.home-page .lp-pair .lp-chart-head { margin: 0 0 8px; }
.home-page .lp-hq { --atlas-hq-columns: 24px minmax(160px, 1.4fr) 64px 72px 72px minmax(150px, 1fr) 72px; display: block; max-height: none; overflow-x: auto; }
.home-page .lp-office { --atlas-office-columns: 24px minmax(140px, 1.2fr) minmax(112px, 1fr) 64px 72px 72px minmax(140px, 1fr); }
.home-page :is(.atlas-hq-head, .hq-row) { display: grid; grid-template-columns: var(--atlas-hq-columns); min-width: 710px; align-items: center; gap: 12px; padding: 8px 12px; line-height: 20px; }
.home-page :is(.lp-office-head, .lp-office-row) { display: grid; grid-template-columns: var(--atlas-office-columns); min-width: 820px; align-items: center; gap: 12px; padding: 8px 12px; line-height: 20px; }
.home-page :is(.atlas-hq-head, .lp-office-head) { color: var(--ink-2); background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 12px; }
.home-page .atlas-hq-head > :nth-child(n+3) { text-align: right; }
.home-page :is(.hq-row, .lp-office-row) { width: 100%; margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink); background: none; font-family: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.home-page :is(.hq-row, .lp-office-row):hover { background: var(--surface-2); }
.home-page :is(.hq-row, .lp-office-row):focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; box-shadow: none; }
.home-page :is(.hq-row, .lp-office-row)[aria-pressed="true"] { background: var(--accent-soft); box-shadow: inset 3px 0 var(--accent); }
.home-page :is(.hq-name, .lp-office-name, .lp-office-hq) { min-width: 0; overflow: visible; white-space: normal; overflow-wrap: anywhere; text-overflow: clip; font-size: 14px; line-height: 20px; letter-spacing: 0; }
.home-page .lp-office-hq { display: block; color: var(--ink-2); }
.home-page :is(.hq-rank, .lp-office-rank) { font-family: inherit; font-size: 12px; font-variant-numeric: tabular-nums; }
.home-page :is(.atlas-row-count, .lp-office-row > span:nth-child(n+4)) { display: block; min-width: 0; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.home-page :is(.hq-rate, .lp-office-row > .lp-office-rate) { display: grid; grid-template-columns: minmax(40px, 1fr) 64px; align-items: center; gap: 8px; }
.home-page :is(.hq-track, .lp-office-track) { display: block; width: 100%; height: 6px; min-width: 0; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.home-page :is(.hq-track, .lp-office-track) i { display: block; height: 100%; background: var(--teal); border-radius: 3px; }
.home-page :is(.hq-value, .lp-office-rate b) { min-width: 0; font-size: 13px; font-weight: 600; line-height: 20px; color: var(--ink); text-align: right; white-space: normal; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.home-page .hq-state { font-size: 12px; line-height: 20px; white-space: normal; overflow-wrap: anywhere; text-align: right; }
.home-page .lp-office-head > :nth-child(n+4) { justify-content: flex-end; }
.home-page .lp-office-head > button { display: inline-flex; }
.home-page .lp-office-sort { min-height: 24px; line-height: 20px; gap: 5px; white-space: normal; }
.home-page .lp-office-sort:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.home-page .lp-office-filter { min-width: 820px; padding: 8px 12px; background: none; color: var(--ink-2); border-color: var(--line); line-height: 20px; }
.home-page .lp-office-filter button { min-height: 28px; height: auto; padding: 2px 8px; border-radius: 4px; }
.home-page .atlas-history { margin-top: 16px; padding-top: 0; }
.home-page .atlas-history > summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 12px 0; color: var(--ink-2); font-size: 14px; line-height: 20px; cursor: pointer; }
.home-page .atlas-history > summary > span { color: var(--ink-3); font-size: 12px; }
.atlas[data-density="detail"] .atlas-card { padding: 8px 12px; border-radius: 8px; }
.atlas[data-density="detail"] .atlas-card-title { font-size: 14px; line-height: 20px; }
.atlas[data-density="detail"] .atlas-card-result { gap: 6px; }
.atlas[data-density="detail"] .atlas-card-result strong { font-size: 18px; line-height: 22px; white-space: nowrap; letter-spacing: 0; }
.atlas[data-density="detail"] .atlas-card-result em { padding: 2px 4px; white-space: nowrap; }
.atlas[data-density="detail"] .atlas-card.is-pending .atlas-card-result strong small { display: none; }
.atlas[data-density="detail"] .atlas-card-meta { line-height: 16px; }

/* Reuse the original map and comparison DOM; only wide content gets two tracks. */
.home-page .atlas-overview { min-width: 0; }
.home-page .atlas-hq-sort { display: inline-flex; align-items: center; gap: 8px; min-width: 0; margin-left: auto; }
.home-page .atlas-hq-sort label { color: var(--ink-2); font-size: 12px; }
.home-page .atlas-hq-sort select { width: 124px; min-width: 0; min-height: 32px; padding: 4px 8px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface); font: inherit; font-size: 13px; }
.home-page .atlas-hq-sort button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; width: 32px; height: 32px; color: var(--accent); border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface); }
.home-page .atlas-hq-sort button svg { width: 16px; height: 16px; transform: rotate(90deg); }
.home-page .atlas-hq-sort button[data-direction="asc"] svg { transform: rotate(-90deg); }
.home-page .atlas-hq-sort :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.home-page .lp-pair .lp-chart-head { flex-wrap: wrap; gap: 8px 16px; }
.home-page :is(.hq-row, .lp-office-row).is-highlighted { background: var(--accent-soft); box-shadow: inset 3px 0 var(--accent); }
@container home (min-width: 1330px) {
  .app-shell .home-page .atlas-overview { display: grid; grid-template-columns: minmax(0, 1fr) 560px; align-items: start; gap: 24px; width: min(1600px, calc(100% - 48px)); margin-inline: 24px; }
  .app-shell .home-page .atlas-overview .atlas { grid-column: 1; grid-row: 1; width: 100%; min-width: 0; margin: 0; grid-template-columns: minmax(0, 1fr); }
  .app-shell .home-page .atlas-overview :is(.lp-body, .lp-pair) { display: contents; }
  .app-shell .home-page .atlas-overview .lp-pair-side { grid-column: 2; grid-row: 1; padding-top: 16px; }
  .app-shell .home-page .atlas-overview :is(.lp-pair-main, .lp-desk) { grid-column: 1 / -1; }
  .app-shell .home-page .atlas-overview .lp-hq { --atlas-hq-columns: 18px minmax(104px, 1fr) 42px 58px 58px 70px 56px; overflow-x: auto; }
  .app-shell .home-page .atlas-overview :is(.atlas-hq-head, .hq-row) { min-width: 548px; min-height: 40px; gap: 6px; padding: 8px; }
  .app-shell .home-page .atlas-overview .hq-rate { grid-template-columns: minmax(0, 1fr); }
  .app-shell .home-page .atlas-overview .hq-track { display: none; }
  .app-shell .home-page .atlas-overview .atlas .atlas-footer { grid-column: 1; grid-row: 3; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0; padding: 12px 0; border: 0; border-bottom: 1px solid #47657466; }
  .app-shell .home-page .atlas-overview .atlas .atlas-canvas { grid-column: 1; grid-row: 4; }
  .app-shell .home-page .atlas-overview .atlas .atlas-main-stat { grid-column: 1; grid-row: 1; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; margin: 0; }
  .app-shell .home-page .atlas-overview .atlas .atlas-main-stat strong { font-size: 26px; line-height: 32px; }
  .app-shell .home-page .atlas-overview .atlas .atlas-main-stat small { grid-column: 1 / -1; }
  .app-shell .home-page .atlas-overview .atlas .atlas-stats { grid-column: 1; grid-row: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .app-shell .home-page .atlas-overview .atlas .atlas-stats > div { display: grid; gap: 4px; padding: 0; border: 0; }
  .app-shell .home-page .atlas-overview .atlas .atlas-legend { grid-column: 1; grid-row: 3; display: flex; flex-wrap: wrap; }
  .app-shell .home-page .atlas-overview .atlas .atlas-selection { grid-column: 1; grid-row: 4; align-items: center; }
  .app-shell .home-page .atlas-overview .atlas .atlas-selection p { flex: 1 1 100%; }
  .app-shell .home-page .atlas-overview .atlas .atlas-selection button { flex: 0 1 auto; }
}

/* Explicit analytics rows avoid the later viewport-based three-column grid. */
@container report (max-width: 799px) {
  .app-shell .portal-page .analytics-page [data-analytics-controls] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .app-shell .portal-page .analytics-page [data-analytics-controls] > label { min-width: 0; }
  .app-shell .portal-page .analytics-page [data-analytics-controls] > label:has([data-analytics-headquarters]) { grid-area: 1 / 1 / 2 / 2; }
  .app-shell .portal-page .analytics-page [data-analytics-controls] > label:has([data-analytics-office]) { grid-area: 1 / 2 / 2 / 3; }
  .app-shell .portal-page .analytics-page [data-analytics-controls] > .report-period-control { grid-area: 2 / 1 / 3 / -1; }
  .app-shell .portal-page .analytics-page [data-analytics-controls] > label:has([data-analytics-from]) { grid-area: 3 / 1 / 4 / 2; }
  .app-shell .portal-page .analytics-page [data-analytics-controls] > label:has([data-analytics-to]) { grid-area: 3 / 2 / 4 / 3; }
  .app-shell .portal-page .analytics-page [data-analytics-controls] > .report-filter-actions { grid-area: 4 / 1 / 5 / -1; }
}
@container report (min-width: 800px) {
  .app-shell .portal-page .analytics-page [data-analytics-controls] { display: grid; grid-template-columns: minmax(200px, 1.2fr) repeat(2, minmax(148px, 1fr)) minmax(160px, auto); gap: 12px; align-items: end; }
  .app-shell .portal-page .analytics-page [data-analytics-controls] > label { min-width: 0; }
  .app-shell .portal-page .analytics-page [data-analytics-controls] > label:has([data-analytics-headquarters]) { grid-area: 1 / 1 / 2 / 3; }
  .app-shell .portal-page .analytics-page [data-analytics-controls] > label:has([data-analytics-office]) { grid-area: 1 / 3 / 2 / 5; }
  .app-shell .portal-page .analytics-page [data-analytics-controls] > .report-period-control { grid-area: 2 / 1 / 3 / 2; }
  .app-shell .portal-page .analytics-page [data-analytics-controls] > label:has([data-analytics-from]) { grid-area: 2 / 2 / 3 / 3; }
  .app-shell .portal-page .analytics-page [data-analytics-controls] > label:has([data-analytics-to]) { grid-area: 2 / 3 / 3 / 4; }
  .app-shell .portal-page .analytics-page [data-analytics-controls] > .report-filter-actions { grid-area: 2 / 4 / 3 / 5; }
}
@media (prefers-reduced-motion: reduce) {
  .atlas *, .atlas *::before, .atlas *::after { animation: none !important; transition: none !important; }
  .atlas-line-tracer { display: none; }
}

/* Portal result facts and list navigation use the existing palette and type scale. */
.app-shell [data-page="discussions"] .discussion-mine-filter { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.app-shell [data-page="discussions"] .discussion-mine-filter input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.app-shell [data-page="discussions"] .discussion-view-controls { flex-wrap: wrap; }
.app-shell [data-page="discussions"] .discussion-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; padding-block: 18px; color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.app-shell [data-page="discussions"] .discussion-pagination[hidden],
.app-shell [data-page="discussions"] .discussion-load-error[hidden] { display: none; }
.app-shell [data-page="discussions"] .discussion-pagination button { flex: 0 0 40px; width: 40px; height: 40px; min-height: 40px; padding: 8px; }
.app-shell [data-page="discussions"] .discussion-pagination button svg { width: 16px; height: 16px; }
.app-shell [data-page="discussions"] .discussion-load-error { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-block: 12px; border-block: 1px solid var(--line-strong); color: var(--ink); }
.app-shell [data-page="discussions"] .discussion-load-error p { flex: 1 1 240px; margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.app-shell [data-page="discussions"] .discussion-feed [data-result-facts],
.app-shell [data-page="discussion-detail"] .thread-question [data-result-facts] { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; padding: 8px 0; margin-block: 8px; border: 0; border-radius: 0; background: none; }
.app-shell [data-page="discussions"] .discussion-feed [data-result-facts] span,
.app-shell [data-page="discussion-detail"] .thread-question [data-result-facts] span { padding: 0; border: 0; border-radius: 0; background: none; color: var(--ink-3); font-size: 13px; line-height: 20px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.app-shell [data-page="discussions"] .discussion-feed [data-result-facts] b,
.app-shell [data-page="discussion-detail"] .thread-question [data-result-facts] b { color: var(--ink); font-weight: 600; }
.app-shell [data-page="discussion-detail"] .thread-body { min-width: 0; overflow-wrap: anywhere; }
.app-shell [data-page="discussion-detail"] .answers-section > header { justify-content: flex-start; gap: 12px; }
.app-shell [data-page="discussion-detail"] .answers-section > header select { margin-left: auto; }
.app-shell [data-page="discussion-detail"] .thread-reply-action { min-height: 40px; padding: 8px 12px; display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 13px; font-weight: 600; }
.app-shell [data-page="discussions"] .discussion-mine-filter input:focus-visible,
.app-shell [data-page="discussions"] .discussion-pagination button:focus-visible,
.app-shell [data-page="discussion-detail"] .thread-reply-action:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
