:root{color:#0f172a;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#f8fafc;font-family:Inter,Segoe UI,sans-serif;font-weight:400;line-height:1.5}*{box-sizing:border-box}html{background:#f8fafc}body{background:linear-gradient(#f8fafc 0%,#eef4ff 100%);min-width:320px;min-height:100vh;margin:0;overflow-x:hidden}#root{min-height:100vh}button,input,select{font:inherit}input,select,textarea{max-width:100%;font-size:16px}img{max-width:100%;display:block}.login-screen{justify-content:center;align-items:center;min-height:100vh;padding:24px;display:flex}.login-card{background:#fff;border:1px solid #e2e8f0;border-radius:16px;width:100%;max-width:360px;padding:32px;box-shadow:0 20px 50px #0f172a14}.login-card h1{margin:8px 0 24px;font-size:1.6rem}.login-card label{color:#334155;gap:8px;margin-bottom:16px;font-size:.9rem;display:grid}.login-card input{border:1px solid #cbd5e1;border-radius:12px;padding:.75rem}.login-error{color:#b91c1c;margin:0 0 12px;font-size:.9rem}.login-card .primary-btn{width:100%}.loading{color:#64748b}.app-shell{max-width:1200px;margin:0 auto;padding:16px}.topbar{flex-direction:column;gap:12px;margin-bottom:16px;display:flex}.eyebrow{letter-spacing:.2rem;text-transform:uppercase;color:#6b7cff;margin:0;font-size:.7rem;font-weight:700}.topbar h1{color:#0f172a;overflow-wrap:anywhere;margin:4px 0 0;font-size:1.7rem}.topbar .actions{flex-wrap:wrap;gap:8px;display:flex}button{color:#fff;cursor:pointer;font:inherit;background:#1f6feb;border:0;border-radius:12px;padding:.7rem 1rem}button.secondary{color:#243b53;background:#eef2ff}button.danger{color:#b91c1c;background:#fee2e2}button:disabled{opacity:.6;cursor:not-allowed}.notice{color:#0f172a;background:#e0f2fe;border:1px solid #bae6fd;border-radius:12px;margin-bottom:14px;padding:.8rem 1rem;font-size:.9rem}.icon-btn{color:#243b53;background:#eef2ff;border-radius:50%;width:40px;height:40px;padding:0;font-size:1.05rem;font-weight:700}.help-panel{color:#334155;background:#fff;border:1px solid #e2e8f0;border-radius:16px;margin-bottom:16px;padding:16px;font-size:.9rem}.help-panel h2{color:#0f172a;margin:0 0 8px;font-size:1rem}.help-panel h2:not(:first-child){margin-top:16px}.help-panel ul{flex-direction:column;gap:6px;margin:0;padding-left:18px;display:flex}.notes-block{color:#334155;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;margin:12px 0 0;padding:10px 12px;font-size:.9rem}.quick-add{gap:8px;margin-bottom:16px;display:flex}.quick-add input{font:inherit;border:1px solid #dbe4f0;border-radius:12px;flex:1;min-width:0;padding:.7rem .8rem}.quick-add input[type=number]{flex:0 0 72px}.quick-add button{flex:none}.summary-grid{grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:16px;display:grid}.summary-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:14px}.summary-card span{letter-spacing:.04rem;text-transform:uppercase;color:#64748b;font-size:.68rem;display:block}.summary-card strong{color:#0f172a;margin:6px 0 2px;font-size:1.35rem;display:block}.summary-card small{color:#475569;font-size:.75rem}.summary-card.highlight{background:linear-gradient(135deg,#ffedd5 0%,#ffe4e6 100%)}.filter-row{flex-direction:column;gap:10px;margin-bottom:14px;display:flex}.chips{flex-wrap:wrap;gap:8px;display:flex}.chip{color:#243b53;background:#eef2ff;padding:.45rem .85rem;font-size:.85rem}.chip.active{color:#fff;background:#1f6feb}.filter-row input{width:100%;min-width:0;font:inherit;border:1px solid #dbe4f0;border-radius:12px;padding:.7rem .9rem}.item-grid{grid-template-columns:1fr;gap:12px;display:grid}.item-card{cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:16px;overflow:hidden;box-shadow:0 6px 20px #0f172a0a}.item-card .photo{color:#64748b;background:#f1f5f9;justify-content:center;align-items:center;width:100%;height:150px;font-size:.75rem;display:flex}.item-card .photo img{object-fit:cover;width:100%;height:100%}.item-card .body{padding:12px 14px}.item-card .name{color:#0f172a;overflow-wrap:anywhere;font-weight:700}.item-card .meta{color:#64748b;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;min-width:0;margin-top:8px;font-size:.82rem;display:flex}.item-card .meta span{overflow-wrap:anywhere;min-width:0}.item-card .qty{color:#334155;font-weight:600}.item-card .qty.low{color:#b45309}.item-card .value{color:#0f172a;font-weight:700}.filter-controls{align-items:center;gap:8px;min-width:0;display:flex}.filter-controls input{flex:1;min-width:0}.view-toggle{background:#eef2ff;border-radius:12px;gap:4px;padding:4px;display:flex}.view-toggle button{color:#243b53;background:0 0;border-radius:9px;padding:.4rem .7rem}.view-toggle button.active{color:#fff;background:#1f6feb}.list-view{flex-direction:column;gap:8px;display:flex}.list-row{cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:14px;align-items:center;gap:12px;min-width:0;padding:10px 12px;display:flex;box-shadow:0 4px 14px #0f172a08}.list-row .thumb{color:#94a3b8;background:#f1f5f9;border-radius:10px;flex:0 0 48px;justify-content:center;align-items:center;width:48px;height:48px;display:flex;overflow:hidden}.list-row .thumb img{object-fit:cover;width:100%;height:100%}.list-row .info{flex:1;min-width:0}.list-row .name{color:#0f172a;overflow-wrap:anywhere;font-weight:700}.list-row .sub{color:#64748b;flex-wrap:wrap;align-items:center;gap:8px;margin-top:2px;font-size:.8rem;display:flex}.low-tag{color:#9a3412;background:#ffedd5;border-radius:999px;align-items:center;padding:.05rem .5rem;font-size:.68rem;font-weight:700;display:inline-flex}.list-row .value{color:#0f172a;white-space:nowrap;font-weight:700}.badge{color:#3730a3;background:#e0e7ff;border-radius:999px;align-items:center;padding:.1rem .55rem;font-size:.7rem;font-weight:700;display:inline-flex}.empty-state{color:#64748b;text-align:center;padding:24px 8px}.panel{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:16px}.form-grid{grid-template-columns:minmax(0,1fr);gap:12px;display:grid}.form-grid label{color:#334155;flex-direction:column;gap:6px;min-width:0;font-size:.85rem;display:flex}.form-grid input,.form-grid select,.form-grid textarea{width:100%;min-width:0;font:inherit;border:1px solid #dbe4f0;border-radius:10px;padding:.7rem .8rem}.form-grid textarea{resize:vertical;min-height:56px}.primary-btn{width:100%;margin-top:4px}.form-actions{gap:8px;margin-top:4px;display:flex}.form-actions button{flex:1}.preview-image{object-fit:cover;border-radius:12px;width:100%;max-height:220px}.detail-photo{object-fit:cover;background:#f1f5f9;border-radius:16px;width:100%;height:200px}.detail-photo.placeholder{color:#64748b;justify-content:center;align-items:center;display:flex}.detail-head{margin-top:14px}.detail-title{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.detail-title h2{color:#0f172a;overflow-wrap:anywhere;margin:0}.detail-loc{color:#64748b;margin:6px 0 0;font-size:.9rem}.low-stock-note{color:#9a3412;background:#ffedd5;border:1px solid #fed7aa;border-radius:10px;margin:8px 0 0;padding:8px 12px;font-size:.85rem}.metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px;display:grid}.metric{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;min-width:0;padding:12px}.metric span{text-transform:uppercase;letter-spacing:.04rem;color:#64748b;font-size:.68rem;display:block}.metric strong{color:#0f172a;overflow-wrap:anywhere;margin-top:4px;font-size:1.15rem;display:block}.section{margin-top:22px}.section h2{color:#0f172a;margin:0 0 12px;font-size:1.05rem}@media (width>=700px){.app-shell{padding:24px}.topbar{flex-direction:row;justify-content:space-between;align-items:center}.summary-grid{grid-template-columns:repeat(4,1fr)}.filter-row{flex-direction:row;justify-content:space-between;align-items:center}.filter-controls{flex:none}.filter-controls input{flex:0 240px}.item-grid,.form-grid{grid-template-columns:repeat(2,1fr)}.form-grid .primary-btn,.form-grid .preview-image,.form-grid .form-actions,.form-grid .span-full{grid-column:1/-1}.metrics-grid{grid-template-columns:repeat(3,1fr)}}@media (width>=1000px){.item-grid{grid-template-columns:repeat(3,1fr)}}
