.atlas-shell { max-width: none; width: 100%; padding: 0; }
.atlas-shell .site-header { height: auto; min-height: 64px; }
.atlas-shell main { padding: 18px 32px 44px; }
.atlas-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 14px; }
.atlas-heading h2 { margin: 5px 0 0; font: 470 clamp(25px, 2.8vw, 38px)/1.06 Bricolage, var(--heading); letter-spacing: -.045em; }
.atlas-heading > p { max-width: 320px; margin: 0 0 2px; color: var(--muted-strong); font-size: 12px; line-height: 1.45; }
.atlas-controls { display: flex; align-items: end; gap: 8px; padding: 9px 0; border-top: 1px solid var(--rule); flex-wrap: wrap; }
.atlas-controls label, .atlas-investigation label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 650; }
.atlas-controls label:has(#atlas-query) { flex: 1 1 240px; }
.atlas-controls input, .atlas-controls select, .atlas-investigation textarea { min-height: 37px; padding: 7px 10px; border: 1px solid var(--rule-strong); border-radius: 5px; color: var(--ink); background: var(--surface); }
.atlas-controls #atlas-query { width: 100%; }
.atlas-controls button { min-height: 37px; border-radius: 5px; }
.atlas-command-row { display: flex; align-items: center; gap: 6px; min-height: 32px; margin-bottom: 3px; }
.atlas-command-row button { padding: 4px 9px; font-size: 10px; }
.atlas-step-label { margin-right: 3px; color: var(--muted); font-size: 10px; }
#atlas-status { margin-left: 8px; color: var(--muted); font-size: 11px; }
.atlas-frame-label { min-height: 20px; margin: 0 0 7px; color: var(--muted-strong); font-size: 11px; }
.atlas-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 315px); gap: 12px; align-items: stretch; }
#atlas-scene { min-width: 0; }
#atlas-scene > h3 { margin: 25px 0 8px; font: 520 22px Bricolage, var(--heading); }
#atlas-scene > p { max-width: 520px; color: var(--muted-strong); font-size: 12px; line-height: 1.55; }
#atlas-inspector { min-width: 0; max-height: 660px; overflow: auto; padding: 22px; border: 1px solid var(--rule); border-radius: 9px; background: var(--surface); }
#atlas-inspector h3 { margin: 6px 0 10px; font: 520 23px/1.12 Bricolage, var(--heading); letter-spacing: -.035em; }
#atlas-inspector p { color: var(--muted-strong); font-size: 12px; line-height: 1.55; }
#atlas-inspector code { color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
#atlas-inspector .quiet-button { margin: 7px 0; }
.atlas-inspector-note { padding-top: 12px; border-top: 1px solid var(--rule); }
.atlas-relationships { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); }
.atlas-relationships .eyebrow { margin-bottom: 7px; color: var(--accent-deep); }
.atlas-relationship-choices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.atlas-relationship-choices button { text-align: left; }
.atlas-relationship-evidence h4 { margin: 13px 0 4px; font-size: 13px; }
.atlas-source-date { font-size: 11px; }
.atlas-region-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.atlas-region { min-height: 104px; padding: 16px; border: 1px solid var(--rule); border-radius: 7px; color: var(--ink); background: var(--surface); text-align: left; display: flex; flex-direction: column; gap: 12px; }
.atlas-region:hover { border-color: var(--accent); background: var(--surface-hover); }
.atlas-region strong { font-size: 14px; font-weight: 650; line-height: 1.25; }
.atlas-region span { margin-top: auto; color: var(--muted); font-size: 10px; }
.atlas-access, .atlas-view-settings, .atlas-investigation, .atlas-limitations { margin-top: 10px; padding: 11px 14px; border: 1px solid var(--rule); border-radius: 7px; background: var(--surface); font-size: 12px; }
.atlas-access summary, .atlas-view-settings summary, .atlas-investigation summary, .atlas-limitations summary { cursor: pointer; color: var(--accent-deep); font-size: 12px; font-weight: 700; }
.atlas-access > button { margin-top: 10px; }
.atlas-candidate-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 8px; border: 1px solid var(--rule); background: var(--rule); }
.atlas-candidate-list button { min-height: 48px; padding: 10px; border: 0; color: var(--ink); background: var(--surface); text-align: left; font-size: 11px; }
.atlas-candidate-list button:hover { background: var(--surface-hover); }
.atlas-candidate-list small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.atlas-settings-body { padding: 12px 0 2px; }
.atlas-claim-audit, .atlas-source-audit { margin-top: 9px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 5px; background: var(--surface-cool); }
.atlas-claim-audit summary, .atlas-source-audit summary { cursor: pointer; color: var(--accent-deep); font-size: 11px; }
.atlas-exact-limit { display: flex; align-items: center; gap: 10px; margin-top: 8px; color: var(--muted); font-size: 11px; }
.atlas-exact-limit input { width: 74px; min-height: 40px; padding: 6px; border: 1px solid var(--rule-strong); border-radius: 5px; color: var(--ink); background: var(--surface); }
.atlas-density { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; }
.atlas-density input { width: min(210px, 35vw); min-height: 34px; accent-color: var(--accent); }
.atlas-density button { min-height: 34px; }
.atlas-investigation label { margin-top: 15px; max-width: 760px; }
.atlas-investigation textarea { min-height: 74px; font: inherit; resize: vertical; }
.atlas-investigation p, .atlas-limitations p, .atlas-limitations li { line-height: 1.5; color: var(--muted); }
.atlas-investigation button { margin-top: 12px; }
.atlas-limitations li { margin: 6px 0; }
.atlas-premise, .atlas-claim { border-top: 1px solid var(--rule); padding-block: 14px; }
.atlas-premise a, .atlas-claim a { display: block; margin-top: 10px; font-size: 11px; overflow-wrap: anywhere; }
.atlas-claim h4 { margin: 8px 0; font-size: 14px; }
.atlas-claim blockquote { margin: 10px 0; padding-left: 11px; border-left: 2px solid var(--accent); font-size: 11px; line-height: 1.5; }
.atlas-claim dl { margin: 10px 0; font-size: 11px; line-height: 1.5; }
.atlas-claim dt { margin-top: 7px; color: var(--muted); }
.atlas-claim dd { margin-left: 0; overflow-wrap: anywhere; }
.atlas-claim-status { display: inline-block; padding: 3px 7px; border: 1px solid var(--rule); font-size: 10px; }
.atlas-claim-status.is-hypothesis { border-style: dashed; }
.atlas-claim-source { padding-top: 8px; border-top: 1px solid var(--rule); }
.atlas-premise-identifiers { margin-top: 10px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 5px; background: var(--surface-cool); }
.atlas-premise-identifiers summary { color: var(--accent-deep); cursor: pointer; font-size: 11px; }
.atlas-shell button:focus-visible, .atlas-shell input:focus-visible, .atlas-shell select:focus-visible, .atlas-shell summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.atlas-shell .constellation-heading { position: relative; inset: auto; min-height: 66px; padding: 13px 19px 0; }
.atlas-shell .constellation-heading h3 { font-size: clamp(22px, 2.5vw, 32px); }
.atlas-shell .constellation-mode-switch { top: 20px; left: 57%; }
.atlas-shell .constellation-map { min-height: 330px; max-height: 61vh; }
.atlas-shell [hidden] { display: none !important; }
@media (max-width: 950px) { .atlas-workspace { grid-template-columns: minmax(0, 1fr) 265px; } .atlas-region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .atlas-candidate-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .atlas-shell main { padding: 14px 16px 32px; } .atlas-heading { display: block; margin-bottom: 10px; } .atlas-heading > p { max-width: none; margin-top: 10px; } .atlas-controls label { flex: 1 1 100%; } .atlas-workspace { grid-template-columns: 1fr; } #atlas-inspector { max-height: none; } .atlas-candidate-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .atlas-shell .constellation-map { min-height: 300px; } }
@media (max-width: 700px) { .atlas-shell button, .atlas-shell input, .atlas-shell select, .atlas-shell summary { min-height: 44px; } .atlas-shell summary { display: flex; align-items: center; } }
@media (max-width: 700px) { .atlas-shell .constellation-label { font-size: 29px; stroke-width: 7px; } }
@media (max-width: 700px) {
  .atlas-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px; padding: 7px 0; }
  .atlas-controls > label:nth-child(1) { grid-column: 1 / 3; }
  .atlas-controls > label:nth-child(2) { grid-column: 3; }
  .atlas-controls > label:has(#atlas-query) { grid-column: 1 / 3; }
  .atlas-controls > button[type=submit] { grid-column: 3; }
  .atlas-controls #atlas-regions { grid-column: 1 / -1; }
  .atlas-command-row { flex-wrap: wrap; }
  .atlas-step-label { display: none; }
}
@media (prefers-reduced-motion: reduce) { .atlas-shell *, .atlas-shell *::before, .atlas-shell *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

#atlas-inspector .atlas-company-link { display: block; margin: 12px 0; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 6px; color: var(--accent-deep); font-size: 12px; font-weight: 700; }
.atlas-identity-gap { padding: 8px 0; font-style: italic; }

/* The graph and first-pass company facts share the available desktop width. */
.atlas-workspace { grid-template-columns: minmax(0, 1fr) clamp(360px, 32vw, 520px); align-items: start; gap: 18px; }
#atlas-inspector { padding: 22px 24px; max-height: none; }
#atlas-inspector h3 { font-size: 30px; margin: 4px 0 8px; }
#atlas-inspector p { font-size: 14px; line-height: 1.5; margin: 10px 0; }
#atlas-inspector > .eyebrow { font-size: 11px; }
.atlas-company-summary { margin: 16px 0 18px; }
#atlas-inspector .atlas-company-product { color: var(--ink); font-size: 16px; line-height: 1.45; }
#atlas-inspector .atlas-company-clock { font-size: 12px; color: var(--muted-strong); margin: 16px 0 8px; }
.atlas-company-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-block: 13px; border-block: 1px solid var(--rule); }
.atlas-company-stat { min-width: 0; }
.atlas-company-stat > span { display: block; min-height: 2.6em; font-size: 12px; line-height: 1.3; color: var(--muted-strong); }
.atlas-company-stat > strong { display: block; font: 580 clamp(23px, 2vw, 32px)/1.2 Bricolage, var(--heading); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.atlas-company-stat > small { display: block; margin-top: 6px; min-height: 2.6em; font-size: 11px; line-height: 1.35; color: var(--muted-strong); }
.atlas-stat-sources { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 8px; }
.atlas-stat-sources a { font-size: 12px; color: var(--accent-deep); text-underline-offset: 3px; }
#atlas-inspector .atlas-company-period, #atlas-inspector .atlas-company-gaps { font-size: 12px; line-height: 1.5; }
#atlas-inspector .atlas-company-gaps { padding: 8px 10px; background: var(--surface-cool); border-left: 2px solid var(--rule-strong); }
.atlas-company-detail-link { display: block; margin-top: 13px; font-size: 14px; line-height: 1.4; font-weight: 650; text-underline-offset: 3px; }
#atlas-inspector .atlas-connection-count { border-top: 1px solid var(--rule); padding-top: 14px; }
@media (max-width: 1000px) { .atlas-workspace { grid-template-columns: minmax(0, 1fr) 350px; gap: 12px; } #atlas-inspector { padding: 18px; } }
@media (max-width: 780px) { .atlas-workspace { grid-template-columns: minmax(0, 1fr); } .atlas-company-stat > strong { font-size: 28px; } }

.atlas-company-stat.is-unknown > strong { font-size: 20px; }

.atlas-company-filed { margin-left: 8px; }

/* Phone summaries read down the page; source controls have their own tap space. */
@media (max-width: 600px) {
  .atlas-shell main { padding-inline: 16px; }
  .atlas-heading { margin-bottom: 22px; }
  .atlas-heading > p { font-size: 14px; line-height: 1.6; }
  .atlas-heading > p a { display: inline-block; margin-top: 8px; }
  .atlas-controls { grid-template-columns: minmax(0, 1fr) auto; gap: 14px 10px; padding-block: 16px; }
  .atlas-controls > label:nth-child(1), .atlas-controls > label:nth-child(2) { grid-column: 1 / -1; }
  .atlas-controls > label:has(#atlas-query) { grid-column: 1; }
  .atlas-controls > button[type=submit] { grid-column: 2; }
  .atlas-controls label { min-width: 0; gap: 7px; font-size: 12px; }
  .atlas-controls select, .atlas-controls input { width: 100%; min-width: 0; font-size: 16px; }
  .atlas-command-row { gap: 8px; margin: 8px 0 14px; }
  #atlas-status { flex-basis: 100%; margin-left: 0; }
  .atlas-frame-label { line-height: 1.6; margin-bottom: 14px; }
  .atlas-workspace { gap: 24px; }
  #atlas-inspector { padding: 24px 18px; }
  #atlas-inspector h3 { margin-bottom: 14px; }
  #atlas-inspector p { margin-block: 16px; line-height: 1.65; }
  .atlas-company-summary { margin: 22px 0 26px; }
  #atlas-inspector .atlas-company-product { line-height: 1.6; }
  #atlas-inspector .atlas-company-clock { margin: 24px 0 12px; font-size: 13px; }
  .atlas-company-stats { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; }
  .atlas-company-stat { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: baseline; padding: 22px 0 14px; }
  .atlas-company-stat + .atlas-company-stat { border-top: 1px solid var(--rule); }
  .atlas-company-stat > span { min-height: 0; font-size: 14px; line-height: 1.45; }
  .atlas-company-stat > strong { font-size: 32px; white-space: nowrap; }
  .atlas-company-stat > small { grid-column: 1 / -1; min-height: 0; margin-top: 10px; font-size: 13px; line-height: 1.6; }
  .atlas-stat-sources { grid-column: 1 / -1; margin-top: 6px; gap: 4px 20px; }
  .atlas-stat-sources a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
  #atlas-inspector .atlas-company-period, #atlas-inspector .atlas-company-gaps { font-size: 13px; line-height: 1.7; }
  .atlas-company-filed, .atlas-company-time-note { display: block; margin: 5px 0 0; }
  #atlas-inspector .atlas-company-gaps { margin: 22px 0; padding: 14px; }
  .atlas-company-detail-link { padding-block: 10px; font-size: 15px; line-height: 1.7; }
  #atlas-inspector .atlas-connection-count, #atlas-inspector .atlas-inspector-note { padding-top: 22px; margin-top: 24px; }
  #atlas-inspector .quiet-button { max-width: 100%; white-space: normal; line-height: 1.5; padding: 10px 12px; }
  .atlas-relationships { margin-top: 24px; padding-top: 22px; }
  .atlas-shell .constellation-heading { padding: 18px 16px 0; }
  .atlas-shell .constellation-mode-switch { position: relative; inset: auto; transform: none; width: fit-content; margin: 14px 16px 0; }
  .atlas-shell .constellation-footer { flex-direction: column; gap: 18px; padding: 12px 16px; }
  .atlas-shell .constellation-legend { gap: 10px 16px; line-height: 1.6; }
  .atlas-shell .constellation-camera-controls { gap: 8px; }
  .atlas-shell .constellation-camera-controls button { width: 44px; height: 44px; }
  .atlas-shell .constellation-relationship { line-height: 1.7; padding: 16px; }
  .atlas-access, .atlas-view-settings, .atlas-investigation, .atlas-limitations { margin-top: 16px; padding: 14px; }
  .atlas-shell summary { line-height: 1.6; }
  .atlas-density { flex-wrap: wrap; gap: 12px; }
  .atlas-density input { flex: 1 1 100px; min-width: 0; }
  .atlas-shell footer { overflow-wrap: anywhere; }
}
