:root {
  --bg: #f2f6f5; --card: #ffffff; --ink: #15292b; --ink-2: #3d5456; --muted: #6a7f80; --line: #dde8e6;
  --brand: #1d5458; --brand-2: #2a7c80; --on-brand: #ffffff; --brand-soft: #e3f1f0; --volt: #ffc83d; --volt-ink: #3a2c00; --volt-soft: #fff4d2;
  --ok: #138a52; --ok-soft: #dff5ea; --warn: #b77a00; --warn-soft: #fff1cf; --bad: #c8382c; --bad-soft: #fde6e3;
  --odo: #13201f; --odo-ink: #f4fbfa; --bar: #2a7c80;
  --shadow: 0 1px 2px rgba(16, 40, 42, .06), 0 6px 20px rgba(16, 40, 42, .07);
  --r: 20px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1617; --card: #142224; --ink: #e9f3f2; --ink-2: #c3d4d3; --muted: #8fa6a6; --line: #24393b;
    --brand: #5cc2bd; --brand-2: #7fd3ce; --on-brand: #062224; --brand-soft: #173436; --volt: #ffc83d; --volt-ink: #2c2100; --volt-soft: #3a3010;
    --ok: #4cd08f; --ok-soft: #133426; --warn: #f2b84b; --warn-soft: #3a2d0f; --bad: #ff7d70; --bad-soft: #3d1a17;
    --odo: #050b0b; --odo-ink: #f4fbfa; --bar: #5cc2bd;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1617; --card: #142224; --ink: #e9f3f2; --ink-2: #c3d4d3; --muted: #8fa6a6; --line: #24393b;
  --brand: #5cc2bd; --brand-2: #7fd3ce; --on-brand: #062224; --brand-soft: #173436; --volt: #ffc83d; --volt-ink: #2c2100; --volt-soft: #3a3010;
  --ok: #4cd08f; --ok-soft: #133426; --warn: #f2b84b; --warn-soft: #3a2d0f; --bad: #ff7d70; --bad-soft: #3d1a17;
  --odo: #050b0b; --odo-ink: #f4fbfa; --bar: #5cc2bd;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.45; min-height: 100dvh;
}
button, input, select { font: inherit; color: inherit; }
a { color: var(--brand-2); }
h1, h2, h3 { margin: 0; line-height: 1.2; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
[hidden] { display: none !important; }

/* ---------- Barre du haut ---------- */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.top .logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.05rem; text-decoration: none; color: var(--ink); }
.top .logo img { width: 30px; height: 30px; }
.top .spacer { flex: 1; }
.iconbtn {
  border: 0; background: var(--card); width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.15rem; cursor: pointer; box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
}
.iconbtn[disabled] { opacity: .35; cursor: default; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem;
  background: var(--volt-soft); border: 2px solid var(--volt); cursor: pointer; padding: 0;
}
.avatar.sm { width: 26px; height: 26px; font-size: .9rem; border-width: 1.5px; display: inline-grid; vertical-align: middle; cursor: default; }
.menu {
  position: absolute; right: 16px; top: calc(58px + env(safe-area-inset-top)); background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow); padding: 6px; min-width: 200px; animation: pop .18s ease-out;
}
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; border: 0; background: none; cursor: pointer; text-decoration: none; color: var(--ink); }
.menu a:hover, .menu button:hover { background: var(--brand-soft); }
.menu .who { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }

main { max-width: 760px; margin: 0 auto; padding: 18px 16px calc(90px + env(safe-area-inset-bottom)); }

/* ---------- Éléments de base ---------- */
.card { background: var(--card); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); margin-bottom: 14px; }
.card h2 { font-size: 1.1rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none;
  background: var(--brand); color: var(--on-brand); font-weight: 700; padding: 12px 18px; border-radius: 14px; min-height: 46px;
  transition: transform .12s, filter .12s, box-shadow .12s; -webkit-tap-highlight-color: transparent;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.96); }
.btn.volt { background: var(--volt); color: var(--volt-ink); box-shadow: 0 4px 0 #d9a21b; }
.btn.volt:active { box-shadow: 0 1px 0 #d9a21b; transform: translateY(3px); }
.btn.ghost { background: var(--brand-soft); color: var(--brand); }
.btn.danger { background: var(--bad-soft); color: var(--bad); }
.btn.ok { background: var(--ok); color: #fff; }
.btn.sm { min-height: 38px; padding: 8px 12px; border-radius: 12px; font-size: .92rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; color: var(--muted); font-weight: 600; }
.input {
  width: 100%; border: 2px solid var(--line); background: var(--bg); border-radius: 14px; padding: 11px 13px; font-size: 1.05rem;
  color: var(--ink); font-weight: 600; min-height: 48px;
}
.input:focus { outline: none; border-color: var(--brand-2); background: var(--card); }
.input.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: .8rem; font-weight: 700; background: var(--brand-soft); color: var(--brand); white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.todo { background: var(--bg); color: var(--muted); border: 1.5px dashed var(--line); }
.banner { border-radius: 16px; padding: 12px 14px; background: var(--volt-soft); color: var(--ink); font-size: .92rem; margin-bottom: 14px; display: flex; gap: 10px; align-items: flex-start; }
.empty { text-align: center; padding: 34px 18px; }
.empty .big { font-size: 3rem; display: block; margin-bottom: 8px; animation: float 3s ease-in-out infinite; }

/* ---------- Connexion ---------- */
.login {
  min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(1200px 600px at 20% -10%, #2a7c80 0%, transparent 60%), radial-gradient(900px 500px at 110% 110%, #ffc83d55 0%, transparent 60%), #10393c;
  color: #fff;
}
.login .box { width: 100%; max-width: 380px; text-align: center; }
.login .bolt { width: 110px; height: 110px; margin: 0 auto 18px; animation: float 3s ease-in-out infinite; filter: drop-shadow(0 10px 30px rgba(255, 200, 61, .45)); }
.login h1 { font-size: 2rem; font-weight: 900; }
.login p { opacity: .8; margin: 6px 0 22px; }
.login .input { text-align: center; font-size: 1.35rem; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff; }
.login .input::placeholder { color: rgba(255, 255, 255, .45); }
.login .input:focus { background: rgba(255, 255, 255, .16); border-color: var(--volt); }
.login .btn { margin-top: 12px; }
.login .err { color: #ffd2cc; min-height: 1.4em; margin-top: 10px; font-weight: 600; }
.shake { animation: shake .4s; }

/* ---------- Accueil ---------- */
.hello h1 { font-size: 1.6rem; font-weight: 900; }
.hello p { margin: 4px 0 16px; color: var(--muted); }
.monthnav { display: inline-flex; align-items: center; gap: 4px; background: var(--card); border-radius: 99px; padding: 4px; box-shadow: var(--shadow); margin-bottom: 16px; }
.monthnav button { border: 0; background: none; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; color: var(--ink); }
.monthnav button:hover { background: var(--brand-soft); }
.monthnav span { min-width: 140px; text-align: center; font-weight: 800; text-transform: capitalize; }
.rescards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.rescard {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; background: var(--card); border-radius: var(--r);
  padding: 16px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .15s; animation: rise .35s backwards;
}
.rescard:hover { transform: translateY(-2px); }
.rescard:active { transform: scale(.98); }
.rescard h3 { font-size: 1.1rem; font-weight: 800; }
.rescard .msg { color: var(--muted); font-size: .9rem; margin: 2px 0 8px; }
.rescard .go { font-size: 1.4rem; color: var(--muted); }
.rescard.add { grid-template-columns: 1fr; text-align: center; border: 2px dashed var(--line); background: transparent; box-shadow: none; color: var(--brand); font-weight: 800; cursor: pointer; }
.ring { width: 64px; height: 64px; position: relative; }
.ring svg { transform: rotate(-90deg); }
.ring .track { stroke: var(--line); }
.ring .val { stroke: var(--brand-2); transition: stroke-dashoffset .8s cubic-bezier(.2, .9, .3, 1.1); }
.ring.full .val { stroke: var(--ok); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: .82rem; font-weight: 800; }

/* ---------- Vue du mois ---------- */
.mhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.mhead h1 { font-size: 1.45rem; font-weight: 900; }
.mission { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-radius: var(--r); padding: 16px 18px; margin-bottom: 14px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mission { background: linear-gradient(135deg, #1d5458, #2a7c80); } }
:root[data-theme="dark"] .mission { background: linear-gradient(135deg, #1d5458, #2a7c80); }
.mission::after { content: "⚡"; position: absolute; right: -6px; bottom: -22px; font-size: 6rem; opacity: .12; transform: rotate(12deg); }
.mission .msg { font-weight: 800; font-size: 1.08rem; margin-bottom: 12px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.steps div { background: rgba(255, 255, 255, .13); border-radius: 12px; padding: 8px 10px; font-size: .82rem; font-weight: 700; display: flex; align-items: center; gap: 6px; transition: background .3s; }
.steps div.on { background: rgba(255, 255, 255, .95); color: #1d5458; }
.pbar { height: 10px; background: rgba(255, 255, 255, .2); border-radius: 99px; overflow: hidden; }
.pbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--volt), #ffe48a); border-radius: 99px; transition: width .7s cubic-bezier(.2, .9, .3, 1.15); }

.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--card); padding: 5px; border-radius: 18px; box-shadow: var(--shadow); margin-bottom: 14px; position: sticky; top: calc(62px + env(safe-area-inset-top)); z-index: 10; }
.tabs a { text-align: center; padding: 9px 4px; border-radius: 13px; text-decoration: none; color: var(--muted); font-weight: 800; font-size: .82rem; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.tabs a span { font-size: 1.25rem; }
.tabs a.on { background: var(--brand-soft); color: var(--brand); }

/* Cartes compteurs */
.meters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.meter { background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); border-left: 6px solid var(--line); animation: rise .35s backwards; }
.meter.ok { border-left-color: var(--ok); }
.meter.check { border-left-color: var(--volt); }
.meter.bad { border-left-color: var(--bad); }
.meter.busy { position: relative; }
.meter.busy::after { content: "🔍 Lecture en cours…"; position: absolute; inset: 0; border-radius: var(--r); background: color-mix(in srgb, var(--card) 80%, transparent); display: grid; place-items: center; font-weight: 800; animation: pulse 1.2s infinite; }
.meter .head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.meter .name { font-weight: 800; font-size: 1.02rem; }
.meter .body { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.meter .facts { font-size: .88rem; color: var(--ink-2); display: flex; flex-direction: column; gap: 2px; }
.meter .facts b { color: var(--ink); }
.meter .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.meter .by { font-size: .78rem; color: var(--muted); margin-top: 10px; display: flex; align-items: center; gap: 6px; }
.meter .note { font-size: .85rem; background: var(--warn-soft); color: var(--ink); border-radius: 10px; padding: 7px 10px; margin-top: 10px; }
.meter .edit { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.thumb { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; cursor: zoom-in; border: 2px solid var(--line); margin-left: auto; padding: 0; background: var(--bg); }
.thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; }

/* Compteur façon totaliseur */
.odo { display: inline-flex; gap: 3px; padding: 5px; background: #2b3a39; border-radius: 10px; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .5); }
.odo span {
  width: 30px; height: 42px; display: grid; place-items: center; background: linear-gradient(var(--odo) 0 48%, #1f2e2d 52% 100%);
  color: var(--odo-ink); border-radius: 5px; font: 700 1.45rem/1 ui-monospace, "SF Mono", Menlo, monospace; overflow: hidden;
}
.odo span.empty { color: #5d7170; }
.odo.roll span { animation: roll .5s cubic-bezier(.2, .9, .3, 1.3) backwards; }
.odo.big span { width: 40px; height: 56px; font-size: 2rem; }

.drop {
  display: flex; flex-direction: column; align-items: center; gap: 4px; border: 2.5px dashed var(--line); border-radius: var(--r); padding: 24px 16px;
  text-align: center; cursor: pointer; color: var(--muted); font-weight: 700; margin-bottom: 14px; transition: all .15s; background: var(--bg);
}
.drop .ic { font-size: 2.2rem; }
.drop:hover, .drop.over { border-color: var(--brand-2); color: var(--brand); background: var(--brand-soft); }

/* Fil d'activité */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.feed li:first-child { border-top: 0; }
.feed time { margin-left: auto; color: var(--muted); font-size: .78rem; white-space: nowrap; }

/* Répartition */
.hero { text-align: center; padding: 22px 16px; }
.hero small { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; }
.hero .amount { font-size: 2.6rem; font-weight: 900; letter-spacing: -.02em; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.kpi { background: var(--bg); border-radius: 14px; padding: 10px; text-align: center; }
.kpi small { display: block; color: var(--muted); font-size: .72rem; font-weight: 700; }
.kpi b { font-size: 1.05rem; }
.bars { display: grid; gap: 10px; }
.brow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; cursor: default; }
.brow .lbl { font-weight: 700; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow .val { font-weight: 800; text-align: right; font-size: .95rem; }
.brow .track { grid-column: 1 / -1; height: 14px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.brow .fill { height: 100%; background: var(--bar); border-radius: 0 4px 4px 0; width: 0; transition: width .9s cubic-bezier(.2, .9, .3, 1); }
.brow .sub { grid-column: 1 / -1; font-size: .78rem; color: var(--muted); }
.medal { font-size: 1rem; }

/* Historique */
.vchart { display: flex; align-items: flex-end; gap: 2px; height: 180px; padding-top: 22px; border-bottom: 1px solid var(--line); }
.vcol { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; cursor: default; }
.vcol i { display: block; width: 72%; max-width: 38px; background: var(--bar); border-radius: 4px 4px 0 0; min-height: 2px; transition: height .8s cubic-bezier(.2, .9, .3, 1); }
.vcol:hover i, .vcol.hl i { filter: brightness(1.15); }
.vcol .tag { position: absolute; top: -20px; font-size: .72rem; font-weight: 800; white-space: nowrap; color: var(--ink-2); }
.vlabels { display: flex; gap: 2px; margin-top: 6px; }
.vlabels span { flex: 1; text-align: center; font-size: .7rem; color: var(--muted); font-weight: 700; text-transform: capitalize; }
.tablewrap { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; white-space: normal; }
th { color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: capitalize; }

/* Réglages / équipe */
.list { display: grid; gap: 8px; }
.li { display: flex; gap: 8px; align-items: center; }
.li .input { min-height: 44px; font-size: .98rem; }
.people { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.person .chip { white-space: normal; }
.person { display: flex; gap: 14px; align-items: center; animation: rise .35s backwards; }
.person .avatar { width: 52px; height: 52px; font-size: 1.7rem; cursor: default; flex-shrink: 0; }
.person .info { flex: 1; min-width: 0; }
.person .info b { font-size: 1.05rem; }
.person .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.emojis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.emojis label { cursor: pointer; }
.emojis input { position: absolute; opacity: 0; pointer-events: none; }
.emojis span { display: grid; place-items: center; height: 46px; border-radius: 14px; font-size: 1.6rem; background: var(--bg); border: 2px solid transparent; transition: transform .1s; }
.emojis input:checked + span { border-color: var(--volt); background: var(--volt-soft); transform: scale(1.08); }
.emojis input:focus-visible + span { outline: 2px solid var(--brand-2); }
.checks { display: grid; gap: 6px; }
.checks label, .radios label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg); border-radius: 12px; cursor: pointer; font-weight: 700; color: var(--ink); }
.checks input, .radios input { width: 20px; height: 20px; accent-color: var(--brand-2); }
.radios { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

/* Ticket du code */
.ticket { background: linear-gradient(135deg, #10393c, #2a7c80); color: #fff; border-radius: 18px; padding: 22px 18px; text-align: center; position: relative; margin: 6px 0 14px; }
.ticket .code { font: 800 1.6rem/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; margin: 8px 0; color: var(--volt); word-break: break-all; }
.ticket small { opacity: .8; }

/* Fenêtre modale */
dialog {
  border: 0; padding: 0; border-radius: 24px; background: var(--card); color: var(--ink); width: min(520px, calc(100vw - 24px));
  max-height: calc(100dvh - 40px); box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}
dialog[open] { animation: pop .22s cubic-bezier(.2, .9, .3, 1.2); }
dialog::backdrop { background: rgba(8, 25, 26, .55); backdrop-filter: blur(3px); }
dialog .in { padding: 20px; display: grid; gap: 14px; }
dialog h2 { font-size: 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
dialog .x { border: 0; background: var(--bg); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1rem; color: var(--ink); flex-shrink: 0; }
dialog .photo { width: 100%; max-height: 55dvh; object-fit: contain; border-radius: 14px; background: #000; }

#toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translate(-50%, 140px); opacity: 0; z-index: 100;
  background: #10292b; color: #fff; padding: 13px 18px; border-radius: 16px; font-weight: 700; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.3), opacity .25s; pointer-events: none; max-width: calc(100vw - 32px); text-align: center;
}
#toast.show { transform: translate(-50%, 0); opacity: 1; }
#tip {
  position: fixed; z-index: 90; pointer-events: none; background: var(--ink); color: var(--bg); padding: 7px 10px; border-radius: 10px;
  font-size: .82rem; font-weight: 700; opacity: 0; transition: opacity .12s; max-width: 240px; white-space: pre-line;
}
#tip.show { opacity: 1; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 95; width: 100%; height: 100%; }

@keyframes float { 50% { transform: translateY(-8px) rotate(-3deg); } }
@keyframes pop { from { transform: scale(.92); opacity: 0; } }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }
@keyframes roll { from { transform: translateY(-110%); } }
@keyframes pulse { 50% { opacity: .55; } }
@keyframes shake { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 520px) {
  .grid2, .meter .edit { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis .kpi:last-child { grid-column: 1 / -1; }
  .hero .amount { font-size: 2.2rem; }
  .steps div { font-size: .74rem; padding: 7px 6px; }
  .odo span { width: 26px; height: 38px; font-size: 1.25rem; }
  .monthnav span { min-width: 120px; }
}

/* Langues */
.langs { display: flex; gap: 6px; padding: 4px 6px 6px; }
.langs button { flex: 1; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 10px; padding: 7px 4px; font-size: .8rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.langs button.on { border-color: var(--volt); background: var(--volt-soft); }
.login .langs { justify-content: center; margin-top: 18px; padding: 0; }
.login .langs button { flex: 0 1 auto; padding: 7px 12px; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; }
.login .langs button.on { border-color: var(--volt); background: rgba(255, 200, 61, .18); }
.menu .langs button { display: block; width: auto; text-align: center; padding: 7px 4px; }
.radios.three { grid-template-columns: repeat(3, 1fr); }
.radios.three label { padding: 10px 8px; font-size: .88rem; gap: 6px; }
:lang(th) body { font-family: ui-rounded, "SF Pro Rounded", "Sukhumvit Set", "Thonburi", "Noto Sans Thai", system-ui, sans-serif; line-height: 1.55; }
.radios.three input { position: absolute; opacity: 0; pointer-events: none; }
.radios.three label { justify-content: center; white-space: nowrap; border: 2px solid transparent; }
.radios.three label:has(input:checked) { border-color: var(--volt); background: var(--volt-soft); }
.radios.three label:has(input:focus-visible) { outline: 2px solid var(--brand-2); }
