:root { --bg:#f4f6f8; --card:#fff; --text:#142B45; --muted:#5b6b7c; --line:#e1e6eb; --accent:#E85D04; --ok:#1a7f4b; --warn:#b3261e; --in:#eef1f5; --out:#dcebff; }
@media (prefers-color-scheme: dark) { :root { --bg:#0e1825; --card:#162638; --text:#eaf0f6; --muted:#9fb0c2; --line:#25394f; --in:#1d3047; --out:#1f4468; } }
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; background:var(--bg); color:var(--text); font:16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; }
main { max-width:640px; margin:0 auto; padding:16px 16px calc(88px + env(safe-area-inset-bottom)); }
h1 { font-size:22px; margin:8px 0 12px; } h2 { font-size:16px; margin:20px 0 8px; }
a { color:inherit; } small, .muted { color:var(--muted); } .center { text-align:center; } .mt { margin-top:12px; }
code { font-size:15px; letter-spacing:.06em; word-break:break-all; }
.top { position:sticky; top:0; z-index:5; display:flex; justify-content:space-between; align-items:center; padding:calc(10px + env(safe-area-inset-top)) 16px 10px; background:#142B45; color:#fff; }
.top .who { opacity:.8; margin-right:10px; font-size:14px; } .inline { display:flex; align-items:center; margin:0; }
.link { background:none; border:0; color:#fff; text-decoration:underline; font:inherit; font-size:14px; padding:0; cursor:pointer; }
.tabs { position:fixed; bottom:0; left:0; right:0; display:flex; background:var(--card); border-top:1px solid var(--line); padding-bottom:env(safe-area-inset-bottom); }
.tabs a { flex:1; text-align:center; padding:14px 4px; text-decoration:none; font-size:14px; color:var(--muted); }
.tabs a.on { color:var(--accent); font-weight:600; }
.card { display:block; background:var(--card); border:1px solid var(--line); border-radius:14px; padding:14px 16px; margin-bottom:12px; text-decoration:none; }
.card.narrow { max-width:420px; margin:24px auto; }
.card.cta { display:flex; align-items:center; gap:14px; border-color:var(--accent); border-width:2px; }
.grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; } .grid .card { margin:0; }
.stat { display:flex; flex-direction:column; } .big { font-size:30px; font-weight:700; line-height:1.1; } .big.warn { color:var(--warn); }
.cta .big { color:var(--accent); font-size:40px; }
.row-head { display:flex; justify-content:space-between; gap:10px; align-items:baseline; }
.preview { color:var(--muted); margin:4px 0 8px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tags { display:flex; flex-wrap:wrap; gap:6px; margin:6px 0; }
.tag { font-size:12px; font-weight:600; padding:2px 9px; border-radius:999px; background:var(--text); color:var(--bg); }
.tag.ghost { background:transparent; color:var(--muted); border:1px solid var(--line); }
.tag.accent { background:var(--accent); color:#fff; } .tag.warn { background:var(--warn); color:#fff; } .tag.ok { background:var(--ok); color:#fff; }
.ok-text { color:var(--ok); font-weight:600; }
.chips { display:flex; gap:8px; overflow-x:auto; padding-bottom:10px; }
.chip { padding:6px 14px; border-radius:999px; border:1px solid var(--line); background:var(--card); text-decoration:none; white-space:nowrap; font-size:14px; }
.chip.on { background:var(--text); color:var(--bg); border-color:var(--text); }
.thread { display:flex; flex-direction:column; gap:8px; margin:14px 0; }
.bubble { max-width:86%; padding:10px 12px; border-radius:14px; } .bubble .body { white-space:pre-wrap; overflow-wrap:anywhere; }
.bubble.in { align-self:flex-start; background:var(--in); border-bottom-left-radius:4px; }
.bubble.out { align-self:flex-end; background:var(--out); border-bottom-right-radius:4px; }
.proposal { border-color:var(--accent); border-width:2px; } .sources { margin:8px 0; display:flex; flex-wrap:wrap; gap:6px; align-items:center; font-size:14px; }
label { display:block; margin:10px 0; font-size:14px; color:var(--muted); }
input, textarea { display:block; width:100%; margin-top:4px; padding:12px; font:inherit; font-size:16px; color:var(--text); background:var(--bg); border:1px solid var(--line); border-radius:10px; }
textarea { resize:vertical; }
.btn { display:inline-block; padding:12px 16px; margin:4px 4px 4px 0; font:inherit; font-weight:600; border-radius:10px; border:1px solid var(--line); background:var(--card); color:var(--text); cursor:pointer; min-height:46px; }
.btn.primary { background:var(--accent); border-color:var(--accent); color:#fff; }
.actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:10px 0; } .actions .btn { margin:0; width:100%; }
.error { color:#fff; background:var(--warn); padding:10px 12px; border-radius:10px; }
.line { display:flex; justify-content:space-between; gap:12px; padding:9px 0; border-bottom:1px solid var(--line); } .line:last-child { border-bottom:0; }
.qr { background:#fff; padding:6px; border-radius:10px; }
/* Page publique d'essai */
.banner { margin:0; padding:8px 16px; background:var(--accent); color:#fff; font-size:14px; text-align:center; }
.day { border:0; padding:0; margin:0 0 14px; } .day legend { font-weight:600; padding:0; margin-bottom:6px; }
.slots { display:flex; flex-wrap:wrap; gap:8px; }
.slot { margin:0; } .slot input { position:absolute; opacity:0; width:0; height:0; }
.slot span { display:inline-block; min-width:68px; text-align:center; padding:11px 12px; border:1px solid var(--line); border-radius:10px; background:var(--card); color:var(--text); font-size:16px; font-weight:600; cursor:pointer; }
.slot input:checked + span { background:var(--accent); border-color:var(--accent); color:#fff; }
.slot input:focus-visible + span { outline:2px solid var(--text); outline-offset:2px; }
select { display:block; width:100%; margin-top:4px; padding:12px; font:inherit; font-size:16px; color:var(--text); background:var(--bg); border:1px solid var(--line); border-radius:10px; }
.check { display:flex; gap:10px; align-items:flex-start; color:var(--text); font-size:15px; } .check input { width:22px; height:22px; margin:2px 0 0; flex:none; }
.btn.wide { width:100%; margin-top:12px; font-size:17px; }
.legal { font-size:13px; color:var(--muted); }
.hp { position:absolute; left:-9999px; top:-9999px; }
.actions form { margin:0; } .actions form .btn { width:100%; }
.tabs a { font-size:13px; }
