:root {
  --bg: #f2f3f5;
  --bg-accent: #e6e8ec;
  --card: #ffffff;
  --text: #15171a;
  --muted: #6b7079;
  --border: #dcdfe4;
  --field: #f7f8fa;
  --focus: #2f6fed;
  --primary: #111214;
  --primary-hover: #2a2d31;
  --primary-text: #ffffff;
  --soft: #f0f1f4;
  --soft-hover: #e4e6ea;
  --success: #1f9d55;
  --danger: #d33a3a;
  --shadow: 0 1px 2px rgba(16, 18, 22, .04), 0 12px 32px -8px rgba(16, 18, 22, .12);
  --radius: 16px;
  --radius-sm: 10px;
}

/* Thème sombre : suit le système, sauf choix manuel (data-theme sur <html>). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0f11;
    --bg-accent: #17191c;
    --card: #17191c;
    --text: #eceef1;
    --muted: #979ca6;
    --border: #2b2e33;
    --field: #1f2125;
    --focus: #6b9bff;
    --primary: #f2f3f5;
    --primary-hover: #d9dce1;
    --primary-text: #111214;
    --soft: #23262a;
    --soft-hover: #2d3035;
    --success: #3ccf7f;
    --danger: #ff6b6b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -12px rgba(0, 0, 0, .6);
  }
}

:root[data-theme="dark"] {
  --bg: #0e0f11;
  --bg-accent: #17191c;
  --card: #17191c;
  --text: #eceef1;
  --muted: #979ca6;
  --border: #2b2e33;
  --field: #1f2125;
  --focus: #6b9bff;
  --primary: #f2f3f5;
  --primary-hover: #d9dce1;
  --primary-text: #111214;
  --soft: #23262a;
  --soft-hover: #2d3035;
  --success: #3ccf7f;
  --danger: #ff6b6b;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -12px rgba(0, 0, 0, .6);
}

:root { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding:
    max(24px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 50% -10%, var(--bg-accent), transparent 70%),
    var(--bg);
}

.card {
  width: 100%;
  max-width: 460px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

/* En-tête */
.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.logo {
  display: block;
  height: 40px;
  width: auto;
}
.intro { margin-bottom: 22px; }

h1 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -.01em;
}
.theme-toggle {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s, color .15s;
}
.theme-toggle:hover { background: var(--soft); color: var(--text); }
.theme-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Affiche la lune en clair, le soleil en sombre. */
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

.sub {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Formulaire */
.field { margin-bottom: 16px; }
.label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}
.counter {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font: inherit;
  font-size: 16px; /* évite le zoom auto sur iOS */
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
input::placeholder { color: var(--muted); opacity: .7; }
input:focus {
  background: var(--card);
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent);
}
.has-error input { border-color: var(--danger); }
.has-error input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 22%, transparent); }

.amount { position: relative; }
.amount .currency {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  pointer-events: none;
}
.amount input {
  padding-left: 52px;
  font-variant-numeric: tabular-nums;
}

.error {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--danger);
}
.error:empty { display: none; }

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  touch-action: manipulation;
  text-align: center;
  line-height: 1.2;
  transition: background-color .15s, transform .08s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn:focus-visible, .btn-link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn-primary {
  width: 100%;
  margin-top: 4px;
  background: var(--primary);
  color: var(--primary-text);
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-soft {
  background: var(--soft);
  color: var(--text);
  font-size: 14px;
}
.btn-soft:hover { background: var(--soft-hover); }

.btn-accent {
  background: var(--primary);
  color: var(--primary-text);
}
.btn-accent:hover { background: var(--primary-hover); }

.links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  color: var(--muted);
}
.btn-link {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 10px;
  line-height: 1;
  font: inherit;
  font-size: 14px;
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-link:hover { color: var(--text); }

/* Résultat */
.card-title {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 650;
}
.result { animation: rise .25s ease-out; }
/* Sur mobile, la carte résultat n'apparaît qu'une fois le lien généré. */
.result-card.is-empty { display: none; }

.empty {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  min-height: 320px;
  padding: 24px;
  text-align: center;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  color: var(--muted);
  background: var(--soft);
  border-radius: 14px;
}
.empty-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.empty-title { margin: 0; font-weight: 600; }
.empty-text {
  margin: 0;
  max-width: 320px;
  font-size: 14px;
  color: var(--muted);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.recap {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}
.recap > div { min-width: 0; }
.recap dt {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.recap dd {
  margin: 2px 0 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.recap > div:first-child dd {
  font-size: 22px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.linkbox {
  position: relative;
  padding: 12px 14px;
  margin-bottom: 12px;
  background: var(--field);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}
.linkbox code {
  display: block;
  font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  color: var(--muted);
  word-break: break-all;
  user-select: all;
}

.actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.actions .btn-accent { grid-column: 1 / -1; }
/* Sans bouton « Partager » (navigateur non compatible), « Copier le lien » prend toute la largeur. */
.actions:has(#btnShare[hidden]) #btnCopyLink { grid-column: 1 / -1; }

/* Notification */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, calc(env(safe-area-inset-bottom) + 12px));
  transform: translate(-50%, 16px);
  padding: 10px 16px 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 32px);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-text);
  background: var(--primary);
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  flex: none;
}
.toast.is-error::before { background: var(--danger); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.footer {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* Conteneur des cartes */
.stack {
  width: 100%;
  max-width: 460px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.stack > .card { max-width: none; }

/* Résumé : QR code + montant / référence */
.summary {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.summary-side { flex: 1; min-width: 0; }
.qr-code {
  flex: none;
  width: 132px;
  height: 132px;
  padding: 0;
  background: #fff; /* toujours blanc, pour rester lisible par les scanners */
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qr-code svg { display: block; width: 100%; height: 100%; }
button.qr-code {
  position: relative;
  display: block;
  overflow: visible;
  cursor: zoom-in;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s, box-shadow .12s;
}
button.qr-code:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
button.qr-code:active { transform: scale(.97); }
button.qr-code:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.qr-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
}
.qr-zoom {
  position: absolute;
  right: -8px;
  bottom: -8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--primary-text);
  background: var(--primary);
  border: 2px solid var(--card);
  border-radius: 50%;
}
.qr-zoom svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* QR code en grand : fond toujours blanc (meilleur contraste pour le scan) */
.qr-dialog {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding:
    max(16px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  color: #111214;
  background: #fff;
  border: 0;
  cursor: zoom-out;
  color-scheme: light;
}
.qr-dialog[open] { animation: qr-in .2s ease-out; }
.qr-dialog::backdrop { background: rgba(0, 0, 0, .6); }
@keyframes qr-in {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: none; }
}
html:has(.qr-dialog[open]) { overflow: hidden; }

.qr-full {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  min-height: 100%;
  text-align: center;
}
.qr-full-logo { height: 36px; width: auto; margin-bottom: 14px; }
.qr-big {
  width: min(86vw, 58vh, 460px);
  aspect-ratio: 1;
  margin-bottom: 14px;
}
.qr-big svg { display: block; width: 100%; height: 100%; }
.qr-big-amount {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.qr-big-ref {
  margin: 0;
  max-width: 90vw;
  font-size: 16px;
  font-weight: 600;
  color: #4a4f57;
  overflow-wrap: anywhere;
}
.qr-hint {
  margin: 10px 0 0;
  font-size: 14px;
  color: #6b7079;
}
.qr-close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #111214;
  background: #f0f1f4;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.qr-close:focus-visible { outline: 2px solid #2f6fed; outline-offset: 2px; }
.qr-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* Ordinateur : fenêtre centrée plutôt que plein écran */
@media (min-width: 900px) {
  .qr-dialog {
    width: min(560px, 92vw);
    height: auto;
    max-height: 92vh;
    margin: auto;
    padding: 40px 32px 32px;
    border-radius: 24px;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5);
  }
  .qr-big { width: min(380px, 60vh); }
}
.btn-sm {
  white-space: nowrap;
  height: 38px;
  padding: 0 12px;
  font-size: 13px;
}

/* Options du message */
.msg-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.select label {
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--muted);
}
select {
  width: 100%;
  height: 42px;
  padding: 0 34px 0 12px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background-color: var(--field);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
}
select:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent);
}

/* Aperçu du message */
.preview { margin-bottom: 10px; }
.preview summary {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}
.preview summary::-webkit-details-marker { display: none; }
.preview summary::before {
  content: "";
  width: 6px;
  height: 6px;
  margin: 0 10px 0 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .15s;
}
.preview[open] summary::before { transform: rotate(45deg); }
.preview summary:hover { color: var(--text); }
.preview pre {
  margin: 4px 0 0;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--text);
  background: var(--field);
  border-radius: var(--radius-sm);
}

/* Envoi direct */
.send-title {
  margin: 16px 0 8px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.send {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.send-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 60px;
  padding: 8px 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  background: var(--soft);
  border-radius: var(--radius-sm);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s, transform .08s;
}
.send-btn:hover { background: var(--soft-hover); }
.send-btn:active { transform: scale(.98); }
.send-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.send-btn svg, .icon-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Historique */
.history { padding-top: 20px; padding-bottom: 16px; }
.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.history-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
}
.history-head .btn-link { margin-right: -10px; }
.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.history-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.history-item:first-child { border-top: 0; }
.hi-main { flex: 1; min-width: 0; }
.hi-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 8px;
}
.hi-amount {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hi-date {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.hi-ref {
  display: block;
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.icon-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { background: var(--soft); color: var(--text); }
.icon-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.history-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 480px) {
  body { place-items: start center; padding-top: max(16px, env(safe-area-inset-top)); }
  .card { padding: 22px 18px; }
  .head { margin-bottom: 18px; }
  .intro { margin-bottom: 20px; }
  .btn { height: 48px; }
}

@media (max-width: 380px) {
  .card { padding: 20px 14px; border-radius: 14px; }
  .logo { height: 36px; }
  h1 { font-size: 17px; }
  .qr-code { width: 112px; height: 112px; }
  .hide-xs { display: none; }
  .actions { grid-template-columns: minmax(0, 1fr); }
  .summary { gap: 12px; }
  .recap > div:first-child dd { font-size: 19px; }
}

/* Ordinateur : deux colonnes (formulaire + historique | résultat) */
@media (min-width: 900px) {
  body { padding: 40px 32px; }
  .stack {
    max-width: 1100px;
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    grid-template-areas:
      "form result"
      "history result";
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: 24px;
  }
  .stack > main { grid-area: form; }
  .result-card {
    grid-area: result;
    position: sticky;
    top: 24px;
    padding: 28px 32px;
  }
  .result-card.is-empty { display: block; }
  .history { grid-area: history; }
  .history-list { max-height: 360px; overflow-y: auto; margin-right: -8px; padding-right: 8px; }
  .empty { min-height: 420px; }

  .card-title { font-size: 17px; margin-bottom: 20px; }
  .summary { gap: 24px; margin-bottom: 18px; }
  .qr-code { width: 168px; height: 168px; }
  .recap { gap: 12px; margin-bottom: 16px; }
  .recap > div:first-child dd { font-size: 30px; }
  .recap dd { font-size: 16px; }

  .msg-options { gap: 12px; }
  .preview pre { max-height: 190px; overflow-y: auto; }
  .send-btn { flex-direction: row; min-height: 46px; gap: 8px; font-size: 14px; }
}

/* Grand écran : les trois boutons d'action sur une seule ligne */
@media (min-width: 1140px) {
  .actions { display: flex; }
  .actions .btn { flex: 1 1 0; white-space: nowrap; }
  .actions .btn-accent { flex: 1.8 1 0; }
}

/* Paysage sur téléphone : moins de hauteur disponible */
@media (max-height: 500px) and (orientation: landscape) {
  body { place-items: start center; }
}

/* Écrans tactiles : pas d'effet de survol « collant » */
@media (hover: none) {
  .btn-primary:hover { background: var(--primary); }
  .btn-soft:hover { background: var(--soft); }
  .btn-accent:hover { background: var(--primary); }
  .theme-toggle:hover { background: none; color: var(--muted); }
  .send-btn:hover { background: var(--soft); }
  .icon-btn:hover { background: none; color: var(--muted); }
}

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