/* VOICE   everyday money tool, calm and precise like a neobank app
   IDEA    a bank card + receipts: teal card with frosted glass, white slips with dashed rules
   PICTURE the teal "card" holding this month's remaining amount
   COLOUR  mist ground #f0f0ee, ink #102221, teal #2f5320, slate #5a7e82, category hues as small touches
   TYPE    Instrument Sans throughout
   LAYOUT  top navbar everywhere; phone: tabs under the brand row, one column; laptop: tabs centred, two columns */

:root {
  color-scheme: light;
  --bg: #f0f0ee;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --surface-2: #f4f4f2;
  --line: #ececea;
  --dash: #ebebe8;
  --ink: #151a12;
  --ink-2: #545b51;
  --ink-3: #8f948c;
  --brand: #2f5320;
  --lime: #b6e77a;
  --lime-2: #cdf09f;
  --lime-soft: #eef8e0;
  --brand-2: #3d6b2a;
  --brand-deep: #16290e;
  --green: #2f8a3e;
  --green-bg: #e9f6dc;
  --yellow: #946f05;
  --yellow-bg: #fbf1cf;
  --orange: #c05d17;
  --orange-bg: #fde7d6;
  --red: #c63f3a;
  --red-bg: #fbe3e1;
  --blue: #3f74d6;
  --radius: 26px;
  --shadow: 0 1px 1px rgba(20, 24, 18, .03), 0 10px 30px -12px rgba(20, 24, 18, .14);
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.4; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; overscroll-behavior-y: none; background: radial-gradient(120% 60% at 100% 0%, #e9e9e6 0%, rgba(221, 231, 232, 0) 60%), var(--bg); background-color: var(--bg); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: var(--brand); }
.num, .amt, .val, .money { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.pos { color: var(--green); }
.neg { color: var(--red); }
.hidden { display: none !important; }

.amt { white-space: nowrap; font-weight: 600; letter-spacing: -.01em; }
.amt small { font-size: .62em; font-weight: 500; margin-left: 1px; opacity: .75; letter-spacing: 0; }

.logo-sq { display: inline-block; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #b6e77a 0 50%, #1f3b14 50% 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); flex: none; }
.logo-sq.big { width: 64px; height: 64px; border-radius: 18px; display: block; margin: 0 auto 18px; box-shadow: 0 0 0 10px #fff, 0 14px 30px -10px rgba(20, 24, 18, .3); }

/* Structure */
.main { min-width: 0; padding: 0 16px calc(var(--safe-b) + 110px); }
.wrap { max-width: 1180px; margin: 0 auto; }

/* Barre de navigation en haut */
.appbar { position: sticky; top: 0; z-index: 30; background: rgba(240, 240, 238, .82); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border-bottom: 1px solid rgba(225, 225, 222, .6); padding: calc(env(safe-area-inset-top, 0px) + 10px) 16px 10px; }
.appbar-in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand right" "tabs tabs"; gap: 10px 8px; align-items: center; }
.brand { grid-area: brand; display: flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 600; letter-spacing: -.02em; min-width: 0; }
.brand .logo-sq { width: 28px; height: 28px; border-radius: 8px; }
.appbar-r { grid-area: right; display: flex; align-items: center; gap: 6px; }
.appbar-r .sync .lbl { display: none; }
.tabs { grid-area: tabs; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow); border-radius: 16px; padding: 4px; }
.tabs button { border: 0; background: transparent; border-radius: 12px; padding: 8px 4px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink-2); min-width: 0; white-space: nowrap; }
.tabs button svg { width: 18px; height: 18px; flex: none; display: none; }
.tabs button.on { background: linear-gradient(145deg, var(--brand-2), var(--brand-deep)); color: #fff; font-weight: 600; box-shadow: 0 6px 14px -6px rgba(22, 41, 14, .5); }
.icon-btn { width: 40px; height: 40px; border-radius: 14px; border: 0; background: transparent; display: inline-grid; place-items: center; color: var(--ink-2); flex: none; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:disabled { opacity: .3; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.gear { background: var(--surface-solid); box-shadow: var(--shadow); width: 38px; height: 38px; border-radius: 12px; }
.icon-btn.gear.on { color: var(--brand); box-shadow: 0 0 0 2px rgba(47, 83, 32, .35); }
.sync { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.sync .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.sync.pending .dot { background: #e0b528; }
.sync.error .dot { background: var(--red); }
.year-pill { border: 0; background: var(--surface-solid); box-shadow: var(--shadow); border-radius: 999px; padding: 9px 14px; font-weight: 600; font-size: 13px; }

/* Titre de page */
.pagehead { padding: 18px 0 14px; }
.pagehead h1 { font-size: 28px; font-weight: 600; margin: 0; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pagehead p { margin: 4px 0 0; color: var(--ink-3); }
.month-nav { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mn-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.today-btn { border: 0; background: var(--surface-solid); box-shadow: var(--shadow); color: var(--brand-deep); font: inherit; font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 12px; white-space: nowrap; cursor: pointer; }
.month-nav .icon-btn { background: var(--surface-solid); box-shadow: var(--shadow); width: 36px; height: 36px; border-radius: 12px; }

.fab { position: fixed; right: 20px; bottom: calc(20px + var(--safe-b)); z-index: 31; width: 58px; height: 58px; border-radius: 20px; border: 0; background: linear-gradient(145deg, var(--brand-2), var(--brand-deep)); color: #fff; box-shadow: 0 14px 28px -8px rgba(22, 41, 14, .55), inset 0 1px 0 rgba(255, 255, 255, .18); display: grid; place-items: center; }
.fab svg { width: 26px; height: 26px; }

/* Saisie des dépenses */
.journal { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.journal .card { margin-bottom: 0; }
.jlist > * + * { margin-top: 14px; }
.jlist .daycard { margin-top: 0; }
.txform .amount-wrap { margin-left: -18px; margin-right: -18px; }
.shortcuts { margin: -2px 0 6px; }
.shortcuts small { color: var(--ink-3); font-size: 12.5px; }
.chip.sc { display: inline-flex; align-items: center; gap: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); padding: 5px 12px 5px 5px; }
.cic.xs { width: 22px; height: 22px; border-radius: 7px; }
.cic.xs svg { width: 13px; height: 13px; }
.kpis.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 0; }
.kpis.k3 .kpi b { font-size: 17px; }

/* Où va mon argent */
.flow { display: flex; height: 18px; border-radius: 9px; overflow: hidden; gap: 2px; margin: 8px 0 14px; background: var(--surface-2); }
.flow i { display: block; height: 100%; min-width: 3px; }
.flow-legend { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 24px; }
.fl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 3.2em; align-items: center; gap: 6px; padding: 6px 0; border-top: 1px dashed var(--dash); font-size: 14px; }
.fl:first-child { border-top: 0; }
.fl .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl .v { font-weight: 600; white-space: nowrap; }
.fl .p { color: var(--ink-3); text-align: right; font-size: 12.5px; }
.insights { display: grid; gap: 8px; margin-top: 14px; }
.ins { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; background: var(--surface-2); }
.ins-ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 12px; font-weight: 700; color: #fff; background: var(--brand); margin-top: 1px; }
.ins-good { background: var(--green-bg); } .ins-good .ins-ic { background: var(--green); }
.ins-warn { background: var(--orange-bg); } .ins-warn .ins-ic { background: var(--orange); }
.ins b { font-weight: 600; }

/* Cartes */
.card { background: var(--surface); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .9); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px; min-width: 0; }
.card h2 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); margin: 0 0 6px; padding-bottom: 12px; border-bottom: 1px dashed var(--dash); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card h2 .grow { flex: 1; }
.card h2 .tot { font-variant-numeric: tabular-nums; font-size: 16px; font-weight: 600; white-space: nowrap; }
.card h2 .tot small { font-weight: 500; }
.grid2 { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.grid2 > .card { margin-bottom: 0; }
.stack > * + * { margin-top: 14px; }

/* La carte bancaire (héros) */
.hero { position: relative; overflow: hidden; color: #fff; border: 0; padding: 18px; background: radial-gradient(70% 90% at 95% 10%, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 60%), linear-gradient(150deg, #3d6b2a 0%, #2f5320 45%, #16290e 100%); box-shadow: 0 22px 40px -18px rgba(22, 41, 14, .55); }
.hero::before { content: ""; position: absolute; right: -60px; top: -40px; width: 260px; height: 260px; border-radius: 50%; border: 44px solid rgba(255, 255, 255, .05); }
.hero::after { content: ""; position: absolute; right: 70px; bottom: -120px; width: 220px; height: 220px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .045); }
.hero > * { position: relative; z-index: 1; }
.hero-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.brandmark { font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.chipmark { width: 40px; height: 30px; border-radius: 7px; background: linear-gradient(135deg, #f4f6f6, #b9c4c5 55%, #f0f0ee); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); position: relative; }
.chipmark::before { content: ""; position: absolute; inset: 7px 11px; border: 1.5px solid rgba(0, 0, 0, .18); border-radius: 4px; }
.glass { background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .22); border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; }
.hero .label { font-size: 13px; opacity: .85; }
.hero .big { font-size: clamp(34px, 9vw, 44px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; margin-top: 2px; }
.hero .row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hero .row3 div { background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 8px 10px; min-width: 0; }
.hero .row3 small { display: block; font-size: 11.5px; opacity: .8; }
.hero .row3 b { font-size: 15px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hero .bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .16); overflow: hidden; margin-top: 12px; }
.hero .bar i { display: block; height: 100%; background: linear-gradient(90deg, #2f5320, #ffffff); border-radius: 6px; }
.hero .barlabel { display: flex; justify-content: space-between; gap: 4px 10px; font-size: 12px; opacity: .88; margin-top: 7px; flex-wrap: wrap; }

.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { background: var(--surface); border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow); border-radius: 18px; padding: 12px 14px; min-width: 0; }
.kpi small { display: block; color: var(--ink-3); font-size: 12.5px; }
.kpi b { font-size: 20px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Lignes */
.rows { margin: 0 -2px; }
.row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-top: 1px dashed var(--dash); min-height: 50px; }
.row:first-child { border-top: 0; }
.row .name { flex: 1; min-width: 0; }
.row .name .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.row .name small { color: var(--ink-3); font-size: 12.5px; }
.row .val { text-align: right; white-space: nowrap; }
.row.total { font-weight: 600; }
.row.sub { min-height: 34px; padding: 3px 2px; color: var(--ink-3); font-size: 13px; border-top: 0; }
.row .badge { flex: none; }
.tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); margin-left: 6px; vertical-align: 1px; font-weight: 500; }
.tag.commun { background: #e6eefb; color: var(--blue); }
.tag.auto { background: var(--yellow-bg); color: var(--yellow); }
.money { width: 112px; text-align: right; padding: 9px 11px; border: 1px solid transparent; border-radius: 12px; background: var(--surface-2); font-size: 15px; font-weight: 500; }
.money:focus, .field input:focus, .field select:focus, .search:focus { outline: 2px solid rgba(47, 83, 32, .45); outline-offset: 0; background: #fff; }
.money.s { width: 92px; }
.money[readonly] { background: transparent; color: var(--ink-2); }

/* Icône de catégorie : la touche de couleur */
.cic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; color: var(--c); background: color-mix(in srgb, var(--c) 13%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 16%, transparent); }
.cic svg { width: 20px; height: 20px; }
.cic.sm { width: 28px; height: 28px; border-radius: 9px; }
.cic.sm svg { width: 16px; height: 16px; }
.cdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c); margin-right: 6px; vertical-align: 1px; }

/* Catégories et barres */
.cat { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px dashed var(--dash); }
h2 + .cat { border-top: 0; }
.cbody { flex: 1; min-width: 0; }
.cat .top { display: flex; align-items: center; gap: 8px; }
.cat .top .t { flex: 1; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat .top .v { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cat .top .v small { color: var(--ink-3); }
.pbar { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; margin: 7px 0 4px; }
.pbar i { display: block; height: 100%; border-radius: 6px; }
.cat .meta { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--ink-3); gap: 8px; }
.lvl-g i { background: #2f9e6e; } .lvl-y i { background: #e0b528; } .lvl-o i { background: #e58a3a; } .lvl-r i { background: #d9534f; }
.badge { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.badge.lvl-g { background: var(--green-bg); color: var(--green); }
.badge.lvl-y { background: var(--yellow-bg); color: var(--yellow); }
.badge.lvl-o { background: var(--orange-bg); color: var(--orange); }
.badge.lvl-r { background: var(--red-bg); color: var(--red); }
.badge.lvl-n { background: var(--surface-2); color: var(--ink-3); }
.cat button.budget { border: 0; background: var(--surface-2); padding: 3px 10px; border-radius: 999px; color: var(--ink-2); font-size: 12px; }

/* Journal : un ticket par jour */
.filters { padding-bottom: 8px; }
.day { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 14px 6px 6px; }
.day span:first-child::first-letter { text-transform: uppercase; }
.day .num { color: var(--ink-3); font-weight: 500; }
.daycard { background: var(--surface); border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow); border-radius: 20px; padding: 2px 14px; }
.tx { display: flex; align-items: center; gap: 12px; padding: 12px 0; border: 0; border-top: 1px dashed var(--dash); width: 100%; background: none; text-align: left; }
.tx:first-child { border-top: 0; }
.tx .name { flex: 1; min-width: 0; }
.tx .name .t { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.tx .name small { color: var(--ink-3); font-size: 12.5px; }
.tx .val { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.tx .val .amt { font-size: 16px; }
.pills { display: flex; gap: 4px; }
.pills:empty { display: none; }
.pill { font-size: 11px; background: var(--surface-2); color: var(--ink-2); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.pill.commun { background: #e6eefb; color: var(--blue); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { border: 0; background: var(--surface-2); padding: 8px 14px; border-radius: 999px; white-space: nowrap; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.chip.on { background: var(--ink); color: #fff; }
.search { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid transparent; background: var(--surface-2); margin-bottom: 8px; font-size: 15px; }

/* Boutons et champs */
.btn { border: 0; border-radius: 14px; padding: 13px 16px; font-weight: 600; background: var(--surface-2); color: var(--ink); }
.btn.primary { background: linear-gradient(145deg, var(--brand-2), var(--brand-deep)); color: #fff; }
.btn.danger { background: var(--red-bg); color: var(--red); }
.btn.ghost { background: var(--surface-2); color: var(--brand); padding: 7px 12px; border-radius: 999px; font-size: 13px; }
.btn.small { padding: 8px 13px; font-size: 13px; border-radius: 999px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 7px; font-weight: 500; }
.field input, .field select { width: 100%; padding: 13px 14px; border-radius: 14px; border: 1px solid transparent; background: var(--surface-2); font-size: 16px; }
.seg { display: flex; background: var(--surface-2); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { flex: 1; min-width: 0; border: 0; background: transparent; padding: 9px 4px; border-radius: 10px; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg button.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(20, 24, 18, .12); }
.amount-wrap { text-align: center; margin: 0 -18px 16px; padding: 6px 18px 14px; border-bottom: 1px dashed var(--dash); }
.amount-in { width: 100%; border: 0; background: transparent; font-size: 48px; font-weight: 600; letter-spacing: -.03em; text-align: center; padding: 4px 0 2px; font-variant-numeric: tabular-nums; }
.amount-in:focus { outline: 0; }
.amount-wrap small { color: var(--ink-3); }
.catgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.catgrid button { border: 1px solid transparent; background: var(--surface-2); border-radius: 14px; padding: 9px 4px 8px; font-size: 12px; line-height: 1.2; display: flex; flex-direction: column; align-items: center; gap: 5px; min-height: 66px; color: var(--ink-2); min-width: 0; }
.catgrid button span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.catgrid button.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); color: var(--ink); font-weight: 600; }

/* Feuilles (modales) */
.backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(20, 24, 18, .32); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s ease; }
.sheet { background: #fff; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; border-radius: 28px 28px 0 0; padding: 8px 18px calc(18px + var(--safe-b)); animation: up .22s cubic-bezier(.2, .8, .2, 1); }
.sheet .grip { width: 40px; height: 5px; border-radius: 5px; background: var(--line); margin: 4px auto 10px; }
.sheet h3 { margin: 0 0 14px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.sheet h3 span { flex: 1; }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sheet, .backdrop { animation: none; } }

/* Toast */
#toast { position: fixed; left: 50%; bottom: calc(var(--safe-b) + 92px); transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 14px; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; z-index: 60; max-width: calc(100vw - 32px); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); }
#toast.show { opacity: 1; transform: translateX(-50%); }
#toast button { background: none; border: 0; color: #9fd6d1; font-weight: 700; margin-left: 10px; pointer-events: auto; }

/* Graphiques */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { fill: var(--ink-3); font-size: 11px; font-family: var(--font); }
.chart .grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.legend { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.table-scroll { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
table.t { border-collapse: collapse; width: 100%; font-size: 13px; min-width: 640px; }
table.t th, table.t td { padding: 9px 8px; text-align: right; border-bottom: 1px dashed var(--dash); white-space: nowrap; font-variant-numeric: tabular-nums; }
table.t th { color: var(--ink-3); font-weight: 600; font-size: 12px; }
table.t th:first-child, table.t td:first-child { text-align: left; position: sticky; left: 0; background: #fff; }
table.t tr.tot td { font-weight: 700; border-bottom: 0; }
table.t.t-compact { min-width: 0; }
table.t.t-compact th, table.t.t-compact td { padding: 9px 4px; }
table.t.t-compact th:first-child, table.t.t-compact td:first-child { width: 1%; padding-left: 0; }
table.t tr.clickable { cursor: pointer; }
table.t tr.clickable:hover td { background: var(--surface-2); }

/* Objectifs */
.goal { display: flex; gap: 14px; align-items: center; padding: 12px 0; border: 0; border-top: 1px dashed var(--dash); width: 100%; background: none; text-align: left; }
h2 + .goal { border-top: 0; }
.ring { width: 64px; height: 64px; flex: none; }
.ring .bg { stroke: var(--surface-2); }
.ring .fg { stroke: var(--brand); transition: stroke-dasharray .4s; }
.ring text { fill: var(--ink); font-size: 15px; font-weight: 600; font-family: var(--font); }
.goal .name { flex: 1; min-width: 0; }
.goal .name b { display: block; font-weight: 600; }
.goal .name small { color: var(--ink-3); display: block; }

/* Connexion */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth .card { width: 100%; max-width: 380px; padding: 30px 24px; }
.auth h1 { text-align: center; font-weight: 600; font-size: 30px; margin: 0 0 4px; letter-spacing: -.02em; }
.auth p { text-align: center; color: var(--ink-2); margin: 0 0 22px; }
.err { color: var(--red); font-size: 14px; margin: -4px 0 12px; min-height: 1em; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); margin-bottom: 16px; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }

.empty { text-align: center; color: var(--ink-3); padding: 28px 10px; }
.note { font-size: 13px; color: var(--ink-3); margin: 10px 0 0; }
.loading { min-height: 100vh; display: grid; place-items: center; color: var(--ink-3); }
.fxrow > .search { flex: 1 1 100% !important; }
.fxrow .seg { margin-right: auto; }

/* Ordinateur et tablette */
@media (min-width: 760px) {
  .appbar { padding: 12px 24px; }
  .appbar-in { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand tabs right"; gap: 18px; }
  .tabs { max-width: 520px; width: 100%; justify-self: center; }
  .tabs button svg { display: block; }
  .appbar-r .sync .lbl { display: inline; }
  .main { padding: 0 24px 40px; }
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .flow-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fl:nth-child(2) { border-top: 0; }
  .hero { padding: 22px 24px; }
  .hero .row3 b { font-size: 17px; }
  .backdrop { align-items: center; }
  .sheet { border-radius: 28px; max-height: 88vh; }
  #toast { bottom: 30px; }
  .catgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  .grid2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .grid2.eq { align-items: stretch; }
  .journal { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); }
  .journal .txform { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; }
  .journal .catgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pagehead h1 { font-size: 32px; }
}

/* Compte LMNP et crédits */
.tag.lmnp, .pill.lmnp { background: #e9f6dc; color: #2c7a5b; }
.sign { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700; font-size: 14px; }
.sign.in { background: var(--green-bg); color: var(--green); }
.sign.out { background: var(--surface-2); color: var(--ink-2); }
.loan-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 6px 0 12px; }
.loan-sum div { background: var(--surface-2); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.loan-sum small { display: block; color: var(--ink-3); font-size: 12px; }
.loan-sum b { font-size: 16px; }
.loan { display: block; width: 100%; text-align: left; border: 0; background: #fff; border-radius: 18px; padding: 14px 16px; margin-top: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.loan-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.loan-top b { display: block; font-size: 16px; font-weight: 600; }
.loan-top small { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.loan-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--ink-2); padding: 2px 0; flex-wrap: wrap; }
.loan-row b { color: var(--ink); font-weight: 600; }
.loanbar { height: 6px; margin: 8px 0 6px; }
.loanbar i { background: linear-gradient(90deg, #23875d, #2f9e6e); }
.lmnp-card .row .name .t { white-space: normal; }
.loan-sum b { white-space: nowrap; font-size: 15px; }
.flow i.save { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.28) 0 3px, transparent 3px 7px) !important; }
.fl-save .n, .fl-save .v { color: var(--brand); font-weight: 600; }

/* Cercles des charges variables */
.rsum { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 6px 0 14px; border-bottom: 1px dashed var(--dash); margin-bottom: 12px; }
.rsum-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rsum-txt small { color: var(--ink-3); font-size: 12.5px; }
.rsum-txt b { font-size: 20px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 6px; white-space: nowrap; }
.rsum-txt .badge { align-self: flex-start; }
.rbig { position: relative; width: 156px; height: 156px; flex: none; }
.rcenter { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.rbig .rcenter small { color: var(--ink-3); font-size: 12px; }
.rbig .rcenter b { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.rtiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rtile { border: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--line); border-radius: 18px; padding: 14px 8px 12px; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; min-width: 0; }
.rtile:hover { box-shadow: inset 0 0 0 1px var(--c); }
.rwrap { position: relative; width: 76px; height: 76px; margin-bottom: 2px; }
.rwrap .rcenter svg { width: 26px; height: 26px; }
.rname { font-weight: 600; font-size: 14px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ramt { font-size: 13px; color: var(--ink); white-space: nowrap; }
.ramt small { color: var(--ink-3); }

/* Stratégie d'épargne */
.plan-step { display: flex; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--dash); }
h2 + .plan-step { border-top: 0; }
.plan-step .n { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; }
.plan-step b { font-weight: 600; }
.plan-step p { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.plan-step .money { width: 78px; padding: 5px 8px; display: inline-block; }
.plan-est { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; background: linear-gradient(145deg, var(--brand-2), var(--brand-deep)); color: #fff; border-radius: 16px; padding: 12px 16px; margin-top: 6px; }
.plan-est b { font-size: 22px; font-weight: 600; }
.tabs { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
@media (max-width: 759px) { .tabs button { font-size: 12.5px; padding: 8px 2px; } }
@media (min-width: 760px) { .tabs { max-width: 640px; } .rtiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 980px) { .rtiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
.rsum2 { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: end; padding: 4px 0 14px; border-bottom: 1px dashed var(--dash); margin-bottom: 12px; }
.rs-main { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; min-width: 0; }
.rs-main > small, .rs-side small { color: var(--ink-3); font-size: 12.5px; display: block; }
.rs-main b { font-size: 34px; letter-spacing: -.03em; line-height: 1.1; }
.rs-side { display: flex; gap: 16px; text-align: right; }
.rs-side b { font-size: 16px; font-weight: 600; white-space: nowrap; }
.rs-bar { grid-column: 1 / -1; height: 8px; margin: 6px 0 0; }

/* Encart revenus du mois */
.incomebox h2 { margin-bottom: 10px; }
.ib-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.incgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.incf { display: flex; flex-direction: column; gap: 5px; background: var(--surface-2); border-radius: 14px; padding: 9px 10px 10px; min-width: 0; }
.incf > span { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.incf .money { width: 100%; background: #fff; text-align: left; font-size: 17px; font-weight: 600; }
.toplace { background: linear-gradient(160deg, #f3faea, #f7fbf1); border: 1px solid #dcefc4; border-radius: 18px; padding: 14px 16px; min-width: 0; }
.tp-head > small { display: block; color: var(--brand); font-weight: 600; font-size: 13px; }
.tp-head b { font-size: 32px; letter-spacing: -.03em; color: var(--brand-deep); }
.tp-goals { display: grid; gap: 8px; margin-top: 8px; }
.tp-goal { background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: inset 0 0 0 1px #dcefc4; min-width: 0; }
.tp-gh { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.tp-gh b { font-weight: 600; } .tp-gh span { color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.tp-io { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.tp-io label { display: grid; gap: 2px; min-width: 0; } .tp-io small { color: var(--ink-3); font-size: 12px; }
.tp-io input { width: 100%; min-width: 0; }
.tp-status { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; margin-top: 10px; padding: 8px 12px; border-radius: 12px; background: #fff4e5; color: #8a5300; font-size: 13.5px; }
.tp-status.ok { background: #e6f5ec; color: #1d6b3f; }
.toplace .row.sub { padding: 4px 0; color: var(--ink-2); }
.alloc { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--ink-2); font-size: 14px; }
.alloc .money { width: 84px; padding: 6px 8px; }
@media (min-width: 760px) { .ib-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: stretch; } .ib-grid > .toplace { display: flex; flex-direction: column; } .ib-grid > .toplace .btns { margin-top: auto !important; padding-top: 10px; } .incgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.goalrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding-top: 12px; margin-top: 6px; border-top: 1px dashed var(--dash); }
.goalrow b { font-weight: 600; display: block; }
.goalrow small { color: var(--ink-3); font-size: 12.5px; }
@media (max-width: 420px) { .goalrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .goalrow > div { grid-column: 1 / -1; } .goalrow input { width: 100% !important; } }

/* Suivi locatif */
.rgroup { margin-bottom: 6px; }
.rg-h { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 8px 0 4px; }
.rline { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; text-align: left; padding: 8px 0; border-top: 1px dashed var(--dash); }
.rline:disabled { cursor: default; opacity: 1; color: inherit; }
.rline .name { flex: 1; min-width: 0; }
.rline .name .t { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.rline .name small { color: var(--ink-3); font-size: 12.5px; }
.rline .val { white-space: nowrap; font-weight: 600; }
.rental .row .cdot { margin-right: 0; }

/* Paie */
.paygrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.incf.pay { background: #f1f8e6; }
.incf small { color: var(--ink-3); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.netsal { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: baseline; background: #fff; box-shadow: inset 0 0 0 1px var(--line); border-radius: 14px; padding: 10px 14px; margin-top: 8px; }
.netsal span { font-weight: 600; }
.netsal b { font-size: 22px; letter-spacing: -.02em; }
.netsal > small { grid-column: 1 / -1; color: var(--ink-3); font-size: 12px; }

details.rgroup { border-top: 1px dashed var(--dash); }
details.rgroup > summary { list-style: none; cursor: pointer; padding: 11px 0; align-items: center; }
details.rgroup > summary::-webkit-details-marker { display: none; }
details.rgroup > summary span { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; }
details.rgroup > summary small { color: var(--ink-3); font-weight: 400; font-size: 12px; }
.chev { width: 22px; height: 22px; border-radius: 7px; background: var(--surface-2); display: inline-grid; place-items: center; flex: none; }
.chev::before { content: ""; width: 6px; height: 6px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(-45deg); transition: transform .15s; margin-left: -2px; }
details[open] > summary .chev::before { transform: rotate(45deg); margin: -3px 0 0; }
details.rgroup .rline:first-of-type { border-top: 1px dashed var(--dash); }
h2 + details.rgroup { border-top: 0; }
.tag.pro, .pill.pro { background: #efe7fb; color: #7a4bb8; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--brand); font-size: 12px; text-decoration: underline; }
.tp-from { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed #dde6d5; color: var(--ink-3); font-size: 13px; }
.tp-from b { color: var(--ink-2); font-weight: 600; white-space: nowrap; margin-left: 4px; }
.tp-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.tp-split div { background: #fff; border-radius: 12px; padding: 8px 10px; box-shadow: inset 0 0 0 1px #dcefc4; min-width: 0; }
.tp-split small { display: block; color: var(--ink-3); font-size: 12px; }
.tp-split b { font-size: 15px; font-weight: 600; white-space: nowrap; }

/* Comptes : rangée de cartes */
.acc-strip { display: grid; grid-auto-flow: column; grid-template-columns: minmax(232px, 1.4fr); grid-auto-columns: minmax(150px, 1fr); gap: 10px; overflow-x: auto; padding: 2px 2px 12px; margin: 0 -2px 2px; scrollbar-width: none; }
.acc-strip::-webkit-scrollbar { display: none; }
.acc-card { position: relative; overflow: hidden; border: 0; text-align: left; border-radius: 18px; padding: 12px 14px; background: #fff; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acc-name { font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-bal { font-size: 21px; letter-spacing: -.02em; }
.acc-bal .amt { font-weight: 600; }
.acc-sub { font-size: 11.5px; color: var(--ink-3); }
.acc-card.on { background: linear-gradient(150deg, #3d6b2a 0%, #2f5320 50%, #16290e 100%); box-shadow: 0 14px 26px -14px rgba(22, 41, 14, .6); }
.acc-card.on .acc-name, .acc-card.on .acc-sub { color: rgba(255, 255, 255, .8); }
.acc-card.on .acc-bal { color: #fff; }
.acc-card.on .acc-bal.neg { color: #ffd0cb; }
.acc-card.on::after { content: ""; position: absolute; right: -30px; top: -30px; width: 100px; height: 100px; border-radius: 50%; border: 18px solid rgba(255, 255, 255, .06); }
@media (min-width: 760px) { .acc-strip { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); overflow: visible; } }
.grp { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 14px 2px 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); text-transform: none; }
.grp b { font-weight: 600; color: var(--ink); white-space: nowrap; }
.grp + .row { border-top: 0; }
.rows > .grp:first-child { padding-top: 4px; }
details.cardfold > summary { list-style: none; cursor: pointer; }
details.cardfold > summary::-webkit-details-marker { display: none; }
details.cardfold:not([open]) > summary h2 { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
details.cardfold > summary h2 .chev { margin-right: 2px; }

.acc-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 12px; margin: 26px 2px 10px; padding-top: 14px; border-top: 1px solid var(--dash); }
.acc-strip + .acc-head { border-top: 0; margin-top: 6px; padding-top: 0; }
.acc-head h3 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.acc-head .num { font-size: 19px; font-weight: 600; white-space: nowrap; }
.acc-head small { grid-column: 1 / -1; color: var(--ink-3); font-size: 13px; }

.sumtiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.sumtile { background: var(--surface); border: 1px solid rgba(255,255,255,.9); box-shadow: var(--shadow); border-radius: 18px; padding: 14px 16px; min-width: 0; }
.sumtile > small { display: block; color: var(--ink-3); font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.sumtile b { display: block; font-size: 21px; letter-spacing: -.02em; white-space: nowrap; }
.sumtile b.neg { color: var(--red); }
.sumtile > span { display: block; color: var(--ink-3); font-size: 11.5px; margin-top: 2px; }
@media (max-width: 520px) { .sumtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sumtile { padding: 12px 14px; border-radius: 18px; }


.row.realbal { align-items: center; gap: 10px; }
.row.realbal .name small { display: block; color: var(--ink-3); font-size: 12px; font-weight: 400; }
.row.realbal input { max-width: 130px; }

.ms { padding: 12px 0; border-bottom: 1px dashed var(--dash); }
.ms:last-of-type { border-bottom: 0; }
.ms-h { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.ms-h b { font-size: 17px; font-weight: 600; }
.ms-d { color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.ms-bar { margin: 8px 0 6px; height: 7px; background: #ececea; border-radius: 99px; overflow: hidden; }
.ms-bar i { display: block; height: 100%; border-radius: 99px; }
.ms-f { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.msrow { flex-wrap: wrap; gap: 8px; }

/* ===== Thème vert / citron vert (inspiration tableau de bord clair) ===== */
body { background: var(--bg); }
.card, .kpi { backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; box-shadow: 0 1px 2px rgba(20, 24, 18, .04); }
.card h2 { font-weight: 500; border-bottom: 1px solid var(--dash); }
.appbar { background: rgba(240, 240, 238, .9); border-bottom: 0; }
.tabs { background: #fff; border: 0; box-shadow: 0 1px 2px rgba(20, 24, 18, .05); border-radius: 999px; }
.tabs button { border-radius: 999px; }
.tabs button.on { background: var(--lime); color: var(--brand-deep); font-weight: 600; box-shadow: none; }
.year-pill, .icon-btn.gear, .month-nav .icon-btn, .today-btn { box-shadow: 0 1px 2px rgba(20, 24, 18, .06); }
.month-nav .icon-btn, .icon-btn.gear { border-radius: 999px; }
.today-btn { border-radius: 999px; padding: 8px 14px; }
.logo-sq { background: linear-gradient(135deg, var(--lime) 0 50%, var(--brand) 50% 100%); }
.fab { border-radius: 50%; background: var(--lime); color: var(--brand-deep); box-shadow: 0 14px 28px -10px rgba(22, 41, 14, .45); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; border-radius: 999px; }
.pagehead h1 { font-weight: 500; }
.amt { font-weight: 500; }

/* Héros : grande carte citron vert */
.hero { color: var(--brand-deep); background: var(--lime); box-shadow: none; }
.hero::before { right: -40px; top: -60px; width: 220px; height: 220px; border: 0; border-radius: 0; background: rgba(255, 255, 255, .16); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.hero::after { display: none; }
.chipmark { width: auto; height: auto; background: none; box-shadow: none; }
.chipmark::before { display: none; }
.brandmark { font-size: 14px; font-weight: 500; background: var(--brand-deep); color: #fff; padding: 7px 14px; border-radius: 999px; letter-spacing: 0; }
.glass { background: transparent; border: 0; padding: 4px 2px 6px; }
.hero .label { opacity: .8; }
.hero .big { font-weight: 400; letter-spacing: -.035em; }
.hero .row3 div { background: rgba(255, 255, 255, .42); border-radius: 14px; }
.hero .row3 small { opacity: .75; }
.hero .row3 b { font-weight: 500; }
.hero .bar { background: rgba(22, 41, 14, .12); }
.hero .bar i { background: var(--brand-deep); }
.hero .neg, .hero .pos { color: inherit; }

/* Cartes de comptes */
.acc-card { box-shadow: 0 1px 2px rgba(20, 24, 18, .05); }
.acc-card.on { background: var(--lime); box-shadow: none; }
.acc-card.on .acc-name, .acc-card.on .acc-sub { color: rgba(22, 41, 14, .75); }
.acc-card.on .acc-bal { color: var(--brand-deep); }
.acc-card.on .acc-bal.neg { color: #a3271f; }
.acc-card.on::after { display: none; }
.toplace { background: var(--lime-soft); border: 0; }
.tp-head > small { color: var(--brand); }

/* Objectifs : anneaux */
.sav-rings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 6px; }
.sav-ring { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; padding: 6px 0 2px; }
.sav-ring .rw { position: relative; width: min(100%, 190px); aspect-ratio: 1; }
.sav-ring svg { width: 100%; height: 100%; display: block; }
.sav-ring .rc { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18%; }
.sav-ring .rc b { font-size: clamp(20px, 6vw, 28px); font-weight: 400; letter-spacing: -.03em; white-space: nowrap; }
.sav-ring .rc small { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.sav-ring .rc .pc { margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--brand); background: var(--lime-soft); padding: 2px 8px; border-radius: 999px; }
.sav-ring h3 { margin: 8px 0 2px; font-size: 16px; font-weight: 500; }
.sav-ring .nx { font-size: 13px; color: var(--ink-2); }
.sav-ring .ms-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; }
.sav-ring .ms-chip { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.sav-ring .ms-chip.done { background: var(--lime); color: var(--brand-deep); }
.sav-ring .ms-chip.cur { background: var(--brand-deep); color: #fff; }
.sav-tot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sav-tot .big { font-size: clamp(30px, 8vw, 40px); font-weight: 400; letter-spacing: -.035em; }

.sg-h { flex-wrap: wrap; row-gap: 2px; }
.sg-h .ms-d { white-space: normal; }
.sg-n { display: inline-flex; align-items: center; gap: 8px; }
.sg-n b { font-size: 16px; }

.hero .row3.r4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 620px) { .hero .row3.r4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Code à 6 chiffres */
.pin-dots { display: flex; justify-content: center; gap: 14px; margin: 6px 0 10px; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--surface-2); box-shadow: inset 0 0 0 1.5px #d6d8d2; transition: background .12s, transform .12s; }
.pin-dots i.on { background: var(--brand-deep); box-shadow: none; transform: scale(1.08); }
.pin-dots.shake { animation: pinshake .35s; }
@keyframes pinshake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.auth .err { text-align: center; min-height: 20px; color: var(--red); font-size: 13.5px; margin-bottom: 8px; }
.pinpad { display: grid; grid-template-columns: repeat(3, 72px); gap: 14px 22px; justify-content: center; margin-top: 4px; }
.pinpad button { width: 72px; height: 72px; border-radius: 50%; border: 0; background: var(--surface-2); font-size: 26px; font-weight: 400; color: var(--ink); }
.pinpad button:active { background: var(--lime); }
.pinpad button[data-pin="del"] { background: transparent; font-size: 22px; color: var(--ink-2); }

/* Logo de l'appli */
.logo-sq { background: var(--lime) url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAACQCAYAAADDc689AAA1AklEQVR42uW9e5QcV3Uu/n37VHWPnn7Ikh+yZkaysIwszcgebMzDtHOBAAnY1oh2DAk4kGBugBDyIzdhcckdT24SEi6Ll7kJMYRch3B5tCXLD2LAwbjthJc9WBrZ4weypZFky9bblqzRdNfZ+/dHVbdasqarZqZHlm56rVl44XZ1Ve1z9tn729/+NvHyfYg+sHAvpHwFFP3Qo7+w/N3tpwWHZLaaLlOwA8RCAnMJXghiPgx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mhgGDj9zeOgvw5hdZ0AsxJSPshyXgkH/b4iu/3IbvXrx6+YcP3tuwtFmNWR6ty+hNyV9R1pFTvTdyvnPS0n5haI0FOHGjPaeQ/g8h61q8evuHhb296LhmBx1YXO3iCvhQCQE9x0exI/QBFFqW1bZyILpgAKRQJGKdRkQ5Q5CvG6l3rS9uenhISwUli4MPR9Kr2twdhcIevqLe4CyE4UQ1a62ciAXGSpFS6y2BrBHbzKbu2/KIWESfPZ5PlUJ+0Bm40cveqjhtczvWZIgYVYNFR6crxeBZrxMFj6j0ZG5SQIBn35xVm2GtmP5EQ/5vU9Y3lzKnesSeVgRvRra7e9lWkvB/AbwS5eHeYN1jC86rvoqNbVMYJ7Ne6JKyx3SUZ6V5DQcQxAVcSrFl1D0Tup9qP4fTuENzzwOE5irFRDzeT2XE/606CTx1jXr6y/WKCK+HYCbPlNLYbbaZQQjoe5nrVEmK1cU15hsTXqAEf8a40mGoFZMUMz1MwCONGmH/CAr03POifHbhz+64xCv36ctKLTxYDx7vgqALA4rcuzp/WdnDmoVzQ4aLgAoW+gsRsmJ1hxHk0nmPEgozntpnZLpJPGrCdhu0wjIDYZw6/kgiPKWR7GGB0oPTU82NScmoCNP0nRmr3/wOkKg3gIiEUYwAAAABJRU5ErkJggg==") center / 58% auto no-repeat; box-shadow: none; }

.bk-last { font-size: 13.5px; padding: 9px 12px; border-radius: 12px; background: var(--lime-soft); color: var(--brand); }
.bk-last.old { background: var(--orange-bg); color: var(--orange); }

.inc-check { display: flex !important; align-items: center; justify-content: flex-start !important; gap: 10px; margin: 2px 0 14px; font-weight: 500; }
.inc-check span { display: flex; flex-direction: column; line-height: 1.25; }
.inc-check small { color: var(--ink-3); font-weight: 400; font-size: 12.5px; }
.inc-check input { width: 18px; height: 18px; accent-color: var(--brand); }
.is-income .exp-only { display: none; }
.cic.in-ic { display: grid; place-items: center; background: var(--lime-soft); color: var(--brand); font-weight: 700; font-size: 18px; }

.fsel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.fsel label { display: grid; gap: 4px; min-width: 0; }
.fsel small { color: var(--ink-3); font-size: 12px; }
.fsel select { width: 100%; min-width: 0; font: inherit; font-size: 14.5px; padding: 10px 12px; border-radius: 12px; border: 0; background: var(--surface-2); color: var(--ink); }

.pas-box { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.pas-box span { display: flex; flex-direction: column; font-weight: 500; }
.pas-box small { color: var(--ink-3); font-weight: 400; font-size: 12.5px; }
.pas-box b { font-weight: 600; white-space: nowrap; }

/* Mes revenus : grille régulière */
.ib-left { display: flex; flex-direction: column; min-width: 0; }
.ib-sub { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin: 2px 2px 8px; }
.ib-left .ib-sub:not(:first-child) { margin-top: 16px; }
.paygrid, .incgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 8px; }
.incf, .incf.pay { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.incf.pay { background: var(--lime-soft); }
.incf > span { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.incf .money { height: 42px; font-size: 17px; }
.incf small { display: block; min-height: 15px; }
.netsal { margin-top: 8px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; }
.incgrid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.incf > span, .incf small { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; }
.fsel { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.fsel { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fsel select { padding: 10px 8px; }
.incf .money.ro { display: flex; align-items: center; height: 42px; padding: 0 12px; border-radius: 12px; background: rgba(255,255,255,.55); font-weight: 600; font-size: 17px; color: var(--ink); }
