*{box-sizing:border-box}html{color-scheme:light;scroll-behavior:smooth}body{margin:0;background:#f7f9f6;color:#24382e;font-family:"Yu Gothic UI","Meiryo",system-ui,sans-serif;font-size:16px;line-height:1.7}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}a{color:inherit}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #d5a455;outline-offset:3px}button{border:0}input,select{min-width:0}svg{display:block}button svg{width:20px;height:20px}input[type=number]{appearance:textfield;-moz-appearance:textfield}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{appearance:none;margin:0}[hidden]{display:none!important}.skip{position:absolute;top:-60px;left:15px;background:#174e3b;color:white;padding:10px;z-index:100}.skip:focus{top:5px}.site-header{background:white;border-bottom:1px solid #e2e9e0}.header-inner{max-width:1240px;margin:auto;padding:23px 32px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-weight:800;font-size:21px;letter-spacing:.04em}.brand small{display:block;font-size:11px;letter-spacing:.03em;color:#7c8a7f;font-weight:500;line-height:1.4}.location{display:flex;align-items:center;gap:7px;font-size:14px;color:#51675b}.location svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6}.shell{max-width:1240px;margin:auto;padding:40px 32px 0}.intro{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px}.eyebrow{margin:0 0 8px;font-size:14px;color:#5e7c66;font-weight:600;letter-spacing:.09em}h1{font-size:42px;line-height:1.35;letter-spacing:.02em;margin:0 0 12px;font-weight:800}.lead{margin:0;color:#6d7c70;font-size:16px}.intro-mark{width:125px;margin-right:35px}.controls{display:flex;align-items:center;gap:28px;background:#fff;border:1px solid #dfe7dd;border-radius:18px;padding:23px 26px;box-shadow:0 3px 12px #223b2d03}.controls label,.control-label{display:block;font-size:14px;font-weight:700;margin-bottom:9px;color:#596d5e}.people-control{position:relative;min-width:198px;padding-right:26px;border-right:1px solid #e1e8df}.stepper{display:flex;gap:5px;align-items:center;height:45px}.stepper button{border-radius:50%;width:36px;height:36px;background:#eef3ec;font-size:22px;line-height:1;color:#496b53}.stepper input{width:54px;text-align:center;border:0;font-size:34px;font-weight:800;line-height:1.2;color:#174e3b;background:transparent}.stepper span{font-size:16px;margin-right:12px}.field-error{font-size:12px;color:#b33c2c;position:absolute;top:96%;left:0;white-space:nowrap;background:white}.date-control{flex:1}.date-control input{height:43px;border:1px solid #e0e6dc;border-radius:9px;background:white;padding:6px 8px;font-weight:600;font-size:16px;max-width:170px}.text-button{background:none;text-decoration:underline;text-underline-offset:3px;font-size:12px;margin-left:5px;color:#607966;padding:5px 0}.segmented{background:#f0f4ee;border-radius:10px;padding:4px;display:flex;height:43px;min-width:144px}.segmented button{background:transparent;border-radius:7px;padding:3px 14px;font-size:14px;color:#677c6b;white-space:nowrap}.segmented button[aria-pressed=true]{background:#fff;color:#174e3b;box-shadow:0 1px 5px #12382010;font-weight:700}.mode-control{min-width:184px}select{appearance:none;border:1px solid #e0e6dc;border-radius:9px;padding:9px 35px 9px 12px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23596d5e' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 13px center;width:100%;font-size:14px}.tabs{display:flex;gap:27px;border-bottom:1px solid #dce5d9;margin:28px 0}.tabs button{padding:14px 3px 16px;background:none;border-bottom:3px solid transparent;font-size:15px;white-space:nowrap;color:#7b8b7e;font-weight:700}.tabs button.active{border-color:#1e6047;color:#174e3b}.count{border-radius:20px;background:#e8eee4;color:#51705a;font-size:12px;padding:1px 6px;margin-left:8px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:28px;align-items:start}.primary{min-width:0}.panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 17px}.panel-header h2{font-size:20px;line-height:1.5;margin:0}.muted{font-size:13px;color:#819084}.date-tag{display:inline-block;background:#e8efe4;color:#52725b;border-radius:5px;font-size:12px;padding:3px 8px;vertical-align:middle;margin-left:8px}.meal-card{background:#fff;border:1px solid #e1e8dc;border-radius:17px;overflow:hidden;margin-bottom:18px}.meal-card-inner{display:grid;grid-template-columns:230px 1fr;min-height:250px}.meal-art{position:relative;display:flex;align-items:center;justify-content:center;padding:14px}.meal-art svg{width:100%;max-width:235px}.art-label{position:absolute;left:16px;top:14px;font-size:12px;background:#ffffffc9;padding:3px 9px;border-radius:30px;font-weight:600}.meal-content{padding:26px 25px}.meal-date{font-size:13px;font-weight:600;color:#6c7f6e;margin:0 0 10px}.meal-content h3{font-size:23px;line-height:1.5;margin:0 0 9px;font-weight:800;letter-spacing:-.02em}.side-dishes{font-size:14px;color:#6e7b70;margin:0 0 16px;line-height:1.8}.recipe-tags{display:flex;gap:7px;flex-wrap:wrap;margin-top:14px}.recipe-tags span{font-size:12px;padding:2px 8px;border-radius:5px;background:#f1f5ef;color:#6a7a6d}.meal-actions{border-top:1px solid #edf0e9;padding:13px 18px;display:flex;align-items:center;justify-content:space-between;gap:10px}.meal-actions .price{font-size:13px;color:#6a7a6c}.meal-actions .price strong{font-size:20px;color:#2e4c38;margin:0 3px}.meal-actions button{padding:8px 12px;border-radius:7px;font-size:13px;font-weight:600;background:#eff4ec;color:#32563e}.meal-actions button.swap{color:#819080;background:none;padding:8px 4px}.meal-actions .actions{display:flex;gap:10px}.three-days .meal-card-inner{grid-template-columns:160px 1fr;min-height:190px}.three-days .meal-content{padding:20px}.three-days .meal-content h3{font-size:21px}.three-days .meal-art svg{width:155px}.three-days .recipe-tags{margin-top:9px}.three-days .side-dishes{margin-bottom:8px}.menu-footnote{font-size:13px;color:#7a8b7b;margin:12px 4px}.budget-card{background:#174e3b;color:#fff;border-radius:18px;padding:25px 23px 23px}.budget-eyebrow{margin:0;color:#c0d2c4;font-size:14px}.budget-number{font-size:45px;line-height:1.35;font-weight:700;letter-spacing:-.03em;margin:8px 0 3px}.budget-number small{font-size:20px;margin-right:3px;font-weight:400}.budget-people{font-size:13px;color:#c3d6c6;margin:0}.budget-divider{height:1px;background:#47715d;margin:19px 0 15px}.budget-line{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:13px;padding:4px 0}.budget-line span{color:#bdd2c1}.budget-note{font-size:11px;line-height:1.9;color:#a9c1af;margin:16px 0 18px}.primary-button{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;padding:12px 10px;background:#fff;color:#184d39;border-radius:9px;font-size:14px;font-weight:700}.primary-button:hover{background:#e9f2e6}.small-note{display:flex;gap:10px;padding:23px 3px}.note-icon{font-size:25px;color:#9aa98f}.small-note h2{font-size:14px;margin:0 0 6px}.small-note p{font-size:12px;color:#7c8a7b;line-height:1.9;margin:0}.sync-status{font-size:12px;color:#7b8b7d;border-top:1px solid #dde5d9;padding:14px 3px 0}.refresh-button{font-size:12px;color:#52765e;background:transparent;padding:6px 3px;text-decoration:underline;text-underline-offset:3px}.shopping-toolbar{display:flex;gap:8px}.outline-button{border:1px solid #d8e2d3;background:#fff;border-radius:8px;padding:8px 11px;font-size:13px;font-weight:600}.shopping-summary{padding:15px 19px;border:1px solid #dfe7db;background:#eef4ea;border-radius:12px;font-size:14px;color:#50725a;margin:0 0 20px}.shopping-summary strong{color:#244e34}.store-group{border:1px solid #dfe7da;background:white;border-radius:14px;margin-bottom:18px;overflow:hidden}.store-group-head{background:#fafcf8;border-bottom:1px solid #e4ebde;padding:15px 18px;display:flex;align-items:center;justify-content:space-between;gap:14px}.store-group-head h3{margin:0;font-size:15px}.store-group-head span{font-size:14px;font-weight:700}.shop-row{display:grid;grid-template-columns:26px minmax(0,1fr) 80px 72px;align-items:center;gap:10px;padding:15px 17px;border-bottom:1px solid #edf0e9}.shop-row:last-child{border-bottom:0}.shop-row.checked .item-name{text-decoration:line-through;color:#8f9a8f}.shop-row.checked{background:#f8faf6}.shop-check{width:19px;height:19px;accent-color:#275b3e;cursor:pointer}.item-name{font-size:15px;font-weight:600}.item-quantity{font-size:12px;color:#839080}.item-price{font-size:15px;text-align:right;font-weight:600}.price-status{font-size:10px;display:block;font-weight:400;color:#879385}.price-status.verified{color:#337d4d}.stock-toggle{font-size:11px;padding:6px;background:#f1f5ee;color:#7b8d7a;border-radius:6px;white-space:nowrap}.stock-toggle.active{background:#dcebd5;color:#42673c}.stocked{opacity:.6}.pantry-card{border:1px dashed #ccd8c5;background:#fafcf8;padding:17px 20px;border-radius:12px;margin-top:20px}.pantry-card h3{font-size:14px;margin:0 0 9px}.pantry-card p{font-size:13px;color:#6d7c6a;margin:4px 0}.store-card{border:1px solid #dde6d7;border-radius:14px;background:#fff;padding:20px;margin-bottom:14px}.store-card-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.store-card h3{font-size:17px;margin:0}.store-card label{display:flex;align-items:center;gap:7px;font-size:12px;white-space:nowrap;color:#63806a}.store-card input{accent-color:#275b3e;width:17px;height:17px}.store-card .store-detail{font-size:13px;color:#7b8c7b;margin:10px 0}.store-links{display:flex;gap:18px;flex-wrap:wrap;font-size:13px;color:#376a46}.store-links a{text-underline-offset:4px}.offer-list{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:17px}.offer-item{background:#f3f7ef;padding:11px 13px;border-radius:9px;font-size:13px}.offer-item strong{display:block;font-size:18px;color:#315c3b}.offer-item small{font-size:11px;color:#718269}.empty-note{font-size:13px;color:#80917e;margin:17px 0 0;padding:12px;background:#f7f9f4;border-radius:8px}.about-note{margin:40px 0 0;padding:25px 0 30px;border-top:1px solid #dfe7da;max-width:920px}.about-note h2{font-size:14px;margin:0 0 8px}.about-note p{color:#899486;font-size:12px;margin:5px 0;line-height:1.9}footer{max-width:1240px;padding:22px 32px 35px;margin:auto;display:flex;gap:20px;align-items:center;font-size:12px;color:#8a9988}.footer-brand{font-size:15px;color:#5e755f;font-weight:700}dialog{border:0;border-radius:20px;max-width:760px;width:calc(100% - 32px);max-height:88vh;padding:0;color:#24382e;box-shadow:0 22px 100px #13291d35}dialog::backdrop{background:#13281b80;backdrop-filter:blur(3px)}.dialog-top{padding:24px 28px 20px;border-bottom:1px solid #e3eadf;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;background:#f6f9f2}.dialog-top h2{font-size:25px;margin:4px 0}.dialog-top p{font-size:13px;color:#73846e;margin:0}.dialog-close{background:#e8eee2;flex-shrink:0;width:35px;height:35px;border-radius:50%;font-size:24px;line-height:1}.dialog-main{padding:24px 28px 30px}.dialog-main h3{font-size:17px;margin:0 0 14px}.ingredients{display:grid;grid-template-columns:1fr 1fr;gap:0 28px;margin-bottom:26px}.ingredient{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid #ecf0e7;font-size:14px}.ingredient span:last-child{font-weight:600;white-space:nowrap}.steps{padding-left:24px}.steps li{padding:0 0 13px 6px;font-size:15px;line-height:1.9}.steps li::marker{color:#64805f;font-weight:700}.tip{font-size:14px;padding:15px 18px;background:#eff5e8;border-radius:10px;color:#527146}.rice-note{font-size:13px;color:#6d816b}.dialog-note{font-size:12px;color:#8b9987}.empty-state{padding:30px;border:1px solid #e0e8d9;border-radius:14px;background:white}#toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);opacity:0;background:#244d38;color:white;box-shadow:0 5px 20px #244d3820;border-radius:10px;padding:12px 22px;font-size:14px;z-index:99;pointer-events:none;transition:.2s;max-width:90%;text-align:center}#toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:1050px){.sidebar{position:sticky;top:24px}}
@media(max-width:1100px){.controls{gap:18px;padding:21px 22px}.people-control{min-width:175px;padding-right:15px}.mode-control{min-width:170px}.text-button{display:block;margin:3px 0 -13px}.workspace{grid-template-columns:minmax(0,1fr) 250px;gap:22px}.meal-card-inner{grid-template-columns:190px 1fr}.meal-content{padding:23px 20px}.meal-content h3{font-size:21px}.budget-number{font-size:40px}.three-days .meal-card-inner{grid-template-columns:140px 1fr}.three-days .meal-art svg{width:135px}}
@media(max-width:900px){.controls{display:grid;grid-template-columns:1fr 1fr;gap:23px}.people-control{border:0;padding:0}.date-control input{max-width:100%;width:100%}.text-button{display:inline-block;margin:4px 0 -15px}.mode-control{min-width:0}.workspace{grid-template-columns:minmax(0,1fr) 230px;gap:18px}.meal-card-inner,.three-days .meal-card-inner{display:block}.meal-art{height:185px}.meal-art svg,.three-days .meal-art svg{width:215px}.meal-content{padding:20px}.meal-actions{flex-wrap:wrap;padding:12px 16px}.budget-card{padding:22px 19px}.budget-number{font-size:37px}.shopping-toolbar{flex-wrap:wrap}.panel-header{flex-wrap:wrap}.shop-row{grid-template-columns:22px 1fr 64px;gap:7px;padding:13px 12px}.stock-toggle{grid-column:2;width:max-content;margin-top:-6px}.offer-list{grid-template-columns:1fr}.store-card-heading{align-items:flex-start;flex-direction:column}.store-card{padding:16px}.shell{padding-top:32px}}
@media(max-width:650px){.header-inner{padding:18px 20px}.brand{font-size:18px;gap:9px}.brand small{font-size:10px}.brand img{width:34px;height:34px}.location{font-size:12px;gap:4px}.shell{padding:27px 18px 0}.intro{margin-bottom:24px}.intro-mark{width:80px;margin-right:0;align-self:center}.eyebrow{font-size:11px;letter-spacing:.02em}h1{font-size:32px;margin-bottom:8px}.lead{font-size:13px}.controls{padding:20px 17px;border-radius:14px;gap:23px 18px}.controls label,.control-label{font-size:12px;margin-bottom:7px}.stepper{gap:3px}.stepper input{font-size:31px;width:44px}.stepper button{width:30px;height:30px;font-size:20px}.stepper span{font-size:14px;margin-right:5px}.date-control input{font-size:14px;padding:6px}.text-button{font-size:11px}.segmented{min-width:0}.segmented button{flex:1;padding:4px 8px;font-size:13px}select{font-size:12px;padding-left:10px;padding-right:25px}.tabs{margin:21px 0;gap:16px;justify-content:space-between}.tabs button{font-size:13px;padding:12px 0}.count{font-size:10px;margin-left:4px;padding:1px 5px}.workspace{display:flex;flex-direction:column;gap:20px}.primary{width:100%;order:2}.sidebar{width:100%;order:1;display:contents}.budget-card{order:0;width:100%;position:relative;padding:19px 20px;display:grid;grid-template-columns:1fr auto;gap:0 12px;border-radius:14px}.budget-eyebrow{font-size:12px;grid-column:1}.budget-number{font-size:34px;grid-column:1;margin:2px 0}.budget-people{font-size:12px;grid-column:1}.budget-divider,#budget-breakdown{display:none}.budget-note{grid-column:1;margin:9px 0 0;font-size:10px;line-height:1.7}.primary-button{grid-column:2;grid-row:1/5;align-self:center;width:105px;white-space:normal;font-size:12px;padding:12px 10px;gap:4px;line-height:1.7}.small-note{display:none}.sync-status{order:3;width:100%;padding-top:12px;font-size:11px;margin-top:-8px}.refresh-button{order:4;margin-top:-24px;font-size:11px}.meal-card-inner{display:grid;grid-template-columns:135px 1fr;min-height:185px}.meal-art{height:auto;min-height:185px;padding:6px}.meal-art svg{width:140px}.art-label{font-size:10px;top:11px;left:10px;padding:2px 7px}.meal-content{padding:19px 15px}.meal-content h3{font-size:19px}.meal-date{font-size:11px;margin-bottom:7px}.side-dishes{font-size:12px;margin-bottom:10px}.recipe-tags{gap:5px;margin-top:10px}.recipe-tags span{font-size:10px;padding:2px 6px}.meal-actions .price{font-size:11px}.meal-actions .price strong{font-size:17px}.meal-actions button{font-size:12px;padding:7px 9px}.meal-actions .actions{gap:6px}.meal-actions{gap:7px}.three-days .meal-card-inner{display:grid;grid-template-columns:105px 1fr;min-height:170px}.three-days .meal-art{min-height:170px}.three-days .meal-art svg{width:110px}.three-days .meal-content{padding:17px 13px}.three-days .meal-content h3{font-size:18px}.panel-header h2{font-size:18px}.muted{font-size:11px}.shop-row{grid-template-columns:23px 1fr 70px 65px;padding:13px 12px;gap:7px}.stock-toggle{grid-column:auto;margin:0;font-size:10px;padding:5px}.item-name{font-size:14px}.item-quantity{font-size:11px}.item-price{font-size:14px}.store-group-head h3{font-size:14px}.store-card-heading{flex-direction:row;align-items:center}.store-card h3{font-size:15px}.store-card label{font-size:11px}.offer-list{grid-template-columns:1fr 1fr}.about-note{margin-top:28px;padding:22px 0}.about-note p{font-size:11px}footer{padding:12px 18px 28px;font-size:10px;gap:12px}.footer-brand{font-size:13px}.dialog-top{padding:20px}.dialog-top h2{font-size:22px}.dialog-main{padding:20px}.ingredients{grid-template-columns:1fr}.steps li{font-size:14px}.field-error{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media print{body{background:white;font-size:12px}.site-header,.intro,.controls,.tabs,.sidebar,.about-note,footer,.shopping-toolbar,.stock-toggle,.menu-footnote,.refresh-button,.sync-status,.budget-card,.small-note,#menu-panel,#stores-panel{display:none!important}.shell{padding:0}.workspace{display:block}.primary{width:100%}#shopping-panel{display:block!important}.shop-row{padding:7px 12px;grid-template-columns:24px 1fr 80px}.store-group{break-inside:avoid}.item-price,.item-name{font-size:12px}.pantry-card{break-inside:avoid}}
/* Keep quantities and controls readable on small screens. */
.controls label,.control-label,.meal-date,.item-quantity,.budget-line,.store-detail{font-size:14px}
.price-status,.stock-toggle{font-size:12px}
@media(max-width:650px){.controls label,.control-label,.date-control input,select,.segmented button,.tabs button{font-size:14px}.meal-date,.side-dishes,.item-quantity{font-size:14px}.recipe-tags span,.price-status{font-size:12px}.three-days .meal-card-inner{grid-template-columns:90px 1fr}.three-days .meal-art svg{width:96px}.three-days .meal-content{padding:17px 12px}.three-days .meal-content h3{font-size:19px}.meal-actions .price{font-size:12px}.stock-toggle{font-size:12px;white-space:normal}.shop-row{grid-template-columns:23px minmax(0,1fr) 64px 64px}.date-control input{padding-left:5px;padding-right:5px}}
