/* à deux — papier chaud, encre brune, terracotta & sauge */
:root {
  --bg: #F5EFE6;
  --surface: #FFFCF7;
  --surface-2: #EEE5D7;
  --ink: #2A2420;
  --ink-2: #6B5F55;
  --ink-3: #A39686;
  --line: #E3D8C7;
  --accent: #C2553A;
  --accent-ink: #FFF8F2;
  --accent-soft: #F4DDD1;
  --sage: #6F8468;
  --sage-soft: #DDE5D6;
  --butter: #F3E3B5;
  --shadow: 0 1px 2px rgba(60, 40, 20, .05), 0 10px 30px -14px rgba(60, 40, 20, .18);
  --shadow-lg: 0 30px 80px -20px rgba(40, 25, 10, .35);
  --r: 22px;
  --r-sm: 14px;
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #181412; --surface: #221D1A; --surface-2: #2D2622; --ink: #F3EADF; --ink-2: #B9AB9B; --ink-3: #7F7267;
    --line: #382F29; --accent: #E27D61; --accent-ink: #1E120D; --accent-soft: #46271D; --sage: #8FA787;
    --sage-soft: #2B3528; --butter: #4A3F22;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -14px rgba(0, 0, 0, .6); --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #181412; --surface: #221D1A; --surface-2: #2D2622; --ink: #F3EADF; --ink-2: #B9AB9B; --ink-3: #7F7267;
  --line: #382F29; --accent: #E27D61; --accent-ink: #1E120D; --accent-soft: #46271D; --sage: #8FA787;
  --sage-soft: #2B3528; --butter: #4A3F22;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -14px rgba(0, 0, 0, .6); --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font: 400 15.5px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(60rem 30rem at 100% -10%, color-mix(in srgb, var(--accent-soft) 70%, transparent), transparent 70%),
    radial-gradient(40rem 26rem at -10% 110%, color-mix(in srgb, var(--sage-soft) 80%, transparent), transparent 70%);
  background-attachment: fixed;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
h1, h2, h3, p, blockquote, fieldset { margin: 0; padding: 0; border: 0; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

h1 { font: 400 clamp(2rem, 4.4vw, 3.1rem)/1.05 var(--serif); letter-spacing: -.025em; font-variation-settings: 'opsz' 144; text-wrap: balance; }
h1 em, .auth-art em { font-style: italic; color: var(--accent); font-weight: 300; }
h2 { font: 500 1.25rem/1.2 var(--serif); letter-spacing: -.01em; }
h3 { font: 600 .82rem/1.2 var(--sans); }
.eyebrow { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .5rem; }
.muted { color: var(--ink-2); }
.sub { color: var(--ink-2); margin-top: .75rem; max-width: 60ch; }
.pad { padding: .6rem 0; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.logo { width: 34px; height: 24px; flex: none; }
.brand { display: flex; align-items: center; gap: .6rem; font: 500 1.4rem/1 var(--serif); letter-spacing: -.02em; font-style: italic; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; white-space: nowrap;
  height: 42px; padding: 0 1.1rem; border-radius: 999px; font-weight: 600; font-size: .92rem;
  transition: transform .15s, background .2s, box-shadow .2s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; pointer-events: none; }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.primary:hover { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn.soft { background: var(--surface-2); color: var(--ink); }
.btn.soft:hover { background: var(--accent-soft); }
.btn.danger { color: var(--accent); }
.btn.danger:hover { background: var(--accent-soft); }
.btn.icon { width: 42px; padding: 0; }
.btn.icon.sm { width: 30px; height: 30px; }
.btn.block { width: 100%; }
.link { color: var(--accent); font-weight: 600; font-size: .88rem; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Avatars */
.av {
  display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%;
  background: var(--c, var(--accent)); color: #fff; font: 600 .85rem/1 var(--sans);
  box-shadow: 0 0 0 2px var(--surface);
}
.av.sm { width: 26px; height: 26px; font-size: .7rem; }
.av.xs { width: 20px; height: 20px; font-size: .6rem; }
.av-duo { display: inline-flex; flex: none; }
.av-duo .av + .av { margin-left: -9px; }

/* Cartes */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.35rem; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; min-height: 32px; }
.card > .btn.block { margin-top: .9rem; }
.list { display: flex; flex-direction: column; }
.row, .task, .shop-item { display: flex; align-items: center; gap: .8rem; padding: .65rem 0; width: 100%; }
.list > * + *, .list-card > * + *, .shop-group > .shop-item + .shop-item { border-top: 1px dashed var(--line); }
.row-emoji { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--surface-2); font-size: 1.05rem; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.row-main strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-main small { color: var(--ink-2); font-size: .82rem; }
.row:hover strong, .task .row-main:hover strong { color: var(--accent); }
.late { color: var(--accent); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { padding: .32rem .7rem; border-radius: 999px; background: var(--surface-2); font-size: .84rem; }
.chip.more { background: none; color: var(--ink-2); }
.empty { text-align: center; padding: 3.5rem 1rem; color: var(--ink-2); display: grid; gap: .3rem; justify-items: center; }
.empty strong { font: 500 1.25rem var(--serif); color: var(--ink); }
.empty-emoji { font-size: 2.2rem; margin-bottom: .4rem; }
.empty p { max-width: 38ch; }

.checkbox {
  display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%;
  border: 1.8px solid var(--ink-3); color: transparent; transition: all .18s;
}
.checkbox:hover { border-color: var(--sage); }
.checkbox.on { background: var(--sage); border-color: var(--sage); color: #fff; }
.checkbox .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.done strong { text-decoration: line-through; color: var(--ink-3); font-weight: 500; }

/* Pastilles / filtres */
.pills { display: flex; flex-wrap: wrap; gap: .45rem; }
.pills.center { justify-content: center; }
.pill-btn, .pill span {
  display: inline-flex; align-items: center; gap: .4rem; padding: .48rem .95rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-size: .88rem; font-weight: 500; color: var(--ink-2);
  transition: all .15s; cursor: pointer;
}
.pill-btn span { font-size: .75rem; opacity: .7; }
.pill-btn:hover, .pill span:hover { border-color: var(--ink-3); color: var(--ink); }
.pill-btn.on, .pill input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pill.swatch span { width: 36px; height: 36px; padding: 0; background: var(--c); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.pill.swatch input:checked + span { background: var(--c); border-color: var(--surface); box-shadow: 0 0 0 2.5px var(--ink); }

/* Champs */
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; min-width: 0; }
.field > span, .field legend { font-size: .8rem; font-weight: 600; color: var(--ink-2); margin-bottom: .1rem; }
.field legend { margin-bottom: .5rem; }
.field i { font-weight: 400; color: var(--ink-3); }
input, textarea, select {
  width: 100%; min-height: 46px; padding: .7rem .95rem; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--bg); transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }

/* ── Connexion ─────────────────────────────────────────────── */
.auth { min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art {
  position: relative; overflow: hidden; padding: clamp(2rem, 5vw, 4.5rem); display: flex; flex-direction: column; justify-content: center; gap: 1.5rem;
  background: var(--accent-soft);
}
.auth-art::before, .auth-art::after { content: ''; position: absolute; border-radius: 50%; width: 30rem; height: 30rem; right: -12rem; bottom: -12rem; background: var(--accent); opacity: .9; }
.auth-art::after { right: 2rem; bottom: -18rem; background: var(--sage); opacity: .82; }
.auth-art > * { position: relative; z-index: 1; }
.auth-art .brand { position: absolute; top: clamp(1.5rem, 4vw, 3rem); left: clamp(2rem, 5vw, 4.5rem); }
.auth-art h1 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); }
.auth-art p { max-width: 42ch; color: var(--ink-2); font-size: 1.05rem; }
.auth-points { display: grid; gap: .7rem; font-weight: 500; }
.auth-points li { display: flex; align-items: center; gap: .7rem; }
.auth-points .ic { color: var(--accent); }
.auth-form { display: grid; place-items: center; padding: 2rem 1.25rem; }
.auth-card { width: min(100%, 400px); }
.auth-card h2 { font-size: 2rem; font-weight: 400; margin-bottom: .3rem; }
.auth-card > .muted { margin-bottom: 1.75rem; }
.auth-card .btn { height: 50px; margin-top: .5rem; }
.switch { margin-top: 1.4rem; text-align: center; color: var(--ink-2); font-size: .9rem; }
.onboard { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem; padding: 2rem 1.25rem; text-align: center; }
.onboard .auth-card { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; box-shadow: var(--shadow); }
.code-input { text-align: center; font: 500 1.5rem var(--serif); letter-spacing: .3em; text-transform: uppercase; }
.loading { min-height: 100dvh; display: grid; place-items: center; }
.loading .logo { width: 68px; height: 48px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.9); opacity: .6; } }

/* ── Coquille ──────────────────────────────────────────────── */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 1.75rem 1rem 1.1rem; border-right: 1px solid var(--line); }
.side .brand { padding: 0 .7rem 1.9rem; }
.side-nav { display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.nav-btn { display: flex; align-items: center; gap: .8rem; padding: .7rem .85rem; border-radius: 14px; color: var(--ink-2); font-weight: 500; transition: background .15s, color .15s; }
.nav-btn .ic { width: 20px; height: 20px; }
.nav-btn:hover { background: var(--surface-2); color: var(--ink); }
.nav-btn.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); font-weight: 600; }
.nav-btn.on .ic { color: var(--accent); }
.side-foot { display: flex; align-items: center; gap: .3rem; }
.couple-card { display: flex; align-items: center; gap: .7rem; flex: 1; min-width: 0; padding: .55rem .6rem; border-radius: 14px; }
.couple-card:hover { background: var(--surface-2); }
.couple-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.couple-name strong { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.couple-name small { color: var(--ink-3); font-size: .76rem; }
.topbar, .tabbar { display: none; }
.main { min-width: 0; }
.page { max-width: 1120px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 3.2rem) clamp(1.1rem, 4vw, 3rem) 4rem; }
.page.enter > * { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }
.page.enter > *:nth-child(2) { animation-delay: .06s; }
.page.enter > *:nth-child(3) { animation-delay: .12s; }
.page.enter > *:nth-child(n+4) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.head-actions { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.head-actions .btn.primary { margin-left: .4rem; }
.page > .pills { margin-bottom: 1.1rem; }
.page > .sub { margin: -1rem 0 1.5rem; }

/* ── Accueil ───────────────────────────────────────────────── */
.hero { margin-bottom: 2.2rem; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
.home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; align-items: start; }
.span-2 { grid-column: 1 / -1; }
.invite { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; background: var(--butter); border-color: transparent; }
.invite h2 { font-size: 1.6rem; margin-bottom: .3rem; }
.code { font: 500 1.7rem/1 var(--serif); letter-spacing: .22em; padding: .9rem 1.2rem .9rem 1.4rem; border-radius: var(--r-sm); background: var(--surface); border: 1px dashed var(--ink-3); }
.code.sm { font-size: 1.15rem; padding: .6rem .8rem .6rem 1rem; }
.code:hover { border-color: var(--accent); color: var(--accent); }
.meal-today { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.meal-slot {
  position: relative; display: flex; flex-direction: column; gap: .25rem; min-height: 92px; padding: .85rem .95rem; width: 100%;
  border-radius: 16px; border: 1px dashed var(--line); color: var(--ink-3); transition: all .15s;
}
.meal-slot small { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.meal-slot strong { font: 400 1.02rem/1.25 var(--serif); padding-right: 1.6rem; overflow-wrap: break-word; hyphens: auto; min-width: 0; max-width: 100%; }
.meal-slot .av, .meal-slot .av-duo, .meal-slot .add-hint { position: absolute; right: .7rem; bottom: .7rem; }
.meal-slot .av { box-shadow: 0 0 0 2px var(--surface-2); }
.meal-slot:hover { border-color: var(--accent); color: var(--accent); }
.meal-slot.filled { background: var(--surface-2); border: 1px solid transparent; color: var(--ink-2); }
.meal-slot.filled strong { color: var(--ink); font-weight: 500; }
.meal-slot.filled:hover { border-color: var(--accent); }
.note-card { background: var(--accent-soft); border-color: transparent; }
.note-card blockquote { font: italic 300 1.45rem/1.3 var(--serif); letter-spacing: -.01em; overflow-wrap: anywhere; }
.note-by { margin-top: .7rem; color: var(--ink-2); font-size: .9rem; }
.note-empty { font: italic 300 1.3rem/1.3 var(--serif); color: var(--ink-2); padding: .4rem 0 .8rem; width: 100%; }
.note-empty:hover { color: var(--accent); }
.together { background: var(--sage-soft); border-color: transparent; }
.big-number { font: 300 clamp(3rem, 6vw, 4.4rem)/1 var(--serif); letter-spacing: -.04em; margin-bottom: .5rem; }
.big-number span { font-size: 1.1rem; font-style: italic; letter-spacing: 0; color: var(--ink-2); }

/* ── Planning ──────────────────────────────────────────────── */
.planning { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); gap: 1.1rem; align-items: start; }
.cal { padding: 1rem; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); padding: .2rem 0 .6rem; }
.cal-week span { text-align: center; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.day { display: flex; flex-direction: column; gap: 3px; min-height: 88px; padding: .45rem; border-radius: 14px; overflow: hidden; transition: background .12s; }
.day:hover { background: var(--surface-2); }
.day.out { opacity: .35; }
.day-num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font: 500 .95rem var(--serif); }
.day.today .day-num { background: var(--accent); color: var(--accent-ink); }
.day.sel { background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--ink); }
.dots { display: none; gap: 3px; padding-left: 4px; }
.dots i, .legend i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); display: inline-block; }
.day-labels { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.day-labels em { font-style: normal; font-size: .7rem; line-height: 1.35; padding: 1px 6px; border-radius: 4px; background: var(--surface-2); box-shadow: inset 3px 0 0 var(--c, var(--ink-3)); padding-left: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day-labels em.more { background: none; box-shadow: none; color: var(--ink-3); }
.legend { display: flex; gap: 1.1rem; flex-wrap: wrap; padding: .9rem .4rem .1rem; font-size: .8rem; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: .4rem; }
.legend i { width: 8px; height: 8px; }
.day-panel { position: sticky; top: 1.5rem; }
.day-panel h2 { margin-bottom: .8rem; font-size: 1.45rem; }
.day-meals { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }

/* ── Repas ─────────────────────────────────────────────────── */
.meal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .6rem; }
.meal-day { display: flex; flex-direction: column; gap: .5rem; padding: .7rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.meal-day.today { border-color: var(--accent); }
.meal-day-head { display: flex; align-items: baseline; justify-content: space-between; padding: .2rem .25rem .3rem; }
.meal-day-head span { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.meal-day-head b { font: 400 1.5rem/1 var(--serif); }
.meal-day.today .meal-day-head b { color: var(--accent); }
.meal-week .meal-slot { min-height: 118px; padding: .7rem; }
.meal-week .meal-slot strong { font-size: .95rem; padding-right: 0; padding-bottom: 2.2rem; }

/* ── Courses ───────────────────────────────────────────────── */
.quick-add { display: grid; grid-template-columns: minmax(0, 1fr) 90px 170px auto; gap: .5rem; padding: .6rem; margin-bottom: 1.3rem; border-radius: 999px; }
.quick-add input, .quick-add select { border-radius: 999px; border-color: transparent; background: transparent; min-height: 42px; }
.quick-add .qty, .quick-add select { background: var(--surface-2); }
.shop-groups { columns: 2; column-gap: 1.1rem; }
.shop-group { break-inside: avoid; margin-bottom: 1.1rem; padding: 1.1rem 1.25rem .6rem; }
.shop-group h3 { display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem; font-size: .9rem; }
.shop-group h3 span { margin-left: auto; color: var(--ink-3); font-weight: 500; }
.shop-item .row-main { flex-direction: row; align-items: baseline; gap: .6rem; }
.shop-item .btn.icon { opacity: 0; }
.shop-item:hover .btn.icon, .shop-item .btn.icon:focus-visible { opacity: 1; }
.done-group { background: transparent; box-shadow: none; border-style: dashed; margin-top: .4rem; }

/* ── Tâches ────────────────────────────────────────────────── */
.score { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1.5rem; align-items: center; margin-bottom: 1.3rem; }
.score-bars { display: grid; gap: .55rem; }
.score-row { display: flex; align-items: center; gap: .7rem; }
.score-row b { width: 1.5rem; text-align: right; font: 500 1.1rem var(--serif); }
.bar { flex: 1; height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: var(--c); transition: width .5s cubic-bezier(.2, .7, .2, 1); }
.list-card { padding: .5rem 1.25rem; }
.task small .ic { width: .95em; height: .95em; }
.done-block { margin-top: 1.4rem; }
.done-block summary { cursor: pointer; color: var(--ink-2); font-weight: 600; font-size: .88rem; padding: .5rem .2rem; margin-bottom: .5rem; }
.done-block .card { background: transparent; box-shadow: none; border-style: dashed; }

/* ── Sorties ───────────────────────────────────────────────── */
.outing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.1rem; }
.outing {
  display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; padding: 1.3rem; min-height: 190px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  transition: transform .2s cubic-bezier(.2, .7, .2, 1), box-shadow .2s;
}
.outing:hover { transform: translateY(-3px) rotate(-.4deg); box-shadow: var(--shadow-lg); }
.outing:nth-child(3n+2) { background: var(--accent-soft); border-color: transparent; }
.outing:nth-child(3n) { background: var(--sage-soft); border-color: transparent; }
.outing-emoji { font-size: 1.9rem; line-height: 1; margin-bottom: .6rem; }
.outing-emoji.big { font-size: 3.4rem; }
.outing-cat { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.outing strong { font: 500 1.35rem/1.15 var(--serif); letter-spacing: -.01em; margin-bottom: .3rem; overflow-wrap: anywhere; }
.outing small { color: var(--ink-2); font-size: .84rem; }
.outing p { color: var(--ink-2); font-size: .88rem; margin-top: .3rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stars { color: var(--accent); letter-spacing: .1em; margin-top: auto; padding-top: .4rem; }
.stars i { font-style: normal; opacity: .25; }
.random { text-align: center; padding: 1rem 0 .5rem; display: grid; gap: .5rem; justify-items: center; }
.random h3 { font: 400 2rem/1.1 var(--serif); letter-spacing: -.02em; }
.random-actions { display: flex; gap: .5rem; margin-top: 1.2rem; flex-wrap: wrap; justify-content: center; }

/* ── Recettes ──────────────────────────────────────────────── */
.recipe-grid, .vault-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.1rem; align-items: start; }
.recipe { display: flex; flex-direction: column; gap: 1rem; padding: 1.2rem; }
.recipe-main { display: flex; flex-direction: column; gap: .25rem; width: 100%; }
.recipe-main strong { font: 500 1.3rem/1.15 var(--serif); letter-spacing: -.01em; overflow-wrap: anywhere; }
.recipe-main:hover strong { color: var(--accent); }
.recipe-main small { color: var(--ink-2); font-size: .84rem; }
.recipe-main p { color: var(--ink-2); font-size: .88rem; margin-top: .3rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recipe-actions { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.recipe-actions .btn { height: 38px; padding: 0 .9rem; font-size: .86rem; }
.recipe-actions .btn.icon { width: 38px; padding: 0; margin-left: auto; }
.recipe-pick { margin-bottom: 1.2rem; }
.recipe-pick .chip, .frequent .chip { cursor: pointer; transition: background .15s, color .15s; }
.recipe-pick .chip:hover, .frequent .chip:hover { background: var(--accent-soft); color: var(--accent); }
.frequent { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin: -.4rem 0 1.3rem; }
.frequent .eyebrow { margin: 0 .4rem 0 .2rem; }
.frequent .chip { background: var(--surface); border: 1px solid var(--line); }
.frequent .ic { width: .9em; height: .9em; color: var(--ink-3); }

/* ── Photo du jour ─────────────────────────────────────────── */
.photo-today { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.page > .photo-today { max-width: 640px; margin-bottom: 2rem; }
.photo, .photo-drop, .photo-wait { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; width: 100%; }
.photo { display: block; background: var(--surface-2); box-shadow: var(--shadow); transition: transform .2s cubic-bezier(.2, .7, .2, 1); }
.photo:hover { transform: translateY(-2px); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .av { position: absolute; top: .6rem; left: .6rem; box-shadow: 0 0 0 2px #fff; }
.photo-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .8rem .7rem; color: #fff; font-size: .84rem; line-height: 1.3; text-align: left;
  background: linear-gradient(transparent, rgba(20, 12, 6, .72)); display: flex; flex-direction: column; gap: .1rem; }
.photo-cap b { font: 500 .95rem var(--serif); }
.photo-drop, .photo-wait { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; padding: 1rem; text-align: center; border: 1.5px dashed var(--line); color: var(--ink-2); }
.photo-drop { color: var(--accent); background: var(--accent-soft); border-color: transparent; transition: transform .15s; }
.photo-drop:hover { transform: scale(1.015); }
.photo-drop .ic { width: 34px; height: 34px; }
.photo-drop strong { font: 500 1.15rem/1.2 var(--serif); color: var(--ink); }
.photo-drop small, .photo-wait span { font-size: .86rem; color: var(--ink-2); }
.photo-month { display: flex; align-items: baseline; gap: .6rem; font: 500 1.3rem var(--serif); margin: 1.6rem 0 .8rem; }
.photo-month span { font: 400 .85rem var(--sans); color: var(--ink-3); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.photo-grid .photo { border-radius: 16px; }
.photo-preview, .photo-full { display: block; width: 100%; max-height: 56vh; object-fit: contain; border-radius: var(--r-sm); background: var(--surface-2); margin-bottom: 1rem; }
.photo-legend { font: italic 300 1.2rem/1.35 var(--serif); margin-bottom: 1rem; overflow-wrap: anywhere; }
.photo-legend .muted { font: 400 .9rem var(--sans); }
.streak { padding: .45rem .9rem; border-radius: 999px; background: var(--butter); font-weight: 600; font-size: .88rem; }

/* ── Budget ────────────────────────────────────────────────── */
.budget-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; margin-bottom: 1.1rem; }
.balance { background: var(--butter); border-color: transparent; display: flex; flex-direction: column; align-items: flex-start; }
.balance-big { font: 300 clamp(1.7rem, 3.2vw, 2.4rem)/1.15 var(--serif); letter-spacing: -.02em; margin-bottom: 1.2rem; flex: 1; }
.balance-big b, .balance-line b { font-weight: 500; font-style: italic; color: var(--accent); white-space: nowrap; }
.balance-line { font: 400 1.3rem/1.25 var(--serif); margin-bottom: .35rem; }
.big-number.sm { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 1rem; }
.score-row b.wide { width: auto; min-width: 5.5rem; font-size: .95rem; white-space: nowrap; }
.cats { margin-bottom: 1.1rem; display: grid; gap: .7rem; }
.cats h3 { margin-bottom: .2rem; }
.cat-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 6rem; align-items: center; gap: .9rem; font-size: .92rem; }
.cat-row .bar i { background: var(--ink-3); }
.cat-row b { text-align: right; font: 500 1rem var(--serif); white-space: nowrap; }
.amount { font: 500 1.08rem var(--serif); white-space: nowrap; }
.amount.settle { color: var(--sage); }

/* ── Coffre ────────────────────────────────────────────────── */
.vault-info { display: flex; gap: .7rem; align-items: flex-start; max-width: 74ch; margin: -.6rem 0 1.5rem; color: var(--ink-2); font-size: .9rem; }
.vault-info .ic { color: var(--sage); margin-top: .2rem; }
.vault-card { display: flex; flex-direction: column; gap: .6rem; padding: 1.1rem; }
.vault-card header { display: flex; align-items: center; gap: .7rem; margin-bottom: .2rem; }
.vault-card header strong { font: 500 1.2rem/1.2 var(--serif); }
.vault-card header .btn.icon { width: 36px; height: 36px; }
.vault-card > p { font-size: .88rem; padding: .2rem .2rem 0; overflow-wrap: anywhere; }
.cred { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: .1rem; padding: .55rem .5rem .55rem .9rem; border-radius: var(--r-sm); background: var(--surface-2); }
.cred small { grid-column: 1 / -1; grid-row: 1; font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.cred code { grid-column: 1; grid-row: 2; font: 500 .95rem/1.4 ui-monospace, 'SF Mono', Menlo, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: all; }
.cred code.masked { letter-spacing: .18em; color: var(--ink-3); user-select: none; }
.cred .btn { grid-row: 2; }

/* ── Formulaires : cases, menu « Plus » ────────────────────── */
.check { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; padding: .8rem .95rem; border-radius: var(--r-sm); background: var(--surface-2); font-size: .92rem; font-weight: 500; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; min-height: 0; flex: none; padding: 0; border-radius: 7px; border: 1.8px solid var(--ink-3); background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--sage); border-color: var(--sage); }
.check input:checked::after { content: ''; width: 10px; height: 5px; border: solid #fff; border-width: 0 0 2.4px 2.4px; transform: rotate(-45deg) translate(1px, -1px); }
.sheet-lead { margin-bottom: 1.2rem; }
.danger-link { display: flex; margin-top: -.8rem; color: var(--ink-3); }
.sheet-link { display: inline-flex; align-items: center; gap: .4rem; margin: -.4rem 0 1.3rem; }
.more-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; padding-bottom: 1.4rem; }
.more-item { display: flex; flex-direction: column; gap: .8rem; padding: 1.1rem; border-radius: var(--r); background: var(--surface-2); font-weight: 600; }
.more-item .ic { width: 24px; height: 24px; color: var(--accent); }
.more-item.on { box-shadow: inset 0 0 0 1.5px var(--ink); }
a.btn { text-decoration: none; }

/* ── Navigation regroupée ──────────────────────────────────── */
.side-nav { overflow-y: auto; margin: 0 -.4rem; padding: 0 .4rem .6rem; scrollbar-width: thin; }
.nav-group { font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 1rem .85rem .35rem; }
.nav-group:first-child { margin-top: 0; }
.side .nav-btn { padding: .55rem .85rem; }
.small { font-size: .84rem; }
.wrap { white-space: normal !important; }

/* ── Humeur & comptes à rebours ────────────────────────────── */
.mood-bar { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; margin: -1rem 0 1rem; }
.mood-bar .eyebrow { margin: 0 .5rem 0 0; }
.mood { width: 40px; height: 40px; border-radius: 50%; font-size: 1.3rem; transition: transform .15s, background .15s; }
.mood:hover { background: var(--surface-2); transform: scale(1.15); }
.mood.on { background: var(--accent-soft); }
.mood-now { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .8rem .3rem .35rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.mood-now b { font-size: 1.2rem; font-weight: 400; }
button.mood-now:hover { border-color: var(--accent); }
.count-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.count-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .95rem .45rem .5rem; border-radius: 999px; background: var(--butter); font-size: .9rem; font-weight: 500; transition: transform .15s; }
.count-chip:hover { transform: translateY(-1px); }
.count-chip b { padding: .2rem .6rem; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: .78rem; font-weight: 600; }
.count-chip.cycle { background: var(--accent-soft); padding-left: .8rem; }
.count-chip.add { background: none; border: 1px dashed var(--line); color: var(--ink-2); padding-left: .8rem; }
.count-chip.add:hover { border-color: var(--accent); color: var(--accent); }

/* ── Question du jour ──────────────────────────────────────── */
.question-card { background: var(--sage-soft); border-color: transparent; }
.question-card.big { max-width: 760px; margin-bottom: 1rem; padding: 1.8rem; }
.q-text { font: 400 1.5rem/1.25 var(--serif); letter-spacing: -.01em; margin-bottom: 1rem; text-wrap: balance; }
.question-card.big .q-text { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.q-text.sm { font-size: 1.15rem; margin-bottom: .7rem; }
.q-form { display: grid; gap: .6rem; margin-bottom: .7rem; }
.q-form textarea { background: var(--surface); }
.q-form .btn { justify-self: start; }
.q-answers { display: grid; gap: .6rem; }
.q-answer { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem .9rem; border-radius: var(--r-sm); background: var(--surface); }
.q-answer p { color: var(--ink); line-height: 1.45; overflow-wrap: anywhere; }
.q-answer.waiting p { color: var(--ink-3); font-style: italic; }
.q-day { max-width: 760px; margin-bottom: .8rem; }
.q-day .q-answer { background: var(--surface-2); }

/* ── Musique ───────────────────────────────────────────────── */
.song { display: flex; align-items: center; gap: .7rem; padding: .6rem 0; }
.song + .song { border-top: 1px dashed var(--line); }
.song img { width: 48px; height: 48px; border-radius: 10px; flex: none; object-fit: cover; background: var(--surface-2); }
.song .btn.icon { width: 38px; height: 38px; }
.apple-link { font-size: .78rem; font-weight: 600; color: var(--accent); white-space: nowrap; text-underline-offset: 3px; }
.song.pick { padding: .5rem; border-radius: var(--r-sm); border: 1.5px solid transparent; cursor: pointer; }
.song.pick + .song.pick { border-top-color: transparent; }
.song.pick:hover { background: var(--surface-2); }
.song.pick.on { border-color: var(--ink); background: var(--surface-2); }
.song-results { margin-bottom: 1rem; display: grid; gap: .15rem; }
.credit { margin-top: .8rem; }
.page > .credit { margin-top: 1.2rem; }

/* ── Souvenirs ─────────────────────────────────────────────── */
.memory { margin-bottom: 1rem; }
.memory .photo-grid { margin: .4rem 0 .6rem; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.memory-teaser { background: var(--butter); border-color: transparent; }
.memory-teaser .photo-today { margin-top: .9rem; }
.recap { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; margin-bottom: 1.2rem; }
.recap-tile { display: grid; gap: .1rem; padding: 1.1rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.recap-tile span { font-size: 1.3rem; }
.recap-tile b { font: 300 2.2rem/1.1 var(--serif); letter-spacing: -.03em; }
.recap-tile small { color: var(--ink-2); font-size: .84rem; }
.recap-tile.zero { opacity: .5; }
.recap-tile.wide { grid-column: span 2; background: var(--sage-soft); border-color: transparent; }
.page > .photo-month:first-of-type { margin-top: .4rem; }

/* ── Cycle ─────────────────────────────────────────────────── */
.cycle-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1.1rem; align-items: start; margin-bottom: 1.1rem; }
.cycle-status, .cycle-partner { background: var(--accent-soft); border-color: transparent; display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
.cycle-partner { margin-bottom: 1.1rem; display: block; }
.cycle-big { font: 300 clamp(1.7rem, 3.2vw, 2.4rem)/1.15 var(--serif); letter-spacing: -.02em; }
.cycle-status .btn { margin-top: .6rem; }
.cycle-intro { max-width: 640px; display: grid; gap: .9rem; justify-items: start; }
.cycle-intro .field, .cycle-settings .field { margin: 0; }
.cycle-settings { display: grid; gap: 1rem; justify-items: start; margin-top: 1.1rem; }
.ccal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cday { position: relative; aspect-ratio: 1; max-height: 52px; border-radius: 50%; display: grid; place-items: center; font: 500 .95rem var(--serif); justify-self: center; width: 100%; max-width: 46px; }
.cday:not(:disabled):hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.cday.out { opacity: .3; }
.cday.today { box-shadow: inset 0 0 0 1.8px var(--ink); }
.cday.period, .lg.period { background: var(--accent); color: var(--accent-ink); }
.cday.predicted, .lg.predicted { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.cday.fertile, .lg.fertile { background: var(--sage-soft); }
.cday i { position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.legend .lg { width: 12px; height: 12px; border-radius: 50%; }
.cycle-actions { margin-bottom: 1.2rem; }
.cycle-actions .chip { cursor: pointer; }
.cycle-actions .chip:hover { background: var(--accent-soft); }
.disclaimer { max-width: 70ch; margin-top: 1.2rem; }

/* ── Pages publiques (confidentialité, assistance) ─────────── */
.legal { max-width: 720px; margin: 0 auto; padding: clamp(1.5rem, 5vw, 3.5rem) 1.25rem 4rem; }
.legal .brand { display: inline-flex; color: inherit; text-decoration: none; margin-bottom: 2.5rem; }
.legal h1 { margin-bottom: .4rem; }
.legal .sub { margin: 1rem 0 2rem; }
.legal h2 { font-size: 1.5rem; font-weight: 400; margin: 2.4rem 0 .7rem; }
.legal h3 { font-size: 1rem; margin: 1.3rem 0 .4rem; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.65; }
.legal p { margin-bottom: .8rem; }
.legal ul { list-style: disc; padding-left: 1.2rem; margin-bottom: .8rem; display: grid; gap: .35rem; }
.legal strong { color: var(--ink); }
.legal a:not(.btn):not(.brand) { color: var(--accent); text-underline-offset: 3px; }
.legal-foot, .legal-links { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .9rem; }
.legal-foot { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.legal-links { justify-content: center; margin-top: 1.6rem; font-size: .82rem; }
.legal-links.start { justify-content: flex-start; margin: 0 0 1.3rem; }
.legal-links a { color: var(--ink-3); text-underline-offset: 3px; }
.legal-links a:hover { color: var(--accent); }

/* ── Feuille & toast ───────────────────────────────────────── */
.overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 1.25rem; background: rgba(30, 20, 12, .42); backdrop-filter: blur(6px); animation: fade .2s both; }
.sheet { width: min(100%, 520px); max-height: min(92dvh, 820px); display: flex; flex-direction: column; background: var(--surface); border-radius: 28px; box-shadow: var(--shadow-lg); animation: pop .32s cubic-bezier(.2, .8, .2, 1) both; }
.sheet > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.2rem .4rem 1.6rem; }
.sheet > header h2 { font-size: 1.5rem; font-weight: 400; }
.sheet-body { padding: 1rem 1.6rem .4rem; overflow-y: auto; }
.sheet > footer { display: flex; justify-content: space-between; gap: .6rem; padding: 1rem 1.6rem 1.4rem; border-top: 1px solid var(--line); }
.settings-code { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; margin-bottom: 1.3rem; border-radius: var(--r-sm); background: var(--butter); }
.settings-code .eyebrow { margin-bottom: .15rem; color: var(--ink-2); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.toast {
  position: fixed; left: 50%; bottom: 2rem; z-index: 60; transform: translate(-50%, 1.5rem); opacity: 0; pointer-events: none;
  padding: .75rem 1.2rem; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 500; font-size: .9rem;
  box-shadow: var(--shadow-lg); transition: all .3s cubic-bezier(.2, .8, .2, 1); max-width: calc(100vw - 2rem);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Tablette & mobile ─────────────────────────────────────── */
@media (max-width: 1180px) {
  .meal-week { grid-template-columns: 1fr; }
  .meal-day { display: grid; grid-template-columns: 92px 1fr 1fr; align-items: stretch; }
  .meal-day-head { flex-direction: column; justify-content: center; gap: .2rem; }
  .meal-week .meal-slot { min-height: 78px; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .side { display: none; }
  .topbar {
    display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20;
    padding: calc(.6rem + env(safe-area-inset-top)) 1.1rem .6rem;
    background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px);
  }
  .topbar-actions { display: flex; align-items: center; gap: .3rem; }
  .topbar .brand { font-size: 1.25rem; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 30;
    left: .7rem; right: .7rem; bottom: calc(.7rem + env(safe-area-inset-bottom)); padding: .35rem;
    background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(18px);
    border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg);
  }
  .tab { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .5rem 0 .4rem; border-radius: 18px; color: var(--ink-3); font-size: .68rem; font-weight: 600; }
  .tab .ic { width: 22px; height: 22px; }
  .tab.on { color: var(--accent); background: var(--accent-soft); }
  .page { padding-bottom: 7.5rem; }
  .home-grid, .planning, .score, .budget-top, .cycle-grid { grid-template-columns: 1fr; }
  .song { flex-wrap: wrap; }
  .song .row-main { flex-basis: 40%; }
  .more-grid { grid-template-columns: repeat(3, 1fr); }
  .more-item { padding: .9rem .7rem; font-size: .82rem; }
  .cat-row { grid-template-columns: 118px minmax(0, 1fr) auto; gap: .6rem; }
  .day-panel { position: static; }
  .shop-groups { columns: 1; }
  .shop-item .btn.icon { opacity: .6; }
  .head-actions .btn.primary span, .head-actions .btn.ghost span { display: none; }
  .head-actions .btn.primary { width: 42px; padding: 0; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { min-height: 46dvh; padding-top: 5.5rem; }
  .auth-points { display: none; }
  .toast { bottom: 6.5rem; }
}
@media (max-width: 600px) {
  .day { min-height: 58px; align-items: center; padding: .35rem 0; }
  .day-labels { display: none; }
  .dots { display: flex; padding: 0; }
  .cal { padding: .6rem; }
  .quick-add { grid-template-columns: minmax(0, 1fr) 70px auto; border-radius: var(--r); }
  .quick-add select { display: none; }
  .quick-add .btn span { display: none; }
  .quick-add .btn { width: 42px; padding: 0; }
  .meal-day { grid-template-columns: 64px 1fr 1fr; padding: .5rem; }
  .meal-day-head span { font-size: .6rem; letter-spacing: .04em; }
  .overlay { padding: 0; place-items: end center; }
  .sheet { border-radius: 28px 28px 0 0; width: 100%; padding-bottom: env(safe-area-inset-bottom); animation-name: slide; }
  @keyframes slide { from { transform: translateY(100%); } }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
