:root{--color-background: #f7efe4;--color-surface: #fffaf2;--color-surface-strong: #fff4e8;--color-surface-elevated: #fffdf9;--color-surface-tint: #fbf3ea;--color-surface-warning: #fff2df;--color-surface-critical: #fdece6;--color-border: rgba(161, 96, 54, .18);--color-text: #3f2b21;--color-text-muted: #76584a;--color-accent: #c47a4b;--color-accent-deep: #9e5731;--color-accent-soft: #efd9bc;--color-success-soft: #dde6cf;--color-danger-text: #8f2d20;--color-warning-text: #8a5615;--shadow-soft: 0 12px 32px rgba(102, 60, 33, .08);--shadow-lift: 0 18px 40px rgba(102, 60, 33, .12);--focus-ring: 0 0 0 4px rgba(196, 122, 75, .18)}*,*:before,*:after{box-sizing:border-box}html{color-scheme:light;font-size:16px}body{margin:0;min-height:100vh;font-family:Avenir Next,Segoe UI,sans-serif;color:var(--color-text);background:radial-gradient(circle at top left,rgba(223,172,131,.45),transparent 32%),radial-gradient(circle at bottom right,rgba(147,165,108,.18),transparent 28%),linear-gradient(180deg,#f7eee2,#f2e7d8 45%,#efe3d1)}h1,h2,h3{font-family:Georgia,Times New Roman,serif;line-height:1;letter-spacing:-.03em}p{line-height:1.6}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled,input:disabled,select:disabled{cursor:not-allowed;opacity:.72}input,select,textarea{width:100%;min-height:3rem;padding:.85rem 1rem;border:1px solid var(--color-border);border-radius:16px;background:#ffffffd1;color:var(--color-text);transition:border-color .12s ease,box-shadow .12s ease,transform .12s ease}input:focus,select:focus,textarea:focus,button:focus-visible{outline:none;border-color:#9e5731b3;box-shadow:var(--focus-ring)}.primary-button,.secondary-button,.ghost-button,.danger-button{border:0;border-radius:16px;padding:.85rem 1.1rem;font-weight:700;transition:transform .12s ease,box-shadow .12s ease,background .12s ease}.primary-button:hover,.secondary-button:hover,.ghost-button:hover,.danger-button:hover{transform:translateY(-1px)}.primary-button{color:#fff9f4;background:linear-gradient(135deg,#b86536,#d1895e);box-shadow:0 10px 30px #a05c303d}.secondary-button{color:var(--color-text);background:#efd9bcb8}.ghost-button{color:var(--color-accent-deep);background:#c47a4b14}.danger-button{color:var(--color-danger-text);background:#f8d3c1c7}.field-error{margin:0;color:var(--color-danger-text);font-size:.92rem}.panel-header,.expiring-card-top,.group-summary,.lot-copy-top{display:flex;justify-content:space-between;gap:1rem}.panel-header{align-items:center}.expiring-card-top,.group-summary,.lot-copy-top{align-items:flex-start}.eyebrow,.panel-kicker,.session-label,.expiring-kicker,.selection-label{margin:0 0 .75rem;font-size:.8rem;text-transform:uppercase;letter-spacing:.12em;color:var(--color-accent-deep)}.helper-copy,.loading-copy{margin:0;color:var(--color-text-muted)}.summary-card span,.summary-card small,.summary-card strong{display:block}.summary-card span,.summary-card small,.expiring-quantity span,.expiring-meta span,.suggestion-item span,.selection-card span,.group-summary-copy p,.group-summary-stats small,.lot-copy p,.lot-copy small{color:var(--color-text-muted)}.expiring-meta,.group-tags{display:flex;flex-wrap:wrap}.expiration-split{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.85rem}.group-summary-stats{display:grid;justify-items:end;gap:.15rem}.field,.lot-actions label,.lot-copy{display:grid;gap:.45rem}.field span,.lot-actions span{font-size:.92rem;font-weight:600}.field-full,.lot-error{grid-column:1/-1}.expiring-lot-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center}.expiring-lot-copy{display:grid;gap:.25rem;min-width:0}.expiring-lot-copy strong,.lot-copy-top strong{overflow-wrap:anywhere}.expiring-lot-copy small{color:var(--color-text-muted)}.category-pill,.alert-pill,.expired-pill,.status-pill{display:inline-flex;align-items:center;border-radius:999px;padding:.34rem .78rem;font-size:.82rem;font-weight:700}.category-pill{background:#b877471f;color:var(--color-accent-deep)}.alert-pill{background:var(--color-surface-warning);color:var(--color-accent-deep)}.expired-pill{background:#8f2d2029;color:var(--color-danger-text)}.status-pill{background:#60714a1f;color:#465238}.status-pill[data-status=critical]{background:#a9392724;color:var(--color-danger-text)}.status-pill[data-status=expired]{background:#8f2d202e;color:var(--color-danger-text)}.status-pill[data-status=soon]{background:#cd7f3229;color:var(--color-warning-text)}.expired-entry-alert{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1rem;align-items:center;margin-top:1.25rem;border:1px solid var(--color-border);border-radius:26px;padding:1.25rem;background:radial-gradient(circle at top right,rgba(169,57,39,.14),transparent 34%),var(--color-surface-critical);box-shadow:var(--shadow-soft)}.expired-entry-alert h2,.expired-entry-alert p{margin:0}.guidance-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1rem;align-items:center;margin-top:1.25rem;padding:1.15rem 1.25rem;border:1px solid rgba(96,113,74,.22);border-radius:24px;background:linear-gradient(135deg,#dde6cfa3,#fffaf2);box-shadow:var(--shadow-soft)}.guidance-card h2,.guidance-card p{margin:0}.guidance-actions{display:flex;flex-wrap:wrap;gap:.75rem;justify-content:flex-end}.expired-alert-actions{display:flex;flex-wrap:wrap;gap:.7rem;justify-content:flex-end}@media(max-width:760px){.expiring-lot-row{grid-template-columns:1fr;align-items:flex-start}.expired-entry-alert{grid-template-columns:1fr}.expired-alert-actions{justify-content:flex-start}}.depletion-pill{display:inline-flex;align-items:center;border-radius:999px;padding:.34rem .78rem;background:#60714a24;color:#465238;font-size:.82rem;font-weight:700}.durability-box{display:grid;gap:.9rem;margin:0;padding:1rem;border:1px solid var(--color-border);border-radius:22px;background:#dde6cf38}.durability-box legend{padding:0 .35rem;color:var(--color-accent-deep);font-weight:800}.check-field{display:flex;align-items:center;gap:.7rem;min-height:44px;padding:.25rem 0;font-weight:700}.check-field input{width:1.1rem;min-height:1.1rem}.durability-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem}.depletion-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,.45fr);gap:.85rem 1rem;padding:1.15rem;border:1px solid rgba(96,113,74,.18);border-radius:24px;background:linear-gradient(135deg,#dde6cfb8,#fffaf2)}.summary-card-depletion{background:linear-gradient(135deg,#dde6cfb8,#fffaf2)}.summary-card-shopping{background:linear-gradient(135deg,#e8d1aab8,#fffaf2)}.summary-card-staples{background:linear-gradient(135deg,#bcd6d19e,#fffaf2)}.depletion-card h3,.depletion-rule-copy,.staple-copy p,.shopping-plan-copy p{margin:0}.depletion-settings,.planning-settings-card,.depletion-editor-actions{display:flex;gap:.9rem;align-items:center;justify-content:space-between}.depletion-settings,.depletion-editor,.planning-settings-card,.planning-settings-editor{padding:1rem;border:1px dashed rgba(96,113,74,.28);border-radius:20px;background:linear-gradient(135deg,#dde6cf7a,#fffaf2)}.depletion-settings h4,.depletion-settings p,.planning-settings-card h4,.planning-settings-card p{margin:0}.depletion-settings-copy,.depletion-editor,.planning-settings-copy,.planning-settings-editor,.archived-list{display:grid;gap:1rem}.depletion-settings-copy,.planning-settings-copy{gap:.3rem}.section-actions,.archived-actions{display:flex;flex-wrap:wrap;gap:.75rem;justify-content:flex-end}.planning-settings-editor{grid-template-columns:repeat(3,minmax(0,1fr))}.depletion-meter{display:grid;justify-items:end;gap:.15rem;color:var(--color-text-muted)}.depletion-meter strong{color:var(--color-text);font-size:1.45rem}.depletion-rule-copy,.depletion-date{color:var(--color-text-muted)}.depletion-date{justify-self:end}.shopping-plan-row{display:grid;grid-template-columns:74px minmax(0,1fr) minmax(150px,.38fr);align-items:center;gap:1rem;padding:1rem;border:1px solid var(--color-border);border-radius:24px;background:linear-gradient(135deg,#fffaf2f2,#e8d1aa57)}.shopping-plan-stack{display:grid;gap:1rem}.value-insight-strip{display:flex;flex-wrap:wrap;gap:.65rem;margin-bottom:1rem;color:var(--color-text-muted);font-size:.9rem}.value-insight-strip span{padding:.45rem .7rem;border:1px solid rgba(96,113,74,.16);border-radius:999px;background:#fffaf2db}.staple-stack{display:grid;gap:.85rem}.staple-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(138px,.28fr);gap:1rem;align-items:center;padding:1rem;border:1px solid var(--color-border);border-radius:24px;background:linear-gradient(135deg,#fffaf2f5,#bcd6d14d)}.staple-row[data-status=missing],.staple-row[data-status=low]{background:linear-gradient(135deg,#f9e0cbe6,#fffaf2)}.staple-copy{display:grid;gap:.45rem}.staple-copy h3{margin:0}.staple-copy p,.staple-value,.staple-value span{color:var(--color-text-muted)}.staple-status-pill{display:inline-flex;align-items:center;border-radius:999px;padding:.34rem .78rem;background:#60714a1f;color:#465238;font-size:.82rem;font-weight:800}.staple-status-pill[data-status=missing],.staple-status-pill[data-status=low]{background:#a9392724;color:var(--color-danger-text)}.staple-value{display:grid;justify-items:end;gap:.15rem;text-align:right}.staple-value strong{color:var(--color-text);font-size:1.25rem}.shopping-plan-tools{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;justify-content:space-between;margin-bottom:1rem}.budget-form{display:grid;grid-template-columns:minmax(150px,220px) auto auto;gap:.65rem;align-items:end}.budget-status[data-tone=ok]{color:#465238}.budget-status[data-tone=over]{color:var(--color-danger-text)}.shopping-export-text{width:100%;min-height:9rem;margin-bottom:1rem;resize:vertical}.whatsapp-link{display:inline-flex;margin-bottom:1rem;text-decoration:none}.shopping-mode-panel{display:grid;gap:1rem;margin-bottom:1rem;padding:1rem;border:1px solid rgba(96,113,74,.2);border-radius:24px;background:linear-gradient(135deg,#dde6cf94,#fffaf2)}.shopping-mode-summary,.shopping-mode-actions{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;justify-content:space-between}.shopping-mode-summary h3{margin:0}.shopping-mode-totals{display:grid;justify-items:end;gap:.2rem;color:var(--color-text-muted);text-align:right}.shopping-mode-totals strong{color:var(--color-text)}.shopping-mode-list{display:grid;gap:.75rem}.shopping-mode-row{display:grid;grid-template-columns:minmax(170px,1fr) minmax(110px,.35fr) minmax(130px,.4fr) minmax(150px,.45fr);gap:.75rem;align-items:end;padding:.85rem;border:1px solid var(--color-border);border-radius:18px;background:#fffaf2e6}.shopping-check{display:flex;align-items:center;gap:.65rem;min-height:3rem;font-weight:800}.shopping-check input{width:1.15rem;min-height:1.15rem}.shopping-metadata-editor{grid-template-columns:repeat(2,minmax(0,1fr))}.shopping-plan-row h3{margin:0}.shopping-plan-row[data-urgency=depleted],.shopping-plan-row[data-urgency=critical]{background:linear-gradient(135deg,#f9e0cbe6,#fffaf2)}.shopping-plan-date{display:grid;justify-items:center;gap:.1rem;padding:.75rem .45rem;border-radius:18px;background:var(--color-surface);color:var(--color-accent-deep)}.archived-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1rem;align-items:center;padding:1rem;border:1px solid var(--color-border);border-radius:22px;background:var(--color-surface-tint)}.archived-row h3,.archived-row p{margin:0}.shopping-plan-date span{font-size:.75rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.shopping-plan-date strong{font-size:1.8rem;line-height:1}.shopping-plan-copy,.shopping-plan-stock{display:grid;gap:.45rem}.shopping-plan-copy p,.shopping-plan-stock,.shopping-plan-stock small{color:var(--color-text-muted)}.shopping-plan-stock{justify-items:end;text-align:right}.shopping-plan-stock strong{color:var(--color-text);font-size:1.35rem}.route-group-stack,.quick-draft-stack,.price-reference-list{display:grid;gap:.85rem;margin-bottom:1rem}.route-group-card,.quick-draft-card,.price-reference-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1rem;align-items:center;padding:1rem;border:1px solid var(--color-border);border-radius:22px;background:#fffaf2e6}.route-group-card h3,.route-group-card p,.quick-draft-card h3,.price-reference-row h3{margin:0}.route-group-total,.price-reference-value{display:grid;justify-items:end;gap:.2rem;text-align:right}.route-group-total span,.route-group-total small,.price-reference-value small,.quick-draft-card small{color:var(--color-text-muted)}.price-history-list{display:flex;flex-wrap:wrap;gap:.35rem;grid-column:1/-1}.price-history-list span{padding:.35rem .55rem;border:1px solid var(--color-border);border-radius:8px;color:var(--color-text-muted);font-size:.82rem}.quick-capture-form{display:grid;grid-template-columns:1fr;gap:.9rem}.capture-tool-grid{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) auto;gap:.75rem;align-items:end}.capture-preview-list{display:flex;flex-wrap:wrap;gap:.4rem}.capture-preview-list span{padding:.35rem .55rem;border:1px solid var(--color-border);border-radius:8px;color:var(--color-text-muted);font-size:.82rem}.capture-local-panel{display:grid;gap:.8rem;padding:1rem;border:1px solid var(--color-border);border-radius:22px;background:#fffaf2e6}.capture-local-panel h3,.capture-local-panel p{margin:0}.capture-photo-preview{display:grid;grid-template-columns:72px minmax(0,1fr);gap:.75rem;align-items:center}.capture-photo-preview img{width:72px;height:72px;border-radius:12px;object-fit:cover;border:1px solid var(--color-border)}.quick-draft-items{display:grid;gap:.6rem;grid-column:1/-1}.quick-draft-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(120px,.4fr) auto;gap:.65rem;align-items:center;padding:.75rem;border-radius:16px;background:var(--color-surface-tint)}.shopping-urgency-pill{display:inline-flex;align-items:center;border-radius:999px;padding:.34rem .78rem;background:#60714a1f;color:#465238;font-size:.82rem;font-weight:800}.shopping-urgency-pill[data-urgency=depleted],.shopping-urgency-pill[data-urgency=critical]{background:#a9392724;color:var(--color-danger-text)}.empty-state{border-style:dashed;border-radius:24px;padding:2rem 1.4rem;text-align:center}.compact-empty-state{padding:1.6rem 1.2rem}@media(max-width:760px){.durability-grid,.depletion-card,.staple-row,.shopping-plan-row,.route-group-card,.shopping-mode-row,.quick-draft-row,.capture-tool-grid,.price-reference-row,.budget-form,.planning-settings-editor,.shopping-metadata-editor,.archived-row,.guidance-card{grid-template-columns:1fr}.depletion-settings,.planning-settings-card,.depletion-editor-actions{flex-direction:column;align-items:flex-start}.section-actions,.archived-actions,.guidance-actions{justify-content:flex-start}.depletion-meter,.staple-value,.shopping-plan-stock,.shopping-plan-date,.route-group-total,.shopping-mode-totals,.price-reference-value{justify-items:start;text-align:left}.depletion-date{justify-self:start}}
