/* ═══════════════════════════════════════════════════════════════════════════
   JP-ATLAS · scoped styles for the Atlas panel inside Guardian
   ─────────────────────────────────────────────────────────────────────────
   All selectors are prefixed `.atlas-` and live inside the Atlas panel only.
   Inherits accent tokens from body.jp-accent-guardian.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────────────────────── */
.atlas-hero {
  position: relative;
  padding: 26px 28px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-soft) 0%, rgba(255,255,255,0) 72%), #ffffff;
  border: 1px solid var(--border);
  margin-bottom: 22px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15,23,42,.03);
}
.atlas-hero::after {
  content:'';
  position:absolute; right:-100px; top:-100px;
  width:300px; height:300px; border-radius:50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  pointer-events:none;
}
.atlas-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 700; color: var(--accent-ink);
  margin-bottom: 12px;
}
.atlas-eyebrow .atlas-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  flex: 0 0 6px;
}
.atlas-hero h1 {
  font-family: Manrope, system-ui, sans-serif;
  font-size: 26px; line-height: 1.2;
  letter-spacing: -.018em; font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
  max-width: 720px;
}
.atlas-hero p.atlas-lede {
  font-size: 13.5px; line-height: 1.6; color: var(--muted);
  max-width: 720px;
  margin: 0;
}

/* ── Section title — shared label for feeds / employer / scope ───────── */
.atlas-section-title {
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: #94a3b8;
  margin: 0 2px 10px;
}
.atlas-section + .atlas-section-title,
.atlas-feeds + .atlas-section-title,
.atlas-emp-tiles + .atlas-section-title,
.atlas-scope + .atlas-section-title { margin-top: 22px; }

/* ── Feed strip ───────────────────────────────────────────────────────── */
.atlas-feeds {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 4px;
}
@media (max-width: 1280px) {
  .atlas-feeds { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}
.atlas-feed {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 11px;
  min-width: 0;
  transition: border-color .15s, box-shadow .15s;
}
.atlas-feed:hover { border-color: rgba(4,120,87,.22); box-shadow: 0 2px 6px rgba(4,120,87,.06); }
.atlas-feed-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 3px rgba(16,185,129,.15);
  flex: 0 0 8px;
}
.atlas-feed-dot.amber { background:#F59E0B; box-shadow: 0 0 0 3px rgba(245,158,11,.18); }
.atlas-feed-dot.gray  { background:#94A3B8; box-shadow: 0 0 0 3px rgba(148,163,184,.18); }
.atlas-feed-text { line-height: 1.25; min-width: 0; overflow: hidden; }
.atlas-feed-label {
  font-size: 12px; font-weight: 700; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.atlas-feed-vendor {
  font-size: 11px; color: var(--muted); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── Employer picker (3 tiles) ────────────────────────────────────────── */
.atlas-emp-tiles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-bottom: 4px;
}
.atlas-emp-tile {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 18px; cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.atlas-emp-tile:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(4,120,87,.08); }
.atlas-emp-tile.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.atlas-emp-name {
  font-family: Manrope, system-ui, sans-serif;
  font-size: 15px; font-weight: 700; color: var(--ink);
  letter-spacing: -.005em;
}
.atlas-emp-sector {
  font-size: 10.5px; color: var(--muted); margin-top: 3px;
  text-transform: uppercase; letter-spacing: .1em; font-weight: 600;
}
.atlas-emp-meta {
  display: flex; align-items: baseline;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 12px; color: var(--muted);
  gap: 10px;
  flex-wrap: wrap;
}
.atlas-emp-meta > span { display: inline-flex; align-items: baseline; gap: 4px; }
.atlas-emp-meta strong {
  color: var(--ink); font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ── Scope controls ───────────────────────────────────────────────────── */
.atlas-scope {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-bottom: 4px;
}
.atlas-scope-field {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px 10px;
  position: relative;
  transition: border-color .15s, box-shadow .15s;
}
.atlas-scope-field:hover { border-color: rgba(4,120,87,.24); }
.atlas-scope-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.atlas-scope-field label {
  display: block;
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: #94a3b8; margin-bottom: 4px;
}
.atlas-scope-field select {
  width: 100%; border: none; background: transparent;
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  appearance: none; outline: none; cursor: pointer;
  padding: 2px 18px 2px 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%2364748B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><polyline points='2.5 4.5 6 8 9.5 4.5'/></svg>");
  background-repeat: no-repeat; background-position: right center;
  background-size: 11px 11px;
}

/* ── Primary action ───────────────────────────────────────────────────── */
.atlas-actions {
  display: flex; gap: 14px; align-items: center;
  margin-top: 22px;
}
.atlas-run-btn {
  background: var(--accent); color: #fff;
  border: 0; border-radius: 999px;
  padding: 13px 26px; font-size: 14px; font-weight: 700;
  letter-spacing: -.005em;
  cursor: pointer; transition: background .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 4px 12px rgba(4,120,87,.22), inset 0 1px 0 rgba(255,255,255,.12);
  display: inline-flex; align-items: center; gap: 10px;
}
.atlas-run-btn:hover { background: var(--accent-dk); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(4,120,87,.32), inset 0 1px 0 rgba(255,255,255,.14); }
.atlas-run-btn:active { transform: translateY(0); }
.atlas-run-btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: currentColor; stroke-linecap:round; stroke-linejoin:round; }
.atlas-run-hint {
  font-size: 12px; color: var(--muted);
  letter-spacing: .01em;
}

/* ── Analyzing state ──────────────────────────────────────────────────── */
.atlas-analyzing {
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  padding: 60px 40px;
  min-height: 480px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.atlas-analyzing-orb {
  width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, var(--accent-soft) 30%, var(--accent) 100%);
  position: relative;
  margin-bottom: 28px;
  box-shadow: 0 0 0 6px var(--accent-soft), 0 16px 40px rgba(4,120,87,.20);
  animation: atlas-pulse 2.4s ease-in-out infinite;
}
.atlas-analyzing-orb::before {
  content:''; position:absolute; inset:-14px; border-radius:50%;
  border: 1.5px dashed var(--accent); opacity:.4;
  animation: atlas-spin 8s linear infinite;
}
@keyframes atlas-pulse {
  0%,100% { box-shadow: 0 0 0 6px var(--accent-soft), 0 16px 40px rgba(4,120,87,.20); }
  50%     { box-shadow: 0 0 0 14px var(--accent-soft), 0 16px 40px rgba(4,120,87,.30); }
}
@keyframes atlas-spin { to { transform: rotate(360deg); } }

.atlas-analyzing-title {
  font-family: Manrope, system-ui, sans-serif;
  font-size: 22px; font-weight: 700; color: var(--ink);
  margin-bottom: 6px;
}
.atlas-analyzing-sub {
  font-size: 13.5px; color: var(--muted); margin-bottom: 26px;
}
.atlas-analyzing-lines {
  width: 100%; max-width: 540px;
  display: flex; flex-direction: column; gap: 10px;
  text-align: left;
}
.atlas-analyzing-line {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: #F8FAFC; border: 1px solid var(--border); border-radius: 10px;
  font-size: 13px; color: var(--ink);
  opacity: 0; transform: translateY(6px);
  transition: opacity .35s ease-out, transform .35s ease-out;
}
.atlas-analyzing-line.show { opacity: 1; transform: translateY(0); }
.atlas-analyzing-line.done .atlas-tick { color: var(--accent); }
.atlas-tick {
  width: 18px; height: 18px; flex: 0 0 18px;
  border-radius: 50%; background: var(--accent-soft);
  display: grid; place-items: center;
  color: var(--accent); font-size: 12px; font-weight: 700;
}

/* ── Report state · grid ──────────────────────────────────────────────── */
.atlas-report {
  display: grid; grid-template-columns: 380px 1fr; gap: 18px;
  align-items: start;
}
@media (max-width: 1180px) {
  .atlas-report { grid-template-columns: 1fr; }
}

/* ── Phenotype card (left column) ─────────────────────────────────────── */
.atlas-pheno {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 18px 20px 20px;
  position: sticky; top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  box-shadow: 0 1px 2px rgba(15,23,42,.03);
}
.atlas-pheno::-webkit-scrollbar { width: 6px; }
.atlas-pheno::-webkit-scrollbar-track { background: transparent; }
.atlas-pheno::-webkit-scrollbar-thumb { background: rgba(148,163,184,.3); border-radius: 3px; }
.atlas-pheno-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
  gap: 10px;
}
.atlas-pheno-title {
  font-family: Manrope, system-ui, sans-serif;
  font-size: 15px; font-weight: 700; color: var(--ink);
  letter-spacing: -.005em;
}
.atlas-pheno-stamp {
  font-size: 10px; color: #94a3b8;
  letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
  white-space: nowrap;
}
.atlas-pheno-section { padding: 12px 0 14px; border-bottom: 1px dashed var(--border); }
.atlas-pheno-section:first-of-type { padding-top: 4px; }
.atlas-pheno-section:last-child { border-bottom: 0; padding-bottom: 0; }
.atlas-pheno-section-title {
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: #94a3b8; margin-bottom: 10px;
}

/* horizontal bar list (geo) */
.atlas-bar-row {
  display: grid; grid-template-columns: 110px 1fr 38px;
  align-items: center; gap: 8px;
  font-size: 12px; padding: 4px 0;
}
.atlas-bar-row .atlas-bar-label { color: var(--ink); font-weight: 600; }
.atlas-bar-track {
  height: 6px; border-radius: 4px;
  background: var(--accent-soft);
  position: relative; overflow: hidden;
}
.atlas-bar-fill {
  position: absolute; left:0; top:0; bottom:0;
  background: var(--accent);
  border-radius: 4px;
  transition: width .6s cubic-bezier(.2,.8,.2,1);
}
.atlas-bar-row .atlas-bar-val { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

/* donut — risk band */
.atlas-donut-wrap { display: flex; align-items: center; gap: 16px; }
.atlas-donut {
  width: 96px; height: 96px; border-radius: 50%;
  background: conic-gradient(
    #94A3B8 0% var(--lo, 0%),
    #FBBF24 var(--lo, 0%) calc(var(--lo, 0%) + var(--ri, 0%)),
    #F97316 calc(var(--lo, 0%) + var(--ri, 0%)) calc(var(--lo, 0%) + var(--ri, 0%) + var(--hi, 0%)),
    #DC2626 calc(var(--lo, 0%) + var(--ri, 0%) + var(--hi, 0%)) 100%
  );
  position: relative;
  flex: 0 0 96px;
}
.atlas-donut::after {
  content:''; position:absolute; inset: 12px;
  background:#fff; border-radius:50%;
  box-shadow: inset 0 0 0 1px var(--border);
}
.atlas-donut-legend { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.atlas-donut-legend .row { display:flex; align-items:center; gap:6px; color: var(--ink); }
.atlas-donut-legend .sw { width: 9px; height: 9px; border-radius: 2px; flex:0 0 9px; }

/* condition rows */
.atlas-cond-row {
  display: grid; grid-template-columns: 1fr 50px 60px 50px;
  gap: 6px; padding: 5px 0; align-items: baseline;
  font-size: 12px;
  border-bottom: 1px dotted var(--border);
}
.atlas-cond-row:last-child { border-bottom: 0; }
.atlas-cond-row .lab { color: var(--ink); font-weight: 600; }
.atlas-cond-row .val { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.atlas-cond-row .idx { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.atlas-cond-row .idx.over { color: var(--accent); }
.atlas-cond-row .idx.under { color: #94A3B8; }

/* procedure forecast */
.atlas-proc-row {
  display: grid; grid-template-columns: 1fr 50px 70px;
  gap: 6px; padding: 5px 0; align-items: baseline;
  font-size: 12px; border-bottom: 1px dotted var(--border);
}
.atlas-proc-row:last-child { border-bottom: 0; }
.atlas-proc-row .lab { color: var(--ink); font-weight: 600; }
.atlas-proc-row .ct, .atlas-proc-row .cost {
  color: var(--muted); font-variant-numeric: tabular-nums; text-align: right;
}
.atlas-proc-row .intl { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-left: 4px; vertical-align: middle; }

/* signal chips */
.atlas-signals { display: flex; flex-wrap: wrap; gap: 6px; }
.atlas-signal-chip {
  font-size: 11.5px; padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink); font-weight: 600;
}
.atlas-signal-chip.warn { background: rgba(245,158,11,.10); color: #92400E; }
.atlas-signal-chip.info { background: rgba(59,130,246,.10); color: #1E40AF; }

/* Pareto */
.atlas-pareto {
  display: flex; align-items: flex-end; height: 60px; gap: 3px;
  padding: 8px 0;
}
.atlas-pareto-bar {
  flex: 1; background: var(--accent-soft); border-radius: 3px 3px 0 0;
  min-height: 4px;
}
.atlas-pareto-bar.hi { background: var(--accent); }
.atlas-pareto-caption { font-size: 12px; color: var(--ink); margin-top: 6px; line-height: 1.45; }
.atlas-pareto-caption strong { color: var(--accent-ink); }

/* ── Network composition (right column) ───────────────────────────────── */
.atlas-network-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 14px 18px 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(15,23,42,.03);
}
.atlas-headline {
  font-family: Manrope, system-ui, sans-serif;
  font-size: 18px; font-weight: 700; color: var(--ink);
  letter-spacing: -.016em; line-height: 1.24;
  margin-bottom: 3px;
}
.atlas-headline strong { color: var(--accent-dk); font-weight: 800; }
.atlas-subhead {
  font-size: 12px; color: var(--muted);
  margin-bottom: 10px; line-height: 1.45;
  max-width: 680px;
}

.atlas-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.atlas-kpi {
  padding: 8px 12px;
  background: linear-gradient(180deg, #FCFDFE 0%, #F8FAFC 100%);
  border: 1px solid var(--border); border-radius: 10px;
  position: relative; overflow: hidden;
}
.atlas-kpi::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--accent), #10B981);
  opacity: .75;
}
.atlas-kpi-lbl {
  font-size: 9.5px; letter-spacing: .11em; text-transform: uppercase;
  font-weight: 700; color: #94a3b8; margin-bottom: 2px;
}
.atlas-kpi-val {
  font-family: Manrope, system-ui, sans-serif;
  font-size: 17px; font-weight: 700; color: var(--ink);
  letter-spacing: -.015em; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.atlas-kpi-sub { font-size: 10.5px; color: var(--muted); margin-top: 1px; }

/* map */
.atlas-map-frame {
  height: 340px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border);
  background: #E8F1F7;
}
.atlas-map-frame .leaflet-container { border-radius: 14px; }
.atlas-pin {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 4px 10px rgba(4,120,87,.30);
  position: relative;
  cursor: pointer;
  transition: transform .15s;
}
.atlas-pin:hover { transform: scale(1.18); }
.atlas-pin[data-vol="hi"]::after {
  content:''; position:absolute; inset:-6px; border-radius:50%;
  border:1.5px solid var(--accent); opacity:.4;
}
.atlas-pin-origin {
  width: 10px; height: 10px; border-radius: 50%;
  background: #1E293B; border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,.15);
}
.atlas-popup-title { font-weight: 700; color: var(--ink); font-size: 13px; }
.atlas-popup-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; margin-bottom: 8px; }
.atlas-popup-fit {
  display: grid; grid-template-columns: 60px 1fr 28px;
  gap: 6px; align-items: center;
  font-size: 11px; color: var(--muted); margin: 3px 0;
}
.atlas-popup-fit .ftrk { height: 4px; background: var(--accent-soft); border-radius: 2px; overflow: hidden; }
.atlas-popup-fit .ffil { height: 100%; background: var(--accent); border-radius: 2px; }
.atlas-popup-fit .fval { font-weight: 700; color: var(--accent-ink); text-align: right; }
.atlas-popup-why {
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border);
  font-size: 11.5px; color: var(--ink); line-height: 1.4;
}

/* ══════════════════════════════════════════════════════════════════
   Adoption calculator — v2 · brand-forward, modern, glass-morphic
═══════════════════════════════════════════════════════════════════ */
.atlas-calc-card {
  background:
    /* hairline inner highlight along top */
    linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 40%),
    /* moving highlight spotlight */
    radial-gradient(ellipse 60% 80% at 100% -10%, rgba(255,255,255,.14), transparent 55%),
    /* warm accent in lower-left */
    radial-gradient(ellipse 50% 80% at -5% 110%, rgba(16,185,129,.32), transparent 55%),
    /* base color wash */
    linear-gradient(135deg, #022c22 0%, var(--accent-dk) 18%, var(--accent) 55%, #0d9268 100%);
  border-radius: 20px;
  padding: 26px 28px 22px;
  color: #fff;
  margin-bottom: 16px;
  box-shadow:
    0 24px 56px rgba(4,120,87,.28),
    0 6px 16px rgba(4,120,87,.18),
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -1px 0 rgba(0,0,0,.12);
  position: relative; overflow: hidden;
  isolation: isolate;
}
/* Brand-mark watermark — visually quiet, gives the card identity */
.atlas-calc-card::before {
  content: '';
  position: absolute; right: -40px; bottom: -60px;
  width: 260px; height: 260px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.08), transparent 62%);
  z-index: 0; pointer-events: none;
}
.atlas-calc-card::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(
      115deg,
      transparent 0,
      transparent 38px,
      rgba(255,255,255,.015) 38px,
      rgba(255,255,255,.015) 39px
    );
  pointer-events: none; z-index: 0;
  mix-blend-mode: overlay;
}
.atlas-calc-card > * { position: relative; z-index: 1; }

.atlas-calc-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}
.atlas-calc-title {
  font-family: Manrope, system-ui, sans-serif;
  font-size: 10.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .16em;
  opacity: .92;
  display: inline-flex; align-items: center; gap: 8px;
}
.atlas-calc-title::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #6EE7B7;
  box-shadow: 0 0 0 3px rgba(110,231,183,.28), 0 0 14px rgba(110,231,183,.9);
}
.atlas-calc-help {
  font-size: 11px; opacity: .82;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  letter-spacing: .01em;
  font-weight: 600;
}

.atlas-calc-out {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-bottom: 22px;
}
.atlas-calc-out-cell {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.06) 100%);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  padding: 15px 16px 14px;
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.26),
    inset 0 -1px 0 rgba(0,0,0,.08),
    0 4px 10px rgba(0,0,0,.04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.atlas-calc-out-cell:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.32),
    inset 0 -1px 0 rgba(0,0,0,.08),
    0 10px 22px rgba(0,0,0,.12);
}
.atlas-calc-out-cell::before {
  content: ''; position: absolute; left: 14px; top: 14px;
  width: 18px; height: 18px; border-radius: 6px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  display: none; /* reserved for future icon slot */
}
.atlas-calc-out-lbl {
  font-size: 10px; opacity: .85;
  letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; margin-bottom: 8px;
}
.atlas-calc-out-val {
  font-family: Manrope, system-ui, sans-serif;
  font-size: 30px; font-weight: 800;
  letter-spacing: -.026em; line-height: 1.02;
  font-variant-numeric: tabular-nums lining-nums;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,.88) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  transition: opacity .18s ease, filter .18s ease;
}
.atlas-calc-out-cell.is-updating .atlas-calc-out-val {
  filter: blur(0.5px);
  opacity: .7;
}
.atlas-calc-out-sub {
  font-size: 11.5px; opacity: .82; margin-top: 6px;
  display: flex; align-items: center; gap: 6px;
}
.atlas-calc-out-sub .atlas-calc-spark {
  display: inline-block;
  width: 28px; height: 10px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.32), rgba(255,255,255,.55));
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 10' fill='none'><polyline points='0,8 6,5 11,6 16,3 22,4 28,1' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 10' fill='none'><polyline points='0,8 6,5 11,6 16,3 22,4 28,1' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain; mask-size: contain;
}

/* Slider panel */
.atlas-slider-wrap {
  margin-top: 8px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.16);
  position: relative;
}
.atlas-slider-wrap::before {
  content: 'Tune'; position: absolute; top: -10px; left: 0;
  padding: 2px 10px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 999px;
  font-size: 9.5px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.92);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.atlas-slider-row {
  display: grid; grid-template-columns: 130px 1fr 70px;
  align-items: center; gap: 14px;
  margin-bottom: 12px;
}
.atlas-slider-row:last-child { margin-bottom: 0; }
.atlas-slider-lbl {
  font-size: 12px; font-weight: 600; opacity: .95;
  letter-spacing: .005em;
}
.atlas-slider-val {
  font-size: 13.5px; font-weight: 700;
  text-align: right; font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.atlas-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 5px; border-radius: 4px;
  background: rgba(255,255,255,.22);
  outline: none;
  cursor: pointer;
}
.atlas-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.18), 0 0 0 3px rgba(255,255,255,.12);
  border: 2px solid var(--accent-dk);
  transition: transform .15s;
}
.atlas-slider::-webkit-slider-thumb:hover { transform: scale(1.1); }
.atlas-slider::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  border: 2px solid var(--accent-dk);
}

/* ── Footer actions ───────────────────────────────────────────────────── */
.atlas-foot-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding-top: 4px;
}
.atlas-foot-btn {
  background: #fff; color: var(--accent-ink);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 18px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: border-color .15s, background .15s, color .15s, transform .12s;
  display: inline-flex; align-items: center; gap: 8px;
  letter-spacing: -.005em;
}
.atlas-foot-btn:hover {
  border-color: var(--accent); background: var(--accent-soft);
  color: var(--accent-dk);
}
.atlas-foot-btn.primary {
  background: var(--accent); color: #fff; border-color: var(--accent);
  box-shadow: 0 2px 6px rgba(4,120,87,.18);
}
.atlas-foot-btn.primary:hover {
  background: var(--accent-dk); color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(4,120,87,.26);
}

/* ── Honest-disclosure footer ─────────────────────────────────────────── */
.atlas-disclaimer {
  margin-top: 14px;
  font-size: 11.5px; color: var(--muted); line-height: 1.55;
  padding: 12px 16px; background: #F8FAFC; border-radius: 10px;
  border: 1px dashed var(--border);
}
.atlas-disclaimer strong { color: var(--ink); font-weight: 600; }

/* ── Tooltip helper ───────────────────────────────────────────────────── */
.atlas-info {
  display: inline-block; width: 14px; height: 14px;
  border-radius: 50%; background: var(--border);
  color: var(--muted); font-size: 10px; font-weight: 700;
  text-align: center; line-height: 14px;
  cursor: help; margin-left: 4px;
  vertical-align: middle;
}
