/* ==========================================================================
   Portail Famille — maquette Alfortville
   Design system : palette institutionnelle + chaleur magenta
   ========================================================================== */

:root {
  /* Couleurs de marque (relevées sur alfortville.fr) */
  --ink: #151335;
  --violet-900: #1e1745;
  --violet-800: #2a1e5c;
  --violet-700: #432c76;
  --violet-600: #55388c;
  --violet-500: #6d3c80;
  --magenta: #c10a4a;
  --magenta-soft: #fbe6ee;
  --sand: #e7e6e0;
  --sand-2: #f2f0ea;
  --paper: #fbfaf7;
  --white: #ffffff;
  --line: #e4e1da;
  --muted: #6e6b78;
  --success: #1f7a5a;
  --success-soft: #e3f2ec;
  --warn: #a8630a;
  --warn-soft: #fdf0dd;
  --danger: #b3261e;
  --danger-soft: #fbe9e7;

  /* Formes */
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --pill: 999px;

  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(21, 19, 53, 0.06);
  --shadow-md: 0 2px 6px rgba(21, 19, 53, 0.06), 0 12px 28px rgba(21, 19, 53, 0.06);
  --shadow-lg: 0 8px 20px rgba(21, 19, 53, 0.08), 0 24px 48px rgba(21, 19, 53, 0.1);
  --ring: 0 0 0 3px rgba(193, 10, 74, 0.28);

  --nav-h: 68px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 110% -10%, #f6eef4 0%, transparent 55%),
    radial-gradient(900px 500px at -10% 0%, #eef0f6 0%, transparent 50%),
    var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2rem); font-weight: 700; }
h2 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem); font-weight: 700; }
h3 { font-size: 1.02rem; font-weight: 650; }
p { margin: 0; }
a { color: var(--violet-700); }
button { font: inherit; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }

/* ---------- Bandeau maquette ---------- */
.demo-banner {
  background: var(--ink);
  color: #cfcbe8;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 7px 12px;
}
.demo-banner strong { color: #fff; font-weight: 600; }

/* ---------- Coquille ---------- */
.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: calc(100vh - 32px); }

.sidebar {
  position: sticky; top: 0; align-self: start;
  height: calc(100vh - 32px);
  padding: 22px 18px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column; gap: 18px;
}

.brand { display: flex; align-items: center; gap: 12px; padding: 4px 6px 10px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(145deg, var(--violet-700), var(--violet-500) 60%, var(--magenta));
  display: grid; place-items: center; color: #fff;
  box-shadow: var(--shadow-sm);
  flex: 0 0 auto;
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text strong { display: block; font-size: 0.98rem; letter-spacing: -0.01em; }
.brand-text span { display: block; font-size: 0.76rem; color: var(--muted); }

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: var(--r-sm);
  color: #3b3752; text-decoration: none; font-size: 0.93rem; font-weight: 500;
  transition: background 0.16s ease, color 0.16s ease;
}
.nav a svg { width: 19px; height: 19px; opacity: 0.75; flex: 0 0 auto; }
.nav a:hover { background: var(--sand-2); }
.nav a.active { background: var(--violet-700); color: #fff; box-shadow: var(--shadow-sm); }
.nav a.active svg { opacity: 1; }

.nav-label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin: 14px 12px 6px;
}

.sidebar-foot { margin-top: auto; display: grid; gap: 10px; }
.help-card {
  background: linear-gradient(160deg, var(--violet-900), var(--violet-700));
  color: #fff; border-radius: var(--r-md); padding: 14px 15px;
  font-size: 0.85rem; line-height: 1.4;
}
.help-card strong { display: block; font-size: 0.95rem; margin-bottom: 4px; }
.help-card a { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.4); }

/* ---------- Zone principale ---------- */
.main { padding: 26px clamp(16px, 3vw, 40px) 40px; max-width: var(--maxw); width: 100%; margin: 0 auto; min-width: 0; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 22px;
}
.topbar .who { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(145deg, #f4d7e3, #e9c9d8);
  color: var(--violet-700); display: grid; place-items: center;
  font-weight: 700; font-size: 0.95rem; flex: 0 0 auto;
  border: 2px solid #fff; box-shadow: var(--shadow-sm);
}
.who-text small { display: block; color: var(--muted); font-size: 0.78rem; }
.who-text strong { font-size: 0.98rem; }

.topbar-tools { display: flex; align-items: center; gap: 8px; }
.lang-switch {
  display: flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--pill);
  padding: 4px 6px; box-shadow: var(--shadow-sm);
}
.lang-switch button {
  border: 0; background: transparent; color: var(--muted);
  font-size: 0.78rem; font-weight: 600; padding: 8px 10px; border-radius: var(--pill); cursor: pointer;
  min-height: 36px; min-width: 36px; display: grid; place-items: center;
}
.lang-switch button.on { background: var(--violet-700); color: #fff; }

/* ---------- Cartes ---------- */
.card {
  background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line);
  box-shadow: var(--shadow-md); padding: 20px;
}
.card.tight { padding: 16px; }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head .sub { color: var(--muted); font-size: 0.84rem; margin-top: 2px; }

.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: grid; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- Héros ---------- */
.hero {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(125deg, var(--violet-900) 0%, var(--violet-700) 52%, var(--violet-500) 100%);
  color: #fff; padding: 26px 26px 24px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 18px;
}
.hero::after {
  content: ""; position: absolute; right: -60px; top: -80px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(193, 10, 74, 0.55), transparent 65%);
  filter: blur(2px);
}
.hero::before {
  content: ""; position: absolute; right: 40px; bottom: -70px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 70%);
}
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: #d9cdec; }
.hero h1 { margin: 6px 0 4px; color: #fff; }
.hero p { color: #e6ddf5; font-size: 0.94rem; max-width: 46ch; }
.hero .hero-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--pill); padding: 12px 20px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.92rem; cursor: pointer; text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.16s ease, background 0.16s ease;
  min-height: 44px;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--violet-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--violet-800); }
.btn-accent { background: var(--magenta); color: #fff; }
.btn-accent:hover { background: #a80940; }
.btn-light { background: #fff; color: var(--violet-700); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-light:hover { background: var(--sand-2); }
.btn-ghost { background: transparent; color: var(--violet-700); }
.btn-ghost:hover { background: var(--sand-2); }
.btn-sm { padding: 8px 14px; font-size: 0.84rem; min-height: 36px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ---------- Badges & puces ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: var(--pill); padding: 4px 10px;
  font-size: 0.76rem; font-weight: 650; letter-spacing: 0.01em;
}
.badge.violet { background: #efe9f7; color: var(--violet-700); }
.badge.magenta { background: var(--magenta-soft); color: var(--magenta); }
.badge.success { background: var(--success-soft); color: var(--success); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.neutral { background: var(--sand-2); color: var(--muted); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: #fff; border-radius: var(--pill);
  padding: 9px 14px; font-size: 0.86rem; font-weight: 550; color: #3b3752;
  cursor: pointer; min-height: 40px;
}
.chip.on { background: var(--violet-700); border-color: var(--violet-700); color: #fff; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--magenta); }

/* ---------- Alerte ---------- */
.alert {
  display: flex; align-items: flex-start; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--magenta);
  border-radius: var(--r-md); padding: 15px 17px; box-shadow: var(--shadow-sm);
}
.alert .ico {
  width: 36px; height: 36px; border-radius: 12px; flex: 0 0 auto;
  background: var(--magenta-soft); color: var(--magenta); display: grid; place-items: center;
}
.alert .ico svg { width: 19px; height: 19px; }
.alert strong { display: block; font-size: 0.95rem; }
.alert small { color: var(--muted); font-size: 0.84rem; }
.alert .go { margin-left: auto; align-self: center; }

/* ---------- Enfants ---------- */
.kid {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: var(--r-md);
  background: var(--sand-2); border: 1px solid transparent;
}
.kid .face {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-weight: 700; font-size: 0.9rem;
  background: #fff; color: var(--violet-700); border: 1px solid var(--line);
}
.kid .meta strong { display: block; font-size: 0.93rem; }
.kid .meta span { display: block; font-size: 0.78rem; color: var(--muted); }

/* ---------- Actions rapides ---------- */
.quick {
  display: flex; align-items: center; gap: 12px;
  padding: 15px; border-radius: var(--r-md); background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  text-decoration: none; color: var(--ink); cursor: pointer;
  transition: box-shadow 0.16s ease, transform 0.12s ease;
}
.quick:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.quick .ico {
  width: 40px; height: 40px; border-radius: 13px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: #efe9f7; color: var(--violet-700);
}
.quick .ico svg { width: 20px; height: 20px; }
.quick strong { display: block; font-size: 0.92rem; }
.quick span { display: block; font-size: 0.78rem; color: var(--muted); }

/* ---------- Calendrier ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal-head {
  text-align: center; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted); padding-bottom: 2px;
}
.day {
  position: relative; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: #fff; min-height: 66px; padding: 8px 6px 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  cursor: pointer; transition: all 0.14s ease;
}
.day .n { font-weight: 650; font-size: 0.9rem; }
.day .price { font-size: 0.7rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.day:hover { border-color: var(--violet-500); box-shadow: var(--shadow-sm); }
.day.sel { background: var(--violet-700); border-color: var(--violet-700); color: #fff; }
.day.sel .price { color: #d9cdec; }
.day.full { background: repeating-linear-gradient(45deg, #f7f5ef, #f7f5ef 6px, #efece4 6px, #efece4 12px); color: var(--muted); }
.day.closed { background: var(--sand-2); color: #b3b0a9; border-style: dashed; cursor: not-allowed; }
.day.off { background: transparent; border: 0; cursor: default; }
.day .tag { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Barre de résumé collante ---------- */
.summary-bar {
  position: sticky; bottom: 12px; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--ink); color: #fff; border-radius: var(--r-lg);
  padding: 14px 18px; box-shadow: var(--shadow-lg);
}
.summary-bar .amount { font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.summary-bar small { color: #b9b4d2; font-size: 0.78rem; display: block; }

/* ---------- Jauge de tranches ---------- */
.gauge { display: grid; gap: 6px; }
.gauge-track { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.gauge-seg {
  height: 34px; border-radius: 8px; background: var(--sand-2);
  display: grid; place-items: center; font-size: 0.72rem; color: var(--muted);
  font-weight: 600; border: 1px solid transparent;
}
.gauge-seg.on { background: linear-gradient(160deg, var(--violet-700), var(--violet-500)); color: #fff; border-color: var(--violet-800); }
.gauge-labels { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--muted); }

/* ---------- Champs ---------- */
.field { display: grid; gap: 6px; }
.field label { font-size: 0.82rem; font-weight: 600; color: #3b3752; }
.field .hint { font-size: 0.75rem; color: var(--muted); }
.input {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 14px; font-size: 0.95rem; background: #fff; color: var(--ink);
  min-height: 46px;
}
.input:focus { border-color: var(--violet-500); box-shadow: var(--ring); outline: none; }
.input-affix { position: relative; }
.input-affix .unit {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 0.85rem;
}

/* ---------- Facture ---------- */
.line-item {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 12px;
  padding: 13px 0; border-bottom: 1px dashed var(--line);
}
.line-item:last-child { border-bottom: 0; }
.line-item .who { font-weight: 600; font-size: 0.92rem; }
.line-item .what { color: var(--muted); font-size: 0.82rem; }
.line-item .amount { font-weight: 700; font-variant-numeric: tabular-nums; }
.daytags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.daytag {
  font-size: 0.72rem; padding: 3px 8px; border-radius: 7px;
  background: var(--sand-2); color: #4b4757; border: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.daytag.just { background: var(--success-soft); color: var(--success); border-color: transparent; }
.daytag.abs { background: var(--danger-soft); color: var(--danger); border-color: transparent; }

/* ---------- KPI ---------- */
.kpi {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px; box-shadow: var(--shadow-sm);
}
.kpi .label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.kpi .value { font-size: 1.65rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 4px; letter-spacing: -0.02em; }
.kpi .delta { font-size: 0.78rem; margin-top: 2px; }
.kpi .delta.up { color: var(--success); }
.kpi .delta.down { color: var(--danger); }

/* ---------- Graphique en barres ---------- */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 8px; }
.bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar {
  width: 100%; border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--violet-500), var(--violet-700));
  min-height: 4px; position: relative;
}
.bar.over { background: linear-gradient(180deg, var(--magenta), #8f0837); }
.bar span {
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
  font-size: 0.72rem; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums;
}
.bar-wrap small { font-size: 0.7rem; color: var(--muted); text-align: center; }

/* ---------- Tableau ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.table th {
  text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line);
}
.table td { padding: 11px 10px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.table td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Bandeau agent ---------- */
.acting-banner {
  display: flex; align-items: center; gap: 12px;
  background: var(--warn-soft); border: 1px solid #f0dcbd;
  color: #6d4206; border-radius: var(--r-md); padding: 12px 16px;
  font-size: 0.86rem; margin-bottom: 18px;
}
.acting-banner svg { width: 20px; height: 20px; flex: 0 0 auto; }
.acting-banner strong { font-weight: 700; }

/* ---------- Onglets ---------- */
.tabs { display: flex; gap: 6px; background: var(--sand-2); padding: 5px; border-radius: var(--pill); width: fit-content; }
.tabs button {
  border: 0; background: transparent; padding: 9px 16px; border-radius: var(--pill);
  font-size: 0.86rem; font-weight: 600; color: var(--muted); cursor: pointer;
}
.tabs button.on { background: #fff; color: var(--violet-700); box-shadow: var(--shadow-sm); }

/* ---------- Barre de progression ---------- */
.progress { height: 8px; border-radius: var(--pill); background: var(--sand-2); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: var(--pill); background: linear-gradient(90deg, var(--violet-700), var(--violet-500)); }
.progress.warn > span { background: linear-gradient(90deg, var(--warn), #d08b2a); }

/* ---------- Navigation mobile ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: none; background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  text-decoration: none; color: var(--muted); font-size: 0.66rem; font-weight: 600;
  padding: 6px 2px; border-radius: var(--r-sm);
}
.bottom-nav a svg { width: 21px; height: 21px; }
.bottom-nav a.active { color: var(--violet-700); }

/* ---------- Pied de page ---------- */
.foot { margin-top: 28px; color: var(--muted); font-size: 0.76rem; text-align: center; line-height: 1.6; }

/* ---------- RTL ---------- */
[dir="rtl"] .sidebar { border-right: 0; border-left: 1px solid var(--line); }
[dir="rtl"] .alert { border-left: 1px solid var(--line); border-right: 4px solid var(--magenta); }
[dir="rtl"] .nav a, [dir="rtl"] .quick, [dir="rtl"] .kid { text-align: right; }
[dir="rtl"] .table th, [dir="rtl"] .table td { text-align: right; }
[dir="rtl"] .summary-bar { flex-direction: row-reverse; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .bottom-nav { display: flex; }
  .main { padding: 18px 16px calc(var(--nav-h) + 24px); }
  /* la barre de résumé est fixe : réserver la place pour ne rien masquer */
  .main:has(.summary-bar) { padding-bottom: calc(var(--nav-h) + 124px); }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 20px 18px; }
  .card { padding: 16px; border-radius: var(--r-md); }
  .summary-bar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + 8px); }
  .cal { gap: 6px; }
  .day { min-height: 58px; padding: 6px 3px; }
  .day .n { font-size: 0.82rem; }
  .day .price { font-size: 0.62rem; }
  .tabs { width: 100%; }
  .tabs button { flex: 1; }

  /* le sélecteur de langue passait sous le bloc identité : on empile */
  .topbar { flex-wrap: wrap; }
  .topbar-tools { width: 100%; }
  .lang-switch { width: 100%; justify-content: space-between; }
  .lang-switch button { flex: 1; min-width: 0; }
  .who-text small { font-size: 0.72rem; }

  /* les tableaux denses défilent horizontalement plutôt que de déborder */
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-scroll .table { min-width: 540px; }
  .table th, .table td { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- Impression ---------- */
@media print {
  .sidebar, .bottom-nav, .demo-banner, .topbar-tools, .summary-bar { display: none !important; }
  body { background: #fff; }
  .shell { grid-template-columns: 1fr; }
}
