/* Sea Glass v3 · composants */
.ico { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* ---------- Bouton : trois formes, quatre variantes ---------- */
.btn { --lg-r: 999px; --lg-blur: 12px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding-inline: 24px; border: 0; cursor: pointer; overflow: hidden; font: 600 16px/1 var(--font-display); letter-spacing: 0.005em; color: var(--ink); white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.btn.shape-rect { --lg-r: 14px; }
.btn.shape-circle { --lg-r: 50%; width: 48px; padding: 0; }
.btn.sm { height: 40px; padding-inline: 18px; font-size: 14px; }
.btn.sm.shape-circle { width: 40px; padding: 0; }
.btn.xl { height: 56px; padding-inline: 32px; font-size: 18px; }
.btn.xl.shape-circle { width: 56px; padding: 0; }
.btn.love.off { color: var(--ruby); }
.btn.ghost { background: transparent; box-shadow: none; --lg-blur: 0px; }
.btn.ghost::before, .btn.ghost::after { display: none; }
.btn.ghost {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none;
}
.btn.ghost:hover, .btn.ghost.is-hover { background: color-mix(in srgb, var(--ink) 7%, transparent); transform: none; }
.btn:hover, .btn.is-hover { transform: scale(1.05); --lit-a: 1; }
.btn:active, .btn.is-active { transform: scale(0.97); }
.btn.is-focus { outline: 2px solid var(--focus); outline-offset: 3px; }
.btn:disabled, .btn.is-disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; filter: grayscale(0.35); }
.rp-ring, .rp-disc { position: absolute !important; z-index: 5 !important; border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%); }
.rp-ring { border: 1px solid rgba(255, 255, 255, 0.75); transform: translate(-50%, -50%) scale(0.2); animation: rp-ring 760ms var(--ease) forwards; }
.rp-disc { width: 36px; height: 36px; background: rgba(255, 255, 255, 0.34); border: 1px solid rgba(255, 255, 255, 0.8); animation: rp-disc 200ms var(--spring) both; }
.rp-disc.out { animation: rp-out 320ms var(--ease) forwards; }
@keyframes rp-ring { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
@keyframes rp-disc { from { transform: translate(-50%, -50%) scale(0.3); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@keyframes rp-out { to { opacity: 0; transform: translate(-50%, -50%) scale(1.3); } }

/* ---------- Puce : pilule (filtre) ou rectangle (option) ---------- */
.chip { --lg-r: 999px; --lg-blur: 12px; position: relative; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding-inline: 18px; border: 0; cursor: pointer; overflow: hidden; font: 500 14px/1 var(--font-body); color: var(--ink-2); }
.chip.shape-rect { --lg-r: 12px; }
.chip .ico { width: 16px; height: 16px; }
.chip[aria-pressed="true"] { color: inherit; padding-inline: 12px 18px; }
.chip:hover, .chip.is-hover { color: var(--ink); }
.chip.is-focus { outline: 2px solid var(--focus); outline-offset: 3px; }
.chip:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- Interrupteur : grosse poignée ronde ---------- */
.tgl { position: relative; display: inline-block; width: 68px; height: 40px; flex: none; }
.tgl input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 6; }
.tgl .tgl-track { position: absolute; inset: 0; --lg-r: 999px; }
.tgl .knob { position: absolute; z-index: 5; top: 6px; left: 6px; width: 28px; height: 28px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 62% 68%, #D3D9D8, #AFB8B6 76%);
  box-shadow: inset 2px 3px 4px rgba(30, 45, 42, 0.3), inset -1px -1px 2px rgba(255, 255, 255, 0.6), 0 1px 1px rgba(255, 255, 255, 0.8);
  transition: transform 400ms var(--spring), width 160ms var(--ease), background 260ms var(--ease), box-shadow 200ms var(--ease); }
.tgl.on .knob { transform: translateX(28px); background: radial-gradient(circle at 62% 68%, var(--teal-hi), var(--teal) 78%); box-shadow: inset 2px 3px 5px rgba(5, 55, 43, 0.5), inset -1px -1px 2px rgba(255, 255, 255, 0.35), 0 1px 1px rgba(255, 255, 255, 0.5); }
.tgl:hover .knob, .tgl.is-hover .knob { box-shadow: inset 2px 3px 4px rgba(30, 45, 42, 0.3), inset -1px -1px 2px rgba(255, 255, 255, 0.6), 0 0 0 6px rgba(79, 148, 130, 0.16); }
.tgl.on:hover .knob, .tgl.on.is-hover .knob { box-shadow: inset 2px 3px 5px rgba(5, 55, 43, 0.5), inset -1px -1px 2px rgba(255, 255, 255, 0.35), 0 0 0 6px rgba(79, 148, 130, 0.22); }
.tgl:active .knob, .tgl.is-active .knob { width: 36px; }
.tgl.on:active .knob, .tgl.on.is-active .knob { transform: translateX(20px); }
.tgl input:focus-visible ~ .tgl-track, .tgl.is-focus .tgl-track { outline: 2px solid var(--focus); outline-offset: 3px; }
.tgl.dis { opacity: 0.45; }
.tgl.dis input { cursor: not-allowed; }

/* ---------- Case et radio : même langage que l'interrupteur ---------- */
.cb { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: 15px; min-height: 32px; }
.cb input { position: absolute; left: 0; top: 50%; width: 24px; height: 24px; margin: -12px 0 0; opacity: 0; cursor: pointer; z-index: 6; }
.cb .box { position: relative; width: 24px; height: 24px; flex: none; display: block; --lg-r: 8px; --lg-blur: 6px; }
.cb.radio .box { --lg-r: 50%; }
.cb .box > .ico { position: absolute; inset: 0; margin: auto; pointer-events: none; z-index: 5; width: 14px; height: 14px; fill: #fff; filter: drop-shadow(0 1px 1px rgba(0, 50, 40, 0.4)); opacity: 0; transform: scale(0.7); transition: opacity 180ms var(--ease), transform 260ms var(--spring); }
.cb.on .box > .ico { opacity: 1; transform: scale(1); }
.cb .dot { position: absolute; z-index: 5; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; transform: scale(0); transition: transform 320ms var(--spring); pointer-events: none; background: #fff; box-shadow: 0 1px 2px rgba(0, 50, 40, 0.55); }
.cb.on .dot { transform: scale(1); }
.cb .box { transition: transform 260ms var(--spring), box-shadow 260ms var(--ease), background 200ms var(--ease); }
.cb:hover .box, .cb.is-hover .box { outline: 5px solid rgba(79, 148, 130, 0.16); transform: scale(1.05); }
.cb input:focus-visible ~ .box, .cb.is-focus .box { outline: 2px solid var(--focus); outline-offset: 3px; }
.cb:active .box { transform: scale(0.92); }
.cb.dis { opacity: 0.45; cursor: not-allowed; }
.cb.dis input { cursor: not-allowed; }

/* ---------- Curseur : rail givré, matière continue, capsule → perle + bulge ---------- */
.sl, .pg, .ring { --ft: #B6E5D6; --fb: #8CCDB7; --fg: 79, 168, 119; --sl-mint: #A8D5BA; --sl-mint-deep: #7EBF9A; }
:root[data-theme="dark"] .sl, :root[data-theme="dark"] .pg:not([class*="t-"]), :root[data-theme="dark"] .ring { --ft: #7DCEB4; --fb: #4DAE94; --sl-mint: #7DCEB4; --sl-mint-deep: #4DAE94; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sl, :root:not([data-theme="light"]) .pg:not([class*="t-"]), :root:not([data-theme="light"]) .ring { --ft: #7DCEB4; --fb: #4DAE94; --sl-mint: #7DCEB4; --sl-mint-deep: #4DAE94; } }

.sl { --a: 0; --b: 0.4; --sl-h: 20px; position: relative; height: 52px; cursor: pointer; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.sl.marks { height: 70px; }

/* Rail vide : givre translucide + grain (clair) / auge glass (sombre) */
.sl-rail {
  position: absolute; left: 0; right: 0; top: 16px; height: var(--sl-h); border-radius: 999px;
  background: color-mix(in srgb, #fff 55%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9), inset 0 -1px 2px rgba(var(--shade), 0.06), 0 1px 2px rgba(var(--drop), 0.06);
  -webkit-backdrop-filter: blur(12px) saturate(2.05); backdrop-filter: blur(12px) saturate(2.05);
  transition: box-shadow 280ms var(--ease);
  overflow: hidden;
}
.sl-rail::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: url(noise.svg) center / 128px 128px repeat;
  mix-blend-mode: overlay; opacity: var(--sparkle, 0.22);
}
:root[data-theme="dark"] .sl-rail {
  background: color-mix(in srgb, #fff 8%, #0c1a18 70%, var(--ground-2));
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.45),
    inset 0 -1px 1px rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sl-rail {
    background: color-mix(in srgb, #fff 8%, #0c1a18 70%, var(--ground-2));
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow:
      inset 0 2px 4px rgba(0, 0, 0, 0.45),
      inset 0 -1px 1px rgba(255, 255, 255, 0.12),
      0 0 0 1px rgba(255, 255, 255, 0.06);
  }
}

/* Fill mint : matière unique jusqu’au bout arrondi (sous le thumb) */
.sl-fill {
  position: absolute; left: 0; top: 16px; height: var(--sl-h);
  width: calc(10px + (100% - 20px) * var(--b) + var(--sl-h) / 2);
  border-radius: 999px; overflow: hidden; z-index: 1;
  background: linear-gradient(180deg, var(--ft), var(--fb));
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.75), inset 0 -2px 3px -1px rgba(10, 90, 70, 0.22);
}
.sl-fill::after { content: ""; position: absolute; left: 8px; right: 10px; top: 2px; height: 7px; border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0)); }
.sl.range .sl-fill {
  left: calc(10px + (100% - 20px) * var(--a) - var(--sl-h) / 2);
  width: calc((100% - 20px) * (var(--b) - var(--a)) + var(--sl-h));
}
.sl:not(.drag) .sl-fill { transition: width 220ms var(--ease), left 220ms var(--ease); }

.sl-thumb {
  position: absolute; top: 0; left: calc(10px + (100% - 20px) * var(--v));
  width: 44px; height: 52px; margin-left: -22px; outline: none; z-index: 3;
  background: transparent; border: 0; border-radius: 999px;
}
.sl:not(.drag) .sl-thumb { transition: left 220ms var(--ease); }
.sl-thumb:focus-visible { outline: none !important; }

/* Capule bout : même matière que le fill (pas de bordure séparée) */
.sl-thumb .blob {
  position: absolute; left: 50%; top: 50%;
  width: var(--sl-h); height: var(--sl-h);
  margin: calc(var(--sl-h) / -2) 0 0 calc(var(--sl-h) / -2);
  border-radius: 999px; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, var(--ft), var(--fb));
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.55);
  opacity: 1;
  transition: width 280ms var(--spring), height 280ms var(--spring), margin 280ms var(--spring), box-shadow 220ms var(--ease), opacity 160ms var(--ease);
}
.sl-thumb .stem {
  position: absolute; left: 50%; top: 50%;
  width: var(--sl-h); height: var(--sl-h);
  transform: translate(-50%, -50%);
  border-radius: 999px; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ft) 70%, #fff), var(--fb) 55%, var(--sl-mint-deep));
  box-shadow:
    inset 1px 1.5px 1px rgba(255, 255, 255, 0.65),
    inset -1px -1.5px 2px rgba(5, 55, 43, 0.18);
  transition: width 280ms var(--spring), height 280ms var(--spring), transform 280ms var(--spring), box-shadow 220ms var(--ease), background 200ms var(--ease);
}
/* Congés désactivés : la matière est déjà continue via le fill élargi */
.sl-thumb .fl { display: none; }
.sl.range .blob { display: none; }

/* Variante pipette : bulbe à gauche de la capsule */
.sl-thumb.pipette .bulb {
  position: absolute; z-index: 2; left: calc(50% - 26px); top: 50%; width: 20px; height: 20px;
  margin-top: -10px; border-radius: 999px; pointer-events: none;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--sl-mint) 55%, #fff), var(--sl-mint-deep));
  box-shadow: inset 1px 1px 1px rgba(255, 255, 255, 0.7), 0 2px 5px -2px rgba(var(--fg), 0.3);
  transition: opacity 200ms var(--ease), transform 280ms var(--spring);
}
.sl-thumb:not(.pipette) .bulb { display: none; }

/* Halo soft (rond) - jamais de carré */
.sl-thumb .ring {
  position: absolute; left: 50%; top: 50%; border-radius: 999px;
  border: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 70%);
  transform: translate(-50%, -50%) scale(0.4); opacity: 0;
  transition: transform 280ms var(--ease), opacity 200ms var(--ease); pointer-events: none; z-index: 0;
}
.sl-thumb .ring.r1 { width: 40px; height: 40px; }
.sl-thumb .ring.r2 { width: 56px; height: 56px; background: radial-gradient(circle, rgba(var(--fg), 0.22) 0%, transparent 72%); }

/* Survol : léger grossissement, même matière */
.sl:hover .sl-thumb .stem, .sl.is-hover .sl-thumb .stem {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow:
    inset 1px 1.5px 1px rgba(255, 255, 255, 0.7),
    inset -1px -1.5px 2px rgba(5, 55, 43, 0.2),
    0 0 0 4px rgba(123, 191, 172, 0.18);
}
.sl:hover .sl-thumb .blob, .sl.is-hover .sl-thumb .blob { transform: none; }

/* Appui / drag : bout plus large, toujours pilule mint (pas de perle carrée) */
.sl.is-press .sl-thumb .blob,
.sl.drag .sl-thumb.act .blob {
  width: 28px; height: 28px; margin: -14px 0 0 -14px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--ft), var(--fb));
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.6);
  opacity: 1;
}
.sl.is-press .sl-thumb .stem,
.sl.drag .sl-thumb.act .stem {
  width: 28px; height: 28px; border-radius: 999px; transform: translate(-50%, -50%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--ft) 75%, #fff), var(--fb) 50%, var(--sl-mint-deep));
  box-shadow:
    inset 1.5px 2px 2px rgba(255, 255, 255, 0.75),
    inset -1px -2px 3px rgba(5, 55, 43, 0.22),
    0 2px 8px -2px rgba(var(--fg), 0.35);
}
.sl.is-press .bulb, .sl.drag .sl-thumb.act .bulb { opacity: 0; transform: scale(0.6); }
.sl.is-press .ring, .sl.drag .sl-thumb.act .ring { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.sl.is-press .ring.r2, .sl.drag .sl-thumb.act .ring.r2 { opacity: 0.7; }

/* Focus clavier : anneau rond a11y */
.sl-thumb:focus-visible .stem, .sl.is-focus .sl-thumb .stem {
  box-shadow:
    inset 1px 1.5px 1px rgba(255, 255, 255, 0.65),
    0 0 0 2px var(--ground),
    0 0 0 4px var(--focus);
}
.sl-thumb:focus-visible .ring.r1, .sl.is-focus .sl-thumb .ring.r1 {
  opacity: 1; transform: translate(-50%, -50%) scale(1);
  background: none; border: 2px solid rgba(255, 255, 255, 0.9);
}
.sl.dis { opacity: 0.45; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .sl-thumb .stem, .sl-thumb .blob, .sl-thumb .ring, .sl-fill { transition: none !important; }
  .sl:hover .sl-thumb .stem, .sl.is-hover .sl-thumb .stem { transform: translate(-50%, -50%); }
}

/* Bulle de valeur */
.sl-bub { position: absolute !important; left: 50%; bottom: calc(100% - 2px); transform: translate(-50%, 6px) scale(0.85); opacity: 0; pointer-events: none; padding: 5px 10px; --lg-r: 10px; font: 600 12px/1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--on-tint); white-space: nowrap; z-index: 5; transition: opacity 160ms var(--ease), transform 260ms var(--spring); }
.sl.is-press .sl-bub, .sl.drag .sl-thumb.act .sl-bub, .sl-thumb:focus-visible .sl-bub, .sl.is-focus .sl-bub { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* Paliers */
.sl-ticks { position: absolute; left: 0; right: 0; top: 40px; height: 22px; pointer-events: none; }
.sl-ticks i { position: absolute; top: 0; left: calc(6px + (100% - 12px) * var(--t)); width: 2px; height: 7px; margin-left: -1px; border-radius: 2px; background: var(--ink-3); opacity: 0.4; }
.sl-ticks i.on { background: var(--teal); opacity: 0.95; }
.sl-ticks span { position: absolute; top: 9px; font: 11px var(--font-mono); color: var(--ink-3); white-space: nowrap; }
.sl-ticks span.lo { left: 0; }
.sl-ticks span.hi { right: 0; }
.sl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.sl-head output { font: 13px var(--font-mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ---------- Progression : rail frosted (comme curseur), fill jelly sans glow ---------- */
.pg {
  --h: 18px; --f: 0.6; --buf: 0; --lg-r: 999px; --lg-blur: 12px;
  position: relative; height: var(--h); border-radius: 999px; overflow: hidden;
  background: color-mix(in srgb, #fff 55%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.85), inset 0 -1px 2px rgba(var(--shade), 0.06);
  -webkit-backdrop-filter: blur(12px) saturate(2.05); backdrop-filter: blur(12px) saturate(2.05);
}
.pg::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: url(noise.svg) center / 128px 128px repeat;
  mix-blend-mode: overlay; opacity: var(--sparkle, 0.22);
}
:root[data-theme="dark"] .pg {
  background: color-mix(in srgb, var(--ink) 12%, transparent);
  border-color: color-mix(in srgb, #fff 12%, transparent);
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.25);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pg {
    background: color-mix(in srgb, var(--ink) 12%, transparent);
    border-color: color-mix(in srgb, #fff 12%, transparent);
    box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.25);
  }
}
.pg.sm { --h: 10px; }
.pg.lg { --h: 26px; }
.pg b {
  position: absolute; left: 2px; top: 2px; bottom: 2px;
  width: calc((100% - 4px) * var(--buf)); border-radius: 999px;
  background: color-mix(in srgb, var(--fb) 28%, transparent);
  transition: width 420ms var(--ease);
}
.pg i {
  position: absolute; left: 2px; top: 2px; bottom: 2px;
  width: calc((100% - 4px) * var(--f)); border-radius: 999px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--ft) 70%, #fff), var(--fb) 55%, color-mix(in srgb, var(--fb) 88%, #000));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.65), inset 0 -1px 2px -1px rgba(10, 90, 70, 0.2);
  transition: width 420ms var(--spring);
}
.pg i::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  top: 16%;
  height: 28%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.pg.t-aqua { --ft: #9ADBF4; --fb: #5CC4EC; --fg: 92, 196, 236; }
.pg.t-amber { --ft: #FADA95; --fb: #F2B845; --fg: 247, 201, 107; }
.pg.t-ruby { --ft: #F2A99B; --fb: #E07662; --fg: 224, 118, 98; }
.pg.ind i { width: 34%; transform: translateX(-100%); animation: pg-ind 1.7s var(--ease) infinite; transition: none; will-change: transform; }
@keyframes pg-ind { to { transform: translateX(290%); } }
@media (prefers-reduced-motion: reduce) { .pg.ind i { animation: none; transform: translateX(90%); } }
.pg-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 500; }
.pg-row .mono { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* Anneau */
.ring { position: relative; width: var(--sz, 72px); height: var(--sz, 72px); display: grid; place-items: center; flex: none; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring circle { fill: none; }
.ring .trk-s { stroke: color-mix(in srgb, var(--ink) 14%, transparent); stroke-width: 4.2; }
.ring .trk { stroke: color-mix(in srgb, #fff 55%, var(--ground-2)); stroke-width: 3.4; }
.ring .val { stroke-width: 3.4; filter: none; transition: stroke-dasharray 420ms var(--spring); }
.ring span { position: relative; font: 600 15px var(--font-display); font-variant-numeric: tabular-nums; }

/* ---------- Onglets et segmenté ---------- */
.tabs-list { --lg-r: 999px; --lg-blur: 12px; display: inline-flex; padding: 4px; gap: 2px; position: relative; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs-list::-webkit-scrollbar { display: none; }
.tabs-list .pill {
  position: absolute; z-index: 1; top: 4px; bottom: 4px; left: 0;
  --lg-r: 999px; --lg-blur: 0px; --sh-out: none;
  will-change: transform, width;
  transition: transform 540ms var(--spring), width 540ms var(--spring);
}
.tabs-list .tab { position: relative; z-index: 3; flex: none; height: 40px; padding-inline: 22px; border: 0; background: transparent; border-radius: 999px; font: 600 15px/1 var(--font-display); color: var(--ink-3); cursor: pointer; white-space: nowrap; transition: color 200ms var(--ease); }
.tabs-list .tab:hover { color: var(--ink); }
.tabs-list .tab[aria-selected="true"], .tabs-list .tab[aria-checked="true"] { color: var(--seafoam-ink); }
.scene .tabs-list .tab[aria-selected="true"],
.scene .tabs-list .tab[aria-checked="true"],
.navbar .nb[aria-current="page"],
.scene .navbar .nb[aria-current="page"] { color: var(--seafoam-ink); }
.navbar .nb[aria-current="page"] .ico { fill: currentColor; }
.tabs-list .tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.tabs-list .tab:disabled { opacity: 0.4; cursor: not-allowed; }
.tabs-line { position: relative; display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.tabs-line .tab { position: relative; flex: none; height: 44px; padding-inline: 16px; border: 0; background: transparent; font: 600 15px/1 var(--font-display); color: var(--ink-3); cursor: pointer; white-space: nowrap; border-radius: 10px 10px 0 0; transition: color 200ms var(--ease); }
.tabs-line .tab:hover { color: var(--ink); }
.tabs-line .tab[aria-selected="true"] { color: var(--ink); }
.tabs-line .tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.tabs-line .ind { position: absolute; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--teal-hi), var(--teal)); transition: left 420ms var(--spring), width 420ms var(--spring); }
.tab-panel { padding-top: 16px; font-size: 14px; color: var(--ink-2); outline: none; }

/* ---------- Champ, recherche, navigation : même surface verre posée ---------- */
.field { display: grid; gap: 6px; }
.field > label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.shell-in { position: relative; }
.shell-in > .lg {
  position: absolute !important; inset: 0; z-index: 0;
  --lg-r: 16px; --lg-blur: 12px;
  pointer-events: none;
}
.shell-in > input {
  position: relative; z-index: 4; display: block; width: 100%; height: 52px;
  padding-inline: 18px; border: 0; border-radius: 16px; background: transparent;
  font: 400 16px var(--font-body); color: var(--ink);
}
.shell-in > input::placeholder { color: var(--ink-3); }
.shell-in:hover > .lg, .shell-in.is-hover > .lg { outline: 4px solid rgba(79, 148, 130, 0.14); }
.shell-in:focus-within > .lg, .shell-in.is-focus > .lg {
  outline: 2px solid var(--focus); outline-offset: 3px;
}
.shell-in.dis { opacity: 0.5; }
.shell-in.dis > input { cursor: not-allowed; }
.help { font-size: 12px; color: var(--ink-3); }
.help.err { color: var(--ruby); font-weight: 500; }
:root:not([data-theme="dark"]) .help.err { color: #A4402F; }
.search {
  --lg-r: 999px; --lg-blur: 12px;
  display: flex; align-items: center; gap: 8px; height: 58px; padding-inline: 20px 8px;
}
.search input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent;
  font: 400 16px var(--font-body); color: inherit; outline: none !important; box-shadow: none !important;
}
.search input::placeholder { color: inherit; opacity: 0.7; }
.search .sbtn {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: transparent; color: inherit; cursor: pointer;
  transition: background 200ms var(--ease);
}
.search .sbtn:hover { background: rgba(255, 255, 255, 0.4); }
.search:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.navbar {
  --lg-r: 999px; --lg-blur: 12px;
  position: relative; display: flex; gap: 4px; padding: 6px;
  width: 100%; max-width: 420px; margin-inline: auto;
}
.navbar .pill {
  position: absolute; z-index: 1; top: 6px; bottom: 6px; left: 0;
  --lg-r: 999px; --lg-blur: 0px; --sh-out: none;
  will-change: transform, width;
  transition: transform 540ms var(--spring), width 540ms var(--spring);
}
.navbar .nb {
  position: relative; z-index: 3; flex: 1; min-width: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 8px; border: 0; border-radius: 999px; background: transparent;
  color: inherit; font: 500 12px var(--font-body); cursor: pointer;
}
.navbar .nb .ico { width: 16px; height: 16px; flex: none; }
.navbar .nb:not([aria-current="page"]) .ico { display: none; }
.navbar .nb[aria-current="page"] { color: var(--seafoam-ink); }
:root[data-theme="dark"] .scene .navbar .nb[aria-current="page"] { color: var(--seafoam-ink); }
.navbar .nb:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* ---------- Carte, badge, info-bulle, notification ---------- */
.card { padding: 24px; display: grid; gap: 10px; --lg-r: 28px; min-width: 0; }
.card h4 { font: 600 22px/28px var(--font-display); }
.card p { font-size: 14px; line-height: 20px; opacity: 0.88; }
.card .kv { display: flex; justify-content: space-between; font-size: 13px; padding-top: 12px; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.badge {
  display: inline-flex; align-items: center; height: 28px; padding-inline: 12px;
  --lg-r: 999px; --lg-blur: 6px; --tint-a: 0.28;
  font: 600 12px/1 var(--font-display); letter-spacing: 0.02em; white-space: nowrap;
}
/* Snack : bridge .snack (Glass démo) → métriques .sg-snack package */
.snack {
  display: flex; align-items: center; gap: 16px;
  padding: 8px 8px 8px 22px; --lg-r: 999px;
  font-size: 14px; max-width: 100%;
}

/* ---------- Mouvement et contraste ---------- */
/* Rangées label + token + rail (sans cartes Glass) · bille matière verre */
.mo-list { display: grid; gap: 18px; }
.mo { display: grid; gap: 6px; }
.mo__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mo__title { font-weight: 500; color: var(--ink); font-size: 13px; }
.mo__token { font-size: 11px; color: var(--ink-3); }
.mo__hint { font-size: 12px; color: var(--ink-2); }
.mo-track {
  position: relative;
  height: 40px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 10%, transparent);
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.06);
  overflow: hidden;
}
.mo-track::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent);
  pointer-events: none;
}
.mo-ball {
  position: absolute;
  z-index: 4;
  top: 6px;
  left: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  isolation: isolate;
  overflow: hidden;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--seafoam) 45%, transparent);
}
.mo-ball__frost,
.mo-ball__tint,
.mo-ball__rim {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
.mo-ball__frost {
  z-index: 1;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E")
      center / 64px 64px,
    linear-gradient(160deg, rgb(255 255 255 / 0.45), rgb(255 255 255 / 0.12));
  opacity: 0.55;
  box-shadow: inset 1px 1px 1px rgb(255 255 255 / 0.65);
}
.mo-ball__tint {
  z-index: 2;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--seafoam) 55%, #fff),
    var(--seafoam) 52%,
    color-mix(in srgb, var(--seafoam) 88%, #000)
  );
  opacity: 0.92;
}
.mo-ball__rim {
  z-index: 3;
  padding: 1px;
  background: linear-gradient(140deg, rgb(255 255 255 / 0.9), transparent 35%, color-mix(in srgb, var(--seafoam) 40%, #fff));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
@keyframes mo-track {
  0%, 100% { left: 6px; }
  50% { left: calc(100% - 34px); }
}
@keyframes mo-track-spring {
  0%, 100% { left: 6px; }
  42% { left: calc(100% - 34px); }
  58% { left: calc(100% - 46px); }
  72% { left: calc(100% - 34px); }
  84% { left: calc(100% - 38px); }
  92% { left: calc(100% - 34px); }
}
@media (prefers-reduced-motion: reduce) {
  .mo-ball { animation: none !important; left: 6px !important; }
}
table.ct { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
table.ct th { text-align: left; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; padding: 0 16px 10px 0; }
table.ct td { padding: 11px 16px 11px 0; border-top: 1px solid var(--line); vertical-align: middle; }
.pair { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; height: 32px; padding-inline: 10px; border-radius: 12px; font-weight: 700; border: 1px solid var(--line); }
.ratio { font: 13px var(--font-mono); font-variant-numeric: tabular-nums; }
.res { display: inline-flex; align-items: center; height: 24px; padding-inline: 10px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.res.ok { background: #D3EBDD; color: #12482A; }
.res.ko { background: #F9DAD4; color: #5E1E12; }

.btn.love .ico { filter: drop-shadow(0 1px 1px rgba(120, 30, 15, 0.45)); }
.lab { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; }

.tabs-list .tab:focus-visible, .tabs-line .tab:focus-visible { outline-offset: -2px; }

/* Case et radio : teal profond → icône / point blanc (currentColor des glyphes Galet) */
.cb.on .box {
  color: #fff;
  background: linear-gradient(165deg, rgb(48 128 105 / 0.82), rgb(37 107 90 / 0.88));
  --glow: 37 107 90;
  --sh-in: none;
  --sh-cast: var(--table-drop);
  --sh-glow: var(--tint-glow);
  --sh-out: var(--sh-glow), var(--sh-cast);
  --sparkle: 0.22;
}
.cb.on .box > .ico,
.cb.on .box > .ico path { fill: #fff; color: #fff; }
.cb .box.carved { --sh-in: inset 0 0 0 1.5px color-mix(in srgb, var(--ink-3) 62%, transparent), inset 1.5px 2px 3px -1px var(--c-lo); }

/* Survol : scale 1.05 sur les petits éléments, plus discret sur les grandes surfaces */
.tgl { transition: transform 260ms var(--spring); }
.tgl:hover:not(.dis), .tgl.is-hover { transform: scale(1.05); }
/* hover/press stem transforms : définis dans le bloc .sl ci-dessus */
.navbar .nb, .tabs-list .tab, .search .sbtn { transition: transform 220ms var(--spring), color 200ms var(--ease), background 200ms var(--ease); }
.navbar .nb:hover, .tabs-list .tab:hover:not(:disabled), .search .sbtn:hover { transform: scale(1.05); }
.card, .search, .navbar, .tabs-list, .snack { --hs: 1.02; --as: 0.99; }
.search, .navbar, .tabs-list { --hs: 1.01; --as: 0.995; }
