:root{font-family:system-ui,sans-serif;color:#283b32;background:#f5f2e9;font-size:16px}*{box-sizing:border-box}body{margin:0}header{max-width:1200px;margin:auto;padding:25px 28px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #dddcd1}.brand{font-size:24px;font-weight:750;color:inherit;text-decoration:none}.brand span{display:block;font-size:12px;font-weight:400;margin-top:5px;color:#6b756b}main{max-width:1150px;margin:32px auto;padding:0 24px 60px}h1{font-family:Georgia,serif;font-weight:400;font-size:clamp(34px,5vw,60px);line-height:1.1;margin:12px 0 20px}h2{font-family:Georgia,serif;font-weight:400;font-size:30px}h3{margin-top:0}p{line-height:1.65}.eyebrow{text-transform:uppercase;font-size:12px;letter-spacing:2px;color:#687b65}.muted{color:#687468;font-size:14px}.hero{display:grid;grid-template-columns:1.2fr 1fr;gap:45px;align-items:center;padding:24px 0}.dish{min-height:300px;border-radius:50% 50% 40% 45%;background:#e7b89a;display:grid;place-items:center;font-size:110px;position:relative}.dish:after{content:'MADE TOGETHER';font-size:10px;letter-spacing:2px;position:absolute;bottom:32px}.card{background:#fffdf7;border:1px solid #deded1;border-radius:20px;padding:24px;margin-bottom:18px}.grid,.panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.grid .card{margin:0}.toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:16px 0}button,select{font:inherit;min-height:48px;border-radius:12px;border:1px solid #c9cec1;padding:12px 17px;background:#fffdf7;color:#283b32;cursor:pointer}button.primary{background:#334f3b;color:white;border-color:#334f3b}button:disabled{opacity:.45;cursor:default}button:hover:not(:disabled){filter:brightness(.95)}button:focus-visible,a:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #d38b49;outline-offset:3px}.badge{display:inline-flex;align-items:center;border-radius:30px;padding:8px 12px;font-size:14px;gap:6px;margin:4px}.check{display:flex;gap:14px;align-items:center;min-height:48px;border-bottom:1px solid #ececdf}.check input{width:23px;height:23px;accent-color:#334f3b}.instruction{font-size:24px;line-height:1.55;min-height:130px}details{border-top:1px solid #e1e1d7;padding:16px 0;margin:12px 0}summary{cursor:pointer;min-height:30px}.timer{background:#f4e5c6;border-radius:12px;padding:12px;margin:10px 0}.qr{width:180px;height:180px;background:white;border-radius:12px}.notice{padding:14px;background:#f2e5ce;border-radius:12px;line-height:1.5;margin:12px 0}.progress{height:5px;background:#e9e9df;border-radius:9px;margin:18px 0;overflow:hidden}.progress div{background:#788c60;height:100%}.empty{text-align:center;padding:36px;color:#687468}#toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:#283b32;color:white;padding:15px 22px;border-radius:14px;display:none;max-width:90%;z-index:10}.footer-actions{margin-top:35px;border-top:1px solid #dddcd1;padding-top:20px}.small{font-size:13px}#connection{font-size:13px}label{line-height:1.5}a{color:#334f3b}@media(max-width:760px){.hero,.grid,.panels{grid-template-columns:1fr}.dish{min-height:200px;font-size:85px}.hero{gap:20px}header{padding:18px}.brand{font-size:20px}main{padding:0 16px;margin-top:20px}.card{padding:20px}.instruction{font-size:22px}}@media(prefers-reduced-motion:no-preference){button{transition:filter .15s}}
.timer-expired{border:2px solid #a35d26;background:#fae3bb}.timer p{margin:8px 0}.timer .toolbar{margin-bottom:0}
.recommendation{background:#eaf0df;border-color:#b8c7a0}.recommendation h3{font-size:23px;margin:10px 0}.recommendation p{margin:10px 0}.recommendation .muted{font-size:12px}
.kitchen-overview{margin-top:24px}.overview-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.overview-heading h2{font-size:25px;margin:0}.overview-track{display:flex;gap:5px;margin:18px 0 10px}.overview-segment{flex:1;min-width:0;min-height:28px;border-radius:6px;display:grid;place-items:center;background:#eceee5;color:#66715e;font-size:15px}.overview-segment.done{background:#334f3b;color:#fff}.overview-segment.claimed{background:#ceddc0;color:#283b32}.overview-segment.waiting{background:#f2dfb9;color:#704d20}.overview-legend{display:flex;flex-wrap:wrap;gap:14px;font-size:12px;color:#687468}.overview-people{display:grid;gap:10px}.overview-person{display:flex;align-items:flex-start;gap:12px;border-top:1px solid #e4e5da;padding-top:12px}.overview-person .badge{flex-shrink:0;margin:0}.overview-person>div{font-size:14px;line-height:1.6;overflow-wrap:anywhere}@media(max-width:520px){.overview-person{flex-direction:column;gap:6px}}
#screen-awake:empty{display:none}
#screen-awake{max-width:1150px;margin:16px auto 0;padding:0 24px;font-size:14px;color:#687468}
#screen-awake .toolbar{flex-wrap:wrap}
/* Keep controls outside notches and the home gesture area, including landscape. */
body{min-height:100vh;min-height:100dvh;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px)}
#app-install{max-width:1150px;margin:16px auto;padding:0 24px;font-size:14px;color:#687468}
#app-install[hidden]{display:none}
#app-install summary{cursor:pointer;min-height:44px;display:flex;align-items:center;text-decoration:underline;text-underline-offset:3px}
#app-install p{max-width:52ch}
#toast{bottom:calc(20px + env(safe-area-inset-bottom,0px));max-width:calc(100vw - 48px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px))}

/* Recipe selection and setup: compact screens with thumb-sized controls. */
body:has(.recipe-library) header,
body:has(.recipe-detail) header{max-width:760px;border:0;padding:20px 24px 0}
body:has(.recipe-library) .brand,
body:has(.recipe-detail) .brand{font-size:19px;letter-spacing:-.5px}
body:has(.recipe-library) .brand span,
body:has(.recipe-detail) .brand span{display:none}
body:has(.recipe-library) main,
body:has(.recipe-detail) main{max-width:760px;margin:30px auto 0;padding-bottom:24px}
.recipe-library h1,.recipe-detail h1{font-family:inherit;font-weight:750;letter-spacing:-1.6px;line-height:1.08;font-size:clamp(34px,7vw,48px)}
.recipe-library h2,.recipe-detail h2{font-family:inherit;font-weight:700;font-size:20px;letter-spacing:-.4px}
.library-intro .eyebrow{font-size:10px;letter-spacing:1.8px}
.library-intro h1{margin:14px 0}
.library-intro p{color:#687468;margin:0 0 32px}
.library-label{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.library-label h2{margin:0}
.library-label>span{font-size:13px;color:#687468}
.recipe-collection{display:grid;gap:14px}
.recipe-tile{position:relative;display:flex;align-items:center;gap:16px;width:100%;padding:14px;text-align:left;border:1px solid #e0e2d6;border-radius:22px;background:#fffdf7;box-shadow:0 3px 12px #283b3205;touch-action:manipulation}
.recipe-art{flex:0 0 88px;height:108px;border-radius:15px;background:var(--recipe-tone,#e9d9c5);display:grid;place-items:center;overflow:hidden}
.recipe-art>span{font-size:47px;filter:drop-shadow(0 7px 5px #283b3214);transform:rotate(-9deg)}
.recipe-tone-0{--recipe-tone:#ecdbcd}.recipe-tone-1{--recipe-tone:#eadbb5}.recipe-tone-2{--recipe-tone:#dce4cd}.recipe-tone-3{--recipe-tone:#d6e1dc}
.recipe-tile-copy{display:grid;gap:7px;min-width:0;padding:3px 24px 3px 0}
.recipe-tile-copy>strong{font-size:18px;line-height:1.2;letter-spacing:-.3px;overflow-wrap:anywhere}
.recipe-subtitle{font-size:13px;color:#687468;line-height:1.4}
.recipe-tags{font-size:12px;color:#687468;line-height:1.5}
.recipe-arrow{position:absolute;top:17px;right:14px;color:#687468;font-size:20px}
.library-footnote{text-align:center;font-size:12px;color:#687468;margin:28px 0 12px}
.back-recipes{display:inline-flex;align-items:center;gap:10px;background:transparent;border:0;padding:8px 0;font-size:14px}
.back-recipes>span{font-size:24px}
.recipe-detail-intro{position:relative;margin:14px 0 26px}
.recipe-detail-intro .eyebrow{font-size:10px;letter-spacing:1.8px}
.recipe-detail-intro h1{margin:10px 0 14px;padding-right:60px;font-size:clamp(30px,6vw,42px)}
.recipe-detail-art{position:absolute;right:0;top:24px;font-size:42px;transform:rotate(8deg)}
.recipe-detail-subtitle{font-weight:550;font-size:17px;line-height:1.5;margin:0 0 10px}
.recipe-detail-intro>p:last-child{font-size:14px;color:#687468}
.recipe-options{border-radius:22px;padding:20px;background:#fffdf7;border:1px solid #e0e2d6}
.portion-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.portion-row h2{margin:0;font-size:17px}
.portion-row p{font-size:12px;color:#687468;margin:4px 0 0}
.portion-stepper{display:flex;align-items:center;gap:8px}
.portion-stepper button{font-size:23px;min-width:46px;min-height:48px;padding:6px;border:0;background:#eef0e7;border-radius:14px;touch-action:manipulation}
.portion-stepper output{min-width:32px;text-align:center;font-weight:700;font-size:21px;font-variant-numeric:tabular-nums}
.cook-mode{margin:24px 0 0;padding:0;border:0;min-width:0}
.cook-mode legend{font-weight:650;font-size:15px;margin-bottom:12px;padding:0}
.mode-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mode-options button{display:grid;justify-items:start;gap:4px;padding:14px;border:2px solid transparent;background:#f3f3eb;border-radius:16px;touch-action:manipulation}
.mode-options button[aria-pressed=true]{border-color:#334f3b;background:#e7eddf}
.mode-options button>span{font-size:15px;letter-spacing:3px;margin-bottom:5px}
.mode-options strong{font-size:15px}.mode-options small{color:#687468;font-size:12px}
.ingredient-preview{margin:30px 0 24px}
.ingredient-preview ul{list-style:none;margin:0;padding:0}
.ingredient-preview li{display:flex;justify-content:space-between;gap:16px;align-items:baseline;padding:13px 0;border-bottom:1px solid #e0e2d6;font-size:14px;line-height:1.4}
.ingredient-preview li>strong{white-space:nowrap;font-size:14px;font-variant-numeric:tabular-nums}
.ingredient-preview small{display:block;color:#687468;font-size:12px;margin-top:4px}
.recipe-tips{font-size:14px;line-height:1.6}
.recipe-tips summary{font-weight:650;min-height:44px;align-content:center}
.recipe-start{position:sticky;bottom:0;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 0 calc(16px + env(safe-area-inset-bottom,0px));background:#f5f2e9;border-top:1px solid #dddcd1;z-index:2;box-shadow:0 -12px 18px #f5f2e9}
.recipe-start>div{display:grid;gap:4px;font-size:13px}
.recipe-start>div>span{color:#687468;font-size:12px}
.recipe-start>button{min-height:54px;border-radius:17px;font-weight:650;padding:14px 20px;touch-action:manipulation}
.recipe-start>button span{margin-left:12px}
@media(min-width:700px){.recipe-collection{grid-template-columns:1fr 1fr}.recipe-tile{align-items:stretch;flex-direction:column}.recipe-art{flex-basis:auto;height:130px}.recipe-tile-copy{padding:3px 4px}.recipe-arrow{top:160px}}
@media(max-width:360px){.recipe-art{flex-basis:64px;height:92px}.recipe-art>span{font-size:36px}.recipe-tile{gap:12px}.recipe-tile-copy>strong{font-size:16px}.recipe-options{padding:16px}.portion-stepper{gap:4px}.recipe-start>button{padding:12px}.recipe-start>button span{margin-left:4px}}
.join-kitchen-card{display:flex;align-items:center;gap:14px;width:100%;text-align:left;background:#e7eddf;border:0;border-radius:18px;padding:16px;margin:0 0 30px;touch-action:manipulation}
.join-kitchen-card>span:nth-child(2){display:grid;gap:5px;flex:1}
.join-kitchen-card strong{font-size:16px}.join-kitchen-card small{font-size:12px;color:#687468}
.join-qr-symbol{font-size:32px;line-height:1}
body:has(.join-screen) header{max-width:760px;border:0;padding:20px 24px 0}
body:has(.join-screen) .brand span{display:none}
body:has(.join-screen) main{max-width:760px;margin-top:30px}
.join-screen{max-width:520px;margin:auto}
.join-screen>.eyebrow{display:block;margin-top:18px}
.join-screen h1{font-family:inherit;font-size:36px;font-weight:750;letter-spacing:-1px}
.join-screen>p{font-size:14px}
.scanner-preview{position:relative;width:100%;height:320px;height:clamp(220px,45dvh,360px);isolation:isolate;margin:22px 0 16px;background:#283b32;border-radius:24px;overflow:hidden}
.scanner-preview video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;background:#283b32}
.scanner-guide{position:absolute;inset:20%;border:2px solid #f5f2e9;border-radius:18px;pointer-events:none}
.join-link-form{display:grid;gap:12px;margin-top:28px;padding-top:24px;border-top:1px solid #dddcd1}
.join-link-form label{font-weight:650;font-size:15px}
.join-link-form input{width:100%;min-width:0;min-height:52px;padding:14px;border:1px solid #c9cec1;border-radius:12px;font:inherit;background:#fffdf7;color:#283b32}
.join-link-form input:focus-visible{outline:3px solid #d38b49;outline-offset:3px}
