@font-face{font-family:DaianSans;src:url('/assets/brand/iransansx-variable.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
:root{--brand-orange:#ff4500;--brand-ink:#141414;--brand-text:#262626;--brand-action-text:#b83200;--brand-soft:#fff2ec;--brand-border:#ffd2bf;--brand-muted:#737373;font-family:DaianSans,Tahoma,Arial,sans-serif;color:var(--brand-text);background:#f6f6f6}
body{background:#f6f6f6;color:var(--brand-text)}
button:focus-visible,input:focus-visible,select:focus-visible{outline-color:#ff9b76}
.eyebrow{color:var(--brand-action-text);letter-spacing:1.6px}
.page-heading h1,.section-head h2,.scan-title h2,.selected-product h3,.user-card h3,.modal-heading h2,.scanner-heading h2,.category-card h3,.category-help strong{color:#242424}
.page-heading p,.section-head p,.scan-title p,.search-hint,.result-main small,.recent-card small,.user-card p,.modal-heading p,.scanner-heading p,.result-count{color:var(--brand-muted)}
.primary-button{background:var(--brand-orange);color:var(--brand-ink);box-shadow:0 5px 14px #ff450024;font-weight:800}
.primary-button:hover{background:#ff652c;color:var(--brand-ink);box-shadow:0 7px 18px #ff450033}
.outline-button{background:white;color:var(--brand-action-text);border-color:var(--brand-border)}
.outline-button:hover{background:var(--brand-soft)}
.text-button,.small-button{color:var(--brand-action-text)}
.small-button.danger{color:#b63838}
.form-stack label,.modal-form label,.count-form label,.category-form label,.new-barcode-field>label{color:#4b4b4b}
.form-stack input,.modal-form input,.modal-form select,.count-form input,.category-form input,.compact-input{border-color:#dedede;background:#fcfcfc;color:#262626}
.form-stack input:focus,.modal-form input:focus,.modal-form select:focus,.count-form input:focus,.category-form input:focus,.compact-input:focus{border-color:var(--brand-orange);box-shadow:0 0 0 4px #ff450012;background:white}
.form-stack input::placeholder,.modal-form input::placeholder,.count-form input::placeholder,.category-form input::placeholder{color:#999}
.login-screen{background:radial-gradient(ellipse at 15% 15%,#492211 0,#1c1917 45%,#141414 100%);padding:24px 0;min-height:100dvh}
.login-card{width:min(460px,calc(100% - 32px));padding:32px;border-radius:24px;box-shadow:0 28px 80px #0006}
.brand-lockup{flex-direction:column;align-items:center;gap:15px;background:var(--brand-ink);margin:-32px -32px 0;padding:27px 24px 23px;border-radius:24px 24px 0 0;border-bottom:3px solid var(--brand-orange);text-align:center}
.brand-wordmark{display:block;width:184px;height:auto;max-width:100%;object-fit:contain}
.brand-app-title strong{color:#fff;font-size:1.35rem;line-height:1.5;letter-spacing:0;font-weight:800}
.brand-app-title span{color:#b8b8b8;font-size:.73rem;margin-top:3px}
.login-copy{margin:25px 0 21px}.login-copy h1{font-size:1.4rem;color:#242424}.login-copy p{color:#777;line-height:1.9}
.login-foot{color:#777;border-top-color:#eee}.password-toggle{color:#777}
.decor-one{background:var(--brand-orange);opacity:.1}.decor-two{background:#cf3a05;opacity:.08}
.topbar{background:var(--brand-ink);border-bottom:2px solid var(--brand-orange);color:#fff}
.topbar-brand{gap:10px;min-width:0}.topbar-brand>div{min-width:0}.topbar-brand strong{color:white;font-size:1.05rem}.topbar-brand span{color:#aaa;font-size:.7rem}
.brand-app-icon{padding:0;object-fit:contain;background:transparent!important;flex-shrink:0}
.topbar .connection{color:#bdbdbd}.topbar .user-chip strong{color:#eee}.topbar .user-chip span{color:#aaa}
.topbar .avatar{background:#34241d;color:#ff9a75}.topbar .icon-button{color:#ddd}.topbar .icon-button:hover{background:#2b2b2b;color:#ff8c60}
.sidebar{background:#191919;color:#fff}.sidebar-brand{display:grid;justify-items:start;gap:10px;padding:3px 11px 24px;margin-bottom:20px;border-bottom:1px solid #353535}
.sidebar-brand img{width:158px;height:auto;max-width:100%;object-fit:contain}.sidebar-brand span{font-size:.6rem;color:#999;letter-spacing:3px}
.sidebar-heading{color:#959595}.nav-item{color:#c4c4c4}.nav-item:hover{background:#2c2c2c;color:#fff}
.nav-item.active{background:var(--brand-orange);color:var(--brand-ink);font-weight:800;box-shadow:0 4px 14px #ff45001c}
.nav-item kbd{color:#aaa;border-color:#555}.nav-item.active kbd{color:#3e1d12;border-color:#c84617}
.tip-card{background:#272727;color:#f1f1f1;border:1px solid #343434}.tip-icon{color:#ff895e}.tip-card p{color:#aaa}.sidebar-meta{color:#888}
.stat-card,.scan-card,.table-card,.recent-card,.user-card,.category-card,.category-editor,.import-card{border-color:#e5e5e5;box-shadow:0 5px 18px #00000004}
.stat-card>div span{color:#777}.stat-card>div strong{color:#262626}
.stat-icon.blue{background:#fff0e8;color:#ba3200}.stat-icon.purple{background:#efefef;color:#5b5b5b}
.scan-pulse,.modal-icon,.scanner-heading>span,.category-symbol,.import-card-icon{background:var(--brand-soft);color:var(--brand-action-text)}
.search-box{border-color:#e2e2e2;background:#fafafa}.search-box:focus-within{border-color:var(--brand-orange);background:#fff;box-shadow:0 0 0 5px #ff450010}
.search-box input{color:#262626}.search-box input::placeholder{color:#939393}.search-symbol,.search-hint span,.table-search span{color:var(--brand-action-text)}
.camera-button{background:var(--brand-soft);color:var(--brand-action-text);border-color:var(--brand-border)}
.hotkey,.enter-hint{border-color:#ddd;color:#888}.clear-search{color:#888}
.result-item{border-color:#e7e7e7}.result-item:hover{border-color:#ff8c60;background:#fff7f3}.result-arrow{color:var(--brand-action-text)}
.result-thumb,.product-thumb{background:#f2eee9;color:#a37460}
.selected-product-box{background:#fff8f4;border-color:var(--brand-border)}
.selected-product p{color:#7d716a}.source-pill{background:#ffe6d9;color:#9e310b}.supplemental-name{color:#81766f}
.price-review-hint{background:#fff;border-color:#ecd9cc;color:#7b6a60}.price-review-hint.from-mahak{background:#fff7e6;border-color:#efd08d;color:#8d6419}
.quantity-cell{color:var(--brand-action-text)}
.table-search{border-color:#e2e2e2}.table-search input{color:#333}th{background:#fafafa;color:#777}td{color:#555;border-bottom-color:#eee}td strong{color:#262626}td small{color:#888}
.empty-inline{background:#fffaf7;border-color:#e8d4c9;color:#88766c}.empty-state{color:#888}.empty-state span{color:#d9b4a2}.empty-state strong{color:#5f5048}
.avatar{background:var(--brand-soft);color:var(--brand-action-text)}
.user-notice,.priority-banner,.category-help{background:var(--brand-soft);border-color:var(--brand-border);color:#9c3712}
.user-notice p,.priority-banner p,.category-help p{color:#7f6c61}.priority-banner>span,.category-help>span{color:var(--brand-action-text)}
.role-tag{background:#f1f1f1;color:#666}.active-tag{background:#e4f8ee;color:#168358}.inactive-tag{background:#f9e8e8;color:#a65353}
.category-code-block strong{color:#a9340a}.category-code-block>span,.category-card p,.category-form small,.new-barcode-field>small{color:#777}
.category-filter{color:#666}.category-filter input{accent-color:var(--brand-orange)}
.import-card.primary-source{border-color:var(--brand-border)}.import-card h2,.mapping-guide strong,.mapping-example strong{color:#262626}
.mapping-guide{border-color:#e5e5e5}.mapping-guide>div:first-child{color:#777}.mapping-example{border-color:#e5e5e5}.mapping-example small{color:var(--brand-action-text)}
.import-card input[type=file]{border-color:#decabd;background:#fffaf7;color:#7d716a}
.scanner-status{color:#777}.scan-corners{border-color:#ff8c60}.video-frame{background:#141414}
.modal-close{color:#888}.toast{background:#262626;box-shadow:0 8px 24px #0002;border-right:3px solid var(--brand-orange)}.toast.bad{background:#942f35;border-right-color:#f3a2a8}
.duplicate-summary div{border-color:#e5e5e5;background:#fafafa;color:#777}.duplicate-summary div:last-child{background:var(--brand-soft);border-color:var(--brand-border);color:#a3330a}.duplicate-question{color:#4f433b}
@media(max-width:720px){.login-card{padding:24px}.brand-lockup{margin:-24px -24px 0;padding:24px 20px 20px}.brand-wordmark{width:166px}.brand-app-title strong{font-size:1.22rem}.topbar-brand strong{font-size:.9rem}.sidebar-brand{padding-bottom:18px;margin-bottom:15px}.sidebar-brand img{width:146px}}
@media(max-width:420px){.topbar-brand strong{font-size:.84rem}.topbar-brand{gap:7px}.login-copy h1{font-size:1.25rem}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
.new-product-count{margin:0;padding:15px;border:1px solid var(--brand-border);border-radius:13px;background:#fff8f4;min-width:0}
.new-product-count legend{padding:0 7px;font-size:.8rem;font-weight:800;color:var(--brand-action-text)}
.new-count-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:10px}
.new-count-hint{font-size:.7rem;line-height:1.9;color:#7b6a60;margin:10px 0 12px}
.new-count-fields label,.modal-form label,.modal-form select{min-width:0}
.new-product-count input{background:#fff}
#newProductSave:disabled{opacity:.65;cursor:wait}
@media(max-width:600px){.new-count-fields{grid-template-columns:1fr}.new-product-count{padding:12px}}
.auth-loading-card{width:min(380px,calc(100% - 32px));padding:32px 24px;text-align:center;color:#f5f5f5;display:grid;justify-items:center;gap:14px;background:#202020;border:1px solid #3b2b22;border-radius:22px}
.auth-loading-card img{border-radius:18px}.auth-loading-card h1{font-size:1.4rem;margin:0}.auth-loading-card p{font-size:.82rem;line-height:1.9;color:#c4c4c4;margin:0}
.auth-loading-spinner{display:block;width:27px;height:27px;border:3px solid #ffffff24;border-top-color:var(--brand-orange);border-radius:50%;animation:auth-spin .8s linear infinite}
@keyframes auth-spin{to{transform:rotate(360deg)}}
