/* ════════════════════════════════════════════════════════════
   FISCALIMMO 2026 — STYLES
   Aesthetic: Editorial / Data Journal — Papier chaud + accents vifs
   Fonts: Playfair Display (titres) + Source Sans 3 (corps) + JetBrains Mono (données)
   ════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,900;1,600&family=Source+Sans+3:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ─── VARIABLES ─── */
:root {
  /* Palette Papier / Encre */
  --paper:       #f8f6f0;
  --paper2:      #f0ede4;
  --paper3:      #e8e3d8;
  --ink:         #1c1814;
  --ink2:        #3d3830;
  --ink3:        #7a7268;
  --ink4:        #b5afa4;
  --rule:        #d4cfc4;
  --rule2:       #e0dbd0;

  /* Accents vifs */
  --rouge:       #c0392b;
  --rouge-light: #f5e8e7;
  --vert:        #1a6b45;
  --vert-light:  #e5f4ec;
  --or:          #8b6914;
  --or-light:    #fdf4dc;
  --bleu:        #1a4b8c;
  --bleu-light:  #e8f0fb;
  --violet:      #6b2f8c;

  /* Surfaces */
  --surface:     #ffffff;
  --surface2:    #faf9f6;
  --surface3:    #f4f2ec;

  /* Typography */
  --f-head: 'Playfair Display', Georgia, serif;
  --f-body: 'Source Sans 3', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Spacing */
  --r:    10px;   /* radius standard */
  --r-lg: 16px;
  --r-sm: 6px;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 13px; }
body {
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ─── TOPBAR ─── */
.topbar {
  height: 54px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 3px solid var(--rouge);
}

.tb-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tb-logo {
  font-family: var(--f-head);
  font-size: 19px;
  font-style: italic;
  color: #fff;
  letter-spacing: -0.01em;
}
.tb-logo em { color: var(--rouge); font-style: normal; }

.tb-sep {
  width: 1px; height: 22px;
  background: rgba(255,255,255,0.15);
}

.tb-pill {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.03em;
}
.tb-pill.live {
  background: rgba(26,107,69,0.3);
  border-color: rgba(26,107,69,0.5);
  color: #6ee7a7;
}
.tb-pill.live::before { content: '● '; animation: blink 1.8s step-start infinite; }
@keyframes blink { 50% { opacity: 0; } }

.tb-actions { display: flex; align-items: center; gap: 8px; }

.tb-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-sm);
  padding: 5px 12px;
  color: rgba(255,255,255,0.75);
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.tb-btn:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.tb-btn.accent {
  background: var(--rouge);
  border-color: var(--rouge);
  color: #fff;
}
.tb-btn.accent:hover { background: #a93226; }

/* ─── LAYOUT 3 COLONNES ─── */
.layout {
  display: grid;
  grid-template-columns: 268px 336px 1fr;
  height: calc(100vh - 54px);
}

.col {
  overflow-y: auto;
  border-right: 1px solid var(--rule);
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}
.col:last-child { border-right: none; }
.col::-webkit-scrollbar { width: 4px; }
.col::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 4px; }

/* ─── COL HEADER ─── */
.col-hd {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  padding: 13px 16px 11px;
}
.col-num {
  font-family: var(--f-mono);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--rouge);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1px;
}
.col-title {
  font-family: var(--f-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.col-body { padding: 14px 15px; }

/* ─── SECTION LABELS ─── */
.sec {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--ink3);
  margin: 16px 0 9px;
}
.sec::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule2);
}
.sec:first-child { margin-top: 4px; }

/* ─── FORM ELEMENTS ─── */
.field { margin-bottom: 10px; }

.field > label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink2);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Tooltip */
.tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px; height: 14px;
  background: var(--paper3);
  border: 1px solid var(--rule);
  border-radius: 50%;
  font-size: 8.5px;
  font-weight: 700;
  color: var(--ink3);
  cursor: help;
  flex-shrink: 0;
  position: relative;
}
.tip::after {
  content: attr(data-tip);
  display: none;
  position: absolute;
  left: calc(100% + 6px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--ink);
  color: #f5f5f5;
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.5;
  width: 210px;
  padding: 7px 10px;
  border-radius: var(--r-sm);
  z-index: 100;
  pointer-events: none;
  white-space: normal;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.tip:hover::after { display: block; }

input[type="number"],
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--rule);
  border-radius: var(--r-sm);
  padding: 7px 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}
input:focus, select:focus {
  border-color: var(--rouge);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}
input.valid   { border-color: var(--vert); }
input.invalid { border-color: var(--rouge); background: var(--rouge-light); }

.field-err {
  display: none;
  font-size: 10px;
  color: var(--rouge);
  margin-top: 3px;
  font-family: var(--f-mono);
}
.field-err.show { display: block; }

/* Grilles */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.g3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }

/* SLIDER */
.slider-row { display: flex; align-items: center; gap: 8px; }
input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  height: 3px;
  background: var(--rule);
  border-radius: 2px;
  border: none;
  padding: 0;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px; height: 15px;
  background: var(--rouge);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.sl-val {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--rouge);
  background: var(--rouge-light);
  border: 1px solid rgba(192,57,43,0.2);
  border-radius: 5px;
  padding: 3px 8px;
  min-width: 50px;
  text-align: center;
  flex-shrink: 0;
}

/* CHECKBOX */
.check-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--ink2);
  cursor: pointer;
  margin-bottom: 8px;
  user-select: none;
}
.check-row input[type="checkbox"] {
  width: 14px; height: 14px;
  accent-color: var(--rouge);
  cursor: pointer;
  border: none;
}

/* ─── BUTTONS ─── */
.btn-run {
  width: 100%;
  background: var(--rouge);
  color: #fff;
  border: none;
  border-radius: var(--r);
  padding: 13px 20px;
  font-family: var(--f-head);
  font-size: 14.5px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 3px 12px rgba(192,57,43,0.3);
}
.btn-run:hover { background: #a93226; transform: translateY(-1px); box-shadow: 0 5px 18px rgba(192,57,43,0.4); }
.btn-run:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--rule);
  background: var(--surface);
  font-family: var(--f-body);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink2);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--rouge); color: var(--rouge); }
.btn.green { background: var(--vert-light); border-color: rgba(26,107,69,0.35); color: var(--vert); }
.btn.green:hover { border-color: var(--vert); }
.btn.blue { background: var(--bleu-light); border-color: rgba(26,75,140,0.3); color: var(--bleu); }
.btn.blue:hover { border-color: var(--bleu); }
.btn.sm { padding: 4px 9px; font-size: 11px; }
.btn.full { width: 100%; justify-content: center; }

/* ─── CRM CLIENTS ─── */
.crm-search {
  position: relative;
  margin-bottom: 10px;
}
.crm-search input { padding-left: 30px; font-family: var(--f-body); }
.crm-search-ico {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--ink4);
}

.client-card {
  background: var(--surface);
  border: 1.5px solid var(--rule2);
  border-radius: var(--r);
  padding: 10px 12px;
  margin-bottom: 7px;
  cursor: pointer;
  transition: all 0.15s;
}
.client-card:hover { border-color: var(--rouge); box-shadow: 0 2px 8px rgba(192,57,43,0.1); }
.client-card.sel   { border-color: var(--rouge); border-width: 2px; background: var(--rouge-light); }

.client-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}
.client-nom { font-weight: 600; font-size: 12.5px; }

.lead-badge {
  font-family: var(--f-mono);
  font-size: 9.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
}
.lead-hot  { background: var(--rouge-light); color: var(--rouge); }
.lead-warm { background: var(--or-light);    color: var(--or);    }
.lead-cold { background: var(--paper3);      color: var(--ink3);  }

.client-info  { font-size: 11px; color: var(--ink3); }
.client-score { font-family: var(--f-mono); font-size: 10.5px; color: var(--ink2); margin-top: 4px; }

/* ─── RÉSULTATS ─── */
/* Empty state */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 40px;
  color: var(--ink3);
  gap: 10px;
}
.empty-ico { font-size: 44px; }
.empty-title { font-family: var(--f-head); font-size: 22px; color: var(--ink2); font-style: italic; }
.empty-sub { font-size: 12px; max-width: 280px; line-height: 1.7; }

/* RESULTS WRAPPER */
.results-body { padding: 16px; }

/* WINNER BANNER */
.winner-wrap {
  background: var(--ink);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.winner-wrap::before {
  content: '';
  position: absolute;
  right: -40px; top: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(192,57,43,0.25) 0%, transparent 70%);
}

.w-eyebrow {
  font-family: var(--f-mono);
  font-size: 9.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.w-nom {
  font-family: var(--f-head);
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.1;
}
.w-metrics {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.w-m { display: flex; flex-direction: column; gap: 2px; }
.w-m-l {
  font-size: 9px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.w-m-v {
  font-family: var(--f-mono);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}
.w-m-v.rouge  { color: #ff8a80; }
.w-m-v.vert   { color: #69f0ae; }
.w-m-v.or     { color: #ffd740; }
.w-m-v.blanc  { color: #fff; }

/* GAUGE CERCLE */
.gauge-wrap { flex-shrink: 0; position: relative; }
.gauge-svg { display: block; }
.g-bg  { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 5; }
.g-arc { fill: none; stroke-width: 5; stroke-linecap: round;
         transition: stroke-dashoffset 1.2s cubic-bezier(.4,0,.2,1); }
.gauge-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.g-val { font-family: var(--f-mono); font-size: 18px; font-weight: 700; color: #fff; line-height: 1; }
.g-sub { font-size: 9px; color: rgba(255,255,255,0.4); margin-top: 1px; }

/* METRICS STRIP */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.mc {
  background: var(--surface);
  border: 1.5px solid var(--rule2);
  border-radius: var(--r);
  padding: 10px 8px;
  text-align: center;
}
.mc-v { font-family: var(--f-mono); font-size: 14px; font-weight: 700; }
.mc-l { font-size: 9.5px; color: var(--ink3); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }

/* TABS */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--rule);
  margin-bottom: 14px;
  gap: 0;
  overflow-x: auto;
}
.tab-btn {
  padding: 8px 15px;
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink3);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.on { color: var(--rouge); border-bottom-color: var(--rouge); font-weight: 600; }

.tab-pane { display: none; }
.tab-pane.on { display: block; }

/* ─── COMPARISON TABLE ─── */
.cmp-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 12px;
}
.cmp-tbl thead { background: var(--paper3); }
.cmp-tbl th {
  padding: 7px 9px;
  text-align: left;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink3);
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}
.cmp-tbl td {
  padding: 9px 9px;
  border-bottom: 1px solid var(--rule2);
  vertical-align: middle;
}
.cmp-tbl tr:last-child td { border-bottom: none; }
.cmp-tbl tr.r1 { background: rgba(192,57,43,0.04); }
.cmp-tbl tr.r2 { background: rgba(139,105,20,0.03); }
.cmp-tbl tr.inelig td { opacity: 0.45; }

.rk {
  width: 22px; height: 22px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 11px;
}
.rk1 { background: var(--rouge-light); color: var(--rouge); }
.rk2 { background: var(--or-light);    color: var(--or);    }
.rk3 { background: var(--bleu-light);  color: var(--bleu);  }

.r-nom { font-weight: 600; font-size: 12px; }
.r-tag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 9px;
  background: var(--paper3);
  border-radius: 3px;
  padding: 1px 5px;
  color: var(--ink3);
  margin-top: 1px;
}

/* Score bar */
.sbar { display: flex; align-items: center; gap: 5px; }
.sbar-tr { flex: 1; height: 4px; background: var(--paper3); border-radius: 2px; overflow: hidden; }
.sbar-fi { height: 100%; border-radius: 2px; }
.sbar-n  { font-family: var(--f-mono); font-size: 11px; font-weight: 700; min-width: 26px; }
.sc-g  { color: var(--vert);  } .sc-g  .sbar-fi { background: var(--vert); }
.sc-y  { color: var(--or);   } .sc-y  .sbar-fi { background: var(--or); }
.sc-r  { color: var(--rouge); } .sc-r  .sbar-fi { background: var(--rouge); }

/* Money values */
.mv { font-family: var(--f-mono); font-size: 12px; }
.mv.pos { color: var(--vert);  font-weight: 600; }
.mv.neg { color: var(--rouge); font-weight: 600; }

/* ─── DETAIL CARDS ─── */
.detail-card {
  background: var(--surface);
  border: 1.5px solid var(--rule2);
  border-radius: var(--r);
  padding: 14px 15px;
  margin-bottom: 10px;
  transition: border-color 0.15s;
}
.detail-card:hover { border-color: var(--rouge); }
.detail-card.winner { border-color: var(--rouge); border-width: 2px; }
.detail-card.inelig { opacity: 0.5; }

.dc-hd {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.dc-nom { font-family: var(--f-head); font-size: 14px; font-weight: 700; }
.dc-score { font-family: var(--f-mono); font-size: 13px; font-weight: 700; }

.dc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
.dc-m {
  background: var(--paper2);
  border-radius: 6px;
  padding: 7px 8px;
  text-align: center;
}
.dc-m-l { font-size: 9px; color: var(--ink3); text-transform: uppercase; letter-spacing: 0.06em; }
.dc-m-v { font-family: var(--f-mono); font-size: 12px; font-weight: 700; margin-top: 2px; }

/* Detail table */
.detail-breakdown {
  font-size: 11px;
  line-height: 1.7;
  margin-bottom: 8px;
  border-top: 1px solid var(--rule2);
  padding-top: 8px;
}
.db-row { display: flex; justify-content: space-between; }
.db-row.sub { padding-left: 10px; color: var(--ink3); }
.db-row.total { font-weight: 700; border-top: 1px dashed var(--rule); margin-top: 3px; padding-top: 3px; }
.db-val { font-family: var(--f-mono); font-size: 11px; }
.db-pos { color: var(--vert); }
.db-neg { color: var(--rouge); }

/* Formula box */
.formula-box {
  background: var(--ink);
  color: #c8d4e0;
  border-radius: var(--r-sm);
  padding: 8px 12px;
  font-family: var(--f-mono);
  font-size: 10px;
  line-height: 1.8;
  margin-top: 6px;
}
.formula-box .cm { color: #5a6e7e; }
.formula-box .kw { color: #93c5fd; }
.formula-box .vl { color: #86efac; }

details > summary {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink2);
  cursor: pointer;
  user-select: none;
  margin-top: 8px;
  padding: 4px 0;
  list-style: none;
}
details > summary::before { content: '▶ '; font-size: 9px; }
details[open] > summary::before { content: '▼ '; }

/* ─── CHARTS ─── */
.chart-card {
  background: var(--surface);
  border: 1.5px solid var(--rule2);
  border-radius: var(--r);
  padding: 14px;
  margin-bottom: 10px;
}
.chart-title {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink2);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 12px;
}
.charts-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

/* ─── EMAIL ─── */
.email-preview {
  background: var(--surface2);
  border: 1.5px solid var(--rule2);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  line-height: 1.8;
  white-space: pre-wrap;
  max-height: 220px;
  overflow-y: auto;
  color: var(--ink2);
  margin: 10px 0;
}
.btn-row { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 8px; }

/* ─── VALIDATION BOX ─── */
.valid-box {
  background: var(--paper2);
  border: 1.5px solid var(--rule2);
  border-radius: var(--r-sm);
  padding: 9px 11px;
  margin-bottom: 12px;
  font-size: 11px;
  color: var(--ink2);
  line-height: 1.8;
}

/* ─── TOAST ─── */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r);
  padding: 11px 16px;
  font-size: 12.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 9px;
  z-index: 999;
  transform: translateY(70px);
  opacity: 0;
  transition: all 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  pointer-events: none;
  max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-ico { font-size: 16px; flex-shrink: 0; }

/* SPINNER */
.spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* FADE IN */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0);    }
}
.fade-in { animation: fadeUp 0.4s ease forwards; }

/* ─── PRINT ─── */
@media print {
  .topbar, .col:not(.col-results) { display: none !important; }
  .layout { display: block; }
  .col-results { overflow: visible; height: auto; border: none; }
  .results-body { padding: 0; }
  .tabs, .tab-btn { display: none; }
  .tab-pane { display: block !important; margin-bottom: 20px; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .layout { grid-template-columns: 250px 300px 1fr; }
  .charts-2 { grid-template-columns: 1fr; }
  .metrics-strip { grid-template-columns: repeat(2, 1fr); }
}
