/* AI Chef app v2 (22 Oct 2026, Ali: "more organized, more branded, more mobile optimized"). On a phone it is a full-screen
   app: one bar, the chat filling the screen, one message row; pages and sheets slide over it. On a computer: a side rail,
   the chat, and the full recipe docked beside it. Built on site.css tokens (forest, cream, yolk, tomato, leaf, pale) and
   the Higgsfield art in assets/ai-chef/. Motion only on user action; reduced motion turns it off. */
.ch-body{--paper2:#fffaf0;--line:#143d2b24;--soft:#143d2b14;--lift:0 3px 0 #143d2b1f;background:var(--cream)}
.ch-sprite{position:absolute}
.ch-body svg use{pointer-events:none}
.ch-app{outline:none}
.ch-app [hidden]{display:none!important}
.ch-body .button svg,.ch-btn svg,.ch-icon svg,.ch-tabs svg,.ch-menu svg,.ch-level-chip svg,.ch-send svg{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}

/* Type */
.ch-kicker{margin:0 0 10px;font-size:13px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;opacity:.75}
.ch-lead{font-size:clamp(16.5px,1rem + .25vw,20px);line-height:1.45;max-width:46ch;margin:8px 0 0;font-weight:500}
.ch-help{font-size:16px;line-height:1.5;margin:0 0 16px;max-width:60ch}
.ch-fine{font-size:14px;line-height:1.45;opacity:.8;margin:0}
.ch-fine a{color:inherit}
.ch-display{font-size:clamp(36px,5vw,56px);line-height:1.02;font-weight:400;margin:0;outline-offset:8px}
.ch-display>span,.ch-hero-title>span{display:block}

/* Buttons */
.ch-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:9px 18px;border:2px solid var(--forest);background:var(--paper2);color:var(--forest);border-radius:var(--blob);font:inherit;font-weight:700;font-size:16px;line-height:1.2;text-decoration:none;cursor:pointer;transition:transform .25s cubic-bezier(.34,1.56,.64,1),box-shadow .25s,background .2s}
.ch-btn:hover{transform:translateY(-2px);box-shadow:0 4px 0 var(--forest)}
.ch-btn:active{transform:translateY(1px) scale(.98);box-shadow:none}
.ch-btn-quiet{border-color:transparent;background:transparent;text-decoration:underline;text-decoration-color:var(--yolk);text-decoration-thickness:3px;text-underline-offset:6px}
.ch-btn-quiet:hover{box-shadow:none;text-decoration-color:currentColor}
.ch-btn-light{border-color:var(--cream);background:transparent;color:var(--cream)}
.ch-btn-light:hover{box-shadow:0 4px 0 #0b2418;background:#ffffff14}
.ch-btn-quiet-light{color:var(--cream)}
.ch-btn[disabled],.button[disabled]{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}
.ch-body .button{min-height:52px;padding:12px 26px;font-size:17px}
.ch-icon{position:relative;display:inline-grid;place-items:center;width:44px;height:44px;flex:none;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;cursor:pointer;transition:background .2s,transform .2s}
.ch-icon:hover{background:color-mix(in srgb,currentColor 12%,transparent)}
.ch-icon:active{transform:scale(.92)}
.ch-link{border:0;background:none;padding:6px 0;min-height:44px;font:inherit;font-weight:700;color:inherit;text-decoration:underline;text-decoration-color:var(--yolk);text-decoration-thickness:3px;text-underline-offset:6px;cursor:pointer}
.ch-link:hover{text-decoration-color:currentColor}
.ch-body :focus-visible{outline:3px solid var(--yolk);outline-offset:3px}
.ch-count{display:inline-grid;place-items:center;min-width:24px;height:24px;margin-left:auto;padding:0 7px;border-radius:99px;background:var(--yolk);color:var(--forest);font-size:13px;font-weight:800}
.ch-dot{position:absolute;top:8px;right:8px;width:10px;height:10px;border-radius:50%;background:var(--yolk);box-shadow:0 0 0 2px var(--forest)}

/* ===== Gate (sign in, pilot, loading) ===== */
.ch-gate{display:grid;place-items:center;min-height:min(78dvh,760px);padding:28px 16px 56px}
.ch-gate-card{display:grid;justify-items:center;text-align:center;gap:6px;width:min(560px,100%);padding:28px clamp(18px,4vw,40px) 34px;background:var(--paper2);border:2px solid var(--forest);border-radius:30px;box-shadow:0 6px 0 #143d2b1f}
.ch-gate-art{width:clamp(150px,30vw,210px);height:auto;margin:-6px 0 4px}
.ch-gate-title{margin:0;font-size:clamp(26px,4vw,36px);line-height:1.12;font-weight:800;outline:none}
.ch-gate .ch-help{margin:6px auto 18px}
.ch-gate-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.ch-app[data-view=loading] .ch-gate-actions:empty{display:none}

/* ===== Shell ===== */
.ch-shell{display:grid;grid-template-columns:minmax(0,1fr);min-width:0;min-height:0}
.ch-main{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);min-width:0;min-height:0;overflow:hidden;background:var(--paper2)}
.ch-view{min-height:0;min-width:0}

/* App bar */
.ch-bar{display:flex;align-items:center;gap:8px;min-height:66px;padding:8px 10px 8px 12px;background:var(--forest);color:var(--cream)}
.ch-bar-who{display:flex;align-items:center;gap:11px;flex:1;min-width:0}
.ch-bar-avatar{flex:none;width:46px;height:46px;border-radius:50%;overflow:hidden;background:var(--yolk);box-shadow:0 0 0 2px var(--yolk)}
.ch-bar-avatar img{width:100%;height:100%;object-fit:cover;object-position:50% 15%}
.ch-app[data-busy] .ch-bar-avatar{animation:ch-pulse 1.4s ease-in-out infinite}
.ch-bar-id{display:grid;justify-items:start;gap:2px;min-width:0}
.ch-bar-name{margin:0;font-weight:800;font-size:17px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.ch-level-chip{display:inline-flex;align-items:center;gap:5px;min-height:30px;margin:0;padding:2px 8px 2px 3px;border:0;border-radius:99px;background:#fff5dd1f;color:var(--cream);font:inherit;font-size:14px;font-weight:700;cursor:pointer;transition:background .2s}
.ch-level-chip:hover{background:#fff5dd33}
.ch-level-chip img{width:24px;height:24px}
.ch-level-chip svg{width:16px;height:16px}
.ch-bar-status{margin:0;font-size:13.5px;font-weight:600;opacity:.85;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.ch-bar-status:empty{display:none}
.ch-app[data-busy] .ch-level-chip{display:none}
.ch-bar-back,.ch-bar-title{display:none}
.ch-new-label{display:none}
.ch-cook-body .ch-timer{order:1}
.ch-upnext{order:2;grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:0;padding:12px 16px;border:2px dashed #fff5dd55;border-radius:20px;font-size:16.5px;line-height:1.4}
.ch-upnext span{font-size:12.5px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:var(--yolk)}
.ch-bar-title{flex:1;margin:0;font-weight:800;font-size:18px}
.ch-bar-actions{display:flex;align-items:center;gap:2px}
.ch-bar .ch-icon{color:var(--cream)}

/* ===== Chat ===== */
.ch-chatview{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;height:100%}
.ch-scroll{position:relative;min-width:0;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:18px;scroll-padding-bottom:18px}

/* Hero: the Roommate in his dorm kitchen (mirrored scene plate; he is never mirrored) */
.ch-hero{position:relative;max-width:820px;margin:0 auto;padding:0 16px}
.ch-scene{position:relative;margin:14px 0 0;border-radius:26px;overflow:hidden;aspect-ratio:1600/900;background:#fff3d4;border:2px solid var(--forest);box-shadow:0 5px 0 #143d2b1f}
.ch-scene-plate{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 100%}
.ch-roommate{position:absolute;right:13%;bottom:4%;height:82%;aspect-ratio:360/648}
.ch-roommate img,.ch-roommate canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.ch-roommate[data-playing=true] img{visibility:hidden}
.ch-hero-copy{padding:16px 4px 4px}
.ch-hero-title{margin:0;font-size:clamp(34px,6vw,54px);line-height:1;font-weight:400}
.ch-hero-lead{margin:8px 0 0;font-size:clamp(16px,1rem + .2vw,18.5px);line-height:1.45;max-width:48ch;font-weight:500}
.ch-chatview[data-started] .ch-scene{aspect-ratio:1600/620}
.ch-chatview[data-started] .ch-roommate{height:96%;bottom:3%}
.ch-chatview[data-started] .ch-hero-lead{display:none}
.ch-chatview[data-started] .ch-hero-title{font-size:clamp(28px,4vw,38px)}

/* Thread */
.ch-thread{display:flex;flex-direction:column;gap:14px;max-width:820px;margin:0 auto;padding:16px 16px 6px;list-style:none}
.ch-msg{display:flex;min-width:0}
.ch-msg.chef{display:grid;grid-template-columns:38px minmax(0,1fr);gap:9px;align-items:end}
.ch-av{width:38px;height:38px;border-radius:50%;object-fit:cover;object-position:50% 15%;background:var(--yolk);box-shadow:0 0 0 2px var(--forest)}
.ch-bubble{min-width:0;max-width:600px;padding:12px 16px 13px;border-radius:22px 22px 22px 6px;background:var(--cream);border:2px solid var(--forest);font-size:16.5px;line-height:1.5;overflow-wrap:anywhere}
.ch-bubble p{margin:0}
.ch-bubble ul{display:grid;gap:5px;margin:10px 0 0;padding:0;list-style:none}
.ch-bubble li{position:relative;padding-left:20px}
.ch-bubble li::before{content:'';position:absolute;left:3px;top:.62em;width:8px;height:8px;border-radius:50%;background:var(--tomato)}
.ch-bubble .ch-safety{margin:10px 0 0;font-size:15px}
.ch-bubble .ch-btn{margin-top:12px}
.ch-msg.me{justify-content:flex-end}
.ch-msg.me .ch-bubble{max-width:min(82%,520px);border-radius:22px 22px 6px 22px;background:var(--forest);color:var(--cream)}
.ch-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px!important}
.ch-tags span{padding:2px 9px;border-radius:99px;background:#fff5dd26;font-size:13.5px;font-weight:700}
.ch-error .ch-bubble,.ch-bubble.ch-error{border-color:var(--tomato);background:#fbe5dc}
.ch-typing .ch-bubble{display:flex;align-items:center;gap:10px;font-weight:700;font-size:15.5px}
.ch-typing .ch-av{object-position:50% 20%}
.ch-dots{display:inline-flex;gap:5px}
.ch-dots i{width:8px;height:8px;border-radius:50%;background:var(--tomato);animation:ch-think 1.6s ease-in-out infinite}
.ch-dots i:nth-child(2){animation-delay:.2s;background:var(--yolk)}.ch-dots i:nth-child(3){animation-delay:.4s;background:var(--leaf)}
@keyframes ch-think{0%,100%{opacity:.35;transform:translateY(0)}50%{opacity:1;transform:translateY(-2px)}}
@keyframes ch-pulse{0%,100%{box-shadow:0 0 0 2px var(--yolk)}50%{box-shadow:0 0 0 6px #f3bf3d55}}

/* Follow-ups and starters */
.ch-suggest{display:flex;flex-wrap:wrap;gap:8px;margin-left:47px}
.ch-suggest button{min-height:40px;padding:7px 15px;border:2px solid var(--forest);border-radius:99px;background:var(--paper2);color:var(--forest);font:inherit;font-size:15px;font-weight:700;line-height:1.25;text-align:left;cursor:pointer;transition:background .2s,transform .2s}
.ch-suggest button:hover{background:var(--pale);transform:translateY(-1px)}
.ch-starters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-left:47px}
.ch-starter{display:grid;justify-items:start;align-content:start;gap:6px;min-height:118px;padding:12px 12px 13px;border:2px solid var(--forest);border-radius:20px;background:var(--cream);color:var(--forest);font:inherit;font-size:15px;font-weight:700;line-height:1.25;text-align:left;cursor:pointer;transition:transform .25s cubic-bezier(.34,1.56,.64,1),box-shadow .25s,background .2s}
.ch-starter img{width:58px;height:58px;object-fit:contain}
.ch-starter:hover{transform:translateY(-3px) rotate(-.6deg);box-shadow:0 4px 0 var(--forest);background:#fff2cf}
.ch-starter small{font-size:13px;font-weight:600;opacity:.75}

/* Recipe ticket in the chat */
.ch-msg.recipe{display:block;margin-left:47px}
.ch-ticket{display:grid;grid-template-columns:112px minmax(0,1fr);gap:4px 14px;max-width:620px;padding:12px;border:2px solid var(--forest);border-radius:24px;background:var(--cream);box-shadow:0 4px 0 #143d2b24}
.ch-ticket-art{grid-row:span 2;display:grid;place-items:center;align-self:start;aspect-ratio:1;border-radius:18px;background:var(--pale)}
.ch-ticket-art img{width:88%;height:88%;object-fit:contain}
.ch-ticket-body{min-width:0;padding-top:2px}
.ch-ticket h3{margin:4px 0 4px;font-size:19px;line-height:1.2;font-weight:800}
.ch-ticket-meta{display:flex;flex-wrap:wrap;gap:4px 12px;margin:0;font-size:14.5px;font-weight:600}
.ch-ticket-meta span{display:inline-flex;align-items:center;gap:4px}
.ch-ticket-meta svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.ch-ticket-with{margin:6px 0 0;font-size:14px;line-height:1.4;opacity:.85}
.ch-ticket-with b{color:var(--leaf)}
.ch-ticket-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px}
.ch-ticket-actions .button{min-height:46px;padding:9px 20px;font-size:16px}
.ch-ticket-actions .ch-btn{min-height:46px}
.ch-ticket-actions .ch-save{margin-left:auto}
.ch-badges{display:flex;flex-wrap:wrap;gap:6px;margin:0}
.ch-badge{display:inline-flex;align-items:center;gap:5px;min-height:26px;padding:2px 10px 2px 3px;border-radius:99px;background:var(--leaf);color:var(--cream);font-size:13px;font-weight:800;letter-spacing:.02em}
.ch-badge img{width:22px;height:22px}
.ch-badge[data-level=moderate]{background:var(--forest)}
.ch-badge[data-level=master_chef]{background:var(--tomato)}
.ch-badge.ch-new{padding:2px 10px;background:transparent;color:var(--forest);box-shadow:inset 0 0 0 1.5px var(--forest)}
.ch-pill{display:inline-flex;align-items:center;gap:4px;padding:2px 9px;border-radius:99px;background:var(--pale);font-size:13.5px;font-weight:700}
.ch-pill svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.ch-pill.temp{background:#d9573626;color:#8f2f16}
.ch-decline{display:grid;grid-template-columns:76px minmax(0,1fr);gap:12px;align-items:center;max-width:560px;padding:12px 14px;border:2px dashed var(--forest);border-radius:22px;background:var(--cream)}
.ch-decline img{width:76px;height:76px;object-fit:contain}
.ch-decline p{margin:0;font-size:15.5px;line-height:1.45}
.ch-decline b{display:block;font-size:13px;letter-spacing:.06em;text-transform:uppercase;margin-bottom:2px}

/* Composer */
.ch-composer{position:relative;z-index:2;min-width:0;padding:8px 12px calc(10px + env(safe-area-inset-bottom));background:var(--paper2);border-top:1.5px solid var(--line)}
.ch-composer>*{max-width:820px;margin-left:auto;margin-right:auto}
.ch-first-recipe{display:grid;gap:4px;padding-bottom:8px}
.ch-first-recipe .button{width:100%;min-height:46px;padding:9px 16px;font-size:16px}
.ch-first-recipe p{margin:0;text-align:center;font-size:12.5px;line-height:1.35}
.ch-composer-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:8px;padding-bottom:8px}
.ch-composer-tools .ch-fridge-open{min-width:0;min-height:52px;padding:6px 10px;border-radius:18px;white-space:normal;line-height:1.2}
.ch-composer-tools .ch-fridge-open img{flex:none;width:28px;height:28px}
.ch-composer-tools .ch-viral-open{display:grid;align-content:center;justify-items:start;gap:3px;min-width:0;min-height:52px;padding:8px 12px;border:1.5px solid var(--forest);border-radius:18px;background:var(--yolk);font-size:15px;font-weight:800;line-height:1.15;text-align:left;white-space:normal}
.ch-composer-tools .ch-viral-open small{font-size:12px;font-weight:600;line-height:1.2}
.ch-composer-tools .ch-viral-open:hover{background:var(--pale)}
.ch-fridge{display:flex;align-items:center;gap:6px;overflow-x:auto;scrollbar-width:none;padding:0 0 8px}
.ch-fridge:has(.ch-have-list:empty){display:none}
.ch-fridge::-webkit-scrollbar{display:none}
.ch-fridge-open{display:inline-flex;align-items:center;gap:6px;flex:none;min-height:36px;padding:2px 12px 2px 4px;border:1.5px solid var(--forest);border-radius:99px;background:var(--cream);color:var(--forest);font:inherit;font-size:14.5px;font-weight:700;cursor:pointer}
.ch-fridge-open img{width:28px;height:28px;object-fit:contain}
.ch-fridge-open:hover{background:var(--pale)}
.ch-have-list{display:flex;flex-wrap:nowrap;gap:6px;margin:0;padding:0;list-style:none}
.ch-have-list li{display:inline-flex;align-items:center;flex:none;gap:2px;min-height:36px;padding:0 2px 0 12px;border-radius:99px;background:var(--forest);color:var(--cream);font-size:14.5px;font-weight:700}
.ch-have-list button{display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;cursor:pointer}
.ch-have-list button svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round}
.ch-have-list button:hover{background:#ffffff26}
.ch-input-row{display:flex;align-items:flex-end;gap:4px;padding:4px;border:2px solid var(--forest);border-radius:28px;background:#fff;transition:box-shadow .2s}
.ch-input-row:focus-within{box-shadow:0 0 0 4px #f3bf3d80}
.ch-plus{background:var(--pale)}
.ch-plus:hover{background:#cfe0b8}
.ch-input-row textarea{flex:1;min-width:0;min-height:44px;max-height:140px;margin:0;padding:11px 6px 9px;border:0;background:transparent;color:var(--forest);font:inherit;font-size:16.5px;line-height:1.4;resize:none;outline:none}
.ch-input-row textarea::placeholder{color:#143d2b8c}
.ch-input-row textarea:focus-visible{outline:0}
.ch-dictate[aria-pressed=true]{background:var(--tomato);color:#fff;animation:ch-pulse 1.2s infinite}
.ch-send{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:var(--yolk);color:var(--forest);cursor:pointer;transition:transform .2s,background .2s}
.ch-send svg{stroke-width:2.8}
.ch-send:hover{transform:translateY(-1px) scale(1.04)}
.ch-send[disabled]{opacity:.45;cursor:default;transform:none}
.ch-composer-note{margin-top:6px!important;text-align:center;font-size:13px}

/* ===== Pages: your meals, your kitchen ===== */
.ch-page{height:100%;overflow-y:auto;overscroll-behavior:contain;padding:20px clamp(16px,4vw,44px) 40px}
.ch-page-head{display:flex;align-items:center;gap:16px;max-width:900px;margin:0 auto 22px}
.ch-page-art{flex:none;width:clamp(76px,10vw,110px);height:auto}
.ch-page-roommate{width:clamp(84px,11vw,128px)}
.ch-page>.ch-setup,.ch-page>.ch-cookbook,.ch-page>.ch-empty{max-width:900px;margin-left:auto;margin-right:auto}

/* Setup */
.ch-setup{position:relative;padding:20px clamp(16px,3vw,32px) 0;border:2px solid var(--forest);border-radius:28px;background:var(--cream)}
.ch-progress-bar{height:8px;border-radius:8px;background:var(--pale);overflow:hidden;margin:0 0 12px}
.ch-progress-bar i{display:block;height:100%;width:100%;background:var(--leaf);border-radius:8px;transform:scaleX(.33);transform-origin:left;transition:transform .5s cubic-bezier(.22,1,.36,1)}
.ch-steps-dots{display:flex;gap:14px;margin:0 0 18px;padding:0;list-style:none;counter-reset:dot}
.ch-steps-dots li{counter-increment:dot;display:flex;align-items:center;gap:6px;font-size:14px;font-weight:700;opacity:.5}
.ch-steps-dots li::before{content:counter(dot);display:grid;place-items:center;width:24px;height:24px;border-radius:50%;border:2px solid var(--forest);font-size:12px}
.ch-steps-dots li[aria-current=step],.ch-steps-dots li[data-done]{opacity:1}
.ch-steps-dots li[aria-current=step]::before{background:var(--forest);color:var(--cream)}
.ch-steps-dots li[data-done]::before{content:'✓';background:var(--yolk)}
.ch-setup-step{border:0;margin:0;padding:0;min-width:0}
.ch-setup-step legend{padding:0;margin:0 0 6px;font-size:clamp(22px,2.4vw,30px);font-weight:800;line-height:1.2}
.ch-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.ch-tile{position:relative;display:grid;justify-items:center;align-content:center;gap:4px;min-height:132px;padding:10px 8px 12px;border:2px solid var(--forest);border-radius:20px;background:var(--paper2);color:var(--forest);font:inherit;font-weight:700;font-size:15.5px;line-height:1.2;text-align:center;cursor:pointer;transition:transform .25s cubic-bezier(.34,1.56,.64,1),background .2s,box-shadow .25s}
.ch-tile img{width:74px;height:74px;object-fit:contain;transition:transform .3s cubic-bezier(.34,1.56,.64,1)}
.ch-tile small{font-size:12.5px;font-weight:700;opacity:.7}
.ch-tile:hover{transform:translateY(-3px);box-shadow:0 4px 0 var(--forest)}
.ch-tile[aria-pressed=true]{background:#fde7a6;box-shadow:inset 0 0 0 2px var(--forest)}
.ch-tile[aria-pressed=true] img{transform:scale(1.06) rotate(-3deg)}
.ch-tile::after{content:'';position:absolute;top:8px;right:8px;width:24px;height:24px;border-radius:50%;border:2px solid var(--forest);background:var(--paper2)}
.ch-tile[aria-pressed=true]::after{background:var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M7 17c3 2 4.5 3.5 6.5 6.5C17 17 21 12 26 8' fill='none' stroke='%23fff5dd' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat}
.ch-tile[data-locked]{cursor:default;background:var(--pale)}
.ch-tile[data-locked]:hover{transform:none;box-shadow:none}
.ch-group-label{margin:16px 0 8px;font-weight:800;font-size:13px;letter-spacing:.07em;text-transform:uppercase;opacity:.75}
.ch-chips{display:flex;flex-wrap:wrap;gap:8px}
.ch-chip{display:inline-flex;align-items:center;gap:6px;min-height:42px;padding:7px 16px;border:2px solid var(--forest);border-radius:99px;background:var(--paper2);color:var(--forest);font:inherit;font-weight:700;font-size:15.5px;cursor:pointer;transition:background .2s,transform .2s}
.ch-chip:hover{transform:translateY(-1px)}
.ch-chip[aria-pressed=true]{background:var(--forest);color:var(--cream)}
.ch-chip[aria-pressed=true]::before{content:'✓';font-weight:900}
.ch-chip small{font-weight:600;opacity:.75}
.ch-two{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}
.ch-field{display:grid;gap:6px;font-weight:700;font-size:15px}
.ch-field input,.ch-have-box input,.ch-ask-row input,.ch-temp-entry input{min-height:48px;padding:10px 14px;border:2px solid var(--forest);border-radius:14px;background:#fff;color:var(--forest);font:inherit;font-size:16.5px;font-weight:500}
.ch-field input:focus,.ch-have-box input:focus,.ch-ask-row input:focus,.ch-temp-entry input:focus{outline:3px solid var(--yolk);outline-offset:1px}
.ch-choice{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ch-choice button{display:grid;justify-items:start;gap:4px;padding:14px 16px 16px;border:2px solid var(--forest);border-radius:22px;background:var(--paper2);color:var(--forest);font:inherit;text-align:left;cursor:pointer;transition:background .2s,transform .2s}
.ch-choice button img{width:64px;height:64px;object-fit:contain}
.ch-choice button b{font-size:17px}
.ch-choice button span{font-size:14.5px;line-height:1.4}
.ch-choice button[aria-checked=true]{background:#fde7a6;box-shadow:inset 0 0 0 2px var(--forest)}
.ch-unlock{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-top:14px;padding:14px 16px;border-radius:20px;background:var(--pale)}
.ch-unlock p{flex:1 1 220px;margin:0;font-weight:600;line-height:1.45}
.ch-unlock[data-unlocked=true]{background:#d7ead0}
.ch-setup-nav{position:sticky;bottom:0;display:flex;justify-content:space-between;align-items:center;gap:10px;margin:18px calc(-1 * clamp(16px,3vw,32px)) 0;padding:12px clamp(16px,3vw,32px) 16px;background:var(--cream);box-shadow:0 -12px 14px -12px #143d2b40;border-radius:0 0 26px 26px}
.ch-setup-nav .button{margin-left:auto;min-width:150px}

/* Your meals */
.ch-cookbook{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px;margin:0;padding:0;list-style:none}
.ch-meal{display:grid;grid-template-rows:auto 1fr;border:2px solid var(--forest);border-radius:24px;background:var(--cream);overflow:hidden;box-shadow:0 4px 0 #143d2b1f}
.ch-meal-art{display:grid;place-items:center;height:132px;background:var(--pale)}
.ch-meal-art img{height:112px;width:auto;object-fit:contain}
.ch-meal-body{display:grid;align-content:start;gap:6px;padding:12px 14px 14px}
.ch-meal h2{margin:2px 0 0;font-size:18.5px;line-height:1.2}
.ch-spoons{display:flex;gap:2px}
.ch-spoons svg{width:20px;height:20px;fill:none;stroke:var(--forest);stroke-width:2.2;opacity:.25}
.ch-spoons svg[data-on]{opacity:1;stroke:var(--tomato);fill:var(--tomato)}
.ch-meal-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.ch-meal-actions .ch-btn{min-height:42px;padding:7px 14px;font-size:15px}
.ch-empty{display:grid;justify-items:center;text-align:center;gap:10px;padding:28px 18px;border:2px dashed var(--forest);border-radius:26px}
.ch-empty img{width:110px;height:auto}
.ch-empty p{margin:0;max-width:36ch;line-height:1.5}

/* ===== The full recipe (panel / sheet) ===== */
.ch-recipe{min-width:0;min-height:0;background:var(--cream);color:var(--forest)}
.ch-recipe-inner{height:100%;overflow-y:auto;overscroll-behavior:contain}
.ch-r-top{position:sticky;top:0;z-index:3;display:flex;align-items:center;gap:6px;padding:8px 10px;background:var(--cream);border-bottom:1.5px solid transparent;transition:border-color .2s}
.ch-r-top[data-stuck]{border-color:var(--line)}
.ch-r-top p{flex:1;min-width:0;margin:0;font-weight:800;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:0;transition:opacity .2s}
.ch-r-top[data-stuck] p{opacity:1}
.ch-r-hero{display:grid;place-items:center;margin:0 14px;padding:10px 0 4px;border-radius:26px;background:var(--pale)}
.ch-r-hero img{width:min(230px,58%);height:auto}
.ch-r-hero figcaption{margin:2px 0 8px;font-size:12.5px;font-weight:600;opacity:.7}
.ch-r-head{padding:14px 18px 4px}
.ch-r-head h2{margin:8px 0 6px;font-size:clamp(25px,3vw,32px);line-height:1.1;font-weight:800;outline:none}
.ch-r-head .ch-summary{margin:0;font-size:16.5px;line-height:1.5}
.ch-meta{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 0;padding:0;list-style:none}
.ch-meta li{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:3px 12px 3px 8px;border-radius:99px;background:var(--paper2);box-shadow:inset 0 0 0 1.5px var(--line);font-size:14.5px;font-weight:700}
.ch-meta img{width:24px;height:24px;object-fit:contain}
.ch-meta svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.ch-r-actions{display:flex;flex-wrap:wrap;gap:8px;padding:14px 18px 6px}
.ch-r-actions .button{flex:1 1 200px}
.ch-tabs-r{position:sticky;top:60px;z-index:2;display:flex;gap:4px;margin:10px 14px 0;padding:4px;border-radius:99px;background:var(--pale)}
.ch-tabs-r button{flex:1;min-height:40px;padding:6px 8px;white-space:nowrap;border:0;border-radius:99px;background:transparent;color:var(--forest);font:inherit;font-size:15px;font-weight:800;cursor:pointer}
.ch-tabs-r button[aria-selected=true]{background:var(--forest);color:var(--cream)}
.ch-tabpanel{padding:16px 18px 30px}
.ch-tabpanel h3{margin:18px 0 8px;font-size:14px;letter-spacing:.07em;text-transform:uppercase}
.ch-tabpanel h3:first-child{margin-top:0}
.ch-ingredients{display:grid;gap:2px}
.ch-ingredients label{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:48px;padding:6px 4px;border-bottom:1.5px dashed var(--line);cursor:pointer}
.ch-ingredients input{width:24px;height:24px;margin:0;accent-color:var(--leaf)}
.ch-ingredients input:checked~.ch-ing-name{text-decoration:line-through;opacity:.55}
.ch-ing-name{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-weight:600;line-height:1.3}
.ch-ing-amt{font-size:14.5px;font-weight:700;text-align:right;white-space:nowrap}
.ch-tag{padding:1px 8px;border-radius:99px;background:var(--pale);font-size:12px;font-weight:800}
.ch-tag.have{background:var(--leaf);color:var(--cream)}
.ch-tools{margin:0;line-height:1.5}
.ch-steps-preview{display:grid;gap:14px;margin:0;padding:0;list-style:none;counter-reset:st}
.ch-steps-preview li{counter-increment:st;display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px}
.ch-steps-preview li::before{content:counter(st);display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--yolk);font-weight:800}
.ch-steps-preview b{display:block;margin-bottom:2px;font-size:16.5px}
.ch-steps-preview span{line-height:1.5}
.ch-steps-preview .ch-pills{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.ch-steps-preview .ch-check-note{display:block;margin-top:6px;font-size:14.5px;color:var(--leaf);font-weight:600}
.ch-box{margin:0 0 12px;padding:14px 16px;border-radius:20px;background:var(--paper2);box-shadow:inset 0 0 0 1.5px var(--line)}
.ch-box h3{margin:0 0 6px!important}
.ch-box p{margin:0;line-height:1.5}
.ch-box ul{display:grid;gap:5px;margin:0;padding:0 0 0 18px}
.ch-kcal{font-size:15px;margin:0 0 10px!important}
.ch-kcal b{font-size:30px;margin-right:4px}
.ch-macros{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.ch-macros b{display:block;font-size:19px}
.ch-macro-label{font-size:13px;font-weight:700;opacity:.8}
.ch-macro-bar{display:block;height:7px;margin-top:4px;border-radius:7px;background:var(--pale);overflow:hidden}
.ch-macro-bar i{display:block;height:100%;background:var(--leaf);border-radius:7px;transform-origin:left}
.ch-hp{padding:1px 9px;border-radius:99px;background:var(--yolk);font-size:12.5px;font-weight:800;letter-spacing:0;text-transform:none}
.ch-allergen-list{display:flex!important;flex-wrap:wrap;gap:6px;padding:0!important;list-style:none}
.ch-allergen-list li{padding:2px 10px;border-radius:99px;background:#d9573626;font-weight:700;font-size:14px}
.ch-upgrade{background:#fdeebf;box-shadow:none}
.ch-fixed{background:#e3efd9;box-shadow:none}
.ch-r-bottom{position:sticky;bottom:0;z-index:2;display:none;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:linear-gradient(transparent,var(--cream) 30%)}
.ch-r-bottom .button{width:100%}

/* ===== Sheets ===== */
.ch-sheet{position:fixed;inset:0;z-index:80;display:grid;align-items:end;justify-items:center;background:#143d2b73;overscroll-behavior:contain}
.ch-sheet-card{position:relative;width:min(560px,100%);max-height:min(90dvh,860px);overflow-y:auto;overscroll-behavior:contain;padding:22px 20px calc(20px + env(safe-area-inset-bottom));background:var(--cream);color:var(--forest);border-radius:28px 28px 0 0;box-shadow:0 -8px 30px #0b241833}
.ch-grab{display:block;width:44px;height:5px;margin:-10px auto 12px;border-radius:5px;background:#143d2b33}
.ch-sheet-close{position:absolute;top:10px;right:10px}
.ch-sheet-title{margin:0 44px 8px 0;font-size:clamp(22px,3vw,28px);line-height:1.15;font-weight:800;outline:none}
.ch-sheet-head{display:flex;align-items:center;gap:14px;margin:0 0 6px}
.ch-sheet-head img{flex:none;width:76px;height:76px;object-fit:contain}
.ch-sheet-head .ch-help{margin:0}
.ch-sheet-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:18px}
.ch-sheet-actions .button{flex:1 1 180px}
.ch-level-list{display:grid;gap:10px;margin-top:8px}
.ch-level{display:grid;grid-template-columns:64px minmax(0,1fr) 28px;align-items:center;gap:12px;padding:12px 14px;border:2px solid var(--forest);border-radius:22px;background:var(--paper2);color:var(--forest);font:inherit;text-align:left;cursor:pointer;transition:background .2s,transform .2s}
.ch-level:hover{transform:translateY(-2px)}
.ch-level img{width:64px;height:64px}
.ch-level b{display:flex;align-items:center;gap:8px;font-size:18px}
.ch-level span{display:block;margin-top:2px;font-size:14.5px;line-height:1.4}
.ch-level em{padding:1px 9px;border-radius:99px;background:var(--yolk);font-style:normal;font-size:12.5px;font-weight:800}
.ch-level em{display:inline-flex;align-items:center;gap:3px}
.ch-level em[data-plan=included]{background:var(--pale)}
.ch-level em svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.ch-level i{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;border:2px solid var(--forest)}
.ch-level[aria-checked=true]{background:#fde7a6;box-shadow:inset 0 0 0 2px var(--forest)}
.ch-level[aria-checked=true] i{background:var(--forest)}
.ch-level[aria-checked=true] i::after{content:'';width:12px;height:7px;margin-top:-3px;border:solid var(--cream);border-width:0 0 3px 3px;transform:rotate(-45deg)}
.ch-have-box{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:14px;padding:6px;border:2px solid var(--forest);border-radius:22px;background:#fff}
.ch-have-box .ch-have-list{flex-wrap:wrap}
.ch-have-box input{flex:1 1 180px;min-height:44px;border:0;padding:8px 10px}
.ch-have-box input:focus{outline:0}
.ch-have-box:focus-within{box-shadow:0 0 0 4px #f3bf3d80}
.ch-quick{display:flex;flex-wrap:wrap;gap:8px}
.ch-quick button,.ch-ideas button{min-height:40px;padding:6px 14px;border:1.5px dashed var(--forest);border-radius:99px;background:transparent;color:inherit;font:inherit;font-weight:700;font-size:15px;cursor:pointer}
.ch-quick button:hover,.ch-ideas button:hover{background:var(--pale);border-style:solid}
.ch-menu{display:grid;gap:2px;margin:6px 0 14px}
.ch-menu a,.ch-menu button{display:flex;align-items:center;gap:14px;min-height:52px;padding:8px 10px;border:0;border-radius:16px;background:transparent;color:var(--forest);font:inherit;font-size:17px;font-weight:700;text-decoration:none;text-align:left;cursor:pointer}
.ch-menu a:hover,.ch-menu button:hover{background:var(--pale)}
.ch-usage{padding:14px 16px;border-radius:20px;background:var(--paper2);box-shadow:inset 0 0 0 1.5px var(--line)}
.ch-usage p{display:flex;justify-content:space-between;gap:10px;margin:0 0 8px;font-size:14.5px}
.ch-usage-bar{display:block;height:9px;border-radius:9px;background:var(--pale);overflow:hidden}
.ch-usage-bar i{display:block;height:100%;width:100%;background:var(--leaf);border-radius:9px;transform-origin:left;transition:transform .6s cubic-bezier(.22,1,.36,1)}
.ch-usage-menu{margin-bottom:14px}
.ch-menu-plan{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 0 10px;font-weight:700}
.ch-menu-plan:empty{display:none}
.ch-menu-plan a{color:inherit}
.ch-menu-plan button{padding:0;border:0;background:none;color:inherit;font:inherit;text-decoration:underline;text-decoration-color:var(--yolk);text-decoration-thickness:3px;text-underline-offset:5px;cursor:pointer}

/* ===== Tour (23 Oct 2026): a spotlight on the real buttons, one card at a time ===== */
.ch-tour{position:fixed;inset:0;z-index:90}
.ch-tour[data-center]{display:grid;place-items:center;padding:12px;background:#0b24189e}
.ch-tour-spot{position:fixed;border-radius:20px;box-shadow:0 0 0 200vmax #0b24189e,0 0 0 4px var(--yolk);pointer-events:none;transition:left .3s cubic-bezier(.22,1,.36,1),top .3s cubic-bezier(.22,1,.36,1),width .3s,height .3s}
.ch-tour-card{position:fixed;display:grid;justify-items:start;gap:4px;padding:16px 16px 14px;border:2px solid var(--forest);border-radius:24px;background:var(--cream);color:var(--forest);box-shadow:0 18px 50px #0b241873}
.ch-tour[data-center] .ch-tour-card{position:relative;width:min(400px,100%);justify-items:center;text-align:center;padding:20px 18px 16px}
.ch-tour-art{width:52px;height:52px;border-radius:50%;object-fit:cover;object-position:50% 15%;background:var(--yolk);box-shadow:0 0 0 2px var(--forest)}
.ch-tour-art[data-pose]{width:120px;height:120px;border-radius:0;object-fit:contain;background:none;box-shadow:none}
.ch-tour-shot{width:min(240px,70%);height:auto;border-radius:18px;border:2px solid var(--forest);box-shadow:0 6px 0 #143d2b24;margin-bottom:6px}
.ch-tour-count{margin:4px 0 0;font-size:13px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;opacity:.7}
.ch-tour-title{margin:0;font-size:21px;line-height:1.2;font-weight:800;outline:none}
.ch-tour-text{margin:2px 0 8px;font-size:16px;line-height:1.45}
.ch-tour-nav{display:flex;align-items:center;gap:8px;width:100%}
.ch-tour-nav span{flex:1}
.ch-tour-nav .ch-btn{min-height:44px;padding:8px 14px;font-size:15px}
.ch-tour-nav .button{min-height:44px;padding:8px 20px;font-size:16px}
.ch-tour-nav [data-tour-skip]{padding-left:4px}
@media (prefers-reduced-motion:reduce){.ch-tour-spot{transition:none}}
@media (forced-colors:active){.ch-tour-spot{outline:3px solid Highlight}.ch-tour-card{border:2px solid CanvasText}}

/* ===== Plans (22 Oct 2026: a free week of Beginner, then Home Cook or Master Chef, monthly or yearly) ===== */
.ch-trial{display:flex;align-items:center;gap:8px;min-height:36px;margin-bottom:8px;padding:4px 6px 4px 12px;border-radius:99px;background:var(--pale);font-size:14.5px;font-weight:700}
.ch-trial svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}
.ch-trial span{flex:1;min-width:0}
.ch-trial button{flex:none;min-height:30px;padding:3px 13px;border:0;border-radius:99px;background:var(--forest);color:var(--cream);font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.ch-trial[data-last]{background:#fde7a6}
.ch-over{display:grid;grid-template-columns:72px minmax(0,1fr) auto;align-items:center;gap:6px 14px;padding:10px 14px 10px 10px;border:2px solid var(--forest);border-radius:24px;background:var(--cream)}
.ch-over img{width:72px;height:72px;border-radius:50%;object-fit:cover;object-position:50% 12%;background:var(--yolk)}
.ch-over-title{margin:0;font-weight:800;font-size:17px}
.ch-over-text{margin:2px 0 0;font-size:14.5px;line-height:1.4}
.ch-app:is([data-plan=expired],[data-plan=full]) :is(.ch-composer-tools,.ch-fridge,.ch-input-row,.ch-composer-note){display:none}
.ch-plan-card{display:grid;gap:4px;padding:14px 16px 16px;border-radius:20px;background:var(--paper2);box-shadow:inset 0 0 0 1.5px var(--line)}
.ch-plan-card .ch-kicker{margin:0}
.ch-plan-name{margin:0;font-size:18px;font-weight:800}
.ch-plan-card .ch-btn{justify-self:start;margin-top:8px;min-height:40px;padding:6px 16px;font-size:15px}
.ch-plans-card{width:min(760px,100%)}
.ch-period{display:inline-flex;flex-wrap:wrap;max-width:100%;gap:4px;margin:2px 0 14px;padding:4px;border-radius:99px;background:var(--paper2);box-shadow:inset 0 0 0 1.5px var(--line)}
.ch-period button{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:6px 14px;border:0;border-radius:99px;background:transparent;color:var(--forest);font:inherit;font-size:15.5px;font-weight:700;cursor:pointer}
.ch-period button[aria-checked=true]{background:var(--forest);color:var(--cream)}
.ch-period em{padding:1px 8px;border-radius:99px;background:var(--yolk);color:var(--forest);font-style:normal;font-size:12.5px;font-weight:800}
.ch-plans{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ch-plan{display:grid;grid-template-rows:auto auto 1fr auto;gap:10px;padding:16px;border:2px solid var(--forest);border-radius:24px;background:var(--paper2);transition:box-shadow .25s,transform .25s}
.ch-plan[data-focus]{background:#fde7a6;box-shadow:0 5px 0 var(--forest)}
.ch-plan-head{display:grid;grid-template-columns:64px minmax(0,1fr);align-items:center;gap:12px}
.ch-plan-head img{width:64px;height:64px;object-fit:contain}
.ch-plan-head h3{margin:0;font-size:21px;line-height:1.15}
.ch-plan-head p{margin:2px 0 0;font-size:14.5px;font-weight:700;opacity:.8}
.ch-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;margin:0}
.ch-price b{font-size:32px;line-height:1;letter-spacing:-.01em}
.ch-price span{font-size:15px;font-weight:700}
.ch-price small{flex-basis:100%;font-size:13.5px;opacity:.8}
.ch-plan ul{display:grid;gap:7px;margin:0;padding:0;list-style:none;font-size:15px;line-height:1.35}
.ch-plan li{display:grid;grid-template-columns:20px minmax(0,1fr);gap:8px}
.ch-plan li svg{width:20px;height:20px;fill:none;stroke:var(--leaf);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.ch-plan .button,.ch-plan .ch-btn{width:100%;min-height:50px}
.ch-plan .ch-btn[aria-disabled=true]{opacity:.55;cursor:default;box-shadow:none;transform:none}
.ch-plan-now{display:inline-flex;justify-content:center;align-items:center;min-height:50px;border-radius:var(--blob);background:var(--forest);color:var(--cream);font-weight:800}
.ch-plans-fine{margin-top:14px!important}
.ch-menu .ch-menu-danger{color:#a23a1d}
.ch-body .button.ch-danger{background:var(--tomato);color:#fff}

/* Camera + lesson + replies */
.ch-camera-frame{position:relative;display:grid;place-items:center;aspect-ratio:4/3;margin-top:4px;border-radius:22px;background:var(--pale);overflow:hidden}
.ch-camera-frame video,.ch-camera-frame canvas{width:100%;height:100%;object-fit:cover}
.ch-camera-off{display:grid;justify-items:center;gap:4px;margin:0;font-weight:700}
.ch-camera-off img{width:96px;height:96px}
.ch-camera-frame[data-live]::after{content:'Camera on';position:absolute;top:10px;left:10px;padding:3px 10px;border-radius:99px;background:var(--tomato);color:#fff;font-size:13px;font-weight:800}
.ch-file{position:relative;overflow:hidden}
.ch-file input{position:absolute;inset:0;opacity:0;cursor:pointer}
.ch-found{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 0}
.ch-reply{margin-top:14px;scroll-margin-bottom:130px}
.ch-reply:empty{display:none}
.ch-reply-card{padding:14px 16px;border-radius:20px;background:var(--paper2);color:var(--forest);box-shadow:inset 0 0 0 1.5px var(--line)}
.ch-sheet .ch-reply-card{background:var(--pale);box-shadow:none}
.ch-reply-card p{margin:0;font-size:16.5px;line-height:1.5}
.ch-reply-card ul{margin:10px 0 0;padding:0;list-style:none;display:grid;gap:6px}
.ch-reply-card li{position:relative;padding-left:20px;line-height:1.45}
.ch-reply-card li::before{content:'';position:absolute;left:2px;top:.6em;width:8px;height:8px;border-radius:50%;background:var(--tomato)}
.ch-reply-card .ch-fine,.ch-reply-card .ch-btn{margin-top:10px}
.ch-thinking-status{display:flex;align-items:center;gap:12px;margin:0;font-weight:700}
.ch-safety{margin:12px 0 0;padding:10px 14px 10px 16px;border-left:5px solid var(--tomato);background:#d957361a;border-radius:4px 14px 14px 4px;line-height:1.45}
.ch-lesson h2{margin:6px 0 10px;font-size:24px;outline:none}
.ch-lesson-dots{display:flex;gap:6px;margin:0 0 6px}
.ch-lesson-dots i{width:22px;height:6px;border-radius:6px;background:var(--pale)}
.ch-lesson-dots i[data-on]{background:var(--leaf)}
.ch-quiz{display:grid;gap:14px}
.ch-quiz fieldset{margin:0;padding:12px 14px;border:2px solid var(--line);border-radius:18px}
.ch-quiz fieldset[data-wrong]{border-color:var(--tomato);background:#d9573612}
.ch-quiz legend{padding:0 4px;font-weight:800;line-height:1.35}
.ch-quiz label{display:flex;align-items:center;gap:10px;min-height:42px;font-weight:500;cursor:pointer}
.ch-quiz input{width:20px;height:20px;accent-color:var(--leaf)}

/* Toast */
.ch-toast{position:fixed;left:50%;bottom:calc(112px + env(safe-area-inset-bottom));z-index:95;transform:translateX(-50%);width:max-content;max-width:min(92vw,460px);padding:12px 18px;border-radius:18px;background:var(--forest);color:var(--cream);font-weight:700;font-size:15.5px;line-height:1.4;text-align:center;box-shadow:0 8px 24px #0b241840}

/* ===== Cook mode ===== */
.ch-cook{position:fixed;inset:var(--app-top,0px) 0 auto;height:var(--app-h,100dvh);min-height:0;z-index:70;display:flex;flex-direction:column;background:var(--forest);color:var(--cream);overflow:hidden;overscroll-behavior:contain}
.ch-cook>*{flex:none;min-width:0}
/* One content scroller keeps long steps, timers and answers above the controls. */
.ch-cook-scroll{flex:1 1 0%;min-height:0;min-width:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scroll-padding-block:16px 24px;scrollbar-gutter:stable}
.ch-cook-scroll .ch-heard{width:fit-content;max-width:calc(100% - 24px);margin:10px auto 0;overflow-wrap:anywhere}
.ch-cook-top{display:flex;align-items:center;gap:8px;padding:max(10px,env(safe-area-inset-top)) clamp(10px,3vw,30px) 8px}
.ch-cook-name{flex:1;min-width:0;margin:0;font-weight:700;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.9}
.ch-cook-tools{display:flex;align-items:center;gap:2px}
.ch-awake{display:inline-flex;align-items:center;gap:6px;margin-right:6px;font-size:13.5px;font-weight:700;opacity:.85}
.ch-awake svg{width:20px;height:20px;fill:none;stroke:var(--yolk);stroke-width:2.2;stroke-linecap:round}
.ch-mic[aria-pressed=true]{background:var(--tomato)}
.ch-progress{display:flex;gap:5px;margin:0;padding:0 clamp(12px,3vw,34px);list-style:none}
.ch-progress li{flex:1;height:7px;border-radius:7px;background:#ffffff26;overflow:hidden}
.ch-progress li i{display:block;height:100%;width:100%;background:var(--yolk);transform:scaleX(0);transform-origin:left;transition:transform .5s cubic-bezier(.22,1,.36,1)}
.ch-progress li[data-done] i{transform:scaleX(1)}
.ch-heard{align-self:center;margin:10px 0 0;padding:6px 14px;border-radius:99px;background:#ffffff1f;font-size:15px}
.ch-cook-body{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:clamp(18px,3vw,48px);width:min(1180px,100%);margin:0 auto;padding:clamp(14px,3vw,34px) clamp(12px,3vw,34px)}
.ch-cook-card{position:relative;min-width:0;overflow-wrap:anywhere;padding:clamp(22px,3.4vw,48px);background:var(--cream);color:var(--forest);border-radius:28px;box-shadow:0 8px 0 #0b241866;outline:none}
.ch-cook-count{margin:0 0 8px;font-weight:800;font-size:14px;letter-spacing:.07em;text-transform:uppercase;color:var(--leaf)}
.ch-cook-title{margin:0 0 12px;font-size:clamp(28px,3.6vw,48px);line-height:1.08;font-weight:800;outline:none}
.ch-cook-text{margin:0;font-size:clamp(20px,1rem + 1vw,30px);line-height:1.42;font-weight:500;max-width:34ch}
.ch-look{display:flex;flex-wrap:wrap;gap:4px 10px;margin:20px 0 0;padding:12px 16px;border-radius:18px;background:var(--pale);font-size:17px;line-height:1.45}
.ch-look b{font-size:13.5px;letter-spacing:.07em;text-transform:uppercase;padding-top:3px}
.ch-temp{display:grid;grid-template-columns:56px minmax(0,1fr);gap:12px;margin:16px 0 0;padding:14px 16px;border-radius:20px;background:#fdeebf}
.ch-temp>img{width:56px;height:56px;object-fit:contain}
.ch-temp p{margin:0;font-size:16.5px;line-height:1.4}
.ch-temp b{font-size:21px}
.ch-temp-entry{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px;font-weight:700}
.ch-temp-entry input{width:96px;min-height:44px;padding:6px 10px}
.ch-temp-result{margin-top:8px!important;font-weight:700}
.ch-timer{display:grid;justify-items:center;gap:10px;width:clamp(190px,22vw,250px)}
.ch-ring{width:100%;height:auto;transform:rotate(-90deg)}
.ch-ring circle{fill:none;stroke:#ffffff26;stroke-width:9}
.ch-ring .ch-ring-fill{stroke:var(--yolk);stroke-linecap:round;stroke-dasharray:326.73;stroke-dashoffset:0}
.ch-timer[data-state=done] .ch-ring-fill{stroke:var(--tomato)}
.ch-timer-time{margin:-56% 0 28%;font-size:clamp(38px,4.4vw,54px);font-weight:800;font-variant-numeric:tabular-nums;line-height:1}
.ch-timer-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
.ch-helpers{width:min(1180px,calc(100% - 24px));margin:0 auto 10px;padding:16px 18px;border-radius:22px;background:#0b2418}
.ch-helpers .ch-ideas{display:flex;flex-wrap:wrap;gap:8px}
.ch-helpers .ch-ideas button{border-color:var(--cream);color:var(--cream)}
.ch-helpers .ch-ideas button:hover{background:#ffffff1a}
.ch-ask-row{display:flex;gap:8px;margin-top:12px}
.ch-ask-row input{flex:1;min-width:0}
.ch-ask-row .ch-btn{border-color:var(--yolk);background:var(--yolk)}
.ch-cook-nav{position:relative;flex:0 0 auto;display:grid;grid-template-columns:repeat(3,auto) minmax(0,1fr);gap:8px;width:min(1180px,100%);margin:0 auto;padding:12px clamp(12px,3vw,34px) max(14px,env(safe-area-inset-bottom));background:var(--forest);box-shadow:0 -10px 18px #0b241820}
.ch-cook-nav .ch-btn{min-height:52px;padding:8px 14px}
.ch-cook-nav .ch-btn[disabled]{opacity:.35}
.ch-next{min-height:56px!important}
.ch-done{position:absolute;inset:0;z-index:3;display:grid;place-content:center;justify-items:center;gap:6px;padding:30px 6%;background:var(--forest);text-align:center;overflow-y:auto}
.ch-done-art{width:clamp(140px,26vw,210px);height:auto}
.ch-done .ch-lead{margin:6px auto 16px}
.ch-rate{display:flex;gap:8px;margin-bottom:20px}
.ch-rate button{display:grid;place-items:center;width:54px;height:54px;border:2px solid var(--cream);border-radius:50%;background:transparent;color:var(--cream);cursor:pointer;transition:transform .2s,background .2s}
.ch-rate button svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2.2}
.ch-rate button[aria-checked=true],.ch-rate button[data-lit]{background:var(--yolk);color:var(--forest);border-color:var(--yolk)}
.ch-rate button[data-lit] svg{fill:currentColor}
.ch-rate button:hover{transform:translateY(-3px) rotate(-6deg)}
.ch-done-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.ch-confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.ch-confetti i{position:absolute;left:50%;top:42%;width:12px;height:18px;border-radius:2px}

/* Footer (computers only) */
.ch-footer{padding:26px 16px 34px;background:var(--forest);color:var(--cream);text-align:center;font-size:14.5px;line-height:1.5}
.ch-footer nav{display:flex;justify-content:center;flex-wrap:wrap;gap:6px 20px;margin-bottom:8px}
.ch-footer a{color:inherit;font-weight:700}
.ch-footer p{max-width:62ch;margin:0 auto;opacity:.85}

/* ===== Computers: rail + chat + docked recipe ===== */
@media (min-width:1024px){
  .ch-app{padding:18px 0 26px}
  .ch-shell{width:min(1480px,calc(100% - 40px));margin:0 auto;grid-template-columns:268px minmax(0,1fr);gap:20px;height:max(620px,calc(100dvh - var(--ch-top,110px) - 26px))}
  .ch-shell[data-panel]{grid-template-columns:268px minmax(0,1fr) minmax(380px,430px)}
  .ch-side{display:flex;flex-direction:column;gap:14px;min-height:0;overflow-y:auto;padding:2px}
  .ch-main{border:2px solid var(--forest);border-radius:30px;box-shadow:0 6px 0 #143d2b1f}
  .ch-bar{padding:10px 14px 10px 16px}
  .ch-bar-actions [data-go="cookbook"],.ch-bar-back,.ch-bar-title{display:none!important}
  .ch-bar [data-new-chat]{display:inline-flex;width:auto;gap:6px;padding:0 16px 0 12px;border-radius:99px;box-shadow:inset 0 0 0 1.5px #fff5dd66;font:inherit;font-weight:700;font-size:15px}
  .ch-bar [data-new-chat] svg{width:18px;height:18px}
  .ch-new-label{display:inline}
  .ch-bar-id{grid-template-columns:auto auto;align-items:center;column-gap:10px}
  .ch-bar-name{grid-column:1/-1}
  .ch-recipe{border:2px solid var(--forest);border-radius:30px;overflow:hidden;box-shadow:0 6px 0 #143d2b1f}
  .ch-scene{aspect-ratio:1600/700}
  .ch-roommate{right:15%}
  .ch-starters{grid-template-columns:repeat(4,minmax(0,1fr))}
  .ch-tabs{display:grid;gap:4px}
  .ch-tabs button{display:flex;align-items:center;gap:12px;min-height:50px;padding:8px 14px;border:0;border-radius:18px;background:transparent;color:var(--forest);font:inherit;font-weight:800;font-size:17px;text-align:left;cursor:pointer;transition:background .2s}
  .ch-tabs button:hover{background:var(--pale)}
  .ch-tabs button[aria-current=page]{background:var(--forest);color:var(--cream)}
  .ch-kitchen-card{padding:16px;border:2px solid var(--forest);border-radius:24px;background:var(--paper2)}
  .ch-mini-appliances{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px;padding:0;list-style:none}
  .ch-mini-appliances li{display:grid;justify-items:center;gap:2px;width:72px;padding:6px 4px;border-radius:16px;background:var(--cream);font-size:12px;font-weight:700;line-height:1.15;text-align:center}
  .ch-mini-appliances img{width:40px;height:40px;object-fit:contain}
  .ch-kitchen-facts{display:grid;gap:10px;margin:0 0 4px;font-size:15px;line-height:1.4}
  .ch-kitchen-facts dt{font-weight:800;font-size:12.5px;letter-spacing:.07em;text-transform:uppercase;opacity:.7}
  .ch-kitchen-facts dd{margin:2px 0 0}
  .ch-kitchen-facts dd[data-unlocked=true]{color:var(--leaf);font-weight:700}
  .ch-side-note{margin:auto 0 0;padding:12px 4px 0;font-size:13.5px;line-height:1.45;opacity:.8}
  .ch-side-note b{display:inline-block;margin-right:6px;padding:1px 9px;border-radius:99px;background:var(--forest);color:var(--cream);font-size:12px}
  .ch-sheet{align-items:center;padding:24px}
  .ch-sheet-card{border-radius:28px;padding:26px 26px 24px}
  .ch-grab{display:none}
  .ch-toast{bottom:40px}
}
@media (min-width:1024px) and (max-width:1279px){
  .ch-shell[data-panel]{grid-template-columns:268px minmax(0,1fr)}
  .ch-recipe{position:fixed;top:12px;right:12px;bottom:12px;z-index:75;width:min(460px,calc(100vw - 24px));box-shadow:0 18px 50px #0b241840}
}

/* ===== Phones and tablets: a full-screen app ===== */
@media (max-width:1023px){
  .ch-body[data-app] .dc-header,.ch-body[data-app] .ch-footer{display:none}
  .ch-body[data-app]{overflow:hidden;overscroll-behavior:none}
  .ch-app{padding:0}
  .ch-body[data-app] .ch-app{position:fixed;left:0;right:0;top:var(--app-top,0px);height:var(--app-h,100dvh)}
  .ch-shell{height:100%}
  .ch-side{display:none}
  .ch-main{height:100%;background:var(--cream)}
  .ch-bar{padding-top:max(8px,env(safe-area-inset-top))}
  .ch-app:not([data-view=ask]) .ch-bar-who,.ch-app:not([data-view=ask]) [data-new-chat]{display:none}
  .ch-app:not([data-view=ask]) .ch-bar-back{display:grid}
  .ch-app:not([data-view=ask]) .ch-bar-title{display:block;transition:opacity .2s}
  .ch-app:not([data-scrolled]) .ch-bar-title{opacity:0}
  .ch-app[data-first] .ch-bar-back{display:none}
  .ch-app:not([data-view=ask]) .ch-bar-status{display:none}
  .ch-app:not([data-busy]) .ch-bar-status{display:none}
  .ch-composer{background:var(--cream)}
  .ch-composer-note{display:none}
  .ch-recipe{position:fixed;inset:0;z-index:65;height:var(--app-h,100dvh)}
  .ch-r-bottom{display:block}
  .ch-r-hero img{width:min(170px,46%)}
  .ch-r-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .ch-r-actions .ch-btn{min-height:44px;padding:6px 8px;font-size:15px;border-color:var(--forest);text-decoration:none}
  .ch-r-actions .ch-btn svg{width:19px;height:19px}
  .ch-r-actions [data-start-cook]{display:none}
  .ch-tabs-r{top:58px}
  .ch-toast{bottom:calc(132px + env(safe-area-inset-bottom))}
}
@media (max-width:760px){
  .ch-hero{padding:0 12px}
  .ch-scene{margin-top:10px;border-radius:22px;aspect-ratio:900/560}
  .ch-roommate{right:9%;height:84%}
  .ch-chatview[data-started] .ch-scene{aspect-ratio:900/400}
  .ch-thread{padding:14px 12px 4px}
  .ch-msg.chef{grid-template-columns:32px minmax(0,1fr);gap:7px}
  .ch-av{width:32px;height:32px}
  .ch-suggest,.ch-starters,.ch-msg.recipe{margin-left:39px}
  .ch-suggest{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-right:-12px;padding-right:12px}
  .ch-suggest::-webkit-scrollbar{display:none}
  .ch-suggest button{flex:none;max-width:78vw}
  .ch-starters{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .ch-starter{min-height:104px;padding:10px}
  .ch-starter img{width:50px;height:50px}
  .ch-ticket{grid-template-columns:84px minmax(0,1fr);gap:2px 11px;padding:10px;border-radius:22px}
  .ch-ticket h3{font-size:17.5px}
  .ch-ticket .ch-badge[data-level]{display:none}
  .ch-ticket-meta{font-size:13.5px;gap:3px 10px}
  .ch-ticket-actions{gap:6px}
  .ch-ticket-actions .button{flex:1 1 auto;padding:8px 14px}
  .ch-ticket-actions .ch-btn{padding:8px 12px}
  .ch-bubble{font-size:16px;padding:11px 14px 12px}
  .ch-page{padding:16px 14px 30px}
  .ch-page-head{gap:12px;margin-bottom:14px}
  .ch-setup{padding:16px 14px 0;border-radius:24px}
  .ch-setup-nav{margin:16px -14px 0;padding:12px 14px calc(14px + env(safe-area-inset-bottom))}
  .ch-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .ch-tile{min-height:120px}
  .ch-tile img{width:66px;height:66px}
  .ch-two,.ch-choice{grid-template-columns:1fr}
  .ch-choice button{grid-template-columns:56px minmax(0,1fr);column-gap:12px;align-items:center}
  .ch-choice button img{grid-row:span 2;width:56px;height:56px}
  .ch-cookbook{grid-template-columns:1fr;gap:10px}
  .ch-meal{grid-template-columns:96px minmax(0,1fr);grid-template-rows:auto}
  .ch-meal-art{height:auto;min-height:100%}
  .ch-meal-art img{width:80px;height:80px}
  .ch-meal-body{padding:10px 12px 12px}
  .ch-cook-body{grid-template-columns:minmax(0,1fr);align-items:start;align-content:start;gap:14px}
  .ch-timer{grid-template-columns:110px minmax(0,1fr);align-items:center;justify-items:start;width:100%;gap:4px 14px}
  .ch-ring{grid-row:span 2;width:110px}
  .ch-timer-time{grid-column:2;margin:0;font-size:40px}
  .ch-timer-actions{grid-column:2;justify-content:flex-start}
  .ch-cook-nav{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .ch-cook-nav .ch-next{grid-column:1/-1;grid-row:1}
  .ch-cook-nav .ch-btn{padding:6px 8px;font-size:15px}
  .ch-awake span{display:none}
  .ch-sheet-card{padding:20px 16px calc(18px + env(safe-area-inset-bottom))}
  .ch-sheet-actions .button{flex:1 1 100%}
  .ch-sheet-head img{width:60px;height:60px}
  .ch-plans{grid-template-columns:1fr}
  .ch-period{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;border-radius:22px}
  .ch-period button{justify-content:center;flex-direction:column;gap:2px;min-height:48px;padding:5px 6px;border-radius:18px;font-size:14.5px;line-height:1.15}
  .ch-plan{padding:14px}
  .ch-plan ul{font-size:14.5px}
  .ch-price b{font-size:28px}
  .ch-over{grid-template-columns:56px minmax(0,1fr);padding:10px 12px 12px 10px}
  .ch-over img{width:56px;height:56px}
  .ch-over .button{grid-column:1/-1;width:100%;min-height:48px}
}
@media (max-width:380px){
  .ch-ticket{grid-template-columns:70px minmax(0,1fr)}
  .ch-ticket-actions .ch-save span{display:none}
  .ch-bar-name{font-size:16px}
}

@media (prefers-reduced-motion:reduce){
  .ch-body *,.ch-body *::before,.ch-body *::after{animation:none!important;transition:none!important}
}
@media (forced-colors:active){
  .ch-bubble,.ch-ticket,.ch-tile,.ch-chip,.ch-level,.ch-meal,.ch-starter,.ch-plan,.ch-over{border:2px solid CanvasText}
  .ch-period button[aria-checked=true]{outline:2px solid CanvasText}
}
/* Persistent cook voice feedback stays in the same content scroller as the step. */
.ch-voice-status { margin: 8px auto 14px; width: min(100% - 32px, 780px); padding: 12px 16px; border: 1.5px solid currentColor; border-radius: 18px; background: #fff5dd; color: #143d2b; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.ch-voice-status[data-kind="listening"] { background: #dfeacf; border-color: #f3bf3d; }
.ch-voice-status[data-kind="error"] { background: #fbe5dd; color: #78351f; }
.ch-cook-tools [data-read-aloud][aria-pressed="true"] { background: #f3bf3d; color: #143d2b; }
