﻿:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#20382e;background:#f4f6ef}*{box-sizing:border-box}body{margin:0}main{max-width:740px;margin:auto;padding:28px 20px 70px}header{padding:30px 0 20px}h1{font-size:clamp(2.4rem,8vw,4.4rem);letter-spacing:-.055em;margin:8px 0}h2{letter-spacing:-.035em}p{line-height:1.6;color:#607167}.eyebrow{font-size:.72rem;font-weight:800;letter-spacing:.13em;color:#4c866c}nav{display:flex;gap:7px;margin:20px 0 24px;overflow:auto}button{font:inherit;border:0;cursor:pointer;border-radius:12px;padding:13px 18px;font-weight:700}nav button{background:#e7ebe3;white-space:nowrap}nav button.active,.primary{background:#173c31;color:white}.secondary{background:#e1e8df;color:#173c31}.hero{border-radius:22px;background:#e1ecdf;padding:34px 25px;margin-bottom:16px;min-height:205px}.hero h2{font-size:clamp(1.8rem,5vw,2.8rem);margin:14px 0 8px}.primary,.secondary{margin:5px 6px 5px 0}textarea{display:block;width:100%;min-height:100px;border:1px solid #c6d2c8;border-radius:14px;padding:14px;font:inherit;margin:16px 0;background:white}.meal{background:white;border:1px solid #e1e7df;border-radius:14px;padding:15px;margin:10px 0;display:flex;justify-content:space-between;align-items:center;gap:15px}.meal strong{display:block}.meal small{color:#698070}.meal button{font-size:.8rem;background:#e9f1e9;color:#254a39;padding:9px 12px}dialog{border:0;border-radius:20px;max-width:min(92vw,520px);padding:25px;box-shadow:0 20px 70px #0004}dialog::backdrop{background:#12251db3}footer{font-size:.78rem;color:#829188;margin-top:36px}
[hidden]{display:none!important}button:disabled{opacity:.55;cursor:wait}.entry{display:flex;gap:8px;margin:12px 0}.entry input{flex:1;min-width:0}.entry button{margin:0}input[type=text],input[type=url],input[type=number],.entry input{width:100%;border:1px solid #c6d2c8;border-radius:12px;padding:13px;font:inherit;background:white}.chips{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.chip{background:#dcebe0;color:#234637;padding:9px 12px;font-size:.85rem}.sound{display:inline-flex;align-items:center;gap:6px;margin:8px 0;color:#607167;font-size:.9rem}form label{display:block;font-weight:650;margin:16px 0}form label input,form label textarea{display:block;margin:8px 0;width:100%}dialog{width:min(92vw,600px);max-height:88vh;overflow:auto}dialog li{margin:8px 0;line-height:1.5}.food-photo{display:block;width:100%;max-height:280px;object-fit:cover;border-radius:12px}.hero h2{transition:opacity .1s}
/* V0.3 keeps the original soft-green visual style. */
html{scroll-behavior:smooth}main{max-width:820px}header{padding-top:18px}header>p{margin-top:0}h1{line-height:1.06}h2{line-height:1.18}h3{margin-top:26px}button{min-height:44px}button:disabled{cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #6ba584;outline-offset:3px}a{color:#28553e}select,input[type=search]{font:inherit;border:1px solid #c6d2c8;border-radius:12px;padding:12px;background:white;color:#20382e;max-width:100%}input,textarea,select{font-size:16px}input[type=checkbox]{width:18px;height:18px;accent-color:#173c31;flex-shrink:0}textarea{margin:8px 0;resize:vertical;min-height:70px;line-height:1.6}strong,h2,h3{overflow-wrap:anywhere}.small{font-size:.82rem;line-height:1.55;color:#66796c}.brandline{display:flex;justify-content:space-between;align-items:center;gap:12px}.version{font-size:.72rem;border:1px solid #cedccf;border-radius:20px;padding:4px 9px;color:#60776a}.mode-switch{display:inline-flex;gap:4px;padding:4px;background:#e5ebdf;border-radius:15px;margin-top:10px;max-width:100%}.mode-switch button{background:transparent;color:#546b5a;font-size:.9rem;padding:11px 16px}.mode-switch button.active{background:#173c31;color:#fff}.mode-switch span{margin-left:5px;opacity:.8;font-size:.75rem}.policy{margin:12px 0 0}.check{display:inline-flex;align-items:center;gap:8px;font-size:.88rem;color:#526956;font-weight:500}.picker-options{display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-size:.87rem;margin-bottom:15px}.picker-options select{padding:9px 12px}.picker-options .check{margin-left:auto}.hero{position:relative;overflow:hidden;min-height:255px;padding:32px;background:linear-gradient(135deg,#e1ecdf,#e9eddb)}.hero h2{max-width:600px;margin:12px 0;min-height:2.3em}.hero p{margin-bottom:6px}.pick-symbol{position:absolute;right:24px;top:22px;font-size:2.5rem;opacity:.4}.hero.spinning{box-shadow:inset 0 0 0 2px #81a381}.tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.tag{font-size:.7rem;letter-spacing:.03em;background:#f1f5ec;color:#58705b;border:1px solid #dce5d8;border-radius:20px;padding:4px 9px}.actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.actions button{margin:0}.actions .sound{margin-left:5px}.text-button{background:transparent;color:#40604b;padding:8px 10px;font-size:.85rem}.danger{color:#994f42}.notice{background:#fff0d4;border:1px solid #e9d5a7;padding:12px 16px;border-radius:12px;font-size:.85rem}.quick-add{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 18px}.quick-add button{background:#e8eddf;color:#526b56;padding:8px 11px;font-size:.78rem;min-height:36px}.section-title{display:flex;justify-content:space-between;align-items:center}.count{color:#637967;font-size:.84rem}.meal{align-items:flex-start;padding:18px}.meal .card-body{flex:1;min-width:0}.meal .card-name{font-size:1rem;line-height:1.35}.meal .card-desc{font-size:.82rem;margin:7px 0;color:#6a786d;line-height:1.5}.meal small{display:block;margin:7px 0;line-height:1.45}.card-buttons{display:flex;gap:6px;align-items:center;flex-shrink:0}.meal .star-button{padding:9px 10px;min-width:38px;font-size:1.1rem;background:transparent;border:1px solid #e1e7df}.card-photo{width:70px;height:70px;border-radius:10px;object-fit:cover;flex-shrink:0}.empty{padding:32px 20px;margin:18px 0;background:#e9eee2;border:1px dashed #bacbb8;border-radius:16px;text-align:center}.empty p{margin:8px 0}.backup-bar{margin-top:38px;padding:22px;border:1px solid #d7e0d3;border-radius:18px;background:#ecf0e6}.backup-bar p{margin:6px 0 12px}.backup-bar button{font-size:.83rem}.help{margin-top:20px;font-size:.84rem;line-height:1.6}.help summary{cursor:pointer;color:#59715e;padding:10px 0;font-weight:650}.help p{margin:10px 0}footer{margin-top:20px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-grid label{margin-top:8px}.form-grid input,.form-grid select{width:100%}.editor-group{background:#edf1e8;border:1px solid #dbe4d7;padding:14px;border-radius:15px;margin:14px 0}.group-title{display:flex;gap:10px;align-items:center;margin-bottom:12px}.group-title input{flex:1;min-width:0;font-weight:650}.group-title button{flex-shrink:0}.ingredient-editor{padding:12px;background:white;border-radius:12px;margin-bottom:10px}.ingredient-editor .row-top{display:grid;grid-template-columns:minmax(0,1fr) 72px 85px;gap:8px}.ingredient-editor .row-bottom{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:8px}.ingredient-editor .row-bottom input[type=text]{flex:1;min-width:100px;font-size:.84rem;padding:9px}.ingredient-editor input,.ingredient-editor select{padding:10px;min-width:0}.ingredient-editor .check{font-size:.74rem}.ingredient-editor .remove-row{padding:4px 8px;font-size:.75rem}.add-item{font-size:.8rem;padding:9px 12px}.editor-group label{margin:0}.dialog-toolbar{position:sticky;top:-25px;background:#fff;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:5px 0 10px;border-bottom:1px solid #e4e9df}.dialog-toolbar button{font-size:.82rem;padding:8px 14px;margin-right:0}dialog{width:min(94vw,700px);max-width:700px;max-height:90vh;padding:25px;color:#20382e}body.modal-open{overflow:hidden}.detail-title{font-size:clamp(1.65rem,5vw,2.3rem);margin:18px 0 10px}.detail-desc{margin-bottom:20px}.detail-actions{margin-top:14px;display:flex;gap:6px;flex-wrap:wrap}.detail-actions button{font-size:.82rem}.servings-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:22px 0 12px}.servings-buttons{display:flex;gap:5px}.servings-buttons button{padding:8px 14px;background:#edf1e7;color:#36583e;min-width:40px}.servings-buttons button.active{background:#173c31;color:white}.nutrition{background:#eef3e8;border:1px solid #dce5d6;border-radius:14px;padding:16px}.nutrition-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.nutrition strong{font-size:1.2rem;display:block}.nutrition span{font-size:.76rem;color:#637562}.nutrition p{margin:9px 0 0;font-size:.8rem;line-height:1.5}.quantity-note{padding:12px 0;font-size:.79rem;line-height:1.6;color:#677a68}.ingredients-table{width:100%;border-collapse:collapse;table-layout:fixed}.ingredients-table td{vertical-align:top;border-bottom:1px solid #e8ece2;padding:11px 0;font-size:.9rem;line-height:1.5;overflow-wrap:anywhere}.ingredients-table td:first-child{width:72%;padding-right:10px}.ingredients-table td:last-child{text-align:right;font-weight:700;color:#365f43;width:28%}.ingredients-table small{display:block;font-size:.76rem;color:#7b897d;line-height:1.4;margin-top:3px}.steps{list-style:none;padding:0;counter-reset:recipe-step}.steps li{counter-increment:recipe-step;padding:16px 0 16px 42px;position:relative;border-bottom:1px solid #e6ecdf}.steps li:before{content:counter(recipe-step);position:absolute;top:15px;left:0;width:28px;height:28px;background:#e3ecd9;border-radius:50%;display:grid;place-items:center;color:#456b42;font-size:.85rem;font-weight:750}.steps strong{display:block;margin-bottom:6px}.steps p{font-size:.92rem;margin:0;line-height:1.7}.detail-list{padding-left:20px;font-size:.88rem;color:#5e735f}.safety{font-size:.79rem;padding:12px 15px;background:#f7f4e8;border-radius:12px;line-height:1.6;color:#766b4c}.my-notes{margin-top:22px;border-top:1px solid #e5eadd;padding-top:6px}.my-notes textarea{font-size:.92rem}.notes-status{font-size:.76rem}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 32px);background:#173c31;color:white;padding:13px 20px;border-radius:14px;box-shadow:0 8px 35px #0002;z-index:10;font-size:.88rem;line-height:1.4}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.photo-caption{font-size:.72rem;margin-top:5px}.match-good{color:#267248!important}.match-need{color:#8a6734!important}
@media(max-width:540px){main{padding:16px 16px 50px}header{padding-top:12px}h1{font-size:3rem}nav{display:grid;grid-template-columns:1fr 1fr;overflow:visible;gap:7px;margin-top:16px}nav button{font-size:.83rem;padding:12px 8px}.mode-switch{display:flex}.mode-switch button{flex:1;padding:10px;font-size:.83rem}.hero{padding:26px 22px;min-height:260px}.hero h2{font-size:2rem;padding-top:6px}.pick-symbol{font-size:2rem;right:18px;top:15px}.picker-options{gap:8px}.picker-options .check{margin-left:0;width:100%;margin-top:5px}.meal{padding:15px;gap:10px;flex-wrap:wrap}.card-buttons{margin-left:auto}.card-photo{width:52px;height:52px}.card-body{min-width:calc(100% - 70px)!important}.meal .card-name{font-size:.94rem}.form-grid{gap:10px}.form-grid label{font-size:.85rem}.ingredient-editor .row-top{grid-template-columns:1fr 1fr}.ingredient-editor .item-name{grid-column:1/-1}.ingredient-editor .row-bottom input[type=text]{flex-basis:100%}.group-title{flex-wrap:wrap}.group-title input{width:100%;flex-basis:100%}.group-title button{margin-left:auto}dialog{padding:18px;width:94vw}.dialog-toolbar{top:-18px}.nutrition-grid{gap:8px}.nutrition strong{font-size:1.06rem}.ingredients-table td{font-size:.85rem}.ingredients-table td:first-child{width:67%}.ingredients-table td:last-child{width:33%}.steps p{font-size:.87rem}.steps li{padding-left:36px}.backup-bar{padding:18px}.actions .sound{width:100%;margin-left:0}.detail-actions .secondary{padding:10px 12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}
input:not([type=checkbox]):not([type=hidden]):not([type=file]){border:1px solid #c6d2c8;border-radius:12px;padding:12px;font:inherit;font-size:16px;background:white;color:#20382e;max-width:100%}
.photo-panel{margin:20px 0;padding:18px;border:1px solid #d7e0d3;border-radius:16px;background:#edf1e8}.photo-panel h3{margin-top:0}.photo-panel input[type=file]{max-width:100%}.food-photo{aspect-ratio:16/9;object-fit:cover;max-height:none}.card-photo{aspect-ratio:16/9;height:auto;width:96px}.photo-panel .actions{margin-top:12px}#pick-photo:not(:empty){margin-top:18px}@media(max-width:540px){.card-photo{width:100%;max-height:none}.photo-panel{padding:12px}}
