/* Kairo — feuille de style unique. Mobile d'abord, thème clair/sombre automatique. */

:root {
  color-scheme: light dark;

  /* Fonds : trois niveaux seulement, pour que la hiérarchie reste lisible. */
  --bg: #f4f4f7;
  --surface: #ffffff;
  --surface-2: #eeeef3;
  --surface-3: #e3e3ea;
  --border: #e6e6ec;
  --border-strong: #d3d3dd;

  --text: #14141b;
  --text-dim: #5c5c6b;
  --text-faint: #8b8b99;

  --accent: #5b5bd6;
  --accent-hover: #4f4fc9;
  --accent-soft: #ececfb;
  --accent-text: #ffffff;

  --going: #059669;
  --interested: #d97706;
  --declined: #dc2626;
  --pending: #94a3b8;
  --danger: #dc2626;

  /* Ombres discrètes : une bordure nette porte la séparation, l'ombre ne fait qu'aider. */
  --shadow-sm: 0 1px 2px rgba(16, 16, 30, .05);
  --shadow: 0 1px 2px rgba(16, 16, 30, .05), 0 2px 8px rgba(16, 16, 30, .04);
  --shadow-lg: 0 12px 32px rgba(16, 16, 30, .14), 0 2px 8px rgba(16, 16, 30, .06);

  /* Échelle d'espacement : tout dans l'interface est un multiple de ces valeurs. */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 22px;
  --sp-6: 32px;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --tap: 44px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);

  --ease: cubic-bezier(.2, .8, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d12;
    --surface: #16161d;
    --surface-2: #1d1d26;
    --surface-3: #262631;
    --border: #24242f;
    --border-strong: #34343f;

    --text: #eeeef3;
    --text-dim: #a4a4b2;
    --text-faint: #75758a;

    --accent: #8b8bf5;
    --accent-hover: #9c9cf7;
    --accent-soft: #21213a;
    --accent-text: #0d0d12;

    --going: #34d399;
    --interested: #fbbf24;
    --declined: #f87171;
    --danger: #f87171;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 2px 8px rgba(0, 0, 0, .25);
    --shadow-lg: 0 14px 40px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .4);
  }
}

* { box-sizing: border-box; }

/* Le document lui-même ne défile jamais : c'est le contenu (.main) qui défile.
   Sans ça, `position: fixed` suit la barre d'adresse qui se replie sur mobile
   et la barre d'onglets se met à flotter en plein milieu de l'écran. */
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

/* Hiérarchie typographique : chaque niveau se distingue par la taille ET la graisse. */
h1, h2, h3, h4 { margin: 0; font-weight: 640; }
h1 { font-size: 21px; letter-spacing: -.022em; line-height: 1.25; }
h2 { font-size: 17.5px; letter-spacing: -.016em; line-height: 1.3; }
h3 { font-size: 14.5px; letter-spacing: -.008em; line-height: 1.35; }
p { margin: 0; }
a { color: var(--accent); }

button, input, select, textarea { font: inherit; color: inherit; }

/* Un anneau de focus visible partout, mais uniquement au clavier. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* ---------- Mise en page ---------- */
/* Coquille d'application : hauteur fixe, un seul conteneur qui défile. */
#app {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}

.shell { display: flex; flex: 1; min-height: 0; }

.sidebar { display: none; }

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--sp-5);
}

/* Le défilement de l'arrière-plan est bloqué tant qu'une feuille est ouverte. */
.sheet-open .main,
.sheet-open .auth-wrap { overflow: hidden; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: calc(var(--sp-3) + var(--safe-t)) var(--sp-4) var(--sp-3);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid var(--border);
}
.topbar .grow { flex: 1; min-width: 0; }
.topbar h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .sub {
  margin-top: 1px;
  font-size: 12.5px;
  color: var(--text-faint);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.desktop-only { display: none !important; }

.page { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-4); }

/* ---------- Barre d'onglets (mobile) ---------- */
/* Vrai élément de mise en page, jamais `fixed` : elle ne peut donc pas dériver. */
.tabbar {
  flex: none;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding-bottom: var(--safe-b);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(16px) saturate(1.6);
  border-top: 1px solid var(--border);
}
.tabbar button {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 56px;
  border: 0; background: none; cursor: pointer;
  color: var(--text-faint);
  font-size: 10.5px; font-weight: 560; letter-spacing: -.005em;
  transition: color .15s var(--ease);
}
.tabbar button.active { color: var(--accent); }
/* Un trait fin au-dessus de l'onglet actif : repère immédiat sans surcharger. */
.tabbar button.active::before {
  content: '';
  position: absolute; top: 0; left: 50%;
  width: 26px; height: 2px; margin-left: -13px;
  border-radius: 0 0 2px 2px;
  background: var(--accent);
}
.tabbar button:active { color: var(--accent); }
.tabbar svg { width: 21px; height: 21px; }
.tabbar .dot {
  position: absolute; top: 7px; right: 50%; transform: translateX(17px);
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 17px;
  box-shadow: 0 0 0 2px var(--surface);
}

/* ---------- Éléments de base ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card.pad { padding: var(--sp-4); }

.row { display: flex; align-items: center; gap: var(--sp-3); }
.col { display: flex; flex-direction: column; gap: var(--sp-3); }
.grow { flex: 1; min-width: 0; }
.wrap { flex-wrap: wrap; }
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); font-size: 13px; line-height: 1.45; }
.center { text-align: center; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: var(--tap); padding: 0 var(--sp-4);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  font-size: 14.5px; font-weight: 560; letter-spacing: -.008em;
  cursor: pointer;
  transition: transform .1s var(--ease), background .15s var(--ease), border-color .15s var(--ease), opacity .15s;
}
a.btn { text-decoration: none; }
/* Retour au toucher franc : l'appui doit se sentir, pas se deviner. */
.btn:active { transform: scale(.96); background: var(--surface-2); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:disabled:active { transform: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.primary:active { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { background: none; border-color: transparent; }
.btn.ghost:active { background: var(--surface-2); }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 32%, transparent); }
.btn.danger:active { background: color-mix(in srgb, var(--danger) 12%, transparent); }
.btn.sm { min-height: 34px; padding: 0 var(--sp-3); font-size: 13px; border-radius: var(--radius-xs); }
.btn.icon { width: var(--tap); padding: 0; }
.btn.icon.sm { width: 34px; }
.btn.block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.sm svg { width: 15px; height: 15px; }

@media (hover: hover) {
  .btn:hover { border-color: var(--text-faint); }
  .btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
  .btn.ghost:hover { background: var(--surface-2); border-color: transparent; }
  .btn.danger:hover { background: color-mix(in srgb, var(--danger) 10%, transparent); }
}

.field { display: flex; flex-direction: column; gap: 6px; }
/* Micro-libellé : petit, espacé, discret — il nomme sans concurrencer la valeur. */
.field > label {
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.input, select.input, textarea.input {
  width: 100%;
  min-height: var(--tap);
  padding: 11px var(--sp-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  outline: none;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}
textarea.input { min-height: 92px; resize: vertical; line-height: 1.5; padding-top: 10px; }
.input::placeholder { color: var(--text-faint); }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 12px; font-weight: 600; letter-spacing: -.005em;
  color: var(--text-dim);
  white-space: nowrap;
}
.chip svg { flex: none; }
.chip.going {
  background: color-mix(in srgb, var(--going) 13%, transparent);
  border-color: color-mix(in srgb, var(--going) 30%, transparent);
  color: color-mix(in srgb, var(--going) 82%, var(--text));
}
.chip.interested {
  background: color-mix(in srgb, var(--interested) 14%, transparent);
  border-color: color-mix(in srgb, var(--interested) 32%, transparent);
  color: color-mix(in srgb, var(--interested) 82%, var(--text));
}
.chip.declined {
  background: color-mix(in srgb, var(--declined) 12%, transparent);
  border-color: color-mix(in srgb, var(--declined) 28%, transparent);
  color: color-mix(in srgb, var(--declined) 82%, var(--text));
}
.chip.pending { color: var(--text-faint); }

.badge-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* ---------- Avatars ---------- */
.avatar {
  position: relative; flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12.5px; font-weight: 680; letter-spacing: -.01em; color: #fff;
  background: var(--accent);
  overflow: hidden;
  user-select: none;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.xs { width: 23px; height: 23px; font-size: 9.5px; }
.avatar.sm { width: 30px; height: 30px; font-size: 11px; }
.avatar.lg { width: 52px; height: 52px; font-size: 19px; }
.avatar.xl { width: 92px; height: 92px; font-size: 31px; }

.stack { display: flex; }
.stack .avatar { margin-left: -7px; box-shadow: 0 0 0 2px var(--surface); }
.stack .avatar:first-child { margin-left: 0; }

/* ---------- Calendrier ---------- */
.cal-head {
  display: grid; grid-template-columns: repeat(7, 1fr);
  padding: 0 2px var(--sp-2);
  font-size: 10.5px; font-weight: 680;
  text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-faint); text-align: center;
}
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 44px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding-top: 6px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  transition: background .15s var(--ease), border-color .15s var(--ease), transform .1s var(--ease);
}
.cal-day:active { transform: scale(.94); }
.cal-day.out { background: none; color: var(--text-faint); opacity: .45; }
.cal-day .num { font-size: 13.5px; font-weight: 540; line-height: 1.25; font-variant-numeric: tabular-nums; }
/* Aujourd'hui se marque par une pastille pleine : repérable d'un seul coup d'œil. */
.cal-day.today .num {
  display: grid; place-items: center;
  width: 22px; height: 22px; margin-top: -2px;
  border-radius: 50%;
  background: var(--accent); color: var(--accent-text);
  font-weight: 680;
}
.cal-day.selected { border-color: var(--accent); background: var(--accent-soft); }
.cal-day.selected.today .num { box-shadow: 0 0 0 2px var(--accent-soft); }
.cal-day .pips { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; max-width: 90%; }
.cal-day .pip { width: 5px; height: 5px; border-radius: 50%; }
.cal-day .more { font-size: 9px; color: var(--text-faint); line-height: 1; }

@media (hover: hover) {
  .cal-day:hover { background: var(--surface-2); }
  .cal-day.selected:hover { background: var(--accent-soft); }
}

/* ---------- Liste d'évènements ---------- */
.ev {
  display: flex; gap: var(--sp-3); align-items: stretch;
  padding: var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-align: left; width: 100%;
  transition: transform .1s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.ev:active { transform: scale(.985); }
.ev .bar { width: 3.5px; border-radius: 3px; flex: none; }
.ev .time {
  font-variant-numeric: tabular-nums;
  font-size: 12.5px; font-weight: 550;
  color: var(--text-dim);
}
.ev .title { font-size: 15px; font-weight: 620; letter-spacing: -.011em; line-height: 1.3; }

@media (hover: hover) {
  .ev:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
}

.daygroup > .label {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: 2px 2px var(--sp-2);
  font-size: 11.5px; font-weight: 680;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-faint);
}
.daygroup > .label .today-tag {
  padding: 2px 7px; border-radius: 999px;
  background: var(--accent); color: var(--accent-text);
  font-size: 10px; letter-spacing: .03em;
}

/* ---------- Feuille modale ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(8, 8, 14, .55);
  backdrop-filter: blur(6px);
  animation: fade .18s var(--ease);
}
.sheet {
  position: fixed; z-index: 51;
  left: 0; right: 0; bottom: 0;
  max-height: 92dvh;
  display: flex; flex-direction: column;
  background: var(--surface);
  border-radius: 22px 22px 0 0;
  box-shadow: var(--shadow-lg);
  animation: slideup .26s var(--ease);
}
.sheet .handle {
  width: 36px; height: 4px; border-radius: 3px;
  background: var(--border-strong);
  margin: 10px auto 2px; flex: none;
}
.sheet header {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4) var(--sp-3);
  border-bottom: 1px solid var(--border); flex: none;
}
.sheet header h2 { font-size: 18px; }
.sheet .body {
  padding: var(--sp-4);
  overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: var(--sp-4);
  -webkit-overflow-scrolling: touch;
}
.sheet footer {
  display: flex; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4) calc(var(--sp-3) + var(--safe-b));
  border-top: 1px solid var(--border); flex: none;
}

@keyframes fade { from { opacity: 0 } }
@keyframes slideup { from { transform: translateY(18px); opacity: .5 } }

/* ---------- Bouton d'action flottant ---------- */
.fab {
  position: fixed; z-index: 25;
  right: var(--sp-4); bottom: calc(74px + var(--safe-b));
  width: 54px; height: 54px; border-radius: 18px;
  display: grid; place-items: center;
  border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-text);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 40%, transparent);
  transition: transform .12s var(--ease), box-shadow .15s var(--ease);
}
.fab:active { transform: scale(.9); box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 35%, transparent); }
.fab svg { width: 25px; height: 25px; }

/* ---------- Divers ---------- */
.seg {
  display: flex; padding: 3px; gap: 3px;
  background: var(--surface-2); border-radius: var(--radius-sm);
}
.seg button {
  flex: 1; min-height: 34px; border: 0; border-radius: var(--radius-xs);
  background: none; color: var(--text-dim);
  font-size: 13px; font-weight: 600; letter-spacing: -.008em;
  cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.seg button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

.empty { padding: var(--sp-6) var(--sp-5); text-align: center; color: var(--text-faint); }
.empty svg { width: 40px; height: 40px; opacity: .35; margin-bottom: var(--sp-3); }
.empty h3 { color: var(--text-dim); margin-bottom: var(--sp-1); }

.list { display: flex; flex-direction: column; }
.list > * + * { border-top: 1px solid var(--border); }
.list-item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3); width: 100%;
  background: none; border: 0; text-align: left;
  transition: background .15s var(--ease);
}
button.list-item { cursor: pointer; }
button.list-item:active { background: var(--surface-2); }
.list-item.unread { background: color-mix(in srgb, var(--accent) 6%, transparent); }
@media (hover: hover) {
  button.list-item:hover { background: var(--surface-2); }
}

.toast {
  position: fixed; z-index: 90;
  left: 50%; bottom: calc(84px + var(--safe-b));
  transform: translateX(-50%);
  max-width: min(92vw, 440px);
  padding: 11px var(--sp-4);
  border-radius: var(--radius-sm);
  background: #16161d; color: #fff;
  font-size: 13.5px; font-weight: 520; letter-spacing: -.005em;
  box-shadow: var(--shadow-lg);
  animation: toastin .22s var(--ease);
}
.toast.error { background: var(--danger); }
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 12px) } }

.swatches { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.swatch {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid transparent; cursor: pointer; padding: 0;
  box-shadow: inset 0 0 0 2px var(--surface);
  transition: transform .12s var(--ease);
}
.swatch:active { transform: scale(.88); }
.swatch.active { border-color: var(--text); transform: scale(1.08); }

.auth-wrap {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  padding: var(--sp-5) 18px calc(var(--sp-5) + var(--safe-b));
}
.auth-card { margin: auto; width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: var(--sp-4); }
.brand { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-1); }
.brand .logo { width: 62px; height: 62px; }
.brand .name { font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.brand .tag { color: var(--text-faint); font-size: 14px; }

.spinner {
  width: 16px; height: 16px; flex: none;
  border: 2px solid color-mix(in srgb, currentColor 25%, transparent);
  border-top-color: currentColor; border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg) } }

.error-text { color: var(--danger); font-size: 13px; line-height: 1.45; }

/* ---------- Grand écran ---------- */
@media (min-width: 860px) {
  .shell { max-width: 1180px; margin: 0 auto; width: 100%; gap: var(--sp-5); padding: 0 var(--sp-5); }
  .sidebar {
    display: flex; flex-direction: column; gap: 2px;
    width: 216px; flex: none;
    padding: var(--sp-5) 0;
    align-self: stretch; overflow-y: auto;
  }
  .sidebar .brand-row { display: flex; align-items: center; gap: var(--sp-3); padding: 0 var(--sp-3) var(--sp-5); }
  .sidebar .brand-row .logo { width: 30px; height: 30px; }
  .sidebar .brand-row .name { font-size: 19px; font-weight: 700; letter-spacing: -.025em; }
  .sidebar .nav-item {
    display: flex; align-items: center; gap: var(--sp-3);
    min-height: 42px; padding: 0 var(--sp-3);
    border: 0; border-radius: var(--radius-sm); background: none;
    color: var(--text-dim); font-size: 14px; font-weight: 560;
    cursor: pointer; text-align: left; width: 100%;
    position: relative;
    transition: background .15s var(--ease), color .15s var(--ease);
  }
  .sidebar .nav-item:hover { background: var(--surface-2); color: var(--text); }
  .sidebar .nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 620; }
  .sidebar .nav-item svg { width: 19px; height: 19px; flex: none; }
  .sidebar .nav-item .dot {
    margin-left: auto; min-width: 19px; height: 19px; padding: 0 5px;
    border-radius: 10px; background: var(--danger); color: #fff;
    font-size: 11px; font-weight: 700; line-height: 19px; text-align: center;
  }
  .sidebar .spacer { flex: 1; min-height: var(--sp-4); }
  .tabbar { display: none; }
  .main { padding-bottom: var(--sp-6); }
  .topbar { padding: var(--sp-5) 0 var(--sp-4); background: none; backdrop-filter: none; border-bottom: 0; }
  .topbar h1 { font-size: 24px; letter-spacing: -.026em; }
  .page { padding: 0 0 var(--sp-6); }
  .fab { display: none; }
  .cal-day { min-height: 78px; aspect-ratio: auto; height: 78px; }
  .cal-day:active { transform: none; }
  .sheet {
    top: 50%; left: 50%; right: auto; bottom: auto;
    transform: translate(-50%, -50%);
    width: min(560px, 92vw);
    max-height: 86dvh;
    border-radius: 18px;
    animation: pop .2s var(--ease);
  }
  .sheet .handle { display: none; }
  .sheet header { padding-top: var(--sp-4); }
  .sheet footer { padding-bottom: var(--sp-3); }
  @keyframes pop { from { transform: translate(-50%, -46%) scale(.97); opacity: .5 } }
  .toast { bottom: var(--sp-6); }
  .two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--sp-5); align-items: start; }
  .desktop-only { display: inline-flex !important; }
}

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