:root{--bg:#fbf7f2;--surface:#fff;--text:#2b2420;--muted:#7a6f68;--border:#e8dfd6;--accent:#c2562f;--accent-soft:#f7e4da;--danger:#b3261e;--radius:20px;--tap:60px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:var(--text);-webkit-tap-highlight-color:transparent;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:18px;line-height:1.4}*{box-sizing:border-box}body{background:var(--bg);-webkit-user-select:none;user-select:none;min-height:100dvh;margin:0}input,textarea{-webkit-user-select:text;user-select:text}h1,h2{margin:0}.muted{color:var(--muted);font-weight:400}.error{color:var(--danger)}.spacer{flex:1}button{font:inherit;color:inherit;cursor:pointer}.btn{min-height:var(--tap);border:2px solid var(--border);background:var(--surface);border-radius:999px;align-items:center;gap:8px;padding:0 24px;font-weight:600;display:inline-flex}.btn:disabled{opacity:.4;cursor:default}.btn-primary{background:var(--accent);border-color:var(--accent);color:#fff}.btn-danger{background:var(--danger);border-color:var(--danger);color:#fff}.btn-large{justify-content:center;min-width:300px;font-size:1.2rem}.icon-btn{width:var(--tap);height:var(--tap);background:0 0;border:none;border-radius:999px;place-items:center;font-size:2rem;display:inline-grid}.icon-btn:active{background:var(--accent-soft)}.center-screen{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:20px;min-height:100dvh;padding:24px;display:flex}.uid{background:var(--surface);border:1px solid var(--border);-webkit-user-select:all;user-select:all;border-radius:12px;padding:12px 16px}.page{padding:max(20px, env(safe-area-inset-top)) 24px 24px;max-width:1600px;margin:0 auto}.page-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px;display:flex}.page-header h1{font-size:2.2rem}.week-nav{align-items:center;gap:8px;display:flex}.week-label{text-align:center;min-width:100px;font-size:1.4rem;font-weight:700}.today-hero{background:var(--accent);color:#fff;border-radius:var(--radius);cursor:pointer;flex-direction:column;margin-bottom:24px;padding:28px 32px;display:flex}.today-label{opacity:.85;font-size:1.2rem}.today-title{font-size:clamp(2rem,5vw,3.5rem);font-weight:800;line-height:1.1}.week-grid{grid-template-columns:repeat(7,1fr);gap:12px;display:grid}@media (width<=1000px){.week-grid{grid-template-columns:repeat(2,1fr)}}@media (width<=560px){.week-grid{grid-template-columns:1fr}}.day-card{background:var(--surface);border:2px solid var(--border);border-radius:var(--radius);flex-direction:column;gap:10px;min-height:180px;padding:16px;display:flex}.day-card header{flex-direction:column;display:flex}.day-card header strong{font-size:1.2rem}.day-card.is-today{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.day-card.is-past{opacity:.6}.day-card ul{flex-direction:column;flex:1;gap:8px;margin:0;padding:0;list-style:none;display:flex}.meal{width:100%;min-height:var(--tap);text-align:left;background:var(--accent-soft);border:none;border-radius:14px;align-items:center;gap:8px;padding:10px 12px;font-weight:600;display:flex}.meal.is-cancelled{opacity:.5;text-decoration:line-through}.meal-emoji{font-size:1.4rem}.add-btn{border:2px dashed var(--border);min-height:48px;color:var(--muted);background:0 0;border-radius:14px;place-items:center;display:grid}.add-btn:active{background:var(--accent-soft)}.overlay{z-index:10;background:#00000059;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.dialog{background:var(--surface);border-radius:var(--radius);flex-direction:column;gap:20px;width:min(640px,100%);max-height:100%;padding:24px;display:flex;overflow:auto}.dialog-header{justify-content:space-between;align-items:center;display:flex}.dialog-footer{flex-wrap:wrap;gap:12px;display:flex}.field{flex-direction:column;gap:8px;font-weight:600;display:flex}.field input,.field textarea{font:inherit;border:2px solid var(--border);background:var(--bg);border-radius:14px;padding:14px 16px;font-size:1.3rem}.field input:focus,.field textarea:focus{border-color:var(--accent);outline:none}.chips{flex-wrap:wrap;gap:8px;display:flex}.chip{border:2px solid var(--border);background:var(--surface);border-radius:999px;min-height:52px;padding:0 18px;font-weight:600}.chip-active{border-color:var(--accent);background:var(--accent-soft)}.stepper{align-items:center;gap:16px;display:flex}.stepper strong{text-align:center;min-width:2ch;font-size:1.6rem}.stepper .icon-btn{border:2px solid var(--border)}.app-shell{flex-direction:column;min-height:100dvh;display:flex}.app-content{flex:1;padding-bottom:96px}.tab-bar{padding:8px 16px max(8px, env(safe-area-inset-bottom));background:var(--surface);border-top:2px solid var(--border);z-index:5;justify-content:center;gap:8px;display:flex;position:fixed;bottom:0;left:0;right:0}.tab{min-width:0;max-width:140px;min-height:64px;color:var(--muted);background:0 0;border:none;border-radius:16px;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;font-size:.95rem;font-weight:700;display:flex}.tab.is-active{color:var(--accent);background:var(--accent-soft)}.today-hint{opacity:.9;align-items:center;gap:8px;margin-top:8px;display:inline-flex}.meal-title{flex:1}.meal-recipe-icon{color:var(--accent);flex-shrink:0}.fullscreen{background:var(--bg);z-index:20;position:fixed;inset:0;overflow:auto}.close-fullscreen{top:max(12px, env(safe-area-inset-top));z-index:21;position:fixed;left:12px;box-shadow:0 2px 10px #0000001f}.recipe{max-width:1400px;padding:calc(max(12px, env(safe-area-inset-top)) + 84px) 24px 48px;margin:0 auto}.recipe-header{flex-wrap:wrap;justify-content:space-between;gap:24px;margin-bottom:28px;padding-right:72px;display:flex}.recipe-header h1{font-size:clamp(2rem,4vw,3rem);line-height:1.1}.recipe-desc{margin:8px 0 0;font-size:1.15rem}.recipe-meta{color:var(--muted);flex-wrap:wrap;gap:20px;margin-top:12px;font-weight:600;display:flex}.recipe-meta>*{align-items:center;gap:6px;display:inline-flex}.recipe-meta a{color:var(--accent)}.recipe-actions{flex-direction:column;align-items:stretch;gap:10px;display:flex}.btn-favorite{color:#b0283f;background:#fde8ec;border-color:#d6455d}.recipe-body{grid-template-columns:minmax(280px,1fr) 2fr;align-items:start;gap:32px;display:grid}@media (width<=800px){.recipe-body{grid-template-columns:1fr}}.recipe-body h2{margin-bottom:12px;font-size:1.5rem}.ingredients,.steps{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.check-row{width:100%;min-height:var(--tap);text-align:left;border:2px solid var(--border);background:var(--surface);border-radius:14px;align-items:baseline;gap:14px;padding:12px 16px;font-size:1.25rem;display:flex}.check-row.is-done{opacity:.4;text-decoration:line-through}.amount{white-space:nowrap;min-width:5.5ch;font-weight:700}.steps .check-row{font-size:1.35rem;line-height:1.45}.step-no{background:var(--accent);color:#fff;border-radius:999px;flex-shrink:0;align-self:flex-start;place-items:center;width:40px;height:40px;font-weight:800;display:grid}.search{background:var(--surface);border:2px solid var(--border);color:var(--muted);border-radius:999px;align-items:center;gap:12px;margin-bottom:20px;padding:0 20px;display:flex}.search:focus-within{border-color:var(--accent)}.search input{font:inherit;min-height:var(--tap);color:var(--text);background:0 0;border:none;outline:none;flex:1;font-size:1.25rem}.empty{text-align:center;padding:48px 16px;font-size:1.2rem}.recipe-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px;display:grid}.recipe-card{text-align:left;border:2px solid var(--border);border-radius:var(--radius);background:var(--surface);flex-direction:column;gap:8px;min-height:130px;padding:18px;display:flex}.recipe-card strong{font-size:1.3rem;line-height:1.2}.recipe-card-desc{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.recipe-card-meta{color:var(--muted);flex-wrap:wrap;align-items:center;gap:8px;margin-top:auto;font-size:.95rem;display:flex}.recipe-card-meta>span{align-items:center;gap:4px;display:inline-flex}.heart{color:#d6455d}.tag{background:var(--accent-soft);color:var(--text);border-radius:999px;padding:2px 10px}.overlay-top{z-index:30}.date-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px;display:grid}.date-btn{border:2px solid var(--border);background:var(--surface);border-radius:16px;flex-direction:column;justify-content:center;align-items:center;min-height:72px;display:flex}.date-btn:active{background:var(--accent-soft);border-color:var(--accent)}.toast{background:var(--text);color:#fff;z-index:40;border-radius:999px;max-width:calc(100% - 32px);padding:14px 24px;font-weight:600;position:fixed;bottom:110px;left:50%;transform:translate(-50%)}.home{max-width:1200px}.home-header{margin-bottom:20px}.home-header h1{margin:0;font-size:clamp(2.2rem,5vw,3rem)}.home-date{color:var(--muted);margin:4px 0 0;font-size:1.3rem}.home-date:first-letter{text-transform:uppercase}.area-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px;display:grid}.area-tile{border:2px solid var(--border);border-radius:var(--radius);background:var(--surface);min-height:220px;color:var(--text);font:inherit;cursor:pointer;flex-direction:column;justify-content:center;align-items:center;gap:6px;padding:24px;transition:transform .1s;display:flex}.area-tile:active:not(:disabled){transform:scale(.97)}.area-tile:disabled{opacity:.5;cursor:default}.area-icon{background:var(--tile);color:#fff;border-radius:50%;place-items:center;width:96px;height:96px;margin-bottom:8px;display:grid}.area-label{font-size:1.6rem;font-weight:800}.area-hint{color:var(--muted)}.title-row{align-items:center;gap:16px;display:flex}.title-row h1{margin:0}.back-btn{padding:0 20px 0 14px;font-size:1.1rem}.shopping{max-width:1400px}.shop-count{color:var(--muted);font-size:1.2rem;font-weight:700}.shop-add{gap:12px;margin-bottom:12px;display:flex}.shop-add input{min-width:0;font:inherit;border:3px solid var(--border);background:var(--surface);min-height:72px;color:var(--text);border-radius:999px;flex:1;padding:0 24px;font-size:1.5rem}.shop-add input:focus{border-color:var(--accent);outline:none}.shop-add-btn{min-height:72px;padding:0 28px;font-size:1.3rem}.shop-suggestions{margin-bottom:16px}.shop-layout{grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:28px;margin-top:12px;display:grid}@media (width<=800px){.shop-layout{grid-template-columns:1fr}}.shop-subtitle{color:var(--muted);margin:20px 0 12px;font-size:1.2rem}aside .shop-subtitle{margin-top:0}.shop-list{flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.shop-item{background:var(--surface);border:2px solid var(--border);border-radius:var(--radius);align-items:center;gap:8px;padding-right:8px;display:flex}.shop-main{min-height:72px;font:inherit;text-align:left;color:inherit;cursor:pointer;background:0 0;border:none;flex:1;align-items:center;gap:16px;padding:8px 16px;display:flex}.shop-check{border:3px solid var(--border);color:#fff;border-radius:50%;flex-shrink:0;place-items:center;width:40px;height:40px;display:grid}.shop-check.is-checked{background:#2f7a5b;border-color:#2f7a5b}.shop-name{flex:1;font-size:1.4rem;font-weight:700}.shop-qty{background:var(--accent-soft);color:var(--accent);border-radius:999px;margin-right:10px;padding:2px 10px;font-size:1.1rem;display:inline-block}.shop-note{font-size:1.1rem}.shop-badge{color:#3b6aa8;background:#e3eefb;border-radius:999px;align-items:center;gap:6px;padding:4px 12px;font-size:.95rem;font-weight:700;display:inline-flex}.shop-remove{color:var(--muted)}.shop-item.is-bought{opacity:.6}.shop-item.is-bought .shop-name{font-weight:600;text-decoration:line-through}.shop-undo{color:var(--muted);align-items:center;gap:6px;font-size:1rem;display:inline-flex}.quick-chip{align-items:center;gap:6px;min-height:56px;font-size:1.1rem;display:inline-flex}.quick-chip:active{background:var(--accent-soft);border-color:var(--accent)}.wishes{max-width:1400px}.who{flex-wrap:wrap;align-items:center;gap:16px;margin-bottom:16px;display:flex}.who-label{color:var(--muted);font-size:1.2rem;font-weight:700}.who-chip{min-height:60px;padding:0 22px;font-size:1.2rem}.who-emoji{font-size:1.6rem}.wish-list{flex-direction:column;gap:12px;margin:0;padding:0;list-style:none;display:flex}.wish-card{background:var(--surface);border:2px solid var(--border);border-radius:var(--radius);flex-wrap:wrap;align-items:center;gap:12px;padding:14px 12px 14px 22px;display:flex}.wish-main{flex-direction:column;flex:1;gap:4px;min-width:200px;display:flex}.wish-title{font-size:1.5rem;font-weight:800}.wish-wishers{color:#b3305b;align-items:center;gap:6px;font-weight:700;display:inline-flex}.wish-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.wish-card.is-planned{background:#eef7f2;border-color:#2f7a5b}.wish-planned{color:#2f7a5b;align-items:center;gap:6px;font-weight:700;display:inline-flex}@media (width<=560px){.tab span{font-size:.8rem}}.home-footer{flex-direction:column;align-items:center;gap:8px;margin-top:32px;display:flex}.awake-ok{color:#2f7a5b;font-weight:700}.awake-error{color:var(--danger);text-align:center;margin:0}.awake-toggle{color:var(--muted);align-items:center;gap:8px;display:inline-flex}.awake-toggle.chip-active{color:var(--accent)}
