/* ── Design tokens ───────────────────────────────────────── */

:root {
  --brand: #6D3FE3;
  --gold: #D9A441;
  --surface-warm: #FBF9F6;
  --card-bg: #ffffff;
  --card-shadow: 0 1px 3px rgba(20,14,40,0.06);
  --card-shadow-hover: 0 2px 8px rgba(20,14,40,0.10);

  --planet-sun: #E0A93B;
  --planet-moon: #A8A4B8;
  --planet-mercury: #A37835;
  --planet-venus: #D87BA4;
  --planet-mars: #C24B47;
  --planet-jupiter: #4A6BD4;
  --planet-saturn: #6B4A2E;
  --planet-uranus: #4FB8C4;
  --planet-neptune: #8674C9;
  --planet-pluto: #4A2A5C;
  --planet-chiron: #8FA84A;
  --planet-north-node: #6E6878;

  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body: 'Inter', -apple-system, sans-serif;
  --ff-mono: 'JetBrains Mono', monospace;
}

/* ── App shell ──────────────────────────────────────────── */

.app-shell {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  height: 48px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  font-family: var(--ff-body);
}

.shell-left, .shell-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.shell-logo {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--accent2);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.shell-nav {
  display: flex;
  gap: 4px;
}

.shell-link {
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.shell-link:hover { color: var(--text); background: var(--bg-region); }
.shell-link.active { color: var(--text); background: var(--bg-region); }

.shell-select {
  padding: 4px 8px;
  font-size: 13px;
  border: 1px solid var(--border-input);
  background: var(--bg-input);
  color: var(--text);
  border-radius: 6px;
  font-family: var(--ff-body);
  min-width: 100px;
  width: auto;
}

.shell-icon {
  width: 32px !important;
  height: 32px;
  padding: 0;
  margin: 0;
  font-size: 16px;
  border: 1px solid var(--border-input);
  background: var(--bg-region);
  color: var(--text);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shell-btn {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s;
}

.shell-btn:hover { background: rgba(217,164,65,0.1); }

/* ── Override map layout for insights page ──────────────── */

body:has(#insights-app) {
  display: block;
  height: auto;
  overflow-y: auto;
  font-family: var(--ff-body);
}

/* ── Insights layout ────────────────────────────────────── */

#insights-app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 80px;
  font-family: var(--ff-body);
}

/* ── Section nav (sticky) ───────────────────────────────── */

.section-nav {
  position: sticky;
  top: 48px;
  z-index: 100;
  display: flex;
  gap: 4px;
  padding: 12px 0;
  background: var(--bg-body);
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.snav-link {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.snav-link:hover { color: var(--text); background: var(--bg-region); }
.snav-link.active { color: #fff; background: var(--brand); }

/* ── Sections ───────────────────────────────────────────── */

.ins-section {
  padding: 48px 0;
  scroll-margin-top: 120px;
}

.ins-section + .ins-section {
  border-top: 1px solid var(--border);
}

.section-head {
  margin-bottom: 32px;
  position: relative;
}

.section-title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 28px;
  color: var(--text);
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 14px;
  color: var(--text-muted);
}

.section-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.explainer-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-region);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--ff-body);
  padding: 0;
  flex-shrink: 0;
  margin-top: 0;
}

.explainer-trigger:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.explainer-popover {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  max-width: 520px;
  padding: 16px;
  margin-top: 8px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.explainer-popover.open { display: block; }

.explainer-popover p { margin: 0; }

/* ── Summary hero ───────────────────────────────────────── */

.summary-hero {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}

.summary-name {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 32px;
  color: var(--text);
  margin: 0 0 4px;
}

.summary-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.theme-pills {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.theme-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-body);
  min-width: 120px;
}

.theme-pill-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
  text-transform: capitalize;
}

.theme-pill-planet {
  font-size: 12px;
  font-weight: 500;
  text-transform: capitalize;
}

.theme-pill-desc {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
  font-style: italic;
}

.summary-headline {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.4;
  color: var(--text);
  margin: 0 0 20px;
}

.summary-stats {
  display: flex;
  gap: 32px;
  font-size: 13px;
  color: var(--text-muted);
}

.stat-val {
  font-weight: 600;
  font-size: 20px;
  color: var(--text);
  display: block;
  font-family: var(--ff-mono);
}

.summary-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* ── Summary dashboard ─────────────────────────────────── */

.summary-dashboard {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.dash-left {
  display: flex;
  justify-content: center;
  align-items: center;
}

.dash-city-card {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  margin-bottom: 8px;
  cursor: pointer;
  transition: box-shadow 0.15s;
}

.dash-city-card:hover { box-shadow: var(--card-shadow-hover); }

.dash-city-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.dash-city-rank {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--text-muted);
}

.dash-city-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.dash-city-glyphs {
  margin-left: auto;
  font-size: 14px;
  display: flex;
  gap: 3px;
}

.dash-city-theme {
  font-size: 11px;
  color: var(--text-muted);
}

.dash-action {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  margin-bottom: 8px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  transition: border-color 0.15s;
}

.dash-action:hover { border-color: var(--brand); }

.dash-action-label {
  font-weight: 600;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

/* ── Power planets ──────────────────────────────────────── */

.power-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
}

.radar-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.planet-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.planet-chip-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.planet-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text);
  font-size: 13px;
  font-family: var(--ff-body);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  width: auto;
  margin-top: 0;
}

.planet-chip:hover {
  border-color: var(--chip-color, var(--text-muted));
  background: var(--bg-region);
}

.planet-chip.active {
  border-color: var(--chip-color, var(--brand));
  background: var(--bg-region);
  box-shadow: 0 0 0 1px var(--chip-color, var(--brand));
}

.chip-glyph { font-size: 16px; color: var(--chip-color); }
.chip-name { font-weight: 500; }

.chip-tier-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  margin-left: 2px;
}

.tier-dot-dominant { background: var(--gold); }
.tier-dot-strong { background: var(--brand); }
.tier-dot-moderate { background: var(--text-muted); }

.planet-detail-pane {
  margin-top: 12px;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-panel);
}

.pane-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.planet-card {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  transition: box-shadow 0.15s, transform 0.15s;
}

.planet-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-1px);
}

.pc-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.pc-glyph {
  font-size: 20px;
}

.pc-name {
  font-size: 14px;
  font-weight: 600;
  text-transform: capitalize;
}

.pc-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--bg-region);
  margin-bottom: 8px;
  overflow: hidden;
}

.pc-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease-out;
}

.pc-angles {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.pc-orb {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

.pc-tier {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 6px;
}

.tier-dominant { background: var(--gold); color: #1a1626; }
.tier-strong { background: var(--brand); color: #fff; }
.tier-moderate { border: 1px solid var(--text-muted); color: var(--text-muted); }
.tier-background { color: var(--text-muted); opacity: 0.6; }

.planet-card { cursor: pointer; }

.pc-detail {
  display: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.pc-detail.open { display: block; }

.pc-tier-explain {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
  font-style: italic;
}

.pc-line-row {
  font-size: 12px;
  line-height: 1.5;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}

.pc-line-row:last-child { border-bottom: none; }

.pc-line-label {
  font-weight: 500;
}

.pc-line-interp {
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Line cards (top 5) ─────────────────────────────────── */

.line-card {
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  margin-bottom: 12px;
  transition: box-shadow 0.15s;
}

.line-card:hover { box-shadow: var(--card-shadow-hover); }

.lc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.lc-planet {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lc-glyph {
  font-size: 32px;
}

.lc-label {
  font-size: 18px;
  font-weight: 600;
  text-transform: capitalize;
}

.lc-angle {
  font-size: 13px;
  color: var(--text-muted);
}

.orb-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.orb-gold { background: rgba(217,164,65,0.15); color: var(--gold); }
.orb-violet { background: rgba(109,63,227,0.12); color: var(--brand); }
.orb-grey { background: var(--bg-region); color: var(--text-muted); }
.orb-muted { color: var(--text-muted); opacity: 0.6; }

.lc-headline {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  color: var(--text);
  margin: 0 0 8px;
}

.lc-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.lc-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

/* ── Line table (ranks 6+) ──────────────────────────────── */

.line-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 24px;
}

.line-table th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text-muted);
}

.line-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.line-table tr { transition: background 0.12s; }
.line-table tbody tr:hover { background: var(--bg-item); }

.lt-planet {
  font-weight: 600;
  text-transform: capitalize;
}

.lt-orb {
  font-size: 12px;
  font-weight: 500;
}

.lt-interp {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 450px;
}

/* ── Places / city cards ────────────────────────────────── */

.places-search-section {
  margin-bottom: 16px;
}

.places-search-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 8px;
}

.places-search-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.places-search-label-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.places-search-divider {
  font-size: 12px;
  color: var(--text-muted);
  padding-bottom: 8px;
}

.places-search-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

#line-picker {
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
}

.place-card {
  padding: 20px 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  margin-bottom: 10px;
  transition: box-shadow 0.15s;
}

.place-card-compact { padding: 12px 24px; }
.place-card-expanded { padding: 20px 24px; }

.place-compact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.place-compact-row:hover { opacity: 0.85; }

.place-compact-glyphs {
  display: flex;
  gap: 4px;
  font-size: 16px;
}

.place-detail-body {
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--border);
}

.place-card:hover { box-shadow: var(--card-shadow-hover); }

.place-card-search {
  border-color: var(--brand);
  border-width: 2px;
  margin-bottom: 20px;
}

.place-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.place-rank {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 24px;
  color: var(--text-muted);
  margin-right: 12px;
  min-width: 28px;
}

.place-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.place-score {
  font-size: 14px;
  font-weight: 700;
}

.place-lines {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.place-line-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 12px;
  background: var(--bg-region);
  border: 1px solid var(--border);
}

.place-interp {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  font-style: italic;
}

.place-detail {
  display: none;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--border);
}

.place-detail.open { display: block; }

.place-score-breakdown {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
}

.place-theme-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.place-theme-pill {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--bg-region);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.place-line-detail {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.5;
}

.place-line-detail:last-child { border-bottom: none; }

.place-line-detail .pld-label {
  white-space: nowrap;
  font-weight: 500;
  min-width: 100px;
}

.place-line-detail .pld-interp {
  color: var(--text-muted);
  flex: 1;
}

.place-lines-detail {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.place-expand-toggle {
  font-size: 12px;
  color: var(--brand);
  cursor: pointer;
  padding: 6px 0 2px;
  display: inline-block;
}

.place-expand-toggle:hover { text-decoration: underline; }

.place-map-link {
  font-size: 12px;
  color: var(--brand);
  text-decoration: none;
  display: inline-block;
  margin-top: 8px;
}

.place-map-link:hover { text-decoration: underline; }

/* ── Compatibility ──────────────────────────────────────── */

.compat-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.compat-headline {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 24px;
  color: var(--text);
  margin-bottom: 8px;
}

.compat-score-bar {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}

.compat-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-region);
  border: 1px solid var(--border);
}

.compat-dot.filled { background: var(--gold); border-color: var(--gold); }

.shared-card {
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  background: var(--bg-panel);
  margin-bottom: 8px;
}

.shared-card .sc-label {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  text-transform: capitalize;
}

.shared-card .sc-orbs {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.shared-card .sc-interp {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 6px;
}

.compat-sub-head {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 16px 0 8px;
}

.compat-city-card {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  margin-bottom: 6px;
}

.shared-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  background: var(--gold);
  color: #1a1626;
  margin-left: 4px;
}

/* ── Shared utilities ───────────────────────────────────── */

.city-search-wrap {
  position: relative;
  flex: 1;
  max-width: 340px;
}

.city-search-wrap input {
  width: 100%;
  padding: 6px 12px;
  font-size: 13px;
  border: 1px solid var(--border-input);
  border-radius: 6px;
  background: var(--bg-input);
  color: var(--text);
  font-family: var(--ff-body);
}

.city-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.dd-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
}

.dd-item:hover { background: var(--bg-item); }
.dd-item.dd-empty { cursor: default; color: var(--text-muted); }
.dd-detail { color: var(--text-muted); margin-left: 6px; font-size: 11px; }

.location-label {
  font-size: 12px;
  color: var(--brand);
  margin-bottom: 12px;
  padding: 4px 12px;
  background: rgba(109,63,227,0.08);
  border-radius: 6px;
  display: inline-block;
}

.btn-primary {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  width: auto;
  margin: 0;
  font-family: var(--ff-body);
}

.btn-primary:hover { opacity: 0.9; }

.btn-secondary {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border-input);
  background: transparent;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  width: auto;
  margin: 0;
  font-family: var(--ff-body);
}

.btn-secondary:hover { color: var(--text); background: var(--bg-region); }

.btn-small {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--brand);
  background: transparent;
  color: var(--brand);
  border-radius: 5px;
  cursor: pointer;
  font-family: var(--ff-body);
}

.btn-small:hover { background: var(--brand); color: #fff; }

.btn-link {
  background: none;
  border: none;
  color: var(--brand);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  width: auto;
  margin: 0;
  font-family: var(--ff-body);
}

.btn-link:hover { text-decoration: underline; }

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  font-size: 14px;
}

.overlap-warning {
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  background: rgba(217,164,65,0.10);
  border: 1px solid rgba(217,164,65,0.25);
  color: var(--text);
}

.overlap-warning strong { color: var(--gold); }

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 768px) {
  .app-shell { padding: 0 12px; }
  .shell-logo { font-size: 15px; }
  #insights-app { padding: 0 12px 60px; }
  .ins-section { padding: 32px 0; }
  .section-title { font-size: 22px; }
  .power-layout { grid-template-columns: 1fr; }
  .radar-wrap { order: -1; }
  .planet-grid { grid-template-columns: repeat(2, 1fr); }
  .summary-hero { padding: 20px; }
  .summary-name { font-size: 24px; }
  .summary-stats { flex-wrap: wrap; gap: 16px; }
  .section-nav { gap: 2px; }
  .snav-link { padding: 6px 10px; font-size: 12px; }
  .compat-controls { flex-direction: column; align-items: stretch; }
  .city-search-wrap { max-width: 100%; }
  .summary-dashboard { grid-template-columns: 1fr; }
  .dash-left { order: -1; }
}
