:root{
  --bg:#FFF0C7; --check:rgba(240,168,40,.2);
  --pat:linear-gradient(90deg,var(--check) 50%,transparent 50%),linear-gradient(var(--check) 50%,transparent 50%);
  --mint:#A9DEC5; --butter:#FFD45C; --bar-bg:#FFFFFF; --bar-fg:#221A4A; --bar-line:#221A4A; --mark:#A9DEC5; --theme-bg:#FFFFFF; --theme-fg:#221A4A; --lilac:#D9CDF3; --lilac-strong:#6B4FC8;
  --paper:#FFFFFF; --paper-2:#FFF6E2; --ink:#221A4A; --muted:#5A5272; --on-bg:#221A4A;
  --red:#E8402F; --red-strong:#C9301D; --on-red:#FFFFFF; --green:#2B7A37; --green-bg:#E3F3E1; --warn-bg:#FDE4DF; --warn:#8A2416;
  --tape:rgba(160,220,194,.93); --shadow:rgba(90,55,10,.2); --line:rgba(34,26,74,.15);
  --torn:polygon(0% 6px,4% 1px,9% 5px,13% 1px,18% 6px,24% 0px,29% 5px,34% 1px,40% 6px,45% 1px,51% 5px,57% 0px,62% 5px,68% 1px,73% 6px,79% 1px,84% 5px,90% 0px,95% 5px,100% 1px,100% calc(100% - 3px),96% calc(100% - 7px),91% calc(100% - 2px),86% calc(100% - 6px),80% 100%,75% calc(100% - 5px),69% calc(100% - 1px),63% calc(100% - 6px),58% calc(100% - 2px),52% calc(100% - 6px),46% 100%,41% calc(100% - 5px),35% calc(100% - 1px),30% calc(100% - 7px),24% calc(100% - 2px),19% calc(100% - 6px),13% 100%,8% calc(100% - 5px),3% calc(100% - 1px),0% calc(100% - 6px));
  --tapeclip:polygon(2% 0%,98% 5%,100% 24%,97% 42%,100% 60%,97% 80%,99% 100%,1% 95%,3% 76%,0% 57%,3% 38%,0% 18%);
  color-scheme: light;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#18152B; --check:rgba(150,130,255,.08);
    --paper:#F6F1E7; --paper-2:#ECE4D3; --ink:#221A4A; --muted:#5A5272; --on-bg:#EEE8FF;
    --bar-bg:#221C3D; --bar-fg:#EEE8FF; --bar-line:#2F2856; --mark:rgba(160,140,255,.4); --theme-bg:#2A2448; --theme-fg:#FFE08A;
    --red:#EE4A37; --tape:rgba(150,205,180,.9); --shadow:rgba(0,0,0,.45); --line:rgba(34,26,74,.17);
    color-scheme: dark;
  }
}
:root[data-theme="dark"]{
  --bg:#18152B; --check:rgba(150,130,255,.08);
  --paper:#F6F1E7; --paper-2:#ECE4D3; --ink:#221A4A; --muted:#5A5272; --on-bg:#EEE8FF;
    --bar-bg:#221C3D; --bar-fg:#EEE8FF; --bar-line:#2F2856; --mark:rgba(160,140,255,.4); --theme-bg:#2A2448; --theme-fg:#FFE08A;
  --red:#EE4A37; --tape:rgba(150,205,180,.9); --shadow:rgba(0,0,0,.45); --line:rgba(34,26,74,.17);
  color-scheme: dark;
}
:root{box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
html{scroll-padding-top:env(safe-area-inset-top,0px)}
*,*::before,*::after{box-sizing:inherit}
body{margin:0;background-color:var(--bg);background-image:var(--pat);background-size:52px 52px;color:var(--ink);font-family:'Archivo','Helvetica Neue',Helvetica,sans-serif;font-size:17px;line-height:1.45;-webkit-font-smoothing:antialiased}
img,video{max-width:100%;display:block}
button,input,select,textarea{font:inherit;color:inherit}
a{color:inherit}
:focus-visible{outline:3px solid var(--red-strong);outline-offset:3px}
h1:focus,h2:focus{outline:none}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:12px;top:-60px;background:var(--ink);color:#fff;padding:10px 14px;border-radius:10px;z-index:80}
.skip:focus{top:12px}
.hand{font-family:'Caveat','Segoe Print','Bradley Hand',cursive;font-weight:700}

/* paper + tape */
.note{position:relative;filter:drop-shadow(0 6px 0 var(--shadow))}
.paper{position:relative;background:var(--paper);padding:22px 20px 22px;clip-path:var(--torn)}
.tape{position:absolute;width:104px;height:30px;background:var(--tape);clip-path:var(--tapeclip);pointer-events:none;z-index:3}
.tilt-l{transform:rotate(-.8deg)} .tilt-r{transform:rotate(.6deg)}

/* layout */
.wrap{max-width:1120px;margin:0 auto;padding:0 14px}
main{display:block;padding:6px 14px 40px;min-height:60vh}
main:focus{outline:none}
.stack{display:flex;flex-direction:column;gap:20px}
.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.between{justify-content:space-between}
.mt{margin-top:16px}

/* header + navigation */
.site-head{padding:12px 0 8px}
.head-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.logo{display:inline-block;text-decoration:none;transform:rotate(-2deg)}
.logo .paper{padding:8px 18px 6px 14px;display:flex;align-items:center;gap:10px}
.logo-dot{width:16px;height:16px;border-radius:50%;background:var(--red);flex:0 0 auto}
.logo-word{font-size:34px;line-height:1}
.nav{display:flex;gap:8px;flex-wrap:wrap}
.nav a{position:relative;text-decoration:none;font-family:'Archivo Black','Arial Black',sans-serif;font-size:14px;padding:11px 14px 10px;background:var(--tape);clip-path:var(--tapeclip);min-height:44px;display:inline-flex;align-items:center;gap:6px}
.nav a[aria-current="page"]{background:var(--red-strong);color:var(--on-red)}
.badge{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:var(--ink);color:#fff;font-size:12px;font-family:'Archivo Black','Arial Black',sans-serif;font-weight:400}
.nav a[aria-current="page"] .badge{background:#fff;color:var(--red-strong)}
.badge[data-zero="1"]{display:none}
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:30;display:flex;background:var(--paper);border-top:3px solid var(--ink);padding:6px 6px calc(6px + env(safe-area-inset-bottom,0px))}
.tabbar a{flex:1;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:54px;border-radius:14px;text-decoration:none;color:var(--ink);font-family:'Archivo Black','Arial Black',sans-serif;font-size:11.5px}
.tabbar svg{width:26px;height:26px}
.tabbar svg path{fill:none;stroke:currentColor;stroke-width:2.2px;stroke-linecap:round;stroke-linejoin:round}
.tabbar a[aria-current="page"]{background:var(--red-strong);color:#fff}
.tabbar .badge{position:absolute;top:2px;right:calc(50% - 30px);min-width:20px;height:20px;font-size:11px;background:var(--red-strong)}
.tabbar a[aria-current="page"] .badge{background:#fff;color:var(--red-strong)}
@media (max-width:759px){.nav-top{display:none}main{padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))}.site-foot{padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}}
@media (min-width:760px){.tabbar{display:none}.site-head{position:sticky;top:env(safe-area-inset-top,0px);z-index:20;background:linear-gradient(var(--bg) 75%,transparent)}}
body.cooking .site-head,body.cooking .site-foot,body.cooking .tabbar{display:none}

/* buttons, chips */
.btn{min-height:46px;border:0;border-radius:12px;cursor:pointer;font-family:'Archivo Black','Arial Black',sans-serif;font-size:14px;padding:12px 16px 11px;background:var(--ink);color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;line-height:1.1;text-align:center}
.btn.primary{background:var(--red-strong);color:var(--on-red)}
.btn.ghost{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 2px var(--ink)}
.btn.ok{background:var(--green);color:#fff}
.btn.small{min-height:40px;padding:9px 12px 8px;font-size:13px}
.btn.wide{width:100%}
.btn:disabled{opacity:.4;cursor:default}
.btn svg{width:18px;height:18px;flex:0 0 auto}
.btn svg path,.btn svg circle{fill:none;stroke:currentColor;stroke-width:2.6px;stroke-linecap:round;stroke-linejoin:round}
.round{width:46px;height:46px;flex:0 0 auto;border:0;border-radius:50%;background:var(--red-strong);color:var(--on-red);display:flex;align-items:center;justify-content:center;cursor:pointer}
.round svg{width:20px;height:20px}.round svg path{fill:none;stroke:currentColor;stroke-width:3.5px;stroke-linecap:round}
.round:disabled{opacity:.35;cursor:default}
.stepper{display:flex;align-items:center;gap:10px}
.stepper output{min-width:104px;text-align:center;font-family:'Archivo Black','Arial Black',sans-serif;font-size:16px}
.chip{border:0;cursor:pointer;font-family:'Archivo Black','Arial Black',sans-serif;font-size:13px;padding:9px 12px 8px;min-height:42px;background:var(--tape);color:var(--ink);clip-path:var(--tapeclip);display:inline-flex;align-items:center;gap:6px}
.chip[aria-pressed="true"]{background:var(--red-strong);color:var(--on-red)}
.facts{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.facts li{font-family:'Archivo Black','Arial Black',sans-serif;font-size:13px;padding:8px 12px 7px;background:var(--tape);clip-path:var(--tapeclip)}
h1,h2,h3{margin:0;font-weight:700}
.title-xl{font-size:clamp(48px,11vw,80px);line-height:.92}
.title-l{font-size:clamp(40px,8vw,56px);line-height:.95}
.h2{font-size:34px;line-height:1}
.sub{margin:8px 0 0;font-family:'Caveat',cursive;font-size:27px;font-weight:600;line-height:1.1;color:var(--muted)}
.lead{margin:8px 0 0;color:var(--muted)}
.muted{color:var(--muted)}
.small{font-size:14px}
.back{display:inline-flex;align-items:center;gap:6px;min-height:44px;text-decoration:none;font-family:'Archivo Black','Arial Black',sans-serif;font-size:14px;color:var(--on-bg);margin:2px 0 8px}
.back svg{width:18px;height:18px}.back svg path{fill:none;stroke:currentColor;stroke-width:3px;stroke-linecap:round;stroke-linejoin:round}
.howto{margin-top:12px}
.howto summary{cursor:pointer;font-family:'Archivo Black','Arial Black',sans-serif;font-size:14px;min-height:44px;display:inline-flex;align-items:center}
.howto ol{margin:6px 0 0;padding-left:22px}
.howto li{margin:4px 0}

/* home */
.tiles{display:grid;grid-template-columns:1fr;gap:12px;margin-top:16px}
@media (min-width:700px){.tiles{grid-template-columns:repeat(3,1fr)}}
.tile{display:flex;align-items:center;gap:14px;text-decoration:none;text-align:left;background:var(--paper-2);border:0;border-radius:16px;padding:14px 16px;cursor:pointer;min-height:76px;color:var(--ink);width:100%}
.tile .ic{flex:0 0 auto;width:50px;height:50px;border-radius:50%;background:var(--red);border:4px solid #fff;display:flex;align-items:center;justify-content:center;transform:rotate(-6deg)}
.tile .ic svg{width:24px;height:24px}.tile .ic svg path{fill:none;stroke:#fff;stroke-width:2.6px;stroke-linecap:round;stroke-linejoin:round}
.tile b{display:block;font-family:'Caveat',cursive;font-size:28px;line-height:1}
.tile span.t{font-size:14px;color:var(--muted)}
.zettel-teaser{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:16px;background:var(--tape);clip-path:var(--tapeclip);padding:12px 16px;text-decoration:none;font-family:'Archivo Black','Arial Black',sans-serif;font-size:14px}
.filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:26px 0 8px}
.search{flex:1 1 220px;min-height:46px;border:2px solid var(--ink);border-radius:12px;background:var(--paper);color:#221A4A;padding:10px 12px}
.count{color:var(--on-bg);font-size:14px;margin:0 0 12px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:18px}
@media (min-width:700px){.grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:22px}}
.card{display:block;text-decoration:none}
.card .paper{padding:10px 10px 14px}
.card-img{position:relative;aspect-ratio:4/5;overflow:hidden;border-radius:8px;background:var(--paper-2)}
.card-img img{width:100%;height:100%;object-fit:cover;object-position:50% 40%}
.card-img .play{position:absolute;right:8px;bottom:8px;width:38px;height:38px;border-radius:50%;background:rgba(34,26,74,.85);display:flex;align-items:center;justify-content:center}
.card-img .play svg{width:16px;height:16px}.card-img .play svg path{fill:#fff;stroke:#fff;stroke-width:2px;stroke-linejoin:round}
.card h3{font-size:28px;line-height:1;margin-top:8px}
.card .meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.tag{font-size:12px;font-family:'Archivo Black','Arial Black',sans-serif;padding:5px 9px 4px;border-radius:999px;background:var(--paper-2);color:var(--ink)}
.tag.on{background:var(--green-bg);color:var(--green)}
.empty{padding:20px;color:var(--on-bg)}

/* recipe */
.recipe{display:grid;grid-template-columns:1fr;grid-template-areas:"head" "media" "body";gap:20px}
.r-head{grid-area:head}.r-media{grid-area:media}.r-body{grid-area:body}
@media (min-width:880px){.recipe{grid-template-columns:minmax(300px,360px) 1fr;grid-template-areas:"media head" "media body";align-items:start}.r-media{position:sticky;top:96px}}
.phone{position:relative;border-radius:26px;padding:9px;background:var(--ink);box-shadow:0 10px 0 var(--shadow);max-width:260px;margin:0 auto}
@media (min-width:880px){.phone{max-width:360px}}
.phone video{width:100%;aspect-ratio:9/16;border-radius:18px;background:#000;object-fit:cover}
.ing-group+.ing-group{margin-top:16px}
.ing-group h3{font-family:'Caveat',cursive;font-size:28px;line-height:1;margin-bottom:4px}
.ing{list-style:none;margin:0;padding:0}
.ing li{display:grid;grid-template-columns:92px 1fr;gap:12px;padding:9px 0;border-bottom:2px dashed var(--line)}
.ing li:last-child{border-bottom:0}
.amt{font-family:'Archivo Black','Arial Black',sans-serif;font-size:15px;padding-top:2px}
.note-s{display:block;font-size:14px;color:var(--muted)}
.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.actions .btn{flex:1 1 auto}
.steps-list{list-style:none;margin:0;padding:0}
.steps-list li{display:grid;grid-template-columns:44px 1fr;gap:12px;padding:12px 0;border-bottom:2px dashed var(--line)}
.steps-list li:last-child{border-bottom:0}
.num{width:42px;height:42px;border-radius:50%;background:var(--red);border:4px solid #fff;box-shadow:0 0 0 2px var(--line);color:#fff;font-family:'Archivo Black','Arial Black',sans-serif;font-size:19px;display:flex;align-items:center;justify-content:center;transform:rotate(-6deg)}
.steps-list h3{font-family:'Caveat',cursive;font-size:29px;line-height:1;margin:2px 0 2px}
.steps-list p{margin:0}
.timer-tag{display:inline-block;margin-top:6px;font-size:13px;font-family:'Archivo Black','Arial Black',sans-serif;color:var(--muted)}

/* shopping list */
.progress{height:14px;border-radius:7px;background:var(--paper-2);border:2px solid var(--ink);overflow:hidden;margin-top:10px}
.progress i{display:block;height:100%;background:var(--green);transition:width .3s}
.list-entries{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.entry{display:flex;align-items:center;gap:8px;background:var(--paper-2);border-radius:14px;padding:6px 8px 6px 14px;flex-wrap:wrap}
.entry b{font-family:'Archivo Black','Arial Black',sans-serif;font-size:13px;font-weight:400}
.entry .mini{width:36px;height:36px;border:0;border-radius:50%;background:var(--ink);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center}
.entry .mini svg{width:14px;height:14px}.entry .mini svg path{fill:none;stroke:currentColor;stroke-width:3.5px;stroke-linecap:round}
.entry .cnt{min-width:76px;text-align:center;font-size:13px}
.shop h3{margin:20px 0 2px;font-family:'Caveat',cursive;font-size:30px;line-height:1}
.shop ul{list-style:none;margin:0;padding:0}
.chk{position:relative;display:flex;align-items:flex-start;gap:13px;padding:10px 0;cursor:pointer;border-bottom:2px dashed var(--line);min-height:48px}
.shop li:last-child .chk{border-bottom:0}
.chk input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.box{flex:0 0 auto;width:28px;height:28px;margin-top:1px;border:3px solid var(--ink);border-radius:6px;display:flex;align-items:center;justify-content:center;transform:rotate(-3deg)}
.box svg{width:30px;height:30px;opacity:0}
.box path{fill:none;stroke:var(--red-strong);stroke-width:5px;stroke-linecap:round;stroke-linejoin:round}
.chk input:checked + .box svg{opacity:1}
.chk input:checked ~ .txt{text-decoration:line-through;text-decoration-thickness:2px;color:var(--muted)}
.chk input:focus-visible + .box{outline:3px solid var(--red-strong);outline-offset:3px}
.src{display:block;font-size:13px;color:var(--muted)}
details.pantry{margin-top:18px;border-top:2px dashed var(--line);padding-top:10px}
details.pantry summary{cursor:pointer;font-family:'Caveat',cursive;font-size:28px;font-weight:700;min-height:44px;display:flex;align-items:center}
.add-row{display:flex;gap:8px;margin-top:18px}
.add-row input{flex:1;min-width:0;min-height:46px;border:2px solid var(--ink);border-radius:12px;background:#fff;color:#221A4A;padding:10px 12px}
.fallback{display:block;width:100%;min-height:180px;margin-top:10px;padding:12px;border:2px solid var(--ink);border-radius:10px;background:#fff;color:#221A4A;font:15px/1.45 'Archivo','Helvetica Neue',Helvetica,sans-serif}

/* builder */
.bsteps{display:flex;gap:6px;overflow-x:auto;padding:4px 2px 8px;margin:14px -4px 0;scrollbar-width:thin}
.bstep{flex:0 0 auto;border:0;cursor:pointer;display:flex;align-items:center;gap:6px;padding:7px 12px 7px 7px;border-radius:999px;background:var(--paper-2);color:var(--ink);font-size:13px;font-family:'Archivo Black','Arial Black',sans-serif;min-height:40px}
.bstep i{width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fff;border:2px solid var(--ink);font-style:normal;font-size:12px}
.bstep.done i{background:var(--green);border-color:var(--green);color:#fff}
.bstep[aria-current="step"]{background:var(--ink);color:#fff}
.bstep[aria-current="step"] i{border-color:#fff;color:var(--ink)}
.bstep.opt span::after{content:" (optional)";font-family:'Archivo','Helvetica Neue',sans-serif;font-size:11px;opacity:.8}
.builder{display:grid;grid-template-columns:1fr;gap:20px;margin-top:18px}
@media (min-width:920px){.builder{grid-template-columns:minmax(360px,1fr) 1.1fr;align-items:start}.plate-col{position:sticky;top:96px}}
.plate-wrap{position:relative;aspect-ratio:1/1;max-width:300px;margin:0 auto}
@media (min-width:920px){.plate-wrap{max-width:440px}}
.plate{position:absolute;inset:5%;border-radius:50%;background:radial-gradient(circle at 50% 48%, #FFFFFF 0 58%, #F1EDE6 59% 66%, #FFFFFF 67%);box-shadow:0 12px 0 var(--shadow), inset 0 -10px 0 #E4DED3}
.plate-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:24%;font-family:'Caveat',cursive;font-size:27px;font-weight:700;color:#8C86A8}
.pchip{position:absolute;transform:translate(-50%,-50%) rotate(var(--r,0deg));border:0;cursor:pointer;background:#fff;color:#221A4A;padding:7px 11px 6px 9px;display:flex;align-items:center;gap:6px;font-family:'Caveat',cursive;font-weight:700;font-size:21px;line-height:1;white-space:nowrap;clip-path:var(--tapeclip);filter:drop-shadow(0 3px 0 rgba(34,26,74,.25));min-height:38px}
.pchip i{width:15px;height:15px;border-radius:50%;flex:0 0 auto;box-shadow:inset 0 0 0 2px rgba(0,0,0,.12)}
.pchip.new{animation:drop .5s cubic-bezier(.2,1.6,.4,1)}
@keyframes drop{0%{transform:translate(-50%,-180%) rotate(var(--r,0deg)) scale(1.3);opacity:0}60%{opacity:1}100%{transform:translate(-50%,-50%) rotate(var(--r,0deg)) scale(1)}}
.stamp{position:absolute;right:0;top:0;width:118px;height:118px;border-radius:50%;border:5px solid var(--red-strong);color:var(--red-strong);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;transform:rotate(12deg);background:rgba(255,255,255,.88);font-family:'Archivo Black','Arial Black',sans-serif;font-size:11px;line-height:1.1;padding:8px;animation:stampin .45s cubic-bezier(.2,1.4,.4,1)}
.stamp b{font-family:'Caveat',cursive;font-size:27px;line-height:.95;font-weight:700}
@keyframes stampin{0%{transform:rotate(-20deg) scale(2.2);opacity:0}100%{transform:rotate(12deg) scale(1);opacity:1}}
.confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.confetti i{position:absolute;top:-10%;width:10px;height:16px;border-radius:2px;animation:fall 1.4s ease-in forwards}
@keyframes fall{0%{transform:translateY(0) rotate(0)}100%{transform:translateY(520px) rotate(540deg);opacity:0}}
.gauge{margin-top:14px}
.gauge .lbl{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-family:'Archivo Black','Arial Black',sans-serif;font-size:13px}
.gauge .lbl .score{font-family:'Caveat',cursive;font-size:30px;line-height:1}
.gauge .track{position:relative;height:16px;border-radius:8px;border:2px solid var(--ink);background:linear-gradient(90deg,#F5C9C0 0 40%,#F7E3B0 40% 70%,#D3EBCB 70% 100%);margin-top:4px}
.gauge .mark{position:absolute;top:50%;width:22px;height:22px;border-radius:50%;background:var(--ink);border:3px solid #fff;transform:translate(-50%,-50%);transition:left .45s cubic-bezier(.2,1.3,.4,1)}
.delta{display:inline-block;font-family:'Archivo Black','Arial Black',sans-serif;font-size:14px;padding:2px 8px;border-radius:999px;animation:pop 1.6s ease forwards}
.delta.up{background:var(--green-bg);color:var(--green)}.delta.down{background:var(--warn-bg);color:var(--warn)}
@keyframes pop{0%{transform:translateY(6px);opacity:0}15%{transform:translateY(0);opacity:1}80%{opacity:1}100%{opacity:0}}
.say{position:relative;margin-top:14px;background:var(--paper-2);border-radius:16px;padding:12px 14px 12px 50px;min-height:56px;display:flex;align-items:center}
.say::before{content:"";position:absolute;left:12px;top:50%;width:28px;height:28px;margin-top:-14px;border-radius:50%;background:var(--red);border:3px solid #fff;box-shadow:0 0 0 2px var(--line)}
.say.good{background:var(--green-bg)}.say.good::before{background:var(--green)}
.say.warn{background:var(--warn-bg)}
.say.anim{animation:sayin .35s ease}
@keyframes sayin{0%{transform:translateY(8px);opacity:.2}100%{transform:none;opacity:1}}
.say .undo{margin-left:auto;border:0;background:none;text-decoration:underline;font-family:'Archivo Black','Arial Black',sans-serif;font-size:13px;cursor:pointer;color:inherit;min-height:40px;padding:0 4px}
.plate-tools{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.plate-tools .btn{flex:1 1 auto}
.step-panel h2{font-size:clamp(34px,7vw,46px);line-height:.95}
.step-kicker{font-family:'Archivo Black','Arial Black',sans-serif;font-size:13px;color:var(--muted)}
.cgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin-top:14px}
.ccard{position:relative;border:2px solid transparent;cursor:pointer;background:var(--paper-2);color:#221A4A;border-radius:14px;padding:12px 12px 10px;display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;min-height:78px;transition:transform .12s}
.ccard:active{transform:scale(.97)}
.ccard .cn{display:flex;align-items:center;gap:8px;font-weight:600;font-size:15px;line-height:1.15}
.ccard .cn i{width:16px;height:16px;border-radius:50%;flex:0 0 auto;box-shadow:inset 0 0 0 2px rgba(0,0,0,.12)}
.ccard .ct{font-size:12.5px;color:var(--muted)}
.ccard .cb{font-size:11.5px;font-family:'Archivo Black','Arial Black',sans-serif;padding:3px 8px 2px;border-radius:999px}
.ccard .cb.good{background:var(--green-bg);color:var(--green)}
.ccard .cb.warn{background:var(--warn-bg);color:var(--warn)}
.ccard[aria-pressed="true"]{background:var(--ink);color:#fff;border-color:var(--ink)}
.ccard[aria-pressed="true"] .ct{color:#E6E1F5}
.ccard[aria-pressed="true"]::after{content:"";position:absolute;right:10px;top:10px;width:22px;height:22px;border-radius:50%;background:var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5 L10.5 17 L18 7' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat}
.fmt-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.fmt{border:2px solid transparent;cursor:pointer;background:var(--paper-2);color:#221A4A;border-radius:16px;padding:14px;text-align:left;min-height:110px}
.fmt b{display:block;font-family:'Caveat',cursive;font-size:32px;line-height:1}
.fmt span{display:block;font-size:13px;color:var(--muted);margin-top:4px}
.fmt[aria-pressed="true"]{border-color:var(--ink);background:#fff}
.step-nav{display:flex;gap:10px;margin-top:16px}
.step-nav .btn{flex:1}
.meters{display:grid;grid-template-columns:auto 1fr;gap:8px 12px;align-items:center;margin-top:8px}
.meters span{font-family:'Archivo Black','Arial Black',sans-serif;font-size:13px}
.bar{height:14px;border-radius:7px;background:var(--paper-2);overflow:hidden;border:2px solid var(--ink)}
.bar i{display:block;height:100%;background:var(--red);border-radius:5px;transition:width .4s ease}
.texture{display:flex;align-items:center;gap:10px;margin-top:14px;font-family:'Archivo Black','Arial Black',sans-serif;font-size:13px}
.texture .track{position:relative;flex:1;height:14px;border-radius:7px;background:linear-gradient(90deg,#F3E3B5,#FBF6EA 50%,#E9D3A6);border:2px solid var(--ink)}
.texture .knob{position:absolute;top:50%;width:20px;height:20px;border-radius:50%;background:var(--red-strong);border:3px solid #fff;transform:translate(-50%,-50%);transition:left .4s ease}
.tips{list-style:none;margin:14px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}
.tips li{background:var(--paper-2);border-radius:12px;padding:10px 12px}
.tips .sugg{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
details.waage summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;min-height:44px}
details.waage summary::-webkit-details-marker{display:none}
details.waage summary .h2::after{content:" +";font-family:'Archivo Black','Arial Black',sans-serif;font-size:20px}
details.waage[open] summary .h2::after{content:" −"}
.names{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.namechip{border:2px solid var(--ink);cursor:pointer;background:#fff;color:#221A4A;border-radius:999px;padding:9px 16px 8px;font-family:'Caveat',cursive;font-size:24px;font-weight:700;line-height:1;min-height:46px}
.namechip[aria-pressed="true"]{background:var(--ink);color:#fff}
.name-input{width:100%;min-height:48px;border:2px solid var(--ink);border-radius:12px;background:#fff;color:#221A4A;padding:10px 12px;margin-top:10px;font-family:'Caveat',cursive;font-size:26px;font-weight:700}
.strengths{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.dish-card .paper{padding:24px 20px}
.dish-name{font-size:clamp(44px,10vw,64px);line-height:.92}
.mine{margin-top:14px}
.mine summary{cursor:pointer;font-family:'Archivo Black','Arial Black',sans-serif;font-size:14px;min-height:44px;display:inline-flex;align-items:center}
.mine ul{list-style:none;margin:8px 0 0;padding:0}
.mine li{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:10px 0;border-bottom:2px dashed var(--line)}
.mine li b{font-family:'Caveat',cursive;font-size:26px;line-height:1}

/* dice */
.fridge-tools{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px;align-items:center}
.fridge-tools .search{flex:1 1 200px}
.picked{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.picked button{border:0;cursor:pointer;background:var(--ink);color:#fff;border-radius:999px;padding:7px 12px 6px;font-size:13px;min-height:36px;display:inline-flex;align-items:center;gap:6px}
.fridge{display:flex;flex-direction:column;gap:12px;margin-top:12px}
.fridge h3{font-family:'Caveat',cursive;font-size:28px;line-height:1}
.fridge .opts{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.more{border:0;background:none;cursor:pointer;text-decoration:underline;font-size:14px;min-height:42px;padding:0 6px;color:var(--ink)}
.rollbar{position:sticky;bottom:calc(84px + env(safe-area-inset-bottom,0px));z-index:15;margin-top:16px;display:flex;align-items:center;gap:14px;background:var(--paper);border:3px solid var(--ink);border-radius:18px;padding:10px 12px;box-shadow:0 6px 0 var(--shadow)}
@media (min-width:760px){.rollbar{bottom:16px}}
.rollbar .info{flex:1;min-width:0;font-size:14px}
.rollbar .info b{display:block;font-family:'Archivo Black','Arial Black',sans-serif;font-size:14px}
.die{width:62px;height:62px;flex:0 0 auto;border-radius:16px;background:#fff;border:4px solid var(--ink);display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);padding:7px;gap:2px;cursor:pointer;transition:transform .08s}
.die i{border-radius:50%;background:var(--red);margin:2px;visibility:hidden}
.die i.on{visibility:visible}
.result{margin-top:22px}
.result .paper{padding:22px 20px}
.result-grid{display:grid;grid-template-columns:1fr;gap:14px;margin-top:10px}
@media (min-width:640px){.result-grid{grid-template-columns:160px 1fr}}
.result img{border-radius:10px;width:100%;max-width:220px;aspect-ratio:4/5;object-fit:cover}
.miss{margin:6px 0 0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:6px}
.miss li{font-size:13px;font-family:'Archivo Black','Arial Black',sans-serif;padding:6px 10px 5px;border-radius:999px;background:var(--warn-bg);color:var(--warn)}
.alts{display:grid;grid-template-columns:1fr;gap:10px;margin-top:14px}
@media (min-width:640px){.alts{grid-template-columns:1fr 1fr}}
.alt{display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--paper-2);border-radius:14px;padding:10px 12px}
.alt b{font-family:'Caveat',cursive;font-size:25px;line-height:1}

/* cook mode */
.cook{position:fixed;inset:0;z-index:40;background-color:var(--bg);background-image:var(--pat);background-size:52px 52px;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top,0px);overflow:auto}
.cook:focus{outline:none}
.cook-top{display:flex;align-items:center;gap:10px;padding:10px 14px;flex-wrap:wrap}
.cook-top .ttl{flex:1;min-width:0;font-family:'Caveat',cursive;font-size:28px;font-weight:700;line-height:1;color:var(--on-bg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dots{display:flex;gap:5px;padding:0 14px}
.dots i{flex:1;height:8px;border-radius:4px;background:rgba(120,110,160,.35)}
.dots i.on{background:var(--red-strong)}
.cook-body{flex:1;display:grid;grid-template-columns:1fr;gap:16px;padding:14px;max-width:1100px;width:100%;margin:0 auto;align-content:start}
@media (min-width:860px){.cook-body.has-vid{grid-template-columns:300px 1fr;align-items:start}}
.cook-video{max-width:200px;width:100%;margin:0 auto;border-radius:20px;padding:7px;background:var(--ink)}
@media (min-width:860px){.cook-video{max-width:300px}}
.cook-video video{width:100%;aspect-ratio:9/16;border-radius:14px;object-fit:cover;background:#000}
.cook-step .paper{padding:24px 20px 26px}
.cook-step h2{font-size:clamp(40px,9vw,62px);line-height:.95;margin-top:4px}
.cook-step p.txt{font-size:clamp(20px,3.6vw,25px);line-height:1.38;margin:12px 0 0}
.uses{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.uses span{font-size:14px;background:var(--paper-2);border-radius:999px;padding:7px 12px}
.cook-nav{position:sticky;bottom:0;display:flex;gap:10px;padding:12px 14px calc(12px + env(safe-area-inset-bottom,0px));background:linear-gradient(transparent,var(--bg) 30%);max-width:1100px;width:100%;margin:0 auto}
.cook-nav .btn{flex:1;min-height:58px;font-size:16px}
.timers{display:flex;flex-wrap:wrap;gap:8px;padding:6px 14px 0}
.tmr{display:inline-flex;align-items:center;gap:8px;background:var(--ink);color:#fff;border-radius:999px;padding:6px 6px 6px 14px;font-family:'Archivo Black','Arial Black',sans-serif;font-size:14px}
.tmr.done{background:var(--red-strong);animation:pulse 1s ease-in-out infinite}
.tmr button{width:34px;height:34px;border-radius:50%;border:0;background:rgba(255,255,255,.18);color:#fff;cursor:pointer}
@keyframes pulse{50%{transform:scale(1.05)}}
.wake{font-size:13px;color:var(--on-bg);opacity:.85;padding:4px 14px 0;margin:0}
.ing-drawer{margin:8px 14px 0}
.ing-drawer summary{cursor:pointer;font-family:'Archivo Black','Arial Black',sans-serif;font-size:14px;color:var(--on-bg);min-height:40px;display:inline-flex;align-items:center}
.ing-drawer .paper{margin-top:6px}
.finish{text-align:center}
.finish .paper{padding:34px 22px}

/* admin */
.admin .paper{padding:22px}
.tabs{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.field{display:flex;flex-direction:column;gap:4px}
.field label{font-size:13px;font-family:'Archivo Black','Arial Black',sans-serif}
.field input,.field select,.field textarea{min-height:44px;border:2px solid var(--ink);border-radius:10px;background:#fff;color:#221A4A;padding:8px 10px}
.field textarea{min-height:90px;resize:vertical}
.ed-rows{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.ed-row{display:grid;grid-template-columns:2fr 90px 90px 2fr 40px;gap:6px;align-items:center}
.ed-row input,.ed-row select{min-height:40px;border:2px solid var(--ink);border-radius:8px;background:#fff;color:#221A4A;padding:6px 8px;width:100%}
.ed-step{display:grid;grid-template-columns:1fr;gap:6px;background:var(--paper-2);border-radius:12px;padding:12px}
.ed-step .line{display:grid;grid-template-columns:2fr 1fr 1fr 1fr 40px;gap:6px}
.ed-step input,.ed-step textarea{border:2px solid var(--ink);border-radius:8px;background:#fff;color:#221A4A;padding:6px 8px;min-height:40px;width:100%}
.del{width:40px;height:40px;border:0;border-radius:10px;background:var(--warn-bg);color:var(--warn);cursor:pointer;font-weight:700}
.adm-list{list-style:none;margin:0;padding:0}
.adm-list li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:2px dashed var(--line);flex-wrap:wrap}
.lex-table{width:100%;border-collapse:collapse;font-size:14px}
.lex-wrap{overflow-x:auto}
.lex-table th{text-align:left;font-family:'Archivo Black','Arial Black',sans-serif;font-size:12px;padding:6px}
.lex-table td{padding:4px}
.lex-table input,.lex-table select{min-height:38px;border:2px solid var(--ink);border-radius:8px;background:#fff;color:#221A4A;padding:4px 6px;width:100%;min-width:90px}
.mode-banner{background:var(--tape);clip-path:var(--tapeclip);padding:10px 16px;font-size:14px;margin-top:6px}
@media (max-width:640px){.ed-row{grid-template-columns:1fr 70px 70px 40px}.ed-row .nt{grid-column:1/-1}.ed-step .line{grid-template-columns:1fr 1fr}}

/* toast + footer */
.toast{position:fixed;left:50%;bottom:calc(18px + env(safe-area-inset-bottom,0px));transform:translate(-50%,180%);background:var(--ink);color:#fff;border-radius:14px;padding:10px 12px 10px 16px;display:flex;align-items:center;gap:12px;z-index:70;transition:transform .25s ease;max-width:calc(100% - 28px);font-size:15px}
@media (max-width:759px){.toast{bottom:calc(84px + env(safe-area-inset-bottom,0px))}}
.toast.show{transform:translate(-50%,0)}
.toast a,.toast button{color:#fff;font-family:'Archivo Black','Arial Black',sans-serif;font-size:13px;background:rgba(255,255,255,.16);border:0;border-radius:10px;padding:8px 10px;cursor:pointer;text-decoration:none;white-space:nowrap}
.site-foot{padding:20px 0 34px;color:var(--on-bg);text-align:center;font-size:14px}
.site-foot a{display:inline-block;margin:0 8px;min-height:40px;padding-top:10px}
@media (prefers-reduced-motion: reduce){*{transition:none!important;animation:none!important}}
.zettel-teaser svg{width:18px;height:18px;flex:0 0 auto}.zettel-teaser svg path{fill:none;stroke:currentColor;stroke-width:3px;stroke-linecap:round;stroke-linejoin:round}
.picked button svg path{fill:none;stroke:#fff;stroke-width:3px;stroke-linecap:round}

.chiprow{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 10px;margin:0 0 6px;scrollbar-width:thin}
.chiprow .chip{flex:0 0 auto}
@media (min-width:760px){.chiprow{flex-wrap:wrap;overflow:visible}}

/* ---------- retro kitchen look ---------- */
.tile{background:var(--tc,#C9301D);color:#fff;border-radius:18px;box-shadow:0 5px 0 rgba(0,0,0,.2);transform:rotate(var(--tr,0deg));transition:transform .15s}
.tile:nth-child(1){--tc:#C9301D;--tr:-.8deg}
.tile:nth-child(2){--tc:#2B7A37;--tr:.7deg}
.tile:nth-child(3){--tc:#6B4FC8;--tr:-.5deg}
@media (hover:hover){.tile:hover{transform:rotate(0) translateY(-2px)}}
.tile .ic{background:#fff;border:0;width:52px;height:52px;box-shadow:0 3px 0 rgba(0,0,0,.18)}
.tile .ic svg path{stroke:var(--tc)}
.tile b{font-size:30px}
.tile span.t{color:rgba(255,255,255,.93)}
.stk{position:absolute;z-index:4;width:64px;height:64px;pointer-events:none}
.stk svg{width:100%;height:100%;overflow:visible}
.hero .stk-1{right:-6px;top:-24px;transform:rotate(12deg)}
.hero .stk-2{left:-12px;bottom:-20px;transform:rotate(-14deg);width:56px;height:56px}
.hero .stk-3{right:22px;bottom:-26px;transform:rotate(-6deg);width:58px;height:58px}
.today .stk-4{right:-8px;top:-18px;transform:rotate(18deg);width:54px;height:54px}
@media (max-width:520px){.stk{width:46px;height:46px}.hero .stk-2,.hero .stk-3,.today .stk-4{width:42px;height:42px}}
.today{margin-top:26px}
.today .paper{display:grid;grid-template-columns:118px 1fr;gap:16px;align-items:center;padding:16px}
.today-img{display:block;border-radius:12px;overflow:hidden;aspect-ratio:9/16;background:var(--lilac);box-shadow:0 0 0 5px var(--ink)}
.today-img img{width:100%;height:100%;object-fit:cover}
.kicker{display:inline-block;font-family:'Archivo Black','Arial Black',sans-serif;font-size:12px;letter-spacing:.06em;text-transform:uppercase;background:var(--butter);color:var(--ink);padding:5px 9px 4px;border-radius:6px;transform:rotate(-2deg)}
.today h2{font-size:clamp(34px,8vw,50px);line-height:.95;margin:8px 0 4px}
.today .sub{margin:0;color:var(--muted);font-size:15px}
.today .actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
@media (min-width:760px){.today .paper{grid-template-columns:170px 1fr;padding:20px 26px;gap:24px}}
.grid .card{transition:transform .15s}
.grid .card:nth-child(4n+1){transform:rotate(-1.1deg)}
.grid .card:nth-child(4n+2){transform:rotate(.9deg)}
.grid .card:nth-child(4n+3){transform:rotate(.4deg)}
.grid .card:nth-child(4n){transform:rotate(-.6deg)}
@media (hover:hover){.grid .card:hover{transform:rotate(0) translateY(-3px)}}
.grid .card:focus-visible{transform:rotate(0) translateY(-3px)}
.card::before{content:'';position:absolute;top:-9px;left:50%;width:72px;height:22px;margin-left:-36px;background:var(--tape);clip-path:var(--tapeclip);z-index:3;transform:rotate(-4deg)}
.grid .card:nth-child(even)::before{transform:rotate(5deg)}
.card-img{background:var(--lilac)}
.card-img .time{position:absolute;left:6px;top:6px;width:54px;height:54px;border-radius:50%;background:var(--red-strong);color:#fff;border:3px solid #fff;display:flex;flex-direction:column;align-items:center;justify-content:center;font-family:'Archivo Black','Arial Black',sans-serif;font-size:17px;line-height:1;transform:rotate(-10deg);box-shadow:0 3px 0 rgba(0,0,0,.2)}
.card-img .time small{font-size:9px;margin-top:2px}
.tag{background:#FFE8A3}
.tag.on{background:var(--green-bg)}
.mark{display:inline-block;padding:0 8px;background:linear-gradient(transparent 58%,var(--mark) 58%,var(--mark) 90%,transparent 90%)}
.phone video{background:var(--lilac)}
.cstep{display:contents}
.cook-video{position:relative}
.cook-video video{position:relative;z-index:1;background:transparent;transition:opacity .12s}
.cook-video video.hold{opacity:0}
.cv-frame{position:absolute;left:7px;top:7px;right:7px;bottom:7px;border-radius:14px;background-color:var(--lilac);background-repeat:no-repeat;z-index:0}
.toast:not(.show){opacity:0;visibility:hidden;pointer-events:none}
.card-img .time{top:auto;bottom:6px}
.tag{white-space:nowrap}
.today .actions .btn{flex:0 0 auto}
.ccount{flex:0 0 auto;font-family:'Archivo Black','Arial Black',sans-serif;font-size:16px;line-height:1;background:var(--red-strong);color:#fff;border-radius:999px;padding:8px 12px 7px;transform:rotate(-4deg);box-shadow:0 3px 0 rgba(0,0,0,.18)}
.ccount:empty,.wake:empty{display:none}
@media (max-width:859px){
  .cook-body.has-vid{--pw:min(250px,66vw)}
  .cook-body.has-vid .cook-video{width:var(--pw);max-width:none}
  .cook-body.has-vid .cook-step{margin-top:calc(var(--pw) * -0.55 - 16px);z-index:2}
}
.cook-nav{z-index:6}
[hidden]{display:none !important}
.btn.fav{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 2px var(--ink)}
.btn.fav[aria-pressed="true"]{background:#FDE1DC;color:var(--red-strong);box-shadow:inset 0 0 0 2px var(--red-strong)}
.btn.fav[aria-pressed="true"] svg path{fill:currentColor}
.btn.fav.big{min-height:54px;padding:14px 22px;font-size:16px}
.fav-q{margin:16px 0 0;font-weight:600}
.finish .link{font-family:'Archivo Black','Arial Black',sans-serif;font-size:14px;color:var(--ink)}
.favmark{display:inline-flex;vertical-align:middle;margin-left:6px;width:20px;height:20px;color:var(--red-strong)}
.favmark svg{width:20px;height:20px}
.favmark svg path{fill:currentColor;stroke:currentColor;stroke-width:1.5px}
.favrow{display:flex;gap:14px;overflow-x:auto;padding:12px 4px 14px;margin:0 -4px}
.fav-card{flex:0 0 118px;text-decoration:none;color:var(--ink)}
.fav-card:nth-child(odd){transform:rotate(-1.2deg)}
.fav-card:nth-child(even){transform:rotate(1deg)}
.fav-card .paper{padding:7px 7px 10px}
.fav-card img{width:100%;aspect-ratio:4/5;object-fit:cover;object-position:50% 40%;border-radius:6px;background:var(--lilac)}
.fav-card b{display:block;font-size:20px;line-height:1;margin-top:6px}

html{overflow-x:hidden}
@supports (overflow:clip){body{overflow-x:clip}}
.today .paper{grid-template-columns:118px minmax(0,1fr)}
@media (min-width:760px){.today .paper{grid-template-columns:170px minmax(0,1fr)}}
.today .meta{display:flex;flex-wrap:wrap;gap:6px}
.today .stk-4{right:-2px}
.tabbar{background:var(--bar-bg);border-top-color:var(--bar-line)}
.tabbar a{color:var(--bar-fg)}
.head-right{display:flex;align-items:center;gap:10px}
.theme-btn{flex:0 0 auto;width:46px;height:46px;border-radius:50%;border:0;cursor:pointer;background:var(--theme-bg);color:var(--theme-fg);display:inline-flex;align-items:center;justify-content:center;box-shadow:0 4px 0 var(--shadow);transform:rotate(-6deg)}
.theme-btn svg{width:22px;height:22px}
.theme-btn svg path{fill:none;stroke:currentColor;stroke-width:2.4px;stroke-linecap:round;stroke-linejoin:round}
.cook-top .btn.ghost,.cook-nav .btn.ghost{color:var(--on-bg);box-shadow:inset 0 0 0 2px var(--on-bg)}
.hero .stk-1{top:14px;right:-10px}

/* ---------- account + community ---------- */
.acct-btn{flex:0 0 auto;width:46px;height:46px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--theme-bg);color:var(--theme-fg);box-shadow:0 4px 0 var(--shadow);transform:rotate(5deg);text-decoration:none}
.acct-btn svg{width:22px;height:22px}.acct-btn svg path{fill:none;stroke:currentColor;stroke-width:2.4px;stroke-linecap:round;stroke-linejoin:round}
.acct-btn.in{background:var(--red-strong);color:#fff;font-family:'Archivo Black','Arial Black',sans-serif;font-size:19px}
.or{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:14px}
.or::before,.or::after{content:'';flex:1;height:2px;background:var(--line)}
.btn svg.g-logo{width:20px;height:20px}
.warn-box{background:var(--warn-bg);color:var(--warn);padding:10px 12px;border-radius:10px;margin:12px 0 0}
.warn-txt{color:var(--warn)}
.sync-box{margin-top:20px;padding:12px 14px;border-radius:12px;background:var(--green-bg);color:var(--green);display:flex;flex-direction:column;gap:3px}
.sync-box b{display:flex;align-items:center;gap:6px}
.sync-box svg{width:18px;height:18px}.sync-box svg path{fill:none;stroke:currentColor;stroke-width:3px;stroke-linecap:round;stroke-linejoin:round}
.btn.danger{color:var(--warn);box-shadow:inset 0 0 0 2px var(--warn)}
.btn.big{min-height:54px;padding:14px 22px;font-size:16px}
.linkbtn{background:none;border:0;padding:6px 0;margin-right:16px;font:inherit;font-size:13px;font-weight:600;color:var(--muted);text-decoration:underline;cursor:pointer;min-height:36px}
.stars{display:inline-flex;gap:1px;font-size:18px;line-height:1}
.stars i{font-style:normal;color:#D9D2C3}
.stars i.f{color:#F2A70A}
.stars i.h{background:linear-gradient(90deg,#F2A70A 50%,#D9D2C3 50%);-webkit-background-clip:text;background-clip:text;color:transparent}
.rv-sum{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:6px 0 4px}
.rv-sum .stars{font-size:26px}
.rv-sum b{font-family:'Archivo Black','Arial Black',sans-serif;font-size:22px}
.rv-sum span{color:var(--muted);font-size:14px}
.rv{padding:12px 0 4px;border-top:2px dashed var(--line)}
.rv-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.rv p{margin:6px 0 0}
.rv-photo{margin-top:10px;width:100%;max-width:320px;border-radius:12px}
.rv-list{list-style:none;margin:8px 0 0;padding:0}
.rv-mine{margin-top:12px;padding:10px 14px 4px;border-radius:12px;background:var(--paper-2)}
.rv-mine .rv{border-top:0;padding-top:4px}
.rv-form,.rv-login{margin-top:12px;padding:14px;border-radius:14px;background:var(--paper-2)}
.stars-in{border:0;padding:0;margin:0 0 12px;display:flex;gap:6px;flex-wrap:wrap}
.stars-in legend{font-weight:600;margin-bottom:8px;padding:0}
.stars-in .st{width:50px;height:50px;border:0;border-radius:12px;background:var(--paper);font-size:30px;line-height:1;color:#CFC6B4;cursor:pointer;box-shadow:inset 0 0 0 2px var(--line)}
.stars-in .st[aria-pressed="true"]{color:#F2A70A;box-shadow:inset 0 0 0 2px #F2A70A}
#rvprev img{margin-top:10px;max-width:220px;border-radius:10px}
.field .lbl{display:block;font-weight:600;margin-bottom:6px}
.tag.rate{background:#FFF1C2;color:#7A4E00}
.adm-rv{list-style:none;margin:10px 0 0;padding:0}
.adm-rv li{padding:12px 0;border-top:2px dashed var(--line)}
.adm-rv li.off{opacity:.65}
.adm-photo img{max-width:240px;border-radius:10px;margin-top:8px;display:block}
.legal p{max-width:70ch}
.konto .stack{gap:12px}
.konto .stack p.small{margin:0}

.theme-switch{display:inline-flex;gap:4px;margin-top:12px;padding:4px;border-radius:999px;background:rgba(127,127,127,.14)}
.theme-switch button{border:0;background:transparent;color:var(--on-bg);font-family:'Archivo Black','Arial Black',sans-serif;font-size:12px;padding:8px 12px;border-radius:999px;min-height:36px;cursor:pointer}
.theme-switch button[aria-pressed="true"]{background:var(--on-bg);color:var(--bg)}
.rv-form .field{margin-bottom:14px}
.field .lbl{font-size:13px;font-family:'Archivo Black','Arial Black',sans-serif;font-weight:400;margin-bottom:6px}
input:focus-visible,textarea:focus-visible,select:focus-visible{outline-offset:1px}
.konto-h{margin-top:28px;display:flex;align-items:center;gap:8px}
.konto-h .cnt{font-family:'Archivo Black','Arial Black',sans-serif;font-size:14px;background:var(--butter);color:var(--ink);border-radius:999px;padding:3px 9px}
.konto-h .cnt:empty{display:none}
.klist{list-style:none;margin:8px 0 0;padding:0}
.klist li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:2px dashed var(--line)}
.kitem{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit;min-width:0}
.kitem img{width:46px;height:58px;object-fit:cover;object-position:50% 35%;border-radius:8px;background:var(--lilac);flex:0 0 auto}
.kitem > span{display:flex;flex-direction:column;min-width:0}
.krv > div{min-width:0}
.krv .kt{font-weight:700;color:inherit}
.krv p{margin:4px 0 0}
.print-only{display:none}
@media print{
  @page{size:A4;margin:14mm}
  :root{--paper:#fff;--ink:#000;--muted:#333;--line:#bbb;--on-bg:#000}
  html,body{background:#fff !important;background-image:none !important;color:#000}
  .site-head,.site-foot,.tabbar,.toast,.skip,.back,.r-media,.reviews,.r-head .actions,.r-body .actions,.stepper button,.stk,.tape{display:none !important}
  main{padding:0 !important;min-height:0}
  .note{filter:none !important;transform:none !important}
  .paper{clip-path:none !important;padding:0 !important;background:none !important}
  .recipe{display:block}
  .r-head{margin-bottom:6mm;padding-bottom:4mm;border-bottom:2px solid #000}
  .title-l{font-size:30pt}
  .facts li{clip-path:none;background:none;border:1px solid #888;padding:3px 8px}
  .r-body{display:grid !important;grid-template-columns:36% 1fr;gap:8mm;align-items:start}
  .r-body > section:nth-of-type(n+3),.print-src{grid-column:1/-1}
  .ing li{grid-template-columns:68px 1fr;padding:5px 0;break-inside:avoid}
  .steps-list li{grid-template-columns:30px 1fr;padding:6px 0;break-inside:avoid}
  .steps-list .num{background:none !important;color:#000 !important;box-shadow:inset 0 0 0 2px #000}
  .print-only{display:block}
  .print-src{margin-top:4mm;font-size:9pt;color:#555}
  a{color:#000;text-decoration:none}
}
@media (max-width:759px){.site-foot a,.site-foot button{scroll-margin-bottom:120px}}
@media (max-width:759px){.site-foot{padding-bottom:calc(104px + env(safe-area-inset-bottom,0px))}}
@media print{.print-dish{float:right;width:56mm;margin:0 0 3mm 6mm}}

.sheet{position:fixed;inset:0;z-index:90;background:rgba(20,16,40,.55);display:flex;align-items:flex-end;justify-content:center}
.sheet-card{background:var(--paper);color:var(--ink);width:100%;max-width:560px;max-height:94vh;overflow:auto;border-radius:22px 22px 0 0;padding:16px 16px calc(18px + env(safe-area-inset-bottom,0px))}
@media (min-width:760px){.sheet{align-items:center}.sheet-card{border-radius:22px}}
body.sheet-open{overflow:hidden}
.sh-formats{display:flex;gap:6px;overflow-x:auto;margin:12px 0 10px}
.sh-formats button{flex:0 0 auto;border:0;border-radius:12px;padding:8px 12px 7px;min-height:44px;background:var(--paper-2);font-family:'Archivo Black','Arial Black',sans-serif;font-size:13px;color:var(--ink);cursor:pointer;text-align:center}
.sh-formats button small{display:block;font-family:'Archivo',sans-serif;font-weight:600;font-size:11px;opacity:.75}
.sh-formats button[aria-pressed="true"]{background:var(--ink);color:#fff}
.sh-preview{display:flex;flex-direction:column;justify-content:center;align-items:center;background:var(--paper-2);border-radius:14px;padding:12px;min-height:220px}
.sh-preview img{display:block;max-width:100%;max-height:44vh;border-radius:8px;box-shadow:0 4px 14px rgba(0,0,0,.18)}
.sh-preview img:not([src]){display:none}
.sh-link{display:flex;gap:8px;margin-top:12px}
.sh-link input{flex:1;min-width:0;min-height:44px;border:2px solid var(--ink);border-radius:10px;padding:8px 10px;background:#fff;color:#221A4A;font-size:14px}
.sh-apps{margin-top:10px}

/* ---------- Bot-Kantine + ads ---------- */
.kantine-grid{display:grid;grid-template-columns:1fr;gap:20px;margin:20px 0}
@media (min-width:760px){.kantine-grid{grid-template-columns:1fr 1fr}}
.kantine-hero{margin-bottom:20px}
.guests{list-style:none;margin:8px 0 0;padding:0}
.guests li{display:grid;grid-template-columns:44px minmax(0,1fr) 26% auto;align-items:center;gap:10px;padding:8px 0;border-top:2px dashed var(--line)}
.guests .gplate{width:42px;height:42px;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 5px var(--c),0 3px 0 rgba(0,0,0,.12);display:flex;align-items:center;justify-content:center;font-family:'Archivo Black','Arial Black',sans-serif;color:var(--c)}
.guests .gname{display:flex;flex-direction:column;min-width:0}
.guests .gname b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.guests .gbar{height:12px;border-radius:6px;background:var(--paper-2);overflow:hidden}
.guests .gbar i{display:block;height:100%;background:var(--butter);border-radius:6px}
.guests .gn{font-family:'Archivo Black','Arial Black',sans-serif;font-size:14px}
.klinks{margin:6px 0 0;padding-left:18px}
.klinks li{margin:4px 0}
.gb-form{margin-top:12px;max-width:620px}
.gb-list{list-style:none;margin:14px 0 0;padding:0}
.gb-list li{padding:12px 0;border-top:2px dashed var(--line)}
.gb-list p{margin:6px 0 0}
.ad{position:relative;margin:8px 0;padding:22px 10px 10px;border-radius:12px;background:rgba(255,255,255,.6);min-height:90px}
.ad-label{position:absolute;top:4px;left:10px;font-size:11px;font-family:'Archivo Black','Arial Black',sans-serif;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
.ad-demo{display:flex;align-items:center;justify-content:center;border:2px dashed var(--line);color:var(--muted);font-size:14px;min-height:120px}
.ad-cell{grid-column:1/-1}
@media print{.ad,.ad-cell{display:none !important}}

/* ---------- tools, sponsoring, brands ---------- */
.tools{list-style:none;margin:6px 0 0;padding:0}
.tools li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:2px dashed var(--line)}
.tools li:last-child{border-bottom:0}
.tool-link{font-family:'Archivo Black','Arial Black',sans-serif;font-size:13px;color:var(--red-strong);white-space:nowrap;min-height:36px;display:inline-flex;align-items:center}
.aff-note{margin:10px 0 0}
.sponsor-label{display:inline-block;margin:0 0 6px;font-family:'Archivo Black','Arial Black',sans-serif;font-size:12px;background:var(--paper-2);border-radius:6px;padding:4px 8px 3px;color:var(--muted)}
.sponsor-label a{color:inherit}
.tag.ad-tag{background:var(--paper-2);color:var(--muted)}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin-top:8px}
.stat{background:var(--paper-2);border-radius:14px;padding:14px;display:flex;flex-direction:column}
.stat b{font-family:'Archivo Black','Arial Black',sans-serif;font-size:28px;color:var(--red-strong)}
.formats{list-style:none;margin:8px 0 0;padding:0}
.formats li{padding:12px 0;border-top:2px dashed var(--line);display:flex;flex-direction:column;gap:3px}
.formats li span{color:var(--muted)}
.formats li em{font-style:normal;font-family:'Archivo Black','Arial Black',sans-serif;font-size:14px}
.tool-row{display:grid;grid-template-columns:1fr 1.4fr;gap:10px;align-items:end;padding:10px 0;border-top:2px dashed var(--line)}
.tool-row .tool-clicks{grid-column:1/-1}
@media print{.tools .tool-link,.aff-note{display:none !important}}

/* square dish pictures on cards */
.card-img.is-card{aspect-ratio:1/1;background:#ECE6F8}
.card-img.is-card img{width:100%;height:100%;object-fit:cover}
.card-img.is-card .play{width:40px;height:40px;right:8px;bottom:8px}
.today-img.is-card{aspect-ratio:1/1;box-shadow:none;border-radius:16px}
.fav-card img{aspect-ratio:1/1;object-position:50% 50%}
.kitem img{width:54px;height:54px;object-position:50% 50%}

/* ---------- profile, themes, teller, week ---------- */
.optrow{display:flex;flex-wrap:wrap;gap:8px}
.optrow .chip[aria-checked="true"],.optrow .chip[aria-pressed="true"],.optrow .chip.on{background:var(--ink);color:#fff}
.geschmack .h2{margin-top:22px}
.al-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:4px 12px}
.hold{margin:0}
.row-h{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.row-h .more{font-family:'Archivo Black','Arial Black',sans-serif;font-size:13px;color:var(--on-bg)}
.fav-card .small{display:block;margin-top:2px}
.teaser-geschmack{margin-top:26px}
.verdict{margin:12px 0 4px;text-align:center}
.slots{list-style:none;margin:10px 0 0;padding:0}
.slots li{display:grid;grid-template-columns:96px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 0;border-top:2px dashed var(--line)}
.slot-l{font-family:'Archivo Black','Arial Black',sans-serif;font-size:13px}
.slot-v{min-width:0}
@media (max-width:420px){.slots li{grid-template-columns:minmax(0,1fr) auto}.slot-l{grid-column:1/-1}}
.swap-sheet{margin-top:12px;padding:12px;border-radius:14px;background:var(--paper-2)}
.swap-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.swap-card{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;border:0;border-radius:12px;padding:10px 12px;background:var(--paper);color:var(--ink);box-shadow:inset 0 0 0 2px var(--line);cursor:pointer;font:inherit;min-height:64px}
.swap-card:hover{box-shadow:inset 0 0 0 2px var(--ink)}
.week{display:grid;grid-template-columns:1fr;gap:16px;margin-top:20px}
@media (min-width:760px){.week{grid-template-columns:1fr 1fr}}
.day .h2{margin:0 0 6px}
.plan-item{display:grid;grid-template-columns:46px minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:8px 0;border-bottom:2px dashed var(--line)}
.plan-item img{width:46px;height:46px;border-radius:8px;object-fit:cover}
.plan-item a{color:inherit;text-decoration:none;display:flex;flex-direction:column;min-width:0}
.mini-step{display:inline-flex;align-items:center;gap:6px}
.round.sm{width:32px;height:32px;min-height:32px}
.day .btn.small{margin-top:10px}
.pick-list{max-height:55vh;overflow:auto}
.pick-row{display:flex;gap:12px;align-items:center;width:100%;text-align:left;border:0;background:none;padding:8px 2px;border-bottom:2px dashed var(--line);font:inherit;color:inherit;cursor:pointer}
.pick-row img{width:48px;height:48px;border-radius:8px;object-fit:cover}
.pick-row span{display:flex;flex-direction:column}
.day-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.prep-h{font-size:26px;margin:14px 0 4px}
.prep{list-style:none;margin:0;padding:0}

.ed-plate .pchip{position:absolute;transform:translate(-50%,-50%) rotate(-2deg);background:var(--c);color:#221A4A;border:3px solid #fff;border-radius:999px;padding:6px 10px 5px;font-family:'Archivo Black','Arial Black',sans-serif;font-size:12px;line-height:1.1;max-width:46%;text-align:center;box-shadow:0 3px 0 rgba(0,0,0,.15);white-space:normal}
.ed-plate .pchip:nth-child(odd){transform:translate(-50%,-50%) rotate(3deg)}

main{min-height:calc(100vh - 160px)}

/* light form controls on paper, also in dark mode */
.paper{color-scheme:light}
.paper input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),.paper textarea,.paper select{background:#FFFDF8;color:#221A4A}
.paper input::placeholder,.paper textarea::placeholder{color:#7D7896;opacity:1}
.al-grid .chk input:checked ~ .txt{text-decoration:none;color:var(--ink)}
.adapt{margin:10px 0 0;padding:10px 12px;border-radius:12px;background:#E3F1E6;color:#1F3B26;font-size:15px}
.adapt ul{margin:4px 0 0;padding-left:18px}
.adapt li{margin:2px 0}

.tabbar a,.top nav a,.tile,.card{-webkit-tap-highlight-color:transparent}
.tag.clash-tag{background:#F6D9D3;color:#8A2416}
.chip.mine-chip[aria-pressed="true"]{background:var(--ink);color:#fff}

.nut{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:6px}
.nut div{background:var(--paper-2);border-radius:12px;padding:10px 6px;text-align:center;display:flex;flex-direction:column;gap:2px}
.nut b{font-family:'Archivo Black','Arial Black',sans-serif;font-size:20px;color:var(--red-strong)}
.nut span{font-size:12px;color:var(--muted)}
@media (max-width:380px){.nut b{font-size:17px}.nut span{font-size:11px}}
.day-kcal{font-family:'Archivo',sans-serif;font-size:13px;color:var(--muted);font-weight:400;margin-left:6px}
.nut span{hyphens:manual;overflow-wrap:anywhere;line-height:1.2}

.btn.armed{background:var(--red-strong) !important;color:#fff !important;box-shadow:none}
.klist li .row{flex-wrap:wrap;justify-content:flex-end}

.listctl{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;margin:12px 0 4px}
.sortsel{display:flex;align-items:center;gap:8px;color:var(--on-bg)}
.sortsel select{min-height:40px;border-radius:10px;border:2px solid var(--ink);background:#FFFDF8;color:#221A4A;padding:6px 10px;font:inherit}
.more-wrap{display:flex;justify-content:center;margin:22px 0}
.more-wrap .btn{background:var(--paper);min-width:220px}

/* larger recipe rows and recipe of the day on bigger screens */
.fav-card{flex:0 0 140px}
@media (min-width:760px){
  .fav-card{flex-basis:190px}
  .fav-card b{font-size:23px}
  .favrow{gap:18px}
  .today .paper{grid-template-columns:240px minmax(0,1fr);gap:26px;padding:22px}
}
@media (min-width:1100px){
  .fav-card{flex-basis:212px}
  .today .paper{grid-template-columns:280px minmax(0,1fr)}
}

/* cook mode: solid back button instead of a see-through outline */
.cook-nav #prev{background:#2E6BD6;color:#fff;box-shadow:0 4px 0 #1E4A9A;border:0
               }
.cook-nav #prev:hover{background:#2A62C4}
.cook-nav #prev:disabled{background:#2E6BD6;color:#fff;opacity:1;filter:saturate(.45) brightness(.92);box-shadow:none;cursor:default}
.cook-nav #prev svg{color:#fff}
