:root{--bg: #0f0f12;--surface: #1a1a20;--surface2: #25252e;--border: #333340;--text: #e8e8ed;--text-muted: #9898a6;--accent: #f5a623;--accent-hover: #f7b84a;--accent-text: #1a1200;--danger: #e07d7d;--radius: 12px;--font-sans: system-ui, "Segoe UI", sans-serif;--safe-bottom: env(safe-area-inset-bottom, 0px)}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;font-family:var(--font-sans);background:var(--bg);color:var(--text);line-height:1.4}button,input{font:inherit}a{color:var(--accent)}.view{min-height:100%;display:grid;grid-template-rows:auto 1fr auto}.loading-screen{min-height:100%;display:flex;align-items:center;justify-content:center;color:var(--text-muted);font-size:1.1rem}.header{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.85rem 1rem;border-bottom:1px solid var(--border);background:var(--surface)}.header-grow{min-width:0;flex:1}.header-actions{display:flex;flex-wrap:wrap;gap:.35rem;justify-content:flex-end}.header h1{margin:0;font-size:clamp(1.1rem,4vw,1.45rem)}.subtitle{margin:.15rem 0 0;color:var(--text-muted);font-size:.9rem}.back-link{flex-shrink:0;text-decoration:none}.btn-primary,.btn-secondary,.btn-ghost,.btn-icon{border:none;border-radius:var(--radius);cursor:pointer;transition:background .15s ease,color .15s ease,opacity .15s ease;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.btn-primary{background:var(--accent);color:var(--accent-text);font-weight:650;padding:.75rem 1rem;min-height:48px}.btn-primary:hover{background:var(--accent-hover)}.btn-primary:disabled{opacity:.45;cursor:not-allowed}.btn-secondary{background:var(--surface2);color:var(--text);padding:.65rem .9rem;min-height:44px;border:1px solid var(--border)}.btn-secondary:hover{background:#2f2f3a}.btn-small{min-height:40px;padding:.5rem .75rem;font-size:.9rem}.btn-ghost{background:transparent;color:var(--text-muted);padding:.5rem .65rem;min-height:44px}.btn-ghost:hover{color:var(--text);background:#ffffff0a}.btn-danger-text{color:var(--danger)}.btn-icon{background:var(--surface2);color:var(--text);width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border)}.btn-icon:disabled{opacity:.35;cursor:not-allowed}.text-input{width:100%;border:1px solid var(--border);background:var(--surface2);color:var(--text);border-radius:var(--radius);padding:.75rem .9rem;min-height:48px}.text-input:focus{outline:2px solid rgba(245,166,35,.45);outline-offset:1px}.banner{border:none;width:100%;text-align:left;padding:.85rem 1rem;font-size:.95rem}.banner-error{background:#e07d7d1f;color:#ffb4b4;border-bottom:1px solid rgba(224,125,125,.25)}.feedback-banner{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.75rem 1rem;font-size:.95rem}.feedback-error{background:#e07d7d1f;color:#ffb4b4;border-bottom:1px solid rgba(224,125,125,.25)}.feedback-success{background:#f5a6231f;color:var(--accent);border-bottom:1px solid rgba(245,166,35,.25)}.feedback-dismiss{flex-shrink:0;min-height:36px}.update-banner{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.65rem 1rem;background:#2a2418;color:#f5c451;border-bottom:1px solid rgba(245,196,81,.35)}.home-main,.editor-main{min-height:0;overflow:auto;padding:1rem}.home-footer,.editor-footer{display:grid;grid-template-columns:1fr auto;gap:.65rem;padding:.85rem 1rem calc(.85rem + var(--safe-bottom));border-top:1px solid var(--border);background:var(--surface)}.list-section{margin-bottom:1.25rem}.run-section-label{margin:0 0 .5rem;color:var(--text-muted);font-size:.85rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em}.empty-state{text-align:center;padding:2.5rem 1rem;color:var(--text-muted)}.empty-state h2{margin:0 0 .5rem;color:var(--text)}.empty-state.compact{padding:1.5rem .5rem}.editor-list{list-style:none;margin:0;padding:0;display:grid;gap:.65rem}.editor-row{display:grid;grid-template-columns:1fr auto;gap:.5rem;align-items:center}.staple-editor-row.is-needed{border-radius:var(--radius);background:#f5a6230f;padding:.35rem}.header-title-block{min-width:0;flex:1}.header-nav{display:flex;flex-wrap:wrap;gap:.35rem;justify-content:flex-end}.btn-nav{padding:.5rem .65rem;min-height:40px;font-size:.88rem}.undo-banner{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.75rem 1rem;background:#f5a6231f;color:var(--accent);border-bottom:1px solid rgba(245,166,35,.25);font-size:.95rem}.undo-banner-actions{display:flex;gap:.25rem;flex-shrink:0}.undo-action{color:var(--accent);font-weight:650}.shopping-row-wrap{display:grid;grid-template-columns:1fr auto;gap:.35rem;align-items:stretch;margin-bottom:.55rem}.shopping-row-wrap .checklist-row{margin-bottom:0}.shopping-row-wrap.is-checking .checklist-row{transition:background .15s ease,border-color .15s ease}.btn-row-remove{align-self:center}.staple-editor-main{display:flex;align-items:center;gap:.5rem;min-width:0}.staple-name-input{flex:1;min-width:0}.staple-toggle{flex-shrink:0;min-width:72px;min-height:44px;padding:.5rem .75rem;border-radius:var(--radius);border:1px solid var(--border);font-weight:600;cursor:pointer;transition:background .15s ease,color .15s ease}.editor-row-actions{display:flex;gap:.35rem}.editor-item-input{min-height:48px}.staple-toggle.is-have{background:var(--surface2);color:var(--text-muted)}.staple-toggle.is-need{background:#f5a62326;color:var(--accent);border-color:#f5a62366}.checklist-row{width:100%;display:flex;align-items:center;gap:.85rem;padding:.85rem .9rem;min-height:56px;margin-bottom:.55rem;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);color:var(--text);text-align:left;cursor:pointer}.checklist-row.is-checked{border-color:#f5a62359;background:#f5a62314}.checklist-box{width:28px;height:28px;border-radius:8px;border:2px solid var(--border);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;font-weight:700;color:var(--accent-text);background:var(--surface2)}.checklist-row.is-checked .checklist-box{background:var(--accent);border-color:var(--accent)}.checklist-label{font-size:1.02rem;transition:opacity .15s ease}.checklist-row.is-checked .checklist-label{opacity:.72;text-decoration:line-through}.history-list{list-style:none;margin:0;padding:0;display:grid;gap:.65rem}.history-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.85rem .9rem;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}.history-row-info{display:grid;gap:.2rem;min-width:0}.history-label{font-size:1.02rem}.history-date{color:var(--text-muted);font-size:.85rem}.overlay-backdrop{position:fixed;inset:0;background:#0000008c;display:flex;align-items:flex-end;justify-content:center;padding:1rem;z-index:20}.overlay-panel{width:min(520px,100%);background:var(--surface);border:1px solid var(--border);border-radius:calc(var(--radius) + 4px);padding:1rem;max-height:min(85vh,720px);overflow:auto}.settings-header{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.75rem}.settings-header h2{margin:0;font-size:1.15rem}.settings-note{margin:0 0 .5rem;color:var(--text)}.settings-note.muted{color:var(--text-muted);font-size:.9rem}.settings-actions{display:grid;gap:.65rem;margin:1rem 0}.settings-error{margin:0 0 .75rem;color:#ffb4b4}.history-row-actions{display:flex;flex-wrap:wrap;gap:.35rem;justify-content:flex-end}.list-actions{margin-bottom:.85rem}.empty-cta{display:inline-flex;margin-top:1rem;text-decoration:none}.quick-staples{margin-top:1.5rem;padding-top:1rem;border-top:1px solid var(--border)}.quick-staples-hint{margin:0 0 .65rem;color:var(--text-muted);font-size:.88rem}.quick-staples-chips{display:flex;flex-wrap:wrap;gap:.5rem}.quick-staple-chip{border:1px solid var(--border);background:var(--surface2);color:var(--text);border-radius:999px;padding:.45rem .75rem;cursor:pointer;font-size:.9rem}.quick-staple-chip:hover{border-color:#f5a62373;color:var(--accent)}.quick-staples-more{align-self:center;color:var(--text-muted);font-size:.85rem}.staples-search{margin-bottom:.85rem}.staple-editor-controls{display:flex;align-items:center;gap:.5rem;flex-shrink:0}.quantity-controls{display:flex;align-items:center;gap:.25rem}.quantity-controls.compact .qty-btn{width:36px;height:36px}.qty-btn{min-width:44px}.qty-value{min-width:1.5rem;text-align:center;font-weight:600}.shopping-row-wrap.is-disabled{opacity:.55;pointer-events:none}.shopping-row-wrap.swipe-buy-hint{border-radius:var(--radius);background:#f5a62314}.shopping-row-wrap.swipe-remove-hint{border-radius:var(--radius);background:#e07d7d14}@media(max-width:520px){.staple-editor-main{flex-direction:column;align-items:stretch}.staple-editor-controls{justify-content:space-between}.history-row{flex-direction:column;align-items:stretch}.history-row-actions{justify-content:stretch}.history-row-actions .btn-small{flex:1}}@media(max-width:420px){.header{flex-direction:column;align-items:stretch}.header-nav{justify-content:stretch}.btn-nav{flex:1;min-width:0}}@media(min-width:720px){.overlay-backdrop{align-items:center}.home-footer,.editor-footer{grid-template-columns:minmax(0,1fr) auto;max-width:720px;margin:0 auto;width:100%}.home-main,.editor-main,.header{max-width:720px;margin-left:auto;margin-right:auto;width:100%}}
