body[data-site="atlas"] {
  --accent: #22d3ee;
  --site-accent: #22d3ee;
  --site-accent-text: #67e8f9;
  --atlas-surface: color-mix(in srgb, #07101c 92%, var(--accent));
  --atlas-surface-soft: color-mix(in srgb, var(--bg) 70%, var(--accent));
  --atlas-ink: var(--text-primary);
  --atlas-muted: var(--text-dim);
  --atlas-row-head: color-mix(in srgb, var(--bg) 84%, var(--accent));
  --atlas-control-bg: color-mix(in srgb, var(--bg) 80%, transparent);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
html,
body[data-site="atlas"] {
  max-width: 100%;
  overflow-x: hidden;
}

body[data-site="atlas"] *,
body[data-site="atlas"] *::before,
body[data-site="atlas"] *::after {
  box-sizing: border-box;
}

body[data-site="atlas"][data-theme="light"],
html[data-theme="light"] body[data-site="atlas"] {
  --accent: #075985;
  --site-accent: #075985;
  --site-accent-text: #075985;
  --atlas-surface: #ffffff;
  --atlas-surface-soft: #f6fbff;
  --atlas-ink: #07111f;
  --atlas-muted: #435872;
  --atlas-row-head: #eaf4ff;
  --atlas-control-bg: #ffffff;
}

.tt-grid-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 18%, color-mix(in srgb, var(--accent) 25%, transparent), transparent 28rem),
    radial-gradient(circle at 78% 12%, rgba(34, 197, 94, 0.16), transparent 24rem),
    linear-gradient(90deg, rgba(148, 210, 255, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(148, 210, 255, 0.06) 1px, transparent 1px);
  background-size: auto, auto, 96px 96px, 96px 96px;
}

main {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 132px 0 70px;
  overflow: hidden;
}

.tt-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.72fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  min-height: calc(100vh - 180px);
}

.tt-hero-copy,
.tt-section,
.tt-two-col > *,
.tt-card,
.tt-workflows article,
.tt-mcp-grid article {
  min-width: 0;
}

.tt-kicker {
  color: var(--site-accent-text);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.tt-hero h1,
.tt-section h2 {
  margin: 12px 0 18px;
  color: var(--text);
  font-family: var(--sans);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
}

.tt-hero h1 {
  font-size: clamp(4rem, 10vw, 6.4rem);
}

.tt-section h2 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

.tt-lede,
.tt-section p {
  max-width: 760px;
  color: var(--text-dim);
  font-size: clamp(1rem, 2vw, 1.24rem);
  line-height: 1.7;
  overflow-wrap: break-word;
  white-space: normal;
}

.tt-actions,
.tt-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.tt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.tt-btn-primary {
  background: var(--accent);
  color: var(--text-on-accent, #031018);
  box-shadow: 0 14px 38px color-mix(in srgb, var(--accent) 24%, transparent);
}

.tt-btn-secondary {
  background: color-mix(in srgb, var(--panel) 80%, transparent);
  color: var(--text);
}

.tt-orb-panel,
.tt-terminal,
.tt-output,
.tt-card,
.tt-workflows article,
.tt-mcp-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.tt-orb-panel {
  padding: clamp(20px, 4vw, 34px);
  min-width: 0;
}

.tt-orb {
  display: grid;
  place-items: center;
  width: min(100%, 340px);
  aspect-ratio: 1;
  margin: 0 auto 24px;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, transparent);
  border-radius: 50%;
  background:
    radial-gradient(circle at 45% 40%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 35%),
    radial-gradient(circle, color-mix(in srgb, var(--bg) 30%, transparent), var(--bg-2));
  box-shadow: 0 0 70px color-mix(in srgb, var(--accent) 28%, transparent);
  position: relative;
  overflow: hidden;
}

.tt-orb img {
  width: 48%;
  border-radius: 50%;
  opacity: 0.88;
}

.tt-orb span {
  position: absolute;
  bottom: 20%;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.28em;
}

.tt-status-stack {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.tt-status-stack div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg-2) 72%, transparent);
}

.tt-status-stack span,
.tt-card span,
.tt-workflows span {
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tt-status-stack strong {
  color: var(--site-accent-text);
  font-family: var(--mono);
  font-size: 0.78rem;
  text-align: right;
  overflow-wrap: anywhere;
}

.tt-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 70px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.tt-strip div {
  padding: 22px 18px;
  background: color-mix(in srgb, var(--panel) 90%, transparent);
}

.tt-strip strong {
  display: block;
  color: var(--text);
  font-family: var(--mono);
  font-size: clamp(1.25rem, 3vw, 2.2rem);
  font-weight: 900;
}

.tt-strip span {
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tt-section {
  margin: 0 0 86px;
}

.tt-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.78fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: start;
}

.tt-card-grid,
.tt-workflows,
.tt-mcp-grid {
  display: grid;
  gap: 14px;
}

.tt-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
}

.tt-card,
.tt-workflows article,
.tt-mcp-grid article {
  padding: 22px;
}

.tt-card h3,
.tt-workflows h3,
.tt-mcp-grid h3 {
  margin: 12px 0 10px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.08rem;
}

.tt-card p,
.tt-workflows p,
.tt-mcp-grid p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.tt-terminal,
.tt-output {
  overflow: hidden;
}

.tt-output-stack {
  display: grid;
  gap: 14px;
}

.tt-terminal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tt-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

.tt-terminal-state {
  margin-left: auto;
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--amber, #f59e0b) 38%, transparent);
  border-radius: 999px;
  color: var(--amber, #f59e0b);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}

.tt-copy {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 5px 10px;
}

.tt-terminal-head .tt-copy:first-of-type {
  margin-left: auto;
}

.tt-terminal-state + .tt-copy {
  margin-left: 0;
}

.tt-terminal-lines,
.tt-output pre {
  margin: 0;
  padding: 18px;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.tt-metrics-terminal {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
}

.tt-metrics-terminal pre {
  max-height: 268px;
  overflow-y: auto;
}

.tt-terminal-lines p {
  margin: 0 0 12px;
  max-width: none;
  font-size: inherit;
  line-height: inherit;
}

.tt-terminal-lines span {
  color: var(--site-accent-text);
}

.tt-workflows {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tt-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.tt-form label {
  display: grid;
  gap: 8px;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tt-form input,
.tt-form select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 80%, transparent);
  color: var(--text);
  font: 700 0.92rem var(--sans);
  padding: 0 12px;
}

.tt-form button {
  grid-column: 1 / -1;
}

.tt-form .tt-form-wide {
  grid-column: 1 / -1;
}

.tt-form select[name="preset"] {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 42%),
    color-mix(in srgb, var(--panel) 86%, transparent);
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tt-mcp-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tt-mcp-grid strong {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 50%;
  color: var(--site-accent-text);
  font-family: var(--mono);
}

.tt-mcp-grid code {
  display: block;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.78rem;
  white-space: normal;
  overflow-wrap: anywhere;
}

.tt-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 920px) {
  main {
    padding-top: 112px;
  }

  .tt-hero,
  .tt-two-col,
  .tt-card-grid,
  .tt-workflows,
  .tt-mcp-grid,
  .tt-strip {
    grid-template-columns: 1fr;
  }

  .tt-hero {
    min-height: auto;
  }

  .tt-form {
    grid-template-columns: 1fr;
  }

  .tt-footer {
    display: grid;
  }
}

@media (max-width: 560px) {
  main,
  .tt-footer {
    width: min(calc(100vw - 86px), 1180px);
  }

  main {
    padding-top: 104px;
  }

  .tt-hero h1 {
    font-size: clamp(3.15rem, 16vw, 3.9rem);
    line-height: 1;
  }

  .tt-hero-copy {
    width: min(100%, 292px);
  }

  .tt-section h2 {
    font-size: clamp(2.05rem, 11vw, 2.9rem);
  }

  .tt-lede,
  .tt-section p {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.62;
  }

  .tt-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tt-btn {
    width: 100%;
    min-width: 0;
    padding: 0 14px;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
  }

  .tt-orb-panel,
  .tt-terminal,
  .tt-output,
  .tt-card,
  .tt-workflows article,
  .tt-mcp-grid article {
    border-radius: 8px;
  }

  .tt-orb {
    width: min(100%, 248px);
  }

  .tt-status-stack div {
    display: grid;
    gap: 6px;
  }

  .tt-status-stack strong {
    text-align: left;
    font-size: 0.72rem;
  }

  .tt-strip div,
  .tt-card,
  .tt-workflows article,
  .tt-mcp-grid article {
    padding: 18px;
  }

  .tt-terminal-head {
    flex-wrap: wrap;
  }

  .tt-copy {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* 2026-05-10: research-only disclaimer surfaced above the fold per Codex
   compliance requirement. Visible at hero level, not just the footer. */
.tt-disclaimer{
  margin-top:18px;
  font-size:0.82rem;
  line-height:1.5;
  color:var(--text-dim);
  border-left:2px solid var(--accent);
  padding:6px 0 6px 12px;
  max-width:560px;
  font-style:italic;
}

/* 2026-05-10: ATLAS API integration — request/response wiring per Codex's
   /api/atlas/query backend. Result terminal styled distinct from metrics
   to make the actual research output unmistakable. */
.tt-form-status {
  margin: 8px 0 0;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.66rem;
  line-height: 1.55;
  letter-spacing: 0.04em;
}
.tt-form-status[data-state="error"] {
  border-color: color-mix(in srgb, var(--amber, #f59e0b) 38%, transparent);
  background: color-mix(in srgb, var(--amber, #f59e0b) 8%, transparent);
  color: var(--amber, #f59e0b);
}

.tt-result-terminal {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 8%, transparent);
}
.tt-result-terminal pre {
  max-height: 420px;
  overflow-y: auto;
  color: var(--text-primary);
}

#tt-result-state[data-state="idle"]    { color: var(--text-muted); border-color: color-mix(in srgb, var(--text-muted) 38%, transparent); }
#tt-result-state[data-state="loading"] { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
#tt-result-state[data-state="ready"]   { color: var(--green, #10b981); border-color: color-mix(in srgb, var(--green, #10b981) 50%, transparent); }
#tt-result-state[data-state="pending"] { color: var(--amber, #f59e0b); border-color: color-mix(in srgb, var(--amber, #f59e0b) 50%, transparent); }
#tt-result-state[data-state="error"]   { color: #ef4444; border-color: rgba(239, 68, 68, 0.5); }

/* ──────────────────────────────────────────────────────────────────────────
   ATLAS WORKSTATION REDESIGN · 2026-05-10
   Terminal-as-hero, tight presence, mobile-first.
   Codex green-lit; old .tt-* rules above this comment are now unused.
   ────────────────────────────────────────────────────────────────────────── */

body[data-site="atlas"] main {
  padding-top: 100px;
  padding-bottom: 80px;
  width: min(1280px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  overflow-x: clip;
}
body[data-site="atlas"] {
  overflow-x: hidden;
}

/* ─── HERO LOCKUP ───────────────────────────────────────────────────────── */
.atlas-hero {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 36px);
}
.atlas-hero-lockup {
  text-align: left;
  padding: 0 4px;
}
.atlas-kicker {
  display: inline-block;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 5px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  margin-bottom: 14px;
}
.atlas-hero-lockup h1 {
  font-family: var(--sans, Inter, system-ui, sans-serif);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.94;
  margin: 0 0 14px;
  color: var(--text-primary);
}
.atlas-hero-accent {
  background: linear-gradient(100deg, var(--site-accent-text, #67e8f9), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent);
  text-shadow: 0 0 30px color-mix(in srgb, var(--accent) 32%, transparent);
}
.atlas-lede {
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0;
  max-width: min(720px, 100%);
  overflow-wrap: anywhere;
}

/* ─── WORKSTATION SHELL ─────────────────────────────────────────────────── */
.atlas-workstation {
  --aw-border:    color-mix(in srgb, var(--accent) 38%, transparent);
  --aw-border-hi: color-mix(in srgb, var(--accent) 65%, transparent);
  --aw-bg:        color-mix(in srgb, var(--bg) 92%, var(--accent));
  --aw-bg-pane:   color-mix(in srgb, #07101c 92%, var(--accent));
  --aw-line:      color-mix(in srgb, var(--accent) 18%, transparent);
  --aw-glow:      color-mix(in srgb, var(--accent) 22%, transparent);

  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--aw-bg);
  border: 1px solid var(--aw-border);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 8%, transparent),
    0 24px 80px -20px var(--aw-glow),
    inset 0 0 60px color-mix(in srgb, var(--accent) 4%, transparent);
  overflow: hidden;
  overflow-anchor: none;
  min-height: clamp(560px, 72vh, 780px);
  position: relative;
}
[data-theme="light"] .atlas-workstation {
  --aw-bg:      color-mix(in srgb, #f4f8fc 96%, var(--accent));
  --aw-bg-pane: color-mix(in srgb, #ffffff 92%, var(--accent));
  --aw-line:    color-mix(in srgb, var(--accent) 22%, transparent);
}

.atlas-workstation::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 50%);
  z-index: 0;
}
.aw-bar, .aw-body, .aw-foot { position: relative; z-index: 1; }

/* ─── WORKSTATION TOP BAR ───────────────────────────────────────────────── */
.aw-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--aw-line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent);
  flex-wrap: wrap;
}
.aw-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.aw-orb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--aw-border);
  background: var(--bg);
  flex: 0 0 30px;
}
.aw-brand-name {
  font-family: var(--sans, Inter, sans-serif);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--accent);
}
.aw-brand-rail {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.aw-pills {
  margin-left: auto;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.aw-pill {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--text-muted) 30%, transparent);
  color: var(--text-muted);
  background: color-mix(in srgb, currentColor 6%, transparent);
  white-space: nowrap;
}
.aw-pill[data-state="loading"] { color: var(--text-muted); }
.aw-pill[data-state="anon"]    { color: var(--amber, #f59e0b); border-color: color-mix(in srgb, var(--amber, #f59e0b) 45%, transparent); }
.aw-pill[data-state="auth"]    { color: var(--green, #10b981); border-color: color-mix(in srgb, var(--green, #10b981) 45%, transparent); }
.aw-pill[data-state="ok"]      { color: var(--green, #10b981); border-color: color-mix(in srgb, var(--green, #10b981) 45%, transparent); }
.aw-pill[data-state="warn"]    { color: var(--amber, #f59e0b); border-color: color-mix(in srgb, var(--amber, #f59e0b) 45%, transparent); }
.aw-pill[data-state="full"]    { color: #ef4444; border-color: rgba(239, 68, 68, 0.5); }
.aw-pill--state[data-state="idle"]    { color: var(--text-muted); }
.aw-pill--state[data-state="loading"] { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); animation: aw-pulse 1.4s ease-in-out infinite; }
.aw-pill--state[data-state="ready"]   { color: var(--green, #10b981); border-color: color-mix(in srgb, var(--green, #10b981) 55%, transparent); }
.aw-pill--state[data-state="pending"] { color: var(--amber, #f59e0b); border-color: color-mix(in srgb, var(--amber, #f59e0b) 55%, transparent); }
.aw-pill--state[data-state="error"]   { color: #ef4444; border-color: rgba(239, 68, 68, 0.55); }

@keyframes aw-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

/* ─── WORKSTATION BODY ──────────────────────────────────────────────────── */
.aw-body {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(320px, 1.4fr);
  gap: 1px;
  background: var(--aw-line);
}
.aw-pane {
  background: var(--aw-bg-pane);
  padding: 22px;
  min-width: 0;
  overflow-anchor: none;
}
.aw-pane--form { display: flex; flex-direction: column; }
.aw-pane--response { display: flex; flex-direction: column; gap: 10px; }

/* ─── FORM ──────────────────────────────────────────────────────────────── */
.aw-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.aw-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.aw-label-text {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.aw-input {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.86rem;
  font-weight: 500;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border: 1px solid var(--aw-line);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 11px 12px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
}
[data-theme="light"] .aw-input {
  background: color-mix(in srgb, #ffffff 90%, var(--accent));
}
.aw-input:focus, .aw-input:focus-visible {
  border-color: var(--aw-border-hi);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
select.aw-input {
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%),
                    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.aw-run {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 16px;
  background: var(--accent);
  color: #050a14;
  border: none;
  border-radius: 10px;
  font-family: var(--sans, Inter, sans-serif);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.18s, filter 0.18s;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent),
              0 12px 32px -10px color-mix(in srgb, var(--accent) 50%, transparent);
}
.aw-run:hover, .aw-run:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.06);
  outline: none;
}
.aw-run-arrow { font-size: 1rem; }

.aw-status {
  margin: 4px 0 0;
  padding: 9px 11px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.62rem;
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  border: 1px solid var(--aw-line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}
.aw-status[data-state="error"] {
  color: var(--amber, #f59e0b);
  border-color: color-mix(in srgb, var(--amber, #f59e0b) 38%, transparent);
  background: color-mix(in srgb, var(--amber, #f59e0b) 8%, transparent);
}

.aw-workflow-context {
  margin-top: 16px;
  padding: 15px;
  border: 1px solid var(--aw-line);
  border-radius: 10px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 54%),
    color-mix(in srgb, var(--aw-bg-pane) 82%, transparent);
}
.aw-context-eyebrow,
.aw-context-list-wrap > span,
.aw-context-grid span {
  display: block;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--atlas-muted);
}
.aw-workflow-context h3 {
  margin: 8px 0 7px;
  color: var(--atlas-ink);
  font-family: var(--sans, Inter, sans-serif);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.aw-workflow-context p {
  margin: 0 0 12px;
  color: var(--atlas-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}
.aw-context-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}
.aw-context-grid div {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--aw-line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 4%, transparent);
}
.aw-context-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--atlas-ink);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  white-space: normal;
}
.aw-context-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 7px 0 0;
  padding: 0;
}
.aw-context-list li {
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 999px;
  color: var(--atlas-ink);
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  font-size: 0.68rem;
  line-height: 1.25;
}
.aw-workflow-details {
  margin-top: 12px;
  border-top: 1px solid var(--aw-line);
  padding-top: 10px;
}
.aw-workflow-details summary {
  cursor: pointer;
  color: var(--accent);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.aw-workflow-details .aw-context-list-wrap {
  margin-top: 10px;
}
.aw-receipt {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}
.aw-receipt-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--text-primary);
  cursor: pointer;
}
.aw-receipt-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}
.aw-label--receipt {
  gap: 6px;
}
.aw-receipt-resend {
  justify-self: start;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 36%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--accent);
  cursor: pointer;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1;
  text-transform: uppercase;
}
.aw-receipt-resend:hover,
.aw-receipt-resend:focus {
  border-color: color-mix(in srgb, var(--accent) 62%, transparent);
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  outline: none;
}
.aw-receipt-resend[disabled] {
  cursor: wait;
  opacity: 0.58;
}
.aw-receipt-status {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-dim);
}
.aw-receipt-status[data-state="saved"] { color: var(--green, #10b981); }
.aw-receipt-status[data-state="error"] { color: #ef4444; }
.aw-receipt-status[data-state="pending"] { color: var(--amber, #f59e0b); }

.atlas-traffic-card {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--aw-line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--aw-panel) 92%, var(--accent) 8%);
}
.atlas-traffic-card__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.atlas-traffic-card__eyebrow,
.atlas-traffic-card__cols span,
.atlas-traffic-card__metrics span {
  display: block;
  color: var(--text-dim);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}
.atlas-traffic-card__head strong {
  display: block;
  margin-top: 4px;
  color: var(--text-primary);
  font-size: 0.98rem;
}
.atlas-traffic-card__head small {
  color: var(--text-dim);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.68rem;
  text-transform: uppercase;
}
.atlas-traffic-card__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 13px;
}
.atlas-traffic-card__metrics div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--aw-line);
  border-radius: 7px;
  background: color-mix(in srgb, var(--aw-panel) 88%, black 2%);
}
.atlas-traffic-card__metrics strong {
  display: block;
  margin-top: 5px;
  color: var(--accent);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 1.28rem;
  line-height: 1;
}
.atlas-traffic-card__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.atlas-traffic-card__cols ul {
  margin: 7px 0 0;
  padding: 0;
  list-style: none;
}
.atlas-traffic-card__cols li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--aw-line) 72%, transparent);
  color: var(--text-dim);
  font-size: 0.76rem;
  line-height: 1.35;
}
.atlas-traffic-card__cols li:last-child {
  border-bottom: 0;
}
.atlas-traffic-card__cols b {
  color: var(--text-primary);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.atlas-traffic-card__cols i {
  color: var(--accent);
  font-family: var(--mono, ui-monospace, monospace);
  font-style: normal;
  white-space: nowrap;
}
@media (max-width: 680px) {
  .atlas-traffic-card__metrics,
  .atlas-traffic-card__cols {
    grid-template-columns: 1fr;
  }
}

/* ─── RESPONSE PANE ─────────────────────────────────────────────────────── */
.aw-pane-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--aw-line);
}
.aw-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green, #10b981);
  box-shadow: 0 0 14px var(--green, #10b981);
  flex: 0 0 8px;
}
.aw-pane-head strong {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.aw-pane-state {
  margin-left: auto;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 9px;
  border: 1px solid var(--aw-line);
  border-radius: 999px;
  color: var(--text-muted);
}
.aw-pane-state[data-state="loading"] { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.aw-pane-state[data-state="ready"]   { color: var(--green, #10b981); border-color: color-mix(in srgb, var(--green, #10b981) 55%, transparent); }
.aw-pane-state[data-state="pending"] { color: var(--amber, #f59e0b); border-color: color-mix(in srgb, var(--amber, #f59e0b) 55%, transparent); }
.aw-pane-state[data-state="error"]   { color: #ef4444; border-color: rgba(239, 68, 68, 0.55); }
.aw-copy {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--aw-line);
  border-radius: 999px;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
}
.aw-copy:hover, .aw-copy:focus-visible {
  color: var(--accent);
  border-color: var(--aw-border-hi);
  outline: none;
}
.aw-output {
  margin: 0;
  padding: 18px;
  flex: 1;
  min-height: 320px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.86rem;
  line-height: 1.66;
  color: var(--text-primary);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  border: 1px solid var(--aw-line);
  border-radius: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow-y: auto;
  overflow-anchor: none;
}
[data-theme="light"] .aw-output {
  background: color-mix(in srgb, #ffffff 95%, var(--accent));
}
.aw-output--compact {
  min-height: 0;
  font-size: 0.78rem;
  padding: 12px;
  margin-bottom: 8px;
}
.aw-output[data-state="loading"] {
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow: inset 0 0 30px color-mix(in srgb, var(--accent) 10%, transparent);
}
.atlas-report-output {
  white-space: normal;
  font-family: var(--sans, Inter, system-ui, sans-serif);
  overflow-wrap: normal;
  overflow-anchor: none;
}
.atlas-report {
  display: grid;
  gap: 16px;
  font-family: var(--sans, Inter, system-ui, sans-serif);
}
.atlas-report__header {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--aw-line));
  border-radius: 10px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 58%),
    color-mix(in srgb, var(--bg) 70%, transparent);
}
.atlas-report__mast {
  display: grid;
  gap: 6px;
}
.atlas-report__kicker {
  margin: 0;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.atlas-report h3 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.04;
  letter-spacing: 0;
}
.atlas-report__subtitle {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.45;
}
.atlas-report__chips,
.atlas-report-lanes {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.atlas-report__chips span,
.atlas-report-lanes span {
  padding: 6px 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 999px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.atlas-report__actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.atlas-report__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  border-radius: 999px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.atlas-report__actions a:hover {
  border-color: color-mix(in srgb, var(--accent) 62%, transparent);
  background: color-mix(in srgb, var(--accent) 13%, transparent);
}
.atlas-report-pdf-theme {
  margin: 16px 0 20px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 54%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--accent) 18%, transparent),
      color-mix(in srgb, var(--panel, #07111f) 88%, var(--accent) 9%));
  box-shadow:
    0 18px 48px -26px color-mix(in srgb, var(--accent) 95%, transparent),
    inset 0 1px 0 color-mix(in srgb, #fff 10%, transparent);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  overflow: hidden;
}
.atlas-report-pdf-theme span {
  display: block;
  margin: 0 0 4px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.atlas-report-pdf-theme strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.25;
}
.atlas-report-pdf-theme nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--panel, #07111f) 90%, #000 10%);
}
.atlas-report-pdf-theme a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.atlas-report-pdf-theme a + a {
  border-left: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
}
.atlas-report-pdf-theme a:hover {
  transform: none;
  box-shadow: inset 0 0 0 999px color-mix(in srgb, var(--accent) 9%, transparent);
}
.atlas-report-pdf-theme__current {
  color: #06111f;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 78%, #fff 22%));
}
.atlas-report-pdf-theme__dark {
  color: #eff8ff;
  background: linear-gradient(135deg, #07111f, #111827);
}
.atlas-report-pdf-theme__day {
  color: #07111f;
  background: linear-gradient(135deg, #f8fdff, #dff6ff);
}
.atlas-report-lanes span[data-lane-state="queued"],
.atlas-report-lanes span[data-lane-state="pending"] {
  border-color: color-mix(in srgb, var(--accent) 48%, transparent);
  color: color-mix(in srgb, var(--accent) 88%, var(--text-primary));
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.atlas-report-lanes span[data-lane-state="ready"] {
  border-color: color-mix(in srgb, #32d296 38%, transparent);
  color: color-mix(in srgb, #32d296 80%, var(--text-primary));
}
.atlas-report-lanes span[data-lane-state="failed"],
.atlas-report-lanes span[data-lane-state="limited"] {
  border-color: color-mix(in srgb, #ff6b6b 34%, transparent);
  color: color-mix(in srgb, #ff8f8f 72%, var(--text-primary));
}
.atlas-scout-lanes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.atlas-scout-lane {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 13px;
  border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--aw-line));
  border-radius: 10px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 68%),
    color-mix(in srgb, var(--bg) 76%, transparent);
}
.atlas-scout-lane span {
  justify-self: start;
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  border-radius: 999px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 88%, var(--text-primary));
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.atlas-scout-lane strong {
  font-size: 0.98rem;
  line-height: 1.12;
  color: var(--text-primary);
  text-transform: capitalize;
}
.atlas-scout-lane small {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.6rem;
  line-height: 1.35;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.atlas-scout-lane i {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  box-shadow: inset 0 0 10px color-mix(in srgb, #000 42%, transparent);
}
.atlas-scout-lane i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, #32d296 74%, var(--accent)));
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 50%, transparent);
  transition: width 0.35s ease;
}
.atlas-scout-lane[data-lane-state="ready"] {
  border-color: color-mix(in srgb, #32d296 42%, var(--aw-line));
}
.atlas-scout-lane[data-lane-state="ready"] span {
  border-color: color-mix(in srgb, #32d296 45%, transparent);
  color: color-mix(in srgb, #32d296 82%, var(--text-primary));
  background: color-mix(in srgb, #32d296 9%, transparent);
}
.atlas-scout-lane[data-lane-state="failed"],
.atlas-scout-lane[data-lane-state="limited"],
.atlas-scout-lane[data-lane-state="refused"] {
  border-color: color-mix(in srgb, #ff6b6b 38%, var(--aw-line));
}
.atlas-scout-lane[data-lane-state="failed"] span,
.atlas-scout-lane[data-lane-state="limited"] span,
.atlas-scout-lane[data-lane-state="refused"] span {
  border-color: color-mix(in srgb, #ff6b6b 42%, transparent);
  color: color-mix(in srgb, #ff8f8f 78%, var(--text-primary));
  background: color-mix(in srgb, #ff6b6b 8%, transparent);
}
.atlas-scout-lane[data-lane-state="running"],
.atlas-scout-lane[data-lane-state="pending"] {
  animation: atlas-led-throb 1.5s ease-in-out infinite;
}
.atlas-scout-lane[data-lane-state="queued"],
.atlas-scout-lane[data-lane-state="waiting"] {
  animation: atlas-led-throb 2.7s ease-in-out infinite;
  opacity: 0.94;
}
.atlas-scout-lane[data-lane-state="running"] i b,
.atlas-scout-lane[data-lane-state="pending"] i b {
  animation: atlas-bar-shimmer 1.6s linear infinite;
}
.atlas-report-sections,
.atlas-report-thread {
  display: grid;
  gap: 10px;
}
.atlas-report-sections--profile {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}
.atlas-report-section,
.atlas-report-tweet,
.atlas-report-sources {
  position: relative;
  padding: 18px;
  border: 1px solid var(--aw-line);
  border-left: 6px solid color-mix(in srgb, var(--accent) 74%, #60a5fa);
  border-radius: 10px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 34%),
    color-mix(in srgb, var(--bg) 74%, transparent);
  box-shadow: inset 1px 0 0 color-mix(in srgb, var(--accent) 52%, transparent);
}
.atlas-report-section--lead {
  grid-column: 1 / -1;
  padding: 22px;
  border-left: 7px solid var(--accent);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 38%),
    color-mix(in srgb, var(--bg) 80%, transparent);
}
.atlas-report-section__bar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
}
.atlas-report-section__bar span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: 999px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.54rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.atlas-report-section h4,
.atlas-report-sources h4 {
  margin: 0 0 10px;
  font-family: var(--sans, Inter, system-ui, sans-serif);
  font-size: 1rem;
  line-height: 1.28;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-primary);
}
.atlas-report-section--executive {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--aw-line));
}
.atlas-report-section--facts {
  border-left-color: #60a5fa;
}
.atlas-report-section--filings {
  border-left-color: #38bdf8;
}
.atlas-report-section--risk {
  border-left-color: #f59e0b;
}
.atlas-report-section--catalyst {
  border-left-color: #34d399;
}
.atlas-report-section--wit {
  border-left-color: #22d3ee;
}
.atlas-report-section--wit .atlas-report-section__body p {
  margin: 0 0 16px;
  line-height: 1.78;
}
.atlas-report-section--wit .atlas-report-section__body p:last-child {
  margin-bottom: 0;
}
.atlas-report-section--evidence {
  border-left-color: #22d3ee;
}
.atlas-report-section--note {
  border-left-color: color-mix(in srgb, var(--accent) 64%, #94a3b8);
}
.atlas-report-section p,
.atlas-report-tweet p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.68;
  color: var(--text-dim);
}
.atlas-report-section__body > * + *,
.atlas-report-tweet__body > * + * {
  margin-top: 10px;
}
.atlas-report-section__body h5,
.atlas-report-tweet__body h5 {
  margin: 14px 0 6px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.atlas-report-section__body ul,
.atlas-report-section__body ol,
.atlas-report-tweet__body ul,
.atlas-report-tweet__body ol {
  margin: 0;
  padding-left: 20px;
  font-size: 0.94rem;
  line-height: 1.68;
  color: var(--text-dim);
}
.atlas-report-section__body li,
.atlas-report-tweet__body li {
  margin: 0 0 7px;
  padding-left: 2px;
}
.atlas-report-section__body code,
.atlas-report-tweet__body code {
  padding: 1px 5px;
  border-radius: 4px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.86em;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--text-primary);
}
.atlas-report-section__body a,
.atlas-report-tweet__body a {
  color: var(--accent);
  overflow-wrap: anywhere;
}
.atlas-report-section--lead p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-primary);
}
.atlas-report-tweet {
  position: relative;
  padding-left: 56px;
}
.atlas-report-tweet span {
  position: absolute;
  left: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.58rem;
  font-weight: 900;
}
.atlas-report-sources ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  list-style: none;
}
.atlas-report-sources summary {
  cursor: pointer;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.atlas-report-sources[open] summary {
  margin-bottom: 10px;
}
.atlas-report-sources a {
  display: block;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-left: 4px solid color-mix(in srgb, var(--accent) 72%, #60a5fa);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  color: var(--accent);
  overflow-wrap: anywhere;
  text-decoration: none;
}
.atlas-report-chart {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--aw-line));
  border-radius: 10px;
  background:
    radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 40%),
    color-mix(in srgb, var(--bg) 76%, transparent);
  overflow-anchor: none;
}
.atlas-report-chart div {
  display: grid;
  gap: 4px;
}
.atlas-report-chart span,
.atlas-report-chart small {
  font-family: var(--mono, ui-monospace, monospace);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.atlas-report-chart span {
  font-size: 0.62rem;
  font-weight: 900;
  color: var(--accent);
}
.atlas-report-chart strong {
  font-size: 1.08rem;
  color: var(--text-primary);
}
.atlas-report-chart small {
  font-size: 0.58rem;
  line-height: 1.5;
}
.atlas-report-chart__frame {
  width: 100%;
  height: 360px;
  border: 1px solid var(--aw-line);
  border-radius: 8px;
  background: #07111f;
  display: block;
  overflow-anchor: none;
}
.atlas-report-chart__frame--empty {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 24px;
}
.atlas-report-chart__frame--empty strong,
.atlas-tv-chart .atlas-tv-frame--linkonly strong {
  color: var(--text-primary);
}
.atlas-report-chart__frame--empty span,
.atlas-tv-chart .atlas-tv-frame--linkonly span {
  max-width: 680px;
  color: var(--text-muted);
}
.atlas-report-chart a {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  border-radius: 999px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.atlas-report__footer {
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--aw-line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.68rem;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.atlas-report__footer strong {
  color: var(--text-primary);
}
.atlas-report--pending {
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--aw-line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.atlas-report--queued {
  padding: 0;
  background:
    radial-gradient(circle at 16% 8%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 34%),
    color-mix(in srgb, var(--bg) 74%, transparent);
}
.atlas-report-section--status {
  border-color: color-mix(in srgb, var(--accent) 22%, var(--aw-line));
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}
.atlas-report-lanes--queued {
  margin: 0;
}
.atlas-research-history {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--aw-line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
}
.atlas-research-history[hidden] { display: none; }
.atlas-research-history__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.atlas-research-history__head button,
.atlas-research-history__item {
  border: 1px solid var(--aw-line);
  background: color-mix(in srgb, var(--bg) 64%, transparent);
  color: var(--text-primary);
  border-radius: 8px;
  cursor: pointer;
}
.atlas-research-history__head button {
  padding: 5px 8px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.atlas-research-history__list {
  display: grid;
  gap: 7px;
}
.atlas-research-history__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px 8px;
  padding: 10px;
  text-align: left;
}
.atlas-research-history__item strong {
  font-size: 0.82rem;
}
.atlas-research-history__item span,
.atlas-research-history__item small {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}
.atlas-research-history__item span {
  font-size: 0.74rem;
  color: var(--text-dim);
}
.atlas-research-history__item small {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
[data-theme="light"] .atlas-report__header,
[data-theme="light"] .atlas-report-section,
[data-theme="light"] .atlas-report-tweet,
[data-theme="light"] .atlas-report-sources,
[data-theme="light"] .atlas-research-history,
[data-theme="light"] .atlas-research-history__item {
  background: #ffffff;
}
body[data-site="atlas"] .nav-right .ssl-badge,
body[data-site="atlas"] .nav-right .theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
}
body[data-site="atlas"] .nav-right .ssl-badge svg {
  display: block;
  margin: 0 auto;
}
.atlas-scout-loader {
  display: none;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  min-height: 148px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 10px;
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--bg) 78%, transparent), color-mix(in srgb, var(--accent) 6%, transparent));
  box-shadow: inset 0 0 34px color-mix(in srgb, var(--accent) 7%, transparent);
  overflow: hidden;
}
.atlas-scout-loader[data-state="loading"],
.atlas-scout-loader[data-state="pending"],
.atlas-scout-loader[data-state="ready"],
.atlas-scout-loader[data-state="email"],
.atlas-scout-loader[data-state="sent"],
.atlas-scout-loader[data-state="error"] {
  display: grid;
}
.atlas-scout-loader__orbit {
  position: relative;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  box-shadow: 0 0 28px color-mix(in srgb, var(--accent) 18%, transparent);
}
.atlas-scout-loader__orbit::before,
.atlas-scout-loader__orbit::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: inherit;
  border: 1px solid transparent;
  border-top-color: color-mix(in srgb, var(--accent) 78%, transparent);
  border-right-color: color-mix(in srgb, var(--green, #10b981) 58%, transparent);
  animation: atlas-scout-spin 3.2s linear infinite;
}
.atlas-scout-loader__orbit::after {
  inset: 22px;
  border-top-color: color-mix(in srgb, var(--accent) 70%, transparent);
  border-right-color: transparent;
  animation-duration: 2.1s;
  animation-direction: reverse;
}
.atlas-scout-loader__orbit span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}
.atlas-scout-loader__orbit span:nth-child(1) { top: 7px; left: 36px; }
.atlas-scout-loader__orbit span:nth-child(2) { right: 10px; bottom: 18px; background: var(--green, #10b981); box-shadow: 0 0 14px var(--green, #10b981); }
.atlas-scout-loader__orbit span:nth-child(3) { left: 13px; bottom: 18px; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.atlas-scout-loader__copy {
  min-width: 0;
}
.atlas-scout-loader__kicker {
  display: block;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.atlas-scout-loader__copy strong {
  display: block;
  font-family: var(--sans, Inter, system-ui, sans-serif);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
  color: var(--text-primary);
}
.atlas-scout-loader__copy p {
  margin: 7px 0 12px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-dim);
}
.atlas-scout-loader__bar {
  height: 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text-muted) 15%, transparent);
  overflow: hidden;
}
.atlas-scout-loader__bar span {
  display: block;
  width: var(--atlas-scout-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--green, #10b981));
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 35%, transparent);
  transition: width 0.42s ease;
}
.atlas-scout-loader__steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}
.atlas-scout-loader__steps span {
  min-width: 0;
  padding: 5px 6px;
  border: 1px solid color-mix(in srgb, var(--text-muted) 18%, transparent);
  border-radius: 999px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-align: center;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.atlas-scout-loader[data-step~="source"] [data-step="source"],
.atlas-scout-loader[data-step~="scout"] [data-step="scout"],
.atlas-scout-loader[data-step~="human"] [data-step="human"],
.atlas-scout-loader[data-step~="synth"] [data-step="synth"],
.atlas-scout-loader[data-step~="receipt"] [data-step="receipt"] {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.atlas-scout-loader[data-state="ready"] {
  border-color: color-mix(in srgb, var(--green, #10b981) 38%, transparent);
}
.atlas-scout-loader[data-state="email"] {
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  background:
    radial-gradient(circle at 13% 50%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 32%),
    linear-gradient(135deg, color-mix(in srgb, var(--bg) 80%, transparent), color-mix(in srgb, var(--accent) 10%, transparent));
  box-shadow:
    inset 0 0 42px color-mix(in srgb, var(--accent) 13%, transparent),
    0 0 22px color-mix(in srgb, var(--accent) 12%, transparent);
}
.atlas-scout-loader[data-state="email"] .atlas-scout-loader__orbit {
  overflow: hidden;
  border-radius: 20px;
  border-color: color-mix(in srgb, var(--accent) 58%, transparent);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 18%, transparent), color-mix(in srgb, var(--green, #10b981) 8%, transparent)),
    color-mix(in srgb, var(--accent) 9%, transparent);
  box-shadow:
    0 0 0 0 color-mix(in srgb, var(--accent) 42%, transparent),
    0 0 24px color-mix(in srgb, var(--accent) 24%, transparent);
  animation: atlas-mail-orbit-pulse 2.6s ease-in-out infinite;
}
.atlas-scout-loader[data-state="email"] .atlas-scout-loader__orbit::before {
  content: "";
  inset: auto;
  left: 18px;
  top: 25px;
  width: 46px;
  height: 31px;
  border: 2px solid color-mix(in srgb, var(--accent) 84%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(140deg, transparent 48%, color-mix(in srgb, var(--accent) 54%, transparent) 50%, transparent 53%),
    linear-gradient(220deg, transparent 48%, color-mix(in srgb, var(--green, #10b981) 42%, transparent) 50%, transparent 53%),
    color-mix(in srgb, var(--bg) 76%, transparent);
  z-index: 3;
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 24%, transparent);
  animation: atlas-mail-float 2.4s ease-in-out infinite;
}
.atlas-scout-loader[data-state="email"] .atlas-scout-loader__orbit::after {
  content: "";
  inset: auto;
  left: 29px;
  top: 26px;
  width: 23px;
  height: 23px;
  border: 0;
  border-left: 2px solid color-mix(in srgb, var(--accent) 70%, transparent);
  border-bottom: 2px solid color-mix(in srgb, var(--green, #10b981) 50%, transparent);
  transform: rotate(-45deg);
  z-index: 4;
  background: transparent;
  animation: none;
}
.atlas-scout-loader[data-state="email"] .atlas-scout-loader__orbit span {
  display: none;
}
.atlas-scout-loader[data-state="email"] .atlas-scout-loader__copy strong {
  color: var(--accent);
}
.atlas-scout-loader[data-state="sent"] {
  border-color: color-mix(in srgb, var(--green, #10b981) 52%, transparent);
}
.atlas-scout-loader[data-state="sent"] .atlas-scout-loader__orbit {
  border-color: color-mix(in srgb, var(--green, #10b981) 44%, transparent);
  background: color-mix(in srgb, var(--green, #10b981) 10%, transparent);
}
.atlas-scout-loader[data-state="sent"] .atlas-scout-loader__orbit::before {
  content: "✓";
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--green, #10b981);
  font-size: 2.35rem;
  font-weight: 900;
  animation: atlas-check-pop 0.42s ease-out both;
}
.atlas-scout-loader[data-state="sent"] .atlas-scout-loader__orbit::after,
.atlas-scout-loader[data-state="sent"] .atlas-scout-loader__orbit span {
  display: none;
}
.atlas-scout-loader[data-state="error"] {
  border-color: rgba(239, 68, 68, 0.42);
}
.atlas-scout-terminal {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  text-align: left;
}
.atlas-scout-terminal:empty {
  display: none;
}
.atlas-scout-terminal__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 9px;
  align-items: center;
  padding: 9px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--aw-line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.atlas-scout-terminal__row span {
  grid-row: span 2;
  align-self: start;
  min-width: 62px;
  padding: 4px 6px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  border-radius: 999px;
  color: color-mix(in srgb, var(--accent) 88%, var(--text-primary));
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}
.atlas-scout-terminal__row strong {
  min-width: 0;
  font-size: 0.8rem;
  line-height: 1.2;
  color: var(--text-primary);
  text-transform: capitalize;
}
.atlas-scout-terminal__row small {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.54rem;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.atlas-scout-terminal__row i {
  grid-column: 1 / -1;
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.atlas-scout-terminal__row i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, #32d296 72%, var(--accent)));
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 48%, transparent);
  transition: width 0.35s ease;
}
.atlas-scout-terminal__row[data-lane-state="ready"] {
  border-color: color-mix(in srgb, #32d296 38%, var(--aw-line));
}
.atlas-scout-terminal__row[data-lane-state="ready"] span {
  border-color: color-mix(in srgb, #32d296 42%, transparent);
  color: color-mix(in srgb, #32d296 82%, var(--text-primary));
}
.atlas-scout-terminal__row[data-lane-state="failed"],
.atlas-scout-terminal__row[data-lane-state="limited"],
.atlas-scout-terminal__row[data-lane-state="refused"] {
  border-color: color-mix(in srgb, #ff6b6b 38%, var(--aw-line));
}
.atlas-scout-terminal__row[data-lane-state="failed"] span,
.atlas-scout-terminal__row[data-lane-state="limited"] span,
.atlas-scout-terminal__row[data-lane-state="refused"] span {
  border-color: color-mix(in srgb, #ff6b6b 42%, transparent);
  color: color-mix(in srgb, #ff8f8f 78%, var(--text-primary));
}
[data-theme="light"] .atlas-scout-loader {
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 34%),
    linear-gradient(135deg, #ffffff, color-mix(in srgb, var(--accent) 5%, #ffffff));
}
@keyframes atlas-scout-spin {
  to { transform: rotate(360deg); }
}
@keyframes atlas-mail-float {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.94; }
  50% { transform: translate(4px, -3px) scale(1.07); opacity: 1; }
}
@keyframes atlas-mail-orbit-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 38%, transparent), 0 0 34px color-mix(in srgb, var(--accent) 34%, transparent); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 11px color-mix(in srgb, var(--accent) 0%, transparent), 0 0 42px color-mix(in srgb, var(--accent) 46%, transparent); }
}
@keyframes atlas-mail-trail {
  0% { transform: translateX(-8px) scaleX(0.25); opacity: 0; }
  45% { transform: translateX(0) scaleX(1); opacity: 0.82; }
  100% { transform: translateX(10px) scaleX(0.35); opacity: 0; }
}
@keyframes atlas-mail-dot {
  0% { transform: translateX(0) scale(0.8); opacity: 0; }
  45% { opacity: 0.9; }
  100% { transform: translateX(36px) scale(0.72); opacity: 0; }
}
@keyframes atlas-check-pop {
  0% { transform: scale(0.55); opacity: 0; }
  70% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* ─── WORKSTATION FOOTER ────────────────────────────────────────────────── */
.aw-foot {
  padding: 14px 18px;
  border-top: 1px solid var(--aw-line);
  background: linear-gradient(0deg, color-mix(in srgb, var(--accent) 4%, transparent), transparent);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.aw-details {
  border: 1px solid var(--aw-line);
  border-radius: 8px;
  padding: 0;
  background: color-mix(in srgb, var(--bg) 50%, transparent);
}
.aw-details summary {
  list-style: none;
  cursor: pointer;
  padding: 9px 13px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  user-select: none;
}
.aw-details summary::-webkit-details-marker { display: none; }
.aw-details summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 8px;
  color: var(--accent);
  transition: transform 0.18s;
}
.aw-details[open] summary::before { transform: rotate(90deg); }
.aw-details > pre,
.aw-details > .aw-copy {
  margin: 0 12px 12px;
}
.aw-copy--inline {
  display: inline-block;
}
.aw-disclaimer {
  margin: 4px 0 0;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-align: center;
  font-style: italic;
}

/* ─── TEMPLATES SECTION ─────────────────────────────────────────────────── */
.atlas-calendar,
.atlas-market-center,
.atlas-workflows,
.atlas-templates,
.atlas-how {
  margin-top: clamp(48px, 8vw, 84px);
  overflow-anchor: none;
}
.atlas-section-head {
  text-align: center;
  margin-bottom: 32px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.atlas-section-head h2 {
  font-family: var(--sans, Inter, sans-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 14px 0 10px;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}
.atlas-section-head p {
  color: var(--text-dim);
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.atlas-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.atlas-template {
  text-align: left;
  background: var(--atlas-surface);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 12px;
  padding: 22px;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.18s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: inherit;
  color: var(--atlas-ink);
}
.atlas-template:hover, .atlas-template:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 16px 40px -16px color-mix(in srgb, var(--accent) 32%, transparent);
  outline: none;
}
.atlas-template-tier {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  align-self: flex-start;
  border: 1px solid currentColor;
  background: color-mix(in srgb, currentColor 8%, transparent);
}
.atlas-template-tier[data-tier="free"]   { color: var(--green, #10b981); }
.atlas-template-tier[data-tier="signal"] { color: var(--accent); }
.atlas-template-tier[data-tier="pro"]    { color: var(--gold, #f7d56b); }
.atlas-template-tier[data-tier="sovereign"] { color: #b78cff; }
.atlas-template h3 {
  margin: 0;
  font-family: var(--sans, Inter, sans-serif);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--atlas-ink);
}
.atlas-template p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--atlas-muted);
}
.atlas-template-cta {
  margin-top: auto;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ─── WORKFLOW RAIL ────────────────────────────────────────────────────── */
.atlas-workflow-shell {
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 14px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 38%),
    var(--atlas-surface);
  overflow: hidden;
  box-shadow: 0 18px 52px -28px color-mix(in srgb, var(--accent) 42%, transparent);
}
.atlas-workflow-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 320px);
  gap: 1px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  overflow-x: auto;
  width: 100%;
  max-width: 100%;
  scroll-snap-type: x proximity;
}
.atlas-workflow-card {
  min-height: 260px;
  border: 0;
  border-radius: 0;
  scroll-snap-align: start;
}
.atlas-workflow-card h3 {
  font-size: 1.16rem;
}
.atlas-workflow-card p {
  font-size: 0.86rem;
}
.atlas-workflow-api-state {
  margin: 12px auto 0;
  max-width: 680px;
  color: var(--atlas-muted);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}
.atlas-workflow-api-state[data-state="ready"] {
  color: var(--green, #10b981);
}
.atlas-workflow-api-state[data-state="error"] {
  color: var(--amber, #f59e0b);
}
.atlas-workflow-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}
.atlas-workflow-meta span {
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: 999px;
  color: var(--atlas-muted);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── MARKET CENTER ─────────────────────────────────────────────────────── */
.atlas-market-shell {
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 14px;
  background: var(--atlas-surface);
  overflow: hidden;
  box-shadow: 0 18px 52px -28px color-mix(in srgb, var(--accent) 42%, transparent);
}
.atlas-market-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent);
  flex-wrap: wrap;
}
.atlas-market-bar strong,
.atlas-market-bar span {
  display: block;
}
.atlas-market-bar strong {
  color: var(--atlas-ink);
  font-family: var(--sans, Inter, sans-serif);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.atlas-market-bar span {
  margin-top: 4px;
  color: var(--atlas-muted);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.atlas-symbol-search {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: min(100%, 360px);
}
.atlas-symbol-search .aw-input {
  min-width: 0;
  background-color: var(--atlas-control-bg);
}
.atlas-symbol-search button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  border-radius: 8px;
  background: var(--accent);
  color: #031018;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.atlas-asset-rail {
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  overflow-x: auto;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
  background: var(--atlas-surface-soft);
}
.atlas-asset-rail button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: 999px;
  background: transparent;
  color: var(--atlas-muted);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.atlas-asset-rail button.is-active,
.atlas-asset-rail button:hover,
.atlas-asset-rail button:focus-visible {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 58%, transparent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  outline: none;
}
.atlas-market-browser {
  padding: 14px 18px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 5%, transparent), transparent),
    var(--atlas-surface);
}
.atlas-market-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
}
.atlas-market-tabs button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 999px;
  background: transparent;
  color: var(--atlas-muted);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.atlas-market-tabs button.is-active,
.atlas-market-tabs button:hover,
.atlas-market-tabs button:focus-visible {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 58%, transparent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  outline: none;
}
.atlas-market-selectors {
  display: grid;
  grid-template-columns: minmax(160px, 0.38fr) minmax(240px, 1fr);
  gap: 10px;
}
.atlas-market-selectors label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.atlas-market-selectors span {
  color: var(--atlas-muted);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.atlas-market-selectors select {
  background-color: var(--atlas-control-bg);
  min-height: 48px;
  cursor: pointer;
}
.atlas-market-instrument-label select {
  font-family: var(--sans, Inter, system-ui, sans-serif);
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0;
}
.atlas-market-browser-state {
  margin-top: 9px;
  color: var(--atlas-muted);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}
.atlas-market-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 8px;
  max-height: 250px;
  margin-top: 12px;
  padding-right: 2px;
  overflow-y: auto;
}
.atlas-market-result {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--atlas-surface-soft) 82%, transparent);
  color: var(--atlas-ink);
  text-align: left;
  cursor: pointer;
}
.atlas-market-result strong,
.atlas-market-result small {
  font-family: var(--mono, ui-monospace, monospace);
  text-transform: uppercase;
}
.atlas-market-result strong {
  color: var(--atlas-ink);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.atlas-market-result span {
  color: var(--atlas-ink);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.22;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.atlas-market-result small {
  color: var(--atlas-muted);
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.atlas-market-result.is-active,
.atlas-market-result:hover,
.atlas-market-result:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 58%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, var(--atlas-surface));
  outline: none;
}
.atlas-market-empty {
  grid-column: 1 / -1;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent);
  border-radius: 10px;
  color: var(--atlas-muted);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.68rem;
  text-align: center;
}
.atlas-market-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.72fr);
  gap: 1px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.atlas-chart-panel,
.atlas-market-sidebar {
  background: var(--atlas-surface);
  min-width: 0;
}
.atlas-chart-panel {
  padding: 14px;
}
.atlas-market-sidebar {
  display: grid;
  align-content: start;
  gap: 1px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.atlas-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.atlas-panel-head span,
.atlas-panel-head small {
  font-family: var(--mono, ui-monospace, monospace);
  text-transform: uppercase;
}
.atlas-panel-head span {
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}
.atlas-panel-head small {
  color: var(--atlas-muted);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}
.atlas-tv-chart {
  height: clamp(430px, 62vh, 680px);
  border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent);
  border-radius: 10px;
  overflow: hidden;
  overflow-anchor: none;
  background: var(--atlas-surface-soft);
}
.atlas-tv-chart .tradingview-widget-container,
.atlas-tv-chart .tradingview-widget-container__widget,
.atlas-tv-chart .atlas-tv-frame {
  width: 100%;
  height: 100%;
}
.atlas-tv-chart .atlas-tv-frame {
  display: block;
  border: 0;
  overflow-anchor: none;
}
.atlas-tv-chart .atlas-tv-frame--empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  color: var(--text);
}
.atlas-tv-chart .atlas-tv-frame--empty span {
  color: var(--muted);
  max-width: 620px;
}
.atlas-chart-link {
  align-self: start;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  border-radius: 999px;
  text-decoration: none;
  text-transform: uppercase;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.atlas-static-ohlc {
  color: var(--text-primary);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 38%),
    #07111f;
}
.atlas-static-ohlc__body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}
.atlas-static-ohlc__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}
.atlas-static-ohlc__head div {
  min-width: 0;
}
.atlas-static-ohlc__head strong {
  display: block;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: clamp(1rem, 2.4vw, 1.32rem);
  letter-spacing: 0;
}
.atlas-static-ohlc__head span {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}
.atlas-static-ohlc__svg {
  flex: 1;
  width: 100%;
  min-height: 230px;
}
.atlas-static-ohlc__plot {
  fill: color-mix(in srgb, var(--panel) 88%, #05111e);
  stroke: color-mix(in srgb, var(--accent) 26%, transparent);
}
.atlas-static-ohlc__grid line {
  stroke: color-mix(in srgb, var(--accent) 16%, transparent);
  stroke-width: 1;
}
.atlas-static-ohlc__line {
  fill: none;
  stroke: #64d7f2;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.atlas-static-ohlc__dot {
  fill: #6ee7b7;
  stroke: #07111f;
  stroke-width: 2;
}
.atlas-static-ohlc__svg text {
  fill: var(--text-muted);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.atlas-static-ohlc__fallback {
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 100%;
  padding: 24px;
}
/* Day mode: the frame above hardcodes a dark navy background and light
   strokes, which rendered as a dark box inside the light UI (the "pictures
   render dark in day mode" bug). */
[data-theme="light"] .atlas-static-ohlc {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 38%),
    #f4f9fd;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
[data-theme="light"] .atlas-static-ohlc__plot {
  fill: #ffffff;
  stroke: color-mix(in srgb, var(--accent) 30%, transparent);
}
[data-theme="light"] .atlas-static-ohlc__line {
  stroke: #0e7aa8;
}
[data-theme="light"] .atlas-static-ohlc__dot {
  fill: #0f9d6c;
  stroke: #f4f9fd;
}
/* Research-lane click feedback: flash the form pane so selecting a lane
   visibly does something. */
@keyframes aw-pane-flash {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  100% { box-shadow: 0 0 0 14px transparent; }
}
.aw-pane--flash {
  animation: aw-pane-flash 1.3s ease-out 1;
}
.atlas-context-card {
  background: var(--atlas-surface);
  padding: 16px;
  min-width: 0;
}
.atlas-context-metrics {
  display: grid;
  gap: 10px;
  margin: 0;
}
.atlas-context-metrics div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
}
.atlas-context-metrics div:last-child {
  border-bottom: 0;
}
.atlas-context-metrics dt {
  color: var(--atlas-muted);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.atlas-context-metrics dd {
  margin: 0;
  color: var(--atlas-ink);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
}
.atlas-public-source-card {
  border-top: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.atlas-public-source-metrics div {
  align-items: flex-start;
}
.atlas-source-facts {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.atlas-source-facts li {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 13%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--atlas-surface-soft) 72%, transparent);
  min-width: 0;
}
.atlas-source-facts strong {
  color: var(--atlas-ink);
  font-family: var(--sans, Inter, sans-serif);
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.2;
}
.atlas-source-facts span,
.atlas-source-facts li {
  color: var(--atlas-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}
.atlas-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.atlas-source-links a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  border-radius: 999px;
  color: var(--accent);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.atlas-lane-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.atlas-lane-list li {
  padding: 11px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
}
.atlas-lane-list li:last-child {
  border-bottom: 0;
}
.atlas-lane-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.atlas-lane-list strong {
  display: block;
  color: var(--atlas-ink);
  font-size: 0.88rem;
  font-weight: 900;
}
.atlas-lane-list span {
  display: block;
  margin-top: 4px;
  color: var(--atlas-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}
.atlas-lane-button:hover strong,
.atlas-lane-button:focus-visible strong {
  color: var(--accent);
}
.atlas-lane-button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 62%, transparent);
  outline-offset: 4px;
}

/* ─── ECONOMIC CALENDAR ─────────────────────────────────────────────────── */
.atlas-calendar-shell {
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 14px;
  background: var(--atlas-surface);
  overflow: hidden;
  box-shadow: 0 18px 52px -28px color-mix(in srgb, var(--accent) 42%, transparent);
}
.atlas-calendar-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent);
  flex-wrap: wrap;
}
.atlas-calendar-bar strong,
.atlas-calendar-bar span {
  display: block;
  font-family: var(--mono, ui-monospace, monospace);
  text-transform: uppercase;
}
.atlas-calendar-bar strong {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}
.atlas-calendar-bar span {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}
.atlas-calendar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.atlas-calendar-controls .aw-input {
  width: auto;
  min-width: 126px;
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 0.72rem;
  background-color: var(--atlas-control-bg);
}
.atlas-calendar-grid {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow-x: auto;
}
.atlas-calendar-head,
.atlas-calendar-row,
.atlas-calendar-empty {
  min-width: 0;
}
.atlas-calendar-head,
.atlas-calendar-row {
  display: grid;
  grid-template-columns: 104px 82px 96px minmax(220px, 1fr) 96px 96px 96px;
  gap: 12px;
  align-items: center;
  min-width: 850px;
  padding: 12px 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
}
.atlas-calendar-head {
  background: var(--atlas-row-head);
  color: var(--atlas-muted);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.atlas-calendar-row {
  background: var(--atlas-surface);
  color: var(--atlas-ink);
}
.atlas-calendar-row:nth-child(odd) {
  background: var(--atlas-surface-soft);
}
.atlas-calendar-row strong {
  display: block;
  color: var(--atlas-ink);
  font-family: var(--sans, Inter, sans-serif);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
}
.atlas-calendar-row small {
  display: block;
  margin-top: 4px;
  color: var(--atlas-muted);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  line-height: 1.45;
}
.atlas-calendar-time {
  font-family: var(--mono, ui-monospace, monospace);
}
.atlas-calendar-time span {
  display: block;
  color: var(--atlas-ink);
  font-size: 0.72rem;
  font-weight: 800;
}
.atlas-calendar-time small {
  margin-top: 2px;
  text-transform: uppercase;
}
.atlas-calendar-region {
  color: var(--atlas-ink);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.7rem;
  font-weight: 800;
}
.atlas-impact {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid color-mix(in srgb, currentColor 42%, transparent);
  border-radius: 999px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.atlas-impact[data-impact="high"] { color: var(--danger, #ff5c7a); }
.atlas-impact[data-impact="medium"] { color: var(--amber, #f59e0b); }
.atlas-impact[data-impact="low"] { color: var(--accent); }
.atlas-calendar-metric {
  color: var(--atlas-ink);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.72rem;
  font-weight: 800;
}
.atlas-calendar-metric[data-pending="true"] {
  color: var(--atlas-muted);
  font-weight: 600;
}
.atlas-calendar-empty {
  border-top: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
  background: var(--atlas-surface);
  padding: 20px 18px;
  color: var(--atlas-muted);
}
.atlas-calendar-note {
  color: var(--atlas-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}
.atlas-calendar-note {
  margin: 0;
  padding: 0 18px 16px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  font-style: italic;
}

.atlas-cta {
  margin-top: 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.atlas-cta p {
  color: var(--text-dim);
  font-size: 0.94rem;
  margin: 0;
  max-width: 560px;
}
.atlas-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: var(--accent);
  color: #050a14;
  border-radius: 12px;
  font-family: var(--sans, Inter, sans-serif);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 14px 36px -12px color-mix(in srgb, var(--accent) 50%, transparent);
  transition: transform 0.12s, filter 0.18s;
}
.atlas-cta-btn:hover, .atlas-cta-btn:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.06);
  outline: none;
}

/* ─── HOW IT WORKS GRID ─────────────────────────────────────────────────── */
.atlas-how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.atlas-how-grid article {
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 12px;
  padding: 22px;
  background: var(--atlas-surface);
  color: var(--atlas-ink);
}
.atlas-how-grid strong {
  display: block;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.84rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 10px;
}
.atlas-how-grid h3 {
  margin: 0 0 8px;
  font-family: var(--sans, Inter, sans-serif);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--atlas-ink);
}
.atlas-how-grid p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--atlas-muted);
}

/* ─── RESPONSIVE — TABLET / MOBILE ──────────────────────────────────────── */
@media (max-width: 860px) {
  .aw-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  .aw-pane { padding: 18px; }
  .atlas-workstation { min-height: 0; }
  .aw-bar { padding: 12px 14px; }
  .aw-pills { width: 100%; }
  .atlas-scout-loader {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }
  .atlas-scout-loader__copy {
    width: 100%;
    max-width: 680px;
  }
  .atlas-scout-terminal {
    width: 100%;
    max-width: 680px;
  }
}
@media (max-width: 920px) {
  .atlas-workstation {
    border-radius: 12px;
  }
}
@media (max-width: 640px) {
  body[data-site="atlas"] main {
    width: min(100%, calc(100vw - 48px));
    max-width: calc(100vw - 48px);
    padding-top: 84px;
    overflow-x: hidden;
  }
  .atlas-hero-lockup,
  .atlas-lede,
  .atlas-workstation,
  .atlas-market-shell,
  .atlas-calendar-shell,
  .atlas-workflow-shell {
    width: 100%;
    max-width: 100%;
  }
  .atlas-kicker {
    max-width: 100%;
    white-space: normal;
  }
  .atlas-lede {
    max-width: 320px;
    overflow-wrap: break-word;
    word-break: normal;
  }
  .atlas-section-head {
    max-width: min(330px, 100%);
  }
  .atlas-section-head h2 {
    font-size: 1.42rem;
    line-height: 1.12;
    white-space: normal;
  }
  .atlas-section-head p {
    font-size: 0.9rem;
  }
  .atlas-market-grid {
    grid-template-columns: 1fr;
  }
  .atlas-market-bar {
    align-items: flex-start;
  }
  .atlas-symbol-search {
    width: 100%;
  }
  .atlas-symbol-search .aw-input {
    flex: 1 1 auto;
    min-width: 0;
  }
  .atlas-symbol-search button {
    padding: 0 12px;
  }
  .atlas-market-selectors {
    grid-template-columns: 1fr;
  }
  .atlas-market-results {
    grid-template-columns: 1fr;
    max-height: 370px;
  }
  .atlas-market-result {
    min-height: 62px;
  }
  .atlas-tv-chart {
    height: 430px;
  }
  .atlas-workstation {
    border-radius: 10px;
  }
  .atlas-hero-lockup h1 { font-size: clamp(2.2rem, 9vw, 2.8rem); }
  .aw-orb { width: 26px; height: 26px; flex-basis: 26px; }
  .aw-brand-name { font-size: 0.95rem; }
  .aw-brand-rail { display: none; }
  .aw-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .aw-pill {
    font-size: 0.56rem;
    padding: 4px 8px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .aw-pane-head {
    flex-wrap: wrap;
  }
  .aw-pane-state {
    margin-left: 0;
  }
  .atlas-scout-loader {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 16px;
  }
  .atlas-scout-loader__orbit {
    width: 74px;
    height: 74px;
  }
  .atlas-scout-loader__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .aw-output { min-height: 240px; font-size: 0.8rem; }
  .atlas-report-output { font-size: 0.84rem; }
  .atlas-report-sections--profile { grid-template-columns: 1fr; }
  .atlas-scout-lanes { grid-template-columns: 1fr; }
  .atlas-report-chart__frame { height: 300px; }
  .atlas-report__header,
  .atlas-report-section,
  .atlas-report-tweet,
  .atlas-report-sources {
    padding: 13px;
  }
  .atlas-report-tweet {
    padding-left: 46px;
  }
  .atlas-report-tweet span {
    left: 12px;
    top: 13px;
  }
  .atlas-research-history__item {
    grid-template-columns: 1fr;
  }
  .aw-pane-head strong { font-size: 0.66rem; }
  .aw-run { font-size: 0.86rem; }
  .atlas-calendar-grid { overflow-x: visible; }
  .atlas-calendar-head { display: none; }
  .atlas-calendar-row {
    min-width: 0;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 10px 14px 0;
    padding: 14px;
    border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
    border-radius: 10px;
  }
  .atlas-calendar-row:last-child { margin-bottom: 14px; }
  .atlas-calendar-row > * {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-width: 0;
  }
  .atlas-calendar-row > *::before {
    content: attr(data-label);
    grid-column: 1;
    grid-row: 1 / span 3;
    color: var(--atlas-muted);
    font-family: var(--mono, ui-monospace, monospace);
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  .atlas-calendar-row > * > * {
    grid-column: 2;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .atlas-calendar-time span,
  .atlas-calendar-metric,
  .atlas-calendar-region { font-size: 0.68rem; }
}

/* ─── REDUCED MOTION ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .aw-pill--state[data-state="loading"] { animation: none; }
  .atlas-template, .atlas-cta-btn, .aw-run { transition: none; }
  .atlas-scout-loader__orbit::before,
  .atlas-scout-loader__orbit::after {
    animation: none;
  }
  .atlas-scout-loader__bar span {
    transition: none;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   ATLAS LIGHT CONTRAST PASS · 2026-05-11
   Phone screenshots showed washed panels and dark text on the primary button.
   Keep the light mode clean, but raise ink/border/action contrast materially.
   ────────────────────────────────────────────────────────────────────────── */
body[data-site="atlas"] {
  --atlas-border: color-mix(in srgb, var(--accent) 30%, transparent);
  --atlas-border-strong: color-mix(in srgb, var(--accent) 58%, transparent);
  --atlas-action-bg: var(--accent);
  --atlas-action-ink: #04111d;
}

html[data-theme="light"] body[data-site="atlas"],
body[data-site="atlas"][data-theme="light"] {
  --atlas-surface-soft: #eef7ff;
  --atlas-ink: #020817;
  --atlas-muted: #25364d;
  --atlas-row-head: #dcecf8;
  --atlas-border: rgba(7, 89, 133, 0.38);
  --atlas-border-strong: rgba(7, 89, 133, 0.72);
  --atlas-action-bg: #075985;
  --atlas-action-ink: #ffffff;
}

body[data-site="atlas"] .atlas-workstation {
  --aw-border: var(--atlas-border);
  --aw-border-hi: var(--atlas-border-strong);
  --aw-line: var(--atlas-border);
}

html[data-theme="light"] body[data-site="atlas"] .atlas-workstation,
body[data-site="atlas"][data-theme="light"] .atlas-workstation {
  --aw-bg: #dcecf8;
  --aw-bg-pane: #f8fcff;
}

body[data-site="atlas"] .aw-run,
body[data-site="atlas"] .atlas-symbol-search button,
body[data-site="atlas"] .atlas-cta-btn {
  background: var(--atlas-action-bg);
  color: var(--atlas-action-ink);
}

html[data-theme="light"] body[data-site="atlas"] .aw-run,
body[data-site="atlas"][data-theme="light"] .aw-run,
html[data-theme="light"] body[data-site="atlas"] .atlas-symbol-search button,
body[data-site="atlas"][data-theme="light"] .atlas-symbol-search button,
html[data-theme="light"] body[data-site="atlas"] .atlas-cta-btn,
body[data-site="atlas"][data-theme="light"] .atlas-cta-btn {
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
  box-shadow:
    0 0 0 1px rgba(2, 8, 23, 0.08),
    0 14px 30px -14px rgba(7, 89, 133, 0.65);
}

body[data-site="atlas"] .aw-input {
  color: var(--atlas-ink);
  border-color: var(--atlas-border);
}

html[data-theme="light"] body[data-site="atlas"] .aw-input,
body[data-site="atlas"][data-theme="light"] .aw-input {
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(2, 8, 23, 0.035);
}

body[data-site="atlas"] .aw-label-text,
body[data-site="atlas"] .aw-status,
body[data-site="atlas"] .aw-brand-rail,
body[data-site="atlas"] .aw-pane-state,
body[data-site="atlas"] .aw-copy,
body[data-site="atlas"] .aw-details summary,
body[data-site="atlas"] .aw-disclaimer,
body[data-site="atlas"] .atlas-section-head p,
body[data-site="atlas"] .atlas-calendar-bar span,
body[data-site="atlas"] .atlas-calendar-note {
  color: var(--atlas-muted);
}

body[data-site="atlas"] .aw-output,
body[data-site="atlas"] .atlas-template h3,
body[data-site="atlas"] .atlas-calendar-row,
body[data-site="atlas"] .atlas-calendar-row strong,
body[data-site="atlas"] .atlas-market-bar strong,
body[data-site="atlas"] .atlas-context-metrics dd,
body[data-site="atlas"] .atlas-lane-list strong {
  color: var(--atlas-ink);
}

html[data-theme="light"] body[data-site="atlas"] .aw-output,
body[data-site="atlas"][data-theme="light"] .aw-output {
  background: #ffffff;
}

body[data-site="atlas"] .aw-bar,
body[data-site="atlas"] .aw-pane-head,
body[data-site="atlas"] .aw-foot,
body[data-site="atlas"] .atlas-market-bar,
body[data-site="atlas"] .atlas-asset-rail,
body[data-site="atlas"] .atlas-calendar-bar,
body[data-site="atlas"] .atlas-calendar-row,
body[data-site="atlas"] .atlas-calendar-empty,
body[data-site="atlas"] .atlas-context-metrics div,
body[data-site="atlas"] .atlas-lane-list li {
  border-color: var(--atlas-border);
}

body[data-site="atlas"] .aw-output,
body[data-site="atlas"] .aw-details,
body[data-site="atlas"] .aw-copy,
body[data-site="atlas"] .aw-pane-state,
body[data-site="atlas"] .atlas-template,
body[data-site="atlas"] .atlas-market-shell,
body[data-site="atlas"] .atlas-calendar-shell,
body[data-site="atlas"] .atlas-tv-chart,
body[data-site="atlas"] .atlas-how-grid article {
  border-color: var(--atlas-border);
}

html[data-theme="light"] body[data-site="atlas"] .aw-pill[data-state="anon"],
body[data-site="atlas"][data-theme="light"] .aw-pill[data-state="anon"],
html[data-theme="light"] body[data-site="atlas"] .aw-pill--state[data-state="pending"],
body[data-site="atlas"][data-theme="light"] .aw-pill--state[data-state="pending"],
html[data-theme="light"] body[data-site="atlas"] .aw-pane-state[data-state="pending"],
body[data-site="atlas"][data-theme="light"] .aw-pane-state[data-state="pending"] {
  color: #8a5200;
  border-color: rgba(138, 82, 0, 0.46);
  background: rgba(245, 166, 35, 0.11);
}

html[data-theme="light"] body[data-site="atlas"] .aw-pill[data-state="ok"],
body[data-site="atlas"][data-theme="light"] .aw-pill[data-state="ok"],
html[data-theme="light"] body[data-site="atlas"] .aw-pill[data-state="auth"],
body[data-site="atlas"][data-theme="light"] .aw-pill[data-state="auth"] {
  color: #08724f;
  border-color: rgba(8, 114, 79, 0.48);
  background: rgba(31, 156, 112, 0.11);
}

/* ──────────────────────────────────────────────────────────────────────────
   ATLAS DOCS · 2026-05-10
   Standalone documentation page styling. Reuses workstation tokens.
   ────────────────────────────────────────────────────────────────────────── */
.docs-main {
  width: min(880px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 100px 0 80px;
  position: relative;
}

.docs-head {
  margin-bottom: clamp(36px, 6vw, 60px);
}
.docs-head h1 {
  font-family: var(--sans, Inter, sans-serif);
  font-size: clamp(2.2rem, 5.4vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 14px 0 18px;
  color: var(--text-primary);
}
.docs-lede {
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  line-height: 1.65;
  color: var(--text-dim);
  margin: 0 0 24px;
  max-width: 760px;
}
.docs-toc {
  list-style: none;
  margin: 0;
  padding: 14px 18px;
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.docs-toc li {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.docs-toc a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed color-mix(in srgb, var(--accent) 50%, transparent);
}
.docs-toc a:hover, .docs-toc a:focus-visible {
  color: var(--site-accent-text);
  outline: none;
}

.docs-section {
  margin: 0 0 clamp(36px, 6vw, 60px);
  scroll-margin-top: 96px;
}
.docs-section h2 {
  font-family: var(--sans, Inter, sans-serif);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--text-primary);
}
.docs-section h3 {
  font-family: var(--sans, Inter, sans-serif);
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--text-primary);
}
.docs-section p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-dim);
  margin: 0 0 14px;
}
.docs-section p:last-child { margin-bottom: 0; }
.docs-section code {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.85rem;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  padding: 1px 7px;
  border-radius: 5px;
  color: var(--accent);
}
.docs-list {
  margin: 0 0 14px;
  padding-left: 22px;
  color: var(--text-dim);
}
.docs-list li {
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 8px;
}
.docs-list a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.docs-list a:hover, .docs-list a:focus-visible {
  color: var(--site-accent-text);
  border-bottom-color: var(--accent);
  outline: none;
}
.docs-family li { font-size: 0.95rem; }

.docs-table-wrap {
  overflow-x: auto;
  margin: 0 0 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 10px;
}
.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  background: color-mix(in srgb, #07101c 92%, var(--accent));
}
[data-theme="light"] .docs-table {
  background: color-mix(in srgb, #ffffff 96%, var(--accent));
}
.docs-table th, .docs-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
  vertical-align: top;
  color: var(--text-primary);
}
.docs-table th {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.docs-table tr:last-child td { border-bottom: none; }
.docs-table td code {
  font-size: 0.78rem;
}

.docs-tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}
.docs-tier {
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 10px;
  padding: 16px;
  background: color-mix(in srgb, #07101c 92%, var(--accent));
}
[data-theme="light"] .docs-tier {
  background: color-mix(in srgb, #ffffff 96%, var(--accent));
}
.docs-tier header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.docs-tier h3 { margin: 0; font-size: 0.98rem; }
.docs-tier-badge {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: color-mix(in srgb, currentColor 8%, transparent);
}
.docs-tier[data-tier="free"]      .docs-tier-badge { color: var(--green, #10b981); }
.docs-tier[data-tier="signal"]    .docs-tier-badge { color: var(--accent); }
.docs-tier[data-tier="pro"]       .docs-tier-badge { color: var(--gold, #f7d56b); }
.docs-tier[data-tier="sovereign"] .docs-tier-badge { color: var(--violet, #a78bfa); }
.docs-tier p {
  font-size: 0.86rem;
  margin: 0 0 6px;
}

.docs-disclaimer {
  margin: 36px 0 0;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--amber, #f59e0b) 35%, transparent);
  background: color-mix(in srgb, var(--amber, #f59e0b) 6%, transparent);
  border-radius: 10px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--text-dim);
  font-style: italic;
}

.atlas-support {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 72px;
  padding: 28px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg-elevated, #ffffff) 88%, var(--accent) 6%);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
  gap: 22px;
  box-shadow: 0 18px 55px color-mix(in srgb, var(--accent) 10%, transparent);
}
.atlas-support h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 0.98;
  letter-spacing: 0;
}
.atlas-support p {
  max-width: 760px;
  margin: 0;
  color: var(--text-dim);
  line-height: 1.75;
}
.atlas-support-card {
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg, #eef7ff) 78%, #ffffff);
  padding: 18px;
  display: grid;
  gap: 10px;
  align-content: center;
}
.atlas-support-card a {
  color: var(--accent);
  font-weight: 900;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.atlas-support-card span {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .docs-main { padding-top: 84px; }
  .docs-toc { padding: 10px 14px; gap: 6px 12px; }
  .docs-toc li { font-size: 0.72rem; }
  .docs-table th, .docs-table td { padding: 9px 10px; font-size: 0.82rem; }
  .atlas-support {
    width: min(100% - 28px, 1120px);
    grid-template-columns: 1fr;
    padding: 20px;
    margin-bottom: 48px;
  }
}

/* ─── RESEARCH LIBRARY (Phase 2) ─────────────────────────────────────────── */
.atlas-research-history__count { color: var(--accent); font-weight: 900; }
.atlas-research-history__search {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--aw-line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 64%, transparent);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-family: var(--sans, inherit);
}
.atlas-research-history__search:focus {
  outline: none;
  border-color: var(--aw-border-hi, var(--accent));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.atlas-research-history__list {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 2px;
}
.atlas-research-history__item {
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.atlas-research-history__item:hover {
  transform: translateY(-1px);
  border-color: var(--aw-border-hi, var(--accent));
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.atlas-research-history__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.atlas-research-history__status {
  font-style: normal;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--site-accent-text, var(--accent));
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  white-space: nowrap;
}
.atlas-research-history__status[data-status*="ready"],
.atlas-research-history__status[data-status*="cached"] {
  border-color: color-mix(in srgb, var(--green, #10b981) 50%, transparent);
  color: var(--green, #10b981);
  background: color-mix(in srgb, var(--green, #10b981) 14%, transparent);
}
.atlas-research-history__empty {
  margin: 2px 0 0;
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Dopamine completion flourish on the scout loader */
@keyframes atlas-scout-burst {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  70% { box-shadow: 0 0 0 16px color-mix(in srgb, var(--accent) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); }
}
.atlas-scout-loader[data-state="ready"] .atlas-scout-loader__orbit {
  animation: atlas-scout-burst 0.9s ease-out 1;
}
.atlas-scout-loader[data-state="ready"] .atlas-scout-loader__bar span {
  background: linear-gradient(90deg, var(--accent), var(--green, #10b981));
}
@media (prefers-reduced-motion: reduce) {
  .atlas-scout-loader[data-state="ready"] .atlas-scout-loader__orbit { animation: none; }
  .atlas-research-history__item:hover { transform: none; }
}

/* ─── COUNCIL-TV SCOUT TERMINAL (ported from Maverick swarm wall, Atlas cyan) ─ */
/* Recessed CRT council screen: phosphor scanlines + cyan glow + inset bezel. */
.atlas-scout-terminal {
  position: relative;
  gap: 7px;
  padding: 12px;
  border-radius: 9px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0, rgba(255, 255, 255, 0.028) 1px, transparent 1px, transparent 5px),
    radial-gradient(circle at 50% 26%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
    #07101c;
  box-shadow: inset 0 0 26px rgba(0, 0, 0, 0.9), 0 0 22px color-mix(in srgb, var(--accent) 16%, transparent);
}
.atlas-scout-terminal:empty { display: none; }
/* rows sit ON the screen: translucent panes, phosphor-glowing labels */
.atlas-scout-terminal__row {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  border-color: color-mix(in srgb, var(--accent) 22%, transparent);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.atlas-scout-terminal__row strong {
  text-shadow: 0 0 8px color-mix(in srgb, var(--accent) 45%, transparent);
}
.atlas-scout-terminal__row span { box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.6); }
/* in-flight lanes throb like live council seats (the LED cascade) */
.atlas-scout-terminal__row[data-lane-state="running"],
.atlas-scout-terminal__row[data-lane-state="pending"] {
  animation: atlas-led-throb 1.4s ease-in-out infinite;
}
.atlas-scout-terminal__row[data-lane-state="queued"],
.atlas-scout-terminal__row[data-lane-state="waiting"] {
  animation: atlas-led-throb 2.6s ease-in-out infinite; /* calmer idle/gated preview */
  opacity: 0.92;
}
.atlas-scout-terminal__row[data-lane-state="running"] i b,
.atlas-scout-terminal__row[data-lane-state="pending"] i b {
  animation: atlas-bar-shimmer 1.6s linear infinite;
}
@keyframes atlas-led-throb {
  0%, 100% { border-color: color-mix(in srgb, var(--accent) 22%, transparent); box-shadow: none; }
  50% { border-color: color-mix(in srgb, var(--accent) 62%, transparent); box-shadow: 0 0 15px color-mix(in srgb, var(--accent) 24%, transparent); }
}
@keyframes atlas-bar-shimmer {
  0% { opacity: 0.68; } 50% { opacity: 1; } 100% { opacity: 0.68; }
}
/* step chips -> LED cascade: active step glows + pulses */
.atlas-scout-loader[data-step~="source"] [data-step="source"],
.atlas-scout-loader[data-step~="scout"] [data-step="scout"],
.atlas-scout-loader[data-step~="human"] [data-step="human"],
.atlas-scout-loader[data-step~="synth"] [data-step="synth"],
.atlas-scout-loader[data-step~="receipt"] [data-step="receipt"] {
  text-shadow: 0 0 9px color-mix(in srgb, var(--accent) 55%, transparent);
  animation: atlas-led-throb 1.4s ease-in-out infinite;
}
/* pulsing live status dot on the loader kicker */
.atlas-scout-loader__kicker { position: relative; padding-left: 16px; }
.atlas-scout-loader__kicker::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  opacity: 0.85;
}
.atlas-scout-loader[data-state="loading"] .atlas-scout-loader__kicker::before,
.atlas-scout-loader[data-state="pending"] .atlas-scout-loader__kicker::before {
  animation: atlas-dot-pulse 1.6s infinite;
}
@keyframes atlas-dot-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 0%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .atlas-scout-terminal__row[data-lane-state] { animation: none; }
  .atlas-scout-lane[data-lane-state] { animation: none; }
  .atlas-scout-loader__steps span { animation: none; }
  .atlas-scout-loader__kicker::before { animation: none; }
  .atlas-scout-terminal__row[data-lane-state="running"] i b { animation: none; }
  .atlas-scout-lane[data-lane-state="running"] i b { animation: none; }
}
/* Day theme: the council screen becomes a light panel with dark scanlines.
   The cyan accent/glow already flip via var(--accent) (-> #075985 in light). */
[data-theme="light"] .atlas-scout-terminal {
  border-color: color-mix(in srgb, var(--accent) 38%, transparent);
  background:
    repeating-linear-gradient(0deg, rgba(7, 89, 133, 0.05) 0, rgba(7, 89, 133, 0.05) 1px, transparent 1px, transparent 5px),
    radial-gradient(circle at 50% 26%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
    #eef7ff;
  box-shadow: inset 0 0 16px rgba(7, 89, 133, 0.12), 0 0 18px color-mix(in srgb, var(--accent) 14%, transparent);
}
[data-theme="light"] .atlas-scout-terminal__row {
  background: rgba(255, 255, 255, 0.72);
}
[data-theme="light"] .atlas-scout-terminal__row span {
  box-shadow: inset 0 0 6px rgba(7, 89, 133, 0.12);
}

/* ─── ATLAS MOBILE REPORT VIEWPORT + MAIL MOTION · 2026-06-02 ─────────────
   Keeps desktop unchanged while making phone reports, chart rails, source URLs,
   and the mail-in-flight indicator fit cleanly inside the viewport. */
body[data-site="atlas"] {
  overflow-x: hidden;
}
body[data-site="atlas"] .atlas-report,
body[data-site="atlas"] .atlas-report *,
body[data-site="atlas"] .atlas-scout-loader,
body[data-site="atlas"] .atlas-scout-terminal,
body[data-site="atlas"] .atlas-research-history {
  min-width: 0;
}
body[data-site="atlas"] .atlas-report-section__body,
body[data-site="atlas"] .atlas-report-tweet__body,
body[data-site="atlas"] .atlas-report-sources,
body[data-site="atlas"] .atlas-report-chart,
body[data-site="atlas"] .atlas-scout-terminal__row small {
  overflow-wrap: anywhere;
}
body[data-site="atlas"] .atlas-report-section__body a,
body[data-site="atlas"] .atlas-report-sources a {
  word-break: break-word;
}
body[data-site="atlas"] .atlas-scout-loader[data-state="email"] .atlas-scout-loader__orbit {
  display: grid;
  place-items: center;
  overflow: hidden;
}
body[data-site="atlas"] .atlas-scout-loader[data-state="email"] .atlas-scout-loader__orbit::before {
  transform-origin: center;
}
body[data-site="atlas"] .atlas-scout-loader[data-state="email"] .atlas-scout-loader__orbit::after {
  left: 50%;
  top: 50%;
  width: 46px;
  transform: translate(-50%, 14px);
}
body[data-site="atlas"] .atlas-scout-loader[data-state="email"] .atlas-scout-loader__orbit span:nth-child(1) { left: 16px; top: 36px; }
body[data-site="atlas"] .atlas-scout-loader[data-state="email"] .atlas-scout-loader__orbit span:nth-child(2) { left: 16px; top: 42px; }
body[data-site="atlas"] .atlas-scout-loader[data-state="email"] .atlas-scout-loader__orbit span:nth-child(3) { left: 16px; top: 48px; }

@media (max-width: 640px) {
  html,
  body[data-site="atlas"] {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  body[data-site="atlas"] main {
    width: min(100% - 20px, 100vw - 20px);
    max-width: calc(100vw - 20px);
    padding-top: 76px;
  }
  body[data-site="atlas"] .nav-right {
    gap: 8px;
    flex: 0 0 auto;
  }
  body[data-site="atlas"] .nav-right .theme-btn,
  body[data-site="atlas"] .nav-right .ssl-badge {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }
  body[data-site="atlas"] .atlas-workstation,
  body[data-site="atlas"] .aw-body,
  body[data-site="atlas"] .aw-pane,
  body[data-site="atlas"] .aw-form,
  body[data-site="atlas"] .aw-output,
  body[data-site="atlas"] .atlas-report-output,
  body[data-site="atlas"] .atlas-report,
  body[data-site="atlas"] .atlas-report__header,
  body[data-site="atlas"] .atlas-report-chart,
  body[data-site="atlas"] .atlas-report-section,
  body[data-site="atlas"] .atlas-report-sources,
  body[data-site="atlas"] .atlas-scout-loader,
  body[data-site="atlas"] .atlas-research-history {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  body[data-site="atlas"] .aw-pane {
    padding: 14px;
  }
  body[data-site="atlas"] .aw-output {
    padding: 12px;
    overflow-x: hidden;
  }
  body[data-site="atlas"] .atlas-report__chips,
  body[data-site="atlas"] .atlas-report__actions,
  body[data-site="atlas"] .atlas-report-lanes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
  }
  body[data-site="atlas"] .atlas-report__chips span,
  body[data-site="atlas"] .atlas-report__actions a,
  body[data-site="atlas"] .atlas-report-lanes span {
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }
  body[data-site="atlas"] .atlas-report-pdf-theme {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  body[data-site="atlas"] .atlas-report-pdf-theme nav {
    grid-template-columns: 1fr;
  }
  body[data-site="atlas"] .atlas-report-pdf-theme a {
    width: 100%;
    white-space: normal;
  }
  body[data-site="atlas"] .atlas-report-pdf-theme a + a {
    border-left: 0;
    border-top: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  }
  body[data-site="atlas"] .atlas-report-chart {
    padding: 12px;
  }
  body[data-site="atlas"] .atlas-report-chart strong,
  body[data-site="atlas"] .atlas-panel-head small,
  body[data-site="atlas"] .atlas-report-section__body,
  body[data-site="atlas"] .atlas-report-section__body p,
  body[data-site="atlas"] .atlas-report-section__body li,
  body[data-site="atlas"] .atlas-report-section__body code,
  body[data-site="atlas"] .atlas-report-tweet__body,
  body[data-site="atlas"] .atlas-report-sources a {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  body[data-site="atlas"] .atlas-report-section__body a,
  body[data-site="atlas"] .atlas-report-sources a {
    word-break: break-all;
  }
  body[data-site="atlas"] .atlas-report-sources ol {
    grid-template-columns: 1fr;
  }
  body[data-site="atlas"] .atlas-report-chart__frame {
    height: min(340px, 62vh);
  }
  body[data-site="atlas"] .atlas-scout-loader {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 13px;
  }
  body[data-site="atlas"] .atlas-scout-loader__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body[data-site="atlas"] .atlas-scout-loader__steps span {
    white-space: normal;
  }
  body[data-site="atlas"] .atlas-scout-loader__copy {
    width: 100%;
  }
  body[data-site="atlas"] .atlas-scout-terminal {
    width: 100%;
    padding: 9px;
  }
  body[data-site="atlas"] .atlas-scout-terminal__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  body[data-site="atlas"] .atlas-scout-terminal__row span {
    grid-row: auto;
    width: fit-content;
    max-width: 100%;
    min-width: 0;
  }
  body[data-site="atlas"] .atlas-scout-terminal__row i {
    grid-column: 1;
  }
  body[data-site="atlas"] .atlas-research-history__row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }
  body[data-site="atlas"] .atlas-research-history__status {
    width: fit-content;
    max-width: 100%;
    white-space: normal;
  }
}

/* ── Hero motion (2026-06-11 v3): the living depth-field starfield IS the
   hero background now — no aurora blobs, no scan bands. Only the breathing
   kicker dot and the ECG remain as foreground life. ── */
.atlas-hero {
  position: relative;
  isolation: isolate;
  background: transparent;
}
.atlas-hero-accent {
  background: linear-gradient(100deg, var(--accent), #0e7490);
  -webkit-background-clip: text;
  background-clip: text;
}
.atlas-kicker::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 1px;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent);
  animation: atlas-kicker-pulse 2.6s ease-out infinite;
}
@keyframes atlas-kicker-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  70%  { box-shadow: 0 0 0 11px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .atlas-kicker::before { animation: none; }
}

.atlas-hero-lockup { position: relative; }

/* ════════════════════════════════════════════════════════════════════
   ATLAS VISUAL SYSTEM v2 — 2026-06-11 "full neural" pass.
   Hero FX layer (mobile-visible), showcase cards, ripple dopamine,
   stat count-ups, tier strip, payment bar. Reduced-motion guarded.
   ════════════════════════════════════════════════════════════════════ */

/* Hero FX layer retired 2026-06-11 evening: the site-wide depth field
   (atlas-fx3d.js) provides the hero background. Mount divs removed. */
.atlas-hero-lockup { position: relative; z-index: 1; }

/* ── Stat strip: live proof numbers under the hero lede ── */
.atlas-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 6px;
}
.atlas-stat {
  flex: 1 1 130px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel, #07101c) 82%, transparent);
  backdrop-filter: blur(6px);
}
.atlas-stat strong {
  display: block;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: clamp(1.3rem, 3.4vw, 1.8rem);
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.01em;
  text-shadow: 0 0 18px color-mix(in srgb, var(--accent) 35%, transparent);
}
.atlas-stat span {
  display: block;
  margin-top: 2px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted, #a7bfd2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Showcase cards: the four doors. Symbol Coverage is the featured
   double-width card. Per-card hue via --door. ── */
.atlas-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.show-card {
  --door: var(--accent);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 20px 18px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-primary, #f4fbff);
  background:
    linear-gradient(color-mix(in srgb, var(--panel, #07101c) 92%, transparent), color-mix(in srgb, var(--panel, #07101c) 92%, transparent)) padding-box,
    linear-gradient(135deg, color-mix(in srgb, var(--door) 65%, transparent), color-mix(in srgb, var(--door) 12%, transparent) 45%, color-mix(in srgb, var(--door) 55%, transparent)) border-box;
  border: 1.5px solid transparent;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2), box-shadow 0.22s ease;
  will-change: transform;
}
.show-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--door) 16%, transparent), transparent 60%);
  opacity: 0.8;
}
.show-card::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 60%;
  left: -80%;
  background: linear-gradient(105deg, transparent, color-mix(in srgb, var(--door) 18%, transparent), transparent);
  transform: skewX(-18deg);
  transition: left 0.5s ease;
  pointer-events: none;
}
.show-card:hover, .show-card:focus-visible {
  transform: translateY(-5px) scale(1.015);
  box-shadow: 0 18px 48px color-mix(in srgb, var(--door) 26%, transparent);
  outline: none;
}
.show-card:hover::after { left: 120%; }
.show-card:active { transform: translateY(-1px) scale(0.985); transition-duration: 0.08s; }
.show-card--featured { grid-column: 1 / -1; padding: 26px 22px 22px; }
.show-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: color-mix(in srgb, var(--door) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--door) 38%, transparent);
  color: var(--door);
  font-size: 20px;
  box-shadow: 0 0 22px color-mix(in srgb, var(--door) 22%, transparent);
}
.show-card h3 {
  margin: 4px 0 0;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  font-weight: 900;
  letter-spacing: -0.01em;
}
.show-card--featured h3 { font-size: clamp(1.3rem, 3.6vw, 1.7rem); }
.show-card p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-dim, #a7bfd2);
}
.show-go {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--door);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.show-go i {
  font-style: normal;
  transition: transform 0.2s ease;
}
.show-card:hover .show-go i { transform: translateX(6px); }
.show-badge {
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--door);
  border: 1px solid color-mix(in srgb, var(--door) 45%, transparent);
  background: color-mix(in srgb, var(--door) 12%, transparent);
  border-radius: 999px;
  padding: 4px 10px;
  animation: badgeGlow 2.4s ease-in-out infinite;
}
@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--door) 35%, transparent); }
  50%      { box-shadow: 0 0 16px 2px color-mix(in srgb, var(--door) 30%, transparent); }
}
@media (max-width: 640px) {
  .atlas-showcase { grid-template-columns: 1fr; gap: 11px; }
}

/* ── Click ripple: the dopamine tap. JS injects .fc-ripple at tap point. ── */
.fc-ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--door, var(--accent)) 45%, transparent) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  animation: fcRipple 0.55s ease-out forwards;
  z-index: 5;
}
@keyframes fcRipple {
  to { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* ── Homepage tier strip ── */
.atlas-tier-strip {
  margin-top: 40px;
  padding: 26px 22px;
  border-radius: 18px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(color-mix(in srgb, var(--panel, #07101c) 94%, transparent), color-mix(in srgb, var(--panel, #07101c) 94%, transparent)) padding-box,
    linear-gradient(120deg, color-mix(in srgb, var(--accent) 55%, transparent), rgba(99,102,241,0.4), color-mix(in srgb, var(--accent) 55%, transparent)) border-box;
  position: relative;
  overflow: hidden;
}
.atlas-tier-strip::before {
  content: "";
  position: absolute; inset: -60%;
  background: radial-gradient(30% 30% at 30% 30%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
  pointer-events: none;
}
.atlas-tier-strip > * { position: relative; }
.tier-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 16px; }
.tier-col { padding: 16px; border-radius: 13px; border: 1px solid var(--line, rgba(148,210,255,0.16)); background: color-mix(in srgb, var(--bg, #02060d) 55%, transparent); }
.tier-col.pro { border-color: color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: 0 0 34px color-mix(in srgb, var(--accent) 14%, transparent); }
.tier-col h4 { margin: 0 0 4px; font-size: 1rem; }
.tier-col .tier-price { font-family: var(--mono, monospace); font-weight: 900; font-size: 1.5rem; color: var(--accent); }
.tier-col .tier-price s { opacity: 0.45; font-size: 1rem; font-weight: 600; margin-left: 8px; color: var(--text-muted, #a7bfd2); }
.tier-col ul { margin: 10px 0 0; padding-left: 18px; font-size: 0.82rem; color: var(--text-dim, #a7bfd2); }
.tier-col li { margin: 4px 0; }
.tier-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px; padding: 13px 22px; border-radius: 999px;
  background: linear-gradient(110deg, var(--accent), #6366f1 160%);
  color: #02131c; font-weight: 900; font-size: 0.85rem; letter-spacing: 0.04em;
  text-decoration: none; position: relative; overflow: hidden;
  box-shadow: 0 8px 30px color-mix(in srgb, var(--accent) 35%, transparent);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.tier-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 40px color-mix(in srgb, var(--accent) 48%, transparent); }
.tier-cta:active { transform: scale(0.97); }
@media (max-width: 640px) { .tier-cols { grid-template-columns: 1fr; } }

/* ── Payment trust bar ── */
.atlas-paybar {
  margin-top: 34px;
  padding: 18px 16px;
  border-top: 1px solid var(--line, rgba(148,210,255,0.14));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
}
.paymark {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 34px; padding: 6px 14px;
  border: 1px solid var(--line, rgba(148,210,255,0.2));
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel, #07101c) 88%, transparent);
  font-family: Arial, sans-serif; font-weight: 800; font-size: 0.78rem;
  color: var(--text-primary, #f4fbff);
  letter-spacing: 0.02em;
}
.paymark .mc { position: relative; width: 30px; height: 19px; display: inline-block; }
.paymark .mc::before, .paymark .mc::after { content: ""; position: absolute; top: 0; width: 19px; height: 19px; border-radius: 50%; }
.paymark .mc::before { left: 0; background: #eb001b; }
.paymark .mc::after { right: 0; background: #f79e1b; mix-blend-mode: screen; }
.paymark.visa { color: #4f7df9; font-style: italic; font-weight: 900; font-size: 0.95rem; letter-spacing: 0.02em; }
.paymark.amex { color: #59a3ff; font-weight: 900; }
.atlas-paybar .paynote {
  flex-basis: 100%;
  text-align: center;
  font-family: var(--mono, monospace);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted, #a7bfd2);
  margin-top: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .show-badge, .atlas-tier-strip::before { animation: none; }
  .show-card, .tier-cta { transition: none; }
  .fc-ripple { display: none; }
}

/* ── Vision pass refinements (2026-06-11 evening): palette discipline,
   softer glow, data-stream backdrop, heartbeat line. ── */

/* Softer card presence: less shadow shout, same life. */
.show-card:hover, .show-card:focus-visible {
  box-shadow: 0 14px 36px color-mix(in srgb, var(--door) 18%, transparent);
}
.show-badge { animation-duration: 3.2s; }
@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--door) 22%, transparent); }
  50%      { box-shadow: 0 0 12px 1px color-mix(in srgb, var(--door) 20%, transparent); }
}

/* Data-stream backdrop: faint columns rising behind the showcase, like
   quiet market tape. Pure gradients, almost subliminal. */
.atlas-showcase { position: relative; }
.showcase-stream {
  position: absolute;
  inset: -18px -10px;
  z-index: 0;
  pointer-events: none;
  border-radius: 20px;
  overflow: hidden;
  opacity: 0.5;
  background:
    repeating-linear-gradient(90deg, transparent 0 34px, color-mix(in srgb, var(--accent) 5%, transparent) 34px 36px),
    linear-gradient(0deg, transparent, color-mix(in srgb, var(--accent) 7%, transparent) 30%, transparent 60%);
  background-size: 100% 100%, 100% 320px;
  animation: streamRise 12s linear infinite;
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
}
@keyframes streamRise {
  0%   { background-position: 0 0, 0 320px; }
  100% { background-position: 0 0, 0 -320px; }
}
.atlas-showcase > .show-card { z-index: 1; }
[data-theme="light"] .showcase-stream { opacity: 0.3; }

/* Heartbeat: the desk has a pulse. Draws itself, then sweeps forever. */
.atlas-heartbeat {
  display: block;
  width: min(420px, 86%);
  height: 30px;
  margin: 18px 0 0;
  opacity: 0.85;
}
.atlas-heartbeat path {
  stroke-dasharray: 1300;
  stroke-dashoffset: 1300;
  animation: heartbeatDraw 3.2s ease-out forwards, heartbeatGlow 2.4s ease-in-out 3.2s infinite;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 50%, transparent));
}
@keyframes heartbeatDraw {
  to { stroke-dashoffset: 0; }
}
@keyframes heartbeatGlow {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
.paymark.klarna { color: #ffb3c7; font-weight: 900; }
a.atlas-paybar { text-decoration: none; cursor: pointer; }
a.atlas-paybar:hover .paymark { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }

@media (prefers-reduced-motion: reduce) {
  .showcase-stream { animation: none; opacity: 0.25; }
  .atlas-heartbeat path { animation: none; stroke-dashoffset: 0; }
}

/* ── A+ security badge: obvious, green, alive ── */
.ssl-badge--aplus {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 9px !important;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.55) !important;
  background: rgba(52, 211, 153, 0.10) !important;
  color: #34d399 !important;
  text-decoration: none;
  animation: sslPulse 3s ease-in-out infinite;
}
.ssl-badge--aplus .ssl-grade {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}
@keyframes sslPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.35); }
  50%      { box-shadow: 0 0 12px 1px rgba(52, 211, 153, 0.28); }
}
[data-theme="light"] .ssl-badge--aplus { color: #047857 !important; border-color: rgba(4,120,87,0.5) !important; background: rgba(4,120,87,0.08) !important; }
@media (prefers-reduced-motion: reduce) { .ssl-badge--aplus { animation: none; } }

/* ── FX3D layer (2026-06-11): WebGL terrain canvas, ECG live mode,
   sound toggle. ── */
.atlas-fx3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.65;
  mix-blend-mode: screen;
}
[data-theme="light"] .atlas-fx3d-canvas { opacity: 0.28; }

/* ECG sweep is driven entirely by SMIL inside atlas-fx3d.js so the comet
   and the pulse dot share one clock (CSS here would override the SVG
   attributes and desync them). */
.ecg-dot {
  fill: var(--accent);
  filter: drop-shadow(0 0 7px var(--accent)) drop-shadow(0 0 16px color-mix(in srgb, var(--accent) 60%, transparent));
}

.atlas-sound-toggle {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 400;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--panel, #07101c) 92%, transparent);
  backdrop-filter: blur(8px);
  color: var(--text-primary, #f4fbff);
  font-size: 19px;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  opacity: 0.85;
}
.atlas-sound-toggle:hover { transform: scale(1.08); opacity: 1; }
.atlas-sound-toggle:active { transform: scale(0.94); }
.atlas-sound-toggle.is-on {
  border-color: var(--accent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 35%, transparent);
}
@media (prefers-reduced-motion: reduce) {
  .atlas-fx3d-canvas { display: none; }
  .atlas-heartbeat.ecg-live path { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
}


/* ── Top-bar brand banner (2026-06-11): the ATLAS lockup stretches across
   the bar as a hairline rail toward the A+ padlock — a banner, not a clunky
   stretched logo. Tagline hides on small phones; the rail stays. ── */
body[data-site="atlas"] .nav-brand-rail {
  order: 3;
  flex: 1 1 auto;
  min-width: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 8px;
}
body[data-site="atlas"] .nav-brand-rail::before,
body[data-site="atlas"] .nav-brand-rail::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent, #22d3ee) 50%, transparent), color-mix(in srgb, var(--accent, #22d3ee) 6%, transparent));
}
body[data-site="atlas"] .nav-brand-rail::after {
  background: linear-gradient(270deg, color-mix(in srgb, var(--accent, #22d3ee) 50%, transparent), color-mix(in srgb, var(--accent, #22d3ee) 6%, transparent));
}
body[data-site="atlas"] .nav-brand-tag {
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-dim, #a7bfd2);
  white-space: nowrap;
}
@media (max-width: 660px) {
  body[data-site="atlas"] .nav-brand-tag { display: none; }
}
