:root{
 --bg:#f2f2f7;--bg2:#fff;--fill:#7676801f;--fill2:#74748014;--sep:#3c3c4329;--label:#000;--label2:#3c3c4399;--label3:#3c3c434d;
 --accent:#f43f6b;--accent-soft:#f43f6b1a;--grad:linear-gradient(120deg,#ff4f7b,#ff9a62);--danger:#ff3b30;--ok:#34c759;
 --bar:#f9f9f9eb;--shadow:0 1px 2px #0000000d,0 8px 24px #0000000f;--r:12px;
 color-scheme:light;
}
@media(prefers-color-scheme:dark){:root{
 --bg:#000;--bg2:#1c1c1e;--fill:#7878805c;--fill2:#7878803d;--sep:#54545899;--label:#fff;--label2:#ebebf599;--label3:#ebebf54d;
 --accent:#ff5c82;--accent-soft:#ff5c8226;--bar:#161618eb;--shadow:none;color-scheme:dark;
}}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{background:var(--bg)}
body{margin:0;background:var(--bg);color:var(--label);font:16px/1.38 -apple-system,BlinkMacSystemFont,'SF Pro Text','Segoe UI',Roboto,sans-serif;-webkit-font-smoothing:antialiased;min-height:100svh;letter-spacing:-.01em}
button,input,textarea,select{font:inherit;color:inherit;letter-spacing:inherit}
h1,h2,h3,p{margin:0}
a{color:var(--accent);text-decoration:none}
.i{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.hidden{display:none!important}
.muted{color:var(--label2)}.small{font-size:14px}.center{text-align:center;justify-content:center}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
button svg{pointer-events:none}

/* Navigation */
.nav{position:sticky;top:0;z-index:10;padding-top:env(safe-area-inset-top);background:var(--bg);transition:background .2s,box-shadow .2s}
body.scrolled .nav{background:var(--bar);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);box-shadow:0 .5px 0 var(--sep)}
.nav-bar{max-width:760px;margin:auto;height:46px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 16px}
.nav-logo{height:20px;width:auto;transition:opacity .2s,transform .2s;transform-origin:left center}
.nav-title{font-weight:600;font-size:17px;opacity:0;transform:translateY(4px);transition:.2s;white-space:nowrap}
body.scrolled .nav-title{opacity:1;transform:none}
body.scrolled .nav-logo{opacity:.5;transform:scale(.88)}
.nav-actions{display:flex;justify-content:flex-end;gap:10px}
.page{max-width:760px;margin:auto;padding:0 16px calc(96px + env(safe-area-inset-bottom))}
.large-title{padding:2px 2px 12px}
.large-title h1{font-size:32px;font-weight:700;letter-spacing:-.025em;line-height:1.15}
.sub{font-size:14px;color:var(--label2);margin-top:2px;display:flex;align-items:center;gap:5px}
.dot{width:7px;height:7px;border-radius:50%;background:var(--ok);display:inline-block}
.dot.off{background:#ff9f0a}

/* Buttons */
.round{width:34px;height:34px;border-radius:50%;border:0;display:grid;place-items:center;cursor:pointer;background:var(--fill2);color:var(--label2);padding:0}
.round .i{width:19px;height:19px;stroke-width:2.2}
.round.tinted{background:var(--accent-soft);color:var(--accent)}
.round.accent{background:var(--grad);color:#fff;box-shadow:0 2px 8px #f43f6b40}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:46px;padding:0 18px;border:0;border-radius:var(--r);background:var(--fill2);color:var(--label);font-weight:600;font-size:16px;cursor:pointer;flex:1;transition:transform .1s,opacity .2s}
.btn:active,.round:active,.cell:active,.tiles button:active{transform:scale(.97);opacity:.85}
.btn .i{width:19px;height:19px}
.btn.primary{background:var(--grad);color:#fff}
.btn.tinted{background:var(--accent-soft);color:var(--accent)}
.btn.plain{background:transparent;color:var(--accent)}
.btn.danger{color:var(--danger)}
.btn.danger-fill{background:var(--danger);color:#fff}
.btn.small{min-height:32px;padding:0 12px;font-size:14px;flex:0 0 auto;border-radius:9px}
.btn.wide{width:100%;flex:none;margin-top:6px}
button:disabled{opacity:.4;cursor:default}
.row{display:flex;gap:10px;align-items:center}
.row.center{justify-content:center;flex-wrap:wrap}
.row-between{display:flex;justify-content:space-between}
.stack{display:flex;flex-direction:column;gap:10px;margin-top:14px}

/* Search + chips */
.searchbar{display:flex;align-items:center;gap:6px;background:var(--fill2);border-radius:10px;height:36px;padding:0 9px;color:var(--label2);margin-bottom:10px}
.searchbar .i{width:17px;height:17px}
.searchbar input{border:0;background:transparent;outline:0;flex:1;height:100%;font-size:16px;color:var(--label);min-width:0;-webkit-appearance:none}
.searchbar input::placeholder{color:var(--label2)}
.chips{display:flex;gap:7px;overflow-x:auto;margin:0 -16px 14px;padding:0 16px 2px;scrollbar-width:none;align-items:center}
.chips::-webkit-scrollbar{display:none}
.chips button{flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;height:31px;padding:0 13px;border-radius:16px;border:0;background:var(--bg2);color:var(--label);font-size:14px;font-weight:500;cursor:pointer;box-shadow:inset 0 0 0 .5px var(--sep)}
.chips button .i{width:14px;height:14px;color:var(--accent)}
.chips .selected{background:var(--label);color:var(--bg2);box-shadow:none}
.chips .selected .i{color:inherit}
.chips .person{padding-left:4px}
.chips .person b{width:23px;height:23px;border-radius:50%;background:var(--grad);color:#fff;display:grid;place-items:center;font-size:12px}
.chip-sep{width:1px;height:18px;background:var(--sep);flex:0 0 1px;margin:0 2px}

/* Recipe grid */
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media(min-width:600px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.card{position:relative;background:var(--bg2);border-radius:14px;overflow:hidden;box-shadow:var(--shadow);animation:pop .25s ease both}
.card-open{display:block;width:100%;padding:0;border:0;background:none;text-align:left;cursor:pointer}
.card-image{aspect-ratio:4/3;background:linear-gradient(135deg,#ffd9c7,#ffb3c4);display:grid;place-items:center;overflow:hidden}
.card-image img{width:100%;height:100%;object-fit:cover;display:block}
.dish{font-size:38px}
.card-info{padding:8px 10px 10px}
.card-info h3{font-size:15px;font-weight:600;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.5em}
.meta{display:flex;align-items:center;gap:4px;font-size:12px;color:var(--label2);margin-top:4px;white-space:nowrap;overflow:hidden}
.meta .i{width:13px;height:13px}
.fav{position:absolute;top:7px;right:7px;width:30px;height:30px;border-radius:50%;border:0;display:grid;place-items:center;background:#0000004d;color:#fff;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);cursor:pointer;padding:0}
.fav .i{width:17px;height:17px}
.fav.on{color:#ff4f7b;background:#ffffffd9}
.empty{grid-column:1/-1;text-align:center;padding:44px 20px}
.empty-icon{width:58px;height:58px;border-radius:16px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;margin:0 auto 12px}
.empty-icon .i{width:28px;height:28px}
.empty h2{font-size:19px;font-weight:600;margin-bottom:4px}
.empty p{color:var(--label2);font-size:15px;max-width:300px;margin:0 auto 16px}
.empty .btn{flex:0 0 auto}

/* Grouped lists */
.group-label{font-size:13px;color:var(--label2);text-transform:uppercase;letter-spacing:.02em;margin:18px 16px 6px}
.group-card{background:var(--bg2);border-radius:var(--r);overflow:hidden;box-shadow:var(--shadow)}
.cell{width:100%;display:flex;align-items:center;gap:12px;min-height:46px;padding:0 14px;border:0;background:transparent;text-align:left;cursor:pointer;position:relative}
.cell+.cell::before,.item+.item::before,.ingredient-lines li+li::before{content:'';position:absolute;top:0;right:0;left:55px;height:.5px;background:var(--sep)}
.cell-icon{width:29px;height:29px;border-radius:7px;background:#8e8e93;color:#fff;display:grid;place-items:center;flex-shrink:0}
.cell-icon .i{width:17px;height:17px;stroke-width:2.1}
.cell-label{flex:1;font-size:16px}
.cell-value{color:var(--label2);font-size:15px}
.cell>.i{width:16px;height:16px;color:var(--label3);stroke-width:2.4}
.cell.danger .cell-label{color:var(--danger)}
.cell-select{border:0;background:transparent;color:var(--label2);font-size:15px;text-align:right;-webkit-appearance:none;appearance:none;outline:0;cursor:pointer}
.profile{display:flex;align-items:center;gap:12px;padding:12px 14px}
.profile strong{display:block;font-size:17px;font-weight:600}
.profile span{font-size:13px;color:var(--label2)}
.avatar{width:46px;height:46px;border-radius:50%;background:var(--grad);color:#fff;display:grid;place-items:center;font-size:20px}
.footnote{font-size:12px;color:var(--label2);text-align:center;margin:22px 10px;line-height:1.5}
.footnote .i{width:13px;height:13px;vertical-align:-2px}

/* Shopping list */
.add-bar{display:flex;align-items:center;gap:10px;background:var(--bg2);border-radius:var(--r);padding:0 12px;height:46px;box-shadow:var(--shadow)}
.add-icon{width:24px;height:24px;border-radius:50%;background:var(--grad);color:#fff;display:grid;place-items:center;flex-shrink:0}
.add-icon .i{width:15px;height:15px;stroke-width:2.6}
.add-bar input{flex:1;border:0;outline:0;background:transparent;height:100%;font-size:16px;color:var(--label);min-width:0}
.add-bar input::placeholder{color:var(--label2)}
.list-section .group-label{margin-top:16px}
.item{width:100%;display:flex;align-items:center;gap:12px;min-height:44px;padding:9px 14px;border:0;background:transparent;text-align:left;cursor:pointer;position:relative;font-size:16px}
.item+.item::before{left:49px}
.circle{width:23px;height:23px;border-radius:50%;border:1.6px solid var(--label3);flex-shrink:0;position:relative;transition:.2s}
.item.done .circle{background:var(--accent);border-color:var(--accent)}
.item.done .circle::after{content:'';position:absolute;left:6.5px;top:3px;width:5px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.item.done span{color:var(--label2);text-decoration:line-through}
.item.done{animation:fade .3s ease forwards .1s}
.badge{position:absolute;top:1px;left:calc(50% + 7px);min-width:17px;height:17px;padding:0 5px;border-radius:9px;background:var(--danger);color:#fff;font-size:11px;font-weight:600;line-height:17px}

/* Tab bar */
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:10;display:flex;justify-content:center;padding:4px 8px calc(4px + env(safe-area-inset-bottom));background:var(--bar);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);box-shadow:0 -.5px 0 var(--sep)}
.tabbar button{position:relative;flex:0 1 120px;display:flex;flex-direction:column;align-items:center;gap:2px;border:0;background:none;padding:4px 0 2px;font-size:10px;font-weight:500;color:var(--label2);cursor:pointer}
.tabbar .i{width:25px;height:25px;stroke-width:1.8}
.tabbar .active{color:var(--accent)}
.tabbar .active .i{stroke-width:2.2}

/* Forms */
.field{display:flex;align-items:center;gap:10px;padding:0 14px;min-height:46px;position:relative}
.field+.field::before,.field-row+.field::before,.field+.field-row::before{content:'';position:absolute;top:0;left:14px;right:0;height:.5px;background:var(--sep)}
.field>span{font-size:15px;color:var(--label);flex:0 0 105px}
.field input{flex:1;min-width:0}
.field-row{display:grid;grid-template-columns:1fr 1fr;position:relative}
.field-row .field>span{flex-basis:auto}
.field-row .field+.field{border-left:.5px solid var(--sep)}
.field-row .field+.field::before{display:none}
.form-card input,.form-card textarea,.form-card select{border:0;outline:0;background:transparent;width:100%;font-size:16px;color:var(--label);padding:12px 0}
.form-card>textarea,.form-card>input{padding:12px 14px;display:block}
.form-card textarea{resize:vertical;min-height:120px;line-height:1.45}
.field input{text-align:right}
input::placeholder,textarea::placeholder{color:var(--label3)}
.input-btn{display:flex;align-items:center;gap:8px;padding:0 8px 0 14px}
.status{min-height:20px;font-size:13px;color:var(--label2);margin:8px 4px 2px}
.status.error{color:var(--danger)}
.hint{font-size:13px;color:var(--label2);margin:8px 4px 0}
.banner{background:var(--accent-soft);color:var(--accent);font-size:14px;font-weight:500;padding:9px 12px;border-radius:10px;margin-bottom:12px}
.photo-pick{display:flex;align-items:center;gap:14px;margin-bottom:14px}
.photo-box{width:84px;height:84px;border-radius:14px;background:var(--fill2);display:grid;place-items:center;overflow:hidden;color:var(--label2);flex-shrink:0}
.photo-box img{width:100%;height:100%;object-fit:cover}
.photo-box .i{width:28px;height:28px}
.photo-actions{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.segmented{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;background:var(--fill2);border-radius:10px;padding:2px;margin-bottom:14px}
.segmented button{display:flex;align-items:center;justify-content:center;gap:5px;height:32px;border:0;border-radius:8px;background:transparent;font-size:14px;font-weight:500;cursor:pointer;color:var(--label)}
.segmented .i{width:16px;height:16px}
.segmented .on{background:var(--bg2);box-shadow:0 1px 4px #0000001f,0 0 0 .5px #0000000a}
.drop{display:flex;flex-direction:column;align-items:center;gap:4px;padding:22px 14px;border-radius:var(--r);border:1.5px dashed var(--fill);text-align:center;cursor:pointer;color:var(--label2);font-size:13px;background:var(--bg2)}
.drop strong{color:var(--label);font-size:16px;font-weight:600}
.drop .i{width:30px;height:30px;color:var(--accent)}
.drop.filled{border-color:var(--accent);background:var(--accent-soft)}
.toggle-row{display:flex;align-items:center;justify-content:space-between;background:var(--bg2);border-radius:var(--r);padding:0 14px;min-height:46px;margin-top:10px;box-shadow:var(--shadow)}
.switch{-webkit-appearance:none;appearance:none;width:51px;height:31px;border-radius:16px;background:var(--fill);position:relative;cursor:pointer;transition:.2s;flex-shrink:0;margin:0}
.switch::after{content:'';position:absolute;top:2px;left:2px;width:27px;height:27px;border-radius:50%;background:#fff;box-shadow:0 2px 4px #0003;transition:.2s}
.switch:checked{background:var(--ok)}
.switch:checked::after{transform:translateX(20px)}

/* Sheets */
dialog{border:0;padding:0;color:var(--label);background:var(--bg);width:100%;max-width:560px;max-height:94svh;margin:auto auto 0;border-radius:14px 14px 0 0;overflow-y:auto;overscroll-behavior:contain;box-shadow:0 -10px 40px #0003}
dialog[open]{animation:up .28s cubic-bezier(.2,.9,.3,1)}
dialog.closing{animation:down .18s ease-in forwards}
dialog::backdrop{background:#0006}
@media(min-width:620px){dialog{margin:auto;border-radius:16px;max-height:88svh}}
.grabber{width:36px;height:5px;border-radius:3px;background:var(--fill);margin:6px auto 0}
.modal-header{position:sticky;top:0;z-index:2;display:grid;grid-template-columns:30px 1fr 30px;align-items:center;gap:8px;padding:6px 14px 8px;background:var(--bg)}
.modal-header h2{font-size:17px;font-weight:600;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.modal-header .round{width:30px;height:30px}
.modal-header .round .i{width:15px;height:15px;stroke-width:2.6}
.modal-body{padding:4px 16px calc(20px + env(safe-area-inset-bottom))}
.sheet-text{text-align:center;color:var(--label2);font-size:15px;margin:2px 8px 4px}
.detail .modal-body{padding-top:0}
.detail-cover{margin:0 -16px 12px;aspect-ratio:16/10;max-height:300px;width:calc(100% + 32px);background:linear-gradient(135deg,#ffd9c7,#ffb3c4);display:grid;place-items:center;overflow:hidden}
.detail-cover img{width:100%;height:100%;object-fit:cover}
.detail-cover .dish{font-size:64px}
.pills{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.pills>*{display:inline-flex;align-items:center;gap:4px;font-size:13px;padding:4px 10px;border-radius:14px;background:var(--fill2);color:var(--label2)}
.pills .i{width:14px;height:14px}
.pills a{color:var(--accent);background:var(--accent-soft)}
.tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:6px}
.tiles button{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 0 8px;border:0;border-radius:var(--r);background:var(--bg2);color:var(--accent);font-size:12px;font-weight:500;cursor:pointer;box-shadow:var(--shadow)}
.tiles button span{color:var(--label)}
.section-head{display:flex;align-items:center;justify-content:space-between;margin:20px 2px 8px}
.section-head h3{font-size:20px;font-weight:700;letter-spacing:-.02em}
.stepper{display:flex;align-items:center;background:var(--fill2);border-radius:9px;height:32px}
.stepper button{width:38px;height:32px;border:0;background:none;display:grid;place-items:center;cursor:pointer;color:var(--label)}
.stepper button .i{width:16px;height:16px;stroke-width:2.4}
.stepper span{display:flex;align-items:center;gap:3px;font-size:14px;font-weight:600;padding:0 6px;border-left:.5px solid var(--sep);border-right:.5px solid var(--sep);height:18px}
.stepper span .i{width:14px;height:14px}
.ingredient-lines{list-style:none;margin:0;padding:0}
.ingredient-lines li{position:relative;padding:11px 14px;font-size:16px}
.ingredient-lines li+li::before{left:14px}
.steps{list-style:none;counter-reset:s;margin:0;padding:0}
.steps li{counter-increment:s;position:relative;padding:2px 0 14px 38px;font-size:16px;line-height:1.5;white-space:pre-wrap}
.steps li::before{content:counter(s);position:absolute;left:0;top:0;width:26px;height:26px;border-radius:50%;background:var(--accent-soft);color:var(--accent);font-size:13px;font-weight:700;display:grid;place-items:center}
.detail .btn.danger{margin-top:14px}
.compact .modal-body{padding-top:6px}
.cook{min-height:40svh;display:flex;flex-direction:column}
.progress{height:4px;border-radius:2px;background:var(--fill2);overflow:hidden;margin:4px 0 14px}
.progress i{display:block;height:100%;background:var(--grad);transition:width .3s}
.step-number{font-size:13px;color:var(--accent);font-weight:600;text-transform:uppercase;letter-spacing:.04em}
.cook-text{font-size:24px;line-height:1.45;font-weight:500;padding:14px 0 20px;letter-spacing:-.015em}
.avatars{display:flex;justify-content:center;gap:24px;margin:8px 0 14px}
.avatars div{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:14px;font-weight:500}
.avatars b{width:54px;height:54px;border-radius:50%;background:var(--grad);color:#fff;display:grid;place-items:center;font-size:22px}
#invite-result .row{margin-top:10px}

/* Toast */
#toast{position:fixed;left:50%;bottom:calc(66px + env(safe-area-inset-bottom));z-index:30;display:flex;align-items:center;gap:8px;max-width:calc(100% - 32px);padding:7px 7px 7px 12px;border-radius:22px;background:#1c1c1ee6;color:#fff;font-size:14px;font-weight:500;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);box-shadow:0 6px 20px #0003;opacity:0;pointer-events:none;transform:translate(-50%,10px) scale(.96);transition:.22s cubic-bezier(.2,.9,.3,1)}
#toast.visible{opacity:1;pointer-events:auto;transform:translate(-50%,0)}
#toast .i{width:16px;height:16px;color:#30d158;stroke-width:2.6}
#toast span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:6px}
#toast button{border:0;background:#ffffff26;color:#fff;font-size:13px;font-weight:600;height:28px;padding:0 11px;border-radius:14px;cursor:pointer}

/* Auth + loading */
.auth,.loading{max-width:400px;margin:0 auto;padding:calc(10vh + env(safe-area-inset-top)) 20px 40px}
.loading{text-align:center}
.brand,.loading img{height:34px;width:auto;margin-bottom:22px}
.loading p{color:var(--label2);font-size:15px}
.auth h1{font-size:30px;font-weight:700;letter-spacing:-.025em}
.auth .muted{margin:4px 0 20px;font-size:15px}
.auth .field>span{flex-basis:118px}
.auth .field input{text-align:left}

@media(prefers-color-scheme:dark){
 .card-image,.detail-cover{background:linear-gradient(135deg,#3a2a2f,#2a1f2b)}
 .segmented .on{background:#636366}
 #toast{background:#3a3a3ce6}
}
@keyframes up{from{transform:translateY(100%)}to{transform:none}}
@keyframes down{to{transform:translateY(100%)}}
@keyframes fade{to{opacity:0;transform:translateX(16px)}}
@keyframes pop{from{opacity:0;transform:scale(.98)}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
body:has(dialog[open]){overflow:hidden}
.c-pink{background:#ff5e7e}.c-orange{background:#ff9f0a}.c-green{background:#30d158}.c-gray{background:#8e8e93}.c-blue{background:#0a84ff}.c-indigo{background:#5e5ce6}.c-teal{background:#64d2ff}.c-red{background:#ff453a}

/* v3 */
.sheet-footer{position:sticky;bottom:0;display:flex;gap:10px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:var(--bar);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);box-shadow:0 -.5px 0 var(--sep)}
.sheet-footer .btn{min-height:48px}
.sheet-footer .btn.primary{flex:1.6}
.search-row{display:flex;gap:8px;align-items:center;margin-bottom:6px}
.search-row .searchbar{flex:1;margin:0}
.filter-btn{position:relative;width:36px;height:36px;border-radius:10px}
.mini-badge{position:absolute;top:-5px;right:-5px;min-width:18px;height:18px;border-radius:9px;background:var(--label);color:var(--bg2);font-size:11px;font-weight:700;display:grid;place-items:center;padding:0 4px;border:2px solid var(--bg)}
.toolbar{display:flex;justify-content:space-between;align-items:center;margin:2px 0 8px}
.link-btn{display:inline-flex;align-items:center;gap:5px;border:0;background:none;color:var(--accent);font-size:15px;font-weight:500;padding:6px 2px;cursor:pointer}
.link-btn .i{width:17px;height:17px}
.link-btn.small{font-size:13px;text-transform:none;letter-spacing:0;padding:0}
.tokens{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 12px}
.tokens button{display:inline-flex;align-items:center;gap:4px;height:28px;padding:0 6px 0 11px;border:0;border-radius:14px;background:var(--accent-soft);color:var(--accent);font-size:13px;font-weight:600;cursor:pointer}
.tokens button .i{width:13px;height:13px;stroke-width:2.6}
.tokens .token-reset{background:none;color:var(--label2);padding:0 6px;font-weight:500}
.tokens.plain{margin-top:10px}.tokens.plain button{padding:0 11px;background:var(--bg2);color:var(--label);font-weight:500;box-shadow:inset 0 0 0 .5px var(--sep)}
.today-card{width:100%;display:flex;align-items:center;gap:12px;padding:10px 12px;margin-bottom:12px;border:0;border-radius:var(--r);background:var(--grad);color:#fff;text-align:left;cursor:pointer;box-shadow:0 4px 14px #f43f6b33}
.today-icon{width:36px;height:36px;border-radius:10px;background:#ffffff33;display:grid;place-items:center;flex-shrink:0}
.today-text{flex:1;min-width:0}.today-text small{display:block;font-size:12px;opacity:.85;text-transform:uppercase;letter-spacing:.04em;font-weight:600}
.today-text strong{display:block;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.today-card>.i{width:16px;height:16px;opacity:.8}
.card-image{position:relative}
.cooked-badge{position:absolute;left:7px;bottom:7px;display:inline-flex;align-items:center;gap:2px;height:22px;padding:0 7px 0 5px;border-radius:11px;background:#0000005c;color:#fff;font-size:12px;font-weight:600;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.cooked-badge .i{width:13px;height:13px}
.who{margin-left:auto;width:18px;height:18px;border-radius:50%;background:var(--fill2);color:var(--label2);font-size:10px;font-weight:700;display:grid;place-items:center;flex-shrink:0}
.ellipsis{overflow:hidden;text-overflow:ellipsis;min-width:0}
.check-cell .check{width:22px;height:22px;border-radius:50%;border:1.6px solid var(--label3);display:grid;place-items:center;color:transparent;flex-shrink:0}
.check-cell .check .i{width:14px;height:14px;stroke-width:3}
.check-cell.on .check{background:var(--accent);border-color:var(--accent);color:#fff}
.cell-check{color:var(--accent)}.cell-check .i{width:18px;height:18px;stroke-width:2.6}
.cell-sub{display:block;font-size:12.5px;color:var(--label2);margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cell-label{min-width:0;padding:9px 0}
.cat-list{max-height:none}
.searchbar.small{height:34px;margin:0 0 8px}
.hint.pad{padding:12px 14px;margin:0}
.filter .toggle-row span{display:flex;align-items:center;gap:8px}.filter .toggle-row .i{width:17px;height:17px;color:var(--accent)}
.filter .group-label{margin-left:4px}
.list-mode{margin:12px 0 0}
.item-text{flex:1;min-width:0}.item-text small{display:block;font-size:12px;color:var(--label2)}
.dot-badge{min-width:8px!important;width:8px;height:8px!important;padding:0!important;top:3px!important;left:calc(50% + 9px)!important}
.week-switch{display:flex;align-items:center;justify-content:space-between;margin:0 0 6px}
.week-switch .round{width:32px;height:32px}
.day{margin-top:14px}
.day.past{opacity:.55}
.day-head{display:flex;align-items:center;gap:10px;margin:0 2px 8px}
.day-name{flex:1;font-size:17px;font-weight:600}
.day.today .day-name{color:var(--accent)}
.day-chip{width:40px;height:44px;border-radius:11px;background:var(--bg2);display:flex;flex-direction:column;align-items:center;justify-content:center;flex-shrink:0;box-shadow:var(--shadow);line-height:1.1}
.day-chip small{font-size:10px;text-transform:uppercase;color:var(--label2);font-weight:600}
.day-chip b{font-size:17px}
.day-chip.today{background:var(--grad);color:#fff}.day-chip.today small{color:#ffffffd9}
.small-round{width:30px;height:30px;background:var(--accent-soft);color:var(--accent)}
.small-round .i{width:16px;height:16px}
.plan-cell{min-height:58px}
.thumb{width:42px;height:42px;border-radius:9px;overflow:hidden;background:var(--fill2);display:grid;place-items:center;flex-shrink:0;font-size:20px}
.thumb img{width:100%;height:100%;object-fit:cover}
.note-thumb{color:var(--label2)}.note-thumb .i{width:20px;height:20px}
.plan-cell+.plan-cell::before{left:68px}
.cell .day-chip{box-shadow:none;background:var(--fill2);width:38px;height:40px}
.cell .day-chip.today{background:var(--grad)}
.suggest{text-align:center}
.suggest-img{aspect-ratio:16/10;border-radius:14px;overflow:hidden;background:linear-gradient(135deg,#ffd9c7,#ffb3c4);display:grid;place-items:center;margin-bottom:12px}
.suggest-img img{width:100%;height:100%;object-fit:cover}
.suggest h3{font-size:21px;font-weight:700;letter-spacing:-.02em;margin-bottom:2px}
.detail-actions{margin-top:22px}
.pills .hl{background:var(--accent-soft);color:var(--accent)}
.pills>span{max-width:100%}
.modal-header .round[id=edit]{background:var(--accent-soft);color:var(--accent)}
@media(prefers-color-scheme:dark){.suggest-img{background:linear-gradient(135deg,#3a2a2f,#2a1f2b)}.mini-badge{border-color:#000}}
.past-toggle{display:block;margin:2px auto 0;font-size:14px}
.merge{display:inline-block;background:var(--accent-soft);color:var(--accent);border-radius:6px;padding:0 5px;margin-right:5px;font-size:11px}
.push-banner{display:flex;gap:12px;align-items:flex-start;background:var(--bg2);border-radius:var(--r);padding:12px;margin-bottom:12px;box-shadow:var(--shadow);border:1px solid var(--accent-soft)}
.push-icon{width:36px;height:36px;border-radius:10px;background:#ff9f0a;color:#fff;display:grid;place-items:center;flex-shrink:0}.push-icon .i{width:20px;height:20px}
.push-banner>div{flex:1;min-width:0}.push-banner strong{display:block;font-size:15px}.push-banner p{font-size:13.5px;color:var(--label2);margin:2px 0 8px}.push-banner p:last-child{margin-bottom:0}
.push-banner .round{width:26px;height:26px;flex-shrink:0}.push-banner .round .i{width:13px;height:13px}
button.profile{width:100%;border:0;text-align:left;cursor:pointer}button.profile>div{flex:1}button.profile>.i{width:16px;height:16px;color:var(--label3)}
.banner.warn{background:#ff9f0a22;color:#c46a00;margin-top:12px}
.cell.static{cursor:default}.avatar.sm{width:29px;height:29px;font-size:13px}
.ok-pill,.off-pill{display:inline-flex;align-items:center;gap:4px;font-size:12.5px;padding:3px 8px;border-radius:10px}
.ok-pill{background:#34c75922;color:#1f9d45}.ok-pill .i{width:13px;height:13px}.off-pill{background:var(--fill2);color:var(--label2)}
@media(prefers-color-scheme:dark){.ok-pill{color:#30d158}.banner.warn{color:#ffb340}}

/* In-App-Mitteilung: schlicht im iOS-Standard */
#notice{position:fixed;left:0;right:0;top:0;z-index:60;padding:calc(8px + env(safe-area-inset-top)) 10px 0;pointer-events:none;visibility:hidden;opacity:0;transform:translateY(-100%);transition:transform .4s cubic-bezier(.2,1,.3,1),opacity .25s,visibility 0s .4s}
#notice.show{visibility:visible;opacity:1;transform:none;pointer-events:auto;transition:transform .4s cubic-bezier(.2,1,.3,1),opacity .2s}
.notice-card{display:flex;gap:10px;align-items:center;width:100%;max-width:500px;margin:auto;padding:10px 12px;border:0;border-radius:20px;text-align:left;cursor:pointer;color:var(--label);background:#f5f5f7eb;-webkit-backdrop-filter:saturate(180%) blur(24px);backdrop-filter:saturate(180%) blur(24px);box-shadow:0 6px 20px #00000024}
.notice-card img{width:38px;height:38px;border-radius:9px;flex-shrink:0}
.notice-text{flex:1;min-width:0;display:block}
.notice-top{display:flex;align-items:baseline;gap:8px}
.notice-top strong{font-size:15px;font-weight:600;flex:1}
.notice-top time{font-size:13px;color:var(--label2)}
.notice-msg{display:block;font-size:15px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
@media(prefers-color-scheme:dark){.notice-card{background:#2c2c2eeb}}
.item-text.is-new{font-weight:600}.item-text.is-new::after{content:'';display:inline-block;width:8px;height:8px;border-radius:50%;background:#0a84ff;margin-left:7px;vertical-align:middle}
@media(prefers-color-scheme:dark){.notice-card{background:#2c2c2ee6;box-shadow:0 12px 40px #0009,0 0 0 .5px #ffffff14}}

/* v6: Tab-Leiste fest am unteren Rand (iOS-26-Korrektur) + neues Design */
html{min-height:100%}
@media (display-mode: standalone){html{min-height:min(100lvh,calc(100% + env(safe-area-inset-top)))}body{min-height:100%}}
.tabbar{bottom:0;margin:0;padding:6px 6px max(env(safe-area-inset-bottom),10px);background:color-mix(in srgb,var(--bg2) 78%,transparent);-webkit-backdrop-filter:saturate(200%) blur(24px);backdrop-filter:saturate(200%) blur(24px);box-shadow:0 -.5px 0 var(--sep),0 -8px 24px #0000000a;justify-content:space-around}
.tabbar button{flex:1 1 0;max-width:110px;gap:3px;padding:2px 0 0;font-size:10.5px;font-weight:600;letter-spacing:0;transition:color .2s}
.tabbar button .i{width:52px;height:30px;padding:3px 13px;border-radius:15px;stroke-width:1.9;transition:background .25s,transform .25s}
.tabbar .active .i{background:var(--accent-soft);stroke-width:2.3;transform:translateY(-1px)}
.tabbar button:active .i{transform:scale(.9)}
.tabbar .badge{top:-3px;left:calc(50% + 9px)}
.tabbar .dot-badge{top:1px!important;left:calc(50% + 13px)!important}
.page{padding-bottom:calc(90px + env(safe-area-inset-bottom))}
#toast{bottom:calc(76px + env(safe-area-inset-bottom))}
@media(prefers-color-scheme:dark){.tabbar{background:color-mix(in srgb,#1c1c1e 80%,transparent);box-shadow:0 -.5px 0 var(--sep)}}

/* v8: Kopfbereich ohne Schatten/Abdunkeln */
body.scrolled .nav-logo{opacity:1;transform:none}
body.scrolled .nav{box-shadow:0 .5px 0 var(--sep)}
.round.accent{box-shadow:none}
