:root {
  --ink: #172334;
  --muted: #728096;
  --line: #e6ebf2;
  --surface: #ffffff;
  --canvas: #f5f7fb;
  --navy: #17324d;
  --mint: #2eb89a;
  --mint-soft: #e6f7f1;
  --blue: #3f7fe8;
  --blue-soft: #eaf1ff;
  --amber: #edae3d;
  --amber-soft: #fff5df;
  --coral: #ec7565;
  --coral-soft: #ffebe8;
  --shadow: 0 10px 30px rgba(33, 54, 84, 0.06);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button, input, select { font: inherit; }
button { cursor: pointer; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: 248px; padding: 28px 18px 20px; display: flex; flex-direction: column; background: var(--navy); color: #dbe6f1; }
.brand-row { display: flex; align-items: center; gap: 11px; padding: 0 12px 35px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--mint); color: white; font-weight: 800; font-size: 18px; }
.brand-name { color: #fff; font-weight: 700; letter-spacing: .2px; }
.brand-subtitle { margin-top: 2px; color: #8da4bb; font-size: 11px; }
.nav-list { display: grid; gap: 6px; }
.nav-list.compact { gap: 4px; }
.nav-item { border: 0; width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 9px; background: transparent; color: #aebfd0; text-align: left; transition: .2s ease; }
.nav-item:hover, .nav-item.active { background: rgba(255,255,255,.1); color: #fff; }
.nav-item.active { box-shadow: inset 3px 0 0 var(--mint); }
.nav-icon { width: 19px; text-align: center; font-size: 16px; opacity: .9; }
.nav-count { margin-left: auto; min-width: 24px; padding: 2px 6px; border-radius: 999px; background: rgba(255,255,255,.11); color: #dbe6f1; font-size: 11px; text-align: center; }
.nav-count.coral { background: rgba(236,117,101,.25); color: #ffd4ce; }
.sidebar-divider { height: 1px; margin: 28px 10px 20px; background: rgba(255,255,255,.1); }
.sidebar-label { padding: 0 12px 9px; color: #718aa1; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
.sidebar-foot { margin-top: auto; }
.storage-card { padding: 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 11px; background: rgba(255,255,255,.05); }
.storage-top { display: flex; justify-content: space-between; color: #c8d6e3; font-size: 12px; }
.storage-top strong { color: #fff; }
.progress { height: 5px; margin: 10px 0 8px; border-radius: 999px; background: rgba(255,255,255,.13); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--mint); }
.storage-meta { color: #83a0b7; font-size: 10px; }
.user-mini { display: flex; align-items: center; gap: 9px; padding: 18px 6px 0; }
.avatar, .top-avatar { display: grid; place-items: center; border-radius: 50%; background: #d7f0eb; color: #166858; font-weight: 700; }
.avatar { width: 32px; height: 32px; font-size: 13px; }
.user-copy { display: grid; gap: 2px; flex: 1; }
.user-copy strong { color: #fff; font-size: 12px; }
.user-copy span { color: #7f98ad; font-size: 10px; }
.main-content { flex: 1; min-width: 0; margin-left: 248px; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 18px 34px; background: rgba(245,247,251,.92); border-bottom: 1px solid rgba(230,235,242,.8); backdrop-filter: blur(12px); }
.topbar-left, .topbar-actions { display: flex; align-items: center; gap: 18px; }
.menu-toggle { display: none !important; }
.breadcrumb { color: var(--muted); font-size: 11px; }
.breadcrumb span { margin: 0 6px; color: #b4bfcc; }
h1 { margin: 5px 0 0; font-size: 22px; letter-spacing: -.4px; }
.period-select { border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; color: var(--muted); background: white; font-size: 12px; }
.period-select span { margin-left: 16px; color: var(--ink); }
.icon-button { border: 0; padding: 6px; background: transparent; color: inherit; }
.has-dot { position: relative; color: #708195; font-size: 19px; }
.has-dot::after { position: absolute; top: 2px; right: 1px; width: 5px; height: 5px; border-radius: 50%; background: var(--coral); content: ""; }
.top-avatar { width: 31px; height: 31px; font-size: 12px; }
.page-body { max-width: 1540px; margin: 0 auto; padding: 34px; }
.welcome-row { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 27px; }
.eyebrow { color: var(--muted); font-size: 11px; }
h2 { margin: 7px 0 5px; font-size: 28px; letter-spacing: -.8px; }
h2 span { color: var(--amber); font-size: 19px; }
.welcome-row p { margin: 0; color: var(--muted); font-size: 13px; }
.welcome-row p strong { color: var(--coral); }
.primary-button, .secondary-button { border: 0; border-radius: 8px; padding: 10px 15px; font-weight: 600; font-size: 12px; }
.primary-button { background: var(--navy); color: white; box-shadow: 0 7px 15px rgba(23,50,77,.15); }
.primary-button:hover { background: #0f2439; }
.primary-button span { margin-right: 4px; color: #8fe4d0; font-size: 16px; vertical-align: -1px; }
.secondary-button { background: #eef2f6; color: var(--ink); }
.platform-tabs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 17px; }
.platform-tab { border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; background: white; color: var(--muted); font-size: 12px; }
.platform-tab b { margin-left: 5px; color: #a4afbd; font-size: 10px; }
.platform-tab.active { border-color: var(--navy); background: var(--navy); color: white; }
.platform-tab.active b { color: #b3c9da; }
.platform-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #b8c2cf; }
.platform-dot.ozon { background: #3576de; }.platform-dot.wb { background: #a960d4; }.platform-dot.yandex { background: #e54b54; }.platform-dot.all { background: var(--mint); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 15px; }
.metric-card { position: relative; min-height: 156px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.metric-card::before { position: absolute; inset: 0 auto 0 0; width: 3px; content: ""; }
.accent-mint::before { background: var(--mint); }.accent-blue::before { background: var(--blue); }.accent-amber::before { background: var(--amber); }.accent-coral::before { background: var(--coral); }
.metric-label { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }.metric-icon { color: #9ba9b8; font-size: 14px; }
.metric-value { margin-top: 15px; font-size: 25px; font-weight: 700; letter-spacing: -.5px; }.metric-change { margin-top: 5px; font-size: 11px; font-weight: 600; }.metric-change span { margin-left: 4px; color: #a1adba; font-weight: 400; }.positive { color: var(--mint); }.neutral { color: var(--blue); }.warning { color: var(--coral); }
.sparkline { position: absolute; right: 17px; bottom: 18px; display: flex; align-items: end; gap: 4px; width: 70px; height: 35px; }.sparkline i { width: 7px; border-radius: 3px 3px 0 0; opacity: .65; }.sparkline.mint i { background: var(--mint); }.sparkline.blue i { background: var(--blue); }.sparkline.amber i { background: var(--amber); }
.task-bars { display: grid; gap: 5px; margin-top: 18px; width: 100%; }.task-bars span { height: 4px; border-radius: 4px; background: var(--coral); opacity: .58; }.task-bars span:nth-child(2){opacity:.36}.task-bars span:nth-child(3){opacity:.22}
.content-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(310px, .7fr); gap: 15px; margin-top: 15px; }.lower-grid { grid-template-columns: minmax(0, 1.3fr) minmax(310px, .7fr); }
.panel { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 19px 20px 8px; }.panel-heading h3 { margin: 0; font-size: 15px; }.panel-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }.text-button { border: 0; padding: 2px 0; background: transparent; color: var(--blue); font-size: 11px; white-space: nowrap; }
.chart-legend { display: flex; gap: 14px; padding: 14px 20px 0; color: var(--muted); font-size: 10px; }.legend-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; }.legend-dot.mint { background: var(--mint); }.legend-dot.blue { background: var(--blue); }
.sales-chart { display: flex; padding: 13px 17px 18px 15px; }.chart-y { display: flex; flex-direction: column; justify-content: space-between; height: 195px; padding: 0 8px 20px 0; color: #a2afbd; font-size: 9px; }.chart-area { position: relative; flex: 1; height: 210px; }.chart-grid-lines { position: absolute; inset: 0 0 20px; display: grid; grid-template-rows: repeat(4,1fr); }.chart-grid-lines i { border-top: 1px dashed #e9edf3; }.chart-area svg { position: absolute; inset: 0 0 20px; width: 100%; height: calc(100% - 20px); overflow: visible; }.area-path { fill: rgba(46,184,154,.08); }.line-path { fill: none; stroke-width: 3; vector-effect: non-scaling-stroke; }.mint-line { stroke: var(--mint); }.blue-line { stroke: var(--blue); stroke-dasharray: 5 5; stroke-width: 2; }.chart-x { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-between; color: #a2afbd; font-size: 9px; }
.quick-panel { min-height: 300px; }.quick-grid { display: grid; gap: 8px; padding: 11px 15px 16px; }.quick-action { display: flex; align-items: center; gap: 10px; width: 100%; border: 1px solid #edf0f4; border-radius: 9px; padding: 11px; background: #fcfdff; text-align: left; }.quick-action:hover { border-color: #cdd8e4; background: #fff; }.quick-action strong, .quick-action small { display: block; }.quick-action strong { font-size: 12px; }.quick-action small { margin-top: 3px; color: var(--muted); font-size: 10px; }.quick-action b { margin-left: auto; color: #aab5c1; font-weight: 400; }.quick-symbol { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; font-weight: 700; }.mint-bg { background: var(--mint-soft); color: var(--mint); }.blue-bg { background: var(--blue-soft); color: var(--blue); }.amber-bg { background: var(--amber-soft); color: var(--amber); }.coral-bg { background: var(--coral-soft); color: var(--coral); }
.table-wrap { overflow-x: auto; padding: 8px 10px 15px; }.table-wrap table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: 11px; }.table-wrap th { padding: 10px; color: #a0acb9; font-size: 10px; font-weight: 500; text-align: left; }.table-wrap td { padding: 13px 10px; border-top: 1px solid #f0f2f5; color: #445366; }.order-id { color: var(--navy); font-weight: 600; }.platform-label { display: inline-flex; align-items: center; gap: 5px; }.status-pill { display: inline-block; padding: 4px 7px; border-radius: 999px; font-size: 10px; }.status-pill.green { background: var(--mint-soft); color: #1b9179; }.status-pill.yellow { background: var(--amber-soft); color: #b77b12; }.status-pill.gray { background: #eef2f6; color: #738296; }
.store-list { display: grid; gap: 6px; padding: 11px 18px 17px; }.store-row { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid #f0f2f5; }.store-row:last-child { border-bottom: 0; }.store-logo { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: white; font-size: 11px; font-weight: 700; }.store-logo.ozon { background: #3977de; }.store-logo.wb { background: #a363d2; }.store-logo.yandex { background: #df575c; }.store-copy { flex: 1; }.store-copy strong { display: block; font-size: 11px; }.store-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }.health { display: flex; align-items: center; gap: 4px; color: var(--mint); font-size: 10px; }.health i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.activity-panel { margin-top: 15px; margin-bottom: 30px; }.activity-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-top: 7px; background: #f0f2f5; border-top: 1px solid #f0f2f5; }.activity-item { min-height: 85px; padding: 16px 18px; background: white; }.activity-item p { margin: 0; color: #536276; font-size: 11px; line-height: 1.6; }.activity-item time { display: block; margin-top: 8px; color: #a3afbc; font-size: 10px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(12,27,44,.45); }.modal-backdrop[hidden] { display: none; }.modal { position: relative; width: min(460px, 100%); padding: 28px; border-radius: 14px; background: white; box-shadow: 0 25px 70px rgba(10,25,42,.25); }.modal-close { position: absolute; top: 15px; right: 15px; border: 0; background: transparent; color: var(--muted); font-size: 22px; }.modal-kicker { color: var(--mint); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }.modal h2 { margin-top: 7px; font-size: 23px; }.modal p { color: var(--muted); font-size: 12px; line-height: 1.6; }.modal form { display: grid; gap: 14px; margin-top: 21px; }.modal label { display: grid; gap: 6px; color: #4d5b6d; font-size: 11px; }.modal input, .modal select { width: 100%; border: 1px solid #dfe5ec; border-radius: 7px; padding: 10px; outline: 0; color: var(--ink); background: white; font-size: 12px; }.modal input:focus, .modal select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(63,127,232,.1); }.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.modal-actions { display: flex; justify-content: end; gap: 8px; margin-top: 4px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 70; transform: translateY(16px); padding: 11px 15px; border-radius: 8px; background: var(--navy); color: white; box-shadow: 0 12px 30px rgba(23,50,77,.2); font-size: 12px; opacity: 0; pointer-events: none; transition: .22s ease; }.toast.show { transform: translateY(0); opacity: 1; }
.collection-view { display: grid; gap: 15px; }.collection-view[hidden] { display: none; }.collection-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; }.collection-heading h2 { margin-bottom: 4px; }.collection-heading p { margin: 0; color: var(--muted); font-size: 13px; }.collection-heading-actions { display: flex; gap: 8px; }.collection-heading-actions .secondary-button { background: white; border: 1px solid var(--line); }.collect-form-panel[hidden] { display: none; }.collect-form-panel .panel-heading { padding-bottom: 16px; border-bottom: 1px solid #f0f2f5; }.collect-form { display: grid; grid-template-columns: 1fr 1.8fr 1fr 1fr; gap: 12px; align-items: end; padding: 16px 20px 20px; }.collect-form label { display: grid; gap: 6px; color: #4d5b6d; font-size: 11px; }.collect-form input, .collect-form select, .collection-filters input, .collection-filters select { width: 100%; min-width: 0; border: 1px solid #dfe5ec; border-radius: 7px; padding: 10px; outline: 0; color: var(--ink); background: white; font-size: 12px; }.collect-form input:focus, .collect-form select:focus, .collection-filters input:focus, .collection-filters select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(63,127,232,.1); }.collect-url-field { grid-column: span 2; }.parse-button { height: 36px; }.collect-form-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 2px; }.form-hint { color: var(--muted); font-size: 11px; }.collection-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px 12px; }.collection-filters, .collection-bulk-actions { display: flex; align-items: center; gap: 8px; }.collection-filters select { width: 150px; }.collection-filters input { width: 200px; }.collection-filters .text-button { padding: 8px 4px; }.collection-notice { margin: 0 20px 3px; padding: 9px 11px; border-radius: 7px; color: #7d6b40; background: var(--amber-soft); font-size: 11px; }.danger-button { border: 1px solid #f0c7c2; border-radius: 8px; padding: 9px 12px; color: #c6574b; background: #fff8f7; font-size: 12px; }.danger-button:disabled, .secondary-button:disabled { cursor: not-allowed; opacity: .48; }.collection-table-wrap { padding-top: 5px; }.collection-table { min-width: 820px !important; }.collection-table th, .collection-table td { vertical-align: middle; }.collection-table input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--mint); }.collection-product { display: flex; align-items: center; gap: 9px; min-width: 220px; }.collection-product img, .collection-image-placeholder { width: 35px; height: 35px; flex: 0 0 35px; border-radius: 7px; object-fit: cover; background: #f0f4f7; }.collection-image-placeholder { display: grid; place-items: center; color: #9eabba; font-size: 14px; }.collection-product strong, .collection-product a { display: block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.collection-product strong { color: var(--ink); font-size: 11px; }.collection-product a { margin-top: 3px; color: var(--blue); font-size: 10px; text-decoration: none; }.collection-product a:hover { text-decoration: underline; }.collection-type-badge { display: inline-block; padding: 4px 7px; border-radius: 999px; color: #637488; background: #eef2f6; font-size: 10px; }.collection-type-badge.1688 { color: #c76a26; background: #fff0e7; }.collection-type-badge.pdd { color: #c54f4f; background: #ffeded; }.collection-type-badge.taobao { color: #c56b2d; background: #fff3e6; }.collection-type-badge.wb { color: #8a52b4; background: #f4ebfb; }.collection-delete { color: #9ba9b8; font-size: 18px; }.collection-delete:hover { color: var(--coral); }.empty-collection { padding: 35px 15px 40px; color: #9ba9b8; text-align: center; font-size: 12px; }.empty-collection[hidden] { display: none; }

@media (max-width: 1100px) { .sidebar { width: 214px; }.main-content { margin-left: 214px; }.page-body { padding: 26px 22px; }.topbar { padding: 16px 22px; }.metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }.content-grid, .lower-grid { grid-template-columns: 1fr; }.quick-panel { min-height: auto; }.quick-grid { grid-template-columns: repeat(2,1fr); }.activity-list { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .sidebar { transform: translateX(-100%); transition: transform .22s ease; width: 248px; }.sidebar.open { transform: translateX(0); }.main-content { margin-left: 0; }.menu-toggle { display: inline-block !important; color: var(--ink); font-size: 18px; }.topbar { padding: 14px 16px; }.topbar-actions { gap: 8px; }.period-select { display: none; }.page-body { padding: 22px 15px; }.welcome-row { align-items: start; flex-direction: column; }.welcome-row h2 { font-size: 24px; }.metric-grid { gap: 10px; }.metric-card { min-height: 140px; padding: 14px; }.metric-value { font-size: 21px; }.platform-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }.platform-tab { white-space: nowrap; }.quick-grid { grid-template-columns: 1fr; }.sales-chart { padding-left: 8px; padding-right: 9px; }.chart-y { padding-right: 4px; }.chart-x { font-size: 8px; }.activity-item { min-height: auto; }.form-row { grid-template-columns: 1fr; }.collection-heading { align-items: start; flex-direction: column; }.collection-heading-actions { width: 100%; }.collection-heading-actions button { flex: 1; }.collect-form { grid-template-columns: 1fr; padding: 15px; }.collect-url-field { grid-column: auto; }.collect-form-actions { align-items: stretch; flex-direction: column; }.collect-form-actions .primary-button { width: 100%; }.collection-toolbar { align-items: stretch; flex-direction: column; padding: 13px 15px 10px; }.collection-filters, .collection-bulk-actions { flex-wrap: wrap; }.collection-filters select, .collection-filters input { flex: 1 1 180px; width: auto; }.collection-bulk-actions button { flex: 1; } }
