/* Ki Ka Raison ? — DA « Pop, mais sérieux ». Fond crème, aplats de couleur par catégorie, citron vert pour la sélection, encre pour l'action. */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2'); }
:root {
  --cream: #fbf8f3;
  --paper: #ffffff;
  --ink: #1d1d1f;
  --grey: #85817c;
  --grey-2: #5c5955;
  --line: #e8e2d8;
  --line-2: #d8d2c8;
  --soft: #f3efe8;
  --lime: #def26b;
  --lime-2: #c9dc58;
  --lime-soft: #f1f9c6;
  --peri: #8285f5;
  --brick: #ee6a42;
  --teal: #2d7566;
  --lav: #c9c6ff;
  --gain: #22806b;
  --gain-soft: #d7f0e6;
  --loss: #d9502c;
  --loss-soft: #fde1d7;
  --r-l: 26px;
  --r-m: 20px;
  --r-s: 14px;
  --shadow: 0 14px 30px -18px rgba(29, 29, 31, .35);
  --f: 'Plus Jakarta Sans', 'Helvetica Neue', Arial, system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 500 15px/1.5 var(--f); -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.03em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(24px, 4vw, 30px); font-weight: 800; }
h2 { font-size: 20px; font-weight: 800; }
h3 { font-size: 16px; font-weight: 700; letter-spacing: -.015em; }
p { margin: 0; }
small { font-size: 12.5px; }
:focus-visible { outline: 2.5px solid var(--peri); outline-offset: 2px; }
.muted { color: var(--grey); }
.pos { color: var(--gain); }
.neg { color: var(--loss); }
.num { font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row.tight { gap: 6px; margin-top: -4px; }
.row.end { justify-content: flex-end; }
.row.center { justify-content: center; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack.tight { gap: 7px; }
.stack.narrow { max-width: 360px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.sq { display: inline-block; width: 12px; height: 12px; border-radius: 4px; flex: none; }
code { font: 600 12.5px ui-monospace, Menlo, monospace; background: var(--soft); padding: 1px 6px; border-radius: 6px; }

/* ——— Structure ——— */
.page { max-width: 1120px; margin: 0 auto; padding: 14px 16px 112px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); padding-top: max(14px, env(safe-area-inset-top)); display: flex; flex-direction: column; gap: 14px; }
/* Glisser d'un écran à l'autre : le nouveau arrive du côté où le doigt est parti */
@keyframes swipe-right { from { opacity: .35; translate: 32px 0; } }
@keyframes swipe-left { from { opacity: .35; translate: -32px 0; } }
.page.swipe-right { animation: swipe-right .22s ease-out; }
.page.swipe-left { animation: swipe-left .22s ease-out; }
.page.no-tabbar { padding-bottom: 16px; }
.deskbar { display: none; }
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: max(14px, env(safe-area-inset-bottom)); z-index: 40;
  width: min(420px, calc(100% - 28px)); height: 62px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 16px 34px -16px rgba(0, 0, 0, .4); display: flex; justify-content: space-around; align-items: center;
}
.tabbar a { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #8d8984; text-decoration: none; }
.tabbar a.on { background: var(--ink); color: #fff; }
.tabbar a.plus { background: var(--lime); color: var(--ink); }
.tabbar a.plus.on { box-shadow: 0 0 0 3px var(--ink); }
.dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--brick); border: 2px solid var(--paper); }
@media (min-width: 900px) {
  .tabbar { display: none; }
  .deskbar {
    display: flex; align-items: center; gap: 22px; position: sticky; top: 0; z-index: 40;
    padding: 12px max(24px, calc((100vw - 1120px) / 2 + 16px)); background: rgba(251, 248, 243, .9);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
  }
  .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -.03em; text-decoration: none; white-space: nowrap; }
  .brand-mark { width: 30px; display: grid; place-items: center; flex: none; }
  .brand-mark svg { width: 100%; height: auto; display: block; }
  .deskbar nav { display: flex; gap: 4px; flex: 1; }
  .deskbar nav a { position: relative; padding: 8px 14px; border-radius: 99px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--grey-2); }
  .deskbar nav a:hover { background: var(--soft); }
  .deskbar nav a.on { background: var(--ink); color: #fff; }
  .deskbar .dot { top: 4px; right: 4px; }
  .deskbar .me { display: flex; text-decoration: none; }
  .page.no-tabbar { padding-bottom: 24px; }
  .page { padding-bottom: 60px; padding-top: 22px; }
}

/* ——— Briques ——— */
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 99px; font: 700 14.5px var(--f); padding: 6px 6px 6px 18px; min-height: 44px; border: 0; background: var(--ink); color: #fff; white-space: nowrap; cursor: pointer; text-decoration: none; transition: transform .08s, opacity .15s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn .go { width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; flex: none; }
.btn.full { width: 100%; justify-content: space-between; }
.btn.sm { min-height: 36px; padding: 7px 14px; font-size: 13.5px; gap: 6px; }
.btn.lime { background: var(--lime); color: var(--ink); }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.line:not(.sm) { padding: 8px 18px; }
.btn.danger { color: var(--loss); box-shadow: inset 0 0 0 1.5px var(--loss); }
.btn.danger-fill { background: var(--loss); }
.btn:not(.line):not(.sm):not(.full):not(:has(.go)) { padding: 10px 20px; }
.ic-btn { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--paper); display: inline-grid; place-items: center; flex: none; cursor: pointer; color: var(--ink); text-decoration: none; }
.ic-btn.sm { width: 30px; height: 30px; font-weight: 800; }
.ic-btn.on { background: var(--lime); border-color: var(--lime-2); }
.ic-btn .red { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--brick); }
.link-btn { background: none; border: 0; padding: 0; color: var(--grey); font-size: 12.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--ink); }
.chips { display: flex; gap: 6px; }
.chips.wrap { flex-wrap: wrap; }
.chips.wrap .chip { white-space: normal; }
.chips.scroll { overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 99px; border: 1px solid var(--line-2); background: transparent; font-size: 13px; font-weight: 600; color: var(--grey-2); white-space: nowrap; cursor: pointer; text-decoration: none; }
.chip em { font-style: normal; font-size: 11.5px; color: var(--grey); }
.chip.on { background: var(--lime); border-color: var(--lime-2); color: var(--ink); }
.chip.on em { color: var(--grey-2); }
.cat-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line-2); background: transparent; font-size: 13px; font-weight: 600; color: var(--grey-2); white-space: nowrap; cursor: pointer; }
.cat-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--ink)); }
.cat-chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-check { display: inline-flex; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check input:checked + .chip { background: var(--lime); border-color: var(--lime-2); color: var(--ink); }
.chip-check input:focus-visible + .chip { outline: 2.5px solid var(--peri); }
.badge { display: inline-flex; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--soft); color: var(--grey-2); margin-left: 6px; white-space: nowrap; }
.note { padding: 12px 14px; border-radius: var(--r-s); background: var(--soft); font-size: 14px; color: var(--grey-2); }
.note.lime { background: var(--lime-soft); color: var(--ink); }
.note.warn { background: var(--loss-soft); color: #8a2f17; }
.note a { font-weight: 700; }
details.fold > summary, .fold-in > summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
details.fold > summary::-webkit-details-marker, .fold-in > summary::-webkit-details-marker { display: none; }
details.fold > summary::after, .fold-in > summary::after { content: '+'; font-size: 18px; font-weight: 700; line-height: 1; color: var(--grey); }
details.fold[open] > summary::after, .fold-in[open] > summary::after { content: '−'; }
details.fold[open] > summary { margin-bottom: 12px; }
.fold-in { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.fold-in > summary { font-size: 14px; color: var(--grey-2); }
.fold-in[open] > summary { margin-bottom: 10px; }
.self-start { align-self: flex-start; }
.small-note { font-size: 12.5px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sec-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sec-row small { color: var(--grey); font-weight: 600; }
.page-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 4px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.list { display: flex; flex-direction: column; }
.lrow { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); text-decoration: none; min-width: 0; font-size: 14px; }
.lrow:last-child { border-bottom: 0; }
.lrow.wrap { flex-wrap: wrap; }
.lrow .grow b { font-weight: 700; }
.lrow .grow small { display: block; color: var(--grey); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow .rk { width: 18px; text-align: center; color: var(--grey); font-weight: 700; }
.lrow select { width: auto; min-width: 140px; padding: 7px 30px 7px 10px; font-size: 13px; }
a.lrow:hover .grow b { text-decoration: underline; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 34px 20px; border: 1.5px dashed var(--line-2); border-radius: var(--r-l); color: var(--grey-2); }
.empty b { color: var(--ink); font-size: 16px; }
.empty.small { padding: 18px; }
.kika-s svg { width: 74px; height: auto; }
.kika-l svg { width: 120px; height: auto; }
.kika-xs svg { width: 40px; height: auto; }

/* Formulaires */
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--grey-2); }
label small, .field-l small { font-weight: 500; color: var(--grey); }
.field-l { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 700; color: var(--grey-2); }
input, select, textarea { width: 100%; padding: 11px 14px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); font: 500 15px var(--f); outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--peri); box-shadow: 0 0 0 3px rgba(130, 133, 245, .2); }
textarea { resize: vertical; min-height: 80px; line-height: 1.45; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--grey) 50%), linear-gradient(135deg, var(--grey) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--ink); }
.check { flex-direction: row; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; flex: none; }
.check.boxed { padding: 10px 12px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--paper); }
.check.boxed:has(input:checked) { border-color: var(--lime-2); background: var(--lime-soft); }
.check .r { display: flex; align-items: center; gap: 8px; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form input { flex: 1; min-width: 0; }
.seg-p { display: flex; padding: 3px; border-radius: 99px; border: 1px solid var(--line); background: var(--paper); gap: 2px; }
.seg-p button { flex: 1; text-align: center; padding: 8px 10px; border-radius: 99px; font-size: 13.5px; font-weight: 700; color: var(--grey); background: none; border: 0; cursor: pointer; }
.seg-p .on { background: var(--ink); color: #fff; }
.switch { flex-direction: row; align-items: center; gap: 7px; cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--grey-2); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { width: 36px; height: 21px; border-radius: 99px; background: var(--line-2); position: relative; transition: .2s; flex: none; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + i { background: var(--ink); }
.switch input:checked + i::after { left: 18px; background: var(--lime); }
.switch input:focus-visible + i { outline: 2.5px solid var(--peri); }

/* Avatars */
.ava { --s: 32px; display: inline-grid; place-items: center; width: var(--s); height: var(--s); border-radius: 50%; overflow: hidden; flex: none; background: var(--soft); }
.ava.sq { border-radius: 30%; }
.ava svg { width: 100%; height: 100%; display: block; }
.ava .ini { font-weight: 800; font-size: calc(var(--s) * .42); color: var(--grey-2); }
.faces { display: inline-flex; }
.faces .ava { box-shadow: 0 0 0 2px var(--c, var(--paper)); }
.faces .ava + .ava, .faces .more { margin-left: -7px; }
.faces .more { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 99px; background: rgba(255, 255, 255, .85); color: var(--ink); font-size: 10.5px; font-weight: 800; }
.who { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; }

/* Toasts, confettis, modales */
#toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: 92px; z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
@media (min-width: 900px) { #toasts { bottom: 28px; } }
.toast { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); animation: tIn .25s ease-out; transition: opacity .3s, transform .3s; }
.toast i { width: 26px; height: 26px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; flex: none; }
.toast.err i { background: var(--brick); color: #fff; }
.toast.out { opacity: 0; transform: translateY(8px); }
@keyframes tIn { from { opacity: 0; transform: translateY(10px); } }
.confetti { position: fixed; z-index: 99; width: 9px; height: 13px; border-radius: 3px; pointer-events: none; animation: conf 1s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes conf { to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; } }
dialog.modal { width: min(500px, calc(100vw - 24px)); max-height: calc(100vh - 40px); overflow: auto; padding: 22px; border: 0; border-radius: var(--r-l); background: var(--paper); color: var(--ink); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .45); }
dialog.modal::backdrop { background: rgba(29, 29, 31, .45); backdrop-filter: blur(3px); }
.confirm-t { font-size: 16px; font-weight: 600; line-height: 1.45; }

/* Créateur de personnage */
.creator { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 14px; border-radius: var(--r-m); background: var(--soft); }
@media (max-width: 560px) { .creator { grid-template-columns: minmax(0, 1fr); } }
.cr-preview { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cr-ava { border-radius: 30%; }
.cr-fields { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cr-fields .field-l { font-size: 12px; gap: 6px; }
/* Neuf coupes : trois colonnes, des miniatures assez grandes pour voir Chauve et Ras, Long et Carré. */
.style-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.stc { cursor: pointer; }
.stc input, .swc input { position: absolute; opacity: 0; pointer-events: none; }
.stc span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 2px 3px; border-radius: 12px; background: var(--paper); border: 1.5px solid transparent; }
.stc span svg { width: 46px; height: 46px; }
.stc small { font-size: 11px; font-weight: 700; color: var(--grey-2); }
.stc input:checked + span { border-color: var(--ink); }
.stc input:focus-visible + span, .swc input:focus-visible + span { outline: 2.5px solid var(--peri); }
.swatch-row { display: flex; flex-wrap: wrap; gap: 6px; }
.swc { cursor: pointer; }
.swc span { display: block; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.swc input:checked + span { box-shadow: 0 0 0 2px var(--soft), 0 0 0 4px var(--ink); }

.welcome { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 20px 0; }
.welcome .cards { width: 100%; text-align: left; }
.how { list-style: none; counter-reset: how; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 480px; text-align: left; }
.how li { counter-increment: how; display: flex; gap: 11px; align-items: flex-start; padding: 11px 13px; border-radius: var(--r-s); background: var(--soft); font-size: 14px; font-weight: 600; line-height: 1.4; }
.how li::before { content: counter(how); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.lead-t { font-size: 18px; font-weight: 600; color: var(--grey-2); }

/* ——— Accueil ——— */
.home { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.band-btn { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; min-width: 0; padding: 2px 0; border: 0; background: none; color: var(--ink); font-size: 14px; cursor: pointer; align-self: flex-start; }
.band-btn b { font-weight: 800; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.band-btn svg { flex: none; color: var(--grey); }
@media (min-width: 900px) { .home > .band-btn { display: none; } .deskbar .band-btn { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line-2); max-width: 200px; align-self: center; } }
@media (max-width: 899px) { .deskbar .band-btn { display: none; } }
/* Le contenu de la barre ne dépasse jamais 1088 px : elle reste serrée sur tous les ordis, pour ne pas déborder. */
@media (min-width: 900px) {
  .deskbar { gap: 12px; }
  .deskbar .band-btn { max-width: 130px; }
  .deskbar nav { gap: 0; min-width: 0; }
  .deskbar nav a { padding: 8px 10px; font-size: 13.5px; white-space: nowrap; }
}
/* Petit écran d'ordi : le logo suffit à la place du nom de l'app. */
@media (min-width: 900px) and (max-width: 1120px) {
  .deskbar { gap: 10px; padding-inline: 16px; }
  .deskbar .brand { font-size: 0; gap: 0; }
  .deskbar .band-btn { max-width: 110px; }
  .deskbar nav a { padding: 8px 9px; font-size: 13px; }
}
.band-list { display: flex; flex-direction: column; gap: 6px; }
.band-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 13px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-align: left; cursor: pointer; }
.band-row.on { background: var(--lime-soft); border-color: var(--lime-2); }
.band-row b { display: block; font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.band-row small { display: block; font-size: 12px; color: var(--grey); }
.join-form { width: 100%; max-width: 420px; text-align: left; }
.hello { display: flex; align-items: center; gap: 8px; }
.hello b { display: block; font-size: 15.5px; font-weight: 800; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hello small { display: block; font-size: 12px; color: var(--grey); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill-bal { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 99px; border: 1.5px solid var(--line-2); background: var(--paper); font-weight: 800; font-size: 12.5px; white-space: nowrap; text-decoration: none; font-variant-numeric: tabular-nums; }
.pill-bal.pos { color: var(--gain); border-color: #b9dccf; }
.pill-bal.neg { color: var(--loss); border-color: #f2c3b4; }
.deskbar .pill-bal { margin-left: 0; }
@media (min-width: 900px) { .hello .pill-bal, .hello .ic-btn { display: none; } }
.dot-ic { width: 28px; height: 28px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; flex: none; }
.home-tabs { display: flex; align-items: center; gap: 8px; }
.seg-tabs { flex: 1; min-width: 0; display: flex; padding: 3px; gap: 2px; border-radius: 99px; border: 1px solid var(--line); background: var(--paper); }
.seg-tabs button { flex: 1; min-width: 0; padding: 8px 4px; border: 0; border-radius: 99px; background: none; color: var(--grey-2); font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.seg-tabs button.on { background: var(--lime); color: var(--ink); }
.seg-tabs em { font-style: normal; font-weight: 600; font-size: 11.5px; opacity: .75; }
.filters { display: flex; flex-direction: column; gap: 8px; }
.launch { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--r-m); background: var(--lime-soft); border: 1px solid var(--lime-2); }
.launch-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 14px; }
.launch-row b { flex: 1; min-width: 120px; font-weight: 700; }
.launch-row.done b { color: var(--grey); font-weight: 600; text-decoration: line-through; }
.launch-ic { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--paper); display: grid; place-items: center; flex: none; }
.launch-row.done .launch-ic { background: var(--gain); border-color: var(--gain); color: #fff; }
.rafale-cta { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 99px; background: var(--ink); color: #fff; text-decoration: none; }
.rafale-cta .bolt { width: 38px; height: 38px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; flex: none; }
.rafale-cta b { display: block; font-size: 14.5px; }
.rafale-cta small { display: block; color: #c9c6c0; font-size: 12px; }
.rafale-cta > span:nth-child(2) { flex: 1; min-width: 0; }
.rafale-cta .go { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; flex: none; }
.search { flex-direction: row; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 99px; padding: 0 14px; background: transparent; color: var(--grey); }
.search input { border: 0; background: transparent; padding: 11px 0; box-shadow: none; font-size: 14px; }
.search input:focus { box-shadow: none; }
.search:focus-within { border-color: var(--peri); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.qcard { background: var(--c); color: var(--t); border-radius: var(--r-l); padding: 14px; display: flex; flex-direction: column; gap: 11px; cursor: pointer; transition: transform .15s, box-shadow .15s; min-width: 0; }
.qcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.qcard h3 { font-size: 17px; line-height: 1.25; letter-spacing: -.02em; font-weight: 700; }
.qc-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.qc-cat { font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; opacity: .85; margin-right: auto; }
.go-sq { width: 28px; height: 28px; border-radius: 9px; background: #fff; color: var(--ink); display: grid; place-items: center; flex: none; }
.st { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 700; background: var(--soft); color: var(--grey-2); white-space: nowrap; }
.st.light { background: rgba(255, 255, 255, .24); color: inherit; }
.st.hot { background: var(--ink); color: #fff; }
.st.wait { background: var(--lime); color: var(--ink); }
.st.warn { background: #fff; color: var(--loss); }
.st.done { background: #fff; color: var(--gain); }
.qc-yn { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qc-ynb { display: flex; justify-content: space-between; align-items: center; padding: 10px 13px; border-radius: var(--r-s); border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); font-weight: 700; font-size: 14px; cursor: pointer; }
button.qc-ynb:hover { background: #fff; box-shadow: 0 0 0 2px var(--ink); }
.qc-ynb b { font-size: 16px; font-weight: 800; }
.qc-ynb.win { background: var(--lime); }
.qc-opts { display: flex; flex-direction: column; gap: 8px; }
.qc-opt { display: flex; flex-direction: column; gap: 5px; }
.qc-opt .r { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; min-width: 0; }
.qc-opt .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qc-opt b { font-size: 15px; font-weight: 800; }
.qc-bar { height: 6px; border-radius: 9px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.qc-bar i { display: block; height: 100%; border-radius: 9px; background: currentColor; }
.qc-more { opacity: .85; font-weight: 600; }
.qc-foot { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; opacity: .95; margin-top: auto; }
.qcard .faces .ava { box-shadow: 0 0 0 2px var(--c); }
.qc-mine { margin-left: auto; background: var(--lime); color: var(--ink); padding: 2px 9px; border-radius: 99px; font-size: 11px; font-weight: 800; }

.bilan { display: flex; justify-content: space-between; gap: 10px; padding: 14px; border-radius: var(--r-l); background: var(--brick); color: #fff; }
.bl-l, .bl-r { display: flex; flex-direction: column; gap: 4px; }
.bl-r { align-items: center; justify-content: center; text-align: center; }
.bl-t { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; }
.bl-l small, .bl-r small { font-size: 11px; opacity: .9; }
.bl-r b { font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.g-wrap { position: relative; width: 132px; height: 77px; }
.g-wrap svg { width: 100%; height: 100%; }
.g-wrap b { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; font-size: 22px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.notif-sheet { max-height: 85vh; }
.notif-body { min-height: 180px; overflow-y: auto; }
.sheet.still, .sheet-wrap:has(.still) .scrim { animation: none; }
.feed-list li.new { position: relative; padding-left: 12px; }
.feed-list li.new::before { content: ''; position: absolute; left: 0; top: 18px; width: 6px; height: 6px; border-radius: 50%; background: var(--brick); }
.feed-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.feed-list li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.4; }
.feed-list li:first-child { border-top: 0; }
.feed-list a { font-weight: 600; }
.feed-list > li > div { min-width: 0; }
.feed-list small { display: block; color: var(--grey); font-size: 11.5px; margin-top: 2px; }

/* ——— Question ——— */
.market, .rafale { max-width: 760px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.topline b { font-size: 15px; }
.topline .count { font-weight: 700; color: var(--grey); font-variant-numeric: tabular-nums; }
.m-hero { background: var(--c); color: var(--t); border-radius: var(--r-l); padding: 16px; display: flex; flex-direction: column; gap: 11px; }
.m-hero h1 { font-size: clamp(22px, 4.4vw, 30px); line-height: 1.15; }
.meta-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.meta-pills span { background: rgba(255, 255, 255, .24); border-radius: 99px; padding: 4px 11px; font-size: 12px; font-weight: 700; }
.m-subj { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; font-weight: 600; }
.m-subj em { font-style: normal; background: #fff; color: var(--ink); padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 800; }
.m-desc { font-size: 14.5px; opacity: .95; white-space: pre-wrap; }
.m-by { opacity: .8; font-size: 12px; }
.opts { display: flex; flex-direction: column; gap: 7px; }
.opt { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); cursor: pointer; text-align: left; width: 100%; transition: border-color .15s, background .15s; }
.opt:hover:not([aria-disabled]) { border-color: var(--ink); }
.opt[aria-disabled] { cursor: default; }
.opt .r { display: flex; align-items: center; gap: 10px; min-width: 0; }
.opt .lbl { flex: 1; min-width: 0; font-weight: 700; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; }
.opt .p { font-weight: 800; font-size: 18px; min-width: 50px; text-align: right; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.opt .bar { height: 5px; border-radius: 9px; background: #eee9e1; overflow: hidden; }
.opt .bar i { display: block; height: 100%; border-radius: 9px; transition: width .35s; }
.opt .sub { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--grey-2); font-weight: 700; }
.opt.mine { border-color: var(--lime-2); background: var(--lime-soft); }
.opt.win { border-color: var(--gain); background: var(--gain-soft); }
.opt.lose { opacity: .6; }
.win-ic { width: 22px; height: 22px; border-radius: 50%; background: var(--gain); color: #fff; display: grid; place-items: center; flex: none; }
.mypos .mrow { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; flex-wrap: wrap; }
.mypos .nm { flex: 1; font-weight: 700; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-dasharray: 3 4; }
.chart .grid text, .chart .axis text { fill: var(--grey); font: 600 11px var(--f); }
.chart path.line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12.5px; color: var(--grey-2); font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; }
.bubbles { display: flex; flex-direction: column; gap: 10px; }
.cmt { display: flex; gap: 8px; align-items: flex-end; }
.cmt.mine { justify-content: flex-end; }
.cmt-b { background: var(--soft); border-radius: 18px 18px 18px 5px; padding: 8px 12px; max-width: 85%; }
.cmt.mine .cmt-b { background: var(--lime-soft); border-radius: 18px 18px 5px 18px; }
.cmt-h { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; }
.cmt-h small { color: var(--grey); font-size: 11px; }
.cmt-h .link-btn { margin-left: auto; font-size: 11px; }
.cmt-h .link-btn + .link-btn { margin-left: 0; }
.cmt p { white-space: pre-wrap; word-break: break-word; font-size: 14px; }
.admin-box { border-color: var(--ink); }

.verdict-b { background: var(--lav); border-radius: var(--r-l); padding: 18px 16px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.tagp { background: var(--ink); color: #fff; border-radius: 99px; padding: 5px 13px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.verdict-b .who { font-size: 30px; font-weight: 800; letter-spacing: -.045em; line-height: 1.05; }
.verdict-b > p { font-size: 13.5px; color: #4b4870; max-width: 46ch; }
.v-card { width: 100%; background: var(--paper); border-radius: var(--r-m); padding: 12px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.v-card .t { font-size: 13.5px; }
.mrow { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 13.5px; }
.mrow .nm { flex: 1; min-width: 0; }
.title-move { font-size: 12px; font-weight: 700; color: var(--ink); }
.amt-pill { padding: 3px 10px; border-radius: 99px; font-weight: 800; font-size: 12.5px; background: var(--soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.amt-pill.g { background: var(--gain-soft); color: var(--gain); }
.amt-pill.l { background: var(--loss-soft); color: var(--loss); }
.contests { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.contests .bubble { display: flex; gap: 8px; align-items: center; background: var(--paper); border-radius: 16px; padding: 8px 12px; text-align: left; font-size: 13px; }
.v-actions { width: 100%; display: flex; flex-direction: column; gap: 8px; align-items: center; }

/* Feuille de pari */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.scrim { position: absolute; inset: 0; background: rgba(29, 29, 31, .4); border: 0; padding: 0; cursor: pointer; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: relative; width: min(520px, 100%); background: var(--paper); border-radius: 28px 28px 0 0; padding: 10px 18px max(18px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; box-shadow: 0 -16px 40px -16px rgba(0, 0, 0, .4); animation: up .28s cubic-bezier(.2, .8, .2, 1); max-height: 92vh; overflow: auto; }
@media (min-width: 640px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 28px; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.handle { width: 40px; height: 4px; border-radius: 9px; background: var(--line-2); margin: 0 auto; }
.sh-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 15px; }
.sh-q { font-size: 14px; color: var(--grey-2); font-weight: 600; }
.sh-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.amt-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.amt-box { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.amt-box > small { font-size: 11.5px; color: var(--grey); font-weight: 600; }
.amt { gap: 4px; }
.amt small { font-size: 11.5px; color: var(--grey); font-weight: 600; }
.amt span { display: flex; align-items: baseline; gap: 4px; font-size: 34px; font-weight: 800; letter-spacing: -.04em; color: var(--ink); }
.amt input { width: 3.6em; padding: 0; border: 0; border-bottom: 2px solid var(--line-2); border-radius: 0; font: 800 34px var(--f); letter-spacing: -.04em; background: transparent; box-shadow: none; font-variant-numeric: tabular-nums; }
.amt input:focus { border-color: var(--ink); box-shadow: none; }
.amt-chips { display: grid; grid-template-columns: repeat(2, auto); gap: 6px; }
.amt-chips.row { display: flex; justify-content: center; }
.amt-box .amt-chips.row { justify-content: flex-start; flex-wrap: wrap; }
.amt-chips button { font: 700 13px var(--f); padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer; }
.amt-chips button.on { background: var(--lime); border-color: var(--lime-2); }
.payout { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 13px; border-radius: var(--r-s); background: var(--soft); font-size: 13px; font-weight: 600; color: var(--grey-2); }
.payout small { display: block; font-size: 11px; color: var(--grey); }
.payout b { font-size: 20px; font-weight: 800; color: var(--gain); white-space: nowrap; letter-spacing: -.03em; }

/* Mode rafale */
.r-progress { height: 6px; border-radius: 9px; background: var(--line); overflow: hidden; }
.r-progress i { display: block; height: 100%; background: var(--ink); border-radius: 9px; transition: width .3s; }
.r-card { background: var(--c); color: var(--t); border-radius: 30px; padding: 18px; display: flex; flex-direction: column; gap: 12px; min-height: 340px; touch-action: pan-y; user-select: none; transition: transform .2s; }
.r-card h1 { font-size: clamp(24px, 5vw, 32px); }
.r-opts { display: flex; flex-direction: column; gap: 7px; margin-top: auto; }
.r-opt { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--r-s); background: rgba(255, 255, 255, .92); border: 2px solid transparent; color: var(--ink); font-weight: 700; font-size: 15px; cursor: pointer; text-align: left; }
.r-opt .lbl { flex: 1; min-width: 0; }
.r-opt b { font-size: 16px; font-weight: 800; }
.r-opt.on { background: var(--lime); border-color: var(--ink); }
.r-more { font-size: 13px; font-weight: 700; color: inherit; }
.r-bottom { position: sticky; bottom: 0; z-index: 5; display: flex; flex-direction: column; gap: 10px; margin: 0 -16px; padding: 10px 16px max(10px, env(safe-area-inset-bottom)); background: var(--cream); box-shadow: 0 -10px 16px -14px rgba(29, 29, 31, .3); }
.r-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.r-actions .btn { justify-content: center; }
.r-actions .btn:has(.go) { justify-content: space-between; }

/* Créer */
.kind-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.kind { cursor: pointer; }
.kind input { position: absolute; opacity: 0; pointer-events: none; }
.kind span { display: flex; flex-direction: column; justify-content: center; gap: 3px; height: 100%; padding: 10px 8px; text-align: center; border-radius: var(--r-s); border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); }
.kind b { font-size: 13.5px; line-height: 1.25; }
.kind input:checked + span { border-color: var(--ink); background: var(--lime-soft); }
.kind input:focus-visible + span { outline: 2.5px solid var(--peri); }
form[data-kind] .k-choices, form[data-kind] .k-people { display: none; }
form[data-kind=choices] .k-choices, form[data-kind=people] .k-people { display: flex; }
form[data-kind=people] .k-people.note { display: block; }
form[data-dur] .when-custom { display: none; }
form[data-dur=custom] .when-custom { display: flex; }

/* Classement */
.lead { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-l); background: var(--peri); color: #fff; text-decoration: none; }
.lead .rk { font-size: 44px; font-weight: 800; letter-spacing: -.06em; line-height: 1; opacity: .9; }
.lead .info { flex: 1; min-width: 0; }
.lead .info b { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; font-size: 18px; }
.lead .info small { font-size: 12px; opacity: .9; }
.lead .v { font-size: 22px; font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }

.ttls { display: inline-flex; gap: 1px; margin-left: 5px; vertical-align: -1px; }
.lead .ttls { margin-left: 0; }
.ttl { padding: 0 1px; border: 0; background: none; font-size: 15px; line-height: 1.2; cursor: pointer; }
.trow { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.trow:last-child { border-bottom: 0; }
.trow .grow b { display: block; font-size: 14px; font-weight: 800; }
.trow .grow small { display: block; font-size: 12px; line-height: 1.3; color: var(--grey); }
.t-em { font-size: 21px; line-height: 1; flex: none; width: 26px; text-align: center; }
.t-free { flex: none; font-size: 12px; font-weight: 700; color: var(--grey); padding: 3px 10px; border-radius: 99px; border: 1px dashed var(--line-2); }
.t-who { flex: none; max-width: 42%; display: flex; align-items: center; gap: 7px; text-decoration: none; min-width: 0; }
.t-who > span:last-child { min-width: 0; }
.t-who b { display: block; font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-who small { display: block; font-size: 11.5px; color: var(--grey); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Comptes */
.accounts { width: 100%; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bal-card { background: var(--lime); border-radius: var(--r-l); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.bal-card > b { font-size: clamp(26px, 8vw, 36px); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.bal-card > small { font-weight: 600; }
.debt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.debt.other { opacity: .8; }
.debt .txt { flex: 1; min-width: 0; }
.debt .txt b { display: block; font-size: 14px; }
.debt .txt small { display: block; font-size: 12px; color: var(--grey); }
.debt .val { font-weight: 800; font-size: 15px; white-space: nowrap; }
.hist { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--grey-2); font-weight: 600; }
.hist span { flex: 1; }

/* Profil */
.profile-h { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.profile-h h1 { margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.profile-h .grow { min-width: 0; flex: 1 1 200px; }
.profile-tabs { flex: none; }
.profile-tabs button { overflow: hidden; text-overflow: ellipsis; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat-grid div { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: var(--r-m); background: var(--paper); border: 1px solid var(--line); }
.stat-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-grid b { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.stat-grid span { font-size: 12px; color: var(--grey); font-weight: 600; }

.title-big { display: flex; flex-direction: column; gap: 6px; }
.title-big > div { display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-radius: var(--r-s); background: var(--lav); }
.title-big b { display: block; font-size: 14.5px; font-weight: 800; }
.title-big small { display: block; font-size: 12.5px; color: #4b4870; }

/* Tuto en mode story */
body:has(.story) { overflow: hidden; }
.story { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; gap: 14px; padding: max(14px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); background: var(--c); color: var(--t); }
.story.enter { animation: fade .2s; }
.st-bars { display: flex; gap: 4px; }
.st-bars i { flex: 1; height: 4px; border-radius: 9px; background: currentColor; opacity: .25; }
.st-bars i.on { opacity: 1; }
.st-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; }
.st-top .ic-btn { color: var(--ink); }
.st-zone { position: absolute; top: 0; bottom: 0; z-index: 1; border: 0; padding: 0; background: none; cursor: pointer; }
.st-zone:focus-visible { outline-offset: -6px; }
.st-zone.prev { left: 0; width: 30%; }
.st-zone.next { right: 0; width: 70%; }
.st-body { flex: 1; min-height: 0; width: 100%; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; gap: 14px; pointer-events: none; }
.st-body h1 { font-size: clamp(30px, 9vw, 42px); letter-spacing: -.045em; line-height: 1.05; }
.st-body p { font-size: 17px; font-weight: 600; line-height: 1.4; }
.st-art { display: flex; flex-direction: column; margin-bottom: 6px; }
.st-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r-m); background: var(--paper); color: var(--ink); box-shadow: var(--shadow); font-size: 14.5px; }
.st-card .qc-ynb { background: var(--soft); cursor: default; }
.st-card .qc-ynb.st-pick { background: var(--lime); box-shadow: 0 0 0 2px var(--ink); }
.st-card .payout { padding: 0; background: none; }
.st-titles { display: flex; flex-wrap: wrap; gap: 8px; font-size: 34px; line-height: 1; }
.st-titles span { width: 56px; height: 56px; border-radius: 16px; background: rgba(255, 255, 255, .6); display: grid; place-items: center; }
.st-foot { position: relative; z-index: 2; width: 100%; max-width: 480px; margin: 0 auto; }
.st-foot .btn { background: var(--ink); color: #fff; }

/* Admin */
.admin-tabs .chip { text-decoration: none; }
.tpl-list { max-height: 560px; overflow-y: auto; display: flex; flex-direction: column; }
.tpl { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.tpl:first-child { border-top: 0; }
.tpl small { color: var(--grey); }
.preview { display: flex; flex-direction: column; gap: 8px; }
.pcard { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: var(--r-s); border: 1px solid var(--line); border-left: 6px solid var(--c); background: var(--paper); }
.pcard.off { opacity: .45; }
.pcard > input[type=checkbox] { width: 20px; height: 20px; margin-top: 10px; flex: none; }
.pcard .grow { display: flex; flex-direction: column; gap: 6px; }
.pcard input[type=text] { font-weight: 700; padding: 8px 10px; }

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

/* Conditions à l'inscription, liens légaux, signalements */
.welcome .legal-links { text-align: center; }
.check.terms { align-items: flex-start; font-weight: 500; font-size: 13.5px; line-height: 1.4; }
.check.terms a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.legal-links { font-size: 12px; color: var(--grey); }
.legal-links a { text-decoration: underline; text-underline-offset: 2px; }
.report-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; padding: 10px 12px; border-radius: var(--r-s); background: var(--soft); }
.pick-row { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; font: inherit; color: inherit; }
.pick-row:last-child { border-bottom: 0; }

/* Super admin */
.super [hidden] { display: none !important; }
.super h2 { font-size: 22px; letter-spacing: -.03em; }
.sup-top { flex-wrap: wrap; }
.sup-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.03em; white-space: nowrap; }
.sup-mark { width: 30px; display: grid; place-items: center; flex: none; }
.sup-mark svg { width: 100%; height: auto; display: block; }
.sup-todo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sup-card { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--paper); text-decoration: none; min-width: 0; }
.sup-card b { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.sup-card span { font-size: 12px; font-weight: 600; color: var(--grey); }
.sup-card.hot { background: var(--lime); border-color: var(--lime-2); }
.sup-card.hot span { color: var(--ink); }
.sup-search { display: flex; flex-direction: column; gap: 6px; }
.sup-when { white-space: nowrap; }
.sup-acts { justify-content: flex-end; }
.sup-done { opacity: .6; }
.sup-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.sup-dot.ok { background: var(--gain, #22806b); }
.sup-dot.ko { background: var(--loss, #d9502c); }
.sup-comment b { font-weight: 600; overflow-wrap: anywhere; }
.sup-more { position: relative; }
.sup-more summary { list-style: none; cursor: pointer; }
.sup-more summary::-webkit-details-marker { display: none; }
.sup-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; display: flex; flex-direction: column; align-items: stretch; gap: 6px; width: max-content; max-width: calc(100vw - 48px); padding: 10px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--paper); box-shadow: 0 10px 30px rgba(29, 29, 31, .12); }
.sup-menu .btn { justify-content: flex-start; white-space: normal; text-align: left; }
@media (max-width: 560px) { .sup-menu { left: 0; right: auto; } }
.super .lrow.wrap .grow { flex: 1 1 200px; min-width: 0; }
.super .lrow.wrap .grow small { white-space: normal; }
@media (max-width: 560px) { .super .sup-when { display: none; } .super .sup-acts { width: 100%; justify-content: flex-start; } }
