/* Рецепты Мариночки — v3: тёплый кремовый, оранжевый акцент, шалфей */
:root{
 --bg:#fbf6f0;--card:#ffffff;--fg:#2a211c;--muted:#8c8077;--line:#efe5da;--soft:#f5ede4;
 --accent:#f0712c;--accent-fg:#ffffff;--accent-soft:#fde8da;
 --sage:#7f9d7a;--sage-fg:#ffffff;--sage-soft:#e8efe4;
 --shadow:0 1px 2px rgba(64,40,20,.05),0 6px 20px -8px rgba(64,40,20,.12);
 --r:20px;
 /* Telegram fullscreen: system inset + Telegram header (close/menu buttons) */
 --top:max(env(safe-area-inset-top,0px),calc(var(--tg-safe-area-inset-top,0px) + var(--tg-content-safe-area-inset-top,0px)));
 --bot:max(var(--tg-safe-area-inset-bottom,0px),env(safe-area-inset-bottom,0px));
 color-scheme:light;
}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]){
 --bg:#16120f;--card:#211b17;--fg:#f5ede5;--muted:#a3968b;--line:#322a24;--soft:#2a231e;
 --accent:#ff8443;--accent-fg:#1b120c;--accent-soft:#3d2618;--sage:#93b08d;--sage-fg:#12180f;--sage-soft:#26301f;
 --shadow:0 1px 2px rgba(0,0,0,.3),0 8px 24px -10px rgba(0,0,0,.6);color-scheme:dark}}
:root[data-theme=dark]{
 --bg:#16120f;--card:#211b17;--fg:#f5ede5;--muted:#a3968b;--line:#322a24;--soft:#2a231e;
 --accent:#ff8443;--accent-fg:#1b120c;--accent-soft:#3d2618;--sage:#93b08d;--sage-fg:#12180f;--sage-soft:#26301f;
 --shadow:0 1px 2px rgba(0,0,0,.3),0 8px 24px -10px rgba(0,0,0,.6);color-scheme:dark}

*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;background:var(--bg);color:var(--fg)}
body{font:15px/1.45 Manrope,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;-webkit-font-smoothing:antialiased;overflow-x:hidden}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;text-align:inherit}
input{font:inherit;color:inherit}
img{display:block;max-width:100%}
[hidden]{display:none!important}
.i{display:inline-flex;width:20px;height:20px;flex:none}.i svg{width:100%;height:100%}
.muted{color:var(--muted)}.sm{font-size:13px}.xs{font-size:12px}
.h1{font-size:26px;line-height:1.15;font-weight:800;letter-spacing:-.02em;margin:0}
.h2{font-size:18px;font-weight:700;letter-spacing:-.01em;margin:0}

/* layout */
.view{padding:calc(var(--top) + 14px) 16px calc(96px + var(--bot));max-width:640px;margin:0 auto;display:flex;flex-direction:column;gap:16px}
.top{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding-top:6px}
.top p{margin:0 0 2px}
.icon-btn{width:44px;height:44px;border-radius:50%;background:var(--card);box-shadow:var(--shadow);display:grid;place-items:center;flex:none}
.icon-btn:active{transform:scale(.94)}
.icon-btn.spin .i{animation:spin .5s ease}
@keyframes spin{to{transform:rotate(360deg)}}
.row-h{display:flex;align-items:baseline;justify-content:space-between;gap:12px}

/* search */
.search-row{display:flex;gap:10px}
.search{flex:1;min-width:0;display:flex;align-items:center;gap:10px;height:50px;padding:0 14px;background:var(--card);border-radius:16px;box-shadow:var(--shadow);color:var(--muted)}
.search input{flex:1;min-width:0;border:0;outline:0;background:none;color:var(--fg);font-size:15px}
.search input::placeholder{color:var(--muted)}
.search input::-webkit-search-cancel-button{display:none}
.clear{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--soft)}
.clear .i{width:16px;height:16px}
.filter-btn{position:relative;width:50px;height:50px;border-radius:16px;background:var(--accent);color:var(--accent-fg);display:grid;place-items:center;flex:none}
.filter-btn .dot{position:absolute;top:9px;right:9px;width:10px;height:10px;border-radius:50%;background:var(--card);border:2px solid var(--accent)}

/* chips */
.chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 -16px;padding:2px 16px 6px;scroll-padding-inline:16px}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;height:38px;padding:0 16px;border-radius:999px;background:var(--card);box-shadow:var(--shadow);font-weight:600;font-size:14px;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.chip[aria-pressed=true]{background:var(--accent);color:var(--accent-fg)}
.chip .i{width:16px;height:16px}

/* recipe of the day */
.day{position:relative;display:block;width:100%;border-radius:var(--r);overflow:hidden;box-shadow:var(--shadow);aspect-ratio:16/10;background:var(--soft)}
.day img{width:100%;height:100%;object-fit:cover}
.day .cap{position:absolute;inset:auto 0 0 0;padding:44px 16px 14px;background:linear-gradient(transparent,rgba(20,12,6,.8));color:#fff;display:flex;flex-direction:column;gap:4px;text-align:left}
.day .pill{align-self:flex-start;font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px;background:#f0712c;color:#fff}
.day h3{margin:0;font-size:20px;line-height:1.2;font-weight:800;text-wrap:balance}
.day .m{font-size:13px;opacity:.9}

/* cards */
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media(min-width:560px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.card{position:relative;background:var(--card);border-radius:var(--r);box-shadow:var(--shadow);overflow:hidden;display:flex;flex-direction:column}
.card .ph{display:block;aspect-ratio:1/1;background:var(--soft);overflow:hidden}
.card .ph img{width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .3s}
.card .ph img.ok{opacity:1}
.card .tx{padding:10px 12px 12px;display:flex;flex-direction:column;gap:6px;flex:1;width:100%}
.card .t{font-weight:700;font-size:14px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card .m{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:4px;margin-top:auto}
.card .m .i{width:13px;height:13px}
.fav{position:absolute;top:8px;right:8px;width:34px;height:34px;border-radius:50%;background:color-mix(in srgb,var(--card) 88%,transparent);backdrop-filter:blur(8px);display:grid;place-items:center;color:var(--muted)}
.fav .i{width:18px;height:18px}
.fav.on{color:var(--accent)}.fav.on svg{fill:currentColor}
.fav.pop{animation:pop .35s ease}
@keyframes pop{50%{transform:scale(1.25)}}
.done-mark{position:absolute;top:8px;left:8px;height:24px;padding:0 8px;border-radius:999px;background:var(--sage);color:var(--sage-fg);font-size:11px;font-weight:700;display:inline-flex;align-items:center;gap:3px}
.done-mark .i{width:12px;height:12px}

/* rows (favorites, history) */
.rows{display:flex;flex-direction:column;gap:10px}
.rwi{position:relative}
.rw{display:flex;align-items:center;gap:12px;padding:10px 52px 10px 10px;background:var(--card);border-radius:18px;box-shadow:var(--shadow);width:100%}
.rw img{width:72px;height:72px;border-radius:14px;object-fit:cover;background:var(--soft);flex:none}
.rw .tx{min-width:0;display:flex;flex-direction:column;gap:3px}
.rw b{font-size:15px;line-height:1.25;font-weight:700;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.rw small{font-size:13px;color:var(--muted)}
.rwi .fav{top:50%;right:10px;margin-top:-17px;background:var(--soft)}
.rwi>.side{position:absolute;top:50%;right:14px;transform:translateY(-50%);color:var(--muted)}

/* empty */
.empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:36px 20px;color:var(--muted);background:var(--card);border-radius:var(--r);box-shadow:var(--shadow)}
.empty>.i{width:44px;height:44px;padding:11px;border-radius:50%;background:var(--accent-soft);color:var(--accent);box-sizing:content-box}
.empty b{color:var(--fg);font-size:16px}
.empty .btn{margin-top:8px}

/* buttons */
.btn{height:54px;padding:0 22px;border-radius:16px;background:var(--accent);color:var(--accent-fg);font-weight:700;font-size:16px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-align:center}
.btn:active{transform:scale(.98)}
.btn.sage{background:var(--sage);color:var(--sage-fg)}
.btn.ghost{background:var(--card);color:var(--fg);box-shadow:inset 0 0 0 1.5px var(--line)}
.btn.soft{background:var(--accent-soft);color:var(--accent)}
.btn.w{width:100%}
.btn.sm{height:42px;font-size:14px;padding:0 16px;border-radius:12px}
.btn.sq{width:54px;padding:0;flex:none}

/* tabbar */
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:20;display:grid;grid-template-columns:repeat(5,1fr);padding:8px 4px calc(8px + var(--bot));background:var(--card);border-top:1px solid var(--line)}
.tabbar button{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11px;font-weight:600;color:var(--muted);padding:4px 0;text-align:center}
.tabbar .i{width:24px;height:24px}
.tabbar [aria-current]{color:var(--accent)}
.badge{position:absolute;top:0;left:calc(50% + 6px);min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--accent);color:var(--accent-fg);font-size:11px;font-weight:800;display:grid;place-items:center}
.badge.dot{min-width:12px;width:12px;height:12px;padding:0;top:2px;left:calc(50% + 7px);border:2px solid var(--card)}
.mini{position:fixed;z-index:19;left:0;right:0;bottom:calc(68px + var(--bot));height:46px;padding:0 16px;background:var(--card);border-top:1px solid var(--line);color:var(--fg);font-weight:700;font-size:14px;display:flex;align-items:center;gap:10px;white-space:nowrap;font-variant-numeric:tabular-nums;text-align:left}
.mini .go{margin-left:auto;color:var(--accent);font-size:13px}
.mini .i{width:26px;height:26px;padding:5px;border-radius:50%;background:#f0712c;color:#fff;box-sizing:border-box}
.mini.ring{background:var(--accent-soft)}
.mini.ring .i{animation:ring .8s ease infinite}
.has-mini .view{padding-bottom:calc(144px + var(--bot))}
@keyframes ring{50%{transform:scale(1.15)}}

/* solid strip under Telegram's own header in fullscreen, so scrolled content never sits under its buttons */
body::before{content:'';position:fixed;top:0;left:0;right:0;height:var(--top);background:var(--bg);z-index:35;pointer-events:none}

/* layers (detail / cook / pages) */
.layer{position:fixed;inset:0;z-index:30;background:var(--bg);overflow-y:auto;overscroll-behavior:contain;animation:up .28s cubic-bezier(.2,.8,.2,1)}
#page{z-index:31}#cook{z-index:32}
@keyframes up{from{transform:translateY(24px);opacity:0}}
.wrap{max-width:640px;margin:0 auto;padding:calc(var(--top) + 12px) 16px calc(110px + var(--bot));display:flex;flex-direction:column;gap:18px}
.bar{display:flex;align-items:center;justify-content:space-between;gap:12px}
.bar h2{flex:1;min-width:0;text-align:center;font-size:17px;font-weight:700;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bar .sp0{width:44px;flex:none}
.round{width:44px;height:44px;border-radius:50%;background:var(--card);box-shadow:var(--shadow);display:grid;place-items:center;flex:none;color:var(--fg)}
.round.fav{position:static;backdrop-filter:none;color:var(--muted)}
.round.fav.on{color:var(--accent)}

.hero{position:relative;border-radius:24px;overflow:hidden;aspect-ratio:4/3;background:var(--soft);box-shadow:var(--shadow)}
.hero img{width:100%;height:100%;object-fit:cover}
.hero .nav{position:absolute;inset:12px 12px auto 12px;display:flex;justify-content:space-between}
.hero .round{background:color-mix(in srgb,var(--card) 90%,transparent);backdrop-filter:blur(10px)}
.ttl{display:flex;flex-direction:column;gap:6px}
.ttl .rub{font-size:12px;font-weight:800;color:var(--accent);text-transform:uppercase;letter-spacing:.07em}
.ttl h1{margin:0;font-size:26px;line-height:1.15;font-weight:800;letter-spacing:-.02em;text-wrap:balance}
.meta{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.meta div{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 6px;background:var(--card);border-radius:16px;box-shadow:var(--shadow);text-align:center}
.meta .i{color:var(--accent);width:22px;height:22px}
.meta b{font-size:14px;font-weight:700;line-height:1.2}
.meta small{font-size:11px;color:var(--muted)}
.lvl{display:inline-flex;align-items:flex-end;gap:3px;height:22px;padding:2px 0}
.lvl i{width:5px;border-radius:2px;background:var(--line)}
.lvl i:nth-child(1){height:8px}.lvl i:nth-child(2){height:13px}.lvl i:nth-child(3){height:18px}
.lvl i.on{background:var(--accent)}
.sec{display:flex;flex-direction:column;gap:10px}
.sec p{margin:0;color:color-mix(in srgb,var(--fg) 82%,var(--muted))}
.allerg{display:flex;flex-wrap:wrap;gap:6px}
.allerg span{font-size:12px;font-weight:700;padding:5px 10px;border-radius:999px;background:var(--sage-soft);color:var(--sage)}

/* KBJU */
.kbju{background:var(--card);border-radius:var(--r);box-shadow:var(--shadow);padding:14px;display:flex;flex-direction:column;gap:10px}
.kbju .hd{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.kbju .hd b{font-size:15px}
.kbju .cells{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.kbju .c{display:flex;flex-direction:column;align-items:center;gap:2px;padding:10px 4px;border-radius:12px;background:var(--soft)}
.kbju .c b{font-size:17px;font-weight:800;font-variant-numeric:tabular-nums}
.kbju .c small{font-size:11px;color:var(--muted)}
.kbju .c.k{background:var(--accent-soft)}.kbju .c.k b{color:var(--accent)}
.kbju .note{font-size:12px;color:var(--muted);margin:0}

/* ingredients */
.ings{background:var(--card);border-radius:var(--r);box-shadow:var(--shadow);padding:4px 14px;display:flex;flex-direction:column}
.ings .gh{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);padding:12px 0 2px}
.ig{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);width:100%}
.ig:last-child{border-bottom:0}
.ig .e{width:40px;height:40px;border-radius:12px;background:var(--soft);display:grid;place-items:center;font-size:20px;flex:none}
.ig .n{flex:1;min-width:0;font-weight:600;line-height:1.3}
.ig .a{color:var(--muted);font-weight:600;font-size:14px;text-align:right;max-width:42%;font-variant-numeric:tabular-nums}
.ig.done .n{text-decoration:line-through;color:var(--muted)}
.ig .ck{width:24px;height:24px;border-radius:8px;border:2px solid var(--line);display:grid;place-items:center;color:transparent;flex:none}
.ig .ck .i{width:14px;height:14px}
.ig.done .ck{background:var(--sage);border-color:var(--sage);color:var(--sage-fg)}
.ig.done .e{opacity:.5}

.steps-pv{display:flex;flex-direction:column;gap:10px;margin:0;padding:0;list-style:none}
.steps-pv li{display:flex;gap:12px;padding:14px;background:var(--card);border-radius:18px;box-shadow:var(--shadow)}
.steps-pv .n{width:28px;height:28px;border-radius:50%;background:var(--accent-soft);color:var(--accent);font-weight:800;font-size:13px;display:grid;place-items:center;flex:none}
.steps-pv .tm{display:inline-flex;align-items:center;gap:4px;margin-top:6px;font-size:12px;font-weight:700;color:var(--accent)}
.steps-pv .tm .i{width:14px;height:14px}
.tip{padding:14px 16px;border-radius:18px;background:var(--sage-soft);display:flex;flex-direction:column;gap:4px}
.tip b{color:var(--sage);font-size:13px}
.outro{margin:0;color:var(--muted);font-size:14px}
.cooked-note{display:flex;align-items:center;gap:8px;padding:10px 14px;border-radius:14px;background:var(--sage-soft);color:var(--sage);font-weight:700;font-size:14px}
.cooked-note .i{width:18px;height:18px}
.mark{align-self:center;font-size:14px;font-weight:700;color:var(--muted);display:inline-flex;align-items:center;gap:6px;padding:8px 12px}
.mark .i{width:18px;height:18px}

.actions{position:fixed;left:0;right:0;bottom:0;z-index:5;padding:12px 16px calc(12px + var(--bot));background:var(--bg);border-top:1px solid var(--line)}
.actions>div{max-width:640px;margin:0 auto;display:flex;gap:10px}
.actions .btn:first-child{flex:1}

/* cook mode */
.prog{display:flex;gap:4px}
.prog i{flex:1;height:5px;border-radius:3px;background:var(--line)}
.prog i.on{background:var(--accent)}
.stepno{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.stepno b{font-size:15px}
.spic{border-radius:22px;overflow:hidden;aspect-ratio:16/9;background:var(--soft);box-shadow:var(--shadow)}
.spic img{width:100%;height:100%;object-fit:cover}
.stxt{font-size:19px;line-height:1.5;font-weight:600;margin:0}
.timer{background:var(--card);border-radius:24px;box-shadow:var(--shadow);padding:18px;display:flex;flex-direction:column;align-items:center;gap:14px}
.dial{position:relative;width:200px;height:200px}
.dial svg{width:100%;height:100%;transform:rotate(-90deg)}
.dial circle{fill:none;stroke-width:12}
.dial .tr{stroke:var(--accent-soft)}
.dial .fg{stroke:var(--accent);stroke-linecap:round;transition:stroke-dashoffset .3s linear}
.dial .rd{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.dial .rd b{font-size:42px;font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.dial .rd small{font-size:13px;color:var(--muted)}
.timer.fin .dial .rd b{color:var(--accent)}
.tctl{display:flex;align-items:center;gap:24px}
.tctl .round{width:52px;height:52px}
.tctl .main{width:70px;height:70px;border-radius:50%;background:var(--accent);color:var(--accent-fg);display:grid;place-items:center;box-shadow:0 10px 22px -8px var(--accent)}
.tctl .main .i{width:28px;height:28px}
.tctl .main svg{fill:currentColor}
.cnav{position:fixed;left:0;right:0;bottom:0;z-index:5;padding:12px 16px calc(12px + var(--bot));background:var(--bg);border-top:1px solid var(--line)}
.cnav>div{max-width:640px;margin:0 auto;display:grid;grid-template-columns:1fr 1.5fr;gap:10px}
.finale{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:12px 0}
.finale .big{font-size:64px;line-height:1}
.finale h2{margin:0;font-size:24px;font-weight:800}
.finale p{margin:0;color:var(--muted)}

/* cook tab */
.now{background:var(--card);border-radius:24px;box-shadow:var(--shadow);overflow:hidden;display:flex;flex-direction:column}
.now img{width:100%;aspect-ratio:16/9;object-fit:cover;background:var(--soft)}
.now .tx{padding:14px 16px 16px;display:flex;flex-direction:column;gap:10px}
.now .lbl{font-size:12px;font-weight:800;color:var(--accent);text-transform:uppercase;letter-spacing:.06em}
.now h3{margin:0;font-size:19px;font-weight:800;line-height:1.2}
.how{display:flex;flex-direction:column;gap:10px;margin:0;padding:0;list-style:none}
.how li{display:flex;gap:12px;align-items:center;padding:12px 14px;background:var(--card);border-radius:16px;box-shadow:var(--shadow);font-weight:600;font-size:14px}
.how li .i{width:36px;height:36px;padding:8px;border-radius:12px;background:var(--accent-soft);color:var(--accent);box-sizing:border-box}

/* shopping list */
.lgroup{background:var(--card);border-radius:var(--r);box-shadow:var(--shadow);padding:4px 14px 6px}
.lgroup .gh{display:flex;align-items:center;gap:10px;padding:10px 0 4px}
.lgroup .gh img{width:36px;height:36px;border-radius:10px;object-fit:cover;background:var(--soft)}
.lgroup .gh b{flex:1;min-width:0;font-size:14px;line-height:1.25}
.lgroup .gh button{color:var(--muted);width:32px;height:32px;display:grid;place-items:center}
.lgroup .gh button .i{width:18px;height:18px}
.add{display:flex;gap:8px}
.add input{flex:1;min-width:0;height:50px;border-radius:16px;border:0;background:var(--card);box-shadow:var(--shadow);padding:0 14px;outline:0}
.add .btn{height:50px}

/* profile */
.prof{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;padding-top:10px}
.prof p{margin:0}
.ava{width:88px;height:88px;border-radius:50%;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;font-size:34px;font-weight:800;overflow:hidden;margin-bottom:8px;box-shadow:0 0 0 4px var(--card),var(--shadow)}
.ava img{width:100%;height:100%;object-fit:cover}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.stat{background:var(--card);border-radius:18px;box-shadow:var(--shadow);padding:14px 6px;text-align:center;display:flex;flex-direction:column;gap:2px;width:100%;align-items:center}
.stat b{font-size:22px;font-weight:800;font-variant-numeric:tabular-nums}
.stat span{font-size:12px;color:var(--muted)}
.menu{background:var(--card);border-radius:var(--r);box-shadow:var(--shadow);padding:2px 14px;display:flex;flex-direction:column}
.mi{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);width:100%;font-weight:600}
.mi:last-child{border-bottom:0}
.mi>.i:first-child{width:38px;height:38px;padding:9px;border-radius:12px;background:var(--accent-soft);color:var(--accent);box-sizing:border-box}
.mi .l{flex:1}
.mi small{color:var(--muted);font-weight:600}
.mi>.i:last-child{color:var(--muted);width:18px;height:18px}
.opt{display:flex;flex-direction:column;gap:8px}
.opt .chip{justify-content:space-between;height:52px;border-radius:16px;font-size:15px}
.opt .chip .i{width:20px;height:20px;opacity:0}
.opt .chip[aria-pressed=true] .i{opacity:1}
.prose{background:var(--card);border-radius:var(--r);box-shadow:var(--shadow);padding:16px;display:flex;flex-direction:column;gap:10px}
.prose p{margin:0}

/* sheet (filters) */
.scrim{position:fixed;inset:0;z-index:40;background:rgba(20,12,6,.42);animation:fade .2s}
@keyframes fade{from{opacity:0}}
.sheet{position:fixed;left:0;right:0;bottom:0;z-index:41;max-height:86vh;overflow-y:auto;background:var(--bg);border-radius:26px 26px 0 0;padding:10px 16px calc(16px + var(--bot));animation:up .25s cubic-bezier(.2,.8,.2,1)}
.sheet>div{max-width:640px;margin:0 auto;display:flex;flex-direction:column;gap:18px}
.grab{width:40px;height:5px;border-radius:3px;background:var(--line);margin:0 auto}
.fgroup{display:flex;flex-direction:column;gap:10px}
.fgroup h3{margin:0;font-size:14px;font-weight:700;color:var(--muted)}
.fgroup .wrapc{display:flex;flex-wrap:wrap;gap:8px}
.sheet .btns{display:grid;grid-template-columns:1fr 2fr;gap:10px}

.toast{position:fixed;left:50%;bottom:calc(136px + var(--bot));transform:translate(-50%,20px);z-index:60;background:var(--fg);color:var(--bg);padding:11px 18px;border-radius:999px;font-weight:600;font-size:14px;opacity:0;pointer-events:none;transition:.25s;max-width:calc(100vw - 32px);text-align:center}
.toast.show{opacity:1;transform:translate(-50%,0)}
