/* UPSelf : sombre, lumineux, cartes en verre, couleurs vives par catégorie. */

:root {
  --bg: #07090b;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .08);
  --surface-3: rgba(255, 255, 255, .12);
  --border: rgba(255, 255, 255, .08);
  --text: #f4f6f5;
  --muted: #8b958f;
  --faint: #5a625e;

  --accent: #34d399;
  --accent-2: #10b981;
  --accent-ink: #03140d;
  --danger: #fb7185;

  /* une couleur par type de bloc */
  --meeting: #60a5fa;
  --task: #e2e8f0;
  --high: #fb7185;
  --meditation: #a78bfa;
  --sport: #fb923c;
  --meal: #fbbf24;
  --pause: #64748b;
  --free: #34d399;

  --radius: 22px;
  --c: var(--accent);
  color-scheme: dark;
}

.t-meeting { --c: var(--meeting); }
.t-task { --c: var(--task); }
.t-high { --c: var(--high); }
.t-meditation { --c: var(--meditation); }
.t-sport { --c: var(--sport); }
.t-meal { --c: var(--meal); }
.t-pause { --c: var(--pause); }
.t-free { --c: var(--free); }

* { box-sizing: border-box; margin: 0; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100dvh;
  color: var(--text);
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(900px 520px at 85% -220px, rgba(16, 185, 129, .22), transparent 70%),
    radial-gradient(700px 420px at -10% -120px, rgba(96, 165, 250, .10), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}

main {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 8px) 16px calc(120px + env(safe-area-inset-bottom));
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.muted { color: var(--muted); }
.center { text-align: center; }
.cap::first-letter { text-transform: uppercase; }
.i { flex: none; }
.offscreen { position: fixed; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; }

/* ---------- Barre des jours (accueil) ---------- */
.day-strip {
  position: sticky; top: 0; z-index: 4; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: calc(-8px - env(safe-area-inset-top)) -16px 0;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
  background: linear-gradient(var(--bg) 70%, transparent);
}
.day-strip::-webkit-scrollbar { display: none; }
.day {
  flex: 1 0 46px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0;
  border-radius: 16px; border: 1px solid var(--border); background: var(--surface); color: var(--muted);
}
.day span { font-size: 11px; font-weight: 600; text-transform: capitalize; }
.day b { font-size: 17px; color: var(--text); }
.day.on {
  border-color: transparent; color: var(--accent-ink);
  background: linear-gradient(135deg, #6ee7b7, var(--accent-2)); box-shadow: 0 8px 20px -8px rgba(16, 185, 129, .8);
}
.day.on b { color: var(--accent-ink); }
.day-strip + #day .top { padding-top: 8px; }

/* ---------- En-tête ---------- */
.top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 18px 2px 18px; }
.hello { color: var(--muted); font-size: 15px; font-weight: 500; }
h1 { font-size: 30px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--text);
}
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c); }

/* ---------- Icônes dans une pastille colorée ---------- */
.ico {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 14px;
  color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent);
}
.ico.sm { width: 32px; height: 32px; border-radius: 10px; }
.ico.xl { width: 76px; height: 76px; border-radius: 24px; box-shadow: 0 0 50px -6px color-mix(in srgb, var(--c) 60%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); }

/* ---------- Carte héros "Maintenant" ---------- */
.hero {
  position: relative; overflow: hidden; padding: 20px; border-radius: 28px;
  background:
    radial-gradient(420px 200px at 100% 0%, color-mix(in srgb, var(--c) 28%, transparent), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid color-mix(in srgb, var(--c) 28%, var(--border));
  box-shadow: 0 20px 60px -30px color-mix(in srgb, var(--c) 70%, transparent);
  display: flex; flex-direction: column; gap: 16px;
}
.hero-row { display: flex; align-items: center; gap: 16px; }
.hero-ring { position: relative; flex: none; display: grid; place-items: center; }
.hero-ring span { position: absolute; font-size: 15px; font-weight: 800; }
.hero-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hero-title { font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.hero-sub { color: var(--muted); font-size: 15px; }
.hero-next {
  display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 14px;
}
.hero-next b { color: var(--text); font-weight: 600; }

.ring .ring-bg { fill: none; stroke: var(--surface-2); }
.ring .ring-fg { fill: none; stroke: var(--c); stroke-linecap: round; transition: stroke-dashoffset .6s ease; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c) 60%, transparent)); }

/* ---------- Tuiles Méditation / Sport / Calories ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0 8px; }
.tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 12px;
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); text-align: left;
}
.tile-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.tile-value { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.tile-value small { font-size: 12px; color: var(--muted); font-weight: 600; }
.tile.is-done { border-color: color-mix(in srgb, var(--c) 40%, transparent); background: color-mix(in srgb, var(--c) 10%, transparent); }
.tile.is-done .tile-value { color: var(--c); }

/* ---------- Messages ---------- */
.notice {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; padding: 12px 14px; border-radius: 16px;
  background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .2); color: #fde68a; font-size: 14px;
}
.notice .i { margin-top: 1px; color: var(--meal); }
.hint { color: var(--muted); font-size: 14px; margin: 10px 2px 14px; }
.empty { color: var(--muted); padding: 14px 4px; list-style: none; }

/* ---------- Titre de section ---------- */
.section-head { display: flex; justify-content: space-between; align-items: center; margin: 26px 2px 12px; }
.section-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface-2); font-size: 14px; font-weight: 600; color: var(--accent);
}

/* ---------- Planning (timeline) ---------- */
.timeline { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tl { display: grid; grid-template-columns: 46px 1fr; gap: 8px; align-items: center; }
.tl-time { font-size: 13px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.tl-card {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 14px 10px 10px;
  border-radius: 20px; border: 1px solid var(--border); background: var(--surface); text-align: left;
}
.tl-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tl-title { font-weight: 650; font-size: 16px; overflow-wrap: anywhere; }
.tl-sub { color: var(--muted); font-size: 13px; }
.tl-check {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--accent); color: var(--accent-ink);
}
.tl-card.done .tl-title { text-decoration: line-through; text-decoration-color: var(--faint); color: var(--muted); }
.tl-card.done .ico { filter: grayscale(.6); opacity: .6; }
.tl-card.current {
  background: color-mix(in srgb, var(--c) 10%, transparent);
  border-color: color-mix(in srgb, var(--c) 55%, transparent);
  box-shadow: 0 0 30px -10px color-mix(in srgb, var(--c) 70%, transparent);
}
.tl.past { opacity: .45; }
.tl-card { position: relative; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.tl-card.dragging {
  z-index: 3; transition: none; background: #161b18;
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, .8), 0 0 0 2px var(--c); transform-origin: center;
}
.drag-time {
  position: absolute; right: 12px; top: 50%; translate: 0 -50%; padding: 6px 12px; border-radius: 999px;
  background: var(--c); color: #07110c; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums;
}
.tl-pausebar { display: flex; align-items: center; gap: 8px; padding: 2px 14px; color: var(--faint); font-size: 13px; }

/* ---------- Boutons ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; padding: 0 18px;
  border: 0; border-radius: 18px; text-decoration: none; text-align: center; font-size: 17px; font-weight: 700;
  color: var(--accent-ink);
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 70%, white), var(--c));
  box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--c) 80%, transparent);
  transition: transform .12s ease;
}
.btn:active { transform: scale(.98); }
.btn.soft { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.btn.soft.is-done { color: var(--accent); }
.btn.danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--danger) 70%, transparent); }
.btn.link { background: transparent; color: var(--muted); box-shadow: none; font-weight: 600; }
.btn.pulse { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.03); box-shadow: 0 0 40px -6px var(--c); } }
.stack { display: flex; flex-direction: column; gap: 10px; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.round {
  width: 56px; height: 56px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%;
  text-decoration: none; background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border);
}
.round.sm { width: 40px; height: 40px; }
.round.big {
  width: 84px; height: 84px; color: var(--accent-ink);
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 65%, white), var(--c));
  box-shadow: 0 14px 40px -10px var(--c);
}
.round.prio.on { background: color-mix(in srgb, var(--high) 22%, transparent); color: var(--high); }

/* ---------- Saisie rapide (Demain) ---------- */
.quick {
  display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border-radius: 22px;
  background: var(--surface); border: 1.5px solid var(--border);
}
.quick:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(52, 211, 153, .12); }
.quick-ico { color: var(--accent); display: grid; }
.quick input { flex: 1; min-width: 0; min-height: 54px; border: 0; outline: none; background: transparent; font-size: 19px; }
.times { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.times[hidden] { display: none; }
.times label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
.times input {
  min-height: 48px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--border); outline: none;
  background: var(--surface); font-size: 17px; color: var(--text);
}
.times .btn { grid-column: 1 / -1; }
.list-row.full { width: 100%; text-align: left; }
.hint-chip .i { vertical-align: -2px; }
.hints { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 16px; }
.hint-chip { font-size: 12.5px; color: var(--muted); padding: 5px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.hint-chip b { color: var(--text); }

.list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.list-row {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 10px 10px 10px;
  border-radius: 20px; background: var(--surface); border: 1px solid var(--border);
}

/* ---------- Réglages ---------- */
.group-title { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin: 22px 6px 8px; }
.group { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.field { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 10px 8px 12px; }
.field + .field { border-top: 1px solid var(--border); }
.field-label { flex: 1; font-weight: 550; }
.field input {
  width: 112px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 12px; outline: none;
  background: var(--surface-2); font-size: 17px; text-align: right; font-variant-numeric: tabular-nums;
}

/* ---------- Barre d'onglets flottante ---------- */
nav.tabs {
  position: fixed; z-index: 5; left: 50%; transform: translateX(-50%);
  bottom: calc(12px + env(safe-area-inset-bottom)); width: min(340px, calc(100% - 32px));
  display: flex; align-items: center; justify-content: space-around; padding: 8px 10px;
  border-radius: 999px; background: rgba(18, 22, 20, .82); border: 1px solid var(--border);
  backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .7);
}
nav.tabs a {
  display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 76px; padding: 6px 0;
  color: var(--faint); text-decoration: none; font-size: 11px; font-weight: 600;
}
nav.tabs a.active { color: var(--text); }
nav.tabs a.active .i { color: var(--accent); }
nav.tabs a.tab-plus {
  min-width: 0; width: 58px; height: 58px; margin: -18px 0 -6px; border-radius: 50%; justify-content: center;
  color: var(--accent-ink); background: linear-gradient(135deg, #6ee7b7, var(--accent-2));
  box-shadow: 0 10px 30px -6px rgba(16, 185, 129, .8), 0 0 0 5px var(--bg);
}
nav.tabs a.tab-plus.active .i { color: var(--accent-ink); }
body.immersive nav.tabs { display: none; }

/* ---------- Écrans plein écran (Méditation, Sport) ---------- */
.module { display: flex; flex-direction: column; gap: 16px; padding-bottom: 20px; }
body.immersive main { padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
.module > * { position: relative; z-index: 1; }
.module::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(600px 460px at 50% 8%, color-mix(in srgb, var(--c) 26%, transparent), transparent 70%), var(--bg);
}
.m-top { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; }
.m-spacer { width: 40px; }
.m-question {
  font-family: ui-serif, "New York", Georgia, serif; font-weight: 600; font-size: 27px; line-height: 1.3;
  letter-spacing: -.01em; text-align: center; padding: 0 6px; text-wrap: balance;
}
.m-title { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.note {
  width: 100%; resize: none; padding: 14px 16px; border-radius: 18px; outline: none; font-size: 16px;
  background: var(--surface); border: 1px solid var(--border);
}
.note:focus { border-color: color-mix(in srgb, var(--c) 60%, transparent); }

/* Minuteur */
.runner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.r-count { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.r-name { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.r-cue { color: var(--muted); font-size: 15px; min-height: 21px; padding: 0 12px; }
.r-next { color: var(--muted); font-size: 14px; min-height: 20px; }
.ring-wrap { position: relative; width: min(250px, 68vw); aspect-ratio: 1; margin: 6px auto; }
.big-ring { width: 100%; height: 100%; }
.big-ring circle { fill: none; stroke-width: 12; }
.big-ring .ring-bg { stroke: var(--surface-2); }
.big-ring .ring-fg { stroke: var(--c); stroke-linecap: round; transition: stroke-dashoffset .25s linear; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--c) 70%, transparent)); }
.runner.resting { --c: var(--accent); }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.r-time { font-size: 58px; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.r-state { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.r-controls { display: flex; align-items: center; gap: 22px; margin-top: 4px; }

/* Sport */
.sport-hero { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 12px 0 6px; }
.sport-hero .ico.xl { margin-bottom: 6px; }
.card { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); padding: 14px; }
.video-card { display: flex; align-items: center; gap: 12px; }
.empty-card p:first-child { font-weight: 700; }
.fold summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
.fold summary::after { content: '+'; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
.fold[open] summary::after { content: '–'; }
.fold[open] summary { margin-bottom: 10px; }
.add-cal { margin-top: 10px; }
.add-cal summary { justify-content: flex-start; align-items: center; gap: 8px; color: var(--accent); }
.add-cal summary::after { margin-left: auto; }
.add-cal .hint { margin-bottom: 0; }
.program { padding: 0; list-style: none; counter-reset: n; }
.program li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 15px; }
.week { display: flex; flex-direction: column; }
.week-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-weight: 550; }
.week-row.today span { color: var(--c); }
select, .form input {
  min-height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border); outline: none;
  background: var(--surface-2); font-size: 16px;
}
.form { display: flex; flex-direction: column; gap: 10px; }
.form-row { display: grid; grid-template-columns: 90px 1fr; gap: 10px; }

/* Nourriture */
.kcal-hero { position: relative; width: 200px; height: 200px; margin: 6px auto 0; display: grid; place-items: center; }
.kcal-hero .ring { position: absolute; inset: 0; }
.kcal-center { display: flex; flex-direction: column; align-items: center; }
.kcal-big { font-size: 52px; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.kcal-left { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--c); }
.macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.macros div { display: flex; flex-direction: column; align-items: center; padding: 10px 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.macros b { font-size: 17px; }
.macros span { font-size: 12px; color: var(--muted); }
.row-kcal { font-size: 17px; font-variant-numeric: tabular-nums; }
.disclaimer { color: var(--faint); font-size: 12.5px; text-align: center; padding: 0 12px; }

.meal-photo { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid var(--border); background: var(--surface); aspect-ratio: 4 / 3; }
.meal-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.meal-photo.small { aspect-ratio: 16 / 7; }
.meal-photo.scanning::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .35)); }
.scanline {
  position: absolute; z-index: 1; left: 0; right: 0; height: 3px; background: var(--c);
  box-shadow: 0 0 24px 6px color-mix(in srgb, var(--c) 70%, transparent); animation: scan 1.6s ease-in-out infinite alternate;
}
@keyframes scan { from { top: 4%; } to { top: 94%; } }

.edit-row { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.edit-row input { min-height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid transparent; outline: none; background: var(--surface-2); font-size: 16px; }
.edit-row input:focus { border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.e-name { width: 100%; font-weight: 650; }
.e-nums { display: flex; align-items: center; gap: 8px; }
.e-nums label { flex: 1; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.e-nums input { width: 100%; min-width: 0; text-align: right; font-variant-numeric: tabular-nums; }
.total-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.total-row b { font-size: 22px; color: var(--c); }
.total-row .muted { width: 100%; font-size: 13px; }

.reader { overflow: hidden; border-radius: 24px; background: #000; min-height: 240px; border: 1px solid var(--border); }
.reader video { width: 100% !important; display: block; }

.status-ok { display: flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 650; }
.btn[disabled] { opacity: .6; }

/* ---------- Panneau d'actions (monte du bas) ---------- */
#sheet { position: fixed; inset: 0; z-index: 10; display: flex; align-items: flex-end; background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
#sheet[hidden] { display: none; }
#sheet .panel {
  width: 100%; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px;
  padding: 10px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 30px 30px 0 0;
  background: #121614; border: 1px solid var(--border); animation: up .22s ease-out;
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.grabber { width: 40px; height: 5px; border-radius: 3px; background: var(--surface-3); margin: 0 auto 6px; }
.sheet-title { font-size: 21px; font-weight: 800; padding: 0 4px; }
.prompt-input {
  min-height: 54px; padding: 0 16px; border-radius: 16px; border: 1.5px solid var(--border); outline: none;
  background: var(--surface-2); font-size: 18px;
}
.prompt-input:focus { border-color: var(--accent); }
.sheet-sub { color: var(--muted); font-size: 14px; padding: 0 4px 6px; margin-top: -6px; }

/* ---------- Petit message temporaire ---------- */
#toast {
  position: fixed; z-index: 20; left: 50%; transform: translateX(-50%);
  bottom: calc(100px + env(safe-area-inset-bottom)); max-width: calc(100% - 32px);
  padding: 11px 18px; border-radius: 999px; text-align: center; font-weight: 650; font-size: 15px;
  background: rgba(244, 246, 245, .95); color: #07110c; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .8);
}
#toast[hidden] { display: none; }
