/* Popote — direction artistique
   Tomate (action), Basilic (validé / "j'ai"), Safran (mise en avant), Poivre (texte), fond Farine.
   Mobile d'abord : barre d'onglets en bas, feuilles qui montent du bas, cibles tactiles de 44 px. */
:root{
  --tomate:#E4572E; --tomate-ink:#B93C17; --tomate-soft:#FDE7DF;
  --basilic:#2E7D5B; --basilic-soft:#DDF0E6;
  --safran:#F3B23C; --safran-soft:#FDF1D6;
  --poivre:#1E2330; --muted:#677083; --line:#E7E4DE;
  --bg:#FBFAF7; --surface:#FFFFFF; --surface-2:#F4F2EE;
  --plate:#F1EEE8; --plate-rim:#DFDAD1; --scrim:rgba(20,22,28,.45); --shadow:0 1px 2px rgba(30,35,48,.06),0 6px 20px rgba(30,35,48,.06);
  --display:"Bricolage Grotesque","Avenir Next","Segoe UI",system-ui,sans-serif;
  --body:"Inter",-apple-system,"Segoe UI",system-ui,sans-serif;
  --r-lg:22px; --r-md:16px; --r-sm:12px;
  --tab-h:64px;
  color-scheme:light;
}
@media (prefers-color-scheme: dark){:root{
  --tomate:#F06A43; --tomate-ink:#FF8D6B; --tomate-soft:#3A221B;
  --basilic:#5CC08F; --basilic-soft:#1B3127;
  --safran:#F5C05A; --safran-soft:#3A3020;
  --poivre:#EEF0F4; --muted:#9AA2B2; --line:#2B2F38;
  --bg:#16181D; --surface:#1F2229; --surface-2:#262A32;
  --plate:#2A2E36; --plate-rim:#3A3F49; --scrim:rgba(0,0,0,.6); --shadow:none;
  color-scheme:dark}}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}
body{margin:0;background:var(--bg);color:var(--poivre);font:15px/1.5 var(--body);min-height:100dvh}
h1,h2,h3{font-family:var(--display);margin:0;text-wrap:balance;letter-spacing:-.01em}
p{margin:0}
button,input,select,textarea{font:inherit;color:inherit}
[hidden]{display:none!important}
svg{display:block}

/* En-tête */
.top{position:sticky;top:0;z-index:5;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:saturate(1.4) blur(12px);-webkit-backdrop-filter:saturate(1.4) blur(12px);padding-top:env(safe-area-inset-top,0px)}
.top-in{max-width:960px;margin:0 auto;height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 max(16px,env(safe-area-inset-right,0px)) 0 max(16px,env(safe-area-inset-left,0px))}
.brand{display:flex;align-items:center;gap:9px;text-decoration:none;color:var(--poivre);font-family:var(--display);font-weight:800;font-size:1.35rem;letter-spacing:-.02em}
.icon-btn{width:44px;height:44px;border-radius:50%;border:0;background:transparent;display:grid;place-items:center;cursor:pointer;color:var(--muted)}
.icon-btn svg{width:22px;height:22px}
.icon-btn:active{background:var(--surface-2)}

main{max-width:960px;margin:0 auto;padding:8px max(16px,env(safe-area-inset-right,0px)) calc(var(--tab-h) + 28px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px))}
.view{display:flex;flex-direction:column;gap:16px;animation:in .22s ease-out}
@keyframes in{from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:none}}
.view-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:6px}
.view-head h1{font-size:clamp(1.8rem,7vw,2.4rem);font-weight:800}
h2.sub{font-size:1.15rem;font-weight:600;margin-top:8px}
.hint{color:var(--muted);font-size:.88rem}

/* Boutons */
.btn{min-height:44px;border-radius:99px;border:0;padding:0 18px;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none}
.btn.sm{min-height:38px;padding:0 14px;font-size:.88rem}
.btn.primary{background:var(--tomate);color:#fff}
.btn.primary:active{background:var(--tomate-ink)}
.btn.ghost{background:var(--surface-2);color:var(--poivre)}
.btn.block{width:100%}
.btn:disabled{opacity:.5}
:focus-visible{outline:2.5px solid var(--tomate);outline-offset:2px}

.card{background:var(--surface);border-radius:var(--r-lg);box-shadow:var(--shadow);border:1px solid var(--line)}

/* Tab bar */
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:6;display:flex;justify-content:center;gap:4px;background:color-mix(in srgb,var(--surface) 92%,transparent);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-top:1px solid var(--line);padding:6px max(8px,env(safe-area-inset-right,0px)) calc(6px + env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px))}
.tabbar a{position:relative;flex:1;max-width:140px;height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--muted);text-decoration:none;font-size:.7rem;font-weight:600;border-radius:14px}
.tabbar a svg{width:24px;height:24px}
.tabbar a[aria-current="page"]{color:var(--tomate)}
.tabbar a[aria-current="page"]::before{content:"";position:absolute;top:2px;width:36px;height:30px;border-radius:12px;background:var(--tomate-soft);z-index:-1}
.badge{position:absolute;top:4px;right:calc(50% - 22px);min-width:18px;height:18px;border-radius:9px;background:var(--tomate);color:#fff;font-size:.66rem;display:grid;place-items:center;padding:0 5px}

/* Accueil */
.hello{display:flex;flex-direction:column;gap:2px;padding-top:6px}
.hello small{color:var(--muted);font-weight:500}
.hello small::first-letter{text-transform:uppercase}
.hello h1{font-size:clamp(1.9rem,8vw,2.6rem);font-weight:800;line-height:1.05}
.tonight{position:relative;overflow:hidden;background:var(--tomate);color:#fff;border-radius:var(--r-lg);padding:20px;display:flex;flex-direction:column;gap:14px;border:0}
.tonight::after{content:"";position:absolute;right:-60px;top:-60px;width:200px;height:200px;border-radius:50%;background:rgba(255,255,255,.1)}
.tonight .lbl{font-size:.75rem;text-transform:uppercase;letter-spacing:.1em;font-weight:700;opacity:.85}
.tonight .main{display:flex;align-items:center;gap:16px;position:relative;z-index:1}
.tonight svg.dish{width:96px;height:96px;flex:none;filter:drop-shadow(0 6px 12px rgba(0,0,0,.18))}
.tonight h2{font-size:1.5rem;font-weight:800;line-height:1.1}
.tonight .meta{font-size:.88rem;opacity:.9}
.tonight .btn{background:#fff;color:var(--tomate-ink);align-self:flex-start;position:relative;z-index:1}
.tonight.empty{background:var(--surface-2);color:var(--poivre)}
.tonight.empty .btn{background:var(--tomate);color:#fff}
.mini-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.mini{padding:14px;display:flex;flex-direction:column;gap:6px;cursor:pointer;text-align:left;border:1px solid var(--line);background:var(--surface);border-radius:var(--r-md);color:inherit;text-decoration:none}
.mini .lbl{font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;font-weight:700;color:var(--muted)}
.mini b{font-family:var(--display);font-size:1.6rem;line-height:1;font-variant-numeric:tabular-nums}
.mini span.s{font-size:.82rem;color:var(--muted)}
.mini.safran{background:var(--safran-soft);border-color:transparent}
.mini.basilic{background:var(--basilic-soft);border-color:transparent}
.next{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:var(--r-md);background:var(--surface);border:1px solid var(--line);cursor:pointer;text-align:left;width:100%}
.next svg.dish{width:52px;height:52px;flex:none}
.next .t{display:flex;flex-direction:column;min-width:0;flex:1}
.next .t small{font-size:.72rem;color:var(--muted);font-weight:600;text-transform:uppercase;letter-spacing:.06em}
.next .t span{font-weight:600}
.chev{color:var(--muted);flex:none}

/* Recettes */
.search{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:99px;padding:0 16px;height:48px}
.search svg{width:20px;height:20px;color:var(--muted);flex:none}
.search input{border:0;background:transparent;outline:none;flex:1;min-width:0;height:100%;font-size:1rem}
.search-row{display:flex;gap:10px;align-items:center}
.search-row .search{flex:1;min-width:0}
.filter-btn{position:relative;width:48px;height:48px;flex:none;border-radius:50%;border:1px solid var(--line);background:var(--surface);cursor:pointer;display:grid;place-items:center;color:var(--poivre)}
.filter-btn svg{width:22px;height:22px}
.filter-btn b{position:absolute;top:-3px;right:-3px;min-width:20px;height:20px;border-radius:10px;background:var(--tomate);color:#fff;font-size:.7rem;display:grid;place-items:center;padding:0 5px}
.active-filters{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.afc{height:32px;border-radius:99px;border:0;background:var(--poivre);color:var(--bg);padding:0 8px 0 12px;font-weight:600;font-size:.8rem;display:inline-flex;align-items:center;gap:6px;cursor:pointer}
.afc i{font-style:normal;font-size:1rem;opacity:.7}
.afc.with{background:var(--basilic);color:#fff}
.afc.without{background:var(--tomate);color:#fff}
.afc.clear{background:transparent;color:var(--muted);text-decoration:underline;padding:0 6px}
.active-filters .count{font-size:.8rem;color:var(--muted);margin-left:auto;font-weight:600}
.search.small{height:42px}
.fbody{display:flex;flex-direction:column;gap:20px}
.fsec{display:flex;flex-direction:column;gap:8px}
.fsec h3{font-size:1rem}
.fchips{display:flex;flex-wrap:wrap;gap:8px}
.fchips button{min-height:38px;border-radius:99px;border:1px solid var(--line);background:var(--surface);padding:0 14px;font-weight:600;font-size:.85rem;cursor:pointer}
.fchips button[aria-pressed="true"]{background:var(--poivre);border-color:var(--poivre);color:var(--bg)}
.ing-chips button.with{background:var(--basilic);border-color:var(--basilic);color:#fff}
.ing-chips button.without{background:var(--tomate);border-color:var(--tomate);color:#fff;text-decoration:line-through}
.ffoot{position:sticky;bottom:calc(-24px - env(safe-area-inset-bottom,0px));display:flex;gap:8px;background:var(--surface);padding:12px 0 calc(4px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);margin-top:4px}
.ffoot .btn{flex:1}
.tag.home{background:var(--basilic-soft);color:var(--basilic)}
.chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 calc(-1 * max(16px,env(safe-area-inset-left,0px)));padding:2px max(16px,env(safe-area-inset-left,0px))}
.chips::-webkit-scrollbar{display:none}
.chips button{flex:none;height:38px;border-radius:99px;border:1px solid var(--line);background:var(--surface);padding:0 14px;font-weight:600;font-size:.86rem;cursor:pointer;white-space:nowrap}
.chips button[aria-pressed="true"]{background:var(--poivre);border-color:var(--poivre);color:var(--bg)}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media (min-width:640px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:880px){.grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.rcard{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:12px 12px 14px;display:flex;flex-direction:column;gap:6px;text-align:left;cursor:pointer;min-width:0;box-shadow:var(--shadow)}
.rcard .pic{background:var(--surface-2);border-radius:var(--r-md);display:grid;place-items:center;aspect-ratio:4/3}
.rcard .pic svg{width:62%;height:auto}
.rcard .name{font-weight:700;font-size:.92rem;line-height:1.25}
.rcard .meta{display:flex;gap:6px;flex-wrap:wrap;font-size:.74rem;color:var(--muted);font-variant-numeric:tabular-nums}
.tag{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:99px;font-size:.7rem;font-weight:700;background:var(--surface-2);color:var(--muted)}
.tag.cookeo{background:var(--safran-soft);color:#8A5B00}
.tag.air{background:var(--basilic-soft);color:var(--basilic)}
.tag.mine{background:var(--tomate-soft);color:var(--tomate-ink)}
@media (prefers-color-scheme: dark){.tag.cookeo{color:var(--safran)}}
.empty-state{grid-column:1/-1;text-align:center;color:var(--muted);padding:30px 10px}

/* Semaine */
.days{display:flex;flex-direction:column;gap:12px}
@media (min-width:760px){.days{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}
.day{padding:12px;display:flex;flex-direction:column;gap:8px}
.day.today{border-color:var(--tomate);box-shadow:0 0 0 1px var(--tomate)}
.day-h{display:flex;justify-content:space-between;align-items:baseline;padding:0 2px}
.day-h h3{font-size:1.05rem;font-weight:700}
.day-h h3 em{font-style:normal;font-size:.7rem;font-weight:700;color:#fff;background:var(--tomate);border-radius:99px;padding:2px 8px;margin-left:6px;vertical-align:2px;font-family:var(--body)}
.day-h small{color:var(--muted);font-size:.78rem;font-variant-numeric:tabular-nums}
.meal{display:flex;align-items:center;gap:10px;background:var(--surface-2);border-radius:var(--r-md);padding:8px 8px 8px 10px;min-height:64px}
.meal.off{background:transparent;border:1.5px dashed var(--line)}
.meal .pick{flex:1;min-width:0;display:flex;align-items:center;gap:10px;border:0;background:transparent;text-align:left;cursor:pointer;padding:0;min-height:48px}
.meal .pick svg.dish{width:46px;height:46px;flex:none}
.meal .glyph{width:46px;height:46px;flex:none;border-radius:50%;display:grid;place-items:center;font-family:var(--display);font-weight:800;font-size:1.3rem;background:var(--surface);color:var(--tomate)}
.meal .txt{display:flex;flex-direction:column;min-width:0}
.meal .txt small{font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.meal .txt span{font-weight:600;font-size:.92rem;line-height:1.25;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.meal .txt .warn{color:var(--tomate-ink);font-size:.76rem;font-weight:600}
.stepper{display:flex;align-items:center;gap:2px;background:var(--surface);border-radius:99px;padding:3px;flex:none}
.stepper button{width:32px;height:32px;border-radius:50%;border:0;background:transparent;font-size:1.1rem;font-weight:600;cursor:pointer;line-height:1}
.stepper button:active{background:var(--surface-2)}
.stepper output{min-width:34px;text-align:center;font-weight:700;font-size:.86rem;font-variant-numeric:tabular-nums;display:flex;align-items:center;justify-content:center;gap:3px}
.stepper output svg{width:11px;height:13px;color:var(--muted)}
.cook{font-size:.76rem;font-weight:600;color:var(--basilic);padding:0 2px}
.confirm{display:flex;flex-direction:column;gap:10px;background:var(--tomate-soft);border-radius:var(--r-md);padding:12px 14px;font-weight:500}
.row-btns{display:flex;gap:8px;flex-wrap:wrap}
.chart{padding:14px}
.chart svg{width:100%;height:auto}
.legend{display:flex;gap:16px;font-size:.78rem;color:var(--muted);margin-top:6px}
.legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px;vertical-align:-1px}
.lg-midi{background:var(--safran)}.lg-soir{background:var(--tomate)}

/* Courses */
.aisles{display:flex;flex-direction:column;gap:12px}
@media (min-width:760px){.aisles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}}
.aisle{overflow:hidden}
.aisle header{display:flex;align-items:center;gap:10px;padding:14px 14px 10px}
.aisle header .ic{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex:none;font-size:1rem}
.aisle header h3{font-size:1rem;font-weight:700;flex:1}
.aisle header .count{font-size:.78rem;color:var(--muted);font-variant-numeric:tabular-nums;font-weight:600}
.bar{height:4px;background:var(--surface-2);margin:0 14px;border-radius:2px;overflow:hidden}
.bar i{display:block;height:100%;background:var(--basilic);transition:width .25s}
.aisle ul{list-style:none;margin:0;padding:6px 0 8px}
.aisle li{display:flex;align-items:center;gap:6px;padding:0 8px 0 14px;min-height:52px;border-top:1px solid var(--line)}
.aisle li:first-child{border-top:0}
.aisle li label{display:flex;align-items:center;gap:12px;flex:1;min-width:0;cursor:pointer;min-height:52px}
.aisle li input[type=checkbox]{appearance:none;-webkit-appearance:none;width:24px;height:24px;border-radius:8px;border:2px solid var(--line);flex:none;display:grid;place-items:center;margin:0;cursor:pointer;background:var(--surface)}
.aisle li input[type=checkbox]:checked{background:var(--basilic);border-color:var(--basilic)}
.aisle li input[type=checkbox]:checked::after{content:"";width:6px;height:11px;border:solid #fff;border-width:0 2.5px 2.5px 0;transform:rotate(45deg) translate(-1px,-1px)}
.aisle li .it{flex:1;min-width:0;display:flex;flex-direction:column}
.aisle li .it b{font-weight:600}
.aisle li .it small{color:var(--muted);font-size:.78rem;font-variant-numeric:tabular-nums}
.aisle li input:checked ~ .it{opacity:.45;text-decoration:line-through}
.aisle li .have{height:32px;border:0;border-radius:99px;background:var(--basilic-soft);color:var(--basilic);font-weight:700;font-size:.74rem;padding:0 10px;cursor:pointer;flex:none}
.aisle.place{border-color:var(--safran);border-width:1.5px}
.aisle.stock{background:transparent;box-shadow:none;border-style:dashed}
.aisle.stock li{color:var(--muted)}
.aisle.stock .have{background:var(--surface-2);color:var(--muted)}

/* Feuilles */
.overlay{position:fixed;inset:0;z-index:20;background:var(--scrim);display:flex;align-items:flex-end;justify-content:center;animation:fade .2s}
@keyframes fade{from{opacity:0}}
@media (min-width:760px){.overlay{align-items:center;padding:24px}}
.sheet{background:var(--surface);width:100%;max-width:640px;max-height:92dvh;overflow:auto;overscroll-behavior:contain;border-radius:26px 26px 0 0;padding:10px max(18px,env(safe-area-inset-right,0px)) calc(24px + env(safe-area-inset-bottom,0px)) max(18px,env(safe-area-inset-left,0px));display:flex;flex-direction:column;gap:18px;animation:up .26s cubic-bezier(.2,.8,.2,1)}
@keyframes up{from{transform:translateY(40px);opacity:.6}}
@media (min-width:760px){.sheet{border-radius:26px;padding-top:18px}}
.grabber{width:40px;height:5px;border-radius:3px;background:var(--line);align-self:center;flex:none}
@media (min-width:760px){.grabber{display:none}}
.sheet-head{display:flex;gap:14px;align-items:flex-start}
.sheet-head .t{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.sheet-head h2{font-size:1.45rem;font-weight:800;line-height:1.15}
.close{border:0;background:var(--surface-2);width:40px;height:40px;border-radius:50%;font-size:1.2rem;cursor:pointer;flex:none}
.hero-pic{background:var(--surface-2);border-radius:var(--r-lg);display:grid;place-items:center;padding:18px}
.hero-pic svg{width:150px;height:150px}
.facts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.fact{background:var(--surface-2);border-radius:var(--r-sm);padding:10px;text-align:center}
.fact b{display:block;font-family:var(--display);font-size:1.15rem}
.fact small{font-size:.72rem;color:var(--muted);font-weight:600}
.por{display:flex;align-items:center;justify-content:space-between;gap:10px}
.por h3{font-size:1.1rem}
.ing{list-style:none;margin:0;padding:0}
.ing li{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}
.ing li span:last-child{color:var(--muted);text-align:right;font-variant-numeric:tabular-nums;flex:none}
.ing .tag{margin-left:6px;height:20px}
.ing .tag.home{background:var(--basilic-soft);color:var(--basilic)}
.ing .tag.place{background:var(--safran-soft);color:#8A5B00}
.steps{list-style:none;margin:0;padding:0;counter-reset:s;display:flex;flex-direction:column;gap:12px}
.steps li{counter-increment:s;display:flex;gap:12px}
.steps li::before{content:counter(s);flex:none;width:28px;height:28px;border-radius:50%;background:var(--tomate-soft);color:var(--tomate-ink);font-weight:800;display:grid;place-items:center;font-size:.86rem;font-family:var(--display)}
.tips{display:flex;flex-direction:column;gap:10px}
.tip{border-radius:var(--r-md);padding:12px 14px;display:flex;gap:12px;align-items:flex-start}
.tip .ti{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex:none;font-size:1rem}
.tip b{display:block;font-size:.78rem;text-transform:uppercase;letter-spacing:.06em}
.tip.cookeo{background:var(--safran-soft)} .tip.cookeo .ti{background:var(--safran)}
.tip.air{background:var(--basilic-soft)} .tip.air .ti{background:var(--basilic);color:#fff}
.placebox{display:flex;flex-direction:column;gap:10px;padding:14px;border-radius:var(--r-md);background:var(--surface-2)}
.placebox .sel{display:grid;grid-template-columns:1fr 1fr;gap:8px}
select,.form input,.form textarea{width:100%;min-height:46px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--surface);padding:10px 12px;font-size:1rem;min-width:0}
.picks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
@media (min-width:560px){.picks{grid-template-columns:repeat(3,minmax(0,1fr))}}
.pk{display:flex;align-items:center;gap:8px;text-align:left;border:1px solid var(--line);background:var(--surface);border-radius:var(--r-sm);padding:8px;cursor:pointer;font-size:.84rem;font-weight:600;min-height:56px}
.pk svg.dish{width:40px;height:40px;flex:none}
.pk .glyph{width:40px;height:40px;flex:none;border-radius:50%;display:grid;place-items:center;background:var(--surface-2);color:var(--tomate);font-weight:800;font-family:var(--display)}
.pk.cur{border-color:var(--tomate);box-shadow:0 0 0 1px var(--tomate)}

/* Formulaire */
.form{display:flex;flex-direction:column;gap:14px}
.form label.f{display:flex;flex-direction:column;gap:6px;font-size:.82rem;font-weight:700;color:var(--muted)}
.form textarea{min-height:120px;resize:vertical}
.form .g2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.form fieldset{border:1px solid var(--line);border-radius:var(--r-md);padding:12px;display:flex;flex-direction:column;gap:10px;margin:0;min-width:0}
.form legend{font-weight:700;padding:0 6px}
.ingrow{display:grid;grid-template-columns:1fr 90px 40px;gap:6px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.ingrow .full{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:6px;align-items:center}
.ingrow .chk{display:flex;align-items:center;gap:6px;font-size:.8rem;color:var(--muted)}
.ingrow .chk input{width:20px;height:20px;min-height:0}
.ingrow .del{border:0;background:var(--surface-2);border-radius:50%;width:40px;height:46px;cursor:pointer;color:var(--muted)}
.err{color:var(--tomate-ink);font-weight:600;font-size:.88rem}
.actions{display:flex;gap:8px;flex-wrap:wrap}
.actions .btn{flex:1}
.setting{display:flex;flex-direction:column;gap:8px;padding:14px;border-radius:var(--r-md);background:var(--surface-2)}
.setting p{font-size:.88rem;color:var(--muted)}

.toast{position:fixed;left:50%;bottom:calc(var(--tab-h) + 20px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:var(--poivre);color:var(--bg);padding:11px 18px;border-radius:99px;font-weight:600;z-index:30;font-size:.9rem;white-space:nowrap;max-width:calc(100vw - 32px);overflow:hidden;text-overflow:ellipsis}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
