/* Han-kki: quiet food photography, clear controls, and compact mobile flows. */
:root{--ink:#20362d;--muted:#64716a;--green:#205842;--green-soft:#eff5ee;--orange:#a4492f;--orange-soft:#faeee8;--line:#e6ebe5;--lime:#e2edb9;--nav-height:82px}
body{background:#e9ede8}
svg{stroke-width:1.8}
button,a,input,textarea{touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #3d795d;outline-offset:3px}
button:active:not(:disabled){filter:brightness(.97)}
main{padding-bottom:calc(var(--nav-height) + 32px + env(safe-area-inset-bottom))}
.page{padding:0 22px}
.page-header{padding:22px 22px 18px;min-height:86px}
.page-title{font-size:26px;letter-spacing:-1px}
.page-subtitle{font-size:14px;margin:0 0 23px;line-height:1.75}
.icon-button.soft,.avatar{background:#f3f5f1;color:var(--ink);border:0}
.icon-button svg{width:21px;height:21px}
.brand{font-size:22px;letter-spacing:-1.1px;gap:6px}
.brand-mark{width:29px;height:32px;color:var(--green)}
.brand-mark svg{width:29px;height:29px}
.brand-dot{width:6px;height:6px;margin:9px 0 0 2px;background:#b8cd7f;border-radius:50%}
.home-header{padding-top:15px;padding-bottom:10px;min-height:74px}
.avatar{width:40px;height:40px}
.greeting{margin:7px 0 17px}
.greeting p{margin:0 0 3px;font-size:13px;letter-spacing:-.2px;color:var(--muted)}
.greeting h1{font-size:27px;line-height:1.45;letter-spacing:-1.2px}
.greeting h1 strong{color:var(--green);font-weight:800}
.search{background:#f5f7f3;border:1px solid #e6ebe2;border-radius:14px;min-height:52px;padding:0 15px}
.search svg{width:21px;height:21px;color:var(--green)}
.search input{padding:13px 0;letter-spacing:-.3px}
.search:focus-within{box-shadow:0 0 0 2px #a5b8a7}
.quick-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;padding:21px 4px 18px}
.quick-action{display:flex;align-items:center;flex-direction:column;gap:9px;padding:0;min-height:79px}
.quick-action strong{font-size:13px;font-weight:600;letter-spacing:-.3px}
.quick-icon{display:grid;place-items:center;width:51px;height:51px;border-radius:18px;flex-shrink:0}
.quick-icon svg{width:26px;height:26px;stroke-width:1.7}
.ingredient-icon{background:#e9f0d8;color:#335436}
.video-icon{background:#faeee5;color:#a04c34}
.note-icon{background:#eaf0f6;color:#506376}
.chip-row{margin:0 -22px 22px;padding:0 22px;gap:7px}
.chip{font-size:13px;min-height:40px;padding:8px 14px;background:white;border-color:#e1e7df}
.chip.active{background:var(--green);border-color:var(--green);font-weight:600}
.section-head{margin-bottom:13px;gap:8px}
.section-head h2{font-size:20px;letter-spacing:-.8px}
.section-caption{font-size:12px;color:var(--muted);white-space:nowrap}
.section{margin-top:29px}
.feature{aspect-ratio:1.44;border-radius:20px}
.feature:after{inset:18% 0 0;background:linear-gradient(transparent 16%,#0d201ae8)}
.feature-tag{display:flex;align-items:center;gap:5px;top:14px;left:14px;background:#fffffff2;border-radius:100px;padding:7px 10px;color:var(--green);font-size:12px}
.feature-tag svg{width:14px;height:14px}
.feature-open{padding:20px 20px 22px}
.feature-label{font-size:12px;letter-spacing:-.1px;font-weight:400;color:#ffffffeb}
.feature-open h3{font-size:21px;letter-spacing:-.8px;line-height:1.4;margin:5px 0 9px;padding-right:18px}
.feature .metadata{font-size:12px;color:#fff;gap:0}
.feature .metadata span+span:before{content:'·';padding:0 8px}
.feature-arrow{position:absolute;bottom:22px;right:18px;display:grid;place-items:center;width:30px;height:30px;background:#ffffff24;border-radius:50%}
.feature-arrow svg{width:17px;height:17px}
.bookmark,.recipe-card .bookmark{width:40px;height:40px;right:10px;top:10px;background:#fffffff0}
.bookmark.is-saved{color:var(--green)}
.bookmark.is-saved svg{fill:var(--green);stroke:var(--green)}
.recipe-card .bookmark{border-radius:13px}
.recipe-thumb{aspect-ratio:1.08;border-radius:16px}
.recipe-category{font-size:12px;margin-top:10px}
.recipe-card h3{font-size:15px;line-height:1.6;letter-spacing:-.5px;margin-top:5px}
.recipe-card .metadata{font-size:12px;gap:8px}
.count-pill{background:#eef3e8;color:var(--green);border-radius:7px;padding:3px 8px}
.text-button{font-size:13px;min-height:40px;font-weight:500}
.pantry-banner{padding:18px 16px;gap:13px;background:#f4f6ef;border:1px solid #ebeee5;border-radius:17px}
.pantry-banner .banner-icon{width:43px;height:46px;background:#e6edd8;border-radius:13px;flex-shrink:0}
.pantry-banner strong{font-size:15px}
.pantry-banner p{font-size:12px;margin-top:3px}
.footer-note{font-size:12px;color:var(--muted);display:flex;justify-content:center;align-items:center;gap:5px;letter-spacing:0;line-height:1.7}
.footer-note svg{width:13px;height:13px}
.primary,.secondary{border-radius:14px;min-height:52px}
.primary{background:var(--green);font-size:15px;letter-spacing:-.4px}
.secondary{font-size:14px}
.primary svg,.secondary svg{width:20px;height:20px}
#navigation{padding:7px 8px max(10px,env(safe-area-inset-bottom));border-color:#e6eae3;background:#fffffff7;box-shadow:0 -5px 22px #263c2604}
.nav-item{font-size:11px;min-height:64px;gap:2px;letter-spacing:-.2px;color:#69766e;font-weight:500}
.nav-symbol{width:47px;height:33px;display:grid;place-items:center;border-radius:14px;transition:background .15s}
.nav-item svg{width:22px;height:22px;stroke-width:1.75}
.nav-item.active{font-weight:700;color:var(--green)}
.nav-item.active .nav-symbol{background:#eaf1df}
.nav-item.active svg{stroke-width:2}
.add-nav .add-disc{width:39px;height:39px;border-radius:14px;margin:-3px 0 0;background:var(--green);box-shadow:0 3px 9px #20584220}
.add-nav .add-disc svg{width:22px;height:22px;stroke-width:1.8}
.nav-counter{top:0;left:calc(50% + 8px);font-size:10px;min-width:18px;height:18px;background:var(--orange)}
.detail-actions{bottom:calc(81px + max(0px,env(safe-area-inset-bottom) - 10px));padding:14px 22px 12px;background:linear-gradient(#ffffff00,#fff 15%)}
.detail-main{padding-bottom:calc(200px + env(safe-area-inset-bottom))}
.detail-content h1{font-size:25px;line-height:1.5}
.detail-description{font-size:15px}
.detail-topbar .is-saved{color:var(--green)}
.detail-topbar .is-saved svg{fill:var(--green)}
.detail-header{aspect-ratio:1.36}
.stats{background:#f7f8f4;border:0;padding:15px 4px}
.stat{font-size:12px}
.stat strong{font-size:15px}
.segment{min-height:52px}
input[type=checkbox]{appearance:none;-webkit-appearance:none;position:relative;width:23px;height:23px;border:1.5px solid #a3b0a6;background:white;border-radius:7px;margin:0;display:inline-grid;place-content:center;cursor:pointer}
input[type=checkbox]:checked{background:var(--green);border-color:var(--green)}
input[type=checkbox]:checked:after{content:'';width:9px;height:5px;border-left:2px solid white;border-bottom:2px solid white;transform:translateY(-1px) rotate(-45deg)}
.finder-header{justify-content:flex-start;gap:13px}
.finder-header>button:last-child:not(:first-child){margin-left:auto}
.finder-results .finder-header h1{font-size:23px}
.finder-steps{display:flex;gap:14px;align-items:center;padding:0 0 24px;color:#718075;font-size:12px}
.finder-steps span{display:flex;align-items:center;gap:7px;white-space:nowrap}
.finder-steps b{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#f0f3eb;font-size:11px;font-weight:500}
.finder-steps b svg{width:13px;height:13px}
.finder-steps .current{color:var(--green);font-weight:700}
.finder-steps .current b{background:var(--green);color:white}
.finder-steps .completed-step b{background:#e4edda;color:var(--green)}
.finder-steps i{height:1px;width:28px;background:#dfe6d9}
.finder-prompt h2{font-size:23px;letter-spacing:-.9px}
.finder-prompt p{font-size:13px;color:var(--muted);margin:6px 0 18px}
.finder-input{padding:0;border:0}
.finder-input .field{margin:0}
.finder-input textarea{min-height:93px;background:#f8faf6;border:1px solid #dfe7d9;border-radius:15px;padding:15px;resize:vertical;line-height:1.7}
.input-bottom{padding:1px 2px 6px}
.input-bottom>span{font-size:11px}
.input-bottom button{font-size:13px;min-width:59px;min-height:44px}
.common-ingredients{margin:8px 0 0;gap:8px}
.common-ingredients button{font-size:13px;min-height:40px;padding:8px 12px;border-color:#e0e6dc;border-radius:100px;gap:5px}
.common-ingredients button.selected{background:var(--green-soft);color:var(--green);border-color:#8da98e;font-weight:600}
.ingredient-selection{margin-top:22px;padding:13px 15px 15px;background:#f4f7ef;border-radius:15px}
.ingredient-selection .section-head{margin:0 0 8px}
.ingredient-selection h3{font-size:14px;font-weight:600}
.ingredient-selection h3 span{color:var(--green);margin-left:4px}
.ingredient-selection .text-button{font-size:11px;min-height:36px}
.selected-ingredients{gap:7px}
.selected-ingredients button{border:1px solid #e2e8dc;background:white;border-radius:9px;font-size:13px;min-height:38px;padding:7px 10px;gap:8px;font-weight:500}
.selected-ingredients svg{width:13px;height:13px;color:#73816b}
.photo-disclosure{margin-top:20px;border:1px solid var(--line);border-radius:14px}
.photo-disclosure summary,.video-details summary{list-style:none;display:flex;align-items:center;gap:9px;padding:15px;font-size:13px;font-weight:600;cursor:pointer;min-height:52px}
.photo-disclosure summary::-webkit-details-marker,.video-details summary::-webkit-details-marker{display:none}
.photo-disclosure summary svg{width:18px;height:18px;color:var(--green)}
.photo-disclosure summary>svg:last-child,.video-details summary>svg{margin-left:auto;width:15px;height:15px;transition:transform .2s}
.photo-disclosure[open] summary>svg:last-child,.video-details[open] summary>svg{transform:rotate(45deg)}
.photo-disclosure>div{padding:0 14px 3px}
.capture-actions{gap:9px}
.capture-actions .secondary{min-height:46px;font-size:13px;border-color:#dce5d7}
.ingredient-photo img{height:190px}
.photo-disclosure .inline-hint{font-size:12px}
.pantry-check{font-size:13px;min-height:60px;margin:16px 0 7px;gap:11px}
.pantry-check small{font-size:12px;margin-top:4px}
.finder-scope{font-size:12px;color:var(--muted);line-height:1.85;margin-top:9px}
.finder-entry{padding-bottom:calc(178px + env(safe-area-inset-bottom))}
.finder-cta{position:fixed;z-index:12;bottom:calc(81px + max(0px,env(safe-area-inset-bottom) - 10px));left:50%;transform:translateX(-50%);width:min(480px,100%);padding:14px 22px 12px;background:linear-gradient(#ffffff00,#fff 15%)}
.finder-cta b{display:grid;place-items:center;min-width:24px;height:24px;border-radius:8px;padding:0 6px;background:#ffffff24;font-size:12px;font-weight:500;margin-left:3px}
.result-selection{display:flex;align-items:center;gap:15px;padding:16px;background:#f2f6eb;border-radius:15px;margin:0 0 25px}
.result-selection>div{min-width:0;flex:1}
.result-selection small{font-size:12px;color:var(--muted)}
.result-selection p{font-size:14px;color:var(--green);font-weight:600;margin-top:5px;overflow-wrap:anywhere}
.result-selection button{flex-shrink:0;color:var(--green);font-size:12px}
.result-heading h2{font-size:20px}
.match-filters{gap:7px}
.match-filters button{font-size:12px;min-height:40px;padding:8px 11px}
.match-card{padding:14px;grid-template-columns:90px minmax(0,1fr);gap:12px;border-radius:17px}
.match-cover{height:108px;border-radius:12px}
.match-info h3{font-size:15px;line-height:1.5;letter-spacing:-.4px;margin:3px 0}
.match-status{font-size:11px}
.match-meta,.matched-with{font-size:12px}
.missing-list{font-size:12px;padding-top:10px}
.library-tabs{display:flex;gap:4px;background:#f3f5ef;padding:5px;border-radius:14px;margin-bottom:18px}
.library-tabs button{flex:1;min-height:44px;font-size:13px;white-space:nowrap;color:var(--muted);border-radius:10px;padding:8px 4px}
.library-tabs button.active{color:var(--green);font-weight:700;background:white;box-shadow:0 2px 6px #22342209}
.library-tabs span{font-size:11px;margin-left:5px;font-weight:500}
.video-library{margin:26px 0 0;border:0;padding:0}
.saved-video{background:#fff;border:1px solid var(--line);padding:14px;gap:12px;min-height:80px}
.saved-video .video-symbol{width:43px;height:46px;border-radius:13px}
.saved-video strong{font-size:14px}
.saved-video small{font-size:11px}
.grocery-overview{display:flex;align-items:center;gap:14px;background:#f0f5e8;border-radius:18px;padding:20px 19px;flex-wrap:wrap}
.overview-icon{width:48px;height:52px;border-radius:15px;background:#e0eacb;color:var(--green);display:grid;place-items:center}
.overview-icon svg{width:26px;height:26px}
.grocery-overview p{font-size:12px;color:var(--muted)}
.grocery-overview strong{display:block;font-size:28px;line-height:1.35;font-weight:800;color:var(--green);margin-top:3px}
.grocery-overview strong small{font-size:15px;margin-left:5px;font-weight:500}
.overview-complete{display:flex;align-items:center;gap:4px;font-size:12px;color:var(--green);margin-left:auto}
.overview-complete svg{width:15px;height:15px}
.grocery-overview .progress-track{width:100%;background:#dfe7d6;height:4px;margin-top:1px}
.grocery-overview .progress-fill{background:#527344}
.pantry-shortcut{display:flex;align-items:center;gap:8px;font-size:12px;min-height:54px;width:100%;padding:6px 2px;color:var(--muted)}
.pantry-shortcut svg{width:17px;height:17px}
.pantry-shortcut span{color:var(--green);margin-left:auto}
.pantry-shortcut svg:last-child{width:14px;height:14px}
.shopping-tabs{gap:22px;flex-wrap:nowrap;margin:9px 0 0}
.shopping-tabs button{font-size:14px;min-height:49px}
.shopping-tabs button.active{color:var(--green);border-color:var(--green)}
.shopping-tabs span{font-size:11px;background:#f0f3eb;margin-left:4px}
.grocery-group{margin-top:22px}
.grocery-group>h3{font-size:12px;margin:0;color:var(--muted)}
.grocery-group>h3 span{margin-left:4px;font-size:11px;color:#7a867a}
.grocery-row{padding:13px 0}
.grocery-line{gap:3px}
.grocery-line label{gap:12px;min-height:48px;min-width:0}
.grocery-name{font-size:15px;overflow-wrap:anywhere;font-weight:600}
.grocery-name small{font-size:12px;margin-top:4px}
.grocery-line .icon-button{width:36px;height:44px;color:#778171}
.grocery-line .icon-button svg{width:15px;height:15px}
.grocery-line .product-link{font-size:11px;background:#f6f7f2;color:var(--green);padding:0 9px;border-radius:9px;min-height:36px;gap:3px}
.product-link svg{width:12px;height:12px}
.done-row .grocery-name{color:#73806f;font-weight:400}
dialog{border-radius:25px 25px 0 0;box-shadow:0 -14px 65px #14251820}
dialog::backdrop{background:#15201563;backdrop-filter:blur(2px)}
.sheet-inner{padding:10px 22px max(26px,env(safe-area-inset-bottom))}
.sheet-handle{width:32px;height:4px;margin-bottom:16px;background:#d9ded4}
.sheet-header{gap:12px}
.sheet-header h2{font-size:22px;line-height:1.5;letter-spacing:-.8px}
.sheet-header .icon-button{width:40px;height:40px;background:#f5f6f1}
.sheet-subtitle{font-size:13px;margin:2px 0 20px;line-height:1.8}
.add-options{display:flex;flex-direction:column;gap:10px}
.add-options>button{display:flex;align-items:center;text-align:left;gap:13px;padding:16px 13px;border:1px solid var(--line);border-radius:17px;width:100%}
.add-options>button>span:nth-child(2){min-width:0;flex:1}
.add-options strong{display:block;font-size:15px;font-weight:700;letter-spacing:-.4px}
.add-options small{display:block;font-size:11px;color:var(--muted);margin-top:5px;line-height:1.6}
.add-options>button>svg{width:16px;height:16px;color:#788476}
.add-options .quick-icon{width:48px;height:50px;border-radius:15px}
.source-platforms{gap:7px;margin:0 0 23px}
.source-platforms span{font-size:11px;background:#f5f6f0;border-radius:100px;padding:7px 10px}
.field{margin:17px 0}
.field>span{font-size:13px;margin-bottom:8px}
.field input,.field textarea{border-color:#dfe5da;border-radius:12px;line-height:1.7;padding:12px 13px}
#video-source-form .field{margin-bottom:0}
.url-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:5px 0 17px}
.provider-detected{font-size:11px;color:var(--muted);line-height:1.7}
.url-tools .text-button{color:var(--green);font-size:12px;flex-shrink:0;gap:4px;min-height:44px}
.video-details{border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:14px 0 0}
.video-details summary{padding:14px 0;font-size:13px;gap:6px;min-height:54px}
.video-details summary span{font-weight:400;font-size:11px;color:var(--muted)}
.video-details .field:last-child{margin-bottom:18px!important}
.connection-note{padding:13px 14px;background:#f5f7f1;border-radius:12px;margin:17px 0 20px;gap:8px}
.connection-note p{font-size:11px;line-height:1.8}
.connection-note strong{font-size:12px;font-weight:500;margin-bottom:2px;color:#4f6252}
.connection-note>svg{width:16px;height:16px;margin-top:3px}
.sheet-tabs{margin-top:14px;background:#f3f5ef}
.sheet-tabs button{min-height:44px;font-size:13px}
.sheet-tabs button.active{color:var(--green)}
.inline-hint{font-size:12px}
.quiet-note{font-size:12px;line-height:1.85}
.empty{padding:44px 10px}
.empty h3{font-size:17px}
.empty p{font-size:13px;line-height:1.85}
.timer-floating{bottom:169px}
@media(min-width:600px){dialog{border-radius:24px}.app-shell{border-color:#e1e6dc}}
@media(max-width:360px){
 .page{padding-left:18px;padding-right:18px}.page-header{padding-left:18px;padding-right:18px}
 .chip-row{margin-left:-18px;margin-right:-18px;padding-left:18px;padding-right:18px;gap:6px}
 .chip{font-size:12px;padding:8px 12px}.greeting h1{font-size:25px}.greeting p{font-size:12px}
 .search input{font-size:16px!important}.quick-actions{gap:9px;padding-top:19px}.section-head h2{font-size:19px}
 .section-caption{font-size:11px}.feature{aspect-ratio:1.26}.feature-open h3{font-size:19px;padding-right:15px}
 .feature-open{padding:18px}.feature-arrow{bottom:18px;right:13px;width:26px;height:26px}
 .recipe-grid{gap:20px 12px}.recipe-card h3{font-size:14px}.recipe-card .metadata{font-size:11px}
 .recipe-card .metadata svg{width:12px;height:12px}.bookmark,.recipe-card .bookmark{width:36px;height:36px;right:7px;top:7px}
 .pantry-banner{padding:16px 12px;gap:10px}.pantry-banner strong{font-size:14px}.pantry-banner p{font-size:11px}
 .finder-results .finder-header h1{font-size:21px}.finder-prompt h2{font-size:22px}.finder-prompt p{font-size:12px}
 .common-ingredients{gap:7px}.common-ingredients button{padding:8px 10px;font-size:12px}
 .input-bottom>span{max-width:175px;font-size:10px}.finder-cta,.detail-actions{padding-left:18px;padding-right:18px}
 .result-heading h2{font-size:18px}.match-card{grid-template-columns:78px minmax(0,1fr);padding:12px;gap:11px}
 .match-info h3{font-size:14px}.match-status{font-size:10px}.match-meta,.matched-with{font-size:11px}
 .library-tabs button{font-size:12px}.library-tabs span{font-size:10px;margin-left:3px}
 .grocery-overview{padding:18px 15px;gap:11px}.overview-icon{width:43px}.overview-complete{font-size:11px}
 .sheet-inner{padding-left:18px;padding-right:18px}.sheet-header h2{font-size:20px}
 .add-options>button{padding:14px 11px;gap:10px}.add-options .quick-icon{width:42px;height:46px}
 .add-options strong{font-size:14px}.add-options small{font-size:10px}.source-platforms span{font-size:10px}
}
@media(max-width:360px){.segmented{margin-left:-18px;margin-right:-18px;padding-left:18px;padding-right:18px}}
