:root {
  --bg: #f7f9fc;
  --bg-soft: #eef2f9;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e6ebf2;
  --brand: #6366f1;
  --brand-2: #8b5cf6;
  --ring: rgba(99, 102, 241, 0.25);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --radius: 16px;
  --page-background: url("/assets/page-background-light.png");
  --page-tint: rgba(247, 249, 252, 0.74);
  --content-gutter: max(clamp(0.75rem, 2vw, 3rem), calc((100vw - 2200px) / 2));
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1120;
  --bg-soft: #172033;
  --card: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --line: #293449;
  --ring: rgba(129, 140, 248, 0.35);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 8px 24px rgba(0, 0, 0, 0.2);
  --page-background: url("/assets/page-background.png");
  --page-tint: rgba(5, 10, 25, 0.64);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.55;
  background-color: var(--bg);
  min-height: 100vh;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 4rem 1.25rem 1.5rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand);
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  margin-bottom: 1.1rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  line-height: 1.05;
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  max-width: 34rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
  display: grid;
  gap: 2.25rem;
}

h2 {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.9rem;
}

/* ── Indicator cards ──────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.9rem; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1); }
.card-top { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); }
.card-icon { font-size: 1.1rem; }
.card-label { font-size: 0.9rem; font-weight: 600; }
.card-value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 0.45rem;
}
.card-caption { font-size: 0.75rem; color: var(--muted); }

/* skeleton while loading */
.skeleton {
  display: inline-block;
  width: 3.5rem; height: 1.5rem;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--bg-soft) 25%, #f1f5fb 37%, var(--bg-soft) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease infinite;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ── Chat ─────────────────────────────────────────────────────────────── */
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
#ask-form { display: flex; gap: 0.6rem; }
#question {
  flex: 1;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#question:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }
.voice-input {
  flex: 0 0 3rem;
  width: 3rem;
  padding: 0;
  display: inline-grid;
  place-items: center;
}
.ask-actions { display: flex; gap: 0.6rem; }
.voice-input svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }
.voice-input.listening {
  color: #fff;
  border-color: #ef4444;
  background: #ef4444;
  animation: voice-pulse 1.25s ease-in-out infinite;
}
.voice-status { min-height: 1.1rem; margin: 0.35rem 0 0; color: var(--muted); font-size: 0.74rem; }
@keyframes voice-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.32); }
  50% { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); }
}
button {
  padding: 0.85rem 1.4rem;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
button:hover { transform: translateY(-1px); filter: brightness(1.05); }
button:active { transform: translateY(0); }
button:disabled { opacity: 0.6; cursor: default; transform: none; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.chip {
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.chip:hover { color: var(--brand); border-color: var(--brand); background: #fff; }

.answer {
  margin-top: 1.1rem;
  border-left: 3px solid var(--brand);
  background: var(--bg-soft);
  border-radius: 0 12px 12px 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}
.answer.show { max-height: 30rem; opacity: 1; padding: 1rem 1.2rem; }
.answer p { margin: 0 0 0.5rem; }
.answer small { color: var(--muted); }

.typing { display: inline-flex; gap: 0.25rem; }
.typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
  animation: bounce 1s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; } 40% { transform: scale(1); opacity: 1; } }

/* ── Account & alerts ─────────────────────────────────────────────────── */
.ghost {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--line);
  font-weight: 600;
}
.ghost:hover { background: var(--bg-soft); filter: none; }

/* Top navigation bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: color-mix(in srgb, var(--card) 82%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-actions { display: flex; align-items: center; gap: 0.6rem; }
.theme-toggle { width: 2.5rem; padding: 0.5rem; }
.topbar .brand {
  font-weight: 800;
  font-size: 1.1rem;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-controls { display: flex; align-items: center; gap: 0.6rem; }
.auth-controls button { padding: 0.5rem 1rem; font-size: 0.9rem; }
.profile-button { max-width: clamp(7rem, 16vw, 13rem); }
.profile-button span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Empty call-to-action (logged-out alerts panel) */
.empty-cta { text-align: center; padding: 1rem 0.5rem; }
.empty-cta p { color: var(--muted); margin: 0 0 1rem; }

/* Auth modal (native <dialog>) */
.modal {
  background: var(--card);
  color: var(--text);
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  width: min(92vw, 26rem);
  max-height: calc(100svh - 2rem);
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}
.modal::backdrop { background: rgba(15, 23, 42, 0.45); backdrop-filter: blur(2px); }
#auth-modal-body { padding: 1.5rem; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.tabs { display: flex; gap: 0.25rem; background: var(--bg-soft); padding: 0.25rem; border-radius: 10px; }
.tab {
  background: transparent; color: var(--muted); border: 0;
  padding: 0.45rem 0.9rem; border-radius: 8px; font-weight: 600; cursor: pointer;
}
.tab.active { background: #fff; color: var(--brand); box-shadow: var(--shadow); }
.modal-close {
  background: transparent; color: var(--muted); border: 0;
  font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 0.25rem;
}
.modal-close:hover { color: var(--text); transform: none; }

.modal-form { display: flex; flex-direction: column; gap: 0.35rem; }
.modal-form label { font-size: 0.85rem; font-weight: 600; color: var(--muted); display: flex; flex-direction: column; gap: 0.35rem; }
.modal-form input {
  padding: 0.7rem 0.9rem; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--text); font-size: 1rem; font-weight: 400;
}
.modal-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }
.modal-form button.full { width: 100%; margin-top: 0.75rem; }
.modal-form button { padding: 0.8rem 1.2rem; }
.stepper { font-size: 0.8rem; font-weight: 600; color: var(--brand); margin-bottom: 1rem; }
.muted-line { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.25rem; }
.optional { font-weight: 400; color: var(--muted); }
.step-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.step-actions button { flex: 1; }
.field-err { color: #dc2626; font-size: 0.8rem; margin: 0; min-height: 1rem; }
.form-msg { font-size: 0.85rem; margin: 0.5rem 0 0; min-height: 1rem; }
.form-msg.err { color: #dc2626; }
.form-msg.ok { color: #16a34a; }
.pw-reqs { list-style: none; margin: 0.1rem 0 0.4rem; padding: 0; font-size: 0.8rem; color: var(--muted); }
.pw-reqs li::before { content: "○ "; }
.pw-reqs li.ok { color: #16a34a; }
.pw-reqs li.ok::before { content: "✓ "; }

.alert-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: end; gap: 0.75rem; margin-bottom: 0.35rem; }
.alert-form label { display: grid; gap: 0.35rem; color: var(--muted); font-size: 0.76rem; font-weight: 700; }
.alert-form input, .alert-form select {
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 0.95rem;
}
.alert-form input, .alert-form select { width: 100%; min-width: 0; min-height: 2.8rem; }
.alert-form button { min-height: 2.8rem; white-space: nowrap; }

.alert-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.alert-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
}
.alert-list .empty { justify-content: center; color: var(--muted); }

.history-gate { text-align: center; color: var(--muted); }
.history-gate p, .history-empty { margin: 0 0 0.8rem; }
.history-toolbar { display: flex; justify-content: flex-end; margin-bottom: 0.75rem; }
.history-toolbar button { padding: 0.45rem 0.75rem; }
.history-list { list-style: none; display: grid; gap: 0.75rem; margin: 0; padding: 0; max-height: min(34rem, 60vh); overflow-y: auto; overscroll-behavior: contain; }
.history-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
}
.history-list strong { display: block; margin-bottom: 0.25rem; }
.history-list p { color: var(--muted); margin: 0; }
.history-list button { flex: 0 0 auto; padding: 0.45rem 0.7rem; }

:root[data-theme="dark"] .badge,
:root[data-theme="dark"] #question,
:root[data-theme="dark"] .modal-form input,
:root[data-theme="dark"] .alert-form input,
:root[data-theme="dark"] .alert-form select,
:root[data-theme="dark"] .tab.active,
:root[data-theme="dark"] .chip:hover { background: var(--card); }

footer { text-align: center; color: var(--muted); padding: 1rem 1.25rem 3rem; font-size: 0.85rem; }
footer a { color: var(--brand); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── Spacious dashboard layout and generated visual assets ────────────── */
[hidden] { display: none !important; }
body {
  position: relative;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--page-tint), var(--page-tint)),
    var(--page-background);
  background-position: center, center top;
  background-size: auto, 100% 100vh;
  background-attachment: fixed, fixed;
  background-repeat: no-repeat, no-repeat;
}

.topbar { padding-inline: var(--content-gutter); }
.hero {
  position: relative;
  isolation: isolate;
  min-height: 25rem;
  display: flex;
  align-items: center;
  text-align: left;
  padding: 4.5rem var(--content-gutter);
  overflow: hidden;
  background: transparent;
}
.hero-content { width: min(40rem, 70%); }
.hero .badge {
  color: #c4b5fd;
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(196, 181, 253, 0.25);
  box-shadow: none;
}
.hero h1 {
  max-width: 42rem;
  margin-bottom: 1rem;
  font-size: clamp(3rem, 5.5vw, 5rem);
  color: var(--text);
  background: none;
  letter-spacing: -0.055em;
}
.hero h1 span { color: var(--brand-2); }
.hero p { max-width: 35rem; margin: 0; color: var(--muted); font-size: 1.12rem; }
.hero-action {
  display: none;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(196, 181, 253, 0.3);
  border-radius: 12px;
  color: var(--text);
  background: color-mix(in srgb, var(--card) 42%, transparent);
  text-decoration: none;
  font-weight: 700;
}

main.dashboard {
  position: relative;
  width: 100%;
  max-width: none;
  padding: clamp(1.5rem, 2.5vw, 3.25rem) var(--content-gutter) clamp(3rem, 5vw, 5rem);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.25rem, 2vw, 2.5rem);
}
.indicators, .chat, .history, .alerts { grid-column: 1 / -1; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 0.9rem; }
.section-heading h2 { margin: 0; color: var(--text); font-size: 1.05rem; text-transform: none; letter-spacing: -0.01em; }
.eyebrow { display: block; color: var(--brand); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; }
.live-status { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--muted); font-size: 0.76rem; font-weight: 700; }
.live-status i { width: 0.48rem; height: 0.48rem; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12); }
.cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card { min-width: 0; overflow: hidden; }
.card-value { font-size: clamp(1.35rem, 2vw, 1.75rem); white-space: nowrap; }
.panel { backdrop-filter: blur(12px); background: color-mix(in srgb, var(--card) 94%, transparent); }
.chat .panel { padding: 1.65rem; }
#question { min-height: 3.5rem; padding: 1rem 1.1rem; }
.ask-actions button[type="submit"] { min-width: 7rem; min-height: 3.5rem; padding-inline: 1.8rem; font-size: 1rem; }
.chips { display: block; margin-top: 1.15rem; }
.suggestions-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.55rem; }
.suggestions-head > span { color: var(--muted); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; }
.suggestion-controls { display: flex; gap: 0.35rem; }
.suggestion-controls button { width: 2rem; height: 2rem; padding: 0; border-radius: 9px; }
.suggestion-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.suggestion-viewport::-webkit-scrollbar { display: none; }
.suggestion-track { display: flex; gap: 0.55rem; }
.suggestion-card {
  flex: 0 0 min(22rem, 44%);
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
  scroll-snap-align: start;
  border-radius: 12px;
}
@media (max-width: 560px) {
  body {
    background-position: center, 62% top;
    background-size: auto, 100% 100svh;
  }
  .topbar { padding: 0.6rem var(--content-gutter); }
  .auth-controls button { padding: 0.45rem 0.7rem; font-size: 0.8rem; }
  .profile-button { max-width: 7.5rem; }
  .hero { min-height: 17.5rem; padding: 1.85rem var(--content-gutter); }
  .hero-content { width: 100%; }
  .hero h1 { font-size: clamp(2.1rem, 10.5vw, 2.75rem); margin-bottom: 0.75rem; }
  .hero p { font-size: 0.92rem; line-height: 1.5; }
  .hero .badge { margin-bottom: 0.8rem; }
  .hero-action { display: inline-flex; }
  main.dashboard { display: block; width: 100%; padding: 0.9rem var(--content-gutter) 2.25rem; }
  main.dashboard > * + * { margin-top: 1.3rem; }
  .cards {
    display: flex;
    overflow-x: auto;
    gap: 0.65rem;
    margin-inline: calc(-1 * var(--content-gutter));
    padding: 0.3rem var(--content-gutter) 0.85rem;
    scroll-padding-inline: var(--content-gutter);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .cards::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 64vw; padding: 0.82rem 0.9rem; scroll-snap-align: start; }
  .card-value { font-size: 1.38rem; }
  .chat .panel, .history .panel { padding: 0.9rem; }
  .suggestion-viewport {
    margin-inline: -0.2rem;
    padding: 0.15rem 0.45rem 0.35rem;
    border-inline: 1px solid var(--line);
    border-radius: 10px;
    scroll-padding-inline: 0.45rem;
  }
  .suggestion-card { flex-basis: 72%; min-height: 2.45rem; padding: 0.45rem 0.7rem; }
  .alert-form { grid-template-columns: 1fr; gap: 0.6rem; }
  .alert-form button { width: 100%; }
  #ask-form { flex-direction: column; }
  #question { min-height: 3rem; padding: 0.75rem 0.85rem; font-size: 0.94rem; }
  .ask-actions { justify-content: flex-end; gap: 0.5rem; }
  .ask-actions button { min-height: 2.8rem; }
  .voice-input { flex-basis: 2.8rem; width: 2.8rem; }
  .ask-actions button[type="submit"] { flex: 1; min-width: 0; min-height: 2.8rem; padding-inline: 1.25rem; }
  .voice-status { margin-top: 0.25rem; }
  .history-list li { flex-direction: column; gap: 0.6rem; }
  .history-list button { align-self: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

@media (min-width: 561px) and (max-width: 900px) {
  main.dashboard { grid-template-columns: 1fr; }
  .indicators, .chat, .history, .alerts { grid-column: 1; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alert-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alert-form button { grid-column: 1 / -1; }
  .hero-action { display: inline-flex; }
  .suggestion-card { flex-basis: 68%; }
}

@media (min-width: 1500px) {
  .hero { min-height: 23rem; padding-block: 4rem; }
  main.dashboard { gap: clamp(2rem, 2vw, 3rem); }
  .cards { gap: 1.1rem; }
  .card { padding: 1.25rem 1.35rem; }
}

/* ── Historical macro comparison ─────────────────────────────────────── */
.macro-history { grid-column: 1 / -1; }
.period-control { display: flex; align-items: center; gap: 0.55rem; color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.period-control select { padding: 0.45rem 0.65rem; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--text); }
.history-chart-panel { padding: 1rem 1.15rem 0.8rem; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.chart-legend span::before { content: ""; display: inline-block; width: 0.65rem; height: 0.65rem; margin-right: 0.38rem; border-radius: 50%; }
.selic-dot::before { background: var(--brand); }
.ipca-dot::before { background: #f59e0b; }
.macro-chart { min-height: 18rem; display: grid; place-items: center; margin-top: 0.45rem; overflow: hidden; }
.macro-chart svg { display: block; width: 100%; height: auto; max-height: 21rem; overflow: visible; }
.chart-grid line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-grid text { fill: var(--muted); font-size: 18px; }
.chart-line { fill: none; stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.chart-line.selic { stroke: var(--brand); }
.chart-line.ipca { stroke: #f59e0b; }
.chart-skeleton { width: 100%; height: 14rem; }
.chart-empty { color: var(--muted); text-align: center; }
.chart-status { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.72rem; }
@media (max-width: 560px) {
  .macro-history { margin-top: 1.3rem; }
  .macro-history .section-heading { align-items: center; }
  .period-control { font-size: 0; }
  .period-control select { font-size: 0.78rem; }
  .history-chart-panel { padding-inline: 0.75rem; }
  .macro-chart { min-height: 12rem; }
}
.macro-insights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.65rem; margin-bottom: 1rem; }
.macro-insights article { padding: 0.75rem 0.85rem; border: 1px solid var(--line); border-radius: 11px; background: var(--bg-soft); }
.macro-insights span { display: block; color: var(--muted); font-size: 0.68rem; font-weight: 700; }
.macro-insights strong { display: block; margin-top: 0.18rem; font-size: 1.05rem; }
@media (max-width: 700px) { .macro-insights { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
