:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#252746;background:#f6f7fc;font-size:14px}*{box-sizing:border-box}body{margin:0}.shell{display:flex;min-height:100vh}.sidebar{width:246px;background:white;border-right:1px solid #ebedf7;display:flex;flex-direction:column;padding:26px 16px;flex-shrink:0}.brand{display:flex;align-items:center;gap:11px;margin:3px 8px 35px}.brand-icon{background:linear-gradient(135deg,#9744f9,#4d31ce);color:white;border-radius:13px;font-size:27px;display:grid;place-items:center;width:42px;height:42px;box-shadow:0 8px 16px #6438db33}.brand strong{font-size:20px;letter-spacing:-.6px}.brand small{display:block;font-size:9px;letter-spacing:2px;color:#8a89a5;margin-top:3px}.menu-title{font-size:10px;font-weight:800;letter-spacing:1.2px;color:#a5a7ba;margin:0 13px 12px}nav{display:grid;gap:5px;margin-bottom:30px}.nav-link{border:0;background:transparent;text-align:left;display:flex;align-items:center;gap:14px;border-radius:11px;padding:12px 13px;color:#6c718a;cursor:pointer;font-size:13px;font-weight:600}.nav-link span:first-child{flex:1}.nav-link:hover{background:#f6f2ff;color:#6632d9}.nav-link.active{background:linear-gradient(100deg,#743de8,#9b51f1);color:white;box-shadow:0 7px 15px #7941df33}.count{margin-left:auto;background:#ede6ff;color:#753de4;padding:2px 7px;border-radius:10px}.sidebar-bottom{margin-top:auto}.premium{background:linear-gradient(135deg,#2d1d8d,#7a36e8 70%,#a94ff0);color:white;border-radius:17px;padding:20px;margin-bottom:16px;min-height:156px;box-shadow:0 12px 23px #7a3bdf28}.premium-emoji{font-size:29px;color:#ffd36d}.premium strong{display:block;margin:10px 0}.premium p{font-size:11px;line-height:1.6;color:#e6d7ff}.version{font-size:11px;color:#a1a4b7;text-align:center}.main{flex:1;min-width:0}.topbar{height:77px;background:white;border-bottom:1px solid #eceefa;display:flex;align-items:center;justify-content:space-between;padding:0 35px}.crumb{color:#8c8fa6}.crumb span{padding:0 12px;color:#c3c4d2}.crumb b{color:#34344c}.top-actions{display:flex;align-items:center;gap:13px}.status-dot{width:8px;height:8px;background:#2bc899;border-radius:50%}.local-status{color:#84899e;font-size:12px}.icon-btn,.avatar{border:1px solid #e8e7f5;background:white;border-radius:12px;width:39px;height:39px;cursor:pointer;position:relative;color:#6744d9;font-size:20px}.icon-btn em{position:absolute;right:-5px;top:-6px;background:#ef5686;color:white;border-radius:50%;font:10px Arial;padding:3px 6px}.avatar{font-size:11px;background:#efe8ff;font-weight:800}.content{max-width:1500px;padding:28px 34px 65px;margin:auto}.hero{border-radius:22px;min-height:234px;overflow:hidden;background:radial-gradient(circle at 82% 32%,#8c52ff 0%,transparent 34%),linear-gradient(112deg,#15105e,#4025b0 54%,#6e36d9);color:white;position:relative;display:flex;align-items:center;padding:34px 42px;box-shadow:0 15px 28px #5943c52a}.hero h1{font-size:32px;max-width:530px;line-height:1.23;margin:0 0 12px;letter-spacing:-.7px}.hero p{font-size:13px;color:#d8d1ff;line-height:1.6;max-width:450px}.hero .planet{position:absolute;right:12%;top:15px;font-size:136px;filter:drop-shadow(0 15px 20px #120c5d);transform:rotate(12deg)}.hero:before{content:'✦   ·      ✧         ✦';position:absolute;right:8%;top:12%;font-size:24px;letter-spacing:32px;color:#c7b6ff80}.btn{background:#7542e8;color:white;border:0;padding:11px 17px;border-radius:10px;cursor:pointer;font-weight:700;font-size:12px}.btn:hover{filter:brightness(1.08)}.btn.secondary{background:#f0eaff;color:#7040d4}.hero .btn{background:white;color:#5f31ce;margin-top:10px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin:25px 0 13px}.section-heading h2{font-size:17px;margin:0}.muted{color:#9b9eb1;font-size:12px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.card{background:white;border:1px solid #edf0f8;border-radius:17px;padding:19px;box-shadow:0 5px 18px #3c326808}.metric .icon{width:37px;height:37px;border-radius:11px;background:#f0eaff;color:#7441e8;display:grid;place-items:center;font-size:20px}.metric small{color:#9699ac;display:block;margin:14px 0 8px;font-weight:600}.metric strong{font-size:26px}.metric p{color:#a1a4b4;font-size:11px;margin:9px 0 0}.modules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.module{min-height:135px;display:flex;flex-direction:column;gap:9px}.module .module-icon{width:39px;height:39px;border-radius:12px;display:grid;place-items:center;background:#f2edff;font-size:21px}.module h3{margin:0;font-size:14px}.module p{font-size:12px;color:#9599aa;margin:0;line-height:1.5}.module button{margin-top:auto;align-self:flex-start;background:transparent;border:0;color:#7040d4;font-weight:700;padding:4px 0;cursor:pointer}.two-cols{display:grid;grid-template-columns:1.4fr 1fr;gap:15px}.empty{padding:45px 20px;text-align:center;color:#9296aa;background:repeating-linear-gradient(120deg,#fff,#fff 18px,#faf9ff 18px,#faf9ff 19px);border-radius:12px}.empty strong{display:block;color:#50536a;margin-bottom:9px}.page-title{font-size:25px;margin:0 0 8px}.page-desc{color:#8c90a6;margin-bottom:25px;line-height:1.5}.form-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:17px 0;border-bottom:1px solid #f0f0f6}.form-row:last-child{border:0}.form-row label{font-weight:700}.form-row small{display:block;color:#989cad;margin-top:6px;font-weight:400}.form-row input:not([type=checkbox]),.form-row select{width:240px;max-width:48%;padding:11px;border:1px solid #e4e5f0;border-radius:9px;background:#fff;color:#45465c}.form-row input[type=checkbox]{width:19px;height:19px;accent-color:#7441e8}.pill{font-size:11px;padding:5px 9px;border-radius:8px;background:#e7f9f0;color:#20885d}.pill.soon{background:#f2ecff;color:#7846d4}.notice{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid #f1f1f7;padding:15px 0}.notice:last-child{border:0}.notice p{color:#9498a8;font-size:12px}.notice button{border:0;background:#f1edff;color:#7040d4;padding:8px;border-radius:8px;cursor:pointer}.notice.unread strong:before{content:'●';color:#7941e8;margin-right:7px}.info{background:#f2edff;border-radius:12px;padding:16px;color:#6553a0;font-size:12px;line-height:1.6;margin-bottom:20px}#toast{position:fixed;bottom:25px;right:25px;background:#28244c;color:white;padding:13px 20px;border-radius:12px;opacity:0;pointer-events:none;transition:opacity .2s}#toast.show{opacity:1}@media(max-width:1100px){.metrics{grid-template-columns:repeat(2,1fr)}.modules{grid-template-columns:repeat(2,1fr)}.hero .planet{right:5%;font-size:100px}}@media(max-width:700px){.sidebar{width:67px;padding:16px 7px}.brand{margin:0 4px 25px}.brand>div:last-child,.menu-title,.nav-link span,.sidebar-bottom{display:none}.nav-link{justify-content:center;font-size:20px}.topbar{padding:0 15px}.local-status,.status-dot{display:none}.content{padding:18px 14px}.hero{padding:24px;min-height:200px}.hero h1{font-size:24px}.hero .planet{opacity:.2}.metrics,.modules,.two-cols{grid-template-columns:1fr}.form-row{align-items:flex-start;flex-direction:column}.form-row input:not([type=checkbox]),.form-row select{max-width:100%;width:100%}}

.warehouse-metrics{margin-bottom:18px}.warehouse-tools{display:flex;gap:10px;margin-bottom:15px}.warehouse-tools input,.warehouse-form input,.warehouse-form select{border:1px solid #e4e5f0;border-radius:9px;padding:11px;font:inherit;min-width:0}.warehouse-tools input{flex:1}.table-scroll{overflow:auto}.data-table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}.data-table th{color:#9295a9;font-size:11px;font-weight:700;background:#faf9ff}.data-table th,.data-table td{padding:12px 10px;border-bottom:1px solid #f0f0f7}.data-table td small{display:block;color:#aaa;margin-top:3px}.low-stock{color:#e34c76}.mini-btn{background:#f1eaff;border:0;color:#7040d4;border-radius:7px;padding:7px;cursor:pointer;margin:2px}.modal-overlay{position:fixed;inset:0;background:#14132a99;z-index:10;display:grid;place-items:center;padding:20px}.modal-overlay[hidden]{display:none}.modal{width:min(490px,100%);max-height:90vh;overflow:auto;position:relative;padding:27px}.modal-close{position:absolute;right:16px;top:14px;border:0;background:transparent;cursor:pointer}.warehouse-form{display:grid;gap:14px}.warehouse-form label{display:grid;gap:6px;font-size:12px;font-weight:700}.warehouse-form input,.warehouse-form select{width:100%}.warehouse-form .btn{margin-top:8px}

/* Configurable dashboard (v0.8) */
.dashboard-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:17px;flex-wrap:wrap}.dashboard-toolbar .page-title{margin:0 0 6px}.dashboard-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.dashboard-actions select,.dashboard-widget-handle select{border:1px solid #e6e1f5;border-radius:9px;background:white;padding:9px;color:#51456f}.dashboard-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start}.dashboard-widget{min-width:0}.dashboard-widget>.card{height:100%}.dashboard-widget>.hero{height:100%}.dashboard-widget .metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.dashboard-widget .modules{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-widget-handle{display:flex;justify-content:space-between;align-items:center;gap:8px;background:#f0eaff;color:#6340bb;padding:10px 12px;border:1px dashed #a28ae7;border-radius:12px 12px 0 0;cursor:grab;font-weight:700}.dashboard-widget-handle>div{display:flex;align-items:center;gap:8px}.dashboard-widget-handle label{font-size:11px}.dashboard-widget-handle select{padding:5px}.widget-remove{background:white;border:0;border-radius:7px;font-size:20px;color:#b04e79;cursor:pointer;padding:2px 9px}.dashboard-grid.is-editing .dashboard-widget{border:1px dashed #c5b5ef;border-radius:12px;padding:3px}.dashboard-grid .drop-target{outline:3px solid #8d5aef;outline-offset:2px}.dashboard-widget .section-heading:first-child{margin-top:0}@media(max-width:1150px){.dashboard-widget .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-widget .modules{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:850px){.dashboard-grid{grid-template-columns:1fr}.dashboard-widget{grid-column:1/-1!important}.dashboard-widget .modules{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.dashboard-widget .modules,.dashboard-widget .metrics{grid-template-columns:1fr}.dashboard-widget-handle{flex-wrap:wrap}}

.widget-move{background:#fff;border:1px solid #d8c9f5;border-radius:7px;color:#6340bb;cursor:pointer;padding:5px 9px;font-size:16px}.widget-move:hover{background:#e9dfff}.dashboard-widget-handle span{user-select:none}

/* 0.9: read-only business dashboard */
.status-bars{display:grid;gap:12px;margin:22px 0}.status-bar{display:grid;grid-template-columns:minmax(95px,150px) minmax(80px,1fr) 38px;align-items:center;gap:12px;font-size:13px}.status-bar>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status-track{height:11px;background:#f1ecfc;border-radius:99px;overflow:hidden}.status-fill{height:100%;background:linear-gradient(90deg,#b49afa,#7756dc);border-radius:99px}.status-bar strong{text-align:right}.stock-mini{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}.stock-mini>div{display:flex;justify-content:space-between;gap:10px;padding:12px;border:1px solid #eee8fa;border-radius:10px;font-size:13px}@media(max-width:640px){.status-bar{grid-template-columns:90px 1fr 30px;gap:6px}.stock-mini{grid-template-columns:1fr}}

/* 3.2: function tabs and compact data tables */
.ozon-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0;padding:9px;background:#f7f4fc;border:1px solid #ebe5f7;border-radius:12px;position:sticky;top:0;z-index:5}
.ozon-tab{background:transparent;color:#5b526b;border:0;border-radius:8px;padding:10px 14px;font:inherit;font-size:13px;cursor:pointer}
.ozon-tab:hover{background:#ece5fa}.ozon-tab.active{background:#7955d8;color:white;font-weight:600}
.ozon-panel[hidden],.ozon-panel tr[hidden]{display:none!important}
.ozon-pagination{display:flex;justify-content:flex-end;align-items:center;gap:12px;flex-wrap:wrap;margin:14px 0 0;font-size:13px;color:#5b526b}
.ozon-pagination .btn{padding:8px 12px}.ozon-pagination button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:650px){.ozon-tabs{position:static}.ozon-tab{padding:8px 10px}}

.warehouse-history-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0}.warehouse-history-controls input{min-width:210px;flex:1}.warehouse-history-controls select{min-width:160px}

/* 4.0: staff navigation */
.staff-tabs{display:flex;gap:8px;flex-wrap:wrap;padding:9px;margin:16px 0 22px;background:#f7f4fc;border:1px solid #ebe5f7;border-radius:12px;position:sticky;top:0;z-index:5}
.staff-tab{border:0;background:transparent;border-radius:8px;padding:10px 14px;font:inherit;font-size:13px;color:#5b526b;cursor:pointer}
.staff-tab.active{background:#7955d8;color:white;font-weight:600}
.staff-panel[hidden]{display:none!important}
.staff-panel>.section-heading:first-child{margin-top:0}
@media(max-width:650px){.staff-tabs{position:static}.staff-tab{padding:8px 10px}}

/* 4.1 staff forms */
.staff-dialog{max-width:520px}.staff-dialog h2{margin:0 0 20px}.staff-dialog textarea{width:100%;border:1px solid #e4e5f0;border-radius:9px;padding:11px;font:inherit;resize:vertical}.staff-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:12px}.staff-dialog .warehouse-form label{font-size:13px}

/* 7.1: staff navigation matches the Ozon tabs */
.staff-tabs .staff-tab{font-size:13px}.staff-tabs .staff-tab.active{background:#7955d8;color:#fff;font-weight:600}

/* Ozon catalog/FBS/cargo read-only product preview */
.ozon-product-visual{display:inline-flex;align-items:center;gap:9px;vertical-align:middle;max-width:380px;line-height:1.4}
.ozon-product-thumb{width:44px;height:44px;object-fit:contain;border:1px solid #e5e3ef;border-radius:8px;background:#fff;flex-shrink:0;transition:transform .15s ease,box-shadow .15s ease;transform-origin:left center;position:relative;z-index:1}
.ozon-product-thumb:hover,.ozon-product-thumb:focus{transform:scale(3);z-index:50;box-shadow:0 6px 24px #0003}
.ozon-product-visual strong{font-weight:600;overflow-wrap:anywhere}
.ozon-product-visual small{color:#76738c}
#warehouse-modal .modal{max-height:90vh;overflow-y:auto}#warehouse-modal textarea{max-width:100%;width:100%;resize:vertical;padding:8px;border:1px solid #d5d6df;border-radius:6px;font:inherit}#warehouse-modal #product-publish{margin-top:12px}
/* Compact warehouse selector: avoid duplicating the entire product catalog. */
.warehouse-location-compact{padding:14px 18px;margin:12px 0}
.warehouse-location-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.warehouse-location-row select{max-width:360px;min-width:180px}
.warehouse-location-details{margin-top:12px}
.warehouse-location-details summary{cursor:pointer;font-weight:600}

/* V4.29: compact product cost detail */
[data-cost-editor]{grid-column:1/-1;min-width:0}[data-cost-editor] summary{cursor:pointer;font-weight:600;margin-bottom:8px}.cost-article-list{display:grid;gap:6px;margin:8px 0}.cost-article-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(80px,110px) 34px;gap:6px;align-items:center}.cost-article-row .mini-btn{margin:0;font-size:18px}.cost-article-row input{min-width:0;width:100%}[data-cost-editor] .muted{font-size:12px;margin:5px 0}

/* Acceptance FIX-012: compact existing catalog, full names via native tooltip. */
[data-warehouse-panel="catalog"] .data-table th,[data-warehouse-panel="catalog"] .data-table td{padding:7px 8px;vertical-align:middle}
[data-warehouse-panel="catalog"] .product-name-cell{min-width:170px;max-width:340px;gap:8px}
[data-warehouse-panel="catalog"] .product-name-cell b{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
[data-warehouse-panel="catalog"] .product-photo{width:48px;height:48px;flex:0 0 48px}
[data-warehouse-panel="catalog"] .product-photo img{width:100%;height:100%;object-fit:contain}
[data-warehouse-panel="catalog"] .data-table th{position:sticky;top:0;z-index:1}
.dw-warehouse-pager{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0}

/* Warehouse table preferences: existing catalog only. */
.dw-warehouse-table-settings{margin:8px 0 12px}.dw-warehouse-table-settings summary{cursor:pointer;font-weight:600}.dw-warehouse-settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px;padding:12px 0}.dw-warehouse-column-setting{display:flex;align-items:center;justify-content:space-between;gap:6px}.dw-warehouse-column-setting input[type=number]{width:75px}.dw-warehouse-settings-grid label{display:flex;align-items:center;gap:5px}.dw-warehouse-settings-grid select{max-width:100%}[data-warehouse-panel="catalog"] .data-table [hidden]{display:none!important}[data-warehouse-panel="catalog"] .dw-warehouse-normal th,[data-warehouse-panel="catalog"] .dw-warehouse-normal td{padding:14px 10px}
