/* ════════════════════════════════════════════════════════════════
   SOL/USDT Oracle — Tesla 369 Edition · Dark theme
   ════════════════════════════════════════════════════════════════ */

:root {
  --bg-0: #050811;
  --bg-1: #0a1020;
  --bg-2: #0f1830;
  --bg-3: #1a2540;
  --border: #1d2b44;
  --text: #d8e3f5;
  --text-dim: #7a8aa8;
  --text-mute: #4a5575;
  --accent: #00d4ff;
  --accent-2: #7c5cff;
  --gold: #ffc857;
  --pos: #34d399;
  --neg: #ef4444;
  --warn: #fbbf24;
  --neutral: #94a3b8;
  --mono: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Menlo', monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', sans-serif;
  --shadow-glow: 0 0 24px rgba(0, 212, 255, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg-0); }
html, body { color: var(--text); font-family: var(--sans); font-size: 14px; line-height: 1.5; }

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(124, 92, 255, 0.15), transparent),
    radial-gradient(ellipse 70% 50% at 80% 30%, rgba(0, 212, 255, 0.08), transparent),
    var(--bg-0);
}

/* ── Video de fondo (profundidad) ─────────────────────────────── */
.bg-video {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  object-fit: cover; z-index: 0;
  pointer-events: none; user-select: none;
  filter: saturate(1.05);
}
.bg-video-overlay {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 50% 20%, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.78) 100%),
    linear-gradient(180deg, rgba(5,8,17,0.30) 0%, rgba(5,8,17,0.55) 100%);
}
/* Cuerpo transparente para dejar pasar el video */
body { background: transparent !important; }
/* Contenido por encima del video+overlay (topbar ya tiene su propio z-index 50) */
main, .footnote { position: relative; z-index: 1; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }
.muted { color: var(--text-mute); }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.hidden { display: none !important; }

/* ── TOP BAR ─────────────────────────────────────────────────── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px; background: rgba(10, 16, 32, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-icon { font-size: 32px; filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.4)); }
.brand-title { font-weight: 700; font-size: 18px; letter-spacing: 0.02em; }
.brand-sub { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.model-pill {
  background: var(--bg-3); color: var(--accent);
  padding: 2px 8px; border-radius: 4px; font-family: var(--mono); font-size: 10px;
  border: 1px solid var(--border);
}
.topnav { display: flex; align-items: center; gap: 24px; }
.topnav a { color: var(--text-dim); font-weight: 500; }
.topnav a:hover { color: var(--text); text-decoration: none; }
.live-clock {
  font-family: var(--mono); color: var(--accent); font-size: 12px;
  padding: 6px 12px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 4px;
}

main { max-width: 1400px; margin: 0 auto; padding: 28px; }

/* ── ASSET SELECTOR ─────────────────────────────────────────── */
.asset-selector {
  display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
  padding: 16px 20px; background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--border); border-radius: 12px;
}
.asset-selector-label { color: var(--text-dim); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.asset-tabs { display: flex; gap: 10px; flex: 1; }
.asset-tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 14px 24px; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text-dim); cursor: pointer; transition: all 0.15s;
  font-family: var(--sans); min-width: 130px;
}
.asset-tab:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
.asset-tab.active {
  background: linear-gradient(135deg, rgba(0,212,255,0.18), rgba(124,92,255,0.12));
  border-color: var(--accent); color: var(--text);
  box-shadow: 0 0 24px rgba(0,212,255,0.2);
}
.asset-tab .asset-emoji { font-size: 22px; line-height: 1; }
.asset-tab .asset-code { font-weight: 700; font-size: 16px; letter-spacing: 0.05em; margin-top: 2px; }
.asset-tab .asset-pair { font-size: 10px; font-family: var(--mono); color: var(--text-dim); }
.asset-tab.active .asset-pair { color: var(--accent); }
@media (max-width: 700px) {
  .asset-selector { flex-direction: column; align-items: stretch; }
  .asset-tab { padding: 10px 16px; min-width: 0; flex: 1; }
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px;
  background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border); border-radius: 16px; padding: 32px;
  margin-bottom: 24px; box-shadow: var(--shadow-glow);
}
.hero-tag { color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.hero-price { display: flex; align-items: baseline; gap: 16px; margin-bottom: 12px; }
#sol-price { font-family: var(--mono); font-size: 54px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.change { font-family: var(--mono); font-size: 22px; font-weight: 600; }
.change.pos { color: var(--pos); }
.change.neg { color: var(--neg); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 24px; color: var(--text-dim); font-size: 13px; }
.hero-meta .num { color: var(--text); }
.hero-right { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card-mini {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px; text-align: center;
}
.card-mini .lbl { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; }
.card-mini .val { font-family: var(--mono); font-size: 18px; font-weight: 600; margin: 6px 0 4px; }
.card-mini .sub { font-size: 11px; color: var(--text-dim); }

/* ── ACTIONS ROW ────────────────────────────────────────────── */
.actions-row { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.btn {
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
  padding: 10px 18px; border-radius: 8px; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.15s;
}
.btn:hover { background: var(--bg-3); border-color: var(--accent); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: white; border: none; font-weight: 600;
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-primary:hover { box-shadow: 0 0 24px rgba(0, 212, 255, 0.4); }
.btn-cost-warn {
  background: rgba(255,255,255,0.18); padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-family: var(--mono); font-weight: 700;
}
.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: white; border: none; font-weight: 700;
}
.btn-danger:hover { box-shadow: 0 0 24px rgba(239, 68, 68, 0.5); }
.btn-sm { padding: 6px 12px; font-size: 11px; }
.cache-info { color: var(--text-dim); font-size: 12px; margin-left: auto; font-family: var(--mono); }
.public-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; background: linear-gradient(135deg, rgba(124,92,255,0.15), rgba(0,212,255,0.1));
  border: 1px solid rgba(124,92,255,0.4); border-radius: 8px;
  color: var(--accent); font-size: 12px; font-weight: 500;
}

/* ── GRID ───────────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid-main { grid-template-columns: repeat(12, 1fr); margin-bottom: 32px; }

.card {
  background: linear-gradient(180deg, rgba(15,24,48,0.6) 0%, rgba(10,16,32,0.6) 100%);
  border: 1px solid var(--border); border-radius: 14px; padding: 20px;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0.4;
}
.card h3 { font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 16px; letter-spacing: 0.02em; }
.card h4 { font-size: 11px; font-weight: 600; color: var(--text-dim); margin: 12px 0 6px; text-transform: uppercase; letter-spacing: 0.08em; }

.card-lunar    { grid-column: span 4; }
.card-signal   { grid-column: span 4; }
.card-fg       { grid-column: span 4; }
.card-tech     { grid-column: span 4; }
.card-deriv    { grid-column: span 4; }
.card-levels   { grid-column: span 4; }
.card-calendar { grid-column: span 12; }

@media (max-width: 1100px) {
  .card-lunar, .card-signal, .card-fg, .card-tech, .card-deriv, .card-levels { grid-column: span 6; }
  .hero { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .card-lunar, .card-signal, .card-fg, .card-tech, .card-deriv, .card-levels { grid-column: span 12; }
  .hero-right { grid-template-columns: repeat(3, 1fr); }
  #sol-price { font-size: 38px; }
  main { padding: 16px; }
}

/* ── CARD: LUNAR ────────────────────────────────────────────── */
.card-lunar { text-align: center; }
.lunar-visual { display: flex; justify-content: center; margin: 10px 0 18px; }
#moon-svg { filter: drop-shadow(0 0 24px rgba(255, 200, 87, 0.25)); }
.lunar-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; text-align: left; font-size: 12px; margin-bottom: 14px; }
.lunar-meta .lbl { color: var(--text-dim); }
.lunar-meta .val { font-weight: 600; }
.archetype-box {
  background: linear-gradient(135deg, rgba(124,92,255,0.12), rgba(0,212,255,0.08));
  border: 1px solid rgba(124,92,255,0.3); border-radius: 10px; padding: 14px;
}
.archetype-name { color: var(--gold); font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.archetype-bias { color: var(--text); font-size: 12px; line-height: 1.5; }

/* ── CARD: SEÑAL TESLA 369 ──────────────────────────────────── */
.card-signal { text-align: center; }
.signal-big {
  font-size: 28px; font-weight: 800; letter-spacing: -0.02em;
  padding: 18px; border-radius: 10px; margin: 8px 0 12px;
  background: var(--bg-2); border: 1px solid var(--border);
}
.signal-big.sig-strong-bull { background: linear-gradient(135deg, rgba(52,211,153,0.25), rgba(52,211,153,0.1)); color: var(--pos); border-color: rgba(52,211,153,0.5); }
.signal-big.sig-bull        { background: linear-gradient(135deg, rgba(52,211,153,0.15), transparent); color: var(--pos); }
.signal-big.sig-wait        { background: linear-gradient(135deg, rgba(0,212,255,0.12), transparent); color: var(--accent); }
.signal-big.sig-bear        { background: linear-gradient(135deg, rgba(251,146,60,0.15), transparent); color: var(--warn); }
.signal-big.sig-strong-bear { background: linear-gradient(135deg, rgba(239,68,68,0.25), rgba(239,68,68,0.1)); color: var(--neg); border-color: rgba(239,68,68,0.5); }
.signal-score { font-family: var(--mono); font-size: 14px; color: var(--text-dim); margin-bottom: 8px; }
.signal-score .num { font-weight: 700; color: var(--text); font-size: 18px; }
.signal-action { font-size: 13px; color: var(--text); margin-bottom: 12px; min-height: 36px; }
.factors { list-style: none; font-size: 12px; text-align: left; }
.factors li { padding: 4px 0; border-bottom: 1px dashed var(--border); color: var(--text-dim); }
.factors li:last-child { border-bottom: none; }

/* ── CARD: F&G ─────────────────────────────────────────────── */
.fg-gauge { margin-bottom: 18px; }
.fg-bar {
  height: 18px; border-radius: 9px; position: relative; margin-bottom: 8px;
  background: linear-gradient(90deg,
    var(--neg) 0%, var(--warn) 25%, var(--neutral) 50%, var(--pos) 75%, var(--accent) 100%);
  border: 1px solid var(--border);
}
.fg-pointer {
  position: absolute; top: -6px; transform: translateX(-50%);
  width: 4px; height: 30px; background: white; border-radius: 2px;
  box-shadow: 0 0 12px white; transition: left 0.5s ease;
}
.fg-scale, .fg-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-dim); }
.fg-scale { font-family: var(--mono); margin-bottom: 4px; }
.fg-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 12px; }
.fg-stats > div { display: flex; justify-content: space-between; padding: 6px 10px; background: var(--bg-2); border-radius: 6px; }
.fg-stats .lbl { color: var(--text-dim); }
.fg-stats .val { font-weight: 600; }

/* ── CARD: TÉCNICOS ─────────────────────────────────────────── */
.tech-table { width: 100%; font-size: 12px; border-collapse: collapse; }
.tech-table td { padding: 7px 4px; border-bottom: 1px dashed var(--border); }
.tech-table td:first-child { color: var(--text-dim); }
.tech-table td:nth-child(2) { font-family: var(--mono); font-weight: 600; text-align: right; }
.tech-table .state { font-size: 11px; text-align: right; }

/* Estados con color */
.state.overbought, .state.bearish, .state.bearish_stack, .state.bearish_, .state.longs_pagando_caro { color: var(--neg); }
.state.oversold, .state.bullish, .state.bullish_stack, .state.bullish_, .state.shorts_pagando_caro { color: var(--pos); }
.state.neutral, .state.mixed { color: var(--text-dim); }
.state.warn { color: var(--warn); }

/* ── CARD: DERIVATIVOS ──────────────────────────────────────── */
.deriv-list { display: grid; gap: 8px; font-size: 12px; }
.deriv-list > div { display: flex; justify-content: space-between; padding: 8px 12px; background: var(--bg-2); border-radius: 6px; }
.deriv-list .lbl { color: var(--text-dim); }
.deriv-list .num { font-weight: 600; }

/* ── CARD: NIVELES ──────────────────────────────────────────── */
.levels-block { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.levels-block h4 { margin-top: 0; }
.levels-block ul { list-style: none; font-size: 13px; }
.levels-block .resist ul li { color: var(--neg); padding: 4px 0; }
.levels-block .support ul li { color: var(--pos); padding: 4px 0; }
.range-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 12px; border-top: 1px dashed var(--border); font-size: 11px; }
.range-info .lbl { color: var(--text-dim); }

/* ── CARD: CALENDARIO LUNAR ─────────────────────────────────── */
.lunar-calendar { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.lunar-calendar li {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; padding: 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.lunar-calendar li.cal-full { border-color: rgba(255,200,87,0.4); }
.lunar-calendar li.cal-new  { border-color: rgba(0,212,255,0.4); }
.cal-name { font-size: 14px; font-weight: 600; }
.cal-date { font-size: 11px; color: var(--text-dim); font-family: var(--mono); }
.cal-distance { font-size: 11px; color: var(--accent); }

/* ── REPORTES (LISTA) ───────────────────────────────────────── */
.reports-section { margin-top: 40px; }
.reports-section h2 { font-size: 18px; margin-bottom: 16px; color: var(--accent); }
.reports-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.report-item a {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); text-decoration: none; transition: all 0.15s;
}
.report-item a:hover { border-color: var(--accent); background: var(--bg-3); transform: translateX(2px); }
.report-item.active a { border-color: var(--accent); background: var(--bg-3); }
.report-icon { font-size: 20px; }
.report-label { flex: 1; font-weight: 600; }
.report-meta { font-size: 11px; color: var(--text-dim); font-family: var(--mono); }
.reports-list.compact .report-item a { padding: 10px 12px; font-size: 13px; }

/* ── PÁGINA DE REPORTE ──────────────────────────────────────── */
.report-page { display: grid; grid-template-columns: 260px 1fr; gap: 24px; }
.report-sidebar { position: sticky; top: 80px; height: fit-content; max-height: calc(100vh - 100px); overflow-y: auto; }
.report-sidebar h3 { font-size: 13px; color: var(--accent); margin-bottom: 12px; }
.back-link { display: inline-block; margin-top: 16px; font-size: 12px; }
.report-body { background: var(--bg-1); border: 1px solid var(--border); border-radius: 14px; padding: 8px; }
.report-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; border-bottom: 1px solid var(--border);
}
.report-file { font-family: var(--mono); font-size: 12px; color: var(--text-dim); }
.report-actions { display: flex; gap: 8px; }
.report-content { padding: 24px 32px; }

@media (max-width: 900px) {
  .report-page { grid-template-columns: 1fr; }
  .report-sidebar { position: static; max-height: none; }
}

/* ── MARKDOWN BODY ──────────────────────────────────────────── */
.markdown-body { color: var(--text); line-height: 1.7; font-size: 14px; }
.markdown-body h1 { font-size: 26px; font-weight: 700; margin: 24px 0 16px; color: var(--text); border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.markdown-body h2 { font-size: 20px; font-weight: 700; margin: 28px 0 14px; color: var(--accent); }
.markdown-body h3 { font-size: 16px; font-weight: 700; margin: 22px 0 10px; color: var(--gold); }
.markdown-body h4 { font-size: 14px; font-weight: 600; margin: 18px 0 8px; color: var(--text-dim); text-transform: uppercase; }
.markdown-body p { margin: 8px 0 14px; }
.markdown-body strong { color: white; font-weight: 700; }
.markdown-body em { color: var(--text-dim); }
.markdown-body ul, .markdown-body ol { margin: 8px 0 16px 24px; }
.markdown-body li { margin: 4px 0; }
.markdown-body blockquote {
  border-left: 3px solid var(--accent); padding: 8px 16px; margin: 14px 0;
  background: rgba(0,212,255,0.05); color: var(--text-dim); font-style: italic;
  border-radius: 0 6px 6px 0;
}
.markdown-body table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13px; }
.markdown-body th, .markdown-body td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; }
.markdown-body th { background: var(--bg-2); color: var(--accent); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.markdown-body tr:hover td { background: rgba(0,212,255,0.03); }
.markdown-body code {
  font-family: var(--mono); font-size: 12px;
  background: var(--bg-2); padding: 2px 6px; border-radius: 4px; color: var(--accent);
}
.markdown-body pre {
  background: var(--bg-0); border: 1px solid var(--border); border-radius: 8px;
  padding: 16px; overflow-x: auto; margin: 14px 0; max-height: 600px;
}
.markdown-body pre code { background: transparent; padding: 0; color: var(--text); font-size: 11px; }
.markdown-body hr { border: none; border-top: 1px dashed var(--border); margin: 24px 0; }
.markdown-body a { color: var(--accent); }

/* ── MODAL ──────────────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0; background: rgba(5,8,17,0.85); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; z-index: 100;
}
.modal-card {
  background: var(--bg-1); border: 1px solid var(--accent); border-radius: 16px;
  padding: 32px; max-width: 500px; text-align: center; box-shadow: 0 0 60px rgba(0,212,255,0.3);
}
.modal-card h3 { color: var(--accent); font-size: 18px; margin-bottom: 12px; }
.modal-card p { color: var(--text); margin-bottom: 16px; }
.modal-warn { border-color: #ef4444; box-shadow: 0 0 60px rgba(239,68,68,0.4); max-width: 560px; }
.modal-warn h3 { color: #fca5a5; font-size: 22px; }
.warn-icon { font-size: 56px; line-height: 1; margin-bottom: 8px; filter: drop-shadow(0 0 12px rgba(239,68,68,0.7)); }
.cost-box {
  background: linear-gradient(135deg, rgba(239,68,68,0.2), rgba(239,68,68,0.05));
  border: 1px solid rgba(239,68,68,0.5); border-radius: 12px;
  padding: 18px; margin: 14px 0;
}
.cost-amount { font-family: var(--mono); font-size: 42px; font-weight: 800; color: #fca5a5; letter-spacing: -0.02em; }
.cost-sub { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.confirm-details { list-style: none; text-align: left; margin: 16px 0; font-size: 13px; }
.confirm-details li { padding: 6px 12px; background: var(--bg-2); margin: 4px 0; border-radius: 6px; }
.confirm-details strong { color: var(--accent); }
.warn-text { color: var(--warn); font-size: 12px; font-style: italic; padding: 12px; background: rgba(251,191,36,0.08); border-radius: 6px; }
.modal-actions { display: flex; gap: 12px; justify-content: center; margin-top: 18px; }
.modal-actions .btn { min-width: 140px; padding: 12px 20px; font-size: 13px; }

/* ── REPORTS FILTER ─────────────────────────────────────────── */
.reports-filter { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-label { color: var(--text-dim); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; margin-right: 4px; }
.filter-chip {
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text-dim);
  padding: 6px 14px; border-radius: 20px; font-size: 12px; cursor: pointer; transition: all 0.15s;
  font-family: var(--sans);
}
.filter-chip:hover { color: var(--text); border-color: var(--accent); }
.filter-chip.active { background: var(--accent); color: var(--bg-0); border-color: var(--accent); font-weight: 600; }

.report-item .report-pair {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  background: var(--bg-3); padding: 2px 8px; border-radius: 4px; margin-right: 4px;
}
.spinner {
  width: 40px; height: 40px; margin: 18px auto;
  border: 3px solid var(--bg-3); border-top: 3px solid var(--accent); border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── FOOTER ─────────────────────────────────────────────────── */
.footnote {
  margin-top: 48px; padding: 24px 28px; border-top: 1px solid var(--border);
  color: var(--text-dim); font-size: 11px; max-width: 1400px; margin-left: auto; margin-right: auto;
}
.footnote p { margin-bottom: 6px; }
.disclaimer { color: var(--warn); }

@media print {
  .topbar, .footnote, .actions-row, .report-toolbar, .report-sidebar, .modal { display: none !important; }
  body { background: white; color: black; }
  .report-content, .markdown-body { background: white; color: black; }
}
