:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;color:#1f2937;background:#f8fafc;line-height:1.5;font-weight:400}*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(circle at top left,rgba(34,197,94,.08),transparent 24%),radial-gradient(circle at top right,rgba(59,130,246,.08),transparent 22%),linear-gradient(180deg,#f8fafc,#eef2f7);color:#1f2937}button,input,select{font:inherit}button{border:none}#root{min-height:100vh}.dashboard-shell{max-width:1320px;margin:0 auto;padding:28px 18px 40px}.dashboard-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px}.eyebrow{margin:0 0 8px;font-size:.85rem;text-transform:uppercase;letter-spacing:.08em;color:#2563eb;font-weight:700}.dashboard-header h1{margin:0;font-size:clamp(2rem,4vw,3rem);line-height:1.05;color:#0f172a}.subtext{margin:10px 0 0;color:#475569;max-width:720px}.error-text{margin:12px 0 0;color:#b45309;font-weight:600}.last-updated{margin:10px 0 0;color:#64748b;font-size:.95rem}.header-actions{display:flex;flex-direction:column;align-items:flex-end;gap:12px}.refresh-btn{border:1px solid #d1d5db;background:#fff;color:#0f172a;border-radius:14px;padding:11px 16px;font-weight:700;cursor:pointer;box-shadow:0 6px 18px #0f172a14;transition:transform .15s ease,box-shadow .15s ease,background .15s ease}.refresh-btn:hover:not(:disabled){transform:translateY(-1px);background:#f8fafc;box-shadow:0 10px 22px #0f172a1a}.refresh-btn:disabled{opacity:.7;cursor:not-allowed}.backend-pill{padding:10px 14px;border-radius:999px;font-size:.9rem;font-weight:700;border:1px solid transparent;white-space:nowrap}.backend-pill.online{background:#dcfce7;color:#166534;border-color:#86efac}.backend-pill.offline{background:#fef3c7;color:#92400e;border-color:#fcd34d}.summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}.ai-multi-line{display:block;line-height:1.3;font-size:1.1rem}.summary-card,.panel,.inventory-card,.add-ingredient-card{background:#fffffff2;border:1px solid #e5e7eb;border-radius:20px;box-shadow:0 10px 28px #0f172a12}.summary-card{padding:16px 18px}.summary-label{display:block;font-size:.9rem;color:#64748b;margin-bottom:8px}.summary-value{font-size:1.45rem;font-weight:800;color:#0f172a}.panel{padding:18px;margin-bottom:22px}.panel-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px}.panel-header h2{margin:0;font-size:1.2rem;color:#0f172a}.panel-header p{margin:6px 0 0;color:#64748b}.panel-controls{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;justify-content:flex-end}.sort-control{display:grid;gap:6px}.sort-control span{font-size:.82rem;color:#64748b;font-weight:700}.sort-control select{min-width:220px;border:1px solid #d1d5db;background:#fff;color:#0f172a;border-radius:12px;padding:10px 12px}.reset-btn{border:1px solid #d1d5db;background:#fff;color:#0f172a;border-radius:12px;padding:10px 14px;font-weight:700;cursor:pointer}.reset-btn:hover{background:#f8fafc}.inventory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.inventory-card{position:relative;overflow:visible}.card-menu-wrap{position:absolute;top:10px;right:10px;z-index:3}.menu-trigger{width:34px;height:34px;border-radius:999px;background:#ffffffeb;color:#0f172a;border:1px solid #dbe3ee;box-shadow:0 8px 18px #0f172a1f;cursor:pointer;font-size:1.35rem;line-height:1;display:grid;place-items:center}.menu-trigger:hover{background:#fff}.card-menu{position:absolute;top:42px;right:0;min-width:140px;background:#fff;border:1px solid #e5e7eb;border-radius:14px;box-shadow:0 14px 28px #0f172a24;overflow:hidden}.card-menu-item{width:100%;text-align:left;background:#fff;color:#0f172a;padding:11px 14px;cursor:pointer;font-weight:600}.card-menu-item:hover{background:#f8fafc}.card-menu-item.danger{color:#b91c1c}.ingredient-image{width:100%;height:88px;object-fit:cover;display:block;border-top-left-radius:20px;border-top-right-radius:20px;border-bottom:1px solid #e5e7eb}.inventory-card-body{padding:14px}.inventory-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:12px}.ingredient-identity{display:flex;align-items:center;gap:12px}.ingredient-identity h3{margin:0;font-size:1rem;color:#0f172a;padding-right:8px}.ingredient-identity p{margin:4px 0 0;color:#64748b;font-size:.9rem}.status-badge{border-radius:999px;padding:5px 9px;font-size:.78rem;font-weight:700;white-space:nowrap;border:1px solid transparent}.status-badge.critical{background:#fee2e2;color:#b91c1c;border-color:#fecaca}.status-badge.low{background:#fef3c7;color:#b45309;border-color:#fcd34d}.status-badge.normal{background:#fef9c3;color:#a16207;border-color:#fde68a}.status-badge.full{background:#dcfce7;color:#166534;border-color:#86efac}.progress-wrap{display:flex;align-items:center;gap:10px;margin-bottom:12px}.progress-track{flex:1;height:12px;background:#e5e7eb;border-radius:999px;overflow:hidden}.progress-fill{height:100%;border-radius:999px;transition:width .25s ease}.progress-fill.critical{background:linear-gradient(135deg,#ef4444,#dc2626)}.progress-fill.low{background:linear-gradient(135deg,#f59e0b,#d97706)}.progress-fill.normal{background:linear-gradient(135deg,#facc15,#eab308)}.progress-fill.full{background:linear-gradient(135deg,#22c55e,#16a34a)}.progress-text{min-width:42px;text-align:right;font-weight:700;color:#0f172a;font-size:.92rem}.refill-btn{width:100%;border-radius:12px;padding:10px 12px;font-weight:700;cursor:pointer;background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;transition:transform .15s ease,opacity .15s ease,box-shadow .15s ease;box-shadow:0 8px 18px #2563eb2e;font-size:.94rem}.refill-btn:hover{transform:translateY(-1px);opacity:.96}.add-ingredient-card{min-height:206px;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:22px;border-style:dashed;color:#1d4ed8;transition:transform .15s ease,box-shadow .15s ease,background .15s ease}.add-ingredient-card:hover{transform:translateY(-1px);background:#f8fbff}.add-card-icon{width:56px;height:56px;border-radius:999px;background:#dbeafe;color:#1d4ed8;display:grid;place-items:center;font-size:1.8rem;font-weight:700}.add-card-text{display:flex;flex-direction:column;gap:6px;text-align:center}.add-card-text strong{font-size:1rem;color:#0f172a}.add-card-text span{color:#64748b;font-size:.92rem}.analytics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.bar-chart{display:grid;gap:12px}.bar-row{display:grid;grid-template-columns:140px 1fr 40px;align-items:center;gap:12px}.bar-label{color:#334155;font-size:.95rem;font-weight:600}.bar-track{height:14px;background:#e5e7eb;border-radius:999px;overflow:hidden}.bar-fill{height:100%;border-radius:999px;background:linear-gradient(135deg,#60a5fa,#22c55e)}.bar-value{text-align:right;font-weight:700;color:#0f172a}.line-chart-wrap{width:100%;overflow-x:auto}.line-chart-svg{width:100%;min-width:860px;height:auto;display:block}.axis-line{stroke:#cbd5e1;stroke-width:2}.line-path{fill:none;stroke:#2563eb;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.line-dot{fill:#22c55e;stroke:#fff;stroke-width:2}.axis-label{fill:#64748b;font-size:12px}.value-label{fill:#0f172a;font-size:12px;font-weight:700}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;display:flex;align-items:center;justify-content:center;padding:18px;z-index:1000}.modal-card{width:min(100%,520px);background:#fff;border-radius:22px;box-shadow:0 24px 44px #0f172a38;padding:22px}.modal-header{display:flex;justify-content:space-between;gap:14px;margin-bottom:16px}.modal-header h3{margin:0;font-size:1.25rem;color:#0f172a}.modal-header p{margin:6px 0 0;color:#64748b}.modal-close-btn{width:38px;height:38px;border-radius:999px;background:#f1f5f9;color:#334155;cursor:pointer;font-size:1.5rem;line-height:1;flex-shrink:0}.ingredient-form{display:grid;gap:14px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-field{display:grid;gap:8px}.form-field span{font-size:.92rem;color:#334155;font-weight:600}.form-field input{width:100%;border:1px solid #dbe3ee;border-radius:12px;padding:12px 13px;background:#fff;color:#0f172a}.form-field input:focus,.sort-control select:focus{outline:none;border-color:#60a5fa;box-shadow:0 0 0 4px #60a5fa26}.missing-picture-note{padding:12px 14px;border-radius:14px;background:#eff6ff;color:#1e40af;font-size:.92rem}.form-error{margin:0;color:#b91c1c;font-weight:600}.checkbox-row{display:flex;align-items:center;gap:10px;color:#334155;margin-bottom:18px}.checkbox-row input{width:16px;height:16px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:6px}.primary-btn,.secondary-btn,.danger-btn{border-radius:12px;padding:11px 16px;font-weight:700;cursor:pointer}.primary-btn{background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff}.secondary-btn{background:#f1f5f9;color:#334155}.danger-btn{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff}@media (max-width: 1100px){.summary-grid,.analytics-grid{grid-template-columns:1fr 1fr}.inventory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-header,.panel-header{flex-direction:column;align-items:stretch}.header-actions{align-items:stretch}.panel-controls{justify-content:flex-start}}@media (max-width: 700px){.summary-grid,.analytics-grid,.inventory-grid,.form-row{grid-template-columns:1fr}.dashboard-shell{padding:20px 14px 36px}.bar-row{grid-template-columns:100px 1fr 36px}.ingredient-image{height:78px}.modal-card{padding:18px}.modal-actions{flex-direction:column}.primary-btn,.secondary-btn,.danger-btn,.reset-btn,.sort-control select{width:100%}}
