/* AL, dans l'univers Isnelia : crème, encre, orange, titres très gras, volumes « pâte à modeler ». */

@font-face { font-family: "Instrument"; src: url("/fonts/instrument.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Cabinet"; src: url("/fonts/cabinet-extrabold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Cabinet"; src: url("/fonts/cabinet-black.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --cream: #faf6f0;
  --sand: #f1e8dc;
  --clay: #e9ddcc;
  --ink: #1a1714;
  --taupe: #5e5850;
  --line: #e6dccd;
  --orange: #ee6a2c;
  --orange-deep: #c9531c;
  --ok: #4f8a5b;
  --tight: #ee6a2c;
  --short: #b23a2b;
  --ok-wash: #e3eddc;
  --tight-wash: #fbe3d4;
  --short-wash: #f5d9d3;
  --paper: #fffdf9;
  --shadow-clay: inset 6px 6px 12px rgba(255, 255, 255, 0.75), inset -6px -8px 14px rgba(120, 86, 48, 0.12), 0 18px 34px -16px rgba(120, 86, 48, 0.45);
  --sans: "Instrument", -apple-system, "Segoe UI", sans-serif;
  --display: "Cabinet", "Instrument", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --cream: #1a1714; --sand: #24201c; --clay: #2e2924; --ink: #faf6f0; --taupe: #b8ad9f; --line: #3a332c; --paper: #221e1a;
    --ok: #7fbf87; --short: #e0705e; --ok-wash: #253226; --tight-wash: #3a2618; --short-wash: #3a201b;
    --shadow-clay: inset 5px 5px 10px rgba(255, 255, 255, 0.05), inset -6px -8px 14px rgba(0, 0, 0, 0.35), 0 18px 34px -16px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--cream); color: var(--ink); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.quiet { color: var(--taupe); }
.ok { color: var(--ok); } .tight { color: var(--orange-deep); } .short { color: var(--short); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 700px) { .wrap { padding: 0 18px; } }
.display { font-family: var(--display); font-weight: 900; letter-spacing: -0.045em; line-height: 0.95; }
.accent { color: var(--orange); }

/* ---------- En-tête et navigation ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--cream) 88%, transparent); backdrop-filter: blur(10px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 16px; padding-bottom: 16px; }
.wordmark { font-family: var(--display); font-weight: 900; font-size: 30px; letter-spacing: -0.05em; line-height: 1; text-decoration: none; color: var(--ink); }
.wordmark i { font-style: normal; color: var(--orange); }
.tabs { display: flex; gap: 6px; background: var(--sand); padding: 5px; border-radius: 999px; }
.tabs a { text-decoration: none; color: var(--taupe); font-weight: 600; font-size: 14.5px; padding: 8px 16px; border-radius: 999px; transition: background 0.2s, color 0.2s; }
.tabs a.on { background: var(--ink); color: var(--cream); }
.me { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--taupe); }
.textbtn { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.badge { border: 0; background: var(--orange); color: #fff; font-weight: 700; font-size: 13px; border-radius: 999px; padding: 6px 13px; cursor: pointer; white-space: nowrap; }

/* Barre d'onglets en bas sur téléphone */
.bottomnav { display: none; }
@media (max-width: 760px) {
  .tabs { display: none; }
  #me { display: none; }
  .bottomnav { display: flex; position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); background: var(--ink); border-radius: 22px; padding: 6px; justify-content: space-around; box-shadow: 0 14px 30px -10px rgba(26, 23, 20, 0.5); }
  .bottomnav a { flex: 1; text-align: center; text-decoration: none; color: color-mix(in srgb, var(--cream) 70%, transparent); font-size: 12px; font-weight: 600; padding: 8px 4px; border-radius: 16px; }
  .bottomnav a.on { background: var(--orange); color: #fff; }
  body { padding-bottom: 90px; }
}

/* ---------- Boutons ---------- */
.btn { border: 0; background: var(--ink); color: var(--cream); border-radius: 999px; padding: 12px 22px; font-weight: 700; font-size: 15px; cursor: pointer; transition: transform 0.15s; }
.btn:hover { transform: translateY(-1px); }
.btn.orange { background: var(--orange); color: #fff; }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.mini { padding: 6px 14px; font-size: 13.5px; font-weight: 600; }
.btn.soft { background: var(--sand); color: var(--ink); }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.fab { display: none; }
@media (max-width: 760px) { .fab { display: block; position: fixed; right: 20px; bottom: calc(86px + env(safe-area-inset-bottom)); width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--orange); color: #fff; font-size: 30px; line-height: 1; box-shadow: 0 12px 24px -8px rgba(238, 106, 44, 0.6); z-index: 25; } }

/* ---------- Volumes « pâte à modeler » ---------- */
.clay { background: var(--sand); border-radius: 30px; box-shadow: var(--shadow-clay); }
.pill { display: inline-flex; align-items: center; gap: 10px; background: var(--sand); border-radius: 999px; padding: 8px 16px; font-size: 14.5px; color: var(--taupe); }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

/* ---------- Accueil ---------- */
.hero { padding: 36px 0 10px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 36px; align-items: end; }
.hero h1 { margin: 18px 0 14px; font-size: clamp(46px, 7.4vw, 96px); }
.hero .lead { font-size: 19px; color: var(--taupe); max-width: 36ch; margin: 0; }
.cash { padding: 26px 28px; }
.cash .label { font-size: 14px; color: var(--taupe); }
.cash .amount { font-family: var(--display); font-weight: 900; font-size: clamp(40px, 5vw, 60px); letter-spacing: -0.04em; line-height: 1; margin: 6px 0 4px; }
.cash .asof { font-size: 13.5px; color: var(--taupe); }
.cash .row { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 20px; padding-top: 22px; } }

.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 30px 0 10px; }
.kpi { padding: 22px 24px; }
.kpi .v { font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -0.03em; line-height: 1.05; }
.kpi .k { font-size: 14.5px; color: var(--taupe); margin-top: 4px; }
@media (max-width: 760px) { .kpis { grid-template-columns: 1fr; gap: 12px; } .kpi { padding: 18px 20px; } }

.section { margin-top: 56px; }
.section > h2 { font-family: var(--display); font-weight: 900; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.04em; line-height: 1; margin: 0 0 8px; }
.section > p.sub { margin: 0 0 20px; color: var(--taupe); max-width: 60ch; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; }
@media (max-width: 900px) { .grid2 { grid-template-columns: 1fr; } }
.card { padding: 24px; }
.card h3 { margin: 0 0 14px; font-size: 17px; font-weight: 700; }

/* Graphe des 12 mois */
.chart { width: 100%; display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .zero { stroke: var(--taupe); stroke-width: 1; stroke-dasharray: 3 4; }
.chart .line { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart .area { opacity: 0.9; }
.chart text { fill: var(--taupe); font-size: 12px; font-family: var(--sans); }
.chart .dot { stroke: var(--paper); stroke-width: 3; }
.chart .dot.ok { fill: var(--ok); } .chart .dot.tight { fill: var(--orange); } .chart .dot.short { fill: var(--short); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--taupe); margin-top: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.alert { margin: 16px 0 0; padding: 14px 18px; border-radius: 18px; font-size: 15.5px; }
.alert.ok { background: var(--ok-wash); } .alert.tight { background: var(--tight-wash); } .alert.short { background: var(--short-wash); }
.alert b { font-weight: 700; }

/* Anneau du mois */
.donut { display: grid; grid-template-columns: 170px 1fr; gap: 18px; align-items: center; }
.donut svg { width: 170px; height: 170px; }
.donut .center { font-family: var(--display); font-weight: 900; font-size: 26px; letter-spacing: -0.03em; }
.donut ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.donut li { display: flex; justify-content: space-between; gap: 10px; }
.donut li span:first-child::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-right: 8px; }
@media (max-width: 420px) { .donut { grid-template-columns: 1fr; justify-items: center; } }
.balanceline { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.balanceline:last-child { border-bottom: 0; font-weight: 700; }

/* Échéances */
.due { display: grid; grid-template-columns: 56px 1fr auto auto; gap: 4px 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.due:last-child { border-bottom: 0; }
.due .day { text-align: center; line-height: 1; }
.due .day b { display: block; font-family: var(--display); font-weight: 900; font-size: 28px; letter-spacing: -0.03em; }
.due .day small { font-size: 12px; color: var(--taupe); }
.due .what b { font-weight: 700; }
.due .what small { display: block; font-size: 13px; color: var(--taupe); }
.due .amt { font-weight: 700; text-align: right; }
.due .amt.in { color: var(--ok); }
.due.now { background: var(--tight-wash); border-radius: 16px; padding-left: 10px; padding-right: 10px; border-bottom-color: transparent; margin-bottom: 6px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; margin-right: 6px; background: var(--clay); color: var(--taupe); }
.tag.now { background: var(--orange); color: #fff; }
.tag.late { background: var(--short); color: #fff; }
@media (max-width: 520px) { .due { grid-template-columns: 46px 1fr auto; } .due .act { grid-column: 2 / -1; } }
.empty { color: var(--taupe); font-size: 15px; max-width: 48ch; }

/* ---------- Pockets ---------- */
.pockets { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.pocket { padding: 22px 22px 20px; display: grid; gap: 10px; position: relative; overflow: hidden; }
.pocket .name { font-weight: 700; font-size: 16.5px; line-height: 1.25; }
.pocket .share { font-size: 13.5px; color: var(--taupe); }
.pocket .jar { height: 92px; border-radius: 22px; background: var(--cream); position: relative; overflow: hidden; box-shadow: inset 4px 6px 12px rgba(120, 86, 48, 0.18), inset -3px -3px 8px rgba(255, 255, 255, 0.6); }
.pocket .fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(180deg, #f6935e, var(--orange)); border-radius: 18px 18px 22px 22px; transition: height 900ms cubic-bezier(.2, .8, .2, 1); }
.pocket .fill.ok { background: linear-gradient(180deg, #8cc095, var(--ok)); }
.pocket .fill.short { background: linear-gradient(180deg, #e98b7e, var(--short)); }
.pocket .jar b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 26px; letter-spacing: -0.03em; color: var(--ink); mix-blend-mode: multiply; }
@media (prefers-color-scheme: dark) { .pocket .jar b { mix-blend-mode: normal; } }
.pocket .next { font-size: 13.5px; color: var(--taupe); min-height: 2.6em; }
.pocket .next strong { color: var(--ink); }
.pocket.paused { opacity: 0.55; }
.groupt { font-weight: 700; font-size: 18px; margin: 34px 0 14px; }

/* ---------- Toutes les lignes ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 4px 0 18px; }
.choice { display: inline-flex; gap: 4px; background: var(--sand); padding: 4px; border-radius: 999px; flex-wrap: wrap; }
.choice button { border: 0; background: transparent; border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--taupe); cursor: pointer; }
.choice button.on { background: var(--ink); color: var(--cream); }
.filters .btn { margin-left: auto; }
.ledger { padding: 8px 22px; }
.lrow { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1.6fr) 120px 290px; gap: 6px 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.lrow:last-child { border-bottom: 0; }
.lrow.headrow { font-size: 13px; font-weight: 700; color: var(--taupe); }
.lrow .lbl b { font-weight: 700; }
.lrow .lbl small { display: block; font-size: 12.5px; color: var(--taupe); }
.lrow .amt { font-weight: 700; text-align: right; }
.lrow .amt.in { color: var(--ok); }
.lrow .acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.lrow.paused { opacity: 0.55; }
.status { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--clay); color: var(--taupe); margin-right: 6px; }
.status.real { background: var(--ok-wash); color: var(--ok); }
.status.paused { background: var(--tight-wash); color: var(--orange-deep); }
@media (max-width: 760px) {
  .lrow { grid-template-columns: 1fr auto; }
  .lrow.headrow { display: none; }
  .lrow .cat { display: none; }
  .lrow .when { grid-column: 1; font-size: 13.5px; color: var(--taupe); }
  .lrow .amt { grid-row: 1; grid-column: 2; }
  .lrow .acts { grid-column: 1 / -1; justify-content: flex-start; }
  .filters .btn { margin-left: 0; }
  .ledger { padding: 4px 16px; }
}

/* Guide de démarrage */
.start { padding: 24px; margin-top: 30px; }
.start ol { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 14px; }
.start li span { display: block; margin-bottom: 6px; }
.start li.done span { color: var(--taupe); text-decoration: line-through; }
.start li.done button { display: none; }

/* Tickets à lire */
.tickets { display: flex; flex-wrap: wrap; gap: 12px; }
.ticket { width: 96px; text-align: center; font-size: 12px; color: var(--taupe); background: none; border: 0; padding: 0; cursor: pointer; }
.ticket img { width: 96px; height: 118px; object-fit: cover; border-radius: 14px; display: block; margin-bottom: 4px; box-shadow: var(--shadow-clay); }

/* ---------- Fenêtres ---------- */
dialog { border: 0; border-radius: 28px; padding: 0; width: min(560px, calc(100vw - 24px)); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(26, 23, 20, 0.35); }
dialog::backdrop { background: rgba(26, 23, 20, 0.45); backdrop-filter: blur(3px); }
@media (max-width: 600px) { dialog { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 28px 28px 0 0; max-height: 92vh; } }
.sheet { padding: 26px; display: grid; gap: 14px; }
.sheet h4 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 30px; letter-spacing: -0.04em; line-height: 1; }
.sheet p { margin: 0; font-size: 14.5px; color: var(--taupe); }
.modehint { margin: -4px 0 0; font-size: 13.5px; color: var(--taupe); }
.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 700; }
.field input, .field select { width: 100%; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--sand); box-shadow: inset 2px 3px 6px rgba(120, 86, 48, 0.12); }
.amount input { font-family: var(--display); font-weight: 900; font-size: 34px; letter-spacing: -0.03em; padding: 10px 14px; }
.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.cats { display: flex; flex-wrap: wrap; gap: 6px; }
.cats button { border: 0; background: var(--sand); border-radius: 999px; padding: 7px 13px; font-size: 13.5px; font-weight: 600; cursor: pointer; color: var(--taupe); }
.cats button.on { background: var(--orange); color: #fff; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--orange); }
.photo { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--sand); }
.photo img { width: 48px; height: 58px; object-fit: cover; border-radius: 8px; }
.photo span { font-size: 13.5px; color: var(--taupe); }
.conv { font-size: 13.5px; color: var(--taupe); }
.err { color: var(--short); font-size: 14px; min-height: 1em; }
.end { display: flex; gap: 10px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.end .right { display: flex; gap: 10px; margin-left: auto; }

/* ---------- Connexion ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth .box { width: min(440px, 100%); display: grid; gap: 18px; }
.auth img { width: 64px; height: 64px; border-radius: 16px; }
.auth h1 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 48px; letter-spacing: -0.045em; line-height: 0.95; }
.auth p { margin: 0; color: var(--taupe); }
.auth .btn { padding: 15px 20px; font-size: 16px; }

/* ---------- Mouvement ---------- */
.view { animation: viewin 420ms cubic-bezier(.2, .8, .2, 1); }
@keyframes viewin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.chart .line.draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.4s cubic-bezier(.3, .7, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chart .area.rise { transform-origin: bottom; animation: rise 1s ease-out both; }
@keyframes rise { from { opacity: 0; } to { opacity: 0.9; } }
@media (prefers-reduced-motion: reduce) {
  .view, .chart .line.draw, .chart .area.rise { animation: none; stroke-dashoffset: 0; }
  .pocket .fill { transition: none; }
}

/* ---------- Compléments : pages, frise, analyste, mois en revue ---------- */
.gap { margin-top: 22px; }
.hero .lead.ok { color: var(--ok); } .hero .lead.tight { color: var(--orange-deep); } .hero .lead.short { color: var(--short); }
.hero .lead b { color: var(--ink); font-weight: 700; }
.pagehead { padding: 36px 0 6px; max-width: 820px; }
.pagehead h1 { margin: 18px 0 14px; font-size: clamp(40px, 6vw, 78px); }
.pagehead .lead { font-size: 18px; color: var(--taupe); margin: 0; max-width: 62ch; }
.grid2.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid2.even { grid-template-columns: 1fr; } }
.auth .wordmark { font-size: 44px; }
.auth .accent { color: var(--orange); }

/* La frise : un ruban de pâte, un segment par mois */
.runway { margin-bottom: 20px; }
.strip { position: relative; display: flex; gap: 4px; height: 46px; padding: 5px; border-radius: 999px; background: var(--cream); box-shadow: inset 3px 4px 9px rgba(120, 86, 48, 0.18), inset -2px -2px 6px rgba(255, 255, 255, 0.6); }
.seg { border-radius: 999px; min-width: 6px; transform-origin: left; animation: grow 700ms cubic-bezier(.2, .8, .2, 1) both; box-shadow: inset 2px 3px 5px rgba(255, 255, 255, 0.45), inset -2px -3px 5px rgba(0, 0, 0, 0.12); }
.seg.ok { background: linear-gradient(180deg, #8cc095, var(--ok)); }
.seg.tight { background: linear-gradient(180deg, #f6935e, var(--orange)); }
.seg.short { background: linear-gradient(180deg, #e98b7e, var(--short)); }
@keyframes grow { from { transform: scaleX(0); opacity: 0; } to { transform: none; opacity: 1; } }
.strip.idle .seg { background: var(--clay); }
.mark { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--ink); border-radius: 2px; }
.mark span { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12px; font-weight: 700; background: var(--ink); color: var(--cream); padding: 2px 8px; border-radius: 999px; }
.mark.today { background: transparent; }
.mark.today span { background: var(--orange); left: 0; transform: none; }
.mark.today.crowded span { display: none; }
.runway { padding-top: 26px; }
.months { display: flex; gap: 4px; padding: 8px 5px 0; }
.months > div { min-width: 0; text-align: center; overflow: hidden; }
.months .m { font-size: 12px; color: var(--taupe); text-transform: capitalize; }
.months .v { font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.months.idle .v { visibility: hidden; }
@media (max-width: 600px) { .months { display: none; } .runway { margin-bottom: 8px; } }

/* L'analyste */
.notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.note { padding: 20px 22px; display: grid; gap: 6px; align-content: start; }
.note b { font-size: 16.5px; font-weight: 700; line-height: 1.3; display: flex; gap: 10px; align-items: baseline; }
.note b::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); transform: translateY(-1px); }
.note.tight b::before { background: var(--orange); }
.note.short b::before { background: var(--short); }
.note.short { background: var(--short-wash); }
.note.tight { background: var(--tight-wash); }
.note p { margin: 0; font-size: 15px; color: var(--taupe); }

/* Le mois en revue */
.hlhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.hlhead h3 { margin: 0; }
.hltotal { font-family: var(--display); font-weight: 900; font-size: 34px; letter-spacing: -0.03em; line-height: 1.05; }
.hlsub { font-size: 13.5px; color: var(--taupe); margin: 0 0 16px; }
.hlrow { display: grid; gap: 6px; padding: 9px 0; }
.hlrow .line { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.hlrow .line span:first-child { font-weight: 600; }
.hlbar { position: relative; height: 12px; border-radius: 999px; background: var(--cream); overflow: hidden; box-shadow: inset 1px 2px 4px rgba(120, 86, 48, 0.18); }
.hlbar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; background: var(--ink); transition: width 900ms cubic-bezier(.2, .8, .2, 1); }
.hlbar i.over { background: var(--orange); }
.hlbar i.way { background: var(--short); }
.hlbar u { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--taupe); text-decoration: none; }

/* Lignes compactes (dernières opérations) */
.row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 11px 0; cursor: pointer; }
.row:last-child { border-bottom: 0; }
.row b { font-weight: 700; }
.row small { grid-column: 1 / -1; font-size: 13px; color: var(--taupe); }
.row .amt { font-weight: 700; }
.row .amt.in { color: var(--ok); }

/* Poches : actions */
.pocket .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.pocket .kind { font-size: 12px; font-weight: 700; color: var(--taupe); }
.pocket.done .jar b { color: var(--ok); }

/* Et si… */
.whatif { display: grid; gap: 14px; align-content: start; }
.whatif h3 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 30px; letter-spacing: -0.04em; }
.whatif p { margin: 0; }
.whatif-out { font-size: 15.5px; }
.whatif-out:empty { display: none; }
.whatif-out p + p { margin-top: 8px; }
.chart .s1 { stop-color: var(--orange); stop-opacity: 0.32; }
.chart .s2 { stop-color: var(--orange); stop-opacity: 0; }
.chart .val { fill: var(--ink); font-weight: 700; font-size: 12.5px; }
.chart .val.short { fill: var(--short); }

.clay .btn.soft { background: var(--cream); }
