
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Fraunces:opsz,wght,SOFT,WONK@9..144,600,0,1;9..144,700,0,1&display=swap');
:root{--bg:#f8f7f2;--panel:#fffefa;--ink:#26352c;--muted:#79847a;--line:#e9e9df;--green:#284f3c;--lightgreen:#e7eee6;--orange:#d77950;--lightorange:#fff0e5;--butter:#f9e8b6;--shadow:0 14px 40px rgba(36,57,41,.06);--radius:17px;font-family:'DM Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink)}
*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}a{color:var(--green)}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #d4a368;outline-offset:2px}.app-shell{max-width:1720px;margin:0 auto;padding:26px 30px 70px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 0 23px}.brand{display:flex;align-items:center;gap:13px;min-width:0}.brand-logo{width:47px;height:47px;display:grid;place-items:center;border-radius:15px;background:var(--green);color:#fff;font-size:26px;box-shadow:0 5px 16px #294e3a24}.brand-name{font-family:'Fraunces',Georgia,serif;font-size:28px;line-height:1.04;font-weight:700;letter-spacing:-1px}.brand-tag{font-size:12px;color:var(--muted);margin-top:5px}.top-actions{display:flex;gap:9px;align-items:center}.btn{border:1px solid var(--line);background:white;color:var(--ink);padding:11px 15px;border-radius:11px;font-size:13px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;transition:background .15s,border-color .15s,transform .12s}.btn:hover{border-color:#bccdbf;background:#fafbf8}.btn:active{transform:translateY(1px)}.btn.primary{background:var(--green);border-color:var(--green);color:white}.btn.primary:hover{background:#1d3e2e}.btn.subtle{background:#f2f3ed}.btn.ghost{background:transparent;border-color:transparent}.btn.tiny{padding:6px 9px;font-size:11px;border-radius:8px}.btn.icon-only{width:34px;height:34px;padding:0}.nav{display:flex;gap:5px;padding:5px;border:1px solid var(--line);background:#f1f2eb;border-radius:14px;width:fit-content;margin-bottom:27px}.nav-btn{background:transparent;border:0;padding:11px 20px;border-radius:10px;color:#647167;font-size:13px;font-weight:750;display:flex;gap:8px;align-items:center}.nav-btn.active{background:white;color:var(--green);box-shadow:0 3px 12px #3b5b4620}.tab-count{background:#e7ede2;font-size:10px;border-radius:8px;padding:3px 6px;color:var(--green)}.page-intro{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:22px}.eyebrow{text-transform:uppercase;letter-spacing:1.6px;font-size:10px;font-weight:800;color:var(--orange);margin-bottom:7px}.page-title{font-family:'Fraunces',Georgia,serif;font-size:35px;line-height:1.12;font-weight:700;letter-spacing:-1.1px;margin:0}.page-sub{font-size:13px;color:var(--muted);margin:8px 0 0;line-height:1.5}.header-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.week-label{min-width:190px;text-align:center;font-size:13px;font-weight:750}.small-note{font-size:11px;color:var(--muted)}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:23px}.stat{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:17px 19px;min-height:88px}.stat-top{font-size:11px;color:var(--muted);font-weight:700}.stat-num{font-family:'Fraunces',Georgia,serif;font-size:27px;font-weight:700;margin-top:5px;letter-spacing:-1px}.stat-foot{font-size:11px;color:#748276;font-family:'DM Sans',sans-serif;letter-spacing:0;margin-left:5px;font-weight:500}.workspace{display:grid;grid-template-columns:300px minmax(0,1fr);gap:18px;align-items:start}.panel{border:1px solid var(--line);background:var(--panel);border-radius:17px;box-shadow:var(--shadow)}.shelf{position:sticky;top:20px;overflow:hidden}.panel-head{display:flex;justify-content:space-between;align-items:center;padding:18px 17px 12px;gap:10px}.panel-title{font-family:'Fraunces',Georgia,serif;font-size:18px;font-weight:700}.shelf-tools{padding:0 14px 12px}.search-wrap{position:relative}.search-input{width:100%;border:1px solid var(--line);background:#fbfbf7;border-radius:10px;padding:11px 12px 11px 34px;font-size:12px;color:var(--ink)}.search-icon{position:absolute;left:12px;top:10px;color:#96a098;font-size:15px}.chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:11px}.chip{border:1px solid var(--line);background:#fff;padding:7px 10px;border-radius:999px;font-size:11px;font-weight:750;color:#778277}.chip.active{background:var(--lightgreen);border-color:#cbd9cb;color:var(--green)}.shelf-list{max-height:750px;overflow:auto;padding:0 10px 13px}.recipe-item{display:grid;grid-template-columns:43px minmax(0,1fr) 31px;gap:8px;align-items:center;padding:10px 7px;border-radius:12px;cursor:grab;user-select:none}.recipe-item:hover{background:#f5f6ef}.recipe-item:active{cursor:grabbing}.recipe-emoji{width:42px;height:42px;background:#f4efe3;border-radius:11px;display:grid;place-items:center;font-size:24px}.recipe-item.side .recipe-emoji{background:#eaf0e5}.recipe-name{font-size:12px;font-weight:800;line-height:1.35;display:block}.recipe-meta{font-size:10px;color:#8d978e;margin-top:4px}.circle-add{height:28px;width:28px;display:grid;place-items:center;border-radius:8px;background:white;border:1px solid var(--line);font-size:19px;color:var(--green)}.circle-add:hover{background:var(--lightgreen)}.shelf-footer{border-top:1px solid var(--line);padding:12px 15px;display:flex;gap:7px}.shelf-footer .btn{flex:1}.planner-area{min-width:0}.tip-bar{padding:12px 16px;border-radius:12px;background:#f0f3e8;border:1px solid #e1e8d8;color:#576752;font-size:12px;display:flex;gap:11px;align-items:center;margin-bottom:16px}.tip-dot{display:grid;place-items:center;background:#dce9d6;width:27px;height:27px;flex-shrink:0;border-radius:50%;font-size:15px}.days-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.day-card{min-height:252px;padding:15px 14px 13px;border:1px solid var(--line);border-radius:15px;background:var(--panel);transition:border-color .15s,background .15s}.day-card.today{border-color:#b9cdb8}.day-card.drag-over{border:2px dashed var(--orange);background:#fff8f0;padding:14px 13px 12px}.day-head{display:flex;align-items:center;justify-content:space-between;gap:4px;padding-bottom:11px;border-bottom:1px solid #f0eee7}.day-name{font-weight:800;font-size:12px}.day-date{font-size:10px;color:var(--muted);margin-top:3px}.today-pill{font-size:9px;background:var(--lightgreen);color:var(--green);padding:4px 6px;border-radius:7px;font-weight:800}.day-servings{display:flex;align-items:center;gap:2px}.day-servings button{width:21px;height:21px;border:0;background:transparent;color:#8b958c;border-radius:5px;font-size:14px}.day-servings button:hover{background:#e9efe8;color:var(--green)}.day-servings span{font-size:11px;font-weight:800;min-width:13px;text-align:center}.meal-section{margin-top:13px}.section-label{display:flex;align-items:center;justify-content:space-between;font-size:9px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:#8d978d;margin-bottom:7px}.section-label button{border:0;background:transparent;color:#7a917b;font-size:10px;font-weight:800;cursor:pointer}.slot{min-height:49px;border:1px dashed #e5e7df;border-radius:10px;background:#fbfbf8;display:flex;align-items:center;justify-content:center;font-size:11px;color:#9ca79b;padding:5px;text-align:center}.slot.is-over{background:#f8e9de;border-color:#dc966f;color:#a55e38}.planned-recipe{display:flex;align-items:center;gap:8px;border:1px solid #e6e9e0;background:#f4f7f1;border-radius:10px;padding:8px 7px;min-height:48px;cursor:grab;margin-bottom:5px}.planned-recipe.side{background:#fff7ed;border-color:#f0e9dc}.planned-icon{font-size:18px}.planned-title{flex:1;min-width:0;font-size:11px;font-weight:800;line-height:1.3}.planned-sub{font-size:9px;color:#849285;margin-top:3px}.close-mini{background:transparent;border:0;color:#a4ada2;font-size:17px;line-height:1;align-self:start;padding:0 1px}.close-mini:hover{color:#a74836}.add-empty{cursor:pointer}.add-empty:hover{border-color:#b7ceba;color:var(--green);background:#f1f6ee}.insight-panel{margin-top:18px;background:#f2eee2;border:1px solid #eae1cf;border-radius:16px;padding:18px 19px}.insight-head{display:flex;align-items:center;gap:11px}.insight-head strong{font-family:'Fraunces',Georgia,serif;font-size:19px}.insight-sub{font-size:11px;color:#888373;margin-top:3px}.insight-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:15px}.insight{padding:12px;border-radius:10px;background:#fffdf8;border:1px solid #eae4d8;min-width:0}.insight-name{font-size:12px;font-weight:800;margin-bottom:5px}.insight-copy{font-size:11px;color:#7d8275;line-height:1.5}.shared-pill{background:#edf2e7;color:#4a674b;padding:3px 7px;border-radius:7px;font-size:10px;display:inline-block;margin:5px 3px 0 0}.empty-insight{font-size:12px;color:#867e70;margin-top:11px;line-height:1.6}.section-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.library-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.library-card{background:var(--panel);border:1px solid var(--line);border-radius:17px;overflow:hidden;display:flex;flex-direction:column}.library-card .hero{height:95px;background:#f2eee0;display:flex;align-items:center;justify-content:center;font-size:48px}.library-card.side .hero{background:#e8efe6}.library-card-content{padding:15px;display:flex;flex:1;flex-direction:column;gap:9px}.type-tag{font-size:10px;text-transform:uppercase;font-weight:800;letter-spacing:1px;color:var(--orange)}.type-tag.side{color:#54765d}.library-card-title{font-family:'Fraunces',Georgia,serif;font-size:17px;line-height:1.25}.library-card-info{font-size:11px;color:#839084;line-height:1.5}.card-actions{display:flex;gap:7px;margin-top:auto;padding-top:10px}.card-actions .btn{flex:1;padding:8px 9px;font-size:11px}.shopping-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(270px,.7fr);gap:18px}.shopping-box{background:var(--panel);border:1px solid var(--line);border-radius:16px;overflow:hidden}.shopping-toolbar{display:flex;gap:8px;padding:14px 16px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);flex-wrap:wrap}.grocery-section{padding:8px 17px 13px;border-bottom:1px solid var(--line)}.grocery-section:last-child{border-bottom:0}.grocery-heading{font-size:11px;text-transform:uppercase;letter-spacing:1.2px;font-weight:800;color:#6c806e;margin:13px 0 10px}.grocery-row{display:grid;grid-template-columns:23px minmax(0,1fr) auto;align-items:center;gap:9px;padding:8px 3px;border-radius:8px}.grocery-row:hover{background:#fafbf7}.grocery-row.checked .grocery-title{text-decoration:line-through;color:#a1aa9e}.grocery-row.pantry .grocery-title{color:#a1aa9e}.grocery-row input[type=checkbox]{appearance:none;width:17px;height:17px;border:1.5px solid #b9c9b9;border-radius:5px;background:white;cursor:pointer;position:relative}.grocery-row input[type=checkbox]:checked{background:var(--green);border-color:var(--green)}.grocery-row input[type=checkbox]:checked::after{content:'✓';position:absolute;color:white;font-size:12px;top:-1px;left:3px;font-weight:800}.grocery-title{font-size:12px;font-weight:700;display:block}.grocery-used{display:block;font-size:10px;color:#99a398;margin-top:3px}.grocery-amount{font-size:11px;font-weight:750;color:#58725d;white-space:nowrap}.have-button{border:0;background:transparent;color:#b3bdb0;font-size:10px;text-decoration:underline;margin-left:6px;padding:3px}.have-button:hover{color:var(--green)}.side-box{background:#fffefa;border:1px solid var(--line);border-radius:16px;padding:17px 18px;margin-bottom:16px}.box-heading{font-family:'Fraunces',Georgia,serif;font-size:18px;margin-bottom:10px}.mini-row{display:flex;justify-content:space-between;align-items:start;gap:15px;font-size:12px;margin-top:12px}.mini-row .muted{color:#8d998f}.pill{background:#eaf2e8;color:#4c7559;font-size:10px;border-radius:8px;padding:4px 7px;font-weight:800;display:inline-block}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.empty-state{padding:30px 18px;text-align:center;color:#849085;font-size:12px;line-height:1.7}.empty-icon{font-size:34px;margin-bottom:10px}.modal-wrap{position:fixed;inset:0;z-index:50;display:none;align-items:center;justify-content:center;background:#12291f8c;padding:18px;backdrop-filter:blur(3px)}.modal-wrap.open{display:flex}.modal{background:var(--panel);border-radius:19px;box-shadow:0 35px 100px #183a2860;width:min(740px,100%);max-height:min(92vh,1050px);display:flex;flex-direction:column;overflow:hidden}.modal.compact{width:min(520px,100%)}.modal-top{border-bottom:1px solid var(--line);padding:18px 22px;display:flex;justify-content:space-between;align-items:center;gap:8px}.modal-title{font-family:'Fraunces',Georgia,serif;font-size:23px}.modal-body{padding:20px 22px;overflow:auto}.modal-bottom{padding:14px 22px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;align-items:center;gap:9px;flex-wrap:wrap}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px;min-width:0}.field label{font-size:11px;font-weight:800;color:#59705d}.field input,.field select,.field textarea{width:100%;border:1px solid #e2e6da;background:white;border-radius:9px;padding:10px 11px;font-size:13px;color:var(--ink)}.field textarea{min-height:95px;resize:vertical}.ingredient-editor-row{display:grid;grid-template-columns:70px 100px minmax(0,1fr) 30px;gap:8px;margin-bottom:7px}.ingredient-editor-row input,.ingredient-editor-row select{border:1px solid #e2e6da;background:white;border-radius:8px;padding:9px;font-size:12px;width:100%;min-width:0}.divider{height:1px;background:var(--line);margin:20px 0}.text-btn{border:0;background:transparent;color:var(--green);font-size:12px;font-weight:800;padding:5px 0}.text-btn:hover{text-decoration:underline}.subtle-copy{font-size:11px;color:#859286;line-height:1.6}.warning{background:#fff1e6;border:1px solid #f0dacb;padding:11px 12px;border-radius:10px;color:#a4653f;font-size:11px;line-height:1.5;margin:10px 0}.detail-hero{display:flex;gap:15px;align-items:center;margin-bottom:14px}.detail-emoji{font-size:47px;width:83px;height:83px;background:#f4eee3;display:grid;place-items:center;border-radius:16px}.detail-title{font-family:'Fraunces',Georgia,serif;font-size:28px;line-height:1.1}.detail-meta{margin-top:8px;font-size:12px;color:#849085}.detail-ingredients{columns:2;column-gap:25px;margin:12px 0;padding-left:18px;font-size:12px;line-height:1.9}.detail-ingredients li{break-inside:avoid}.instructions{font-size:12px;white-space:pre-wrap;line-height:1.8;color:#647268}.toast{position:fixed;bottom:25px;right:25px;background:#2d5540;color:white;padding:13px 19px;border-radius:11px;font-size:13px;z-index:80;box-shadow:0 12px 25px #24482f42;max-width:320px;opacity:0;transform:translateY(12px);transition:.2s;pointer-events:none}.toast.show{opacity:1;transform:translateY(0)}.loading{display:inline-block;width:14px;height:14px;border:2px solid #c2d2c7;border-top-color:var(--green);border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.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}
@media(max-width:1350px){.days-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.library-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.workspace{grid-template-columns:270px 1fr}}@media(max-width:1010px){.app-shell{padding:20px 18px 60px}.workspace{grid-template-columns:1fr}.shelf{position:static}.shelf-list{max-height:270px;display:grid;grid-template-columns:repeat(2,1fr)}.days-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.library-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:730px){.topbar{flex-wrap:wrap}.brand-name{font-size:24px}.top-actions{width:100%;justify-content:space-between}.top-actions .btn{flex:1}.page-intro{align-items:start;flex-direction:column}.page-title{font-size:29px}.stats{grid-template-columns:repeat(2,1fr)}.days-grid,.library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shopping-layout{grid-template-columns:1fr}.insight-grid{grid-template-columns:1fr}.header-controls{width:100%}.week-label{min-width:140px}.nav{width:100%}.nav-btn{flex:1;justify-content:center;padding:11px 7px}.shelf-list{grid-template-columns:1fr 1fr}.form-row{grid-template-columns:1fr 1fr}}@media(max-width:470px){.app-shell{padding:16px 12px 45px}.stats{gap:8px}.stat{padding:13px}.days-grid{grid-template-columns:1fr}.library-grid{grid-template-columns:1fr 1fr;gap:9px}.library-card-content{padding:10px}.library-card-title{font-size:14px}.library-card .hero{height:70px;font-size:32px}.card-actions{flex-wrap:wrap}.shelf-list{grid-template-columns:1fr}.brand-tag{display:none}.page-title{font-size:27px}.ingredient-editor-row{grid-template-columns:53px 78px minmax(0,1fr) 25px;gap:4px}.modal-body{padding:14px}.modal-top,.modal-bottom{padding:13px 14px}.form-row{gap:7px}.detail-ingredients{columns:1}}
@media(max-width:470px){.top-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px}.top-actions .btn{min-width:0;white-space:normal;padding:9px 8px;font-size:11px}.top-actions .icon-only{width:100%;height:40px}}
.url-row{display:flex;gap:8px}.url-row input{flex:1;min-width:0}.import-steps{margin:2px 0 14px;padding:12px 14px 12px 32px;border:1px solid var(--line);border-radius:13px;background:#f6f7f1;font-size:13px;line-height:1.5;display:grid;gap:6px}.import-steps li::marker{color:var(--green);font-weight:800}.paste-route{margin:2px 0 14px;font-size:13px}.paste-route summary{cursor:pointer;color:var(--green);font-weight:700}.bookmarklet-row{display:flex;gap:10px;align-items:center;margin-top:4px}.bookmarklet{display:inline-flex;align-items:center;gap:6px;padding:9px 14px;border-radius:999px;background:var(--orange);color:#fff;font-weight:800;text-decoration:none;cursor:grab;box-shadow:0 5px 14px #d7795040}.bookmarklet:active{cursor:grabbing}.emoji-field{display:flex;gap:8px;align-items:center}.emoji-current{width:46px;height:41px;border:1px solid #e2e6da;border-radius:9px;background:#fff;font-size:22px;line-height:1;display:grid;place-items:center;padding:0}.emoji-current:hover{border-color:#bccdbf}.emoji-picker{border:1px solid var(--line);border-radius:13px;background:#f6f7f1;padding:12px;margin:-2px 0 14px}.emoji-search,#emojiCustom{width:100%;border:1px solid #e2e6da;background:#fff;border-radius:9px;padding:8px 11px;font-size:13px;color:var(--ink)}.emoji-group-name{font-size:11px;font-weight:800;color:#59705d;margin:11px 0 5px}.emoji-grid{display:flex;flex-wrap:wrap;gap:3px}.emoji-opt{width:36px;height:36px;border:1px solid transparent;border-radius:9px;background:transparent;font-size:20px;line-height:1;display:grid;place-items:center;padding:0}.emoji-opt:hover{background:#fff;border-color:#bccdbf}.emoji-opt.selected{background:#fff;border-color:var(--green);box-shadow:0 0 0 2px #284f3c2e}.emoji-custom{display:flex;gap:8px;align-items:center;margin-top:12px}.emoji-custom input{flex:1;min-width:0}

/* ---- server app additions ---- */
.hero img,.detail-emoji img{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block}
.detail-emoji img{border-radius:14px}
.inbox-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}
.inbox-card .card-actions{flex-wrap:wrap}
.sources-list{display:grid;gap:4px;margin-top:10px}
.source-row{display:grid;grid-template-columns:1fr auto minmax(120px,auto) auto;gap:10px;align-items:center;padding:7px 9px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:13px}
.source-toggle{display:flex;align-items:center;gap:8px;font-weight:600;min-width:0}.source-toggle span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.source-kind{font-size:11px;color:var(--muted);text-transform:lowercase}
.source-status{font-size:11px;color:var(--muted);text-align:right}.source-status.ok{color:#2d7a4f}.source-status.bad{color:#ad593e;font-weight:700}
.source-add{display:grid;grid-template-columns:1fr 2fr auto;gap:8px;margin-top:10px}
.source-add input{border:1px solid #e2e6da;background:#fff;border-radius:9px;padding:8px 11px;font-size:13px;color:var(--ink);min-width:0}
.import-steps .btn.tiny{margin-left:6px;vertical-align:middle}
.bookmarklet-setup .bookmarklet{padding:5px 10px;font-size:12px;vertical-align:middle}
@media(max-width:730px){
  .app-shell{padding:14px 12px 60px}.topbar{flex-wrap:wrap;gap:12px}.top-actions{width:100%;display:grid;grid-template-columns:1fr 1fr auto;gap:8px}.top-actions .btn{padding:10px 8px;font-size:12px}
  .nav{width:100%;overflow-x:auto;scrollbar-width:none}.nav-btn{padding:10px 12px;white-space:nowrap}
  .modal{width:100%;max-height:100vh;border-radius:0}.modal-wrap{padding:0}
  .source-row{grid-template-columns:1fr auto;grid-auto-rows:auto}.source-kind{display:none}.source-add{grid-template-columns:1fr}
  .inbox-grid{grid-template-columns:1fr}
  .emoji-opt{width:40px;height:40px;font-size:22px}
}
.account-line{margin:0 0 12px;padding:10px 12px;background:#f1f2eb;border-radius:10px;font-size:12px}.account-line .btn{margin-left:6px}

/* Latest standalone planner styles */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Fraunces:opsz,wght,SOFT,WONK@9..144,600,0,1;9..144,700,0,1&display=swap');
:root{--bg:#f8f7f2;--panel:#fffefa;--ink:#26352c;--muted:#79847a;--line:#e9e9df;--green:#284f3c;--lightgreen:#e7eee6;--orange:#d77950;--lightorange:#fff0e5;--butter:#f9e8b6;--shadow:0 14px 40px rgba(36,57,41,.06);--radius:17px;font-family:'DM Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink)}
*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}a{color:var(--green)}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #d4a368;outline-offset:2px}.app-shell{max-width:1720px;margin:0 auto;padding:26px 30px 70px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 0 23px}.brand{display:flex;align-items:center;gap:13px;min-width:0}.brand-logo{width:47px;height:47px;display:grid;place-items:center;border-radius:15px;background:var(--green);color:#fff;font-size:26px;box-shadow:0 5px 16px #294e3a24}.brand-name{font-family:'Fraunces',Georgia,serif;font-size:28px;line-height:1.04;font-weight:700;letter-spacing:-1px}.brand-tag{font-size:12px;color:var(--muted);margin-top:5px}.top-actions{display:flex;gap:9px;align-items:center}.btn{border:1px solid var(--line);background:white;color:var(--ink);padding:11px 15px;border-radius:11px;font-size:13px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;transition:background .15s,border-color .15s,transform .12s}.btn:hover{border-color:#bccdbf;background:#fafbf8}.btn:active{transform:translateY(1px)}.btn.primary{background:var(--green);border-color:var(--green);color:white}.btn.primary:hover{background:#1d3e2e}.btn.subtle{background:#f2f3ed}.btn.ghost{background:transparent;border-color:transparent}.btn.tiny{padding:6px 9px;font-size:11px;border-radius:8px}.btn.icon-only{width:34px;height:34px;padding:0}.nav{display:flex;gap:5px;padding:5px;border:1px solid var(--line);background:#f1f2eb;border-radius:14px;width:fit-content;margin-bottom:27px}.nav-btn{background:transparent;border:0;padding:11px 20px;border-radius:10px;color:#647167;font-size:13px;font-weight:750;display:flex;gap:8px;align-items:center}.nav-btn.active{background:white;color:var(--green);box-shadow:0 3px 12px #3b5b4620}.tab-count{background:#e7ede2;font-size:10px;border-radius:8px;padding:3px 6px;color:var(--green)}.page-intro{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:22px}.eyebrow{text-transform:uppercase;letter-spacing:1.6px;font-size:10px;font-weight:800;color:var(--orange);margin-bottom:7px}.page-title{font-family:'Fraunces',Georgia,serif;font-size:35px;line-height:1.12;font-weight:700;letter-spacing:-1.1px;margin:0}.page-sub{font-size:13px;color:var(--muted);margin:8px 0 0;line-height:1.5}.header-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.week-label{min-width:190px;text-align:center;font-size:13px;font-weight:750}.small-note{font-size:11px;color:var(--muted)}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:23px}.stat{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:17px 19px;min-height:88px}.stat-top{font-size:11px;color:var(--muted);font-weight:700}.stat-num{font-family:'Fraunces',Georgia,serif;font-size:27px;font-weight:700;margin-top:5px;letter-spacing:-1px}.stat-foot{font-size:11px;color:#748276;font-family:'DM Sans',sans-serif;letter-spacing:0;margin-left:5px;font-weight:500}.workspace{display:grid;grid-template-columns:300px minmax(0,1fr);gap:18px;align-items:start}.panel{border:1px solid var(--line);background:var(--panel);border-radius:17px;box-shadow:var(--shadow)}.shelf{position:sticky;top:20px;overflow:hidden}.panel-head{display:flex;justify-content:space-between;align-items:center;padding:18px 17px 12px;gap:10px}.panel-title{font-family:'Fraunces',Georgia,serif;font-size:18px;font-weight:700}.shelf-tools{padding:0 14px 12px}.search-wrap{position:relative}.search-input{width:100%;border:1px solid var(--line);background:#fbfbf7;border-radius:10px;padding:11px 12px 11px 34px;font-size:12px;color:var(--ink)}.search-icon{position:absolute;left:12px;top:10px;color:#96a098;font-size:15px}.chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:11px}.chip{border:1px solid var(--line);background:#fff;padding:7px 10px;border-radius:999px;font-size:11px;font-weight:750;color:#778277}.chip.active{background:var(--lightgreen);border-color:#cbd9cb;color:var(--green)}.shelf-list{max-height:750px;overflow:auto;padding:0 10px 13px}.recipe-item{display:grid;grid-template-columns:43px minmax(0,1fr) 31px;gap:8px;align-items:center;padding:10px 7px;border-radius:12px;cursor:grab;user-select:none}.recipe-item:hover{background:#f5f6ef}.recipe-item:active{cursor:grabbing}.recipe-emoji{width:42px;height:42px;background:#f4efe3;border-radius:11px;display:grid;place-items:center;font-size:24px}.recipe-item.side .recipe-emoji{background:#eaf0e5}.recipe-name{font-size:12px;font-weight:800;line-height:1.35;display:block}.recipe-meta{font-size:10px;color:#8d978e;margin-top:4px}.circle-add{height:28px;width:28px;display:grid;place-items:center;border-radius:8px;background:white;border:1px solid var(--line);font-size:19px;color:var(--green)}.circle-add:hover{background:var(--lightgreen)}.shelf-footer{border-top:1px solid var(--line);padding:12px 15px;display:flex;gap:7px}.shelf-footer .btn{flex:1}.planner-area{min-width:0}.tip-bar{padding:12px 16px;border-radius:12px;background:#f0f3e8;border:1px solid #e1e8d8;color:#576752;font-size:12px;display:flex;gap:11px;align-items:center;margin-bottom:16px}.tip-dot{display:grid;place-items:center;background:#dce9d6;width:27px;height:27px;flex-shrink:0;border-radius:50%;font-size:15px}.days-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.day-card{min-height:252px;padding:15px 14px 13px;border:1px solid var(--line);border-radius:15px;background:var(--panel);transition:border-color .15s,background .15s}.day-card.today{border-color:#b9cdb8}.day-card.drag-over{border:2px dashed var(--orange);background:#fff8f0;padding:14px 13px 12px}.day-head{display:flex;align-items:center;justify-content:space-between;gap:4px;padding-bottom:11px;border-bottom:1px solid #f0eee7}.day-name{font-weight:800;font-size:12px}.day-date{font-size:10px;color:var(--muted);margin-top:3px}.today-pill{font-size:9px;background:var(--lightgreen);color:var(--green);padding:4px 6px;border-radius:7px;font-weight:800}.meal-section{margin-top:13px}.section-label{display:flex;align-items:center;justify-content:space-between;font-size:9px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:#8d978d;margin-bottom:7px}.section-label button{border:0;background:transparent;color:#7a917b;font-size:10px;font-weight:800;cursor:pointer}.slot{min-height:49px;border:1px dashed #e5e7df;border-radius:10px;background:#fbfbf8;display:flex;align-items:center;justify-content:center;font-size:11px;color:#9ca79b;padding:5px;text-align:center}.slot.is-over{background:#f8e9de;border-color:#dc966f;color:#a55e38}.planned-recipe{display:flex;align-items:center;gap:8px;border:1px solid #e6e9e0;background:#f4f7f1;border-radius:10px;padding:8px 7px;min-height:48px;cursor:grab;margin-bottom:5px}.planned-recipe.side{background:#fff7ed;border-color:#f0e9dc}.planned-icon{font-size:18px}.planned-title{flex:1;min-width:0;font-size:11px;font-weight:800;line-height:1.3}.planned-sub{font-size:9px;color:#849285;margin-top:3px}.close-mini{background:transparent;border:0;color:#a4ada2;font-size:17px;line-height:1;align-self:start;padding:0 1px}.close-mini:hover{color:#a74836}.add-empty{cursor:pointer}.add-empty:hover{border-color:#b7ceba;color:var(--green);background:#f1f6ee}.insight-panel{margin-top:18px;background:#f2eee2;border:1px solid #eae1cf;border-radius:16px;padding:18px 19px}.insight-head{display:flex;align-items:center;gap:11px}.insight-head strong{font-family:'Fraunces',Georgia,serif;font-size:19px}.insight-sub{font-size:11px;color:#888373;margin-top:3px}.insight-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:15px}.insight{padding:12px;border-radius:10px;background:#fffdf8;border:1px solid #eae4d8;min-width:0}.insight-name{font-size:12px;font-weight:800;margin-bottom:5px}.insight-copy{font-size:11px;color:#7d8275;line-height:1.5}.shared-pill{background:#edf2e7;color:#4a674b;padding:3px 7px;border-radius:7px;font-size:10px;display:inline-block;margin:5px 3px 0 0}.empty-insight{font-size:12px;color:#867e70;margin-top:11px;line-height:1.6}.section-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.library-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.library-card{background:var(--panel);border:1px solid var(--line);border-radius:17px;overflow:hidden;display:flex;flex-direction:column}.library-card .hero{height:95px;background:#f2eee0;display:flex;align-items:center;justify-content:center;font-size:48px}.library-card.side .hero{background:#e8efe6}.library-card-content{padding:15px;display:flex;flex:1;flex-direction:column;gap:9px}.type-tag{font-size:10px;text-transform:uppercase;font-weight:800;letter-spacing:1px;color:var(--orange)}.type-tag.side{color:#54765d}.library-card-title{font-family:'Fraunces',Georgia,serif;font-size:17px;line-height:1.25}.library-card-info{font-size:11px;color:#839084;line-height:1.5}.card-actions{display:flex;gap:7px;margin-top:auto;padding-top:10px}.card-actions .btn{flex:1;padding:8px 9px;font-size:11px}.shopping-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(270px,.7fr);gap:18px}.shopping-box{background:var(--panel);border:1px solid var(--line);border-radius:16px;overflow:hidden}.shopping-toolbar{display:flex;gap:8px;padding:14px 16px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);flex-wrap:wrap}.grocery-section{padding:8px 17px 13px;border-bottom:1px solid var(--line)}.grocery-section:last-child{border-bottom:0}.grocery-heading{font-size:11px;text-transform:uppercase;letter-spacing:1.2px;font-weight:800;color:#6c806e;margin:13px 0 10px}.grocery-row{display:grid;grid-template-columns:23px minmax(0,1fr) auto;align-items:center;gap:9px;padding:8px 3px;border-radius:8px}.grocery-row:hover{background:#fafbf7}.grocery-row.checked .grocery-title{text-decoration:line-through;color:#a1aa9e}.grocery-row.pantry .grocery-title{color:#a1aa9e}.grocery-row input[type=checkbox]{appearance:none;width:17px;height:17px;border:1.5px solid #b9c9b9;border-radius:5px;background:white;cursor:pointer;position:relative}.grocery-row input[type=checkbox]:checked{background:var(--green);border-color:var(--green)}.grocery-row input[type=checkbox]:checked::after{content:'✓';position:absolute;color:white;font-size:12px;top:-1px;left:3px;font-weight:800}.grocery-title{font-size:12px;font-weight:700;display:block}.grocery-used{display:block;font-size:10px;color:#99a398;margin-top:3px}.grocery-amount{font-size:11px;font-weight:750;color:#58725d;white-space:nowrap}.have-button{border:0;background:transparent;color:#b3bdb0;font-size:10px;text-decoration:underline;margin-left:6px;padding:3px}.have-button:hover{color:var(--green)}.side-box{background:#fffefa;border:1px solid var(--line);border-radius:16px;padding:17px 18px;margin-bottom:16px}.box-heading{font-family:'Fraunces',Georgia,serif;font-size:18px;margin-bottom:10px}.mini-row{display:flex;justify-content:space-between;align-items:start;gap:15px;font-size:12px;margin-top:12px}.mini-row .muted{color:#8d998f}.pill{background:#eaf2e8;color:#4c7559;font-size:10px;border-radius:8px;padding:4px 7px;font-weight:800;display:inline-block}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.empty-state{padding:30px 18px;text-align:center;color:#849085;font-size:12px;line-height:1.7}.empty-icon{font-size:34px;margin-bottom:10px}.modal-wrap{position:fixed;inset:0;z-index:50;display:none;align-items:center;justify-content:center;background:#12291f8c;padding:18px;backdrop-filter:blur(3px)}.modal-wrap.open{display:flex}.modal{background:var(--panel);border-radius:19px;box-shadow:0 35px 100px #183a2860;width:min(740px,100%);max-height:min(92vh,1050px);display:flex;flex-direction:column;overflow:hidden}.modal.compact{width:min(520px,100%)}.modal-top{border-bottom:1px solid var(--line);padding:18px 22px;display:flex;justify-content:space-between;align-items:center;gap:8px}.modal-title{font-family:'Fraunces',Georgia,serif;font-size:23px}.modal-body{padding:20px 22px;overflow:auto}.modal-bottom{padding:14px 22px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;align-items:center;gap:9px;flex-wrap:wrap}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px;min-width:0}.field label{font-size:11px;font-weight:800;color:#59705d}.field input,.field select,.field textarea{width:100%;border:1px solid #e2e6da;background:white;border-radius:9px;padding:10px 11px;font-size:13px;color:var(--ink)}.field textarea{min-height:95px;resize:vertical}.ingredient-editor-row{display:grid;grid-template-columns:70px 100px minmax(0,1fr) 30px;gap:8px;margin-bottom:7px}.ingredient-editor-row input,.ingredient-editor-row select{border:1px solid #e2e6da;background:white;border-radius:8px;padding:9px;font-size:12px;width:100%;min-width:0}.divider{height:1px;background:var(--line);margin:20px 0}.text-btn{border:0;background:transparent;color:var(--green);font-size:12px;font-weight:800;padding:5px 0}.text-btn:hover{text-decoration:underline}.subtle-copy{font-size:11px;color:#859286;line-height:1.6}.warning{background:#fff1e6;border:1px solid #f0dacb;padding:11px 12px;border-radius:10px;color:#a4653f;font-size:11px;line-height:1.5;margin:10px 0}.detail-hero{display:flex;gap:15px;align-items:center;margin-bottom:14px}.detail-emoji{font-size:47px;width:83px;height:83px;background:#f4eee3;display:grid;place-items:center;border-radius:16px}.detail-title{font-family:'Fraunces',Georgia,serif;font-size:28px;line-height:1.1}.detail-meta{margin-top:8px;font-size:12px;color:#849085}.detail-ingredients{columns:2;column-gap:25px;margin:12px 0;padding-left:18px;font-size:12px;line-height:1.9}.detail-ingredients li{break-inside:avoid}.instructions{font-size:12px;white-space:pre-wrap;line-height:1.8;color:#647268}.toast{position:fixed;bottom:25px;right:25px;background:#2d5540;color:white;padding:13px 19px;border-radius:11px;font-size:13px;z-index:80;box-shadow:0 12px 25px #24482f42;max-width:320px;opacity:0;transform:translateY(12px);transition:.2s;pointer-events:none}.toast.show{opacity:1;transform:translateY(0)}.loading{display:inline-block;width:14px;height:14px;border:2px solid #c2d2c7;border-top-color:var(--green);border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.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}
@media(max-width:1350px){.days-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.library-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.workspace{grid-template-columns:270px 1fr}}@media(max-width:1010px){.app-shell{padding:20px 18px 60px}.workspace{grid-template-columns:1fr}.shelf{position:static}.shelf-list{max-height:270px;display:grid;grid-template-columns:repeat(2,1fr)}.days-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.library-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:730px){.topbar{flex-wrap:wrap}.brand-name{font-size:24px}.top-actions{width:100%;justify-content:space-between}.top-actions .btn{flex:1}.page-intro{align-items:start;flex-direction:column}.page-title{font-size:29px}.stats{grid-template-columns:repeat(2,1fr)}.days-grid,.library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shopping-layout{grid-template-columns:1fr}.insight-grid{grid-template-columns:1fr}.header-controls{width:100%}.week-label{min-width:140px}.nav{width:100%}.nav-btn{flex:1;justify-content:center;padding:11px 7px}.shelf-list{grid-template-columns:1fr 1fr}.form-row{grid-template-columns:1fr 1fr}}@media(max-width:470px){.app-shell{padding:16px 12px 45px}.stats{gap:8px}.stat{padding:13px}.days-grid{grid-template-columns:1fr}.library-grid{grid-template-columns:1fr 1fr;gap:9px}.library-card-content{padding:10px}.library-card-title{font-size:14px}.library-card .hero{height:70px;font-size:32px}.card-actions{flex-wrap:wrap}.shelf-list{grid-template-columns:1fr}.brand-tag{display:none}.page-title{font-size:27px}.ingredient-editor-row{grid-template-columns:53px 78px minmax(0,1fr) 25px;gap:4px}.modal-body{padding:14px}.modal-top,.modal-bottom{padding:13px 14px}.form-row{gap:7px}.detail-ingredients{columns:1}}
@media(max-width:470px){.top-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px}.top-actions .btn{min-width:0;white-space:normal;padding:9px 8px;font-size:11px}.top-actions .icon-only{width:100%;height:40px}}
.url-row{display:flex;gap:8px}.url-row input{flex:1;min-width:0}.import-steps{margin:2px 0 14px;padding:12px 14px 12px 32px;border:1px solid var(--line);border-radius:13px;background:#f6f7f1;font-size:13px;line-height:1.5;display:grid;gap:6px}.import-steps li::marker{color:var(--green);font-weight:800}.bookmarklet-setup{margin-top:2px;font-size:13px}.bookmarklet-setup summary{cursor:pointer;color:var(--green);font-weight:700}.bookmarklet-row{display:flex;gap:10px;align-items:center;margin-top:4px}.bookmarklet{display:inline-flex;align-items:center;gap:6px;padding:9px 14px;border-radius:999px;background:var(--orange);color:#fff;font-weight:800;text-decoration:none;cursor:grab;box-shadow:0 5px 14px #d7795040}.bookmarklet:active{cursor:grabbing}.emoji-field{display:flex;gap:8px;align-items:center}.emoji-current{width:46px;height:41px;border:1px solid #e2e6da;border-radius:9px;background:#fff;font-size:22px;line-height:1;display:grid;place-items:center;padding:0}.emoji-current:hover{border-color:#bccdbf}.emoji-picker{border:1px solid var(--line);border-radius:13px;background:#f6f7f1;padding:12px;margin:-2px 0 14px}.emoji-search,#emojiCustom{width:100%;border:1px solid #e2e6da;background:#fff;border-radius:9px;padding:8px 11px;font-size:13px;color:var(--ink)}.emoji-group-name{font-size:11px;font-weight:800;color:#59705d;margin:11px 0 5px}.emoji-grid{display:flex;flex-wrap:wrap;gap:3px}.emoji-opt{width:36px;height:36px;border:1px solid transparent;border-radius:9px;background:transparent;font-size:20px;line-height:1;display:grid;place-items:center;padding:0}.emoji-opt:hover{background:#fff;border-color:#bccdbf}.emoji-opt.selected{background:#fff;border-color:var(--green);box-shadow:0 0 0 2px #284f3c2e}.emoji-custom{display:flex;gap:8px;align-items:center;margin-top:12px}.emoji-custom input{flex:1;min-width:0}

.shuffle-controls{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.day-options{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.mini-toggle{border:1px solid #dfe6dc;background:#fafbf7;color:#647368;padding:5px 7px;border-radius:8px;font-size:10px;font-weight:700}.mini-toggle.active{background:#e0ecde;color:#284f3c;border-color:#b4cbb5}.mini-toggle.leftovers.active{background:#fff0df;color:#946037;border-color:#ecc9a2}.shopping-recommendations{padding:14px 17px;background:#f4f8f0;border-bottom:1px solid var(--line)}.shopping-recommendations li{margin:8px 0;font-size:12px;line-height:1.5}.shuffle-choice{display:flex;gap:8px;align-items:flex-start;margin:12px 0;font-size:13px}.shuffle-choice input{margin-top:3px}


.clear-options{display:grid;gap:10px;margin:15px 0 4px}
.clear-option{width:100%;border:1px solid #d6e0d2;background:#f4f8f1;border-radius:13px;padding:15px 16px;text-align:left;color:var(--ink);display:flex;flex-direction:column;gap:6px;white-space:normal;line-height:1.5;cursor:pointer}
.clear-option:hover:not(:disabled){background:#eaf2e8;border-color:#a9bda7}
.clear-option strong{font-size:14px}
.clear-option span{font-size:12px;color:#657666}
.clear-option.danger{background:#fff9f5;border-color:#e8d8cc}
.clear-option.danger:hover:not(:disabled){background:#ffefe5;border-color:#dba88e}
.clear-option.danger strong{color:#a65438}
.clear-option:disabled{cursor:default;opacity:.45}

/* Application version, visible below every app section. */
.app-version{margin-top:32px;padding:16px 0;text-align:center;font-size:12px;color:#647268;border-top:1px solid var(--line)}
/* Ingredient and pantry tools */
.shopping-tools{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.shopping-item{padding:16px 20px;border-bottom:1px solid var(--line)}.shopping-item-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.shopping-item-title label{display:flex;align-items:center;gap:9px}.shopping-numbers{display:flex;gap:12px;flex-wrap:wrap;margin:9px 0;font-size:13px}.review-note{color:#99511f}.shopping-item details{margin-top:8px}.shopping-item summary{cursor:pointer}.covered-list{margin-top:20px;background:#f1f5ed;border-radius:12px;padding:14px}.ingredient-catalog-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.ingredient-catalog-row strong{overflow-wrap:anywhere}.ingredient-catalog-row[hidden],#stockQuantityRow[hidden]{display:none}.ingredient-catalog-row .btn{flex-shrink:0}@media(max-width:470px){.shopping-item{padding:13px}.shopping-item-title{align-items:flex-start}.shopping-item-title .btn{max-width:110px;white-space:normal}}
@media(max-width:470px){.nav{display:grid;grid-template-columns:1fr 1fr;overflow:visible}.nav-btn{white-space:normal}.shopping-item label input{flex-shrink:0}}

.account-bar{display:flex;justify-content:flex-end;margin:8px 0}.user-row-actions{display:flex;gap:6px;flex-wrap:wrap}[data-admin][hidden],button[hidden]{display:none!important}

.photo-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.file-btn{cursor:pointer}.similar-list{list-style:none;padding:0;margin:10px 0 0;display:grid;gap:8px}.similar-list li{display:flex;gap:10px;align-items:center;font-size:14px}
.ocr-text{margin:-4px 0 14px;font-size:13px}.ocr-text summary{cursor:pointer;color:var(--green);font-weight:700}.ocr-text pre{white-space:pre-wrap;font:12px/1.5 ui-monospace,Menlo,monospace;background:#f6f7f1;border:1px solid var(--line);border-radius:10px;padding:10px 12px;max-height:220px;overflow:auto;margin:8px 0 0}

.ocr-changes{margin:-4px 0 10px;font-size:12px;line-height:1.9;color:var(--muted)}.ocr-changes strong{color:var(--ink);margin-right:6px}.ocr-change{display:inline-block;background:#f1f2eb;border-radius:6px;padding:0 7px;margin:0 4px 4px 0;color:var(--ink)}.ocr-change s{color:#ad593e}

.planner-bar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:16px auto;padding:14px 20px;max-width:1440px;background:#fffef8;border:1px solid #dfe3d5;border-radius:14px}.planner-bar select{max-width:320px;padding:8px;border-radius:8px}.planner-bar label{display:flex;align-items:center;gap:6px}

.account-manage-btn{max-width:100%;white-space:normal}.gmail-account-row>div:first-child{min-width:0;flex:1}.gmail-account-row input{min-width:0;width:100%}@media(max-width:470px){.gmail-account-row{align-items:flex-start;flex-direction:column}.gmail-account-row>div:first-child{width:100%}}

/* Readable controls and responsive layouts, demo 1.0.10. */
:root{--muted:#536657;--orange:#a94724}
:focus-visible{outline:3px solid #176d99;outline-offset:3px}
.skip-link{position:fixed;top:8px;left:8px;z-index:100;background:white;padding:12px;transform:translateY(-160%)}
.skip-link:focus{transform:none}
.small-note,.subtle-copy,.page-sub,.recipe-meta,.planned-sub,.detail-meta,.library-card-info,.empty-state,.stat-top,.stat-foot,.day-date,.insight-copy,.insight-sub,.grocery-used,.mini-row .muted{color:#536657}
button,a,input,select,textarea{touch-action:manipulation}
.btn,.text-btn,.mini-toggle,.circle-add,.close-mini,.section-label button,.chip,.emoji-opt{min-height:44px}
.circle-add,.close-mini,.icon-only{min-width:44px}
.day-note{padding:10px 12px;border-top:1px solid var(--line)}
.day-note p{margin:4px 0 8px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.5}
.detail-title{margin:0;font-weight:500;overflow-wrap:anywhere}
.detail-hero>div{min-width:0}.detail-emoji{flex-shrink:0}
.recipe-print h3{font-size:17px;margin:18px 0 8px}.detail-ingredients,.instructions{font-size:15px;line-height:1.7}
.modal-body,.library-card-title,.source-row,.shopping-item{overflow-wrap:anywhere}
.header-controls,.planner-bar,.card-actions,.bookmarklet-row{flex-wrap:wrap}
.modal{max-height:92dvh}.modal-body{min-height:0}.modal-top,.modal-bottom{flex-shrink:0}
@media(max-width:730px){
 .nav{display:grid;grid-template-columns:1fr 1fr;overflow:visible}.nav-btn{white-space:normal}
 .top-actions{grid-template-columns:1fr 1fr}.top-actions .icon-only{width:100%}
 input,select,textarea,.field input,.field select,.field textarea,.ingredient-editor-row input,.ingredient-editor-row select{font-size:16px}
 .library-grid{grid-template-columns:1fr}.form-row,.settings-grid{grid-template-columns:1fr}
 .source-add,.source-row{grid-template-columns:1fr}.source-status{text-align:left}
 .modal-wrap{padding:8px}.modal{max-height:95dvh}.modal-title{font-size:21px}
 .detail-hero{align-items:flex-start}.detail-emoji{width:56px;height:56px;font-size:32px}.detail-title{font-size:25px}
 .ingredient-editor-row{grid-template-columns:65px minmax(80px,1fr) 44px}
 .ingredient-editor-row [data-ing-name]{grid-column:1 / 3;grid-row:2}.ingredient-editor-row button{grid-column:3;grid-row:1 / 3}
 .toast{left:12px;right:12px;bottom:16px;max-width:none}
 .login-wrap,.google-wrap{padding:12px!important}.login-card,.google-card{padding:20px!important}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media print{
 @page{margin:16mm}
 body:has(.recipe-print){background:white!important;overflow:visible!important;color:black}
 body:has(.recipe-print)>.app-shell,body:has(.recipe-print)>.toast,body:has(.recipe-print)>.skip-link{display:none!important}
 body:has(.recipe-print) #modalHost,body:has(.recipe-print) .modal-wrap,body:has(.recipe-print) .modal,body:has(.recipe-print) .recipe-print{position:static!important;display:block!important;width:auto!important;height:auto!important;max-height:none!important;overflow:visible!important;margin:0!important;padding:0!important;background:white!important;box-shadow:none!important;border:0!important;backdrop-filter:none!important}
 body:has(.recipe-print) .modal-top,body:has(.recipe-print) .modal-bottom,.recipe-print .detail-emoji{display:none!important}
 .recipe-print *{color:black!important}.recipe-print .detail-title{font-size:24pt}.recipe-print .detail-meta{font-size:11pt}
 .recipe-print .detail-ingredients{columns:1;font-size:11pt}.recipe-print .instructions{font-size:11pt;orphans:3;widows:3}
 .recipe-print h3,.recipe-print .detail-hero{break-after:avoid}.recipe-print li{break-inside:avoid}
 .recipe-print a{color:black;text-decoration:none;overflow-wrap:anywhere}
}
.chip:not(.active),.section-label,.section-label button,.slot.add-empty,.empty-insight{color:#536657}
.grocery-heading{color:#536657}

.book-check{display:flex;align-items:center;gap:10px;min-height:44px;margin:12px 0;font-size:14px}.book-check input{width:20px;height:20px}.help-guide p{line-height:1.7}.ocr-progress{width:100%;height:16px;accent-color:#284f3c}.book-page+.book-page{border-top:1px solid #ccc;margin-top:24px;padding-top:24px}@media print{.book-page+.book-page{break-before:page;border:0;margin:0;padding:0}.book-page{break-inside:auto}}
/* Keep status text at full contrast throughout its motion. */
.toast{transition:transform .2s}
