/* =========================================================
 * Coffre Budget — styles
 * Une seule mise en page, identique sur téléphone et ordinateur.
 * Thème clair / sombre : suit les réglages de l'appareil.
 * ======================================================= */
:root {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --ink: #111113;
  --ink-2: #4d4d55;
  --muted: #6b6b73;
  --line: #e4e4e8;
  --accent: #0f6b4f;
  --accent-ink: #ffffff;
  --accent-soft: #e6f1ec;
  --pos: #0f6b4f;
  --neg: #b3261e;
  --warn: #8f5f00;
  --shadow: 0 1px 2px rgb(17 17 19 / .06), 0 8px 24px rgb(17 17 19 / .08);
  --radius: 14px;
  --radius-sm: 11px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0c0e;
    --surface: #151518;
    --ink: #f2f2f3;
    --ink-2: #b6b6bd;
    --muted: #8e8e97;
    --line: #26262b;
    --accent: #5fcf9f;
    --accent-ink: #07150f;
    --accent-soft: #14261f;
    --pos: #5fcf9f;
    --neg: #f08a80;
    --warn: #e2b04a;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 28px rgb(0 0 0 / .5);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line) transparent; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  caret-color: var(--accent);
}
::selection { background: var(--accent-soft); color: var(--ink); }

h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em; }
h2 { font-size: 1rem; font-weight: 600; }
h3 { font-size: 1rem; font-weight: 600; }
h3.sub { font-size: .9rem; color: var(--muted); font-weight: 600; }
p { margin: 0; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.num { font-variant-numeric: tabular-nums; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.neutral { color: var(--muted); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { flex: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Champs ---------- */
input, select, button, textarea { font: inherit; color: inherit; }
input:not([type="checkbox"]):not([type="file"]), select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font-size: 16px; /* évite le zoom automatique sur iPhone */
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:not([type="checkbox"]):not([type="file"]):focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
input::placeholder { color: var(--muted); }
input[type="file"] { font-size: .9rem; color: var(--muted); }
input[type="checkbox"] { accent-color: var(--accent); width: 18px; height: 18px; margin: 3px 0 0; flex: none; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: .85rem; font-weight: 500; color: var(--ink-2); }
.field-hint { font-size: .8rem; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }

.form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.form-error { color: var(--neg); font-size: .9rem; min-height: 1.3em; }
.inline-form { display: flex; gap: 8px; }
.inline-form input { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }

.input-suffix { position: relative; }
.input-suffix input:not([type="checkbox"]):not([type="file"]) { padding-right: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.input-suffix span { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); font-weight: 500; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .12s var(--ease);
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.primary:hover { opacity: .88; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface); border-color: var(--line); }
.btn.danger { color: var(--neg); border-color: color-mix(in srgb, var(--neg) 35%, var(--line)); }
.btn.small { min-height: 36px; padding: 6px 14px; font-size: .88rem; }
.btn.block { width: 100%; }

.link { border: 0; background: none; padding: 6px 0; color: var(--muted); font-size: .88rem; cursor: pointer; }
.link:hover { color: var(--ink); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer;
  transition: color .15s ease, background-color .15s ease;
}
.icon-btn.lg { width: 44px; height: 44px; }
.icon-btn:hover { background: var(--surface); color: var(--ink); }
.icon-btn.active { color: var(--ink); }
.icon-btn.danger:hover { color: var(--neg); }

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 13px; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; font-size: .88rem; cursor: pointer; color: var(--ink-2);
}
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip.static { cursor: default; padding-right: 5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-x { width: 22px; height: 22px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; line-height: 1; }
.chip-x:hover:not(:disabled) { color: var(--neg); }
.chip-x:disabled { opacity: .3; cursor: not-allowed; }

.segmented { display: flex; padding: 3px; gap: 3px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.seg { flex: 1; min-height: 40px; border: 0; background: transparent; padding: 6px 12px; border-radius: 9px; cursor: pointer; font-weight: 500; color: var(--muted); transition: background-color .15s ease, color .15s ease; }
.seg:disabled { opacity: .4; cursor: not-allowed; }
.seg.active { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }

/* ---------- Écran de verrouillage ---------- */
.lock-screen {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px; padding: 24px;
}
.lock-card {
  width: 100%; max-width: 400px;
  display: flex; flex-direction: column; gap: 24px;
  padding: 32px 28px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; box-shadow: var(--shadow);
}
.lock-card h1 { font-size: 1.4rem; }
.lock-foot { max-width: 400px; text-align: center; font-size: .82rem; color: var(--muted); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.brand .icon { color: var(--accent); }

.demo-entry { display: flex; flex-direction: column; gap: 8px; text-align: center; border-top: 1px solid var(--line); padding-top: 18px; }
.disclosure { border-top: 1px solid var(--line); padding-top: 16px; }
.disclosure summary { cursor: pointer; font-size: .9rem; color: var(--muted); }
.disclosure[open] summary { margin-bottom: 14px; }
.disclosure > p { margin-bottom: 12px; }

.meter-wrap { display: flex; flex-direction: column; gap: 6px; margin-top: -6px; }
.meter { height: 4px; background: var(--line); border-radius: 99px; overflow: hidden; }
.meter-fill { height: 100%; width: 0; background: var(--neg); transition: width .25s var(--ease), background-color .25s ease; }
.meter-fill[data-score="2"] { background: var(--warn); }
.meter-fill[data-score="3"], .meter-fill[data-score="4"] { background: var(--pos); }

/* ---------- Structure : identique partout ---------- */
.app { max-width: 680px; margin: 0 auto; padding: 0 20px calc(124px + var(--safe-b)); }

.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0 10px; background: var(--bg);
}
.wordmark { border: 0; background: none; padding: 8px 0; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; cursor: pointer; }
.topbar-actions { display: flex; gap: 2px; margin-right: -10px; }

.main { display: flex; flex-direction: column; padding-top: 12px; min-width: 0; }

.page-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.page-header p { margin-top: 6px; }
.page-actions { display: flex; gap: 8px; align-items: center; }

.card { padding: 28px 0 4px; border-top: 1px solid var(--line); margin-top: 28px; min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.page-header + .card, .main > .card:first-child { border-top: 0; margin-top: 8px; }
.danger-zone h2 { color: var(--neg); }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 28px; }
.grid-2.flat { gap: 28px; }

.empty { padding: 56px 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.empty p { max-width: 440px; margin-bottom: 8px; }
.empty-line { color: var(--muted); font-size: .92rem; padding: 6px 0; }

/* ---------- Résumé ---------- */
.summary { padding: 20px 0 8px; display: flex; flex-direction: column; gap: 6px; }
.summary-label { color: var(--muted); font-size: .9rem; }
.summary-total { font-size: clamp(2.6rem, 11vw, 3.8rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1.05; }
.summary-line { font-size: .98rem; margin-top: 4px; }
.summary-split { font-size: .88rem; }

/* kpi (budgets) */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 6px 0 4px; }
.kpi { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi-label { font-size: .82rem; color: var(--muted); }
.kpi-value { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-sub { font-size: .8rem; color: var(--muted); }

/* ---------- Progression ---------- */
.progress { height: 4px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--ink); border-radius: 99px; transition: width .4s var(--ease); }
.progress.ok .progress-fill { background: var(--ink); }
.progress.warn .progress-fill { background: var(--warn); }
.progress.over .progress-fill { background: var(--neg); }
.progress.full .progress-fill { background: var(--accent); }

/* Dépenses par catégorie */
.cat-bars { display: flex; flex-direction: column; gap: 16px; }
.cat-bar-top { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; margin-bottom: 7px; }
.bar-track { height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: var(--ink); }
.bar-fill.warn { background: var(--warn); }
.bar-fill.over { background: var(--neg); }
.budget-tag { margin-left: 10px; font-size: .78rem; color: var(--muted); }
.budget-tag.warn { color: var(--warn); }
.budget-tag.over { color: var(--neg); }

/* Graphique mensuel */
.mchart { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; height: 160px; align-items: end; }
.mcol { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; }
.mbars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.mbar { width: min(16px, 40%); min-height: 2px; border-radius: 4px 4px 1px 1px; transition: height .4s var(--ease); }
.mbar.rev { background: var(--accent); }
.mbar.dep { background: var(--neg); }
.mlabel { font-size: .78rem; color: var(--muted); text-transform: capitalize; }
.legend { display: flex; gap: 18px; margin-top: 14px; font-size: .82rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.rev { background: var(--accent); }
.dot.dep { background: var(--neg); }

/* Épargne */
.saving { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.saving:first-child { padding-top: 0; }
.saving:last-of-type { border-bottom: 0; }
.saving-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.interest { font-size: .9rem; padding-top: 8px; color: var(--ink-2); }
.goals-mini { display: flex; flex-direction: column; gap: 20px; }
.goal-mini { display: flex; flex-direction: column; gap: 8px; }

/* Dernières opérations (accueil) */
.recent { list-style: none; margin: 0; padding: 0; }
.recent li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.recent li:last-child { border-bottom: 0; }
.recent li > div { display: flex; flex-direction: column; min-width: 0; }
.recent-label { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Comptes et objectifs ---------- */
.account-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); column-gap: 56px; margin-top: 28px; align-content: start; }
.dash-grid { display: flex; flex-direction: column; }
.account { display: flex; flex-direction: column; gap: 10px; padding: 22px 0; border-top: 1px solid var(--line); min-width: 0; }
.account-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.account-head > div:first-child { min-width: 0; }
.account-head h3 { overflow-wrap: anywhere; }
.account-balance { font-size: 1.9rem; font-weight: 300; letter-spacing: -0.035em; }
.goal-target { font-size: 1rem; font-weight: 400; }
.account-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.row-actions { display: flex; gap: 0; justify-content: flex-end; flex: none; }

/* ---------- Opérations ---------- */
.filters { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 20px; }
.month-stepper { display: flex; align-items: center; gap: 2px; }
.month-label { flex: 1; text-align: center; font-weight: 500; }
.list-summary { display: flex; gap: 16px; align-items: baseline; font-size: .88rem; color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.list-summary span:first-of-type { margin-left: auto; }

.tx-list { list-style: none; margin: 0; padding: 0; }
.tx { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tx-main { display: flex; flex-direction: column; min-width: 0; }
.tx-label { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-meta { font-size: .8rem; color: var(--muted); }
.tx-amount { font-weight: 500; white-space: nowrap; text-align: right; }
.tx .row-actions { margin-right: -8px; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; border: 1px solid var(--line); font-size: .8rem; white-space: nowrap; }

/* ---------- Budgets ---------- */
.budget-list { display: flex; flex-direction: column; }
.budget-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 132px;
  grid-template-areas: "name input" "prog spent";
  gap: 8px 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line);
}
.budget-head { display: none; }
.budget-name { grid-area: name; font-weight: 500; }
.budget-progress { grid-area: prog; display: flex; flex-direction: column; gap: 6px; }
.budget-spent { grid-area: spent; font-size: .85rem; color: var(--muted); text-align: right; }
.budget-row .input-suffix { grid-area: input; }
.budget-row .input-suffix input { min-height: 42px; }
.budget-list + .form-actions { margin-top: 20px; }

/* ---------- Barre du haut : état démo ---------- */
.demo-banner {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 14px; margin-bottom: 20px; border-radius: var(--radius-sm);
  background: var(--accent-soft); font-size: .9rem; color: var(--ink-2);
}

/* ---------- Synchronisation ---------- */
.brand-row { display: flex; align-items: center; gap: 6px; }
.sync-dot { width: 28px; height: 28px; border: 0; background: none; padding: 0; display: grid; place-items: center; cursor: pointer; border-radius: 50%; }
.sync-dot i, .sync-dot-inline { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: block; flex: none; }
.sync-dot.syncing i, .sync-state.syncing .sync-dot-inline { background: var(--muted); animation: pulse 1s ease-in-out infinite; }
.sync-dot.offline i, .sync-dot.error i, .sync-dot.needs-password i,
.sync-state.offline .sync-dot-inline, .sync-state.error .sync-dot-inline, .sync-state.needs-password .sync-dot-inline { background: var(--warn); }
.sync-dot.unauthorized i, .sync-dot.stopped i,
.sync-state.unauthorized .sync-dot-inline, .sync-state.stopped .sync-dot-inline { background: var(--neg); }
.sync-state { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.sync-stop { padding-top: 14px; border-top: 1px solid var(--line); }
.stack-sm input[readonly] { font-size: .85rem; color: var(--ink-2); }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------- Navigation du bas ---------- */
.dock {
  position: fixed; left: 50%; bottom: max(14px, var(--safe-b)); z-index: 20;
  transform: translateX(-50%);
  width: min(420px, calc(100% - 28px));
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 8px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow);
}
.dock-item {
  flex: 1; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 0; background: transparent; color: var(--muted); font-size: .68rem; font-weight: 500; letter-spacing: .01em;
  border-radius: 16px; cursor: pointer; transition: color .15s ease;
}
.dock-item:hover, .dock-item.active { color: var(--ink); }
.dock-add {
  flex: none; width: 54px; height: 54px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink); cursor: pointer;
  transition: transform .15s var(--ease), opacity .15s ease;
}
.dock-add:hover { opacity: .92; }
.dock-add:active { transform: scale(.94); }

/* ---------- Feuille d'ajout ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: 40;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgb(0 0 0 / .42);
  animation: fade .2s ease both;
}
.sheet {
  width: min(560px, 100%); max-height: calc(100dvh - 24px); overflow-y: auto;
  padding: 22px 22px calc(22px + var(--safe-b));
  background: var(--surface); border: 1px solid var(--line); border-bottom: 0;
  border-radius: 24px 24px 0 0; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 18px;
  animation: rise .32s var(--ease) both;
}
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin: -6px -10px 0 0; }
.sheet .segmented { margin-bottom: 2px; }
.sheet .form-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
.sheet .form-grid .wide { grid-column: 1 / -1; }
.sheet .form-grid .field:not([hidden]):last-child:nth-child(odd) { grid-column: 1 / -1; }
.sheet .amount input { min-height: 60px; font-size: 1.75rem; font-weight: 300; letter-spacing: -0.02em; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }

/* ---------- Notification ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(100px + var(--safe-b)); z-index: 60;
  max-width: calc(100vw - 32px); padding: 11px 18px; border-radius: 12px;
  background: var(--ink); color: var(--bg); font-size: .92rem; font-weight: 500;
  box-shadow: var(--shadow);
  opacity: 0; transform: translate(-50%, 8px); pointer-events: none;
  transition: opacity .2s ease, transform .25s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--neg); color: #fff; }

/* ---------- Grand écran : même disposition, simplement plus aérée ---------- */
@media (min-width: 700px) {
  .app { padding: 0 32px calc(132px + var(--safe-b)); }
  .main { padding-top: 24px; }
  .filters { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .filters select { width: auto; min-width: 180px; }
  .filters input[type="search"] { flex: 1; min-width: 200px; width: auto; }
  .month-stepper { min-width: 260px; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .field:only-child { grid-column: 1 / -1; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .toast { bottom: 110px; }
}

/* ---------- Ordinateur : la page entière est utilisée, mêmes éléments, répartis en colonnes ---------- */
@media (min-width: 1000px) {
  .app { max-width: 1680px; padding: 0 clamp(48px, 5vw, 96px) calc(140px + var(--safe-b)); }
  .main { padding-top: 32px; }
  .page-header { margin-bottom: 16px; }

  .dash-grid { display: block; column-count: 2; column-gap: 88px; }
  .dash-grid > .card { break-inside: avoid; margin-top: 0; margin-bottom: 36px; }
  .summary { padding: 28px 0 24px; }

  .form-grid { grid-template-columns: repeat(3, 1fr); }
  .account-grid { column-gap: 88px; }
  .kpis { max-width: 720px; }

  .budget-row {
    grid-template-columns: 220px minmax(0, 1fr) 190px 150px;
    grid-template-areas: "name prog spent input";
    gap: 8px 32px;
  }
  .tx { grid-template-columns: minmax(0, 1fr) 200px auto; gap: 4px 32px; }
  .dock { width: 480px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
