/* =====================================================================================
   Cockpit — habillage « Revolut » (v4) : fonds clairs/noirs, cartes très arrondies sans bordure, gros chiffres, boutons en pilule
   (primaire noir), listes à pastilles rondes, barre d'onglets mobile. Chargé APRÈS style.css et les CSS des écrans : il l'emporte.
   Thèmes de couleur : :root[data-tc="…"] (posé par theme.js / boot.js) ; mode : :root[data-theme="light|dark"].
   ===================================================================================== */
@font-face { font-family: "Inter"; src: url("/vendor/fonts/Inter-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
  --bg: #f7f7f7; --surface: #ffffff; --surface-2: #f4f4f5;
  --line: #e7e8ea; --line-2: #f0f0f2;
  --ink: #191c1f; --ink-2: #4f5459; --ink-3: #717173;
  --hover: rgba(25, 28, 31, .06); --hover-2: rgba(25, 28, 31, .10);
  --good: #00a87e; --good-ink: #008a67; --good-bg: #e2f6ef;
  --warn: #f2a413; --warn-ink: #a35d00; --warn-bg: #fff2d9;
  --crit: #e23b4a; --crit-ink: #c92a39; --crit-bg: #fde8ea;
  --info-bg: #e8f0fe; --info-ink: #0b5ad9;
  --perso: #0666eb; --entreprise: #f59e0b; --immo: #00a87e; --bourse: #8b5cf6;
  --flow-in: #00a87e; --flow-out: #b6bbc2;
  --shadow: none; --shadow-lg: 0 18px 50px rgba(0, 0, 0, .16);
  --radius: 24px;
  /* thème de couleur (Classique par défaut) */
  --tc-accent: #0666eb; --tc-primary: #191c1f; --tc-primary-ink: #ffffff;
  --tc-hero-from: transparent; --tc-hero-to: transparent; --tc-hero-ink: var(--ink); --tc-hero-pad: 6px 2px 2px; --tc-hero-r: 0px;
  --accent: var(--tc-primary); --accent-ink: var(--tc-primary-ink); --accent-blue: var(--tc-accent);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000; --surface: #1a1b1e; --surface-2: #26272b;
  --line: #2c2d30; --line-2: #222326;
  --ink: #ffffff; --ink-2: #c9cacd; --ink-3: #8c8e93;
  --hover: rgba(255, 255, 255, .08); --hover-2: rgba(255, 255, 255, .14);
  --good: #2bd3a2; --good-ink: #2bd3a2; --good-bg: #0d2e25;
  --warn: #ffb938; --warn-ink: #ffc766; --warn-bg: #33260a;
  --crit: #ff5a68; --crit-ink: #ff7a85; --crit-bg: #3a1216;
  --info-bg: #10233f; --info-ink: #7db0ff;
  --perso: #4d9bff; --entreprise: #fbbf24; --immo: #2bd3a2; --bourse: #a78bfa;
  --flow-in: #2bd3a2; --flow-out: #5b5f66;
  --shadow: none; --shadow-lg: 0 18px 50px rgba(0, 0, 0, .7);
  --accent: var(--tc-primary); --accent-ink: var(--tc-primary-ink); --accent-blue: var(--tc-accent);   /* style.css redéfinit ces trois variables en sombre */
}
:root[data-tc="classique"] { --tc-accent:#0666EB; --tc-primary:#191C1F; --tc-primary-ink:#FFFFFF; --tc-hero-from:transparent;--tc-hero-to:transparent;--tc-hero-ink:var(--ink); --tc-hero-pad: 6px 2px 2px; --tc-hero-r: 0px; }
:root[data-theme="dark"][data-tc="classique"] { --tc-accent:#4D9BFF; --tc-primary:#FFFFFF; --tc-primary-ink:#0A0A0A; --tc-hero-from:transparent;--tc-hero-to:transparent;--tc-hero-ink:var(--ink); --tc-hero-pad: 6px 2px 2px; --tc-hero-r: 0px; }
:root[data-tc="minuit"] { --tc-accent:#2F6BFF; --tc-primary:#0B1B3F; --tc-primary-ink:#FFFFFF; --tc-hero-from:#13244F;--tc-hero-to:#02040A;--tc-hero-ink:#fff; --tc-hero-pad: 28px 30px 24px; --tc-hero-r: 28px; }
:root[data-theme="dark"][data-tc="minuit"] { --tc-accent:#6EA2FF; --tc-primary:#FFFFFF; --tc-primary-ink:#0A0A0A; --tc-hero-from:#13244F;--tc-hero-to:#02040A;--tc-hero-ink:#fff;--surface:#0C0C0D;--surface-2:#161618;--line:#1E1F21;--line-2:#161718; --tc-hero-pad: 28px 30px 24px; --tc-hero-r: 28px; }
:root[data-tc="ocean"] { --tc-accent:#0A84C6; --tc-primary:#0A74B3; --tc-primary-ink:#FFFFFF; --tc-hero-from:#0EA5E9;--tc-hero-to:#1D4ED8;--tc-hero-ink:#fff; --tc-hero-pad: 28px 30px 24px; --tc-hero-r: 28px; }
:root[data-theme="dark"][data-tc="ocean"] { --tc-accent:#38BDF8; --tc-primary:#38BDF8; --tc-primary-ink:#00121F; --tc-hero-from:#0EA5E9;--tc-hero-to:#1D4ED8;--tc-hero-ink:#fff; --tc-hero-pad: 28px 30px 24px; --tc-hero-r: 28px; }
:root[data-tc="foret"] { --tc-accent:#0F9D6B; --tc-primary:#0B7A55; --tc-primary-ink:#FFFFFF; --tc-hero-from:#10B981;--tc-hero-to:#065F46;--tc-hero-ink:#fff; --tc-hero-pad: 28px 30px 24px; --tc-hero-r: 28px; }
:root[data-theme="dark"][data-tc="foret"] { --tc-accent:#34D399; --tc-primary:#34D399; --tc-primary-ink:#00150D; --tc-hero-from:#10B981;--tc-hero-to:#065F46;--tc-hero-ink:#fff; --tc-hero-pad: 28px 30px 24px; --tc-hero-r: 28px; }
:root[data-tc="violet"] { --tc-accent:#7C3AED; --tc-primary:#6D28D9; --tc-primary-ink:#FFFFFF; --tc-hero-from:#8B5CF6;--tc-hero-to:#4338CA;--tc-hero-ink:#fff; --tc-hero-pad: 28px 30px 24px; --tc-hero-r: 28px; }
:root[data-theme="dark"][data-tc="violet"] { --tc-accent:#A78BFA; --tc-primary:#A78BFA; --tc-primary-ink:#13063A; --tc-hero-from:#8B5CF6;--tc-hero-to:#4338CA;--tc-hero-ink:#fff; --tc-hero-pad: 28px 30px 24px; --tc-hero-r: 28px; }
:root[data-tc="corail"] { --tc-accent:#F0503C; --tc-primary:#E8412B; --tc-primary-ink:#FFFFFF; --tc-hero-from:#FF7A59;--tc-hero-to:#E11D48;--tc-hero-ink:#fff; --tc-hero-pad: 28px 30px 24px; --tc-hero-r: 28px; }
:root[data-theme="dark"][data-tc="corail"] { --tc-accent:#FB7A68; --tc-primary:#FB7A68; --tc-primary-ink:#2A0A04; --tc-hero-from:#FF7A59;--tc-hero-to:#E11D48;--tc-hero-ink:#fff; --tc-hero-pad: 28px 30px 24px; --tc-hero-r: 28px; }
:root[data-tc="graphite"] { --tc-accent:#4B5563; --tc-primary:#374151; --tc-primary-ink:#FFFFFF; --tc-hero-from:#4B5563;--tc-hero-to:#111827;--tc-hero-ink:#fff; --tc-hero-pad: 28px 30px 24px; --tc-hero-r: 28px; }
:root[data-theme="dark"][data-tc="graphite"] { --tc-accent:#9CA3AF; --tc-primary:#D1D5DB; --tc-primary-ink:#111827; --tc-hero-from:#4B5563;--tc-hero-to:#111827;--tc-hero-ink:#fff; --tc-hero-pad: 28px 30px 24px; --tc-hero-r: 28px; }

/* ---------- base ---------- */
body { font-family: var(--font); font-size: 14.5px; line-height: 1.5; letter-spacing: -.003em; background: var(--bg); color: var(--ink); font-feature-settings: "cv11" 1, "ss03" 1; }
.num, .kpi .v, .cashrow .v, .hero-amount, .tbl td.r, .tbl td.num, table.rent td { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1, "cv11" 1; }   /* chiffres alignés seulement pour les montants (le trait d'union reste normal) */
:root[data-theme="dark"] body { background: #000; }
a { color: var(--accent-blue); }
::selection { background: color-mix(in srgb, var(--accent-blue) 25%, transparent); }

/* ---------- barre latérale (ordinateur) ---------- */
@media (min-width: 761px) { .app { grid-template-columns: 252px 1fr; } }
.side { background: var(--bg); border: 0; padding: 22px 14px 16px; gap: 6px; }
.brand { padding: 4px 12px 20px; font-size: 18px; font-weight: 750; letter-spacing: -.03em; }
.brand .logo { border-radius: 11px; width: 32px; height: 32px; }
.nav { gap: 2px; }
.nav a { padding: 11px 14px; border-radius: 16px; color: var(--ink); font-weight: 560; font-size: 15px; gap: 14px; }
.nav a svg { color: var(--ink); stroke-width: 1.9; }
.nav a:hover { background: var(--hover); }
.nav a.on { background: var(--hover-2); color: var(--ink); font-weight: 700; }
.nav a.on svg { color: var(--ink); stroke-width: 2.3; }
.nav .count { background: var(--accent-blue); color: #fff; }
.nav a.on .count { background: var(--accent-blue); color: #fff; }
.filebox { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 14px 6px 0; margin-top: 8px; }
.userbox { border-top: 0; margin-top: 8px; padding-top: 0; }

/* ---------- en-tête de page ---------- */
.top { background: transparent; backdrop-filter: none; border: 0; padding: 30px 40px 6px; gap: 12px 12px; align-items: center; }
.top h1 { flex: 1 1 300px; min-width: 0; font-size: 34px; font-weight: 750; letter-spacing: -.04em; line-height: 1.1; }
.top .sub { font-size: 14px; font-weight: 450; color: var(--ink-3); margin-top: 4px; letter-spacing: -.005em; }
.scroll { padding: 14px 40px 70px; }
.page { max-width: 1240px; gap: 20px; }
.iconbtn { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; border: 0; background: var(--surface); color: var(--ink); padding: 0; transition: background .12s, transform .06s; }
.iconbtn:hover { background: var(--hover-2); }
.iconbtn:active { transform: scale(.96); }
.iconbtn.on { background: var(--accent); color: var(--accent-ink); }

/* ---------- boutons, contrôles ---------- */
.btn { border-radius: 999px; background: var(--hover); color: var(--ink); border: 0; padding: 10px 18px; font-weight: 620; letter-spacing: -.01em; }
.btn:hover { background: var(--hover-2); box-shadow: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent); filter: brightness(1.14); }
:root[data-theme="dark"] .btn.primary:hover { filter: brightness(.9); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--hover); }
.btn.danger { color: var(--crit-ink); background: var(--crit-bg); }
.btn.danger:hover { background: var(--crit-bg); filter: brightness(.97); }
.btn.sm { padding: 6px 13px; border-radius: 999px; font-size: 13px; }
.btn.lg { padding: 14px 24px; border-radius: 999px; font-size: 15.5px; }
.btn.icon { padding: 9px; }
.pillbtn { border: 0; background: var(--surface); border-radius: 999px; padding: 10px 16px; font-weight: 620; }
.pillbtn:hover { box-shadow: none; background: var(--hover-2); }
.seg { background: var(--hover); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border-radius: 999px; color: var(--ink-2); font-weight: 600; padding: 7px 16px; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .10); font-weight: 680; }
:root[data-theme="dark"] .seg button.on { background: #35373b; }
.seg.sm button { padding: 5px 12px; }
input[type=text], input[type=number], input[type=date], input[type=month], input[type=search], input[type=email], input[type=password], input[type=tel], select, textarea { border-radius: 16px; background: var(--surface-2); border: 1.5px solid transparent; padding: 11px 14px; min-height: 46px; }
input:focus, select:focus, textarea:focus { background: var(--surface); border-color: var(--ink); box-shadow: none; }
.field > label, .lbl { color: var(--ink-3); font-weight: 600; font-size: 12.5px; }
.toggle.on { background: var(--accent-blue); }
.chip, .pill { border-radius: 999px; }
.pill { font-weight: 650; }
.cat, .pchip { border-radius: 999px; background: var(--hover); color: var(--ink); border: 0; }
.cat:hover, .pchip:hover { background: var(--hover-2); border-color: transparent; color: var(--ink); }
.cat.on, .pchip.on { background: var(--accent); color: var(--accent-ink); }
.pchip.add { background: transparent; border: 1.5px dashed var(--line); }
.cardtools .btn { background: transparent; }
.tbl th.sorted { color: var(--ink); }

/* ---------- cartes ---------- */
.card { background: var(--surface); border: 0; border-radius: var(--radius); box-shadow: none; padding: 22px 24px; }
.card > header { margin-bottom: 16px; }
.card > header h2 { font-size: 19px; font-weight: 720; letter-spacing: -.03em; }
.card > header .sub { font-size: 13.5px; }
.kpis { gap: 14px; }
.kpi { padding: 20px 22px 18px; gap: 6px; }
.kpi .t { font-size: 13.5px; font-weight: 560; color: var(--ink-3); }
.kpi .t svg { display: none; }
.kpi .v { font-size: 31px; font-weight: 720; letter-spacing: -.04em; margin-top: 2px; }
.kpi .d { font-size: 13px; }
.kpi .spark { opacity: .55; }
.delta { border-radius: 999px; }
.pos { color: var(--good-ink); }
.neg { color: var(--ink); }                        /* Revolut : les dépenses restent noires (pas de rouge sur un montant courant) */
.kpi .neg, .cashrow .neg, .hv.neg { color: var(--crit-ink); }
.tbl th { font-size: 12.5px; font-weight: 600; color: var(--ink-3); text-transform: none; letter-spacing: 0; border-bottom: 1px solid var(--line-2); padding: 10px 12px; }
.tbl td { padding: 13px 12px; border-bottom: 1px solid var(--line-2); }
@media (hover: hover) and (pointer: fine) { .tbl tbody tr:hover { background: var(--hover); } }
.alert { background: transparent; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; padding: 14px 4px; gap: 14px; }
.alerts { gap: 0; }
.alert:last-child { border-bottom: 0; }
.alert .ic { width: 42px; height: 42px; border-radius: 50%; }
.alert.bad, .alert.warn, .alert.info, .alert.good { border-left: 0; border-right: 0; border-top: 0; }
.alert .tx { font-weight: 620; }
.hi { border-radius: 18px; }
.hnext, .act, .insight, .cmpcell, .assoc .ac, .fxbox, .pcard { border-radius: 20px; border: 0; }
.cmpbar i { background: var(--accent-blue); }
.cashrow { padding: 14px 0; }
.cashrow .v { font-size: 18px; font-weight: 720; letter-spacing: -.03em; }
.cashrow.total .v { font-size: 24px; }
.gridwrap { border: 0; border-radius: 18px; background: var(--surface-2); }
.bl .it .tr, .bl .it .tr .fl { border-radius: 999px; }
.bl .it .tr { height: 8px; }
.empty b { font-size: 16px; }
.infobox { border-radius: 18px; background: var(--info-bg); }
.note { color: var(--ink-3); }

/* ---------- pastilles rondes (opérations, listes) ---------- */
.txav { width: 42px; height: 42px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; font-size: 19px; line-height: 1;
  background: color-mix(in srgb, var(--av, var(--ink)) 13%, var(--surface)); color: var(--ink); }
.txav.Perso { --av: var(--perso); } .txav.Entreprise { --av: var(--entreprise); } .txav.Immobilier { --av: var(--immo); } .txav.Bourse { --av: var(--bourse); }
.txlist .c-lib .lib { display: flex; align-items: center; gap: 14px; font-weight: 620; font-size: 15px; }
.txlist .c-lib .lib .txt { display: flex; flex-direction: column; min-width: 0; }
.txlist .c-lib .lib .txt small { font-size: 13px; font-weight: 450; color: var(--ink-3); }
.txlist td.c-amt { font-size: 15.5px; }

/* ---------- héros de l'accueil ---------- */
.hero { background: linear-gradient(135deg, var(--tc-hero-from), var(--tc-hero-to)); color: var(--tc-hero-ink); border-radius: var(--tc-hero-r); padding: var(--tc-hero-pad); position: relative; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero-hello { font-size: 15px; font-weight: 550; opacity: .75; }
.hero-label { font-size: 14.5px; font-weight: 520; opacity: .7; margin-top: 14px; }
.hero-amount { font-size: clamp(42px, 6.4vw, 64px); font-weight: 730; letter-spacing: -.045em; line-height: 1.05; margin-top: 2px; font-variant-numeric: tabular-nums; }
.hero-delta { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 12px 4px 10px; border-radius: 999px; font-size: 13.5px; font-weight: 650; background: color-mix(in srgb, currentColor 10%, transparent); }
.hero-delta.up { color: var(--good-ink); background: var(--good-bg); }
.hero.tinted .hero-delta, .hero.tinted .hero-delta.up { color: #fff; background: rgba(255, 255, 255, .18); }
.hero-sub { font-size: 13.5px; opacity: .7; margin-top: 8px; }
.hero-actions { display: flex; gap: 8px 22px; margin-top: 24px; flex-wrap: wrap; }
.hero-act { display: flex; flex-direction: column; align-items: center; gap: 9px; width: 76px; background: none; border: 0; padding: 0; color: inherit; font-size: 13px; font-weight: 580; text-decoration: none; text-align: center; line-height: 1.25; }
.hero-act .circ { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--hover-2); color: var(--ink); transition: transform .08s, background .12s; }
.hero-act:hover .circ { background: color-mix(in srgb, var(--ink) 16%, transparent); }
.hero-act:active .circ { transform: scale(.94); }
.hero-act.on .circ { background: var(--accent); color: var(--accent-ink); }
.hero.tinted .hero-act .circ { background: rgba(255, 255, 255, .2); color: #fff; }
.hero.tinted .hero-act:hover .circ { background: rgba(255, 255, 255, .3); }
.hero.tinted .hero-act.on .circ { background: #fff; color: #000; }
.hero .iconbtn { background: color-mix(in srgb, currentColor 10%, transparent); color: inherit; }
.hero.tinted .iconbtn { background: rgba(255, 255, 255, .18); }

/* ---------- fenêtres, notifications ---------- */
.overlay { background: rgba(0, 0, 0, .5); backdrop-filter: none; }
.modal { border-radius: 28px; border: 0; }
.modal > header h2 { font-size: 20px; font-weight: 740; letter-spacing: -.03em; }
.amount { border-radius: 20px !important; background: var(--surface-2) !important; }
.pop { border: 0; border-radius: 22px; }
.toast { background: var(--ink); color: var(--bg); border-radius: 999px; padding: 12px 20px; backdrop-filter: none; }
.toast.error { background: var(--crit); color: #fff; }
.tip { border: 0; border-radius: 16px; background: var(--ink); color: var(--bg); }
.tip .th { color: inherit; }
.period .presets button.on, .period .mp .ms button.on { background: var(--accent); color: var(--accent-ink); border-radius: 12px; }

/* ---------- Paramètres › Apparence ---------- */
.appearance { display: flex; flex-direction: column; gap: 14px; }
.ap-title { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mode-tile, .tc-card { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 4px; text-align: left; background: var(--surface-2); border: 2px solid transparent; border-radius: 22px; padding: 12px; color: var(--ink); transition: border-color .12s, transform .08s; }
.mode-tile:hover, .tc-card:hover { background: var(--hover); }
.mode-tile:active, .tc-card:active { transform: scale(.98); }
.mode-tile.on, .tc-card.on { border-color: var(--ink); background: var(--surface-2); }
.mode-tile small, .tc-card small { color: var(--ink-3); font-size: 12px; font-weight: 450; }
.mode-tile > b { font-size: 14px; margin-top: 6px; }
.mode-prev { display: flex; height: 84px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.mp-half { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 10px; }
.mp-half b { display: block; height: 22px; border-radius: 8px; } .mp-half b.s { height: 14px; width: 70%; }
.tc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 10px; }
.tc-prev { display: flex; flex-direction: column; gap: 6px; height: 104px; border-radius: 16px; padding: 8px; border: 1px solid var(--line); }
.tc-hero { flex: 1; border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 5px; justify-content: center; }
.tc-hero b { display: block; height: 9px; width: 62%; border-radius: 6px; } .tc-hero b.s { height: 6px; width: 38%; }
.tc-row { display: flex; align-items: center; gap: 6px; }
.tc-row i { width: 16px; height: 16px; border-radius: 50%; display: block; } .tc-row i.pill { width: 46px; height: 16px; border-radius: 999px; padding: 0; }
.tc-name { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.tc-name b { font-size: 14px; }
.tc-card.on .tc-name svg { color: var(--ink); }

/* ---------- iPhone ---------- */
@media (max-width: 760px) {
  body { font-size: 15px; }
  .top { padding: calc(14px + env(safe-area-inset-top)) 18px 4px; gap: 10px; }
  .top h1 { flex: 1 1 100%; font-size: 32px; padding-right: 54px; }
  .top .top-eye { position: absolute; right: 16px; top: calc(12px + env(safe-area-inset-top)); width: 42px; height: 42px; }
  .scroll { padding: 8px 14px calc(104px + env(safe-area-inset-bottom)); }
  .page { gap: 14px; }
  .card { border-radius: 24px; padding: 18px 18px; }
  .card > header h2 { font-size: 18px; }
  .kpis { gap: 10px; }
  .kpi { padding: 15px 16px; }
  .kpi .v { font-size: 24px; }
  .hero { text-align: center; padding: 4px 0 0; }
  .hero.tinted { padding: 22px 18px 20px; }
  .hero-top { justify-content: center; }
  .hero-amount { font-size: clamp(40px, 12.5vw, 56px); }
  .hero-actions { justify-content: space-between; gap: 6px; }
  .hero-act { width: 70px; }
  .hero-act .circ { width: 54px; height: 54px; }
  .tabbar { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; border-top: 1px solid var(--line-2); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { color: var(--ink-3); font-size: 11px; font-weight: 620; gap: 3px; }
  .tabbar a.on, .tabbar button.on { color: var(--ink); }
  .tabbar a.on svg.i, .tabbar button.on svg.i { stroke-width: 2.3; fill: color-mix(in srgb, currentColor 16%, transparent); }
  .tabbar .fab { width: 58px; height: 58px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px rgba(0, 0, 0, .22); margin-bottom: 6px; }
  .tabbar .fab.on, .tabbar .fab:active { color: var(--accent-ink); }
  .modal { border-radius: 28px 28px 0 0; }
  .toast { border-radius: 18px; }
  .mode-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .mode-tile { padding: 8px; } .mode-tile small { display: none; }
  .tc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .txlist tr { padding: 12px 2px; }
  .txlist td.c-lib .lib { font-weight: 620; display: flex; }
  .morelist a { padding: 16px 4px; }
}
@media (min-width: 761px) { .hero-top .iconbtn { display: none; } }   /* sur ordinateur l'œil est dans la barre du haut */
.hero-top .iconbtn { margin-left: auto; }

/* ---------- mode présentation : champs de saisie de montants ---------- */
body.privacy input.amount, body.privacy input[inputmode="decimal"], body.privacy input[type="number"] { -webkit-text-security: disc; }
body.privacy .tip { display: none; }   /* infobulles de graphiques : le texte est masqué, on évite aussi d'afficher des valeurs relatives */
[dir="rtl"] .hero-amount { text-align: right; }
[dir="rtl"] .hero-actions { flex-direction: row; }

.hero-how { display: inline-block; margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--accent); }
a.btn, a.btn:hover { text-decoration: none; }
