/* Carnet de pêche — thème marin, mobile d'abord */
:root {
  --bg: #eaf1f6;
  --surface: #ffffff;
  --surface-2: #f3f7fa;
  --ink: #0d2235;
  --muted: #5d7489;
  --line: #d8e3ec;
  --brand: #0b2f54;
  --brand-2: #134a7c;
  --accent: #0f9fb4;
  --accent-ink: #ffffff;
  --accent-soft: #d6f1f5;
  --gold: #e8a33a;
  --gold-soft: #fbedd5;
  --coral: #e5583f;
  --ok: #1d9a68;
  --shadow: 0 1px 2px rgba(13, 34, 53, .05), 0 6px 20px rgba(13, 34, 53, .07);
  --radius: 18px;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #061321;
    --surface: #0d2033;
    --surface-2: #132a40;
    --ink: #e6eff6;
    --muted: #8ea7bc;
    --line: #20394f;
    --accent: #27c0d4;
    --accent-ink: #04202a;
    --accent-soft: #0d3a48;
    --gold-soft: #3a2c12;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #061321; --surface: #0d2033; --surface-2: #132a40; --ink: #e6eff6; --muted: #8ea7bc;
  --line: #20394f; --accent: #27c0d4; --accent-ink: #04202a; --accent-soft: #0d3a48; --gold-soft: #3a2c12;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding-bottom: calc(var(--nav-h) + var(--safe-b) + 16px);
  min-height: 100vh;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h2, h3 { margin: 0; }

/* ---------- En-tête ---------- */
.top {
  background: radial-gradient(120% 140% at 0% 0%, #1b5d93 0%, var(--brand) 55%, #071f39 100%);
  color: #fff;
  padding-top: var(--safe-t);
  position: sticky; top: 0; z-index: 20;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
}
.top-inner { display: flex; align-items: center; gap: 12px; padding: 10px 16px; max-width: 1200px; margin: 0 auto; }
.logo { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.titles { flex: 1; min-width: 0; }
.titles h1 { font-size: 19px; margin: 0; letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.titles p { margin: 0; font-size: 13px; opacity: .8; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; border: 0; display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); color: #fff;
}
.icon-btn:active { background: rgba(255, 255, 255, .25); }
.icon-btn[hidden] { display: none; }
.sync-btn { position: relative; }
.sync-btn .dot {
  position: absolute; right: 7px; bottom: 7px; width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--brand); background: #8ea7bc;
}
.sync-btn[data-etat="ok"] .dot { background: #2fd38c; }
.sync-btn[data-etat="erreur"] .dot { background: var(--coral); }
.sync-btn[data-etat="encours"] svg { animation: pulse 1s ease-in-out infinite; }
.sync-btn[data-etat="encours"] .dot { background: var(--gold); }
@keyframes pulse { 50% { opacity: .4; } }

/* Onglets : barre du bas sur téléphone, dans l'en-tête sur grand écran */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(3, 1fr);
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(13, 34, 53, .08);
}
.tabs button {
  border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 12.5px; font-weight: 600; color: var(--muted);
}
.tabs svg { width: 25px; height: 25px; }
.tabs button.on { color: var(--accent); }
.tabs button.on svg { transform: translateY(-1px); }

@media (min-width: 900px) {
  body { padding-bottom: 32px; }
  .tabs {
    position: static; height: auto; padding: 0 16px 10px; background: none; border: 0; box-shadow: none;
    display: flex; gap: 6px; max-width: 1200px; margin: 0 auto;
  }
  .tabs button {
    flex-direction: row; gap: 8px; font-size: 15px; color: rgba(255, 255, 255, .75);
    padding: 8px 16px; border-radius: 999px;
  }
  .tabs svg { width: 19px; height: 19px; }
  .tabs button.on { background: rgba(255, 255, 255, .16); color: #fff; }
}

main { max-width: 1200px; margin: 0 auto; padding: 16px; }
.narrow { max-width: 760px; margin: 0 auto; }

/* ---------- Cartes ---------- */
.card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; margin-bottom: 14px; border: 1px solid var(--line);
}
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-h .ico {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 18px;
  background: var(--accent-soft);
}
.card-h h2 { font-size: 18px; flex: 1; }
.card-h .aside { font-size: 14px; color: var(--muted); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field:last-child { margin-bottom: 0; }
.field > span, .lbl { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.inp {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 13px;
  border: 1.5px solid var(--line); background: var(--surface-2); outline: none; font-size: 17px;
  -webkit-appearance: none; appearance: none;
}
.inp:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); }
textarea.inp { min-height: 90px; resize: vertical; }
input[type="date"].inp { min-width: 0; }

/* Puces de choix */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 42px; padding: 8px 15px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface-2); font-weight: 600; font-size: 15.5px; display: inline-flex; align-items: center; gap: 6px;
}
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip.ghost { background: none; border-style: dashed; color: var(--muted); }
.chip .x { opacity: .7; font-size: 13px; }
.chips.sm .chip { min-height: 36px; padding: 5px 12px; font-size: 14.5px; }

.inline-add { display: flex; gap: 8px; margin-top: 12px; }
.inline-add .inp { min-height: 46px; }

/* Carburant */
.fuel { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.reste {
  text-align: center; padding: 8px 14px; border-radius: 14px; background: var(--accent-soft); min-width: 104px;
}
.reste b { display: block; font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.reste small { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; }

/* Équipage : cobaturage */
.crew-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.crew-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; border-radius: 13px; background: var(--surface-2); }
.crew-row .nm { flex: 1; font-weight: 600; }
.crew-row .euro { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.crew-row .euro input { width: 78px; min-height: 40px; text-align: right; padding: 6px 10px; }
.tag { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--gold-soft); color: #9a6410; }
:root[data-theme="dark"] .tag { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag { color: var(--gold); } }

/* Captures */
.ptabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin: 0 -4px 12px; padding-left: 4px; scrollbar-width: none; }
.ptabs::-webkit-scrollbar { display: none; }
.ptab {
  flex: none; min-height: 46px; padding: 8px 16px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--surface-2); font-weight: 700; display: flex; align-items: center; gap: 8px;
}
.ptab.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.ptab .n { font-size: 13px; min-width: 24px; padding: 2px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); }
.ptab.on .n { background: var(--accent); color: var(--accent-ink); }

.species { display: grid; gap: 10px; }
@media (min-width: 700px) { .species { grid-template-columns: 1fr 1fr; } }
.sp {
  border: 1.5px solid var(--line); border-radius: 15px; padding: 12px; background: var(--surface-2);
  transition: border-color .15s, background .15s;
}
.sp.has { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); }
.sp-top { display: flex; align-items: center; gap: 10px; }
.sp-name { flex: 1; font-weight: 700; font-size: 17px; min-width: 0; }
.sp-name small { display: block; font-weight: 600; font-size: 12px; color: var(--muted); }
.stepper { display: flex; align-items: center; background: var(--surface); border: 1.5px solid var(--line); border-radius: 13px; overflow: hidden; }
.stepper button {
  width: 46px; height: 46px; border: 0; background: none; font-size: 24px; font-weight: 500; color: var(--accent);
  display: grid; place-items: center;
}
.stepper button:active { background: var(--accent-soft); }
.stepper input {
  width: 48px; height: 46px; border: 0; text-align: center; font-size: 20px; font-weight: 800;
  background: none; outline: none; font-variant-numeric: tabular-nums; -moz-appearance: textfield;
}
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.sp-mail { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.sp-mail .lbl { flex: 1; text-transform: none; letter-spacing: 0; font-size: 14.5px; color: var(--ink); }
.sp-mail .stepper button, .sp-mail .stepper input { height: 40px; }
.sp-mail .stepper button { width: 40px; font-size: 21px; }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; width: 100%; }
.size {
  border: 0; border-radius: 999px; padding: 5px 10px; font-weight: 700; font-size: 14px;
  background: var(--gold-soft); color: inherit;
}
.size small { opacity: .6; margin-left: 3px; }
.size-add { display: flex; gap: 6px; }
.size-add input { width: 86px; min-height: 38px; padding: 6px 10px; border-radius: 10px; font-size: 16px; }
.size-add button { min-height: 38px; border-radius: 10px; border: 0; padding: 0 12px; background: var(--brand-2); color: #fff; font-weight: 700; }

.savebar {
  position: sticky; bottom: calc(var(--nav-h) + var(--safe-b) + 10px); z-index: 10;
  display: flex; gap: 10px; margin-top: 6px;
}
@media (min-width: 900px) { .savebar { bottom: 16px; } }
.btn {
  min-height: 52px; padding: 0 20px; border-radius: 15px; border: 0; font-weight: 800; font-size: 17px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn.primary { flex: 1; background: linear-gradient(180deg, #17b2c7, #0d8fa3); color: #fff; box-shadow: 0 8px 22px rgba(15, 159, 180, .35); }
.btn.primary:active { transform: translateY(1px); }
.btn.soft { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); box-shadow: var(--shadow); }
.btn.danger { background: none; color: var(--coral); border: 1.5px solid currentColor; }
.btn.sm { min-height: 42px; font-size: 15px; padding: 0 14px; border-radius: 12px; }

.edit-banner {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; margin-bottom: 14px;
  background: var(--gold-soft); font-weight: 600;
}
.edit-banner span { flex: 1; }

/* ---------- Barre d'outils / filtres ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.toolbar .grow { flex: 1; min-width: 180px; }
.seg { display: flex; background: var(--surface); border: 1.5px solid var(--line); border-radius: 13px; padding: 3px; gap: 2px; overflow-x: auto; max-width: 100%; }
.seg button { border: 0; background: none; padding: 8px 13px; border-radius: 10px; font-weight: 700; font-size: 14.5px; color: var(--muted); white-space: nowrap; }
.seg button.on { background: var(--brand); color: #fff; }

/* ---------- Tableau ---------- */
.table-card { padding: 0; overflow: hidden; }
.table-wrap { overflow: auto; max-height: max(420px, calc(100vh - 250px)); -webkit-overflow-scrolling: touch; }
table.grid { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 15px; font-variant-numeric: tabular-nums; }
.grid th, .grid td { padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; text-align: right; }
.grid th { position: sticky; top: 0; z-index: 2; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .3px; }
.grid th.l, .grid td.l { text-align: left; }
.grid .stick { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line); }
.grid th.stick { z-index: 3; background: var(--brand); }
.grid tbody tr { cursor: pointer; }
.grid tbody tr:nth-child(even) td { background: var(--surface-2); }
.grid tbody tr:hover td { background: var(--accent-soft); }
.grid tfoot td { position: sticky; bottom: 0; background: var(--surface); font-weight: 800; border-top: 2px solid var(--brand); border-bottom: 0; }
.grid .num-badge { display: inline-grid; place-items: center; min-width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: #fff; font-weight: 800; font-size: 14px; }
.grid .muted { color: var(--muted); }
.grid .zero { color: var(--line); }
.grid .mx { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 6px; background: var(--gold-soft); font-size: 12px; font-weight: 800; }
.grid td.tot { font-weight: 800; color: var(--accent); }
.crew-names { max-width: 220px; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.date-cell b { display: block; }
.date-cell small { color: var(--muted); }

.legend { font-size: 13px; color: var(--muted); padding: 10px 14px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* Cartes de sorties (vue téléphone) */
.cards { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1050px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.scard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; cursor: pointer; text-align: left; width: 100%; }
.scard:active { transform: scale(.995); }
.scard-h { display: flex; align-items: center; gap: 12px; }
.scard-n { width: 44px; height: 44px; border-radius: 13px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px; flex: none; }
.scard-t { flex: 1; min-width: 0; }
.scard-t b { display: block; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scard-t small { color: var(--muted); font-size: 14px; }
.scard-tot { text-align: right; }
.scard-tot b { font-size: 22px; color: var(--accent); display: block; line-height: 1; }
.scard-tot small { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.scard-sp { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pill { font-size: 13.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.pill.hi { background: var(--accent-soft); border-color: transparent; }
.scard-f { display: flex; gap: 14px; margin-top: 10px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }

/* ---------- Bilan ---------- */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 14px; }
@media (min-width: 700px) { .kpis { grid-template-columns: repeat(5, 1fr); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; }
.kpi small { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.kpi b { display: block; font-size: 30px; line-height: 1.15; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi b i { font-style: normal; font-size: 16px; color: var(--muted); font-weight: 700; margin-left: 2px; }
.kpi .note { font-size: 12px; color: var(--muted); }
.kpi.hero { background: linear-gradient(140deg, #1673a8, var(--brand)); color: #fff; border: 0; }
.kpi.hero small, .kpi.hero b i, .kpi.hero .note { color: rgba(255, 255, 255, .78); }

.cols2 { display: grid; gap: 14px; }
@media (min-width: 960px) { .cols2 { grid-template-columns: 1.15fr .85fr; align-items: start; } }

.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 112px 1fr auto; gap: 10px; align-items: center; }
.bar-row .nm { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 26px; border-radius: 8px; background: var(--surface-2); overflow: hidden; position: relative; }
.bar-fill { height: 100%; border-radius: 8px; background: linear-gradient(90deg, #12a7bb, #1b6fa8); min-width: 4px; }
.bar-fill.m { position: absolute; left: 0; top: 0; background: var(--gold); opacity: .95; }
.bar-row .v { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 72px; text-align: right; }
.bar-row .v small { color: var(--gold); font-weight: 800; }
.bar-row .sz { grid-column: 2 / 4; font-size: 13px; color: var(--muted); margin-top: -6px; }

.records { display: grid; gap: 10px; }
.rec { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.rec .medal { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); font-size: 22px; flex: none; }
.rec b { font-size: 22px; }
.rec .who { flex: 1; min-width: 0; }
.rec .who small { display: block; color: var(--muted); font-size: 13.5px; }

.people { display: grid; gap: 10px; }
.person { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 0; width: 100%; text-align: left; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; }
.person .who { flex: 1; min-width: 0; }
.person .who b { display: block; }
.person .who small { color: var(--muted); font-size: 13.5px; }
.person .big { font-size: 22px; font-weight: 800; color: var(--accent); }

/* ---------- Fenêtre (fiche / réglages) ---------- */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(4, 16, 28, .55); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.modal[hidden] { display: none; }
.sheet {
  background: var(--bg); width: 100%; max-width: 820px; max-height: 92vh; overflow: auto;
  border-radius: 22px 22px 0 0; padding: 0 16px calc(20px + var(--safe-b)); animation: up .2s ease-out;
}
@media (min-width: 900px) { .modal { align-items: center; } .sheet { border-radius: 22px; max-height: 88vh; } }
.sheet-h { position: sticky; top: 0; z-index: 2; background: var(--bg); display: flex; align-items: center; gap: 10px; padding: 16px 0 12px; }
.sheet-h h2 { flex: 1; font-size: 21px; }
.close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface); box-shadow: var(--shadow); font-size: 20px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.fact small { display: block; font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.fact b { font-size: 17px; }
.obs { background: var(--surface); border-left: 4px solid var(--accent); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.actions .btn { flex: 1; }
.set-sp { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.set-sp span { flex: 1; font-weight: 600; }
.switch { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.switch input { width: 20px; height: 20px; accent-color: var(--accent); }
.help { font-size: 14.5px; color: var(--muted); }
.help b { color: var(--ink); }
.install-steps { display: grid; gap: 10px; }
.install-steps div { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; font-size: 14.5px; }

.empty { text-align: center; color: var(--muted); padding: 40px 16px; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 20px); transform: translateX(-50%);
  z-index: 60; background: var(--brand); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3); max-width: calc(100% - 32px); animation: up .2s ease-out;
}
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
.toast { animation-name: toastup; }
@keyframes toastup { from { transform: translate(-50%, 20px); opacity: 0; } }

@media (max-width: 420px) {
  main { padding: 12px; }
  .card { padding: 15px; }
  .fuel { grid-template-columns: 1fr 1fr; }
  .reste { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: center; gap: 10px; }
  .bar-row { grid-template-columns: 92px 1fr auto; }
  .kpi b { font-size: 26px; }
}
