:root{color-scheme:light;--wine:#873e4b;--wine-dark:#69303b;--oat:#fbf7f2;--ink:#30262a;--muted:#77676b;--line:#e9e0dc;--rose:#f3e6e6;--green:#416556;--danger:#a2462f;font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;color:var(--ink);background:#ede8e2;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.42}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #b66b78;outline-offset:3px}button{border:0;background:none}img{display:block;max-width:100%}h1,h2,h3,p{margin:0}button svg{pointer-events:none}.icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.workbench{display:flex;align-items:center;justify-content:center;gap:100px;min-height:100dvh;padding:28px}.review-rail{width:300px;align-self:center}.rail-brand{display:flex;align-items:center;gap:8px;font-weight:750;font-size:18px}.rail-brand img{width:30px}.rail-brand span{font-size:10px;letter-spacing:1.5px;margin-left:auto;color:var(--muted)}.review-rail h1{font-size:40px;line-height:1.3;letter-spacing:-2px;margin:50px 0 18px}.review-rail>p{color:var(--muted);line-height:1.8;font-size:15px}.review-rail nav{display:grid;gap:6px;margin:30px 0}.review-rail nav button{display:flex;gap:20px;align-items:center;border-bottom:1px solid #d8cec7;text-align:left;padding:15px 4px;color:var(--muted);font-size:11px}.review-rail nav button span{font-size:15px;color:var(--ink);font-weight:650}.review-rail nav button:hover{color:var(--wine);background:#e5dcd7}.rail-note{border-left:2px solid var(--wine);padding-left:16px}.eyebrow{font-size:11px;font-weight:700;letter-spacing:.7px;color:var(--wine)}.rail-note p{font-size:13px;line-height:1.65;margin:10px 0;color:var(--muted)}.rail-help{font-size:12px;padding:20px 0;text-decoration:underline}.review-rail .scope{font-size:11px;line-height:1.6;max-width:280px}
.device{position:relative;isolation:isolate;flex-shrink:0;width:390px;height:845px;border:7px solid #342e2c;border-radius:52px;box-shadow:0 0 0 2px #b2a7a0,0 22px 65px #52433129;background:var(--oat);overflow:hidden;display:flex;flex-direction:column}.statusbar{height:47px;min-height:47px;position:relative;display:flex;align-items:center;justify-content:space-between;padding:0 29px;font-size:12px;font-weight:700;z-index:5}.island{position:absolute;top:10px;left:50%;transform:translateX(-50%);width:100px;height:27px;border-radius:20px;background:#201c1d}.device-signals{font-size:10px;letter-spacing:1px}.device-signals span{font-size:16px}.home-indicator{flex-shrink:0;width:112px;height:4px;border-radius:8px;background:var(--ink);margin:8px auto}.app-scroll{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c8b9b5 transparent}.app-scroll::-webkit-scrollbar{width:4px}.app-scroll::-webkit-scrollbar-thumb{background:#c8b9b5;border-radius:4px}.app-header{display:flex;align-items:center;justify-content:space-between;min-height:58px;padding:6px 20px}.app-brand{display:flex;align-items:center;font-weight:800;font-size:20px;letter-spacing:-.7px;gap:7px}.app-brand img{width:29px}.round-btn{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:#efe8e1}.round-btn.plain{background:none}.header-title{font-weight:750;font-size:17px}.header-spacer{width:44px}.page-pad{padding:12px 21px 22px}.page-title{font-size:28px;letter-spacing:-1.2px;line-height:1.25}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:26px 0 12px}.section-head h2{font-size:17px;letter-spacing:-.4px}.text-btn{font-size:13px;font-weight:650;color:var(--wine);min-height:44px;padding:8px 2px;display:inline-flex;align-items:center;gap:4px}.muted{color:var(--muted)}.small{font-size:12px;line-height:1.55}.badge{display:inline-flex;align-items:center;gap:4px;border-radius:6px;padding:4px 7px;background:var(--rose);color:var(--wine);font-size:10px;line-height:1.2;font-weight:650}.badge.neutral{background:#f0ebe6;color:var(--muted)}.badge.warning{background:#f7eadb;color:#86592e}.dashboard-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.dashboard-date{font-size:12px;color:var(--muted)}.today-card{background:white;border-radius:24px;padding:23px;box-shadow:0 4px 18px #52433105;border:1px solid #efe8e1}.today-label{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:var(--muted)}.today-cost{font-size:38px;letter-spacing:-1.5px;font-weight:750;margin:14px 0 5px;font-variant-numeric:tabular-nums}.today-cost span{font-size:18px;margin-left:5px;font-weight:500}.today-card .subline{padding-top:16px;margin-top:18px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--muted)}.empty-copy{text-align:center;padding:21px 16px 14px}.empty-copy .empty-circle{background:#f0e6df;border-radius:50%;width:48px;height:48px;display:flex;justify-content:center;align-items:center;margin:0 auto 12px;color:var(--wine)}.empty-copy h3{font-size:15px;margin-bottom:6px}.empty-copy p{font-size:13px;line-height:1.7;color:var(--muted)}.meal-row{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:12px 0;border-bottom:1px solid var(--line)}.meal-row .thumb{width:66px;height:66px;object-fit:cover;border-radius:15px;background:#f1e9e1}.meal-row .row-copy{flex:1;min-width:0}.meal-row strong{display:block;font-size:15px;margin:3px 0;word-break:break-word}.meal-row small{font-size:11px;color:var(--muted);display:block;line-height:1.7}.meal-row .icon{width:17px;color:#a38f94}.example-card{display:flex;align-items:center;gap:14px;width:100%;padding:13px;text-align:left;border:1px solid #e8d6d8;background:#f8eeee;border-radius:20px}.example-card img{width:70px;height:76px;object-fit:cover;border-radius:13px}.example-card strong{font-size:14px;display:block;margin:5px 0}.example-card p{font-size:12px;color:var(--muted);line-height:1.6}.example-card .icon{margin-left:auto;width:16px}.draft-card{padding:15px;background:#f5e7d9;border-radius:18px;margin-top:16px;display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left}.draft-card strong{display:block;font-size:14px;margin:4px 0}.draft-card small{font-size:11px;color:#795c43}.app-nav{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:end;flex-shrink:0;min-height:76px;padding:3px 18px 4px;border-top:1px solid var(--line);background:var(--oat);z-index:4}.nav-item{font-size:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:53px;color:#8a797d;font-weight:550}.nav-item.selected{color:var(--wine);font-weight:750}.nav-item.selected .icon{stroke-width:2.2}.nav-item.scan{color:var(--wine);gap:3px}.scan-disc{width:51px;height:51px;border-radius:19px;background:var(--wine);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 3px 10px #873e4b25}.scan-disc .icon{width:25px;height:25px}.footer-actions{padding:12px 20px 3px;border-top:1px solid var(--line);background:var(--oat);display:flex;gap:10px;flex-shrink:0}.primary,.secondary{min-height:48px;border-radius:16px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:14px;font-weight:700;padding:12px 15px}.primary{background:var(--wine);color:#fff;flex:1}.primary:hover{background:var(--wine-dark)}.secondary{background:#fff;border:1px solid #d8c7c9;color:var(--wine)}.full{width:100%}.result-photo{height:214px;position:relative;margin:0 8px;overflow:hidden;border-radius:22px}.result-photo>button{width:100%;height:100%;padding:0}.result-photo img{width:100%;height:100%;object-fit:cover;object-position:50% 53%}.result-photo .photo-note{position:absolute;left:12px;bottom:12px;pointer-events:none;background:#fffef0ed;padding:6px 9px;border-radius:7px;font-size:10px;color:var(--ink)}.result-photo .expand-mark{position:absolute;right:12px;bottom:10px;color:white;filter:drop-shadow(0 1px 2px black);pointer-events:none}.result-body{padding:19px 22px 20px}.meal-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.meal-title h1{font-size:25px;letter-spacing:-1px;overflow-wrap:anywhere}.serving-control{display:flex;align-items:center;border:1px solid var(--line);border-radius:11px;background:#fff;flex-shrink:0}.serving-control button{width:34px;min-height:40px;font-size:19px}.serving-control span{font-size:11px;min-width:34px;text-align:center}.meal-name-btn{display:flex;align-items:center;gap:6px;padding:0;text-align:left}.meal-name-btn .icon{width:15px;color:#8b747a}.cost-block{margin:20px 0 17px}.cost-label{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:6px}.big-cost{font-size:43px;font-weight:800;letter-spacing:-1.8px;margin:6px 0;font-variant-numeric:tabular-nums}.big-cost span{font-size:19px;font-weight:550;margin-left:4px;letter-spacing:-.3px}.cost-status{font-size:26px;letter-spacing:-.8px;line-height:1.3}.result-summary{display:flex;gap:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:12px 0;margin-top:17px}.result-summary>div{flex:1;font-size:11px;color:var(--muted);padding:0 10px;border-right:1px solid var(--line)}.result-summary>div:first-child{padding-left:0}.result-summary>div:last-child{border:0}.result-summary strong{display:block;color:var(--ink);font-size:14px;margin-top:5px;font-variant-numeric:tabular-nums}.compact-note{background:#f1ebe4;border-radius:11px;padding:10px 12px;font-size:11px;line-height:1.6;color:var(--muted);margin:12px 0}.warning-box{background:#fbebd9;color:#815128;border-radius:14px;padding:12px;font-size:12px;line-height:1.6;margin:12px 0}.ingredient-row{display:flex;align-items:center;gap:10px;padding:10px 0;min-height:66px;border-bottom:1px solid var(--line);width:100%;text-align:left}.ingredient-row .ingredient-thumb{width:42px;height:42px;border-radius:12px;object-fit:cover;background:#f4eee7}.ingredient-row .row-info{min-width:0;flex:1}.ingredient-row b{font-size:14px;display:block}.ingredient-row small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.ingredient-row .amount-pill{background:#fff;border:1px solid var(--line);border-radius:10px;padding:9px 10px;font-size:13px;font-weight:650;min-width:65px;text-align:center}.ingredient-row .icon{width:14px;height:14px;color:#9e878d}.ingredient-row.issue .amount-pill{background:#fff0dc;color:#855721;border-color:#ead3b6}.ingredient-row.issue small{color:#95612c}.inline-heading{display:flex;justify-content:space-between;align-items:center;margin:18px 0 2px}.inline-heading h2{font-size:16px}.inline-heading .small{font-size:10px}.seasonings{margin:15px 0}.seasonings summary{min-height:44px;cursor:pointer;font-size:13px;font-weight:650;display:list-item;padding:12px 0}.add-row{width:100%;display:flex;gap:7px;align-items:center;justify-content:center;min-height:48px;border:1px dashed #cdb9bd;border-radius:13px;margin-top:14px;font-size:13px;color:var(--wine);font-weight:650}.add-row .icon{width:18px}.link-row{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:46px;font-size:12px;border-bottom:1px solid var(--line);text-align:left}.link-row .icon{width:15px}.save-hint{font-size:10px;line-height:1.5;color:var(--muted);text-align:center;margin-top:10px}.capture-mode{background:#201d1c;color:#fff}.capture-mode .statusbar{background:#201d1c;color:#fff}.capture-mode .home-indicator{background:white}.capture-mode .app-scroll{overflow:hidden;position:relative}.capture-mode .app-header{color:white}.capture-mode .round-btn{background:#ffffff16;color:white}.camera-view{height:100%;display:flex;flex-direction:column;position:relative}.viewfinder{flex:1;position:relative;overflow:hidden;min-height:0}.viewfinder img,.viewfinder video{width:100%;height:100%;object-fit:cover}.viewfinder .no-camera{display:flex;align-items:center;justify-content:center;height:100%;padding:30px;text-align:center;line-height:1.7}.camera-top-label{position:absolute;top:16px;left:50%;transform:translateX(-50%);background:#252021af;padding:8px 12px;border-radius:20px;white-space:nowrap;font-size:11px;color:white}.camera-frame{position:absolute;inset:18% 12%;border:1px solid #ffffff60;border-radius:26px;pointer-events:none}.camera-hint{position:absolute;left:20px;right:20px;bottom:18px;text-align:center;font-size:12px;line-height:1.6;text-shadow:0 1px 5px black}.camera-controls{padding:17px 24px 15px;flex-shrink:0;background:#201d1c}.camera-switch{display:flex;justify-content:center;gap:8px;margin-bottom:18px}.camera-switch button{font-size:11px;min-height:34px;border-radius:20px;padding:8px 14px;background:#ffffff13;color:#fff}.camera-switch button.active{background:#fff;color:#262024}.shutter-row{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;justify-items:center;gap:10px}.camera-side{font-size:10px;display:flex;flex-direction:column;gap:7px;align-items:center;color:white;min-height:50px;justify-content:center}.camera-side .icon{width:23px}.shutter{border:3px solid #fff;border-radius:50%;width:72px;height:72px;padding:5px;background:none}.shutter span{display:block;background:#fff;width:100%;height:100%;border-radius:50%;transition:transform .15s}.shutter:active span{transform:scale(.87)}.camera-fineprint{font-size:10px;text-align:center;color:#c3b9ba;margin-top:14px}.shopping-title{margin-bottom:8px}.shopping-summary{background:#fff;padding:18px;border-radius:20px;margin:18px 0;border:1px solid var(--line)}.shopping-summary strong{font-size:25px;display:block;letter-spacing:-1px}.shopping-summary p{font-size:12px;color:var(--muted);line-height:1.6;margin-top:7px}.check-row{display:flex;align-items:center;gap:12px;min-height:70px;border-bottom:1px solid var(--line);padding:8px 0;cursor:pointer}.check-row input{width:23px;height:23px;accent-color:var(--wine);flex-shrink:0}.check-row img{width:41px;height:41px;border-radius:11px;object-fit:cover}.check-row .row-info{flex:1}.check-row strong{display:block;font-size:14px}.check-row small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.check-row b{font-size:13px}.check-row.owned strong{text-decoration:line-through;color:#8e7c80}.check-row.owned img{opacity:.45}.check-row.owned b{color:#8e7c80}.shopping-source{display:flex;align-items:center;gap:7px;font-size:12px;line-height:1.5;margin:12px 0}.success-circle{border-radius:50%;background:#e9efe8;color:var(--green);display:flex;align-items:center;justify-content:center;width:66px;height:66px;margin:18px auto}.success-circle .icon{width:30px;height:30px}.success-copy{text-align:center}.success-copy h1{font-size:24px;letter-spacing:-1px}.success-copy p{font-size:13px;line-height:1.7;color:var(--muted);margin:10px 0 24px}.error-view{text-align:center;padding:32px 22px}.error-view h1{font-size:22px;line-height:1.4;margin:24px 0 10px}.error-view img{width:150px;height:150px;object-fit:cover;border-radius:28px;margin:auto}.error-view p{font-size:13px;line-height:1.75;color:var(--muted);margin-bottom:24px}.error-view .primary{margin-bottom:10px}
#overlay{position:absolute;inset:0;z-index:20;background:#251b2560;display:flex;align-items:flex-end}#overlay[hidden]{display:none}.sheet{background:var(--oat);color:var(--ink);border-radius:28px 28px 0 0;max-height:89%;width:100%;display:flex;flex-direction:column;padding:10px 22px 20px;box-shadow:0 -15px 60px #36272a24;animation:sheet-in .2s ease-out}.sheet-handle{width:34px;height:4px;background:#d7c8c6;border-radius:6px;align-self:center;flex-shrink:0;margin:0 0 8px}.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0}.sheet-head h2{font-size:21px;letter-spacing:-.8px;line-height:1.3}.sheet-head .round-btn{width:40px;min-width:40px;height:40px;min-height:40px}.sheet-body{overflow:auto;min-height:0;overscroll-behavior:contain;padding-top:14px;scrollbar-width:thin}.sheet form{display:flex;flex-direction:column;min-height:0}.sheet form .form-scroll{overflow:auto;min-height:0}.sheet label{font-size:12px;font-weight:650;display:block;margin:16px 0 8px}.sheet input:not([type=checkbox]),.sheet select{width:100%;min-width:0;height:48px;font-size:16px;padding:10px 12px;background:#fff;color:var(--ink);border:1px solid #d9ccca;border-radius:12px}.sheet .amount-input{font-size:30px!important;font-weight:700;height:66px!important;text-align:center;font-variant-numeric:tabular-nums}.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}.sheet details{margin:12px 0}.sheet details summary{font-size:12px;min-height:44px;padding:14px 0;cursor:pointer}.sheet-actions{display:flex;gap:8px;padding-top:14px;flex-shrink:0}.sheet-actions>*{flex:1}.sheet .danger{color:var(--danger)}.error-text{color:var(--danger);font-size:12px;line-height:1.5;min-height:0;margin-top:10px}.row-preview{display:flex;gap:12px;align-items:center;margin:2px 0 14px}.row-preview img{width:52px;height:52px;border-radius:14px;object-fit:cover}.row-preview strong{font-size:15px}.sheet .body-copy{font-size:13px;line-height:1.8;color:var(--muted);margin-bottom:14px}.basis-item{border-bottom:1px solid var(--line);padding:12px 0}.basis-item strong{font-size:13px;display:block;margin-bottom:5px}.basis-item p{font-size:11px;line-height:1.65;color:var(--muted)}.zoom-photo{border-radius:18px;width:100%;max-height:460px;object-fit:contain;background:#e8e0d9}.toast{position:absolute;bottom:104px;left:17px;right:17px;z-index:30;background:#31252bef;color:#fff;font-size:12px;line-height:1.5;border-radius:14px;padding:13px 16px;box-shadow:0 6px 24px #30262a20}.toast button{color:#ffe3c1;font-size:12px;font-weight:700;margin-left:8px;min-height:32px}.storage-warning{position:absolute;top:47px;left:8px;right:8px;padding:10px;font-size:11px;background:#fff0de;color:#7c471f;z-index:40;border-radius:10px}.consent-line{display:flex!important;align-items:flex-start;gap:10px;line-height:1.6!important;font-size:12px!important;font-weight:400!important}.consent-line input{width:20px;height:20px;accent-color:var(--wine);flex-shrink:0}.mobile-only{display:none}.screen-enter{animation:screen-in .18s ease-out}.recipe-choice{padding:13px 0;width:100%;text-align:left;display:flex;justify-content:space-between;border-bottom:1px solid var(--line);font-size:14px}.recipe-choice .icon{width:16px}
.local-note{margin-top:14px}.sheet pre{white-space:pre-wrap;overflow-wrap:anywhere}.record-actions{margin-top:8px}
.toast{bottom:auto;top:62px;pointer-events:none}.toast button{pointer-events:auto}
@media(max-width:620px){.capture-mode .home-indicator{background:transparent}}
.result-photo{height:154px}.result-body{padding-top:14px}.cost-block{margin:12px 0}.result-summary{padding:8px 0;margin-top:10px}.big-cost{font-size:39px;margin:3px 0}.inline-heading{margin-top:14px}.result-summary strong{margin-top:3px}
@media(min-width:621px){.device{width:min(390px,calc((100dvh - 40px)*6/13));height:min(845px,calc(100dvh - 40px));min-width:300px;min-height:650px}.workbench{padding:20px}}
@keyframes sheet-in{from{transform:translateY(18px);opacity:.5}to{transform:translateY(0);opacity:1}}@keyframes screen-in{from{opacity:.75;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:860px){.workbench{gap:40px;padding:20px}.review-rail{width:240px}.review-rail h1{font-size:34px}}@media(max-width:620px){:root{background:var(--oat)}.workbench{display:block;padding:0;min-height:0}.review-rail{display:none}.device{width:100%;height:100dvh;border:0;border-radius:0;box-shadow:none}.statusbar{height:env(safe-area-inset-top,0px);min-height:env(safe-area-inset-top,0px);padding:0}.statusbar>*{display:none}.home-indicator{height:max(4px,env(safe-area-inset-bottom,4px));background:transparent;margin:0}.app-header{padding-top:8px}.app-nav{padding-bottom:10px}.mobile-only{display:block}.sheet{padding-bottom:max(20px,env(safe-area-inset-bottom))}.result-photo{height:190px}.capture-mode .statusbar{background:#201d1c}.storage-warning{top:4px}}@media(max-width:359px){.page-pad{padding-left:16px;padding-right:16px}.result-body{padding-left:16px;padding-right:16px}.meal-title h1{font-size:22px}.serving-control button{width:30px}.serving-control span{min-width:28px}.sheet{padding-left:16px;padding-right:16px}.footer-actions{padding-left:14px;padding-right:14px}.result-photo{height:165px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* T-52: per-photo consent and ingredient evidence remain inside the phone. */
.vision-preview{display:block;width:100%;max-height:160px;object-fit:contain;border-radius:16px;background:#FBF7F2;margin-bottom:16px}
.vision-choice{display:flex!important;align-items:flex-start;gap:12px;padding:13px 0;border-bottom:1px solid #e9e0dc;cursor:pointer;font-size:15px!important}
.vision-choice input{flex:0 0 20px;width:20px;height:20px;margin:3px 0;accent-color:#873E4B}
.vision-choice span{min-width:0;overflow-wrap:anywhere}.vision-choice small{display:block;font-size:12px;line-height:1.5;font-weight:400;color:#716363;margin-top:4px}
.sheet h3{font-size:16px;margin:22px 0 6px}.ingredient-row .row-info{overflow-wrap:anywhere}
