:root{--primary: #2563eb;--primary-hover: #1d4ed8;--danger: #dc2626;--danger-hover: #b91c1c;--success: #16a34a;--bg: #f8fafc;--surface: #ffffff;--border: #e2e8f0;--text: #1e293b;--text-muted: #64748b;--radius: 6px}*{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text);line-height:1.5}.app-header{background:var(--primary);color:#fff;padding:0 1.5rem;display:flex;align-items:center;gap:2rem;height:56px;position:sticky;top:0;z-index:100}.app-header .header-logo{height:40px;width:auto;border-radius:4px}.app-header h1{font-size:1.2rem;font-weight:600;white-space:nowrap}.app-header nav{display:flex;gap:.25rem}.app-header nav a{color:#fffc;text-decoration:none;padding:.5rem 1rem;border-radius:var(--radius);font-size:.9rem;transition:background .15s}.app-header nav a:hover,.app-header nav a.active{background:#ffffff26;color:#fff}.page{max-width:1200px;margin:0 auto;padding:1.5rem}.page-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem;flex-wrap:wrap;gap:.75rem}.page-header h2{font-size:1.5rem}.btn{display:inline-flex;align-items:center;gap:.4rem;padding:.5rem 1rem;border:none;border-radius:var(--radius);font-size:.875rem;font-weight:500;cursor:pointer;transition:background .15s;text-decoration:none;white-space:nowrap}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary-hover)}.btn-danger{background:var(--danger);color:#fff}.btn-danger:hover{background:var(--danger-hover)}.btn-secondary{background:var(--border);color:var(--text)}.btn-secondary:hover{background:#cbd5e1}.btn-sm{padding:.3rem .6rem;font-size:.8rem}.btn:disabled{opacity:.5;cursor:not-allowed}input,select{padding:.5rem .75rem;border:1px solid var(--border);border-radius:var(--radius);font-size:.875rem;font-family:inherit;background:var(--surface);color:var(--text)}input:focus,select:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 2px #2563eb33}.data-table{width:100%;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);border-collapse:collapse;font-size:.875rem}.data-table th,.data-table td{padding:.6rem .75rem;text-align:left;border-bottom:1px solid var(--border)}.data-table th{background:#f1f5f9;font-weight:600;font-size:.8rem;text-transform:uppercase;color:var(--text-muted)}.data-table tr:last-child td{border-bottom:none}.data-table tr:hover td{background:#f8fafc}.sortable-th{cursor:pointer;-webkit-user-select:none;user-select:none}.sortable-th:hover{background:#e2e8f0}.data-table input,.data-table select{width:100%;padding:.3rem .5rem;font-size:.85rem}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.25rem;margin-bottom:1rem}.card-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem}.card-header h3{font-size:1.1rem}.filters{display:flex;gap:.5rem;margin-bottom:1rem;flex-wrap:wrap}.filters input,.filters select{min-width:150px}.searchable-select{position:relative}.searchable-select input{width:100%}.searchable-select .dropdown{position:absolute;top:100%;left:0;right:0;max-height:200px;overflow-y:auto;background:var(--surface);border:1px solid var(--border);border-top:none;border-radius:0 0 var(--radius) var(--radius);z-index:50;box-shadow:0 4px 12px #0000001a}.searchable-select .dropdown-item{padding:.5rem .75rem;cursor:pointer;font-size:.85rem}.searchable-select .dropdown-item:hover,.searchable-select .dropdown-item.highlighted{background:#e2e8f0}.searchable-select .dropdown-item.selected{background:#dbeafe;font-weight:500}.searchable-select .dropdown-item.selected.highlighted{background:#bfdbfe}.searchable-select .dropdown-check{color:var(--primary);font-weight:700}.toast-container{position:fixed;bottom:1rem;right:1rem;z-index:1000;display:flex;flex-direction:column;gap:.5rem}.toast{padding:.75rem 1rem;border-radius:var(--radius);color:#fff;font-size:.875rem;box-shadow:0 4px 12px #00000026;animation:slideIn .2s ease;max-width:400px}.toast-success{background:var(--success)}.toast-error{background:var(--danger)}@keyframes slideIn{0%{transform:translate(100%);opacity:0}to{transform:translate(0);opacity:1}}.dialog-overlay{position:fixed;inset:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:200}.dialog{background:var(--surface);border-radius:var(--radius);padding:1.5rem;max-width:400px;width:90%;box-shadow:0 8px 32px #0003}.dialog h3{margin-bottom:.5rem}.dialog p{margin-bottom:1rem;color:var(--text-muted)}.dialog-actions{display:flex;gap:.5rem;justify-content:flex-end}.list-item{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;border-bottom:1px solid var(--border);cursor:pointer;transition:background .1s}.list-item:hover{background:#f8fafc}.list-item:last-child{border-bottom:none}.list-item-info{display:flex;flex-direction:column}.list-item-title{font-weight:500}.list-item-subtitle{font-size:.8rem;color:var(--text-muted)}.shopping-store{margin-bottom:1.5rem}.shopping-store h3{background:var(--primary);color:#fff;padding:.6rem 1rem;border-radius:var(--radius) var(--radius) 0 0;font-size:1rem}.shopping-dept{border:1px solid var(--border);border-top:none}.shopping-dept-header{background:#f1f5f9;padding:.4rem 1rem;font-weight:600;font-size:.85rem;color:var(--text-muted);cursor:pointer;display:flex;align-items:center;justify-content:space-between}.shopping-item{padding:.4rem 1rem;border-top:1px solid var(--border);display:flex;justify-content:space-between;align-items:flex-start;font-size:.875rem;gap:1rem}.shopping-item-name{cursor:pointer;-webkit-user-select:none;user-select:none}.shopping-item-name:hover{color:var(--primary)}.shopping-item-toggle{display:inline-block;width:1rem;font-size:.7rem;color:var(--text-muted)}.shopping-item-total{white-space:nowrap;min-width:3rem;text-align:right}.shopping-bought-label{font-size:.75rem;min-width:3rem;text-align:center}.shopping-item-bought{min-width:3rem;text-align:center}.shopping-item-bought input[type=checkbox]{width:1rem;height:1rem;cursor:pointer}.shopping-item-detail{font-size:.8rem;color:var(--text-muted);margin:.3rem 0 .2rem 1rem}.shopping-item-breakdown{display:flex;justify-content:space-between;padding:.15rem 0;gap:1rem}.inline-form{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}.meal-section{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);margin-bottom:1rem}.meal-header{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;background:#f1f5f9;border-radius:var(--radius) var(--radius) 0 0}.meal-recipe{display:flex;align-items:center;justify-content:space-between;padding:.5rem 1rem;border-top:1px solid var(--border);gap:.5rem}.loading,.empty{text-align:center;padding:2rem;color:var(--text-muted)}.back-link{color:var(--text-muted);text-decoration:none;font-size:.85rem;margin-bottom:.75rem;display:inline-block}.back-link:hover{color:var(--text)}.print-only{display:none}.qty-recipe-cell{position:relative}.qty-recipe-cell .qty-display{display:block;padding:.3rem .5rem;cursor:text}.qty-recipe-cell .qty-input{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}.qty-recipe-cell .qty-input:focus{opacity:1;position:relative;width:100%;height:auto}.qty-recipe-cell .qty-input:focus+.qty-display{display:none}.splash{position:fixed;top:0;left:0;width:100vw;height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#1a1a2e;cursor:pointer;z-index:9999;opacity:1;transition:opacity .6s ease}.splash.splash-fade{opacity:0;pointer-events:none}.splash-img{max-width:min(90vw,500px);max-height:70vh;border-radius:16px;box-shadow:0 8px 40px #00000080;animation:splashPop .6s ease-out}.splash-hint{margin-top:1.5rem;color:#ffffff80;font-size:.9rem;animation:splashHint .6s ease-out 1s both}@keyframes splashPop{0%{transform:scale(.85);opacity:0}to{transform:scale(1);opacity:1}}@keyframes splashHint{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.pantry-pull-list{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius)}.pantry-item{padding:.5rem 1rem;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:flex-start;font-size:.875rem;gap:1rem}.pantry-item:last-child{border-bottom:none}.pantry-item-name{cursor:pointer;-webkit-user-select:none;user-select:none}.pantry-item-name:hover{color:var(--primary)}.pantry-item-toggle{display:inline-block;width:1rem;font-size:.7rem;color:var(--text-muted)}.pantry-item-total{white-space:nowrap;min-width:3rem;text-align:right}.pantry-item-pulled{min-width:3rem;text-align:center}.pantry-item-pulled input[type=checkbox]{width:1rem;height:1rem;cursor:pointer}.pantry-item-detail{font-size:.8rem;color:var(--text-muted);margin:.3rem 0 .2rem 1rem}.pantry-item-breakdown{display:flex;justify-content:space-between;padding:.15rem 0;gap:1rem}@media print{.app-header,.btn,.no-print,.filters,.back-link{display:none!important}.print-only{display:block!important}.page{max-width:100%;padding:0}.shopping-store h3{background:none;color:var(--text);border-bottom:2px solid var(--text);border-radius:0;padding-left:0}.shopping-dept{border:none}.shopping-item{padding-left:1.5rem}.shopping-item-toggle{display:none}.shopping-item-bought input[type=checkbox]{-webkit-appearance:auto;appearance:auto;width:.9rem;height:.9rem}.card{border:none;padding:.5rem 0;margin-bottom:.5rem}.card-header{margin-bottom:.25rem}.card-header h3{font-size:1rem}.data-table th,.data-table td{padding:.2rem .5rem;border:none;border-bottom:1px solid #ccc}.data-table input{border:none!important;box-shadow:none!important;padding:0!important;background:transparent!important}.data-table th:nth-child(3),.data-table td:nth-child(3){display:none}.data-table th:nth-child(5),.data-table td:nth-child(5){display:none}.searchable-select{display:none}textarea{border:none!important;padding:0!important;resize:none!important;height:auto!important;overflow:visible!important;field-sizing:content!important}.inline-form select,.inline-form input[type=text]{border:none!important;padding:0!important;background:transparent!important}.qty-recipe-cell .qty-input{display:none!important}.qty-recipe-cell .qty-display{display:block!important;padding:0!important}.tag-pill-print{display:inline-block;background:#dbeafe!important;color:#1e40af!important;padding:.15rem .5rem;border:1px solid #93c5fd;border-radius:9999px;font-size:.8rem;margin-right:.3rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}.pantry-pull-list{border:none}.pantry-item{padding-left:0}.pantry-item-toggle{display:none}.pantry-item-pulled input[type=checkbox]{-webkit-appearance:auto;appearance:auto;width:.9rem;height:.9rem}}
