:root{color-scheme:dark;--bg:#0b1120;--panel:#111c2e;--border:#223149;--text:#edf3ff;--muted:#8194b1;--blue:#5795ff;--teal:#39d8be;--amber:#f4bc66;--red:#ff858f;--font:'Segoe UI','Microsoft YaHei','PingFang SC',sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:20px}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);font-size:13px;line-height:1.5;background-image:radial-gradient(ellipse at 35% 0%,#112440 0%,transparent 48%)}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--blue);outline-offset:4px}a{color:inherit;text-decoration:none}svg{display:block}button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.rail{position:fixed;inset:0 auto 0 0;width:76px;background:#0c1424;border-right:1px solid #1d2b41;display:flex;align-items:center;flex-direction:column;padding:25px 9px;z-index:20}.brand-mark{width:42px;height:42px;background:#2563eb;border-radius:14px;font-weight:900;font-size:31px;line-height:40px;text-align:center;box-shadow:0 6px 22px #2563eb35}.rail-rule{height:1px;background:#243249;width:32px;margin:25px 0 20px}.rail-link{width:52px;height:65px;border-radius:12px;display:flex;align-items:center;justify-content:center;gap:5px;flex-direction:column;color:#687f9f;font-size:10px;margin:5px 0;transition:background .2s,color .2s}.rail-link svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.rail-link:first-of-type svg{fill:currentColor;stroke:none}.rail-link.selected,.rail-link:hover{background:#1b3153;color:#79adff}.rail-bottom{margin-top:auto;color:#587a9a;font-size:9px;letter-spacing:1.7px;text-align:center}.rail-dot{display:block;background:var(--teal);width:6px;height:6px;border-radius:50%;margin:0 auto 9px;box-shadow:0 0 10px #39d8be55}
.dashboard{max-width:2400px;margin-left:76px;padding:24px 30px 17px}.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:16px}.eyebrow{display:flex;align-items:center;gap:10px;color:#8c9ebb;font-size:11px;letter-spacing:1.2px}.ozon-word{color:#dfeaff;letter-spacing:1px;font-size:16px;font-weight:850}.heading-divider{width:1px;height:12px;background:#384760}h1{font-size:26px;letter-spacing:1px;margin:4px 0 0;line-height:1.4;font-weight:700}.title-dot{display:inline-block;margin:0 0 4px 10px;width:6px;height:6px;background:var(--blue);border-radius:50%}.header-right{display:flex;align-items:center;gap:12px}.clock{display:flex;align-items:flex-end;flex-direction:column;margin-right:12px}.clock strong{font-size:22px;font-weight:600;letter-spacing:2px;font-variant-numeric:tabular-nums}.clock span{font-size:11px;color:var(--muted)}.icon-button,.refresh-button{height:38px;border:1px solid #304363;border-radius:9px;background:#14213a;color:#b7c9e5;display:flex;align-items:center;justify-content:center;gap:8px;transition:background .2s}.icon-button{width:38px}.refresh-button{padding:0 14px}.refresh-button:hover,.icon-button:hover{background:#20385c}.refresh-button[disabled]{opacity:.55;cursor:wait}.context-row{display:flex;align-items:center;justify-content:space-between;margin:0 0 15px;color:var(--muted);font-size:11px;gap:10px}.context-row>div{display:flex;align-items:center;gap:16px}.live-label{color:#b5c9e5;display:flex;align-items:center;gap:6px}.live-label i{background:var(--teal);width:5px;height:5px;border-radius:50%;box-shadow:0 0 10px #39d8be50}.connection-banner{padding:11px 14px;background:#42242e;border:1px solid #753842;color:#ffb1b6;border-radius:10px;margin-bottom:14px;font-size:12px}
.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.metric{background:linear-gradient(110deg,#14213a,#101b2d);border:1px solid #263651;border-radius:14px;padding:18px 21px 15px;position:relative;overflow:hidden;min-height:140px}.metric::before{content:'';position:absolute;top:0;left:21px;width:32px;height:2px;background:var(--accent)}.metric::after{content:'';position:absolute;width:120px;height:120px;border-radius:50%;background:var(--accent);filter:blur(68px);opacity:.10;right:-25px;top:-30px;pointer-events:none}.metric-blue{--accent:var(--blue)}.metric-teal{--accent:var(--teal)}.metric-violet{--accent:#ad93ff}.metric-amber{--accent:var(--amber)}.metric-top{display:flex;align-items:center;justify-content:space-between;color:#a9bbd5;font-size:12px}.metric-icon{width:27px;height:27px;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--accent);border-radius:8px;font-size:16px}.metric-value{display:flex;align-items:baseline;gap:9px;line-height:1.15;margin:9px 0 14px;font-variant-numeric:tabular-nums}.metric-value strong{font-size:40px;font-weight:650;letter-spacing:-1px}.metric-value>span{color:#667f9f;font-size:13px}.metric-value.money{gap:6px}.metric-value.money>span{font-size:24px;color:#a2aacf}.metric-value.money strong{font-size:35px}.metric-bottom{display:flex;align-items:center;gap:9px;color:#6f84a5;font-size:10px;white-space:nowrap}.metric-bottom>span:first-child{font-size:11px;color:#b0c3df}.comparison.up{color:var(--teal)!important}.comparison.down{color:var(--red)!important}.comparison.flat{color:#a4b8d6!important}
.sync-strip{display:flex;align-items:center;gap:24px;padding:17px 20px;border:1px solid #23334d;background:#111b2c;border-radius:12px;margin:16px 0 22px;min-height:77px}.sync-caption{display:flex;align-items:center;gap:10px;flex-shrink:0}.signal-icon{color:var(--blue);font-size:23px}.sync-caption strong{display:block;font-size:12px;font-weight:550}.sync-caption span:not(.signal-icon){font-size:10px;color:#6b84a4}.shop-statuses{display:flex;align-items:center;gap:24px;flex:1;min-width:0}.shop-status{min-width:95px;display:flex;gap:8px;align-items:flex-start}.state-dot{display:block;flex-shrink:0;width:6px;height:6px;border-radius:50%;background:var(--teal);margin-top:6px}.state-error .state-dot{background:var(--red)}.state-pending .state-dot,.state-syncing .state-dot,.state-stale .state-dot{background:var(--amber)}.state-disabled .state-dot{background:#536581}.shop-status strong{font-size:11px;font-weight:600;display:block}.shop-status small{font-size:10px;color:#738caf;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px}.state-error small{color:#ea9399}.state-syncing small{color:var(--amber)}.state-disabled{opacity:.65}.sync-summary{font-size:10px;color:var(--teal);background:#163430;border:1px solid #27534d;border-radius:6px;padding:4px 8px;white-space:nowrap}.sync-summary.warning{color:var(--amber);background:#352b1d;border-color:#56452f}.status-placeholder{color:var(--muted);font-size:12px}
.content-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) minmax(0,1fr);gap:18px}.panel{background:linear-gradient(140deg,#121e31,#101a2b);border:1px solid var(--border);border-radius:13px;padding:19px 20px 14px;min-width:0;overflow:hidden}.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.panel-heading h2{font-size:14px;letter-spacing:.3px;margin:0;font-weight:650}.panel-heading p{font-size:10px;color:#6f85a5;margin:5px 0 0;line-height:1.5}.panel-tag{font-size:10px;color:#8aa3c6;border:1px solid #2b3b53;background:#172338;padding:4px 8px;border-radius:6px;white-space:nowrap;display:flex;align-items:center;gap:6px}.legend{display:flex;align-items:center;gap:17px;font-size:10px;color:#8da5c8;padding-top:3px}.legend span{display:flex;gap:6px;align-items:center}.legend i,.legend-amber{display:inline-block;width:6px;height:6px;border-radius:2px;vertical-align:middle;margin-right:4px}.legend-blue{background:var(--blue)}.legend-muted{background:#597391}.legend-amber{background:var(--amber)}.hourly-panel{grid-column:1 / 3}.shops-panel{grid-column:3}.hourly-panel,.shops-panel{height:290px}.chart-container{height:192px;position:relative}.chart-container svg{width:100%;height:100%;overflow:visible}.chart-grid{stroke:#26374f;stroke-width:.6;stroke-dasharray:3 5}.chart-label{fill:#6882a6;font-size:10px;font-family:var(--font)}.chart-line{fill:none;stroke:var(--blue);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}.chart-line-yesterday{fill:none;stroke:#4d6789;stroke-width:1.4;stroke-dasharray:4 5}.chart-hit{fill:transparent;cursor:crosshair}.chart-hit:hover,.chart-hit:focus{fill:#93b8ff10;outline:none}.chart-foot{border-top:1px solid #23314a;padding-top:10px;margin-top:4px;display:flex;justify-content:space-between;align-items:center;color:#6b85a8;font-size:10px;gap:10px}.chart-foot>span:first-child{display:flex;align-items:center;gap:5px}.tiny-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--blue)}.table-wrap{width:100%;overflow-x:auto}table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;text-align:left}th{font-size:10px;font-weight:500;color:#6883a8;padding:6px 0 11px;border-bottom:1px solid #25364d}td{font-size:11px;padding:13px 0;border-bottom:1px solid #1f2d43;white-space:nowrap}td:last-child,th:last-child{text-align:right}.shop-table th:nth-child(2),.shop-table th:nth-child(3),.shop-table td:nth-child(2),.shop-table td:nth-child(3){text-align:right;padding-right:18px}.shop-table td:first-child{display:flex;align-items:center;gap:9px}.shop-table td:last-child{font-weight:600;color:#dbe9ff}.rank{display:inline-grid;place-items:center;min-width:18px;height:18px;font-size:9px;background:#1d2e47;color:#7595c0;border-radius:5px}.rank.first{background:#254580;color:#98c0ff}.shop-share{display:flex;gap:4px;margin-top:24px;height:5px;border-radius:4px;overflow:hidden}.share-segment{min-width:0;border-radius:3px;transition:width .4s}.orders-panel{grid-column:1 / 3;height:348px}.orders-scroll{height:270px;overflow:auto;scrollbar-width:thin;scrollbar-color:#304360 transparent}.orders-table th{position:sticky;top:0;background:#111d30;z-index:1}.orders-table td{padding:10px 0;font-size:11px}.orders-table td:first-child{min-width:155px}.order-time{color:#c4d3e9;display:block;font-size:11px}.order-id{color:#5e7b9e;font-size:9px;display:block;letter-spacing:.2px}.orders-table td:nth-child(3){max-width:100px;overflow:hidden;text-overflow:ellipsis}.order-shop{display:flex;gap:6px;align-items:center}.order-shop i{width:5px;height:5px;display:inline-block;border-radius:50%;background:var(--blue)}.order-badge{display:inline-block;font-size:9px;padding:3px 7px;border-radius:5px;background:#153a34;color:#64d9be;line-height:1.25}.order-badge.cancelled{background:#3b252f;color:#f59ba4}.order-badge.pending{background:#303328;color:#d1c787}.order-badge.unknown{background:#26334a;color:#9bb0cd}.orders-table tr.cancelled td:last-child{color:#98727d;text-decoration:line-through}.orders-table td:last-child{font-weight:600}.history-panel{grid-column:1 / 3;grid-row:3;height:268px}.history-panel .chart-container{height:170px}.products-panel{grid-column:3;grid-row:2 / 4;height:634px}.product-list{height:552px;overflow:auto;scrollbar-width:thin;scrollbar-color:#304360 transparent}.product{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #203047}.product>.rank{font-size:9px;background:transparent;width:14px;min-width:14px;color:#59789e}.product img{width:43px;height:43px;border-radius:9px;object-fit:cover;background:#20304a;border:1px solid #2b3d56;flex-shrink:0}.product-info{min-width:0;flex:1}.product-name{font-size:11px;font-weight:500;margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-details{color:#657fa3;font-size:9px;display:flex;justify-content:space-between;gap:4px}.product-details strong{color:#acbdde;font-weight:500}.product-bar{height:3px;background:#23334d;border-radius:2px;margin-top:8px;overflow:hidden}.product-bar>span{display:block;background:linear-gradient(90deg,#3065b9,#65a5ff);height:100%;border-radius:2px}.product-gmv{font-size:11px;color:#c2d5f3;text-align:right;flex-shrink:0;min-width:55px}.product-gmv span{font-size:9px;color:#617d9f;display:block;margin-top:5px}.empty{color:#6983a8;text-align:center!important;padding:40px 10px;font-size:12px}.footer{display:flex;justify-content:space-between;gap:10px;color:#526d91;font-size:10px;margin-top:19px}.footer-separator{margin:0 9px;color:#31496a}.chart-tooltip{position:fixed;z-index:50;pointer-events:none;background:#20314b;border:1px solid #3b5578;color:#dbe8fb;border-radius:9px;padding:9px 12px;font-size:11px;box-shadow:0 7px 22px #0005;white-space:pre-line;max-width:260px}.chart-tooltip[hidden],.connection-banner[hidden]{display:none}.history-bar{transition:opacity .2s}.history-bar:hover{opacity:.75}.no-chart{display:flex;align-items:center;justify-content:center;height:100%;color:#6885a8;font-size:12px}
@media(min-width:1700px){.dashboard{padding:27px 36px 20px}.topbar{margin-bottom:20px}.metric{min-height:145px;padding:20px 24px 17px}.metric-value strong{font-size:44px}.metric-value.money strong{font-size:41px}.hourly-panel,.shops-panel{height:295px}.orders-panel{height:310px}.orders-scroll{height:234px}.history-panel{height:230px}.history-panel .chart-container{height:131px}.products-panel{height:558px}.product-list{height:476px}.product{padding:13px 0}.product-name{font-size:12px}.panel-heading h2{font-size:15px}}
@media(min-width:2200px){.metric-value strong{font-size:50px}.hourly-panel,.shops-panel{height:345px}.hourly-panel .chart-container{height:245px}.orders-panel{height:365px}.orders-scroll{height:290px}.history-panel{height:270px}.history-panel .chart-container{height:170px}.products-panel{height:653px}.product-list{height:570px}}
@media(max-width:1250px){.dashboard{padding:20px}.kpi-grid{gap:12px}.metric{padding:15px;min-height:130px}.metric-value strong{font-size:34px}.metric-value.money strong{font-size:29px}.metric-bottom{font-size:9px;gap:5px}.sync-strip{gap:14px;padding:14px}.shop-statuses{gap:14px}.shop-status{min-width:80px}.shop-status small{max-width:130px}.content-grid{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}.hourly-panel{grid-column:1}.shops-panel{grid-column:2}.orders-panel{grid-column:1 / 3;grid-row:2}.history-panel{grid-column:1;grid-row:3;height:310px}.history-panel .chart-container{height:205px}.products-panel{grid-column:2;grid-row:3;height:310px}.product-list{height:235px}.panel{padding:17px}.clock{margin-right:4px}.clock strong{font-size:20px}.sync-summary{display:none}}
@media(max-width:900px){.rail{width:60px;padding:20px 5px}.rail-link{width:45px}.brand-mark{width:36px;height:36px;font-size:27px;line-height:35px;border-radius:11px}.dashboard{margin-left:60px;padding:18px}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-value strong{font-size:36px}.metric-value.money strong{font-size:34px}.shop-statuses{flex-wrap:wrap;gap:10px 18px}.sync-strip{align-items:flex-start}.content-grid{gap:14px}.panel-heading p{font-size:9px}.legend{gap:9px}.header-right{gap:8px}.clock{display:none}.footer{flex-direction:column;gap:4px}}
@media(max-width:620px){.rail{display:none}.dashboard{margin:0;padding:18px 14px}.topbar{margin-bottom:15px}.eyebrow{font-size:9px;gap:8px}.ozon-word{font-size:13px}h1{font-size:23px}.header-right{gap:7px}.refresh-button{font-size:10px;padding:0 9px;height:34px}.refresh-button svg{width:14px}.icon-button{width:34px;height:34px}.context-row{font-size:9px;align-items:flex-start;margin-bottom:12px}.context-row>div{flex-direction:column;align-items:flex-start;gap:3px}.context-row>span{padding-top:2px;max-width:155px;text-align:right}.kpi-grid{gap:10px}.metric{padding:12px 13px;min-height:124px;border-radius:11px}.metric-top{font-size:10px}.metric-icon{height:22px;width:22px;font-size:13px}.metric-value{margin:11px 0 12px;gap:6px}.metric-value strong{font-size:34px}.metric-value.money strong{font-size:28px}.metric-value.money>span{font-size:20px}.metric-bottom{flex-wrap:wrap;gap:0 5px;white-space:normal;font-size:8px}.metric-bottom>span:first-child{font-size:10px}.sync-strip{margin:12px 0 16px;padding:13px;gap:15px}.sync-caption{gap:6px}.signal-icon{font-size:20px}.sync-caption strong{font-size:11px}.sync-caption span:not(.signal-icon){font-size:8px}.shop-statuses{gap:9px 14px}.shop-status{min-width:80px;gap:5px}.shop-status strong{font-size:10px}.shop-status small{font-size:8px;max-width:105px}.content-grid{display:flex;flex-direction:column;gap:12px}.panel{padding:16px;border-radius:12px}.panel-heading h2{font-size:13px}.hourly-panel{height:280px}.hourly-panel .chart-container{height:185px}.shops-panel{height:auto;min-height:255px}.orders-panel{height:360px}.orders-scroll{height:283px}.orders-table{min-width:440px}.history-panel{height:270px}.history-panel .chart-container{height:170px}.products-panel{height:420px}.product-list{height:338px}.panel-tag{font-size:9px;padding:3px 6px}.footer{margin-top:16px;font-size:8px}.product img{height:45px;width:45px}.product-name{font-size:11px}.chart-foot{font-size:9px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
@media(min-width:1251px){.dashboard{height:100dvh;min-height:920px;display:flex;flex-direction:column;padding-top:18px;padding-bottom:14px}.topbar,.context-row,.kpi-grid,.sync-strip,.footer{flex-shrink:0}.topbar{margin-bottom:12px}h1{font-size:24px}.context-row{margin-bottom:12px}.metric{min-height:124px;padding-top:14px;padding-bottom:11px}.metric-icon{height:24px;width:24px}.metric-value{margin-top:5px;margin-bottom:8px}.metric-value strong{font-size:39px}.metric-value.money strong{font-size:37px}.sync-strip{min-height:60px;margin:12px 0 16px;padding-top:10px;padding-bottom:10px}.content-grid{flex:1;min-height:0;grid-template-rows:1.12fr 1.3fr .93fr;gap:16px}.panel{display:flex;flex-direction:column;padding-top:16px;padding-bottom:12px}.hourly-panel,.shops-panel,.orders-panel,.history-panel,.products-panel{height:auto}.chart-container,.hourly-panel .chart-container,.history-panel .chart-container{flex:1;height:auto;min-height:60px}.orders-scroll,.product-list{flex:1;height:auto;min-height:0}.panel-heading{flex-shrink:0;margin-bottom:10px}.chart-foot{flex-shrink:0}.shops-panel .panel-heading{margin-bottom:6px}.shop-table th{padding-top:4px;padding-bottom:8px}.shop-table td{padding-top:7px;padding-bottom:7px}.shop-share{margin-top:auto;min-height:5px;flex-shrink:0}.footer{margin-top:12px}.product{padding-top:11px;padding-bottom:11px}.orders-table td{font-size:12px}.order-time{font-size:12px}.orders-table .order-id{font-size:10px}}
@media(min-width:1251px){.shop-table td{padding-top:4px;padding-bottom:4px}.shops-panel .table-wrap{flex-shrink:0}.orders-table td{padding-top:8px;padding-bottom:8px}}
@media(max-width:620px){.orders-table{min-width:0}.orders-table th:nth-child(3),.orders-table td:nth-child(3){display:none}.orders-table td:first-child{min-width:108px;max-width:112px}.orders-table td,.orders-table th{font-size:10px}.order-time{font-size:10px}.order-id{font-size:8px}.order-badge{font-size:8px;padding:3px 5px}.order-shop{gap:4px}}
.state-rate_limited .state-dot,.state-waiting .state-dot{background:var(--amber)}.state-rate_limited small,.state-waiting small{color:var(--amber)}
