/* Platform workspace: a scoped presentation layer over the existing ERP. */
#platform-sidebar-backdrop { display: none; }
.bi-loading.view-updating,.xianyu-receivable-bi .bi-loading.view-updating { min-height:24px;place-items:center start;padding:4px 0;font-size:12px;color:var(--muted); }
body.platform-space {
  color-scheme: light;
  --bg: #fcfcfa; --surface: #ffffff; --text: #182127; --muted: #667078;
  --mint: #087c72; --blue: #286e9d; --amber: #936521; --danger: #af493e;
  --line: #e2e5e3; --line-strong: #b9c9bd; --hover-bg: #f4f6f3;
  --input-bg: #ffffff; --placeholder: #667078; --on-accent: #ffffff;
  --accent-hover: #066b62; --nav-active: #eaf5f0; --step-active: #f0f5ee;
  --step-line: #e2e5e3; --table-head: #f5f6f4; --table-heading: #667078;
  --row-hover: #f8faf7; --row-selected: #edf6ef; --row-checked: #edf6ef;
  --row-context: #eaf4ed; --context-line: #9abdab; --pager-bg: #eff7f1;
  --notice-bg: #ffffff; --notice-line: #c4d7cb; --dialog-bg: #ffffff;
  --dialog-line: #dce5dc; --menu-bg: #ffffff; --menu-line: #d8e3d8;
  --menu-focus: #eef6ef; --menu-separator: #e8ebe9;
  --selection-bg: #eef7ef; --selection-line: #b6d1bd;
  --warning-bg: #fbf6e9; --warning-text: #835c22; --closing-color: #896320;
  --private-color: #726586; --icon-filter: none; --active-icon-filter: none;
  --primary-icon-filter: invert(1); --ps-header-height: 72px;
  --ps-context-height: 58px; --ps-sidebar-width: 236px;
  margin: 0; min-width: 320px; background: var(--bg); color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-size: 15px; -webkit-font-smoothing: antialiased;
}
body.platform-space * { scrollbar-width: thin; scrollbar-color: #c1cec1 #f6f8f3; }
body.platform-space ::selection { background: #d9eee0; color: #182127; }
body.platform-space input, body.platform-space textarea { caret-color: var(--mint); }
body.platform-space button, body.platform-space input, body.platform-space select,
body.platform-space textarea { border-radius: 6px; font-size: 14px; }
body.platform-space button { min-height: 36px; transition: background-color .12s ease, border-color .12s ease; }
body.platform-space button:hover:not(:disabled) { border-color: #b8cbbb; }
body.platform-space button:disabled { cursor: not-allowed; opacity: .45; }
body.platform-space input, body.platform-space select { min-height: 38px; background-color: #fff; }
body.platform-space input[type=checkbox], body.platform-space input[type=radio] {
  min-height: 0; accent-color: var(--mint);
}
body.platform-space button:focus-visible, body.platform-space a:focus-visible,
body.platform-space input:focus-visible, body.platform-space select:focus-visible,
body.platform-space textarea:focus-visible, body.platform-space summary:focus-visible {
  outline: 2px solid #087c72; outline-offset: 3px;
}
body.platform-space .primary, body.platform-space button.primary,
body.platform-space .filter-submit {
  background: var(--mint); border-color: var(--mint); color: #fff; font-weight: 600;
}
body.platform-space .primary:hover:not(:disabled), body.platform-space .filter-submit:hover {
  background: var(--accent-hover); border-color: var(--accent-hover);
}
body.platform-space .text-button { color: var(--mint); }
body.platform-space .platform-logo {
  display: inline-block; width: 28px; height: 28px; flex: 0 0 28px;
  object-fit: contain; border-radius: 6px; filter: none !important; opacity: 1;
}

/* Global modules, context links, and the platform/store scope. */
body.platform-space .topbar {
  height: var(--ps-header-height); min-height: var(--ps-header-height);
  padding: 0 26px; gap: 21px; background: #fff; border-color: var(--line);
  position: relative; z-index: 45; box-shadow: 0 1px 2px #16352305;
}
body.platform-space .brand { gap: 11px; font-size: 22px; letter-spacing: -.5px; flex-shrink: 0; }
body.platform-space .brand-mark {
  width: 40px; height: 40px; border-radius: 7px; background: var(--mint);
  color: #fff; font-size: 24px;
}
.brand-image-frame {
  display: block; position: relative; width: 40px; height: 40px; overflow: hidden; flex-shrink: 0;
}
.brand-image-frame > img {
  position: absolute; width: 54px; height: 54px; max-width: none;
  left: -6.9px; top: -7.3px; object-fit: contain;
}
body.platform-space #platform-top-nav {
  align-self: stretch; display: flex; align-items: stretch; gap: 8px;
  flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none;
}
body.platform-space #platform-top-nav::-webkit-scrollbar { display: none; }
body.platform-space #platform-top-nav > button,
body.platform-space #platform-top-nav > a,
body.platform-space #platform-top-nav .platform-nav-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  align-self: stretch; flex: 0 0 auto; width: auto; height: auto; min-height: 44px;
  padding: 0 13px; color: #182127; border: 0; border-bottom: 3px solid transparent;
  border-radius: 0; background: transparent; font-size: 16px; font-weight: 500;
}
body.platform-space #platform-top-nav > button:hover,
body.platform-space #platform-top-nav > a:hover { background: #f6f9f3; }
body.platform-space #platform-top-nav > .active,
body.platform-space #platform-top-nav > [aria-current=page],
body.platform-space #platform-top-nav > [aria-pressed=true] {
  border-bottom-color: var(--mint); color: #087c72; background: #f0f8f2; font-weight: 650;
}
body.platform-space #platform-top-nav img { display: inline-block; width: 21px; height: 21px; filter: none; }
body.platform-space #platform-top-nav img.platform-logo { width: 27px; height: 27px; flex-basis: 27px; }
body.platform-space .top-meta { flex-shrink: 0; gap: 13px; font-size: 12px; }
body.platform-space #clock { display: none; }
body.platform-space #current-user { padding-left: 13px; font-size: 13px; border-color: var(--line); }
body.platform-space #sync-indicator { max-width: 180px; font-size: 12px; line-height: 1.5; }
body.platform-space #sync-indicator.ok { color: var(--mint); }
body.platform-space #sync-indicator.error { color: #946321; }
body.platform-space #appearance-open { display: none !important; }
body.platform-space #sync-all-erp { display: inline-flex; align-items: center; justify-content: center; width: 35px; min-width: 35px; height: 35px; min-height: 35px; padding: 7px; overflow: hidden; font-size: 0; }
body.platform-space #sync-all-erp::before { content: ''; display: block; width: 18px; height: 18px; flex: 0 0 18px; background: url('data:image/svg+xml;base64,PHN2Zw0KICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciDQogIHdpZHRoPSIyNCINCiAgaGVpZ2h0PSIyNCINCiAgdmlld0JveD0iMCAwIDI0IDI0Ig0KICBmaWxsPSJub25lIg0KICBzdHJva2U9ImN1cnJlbnRDb2xvciINCiAgc3Ryb2tlLXdpZHRoPSIyIg0KICBzdHJva2UtbGluZWNhcD0icm91bmQiDQogIHN0cm9rZS1saW5lam9pbj0icm91bmQiDQo+PHBhdGggZD0iTTIwIDExYTguMSA4LjEgMCAwIDAgLTE1LjUgLTJtLS41IC00djRoNCIgLz48cGF0aCBkPSJNNCAxM2E4LjEgOC4xIDAgMCAwIDE1LjUgMm0uNSA0di00aC00IiAvPjwvc3ZnPg==') center / contain no-repeat; }
body.platform-space #sync-all-erp > img { display: none; }
body.platform-space #platform-context {
  display: flex; align-items: center; min-height: var(--ps-context-height);
  height: var(--ps-context-height); background: #fff; border-bottom: 1px solid var(--line);
  position: relative; z-index: 35;
}
body.platform-space .platform-context-title {
  display: flex; align-items: center; gap: 11px; width: var(--ps-sidebar-width);
  flex: 0 0 var(--ps-sidebar-width); padding: 0 25px; border-right: 1px solid var(--line);
  min-height: 30px; font-size: 17px; color: #182127;
}
body.platform-space .platform-context-title strong { font-weight: 650; }
body.platform-space .platform-context-title > img { width: 28px; height: 28px; flex: 0 0 28px; object-fit: contain; }
body.platform-space .platform-context-links {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  flex: 1; padding: 0 24px; overflow-x: auto; scrollbar-width: none;
}
body.platform-space .platform-context-links button,
body.platform-space .platform-context-links a {
  display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
  padding: 8px 13px; border: 0; color: #667078; font-size: 14px; background: transparent;
}
body.platform-space .platform-context-links .active,
body.platform-space .platform-context-links [aria-current=page] {
  background: #eff6ef; color: var(--mint); font-weight: 600;
}
body.platform-space .platform-context-links img { width: 18px; height: 18px; filter: none; }
body.platform-space .platform-context-links > span { color: #a2aea4; font-size: 12px; }
body.platform-space .platform-context-note, body.platform-space #platform-context-note { margin-left: auto; padding-right: 27px; color: var(--muted); font-size: 12px; white-space: nowrap; }
body.platform-space .context-hidden { display: none !important; }
body.platform-space .workspace,
body.platform-space.simple-mode .workspace,
body.platform-space.simple-mode.simple-refund-open .workspace {
  display: grid; grid-template-columns: var(--ps-sidebar-width) minmax(0,1fr);
  grid-template-rows: minmax(0,1fr); height: calc(100dvh - var(--ps-header-height) - var(--ps-context-height));
  min-height: 0; width: 100%;
}
body.platform-space #workspace > .sidebar { display: none; }
body.platform-space #simple-order-sidebar {
  z-index: 30; padding: 25px 14px 16px; min-height: 0; overflow-y: auto;
  background: #fafbf9; border-right: 1px solid var(--line); border-bottom: 0;
}
body.platform-space #platform-store-nav { display: flex; flex-direction: column; min-height: 100%; gap: 0; }
body.platform-space #simple-order-sidebar > .simple-primary-nav { display: none; }
body.platform-space #platform-store-nav h2 { margin: 0 10px 25px; font-size: 20px; font-weight: 650; }
body.platform-space #platform-store-nav button,
body.platform-space #platform-store-nav a { text-align: left; white-space: normal; line-height: 1.5; }
body.platform-space #platform-store-nav .platform-all {
  display: flex; align-items: center; gap: 11px; width: 100%; min-height: 45px;
  padding: 9px 11px; border: 0; background: transparent; color: #182127; font-size: 15px;
}
body.platform-space #platform-store-nav .platform-all img { width: 23px; height: 23px; filter: none; }
body.platform-space #platform-store-nav .platform-all.active,
body.platform-space #platform-store-nav .platform-all[aria-pressed=true] { background: #eaf4ee; color: #087c72; }
body.platform-space .platform-count { margin-left: auto; font-size: 13px; font-variant-numeric: tabular-nums; font-weight: 500; color: #667078; }
body.platform-space #platform-store-nav .platform-group { margin: 19px 10px 0; padding-top: 18px; border-top: 1px solid var(--line); }
body.platform-space #platform-store-nav .platform-group:first-of-type { margin-top: 10px; border-top: 0; padding-top: 9px; }
body.platform-space #platform-store-nav .platform-heading {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 45px;
  padding: 6px 0; color: #182127; border: 0; background: transparent; font-size: 17px;
}
body.platform-space #platform-store-nav .platform-heading .platform-logo { width: 31px; height: 31px; flex-basis: 31px; }
body.platform-space #platform-store-nav .platform-heading.active { color: #087c72; }
body.platform-space #platform-store-nav .platform-shop-list { display: grid; gap: 3px; padding: 5px 0 0 29px; }
body.platform-space #platform-store-nav .platform-shop-list button,
body.platform-space #platform-store-nav .platform-shop-list a {
  display: flex; align-items: center; gap: 7px; justify-content: flex-start;
  border: 0; border-radius: 5px; min-height: 36px; width: 100%; padding: 7px 8px;
  background: transparent; color: #667078; font-size: 14px; overflow-wrap: anywhere;
}
body.platform-space #platform-store-nav .platform-shop-list .active,
body.platform-space #platform-store-nav .platform-shop-list [aria-pressed=true] { color: #087c72; background: #eef6ee; font-weight: 600; }
body.platform-space #platform-store-nav .platform-shop-list button:hover { background: #f3f7f0; }
body.platform-space #platform-store-nav .platform-shop-list small { font-size: 11px; color: #8a6f3f; }
body.platform-space #platform-store-nav .platform-sidebar-settings {
  display: flex; align-items: center; gap: 9px; width: 100%; border: 0;
  border-top: 1px solid var(--line); border-radius: 0; margin-top: auto;
  padding: 20px 10px 2px; color: #667078; background: transparent; font-size: 13px;
}
body.platform-space #platform-store-nav .platform-sidebar-settings img { width: 18px; height: 18px; filter: none; }
body.platform-space #platform-store-nav > .platform-sidebar-note { margin: auto 10px 0; padding-top: 25px; color: var(--muted); font-size: 12px; line-height: 1.8; }
body.platform-space.settings-open #platform-store-nav .platform-sidebar-settings { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; }
body.platform-space.settings-open #platform-store-nav .platform-sidebar-settings > button { display: flex; align-items: center; justify-content: flex-start; gap: 11px; width: 100%; padding: 11px 13px; border: 0; background: transparent; font-size: 14px; }
body.platform-space.settings-open #platform-store-nav .platform-sidebar-settings > button.active { background: #edf6ef; color: var(--mint); font-weight: 600; }
body.platform-space.settings-open #platform-store-nav > .platform-sidebar-note { margin-top: 23px; padding-top: 0; }
body.platform-space #platform-sidebar-toggle, body.platform-space #platform-sidebar-backdrop { display: none; }
body.platform-space #main-content {
  min-width: 0; min-height: 0; height: 100%; padding: 26px 28px 0;
  display: flex; flex-direction: column; background: var(--bg); overflow: hidden;
}

/* Existing query controls and real order rows. */
body.platform-space .page-heading,
body.platform-space.simple-mode .page-heading { gap: 21px; margin-bottom: 18px; }
body.platform-space .heading-copy,
body.platform-space.simple-mode .heading-copy { gap: 15px; align-items: baseline; }
body.platform-space h1, body.platform-space.simple-mode .heading-copy h1 { color: #182127; font-size: 30px; font-weight: 650; line-height: 1.3; letter-spacing: -.6px; }
body.platform-space h2 { font-size: 20px; font-weight: 650; }
body.platform-space .heading-copy p { font-size: 13px; line-height: 1.6; color: var(--muted); }
body.platform-space #filters { flex-wrap: wrap; gap: 11px; }
body.platform-space #filters #shop-filter { display: none; }
body.platform-space #filters .search { order: 0; min-width: 215px; max-width: 345px; flex: 1 1 260px; height: 41px; background: #fff; }
body.platform-space #filters .search input { height: 36px; min-height: 0; font-size: 14px; }
body.platform-space #filters .simple-date-filter:not([hidden]) {
  order: 1; display: flex !important; height: 41px; min-width: 0;
  flex: 0 0 auto; gap: 8px !important; padding: 0 10px; border-color: var(--line);
}
body.platform-space #filters .simple-date-filter input { width: 136px; min-height: 34px; font-size: 14px; padding: 0; }
body.platform-space #filters .simple-date-filter span:not(.sr-only) { font-size: 12px; }
body.platform-space #filters > select { order: 2; height: 41px; }
body.platform-space #filters > button { order: 3; min-height: 41px; height: 41px; padding: 8px 17px; font-size: 14px; }
body.platform-space #filters > .filter-submit { min-width: 81px; }
body.platform-space #filters > .simple-filter-reset { min-width: 65px; }
body.platform-space #ledger { min-height: 0; flex: 1; }
body.platform-space #ledger > .table-scroll { border: 1px solid var(--line); border-radius: 6px; min-height: 140px; background: #fff; }
body.platform-space .order-date-presets { margin: 0 0 14px; gap: 5px; }
body.platform-space .order-date-presets > span { font-size: 12px; color: var(--muted); }
body.platform-space .order-date-presets button { min-height: 30px; padding: 5px 11px; border-radius: 5px; font-size: 12px; color: #667078; }
body.platform-space .order-date-presets button[aria-pressed=true] { background: #eef6ef; border-color: #bcd3c3; color: #087c72; }
body.platform-space #list-context { min-height: 0; margin: 0 0 10px; font-size: 12px; line-height: 1.6; color: var(--muted); }
body.platform-space #list-context:empty { display: none; }
body.platform-space #order-status-filters { padding: 0; margin-bottom: 14px; border: 0; background: transparent; }
body.platform-space .status-filter-line { align-items: center; gap: 8px; }
body.platform-space .status-filter-label { color: var(--muted); font-size: 12px; }
body.platform-space .status-chip { border-radius: 5px; min-height: 38px; height: auto; font-size: 14px; color: #667078; padding: 8px 10px; }
body.platform-space .status-chip[aria-pressed=true] { background: var(--mint); border-color: var(--mint); color: #fff; }
body.platform-space .status-chip[aria-pressed=true] .status-count { color: #fff; }
body.platform-space .status-count { font-size: 13px; font-weight: 500; color: #667078; }
body.platform-space .status-chip .status-check { width: 13px; height: 13px; border-color: #a4c1ad; }
body.platform-space .status-chip[aria-pressed=true] .status-check { background: #fff; border-color: #fff; }
body.platform-space #trade-more-open.has-selection { border-color: #8ab4a1; background: #edf7ee; color: #087c72; }
body.platform-space #refund-filter { min-height: 38px; font-size: 13px; border-color: var(--line); }
body.platform-space .status-filter-summary { margin-top: 9px; padding: 0; color: var(--muted); font-size: 12px; min-height: 18px; }
body.platform-space #trade-more-panel { background: #fff; border-color: var(--line); box-shadow: 0 8px 26px #1d38221a; border-radius: 6px; }
body.platform-space #platform-extra-filters { position: relative; flex: 0 0 auto; order: 4; margin: 0; border: 0; }
body.platform-space #platform-extra-filters > summary {
  display: inline-flex; align-items: center; gap: 8px; list-style: none;
  min-height: 40px; height: 40px; margin: 0; border: 1px solid var(--line); border-radius: 6px;
  padding: 8px 13px; color: #667078; background: #fff; font-size: 14px;
}
body.platform-space #platform-extra-filters > summary::-webkit-details-marker { display: none; }
body.platform-space #platform-extra-filters > summary img { width: 18px; height: 18px; }
body.platform-space #platform-extra-filters[open] > summary { color: var(--mint); background: #f0f7ef; border-color: #b3ceb9; }
body.platform-space #platform-extra-filters .platform-filter-popover {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 65;
  width: min(620px,calc(100vw - var(--ps-sidebar-width) - 60px));
  max-height: min(440px,calc(100dvh - 270px)); overflow: auto;
  padding: 16px; border: 1px solid var(--line); border-radius: 6px;
  background: #fff; box-shadow: 0 10px 30px #1a38221f;
}
body.platform-space #platform-extra-filters .simple-nav-label { margin: 0 0 10px; font-size: 12px; color: var(--muted); }
body.platform-space #platform-extra-filters #simple-category-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 7px; margin: 0 0 14px; padding: 0; border: 0; background: #fff; border-radius: 0; }
body.platform-space #platform-extra-filters .order-date-presets { border-top: 1px solid var(--line); padding-top: 13px; margin: 0 0 9px; }
body.platform-space #platform-extra-filters #list-context { margin: 0; }
body.platform-space #platform-extra-filters .simple-category { min-width: 0; width: 100%; min-height: 46px; padding: 8px 10px; border: 1px solid #e8ebe9; border-radius: 5px; }
body.platform-space #platform-extra-filters .simple-category strong { font-size: 13px; }
body.platform-space #platform-extra-filters .simple-category small { display: block; font-size: 11px; color: var(--muted); }
body.platform-space #platform-extra-filters .simple-category.active { color: var(--mint); background: #edf6ee; border-color: #bad1bf; }
body.platform-space #platform-extra-filters .simple-refund-subs { display: grid; min-width: 0; margin: 0; padding-left: 10px; border-color: var(--line); }
body.platform-space .order-table,
body.platform-space.simple-mode .order-table { min-width: 1030px; width: 100%; font-size: 14px; }
body.platform-space .order-table th,
body.platform-space.simple-mode .order-table th { height: 45px; padding: 0 13px; color: #667078; background: #f5f6f4; font-size: 13px; font-weight: 500; border-color: var(--line); }
body.platform-space .order-table td,
body.platform-space.simple-mode .order-table td { height: 60px; padding: 9px 13px; border-color: #e8ebe9; font-size: 14px; }
body.platform-space .order-table th:first-child,
body.platform-space .order-table td:first-child,
body.platform-space.simple-mode .order-table th:first-child,
body.platform-space.simple-mode .order-table td:first-child { min-width: 36px; width: 36px; padding: 0 7px; }
body.platform-space .order-table .number { font-size: 14px; letter-spacing: 0; }
body.platform-space .order-table .sku-cell,
body.platform-space.simple-mode .order-table .sku-cell { min-width: 145px; max-width: 220px; }
body.platform-space .order-table button.sku-name,
body.platform-space.simple-mode .order-table button.sku-name { width: clamp(140px,14vw,210px); min-height: 25px; padding: 2px 0; font-size: 14px; color: var(--text); }
body.platform-space .order-table button:not(.expand) { min-height: 30px; font-size: 13px; color: var(--mint); }
body.platform-space .order-table .row-actions { min-height: 39px; height: auto; gap: 6px; }
body.platform-space .order-table .expand { min-height: 30px; padding: 6px; }
body.platform-space .order-table td.platform-order-identity { display: table-cell; min-width: 230px; }
body.platform-space .platform-order-identity .platform-logo { width: 31px; height: 31px; flex-basis: 31px; }
body.platform-space .platform-order-identity > div { display: flex; flex-direction: row; align-items: center; gap: 11px; min-width: 220px; }
body.platform-space .platform-order-identity > div > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
body.platform-space .platform-order-identity strong { color: #182127; font-size: 14px; font-weight: 600; line-height: 1.4; }
body.platform-space .platform-order-identity small { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }
body.platform-space td:has(.platform-order-identity) { min-width: 230px; }
body.platform-space .source-status { font-size: 13px; gap: 7px; }
body.platform-space .source-status.finished { color: #238149; }
body.platform-space .source-status.finished::before { background: #238149; }
body.platform-space .refund-label, body.platform-space .refund-status { font-size: 12px; }
body.platform-space .assistant-note, body.platform-space .assistant-note-cell { font-size: 13px; color: #667078; }
body.platform-space .pager,
body.platform-space.simple-mode .pager { padding: 14px 0 17px; font-size: 13px; color: #667078; gap: 12px; }
body.platform-space .pager button { min-height: 32px; border-color: var(--line); background: #fff; }
body.platform-space #page-label { background: #eef7f0; color: #087c72; border: 1px solid #d8e7db; padding: 7px 13px; }
body.platform-space .selection-bar { padding: 10px 13px; border-radius: 5px; margin-bottom: 10px; font-size: 13px; }

/* Shared live panels keep their existing scrolling and data semantics. */
body.platform-space .sync-banner { border: 1px solid #e9dcb9; border-radius: 6px; padding: 10px 13px; font-size: 12px; }
body.platform-space .source-sync-panel { border-color: var(--line); border-radius: 6px; background: #fff; }
body.platform-space .source-scope-note, body.platform-space .bi-xianyu-note,
body.platform-space .receipt-rule, body.platform-space .bi-quality-note { font-size: 12px; line-height: 1.8; }
body.platform-space .bi-panel, body.platform-space .receipts-panel,
body.platform-space .settings-panel, body.platform-space .profit-panel { padding-bottom: 24px; min-height: 0; }
body.platform-space .bi-kpis, body.platform-space .receipt-kpis {
  gap: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff;
}
body.platform-space .bi-kpis > section, body.platform-space .receipt-kpis > section {
  padding: 20px 20px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: #fff; min-width: 0;
}
body.platform-space .bi-kpis > section:last-child,
body.platform-space .receipt-kpis > section:last-child { border-right: 0; }
body.platform-space .bi-kpis strong, body.platform-space .receipt-kpis strong { font-size: 27px; font-weight: 600; letter-spacing: -.5px; color: #182127; font-variant-numeric: tabular-nums; }
body.platform-space .bi-kpis > section:first-child strong { color: var(--mint); }
body.platform-space .bi-kpis span, body.platform-space .receipt-kpis > section > span { font-size: 13px; color: var(--muted); }
body.platform-space .bi-kpis small, body.platform-space .receipt-kpis small { font-size: 12px; color: var(--muted); line-height: 1.7; }
body.platform-space .bi-block, body.platform-space .bi-flow-card { border-color: var(--line); border-radius: 6px; background: #fff; box-shadow: none; }
body.platform-space .bi-block-title h2,
body.platform-space .bi-flow-card .bi-block-title h2 { font-size: 20px; color: #182127; }
body.platform-space .bi-block-title p, body.platform-space .bi-block-title > span { font-size: 12px; color: var(--muted); }
body.platform-space .bi-daily table, body.platform-space .receipt-table { font-size: 14px; }
body.platform-space .bi-daily th, body.platform-space .receipt-table th { background: #f5f6f4; color: #667078; font-size: 12px; font-weight: 500; border-color: var(--line); }
body.platform-space .bi-daily td, body.platform-space .receipt-table td { padding-top: 13px; padding-bottom: 13px; border-color: #e8ebe9; font-size: 13px; }
body.platform-space .bi-flow-canvas .bi-flow-node { background: #eff6ef; color: var(--mint); border-radius: 6px; }
body.platform-space .bi-flow-canvas .bi-flow-node.shipped { background: #eaf6ef; color: #14836c; }
body.platform-space .bi-flow-canvas .bi-flow-node.pre-refund { background: #fff1ec; color: #ae5942; }
body.platform-space .bi-flow-canvas .bi-flow-node.post-refund { background: #fbf1df; color: #9a6a23; }
body.platform-space .bi-flow-canvas .bi-flow-node span { color: #182127; font-size: clamp(14px,1.1vw,20px); }
body.platform-space .bi-flow-canvas .bi-flow-node small,
body.platform-space .bi-flow-explanation { color: var(--muted); }
body.platform-space .receipt-filters, body.platform-space .bi-filters { gap: 10px; flex-wrap: wrap; }
body.platform-space .bi-presets { border-color: var(--line); background: #fff; border-radius: 6px; }
body.platform-space .bi-presets label:has(input:checked) { background: #eef6ef; color: var(--mint); }
body.platform-space .bi-presets input:checked + span { background: var(--mint); color: #fff; border-color: var(--mint); }
body.platform-space .bi-presets input:focus-visible + span { outline-color: var(--mint); }
body.platform-space .bi-presets span { color: var(--muted); border-color: var(--line); }
body.platform-space .receipt-status-tabs button { color: #667078; font-size: 13px; }
body.platform-space .receipt-status-tabs button[aria-pressed=true] { background: #edf6ef; color: var(--mint); border-color: #bfd6c4; }
body.platform-space #xianyu-receivable-kpis .receivable-kpi-details { font-size: 12px; }
body.platform-space #xianyu-receivable-kpis .receivable-kpi-details > div { gap: 8px; align-items: flex-start; }
body.platform-space #xianyu-receivable-kpis .receivable-kpi-details dt { flex-shrink: 1; line-height: 1.65; }
body.platform-space #xianyu-receivable-kpis .receivable-kpi-details dd { flex-shrink: 0; line-height: 1.65; }
body.platform-space .receivable-kpi-foot { font-size: 11px; line-height: 1.8; }
body.platform-space .xianyu-receivable-actions button { min-height: 32px; font-size: 12px; }
body.platform-space .settings-toolbar { margin: 3px 0 20px; }
body.platform-space .settings-panel h2 { font-size: 20px; }
body.platform-space .bindings-table, body.platform-space .staff-table { font-size: 14px; background: #fff; }
body.platform-space .bindings-table th, body.platform-space .staff-table th { background: #f5f6f4; color: #667078; font-size: 13px; }
body.platform-space .bindings-table td, body.platform-space .staff-table td { padding: 14px 13px; border-color: var(--line); }
body.platform-space .bindings-table input, body.platform-space .bindings-table select { font-size: 13px; background: #fff; }
body.platform-space .settings-actions { border-color: var(--line); }

/* Advertising history and its native detail drawer. */
body.platform-space #xianyu-ads-panel, body.platform-space #xianyu-ads-drawer {
  --ads-text: #182127; --ads-muted: #667078; --ads-line: #e2e5e3; --ads-blue: #087c72;
  color: #182127;
}
body.platform-space .ads-page-heading h1, body.platform-space .dw-heading h1 { font-size: 30px; color: #182127; }
body.platform-space .ads-page-heading p, body.platform-space .dw-heading p { color: var(--muted); font-size: 13px; }
body.platform-space #xianyu-ads-panel .ads-period-controls { gap: 10px; }
body.platform-space #xianyu-ads-panel .ads-period-controls input,
body.platform-space #xianyu-ads-panel .ads-period-controls select { height: 39px; border-color: var(--line); color: #182127; font-size: 13px; }
body.platform-space #xianyu-ads-panel .xianyu-ads-span-switch,
body.platform-space #xianyu-ads-panel .xianyu-ads-metric-switch,
body.platform-space #xianyu-ads-panel .ads-history-switch { border-color: var(--line); }
body.platform-space #xianyu-ads-panel .xianyu-ads-span-switch button,
body.platform-space #xianyu-ads-panel .xianyu-ads-metric-switch button,
body.platform-space #xianyu-ads-panel .ads-history-switch button { color: #667078; font-size: 12px; }
body.platform-space #xianyu-ads-panel .xianyu-ads-span-switch button[aria-pressed=true],
body.platform-space #xianyu-ads-panel .xianyu-ads-metric-switch button[aria-pressed=true],
body.platform-space #xianyu-ads-panel .ads-history-switch button[aria-pressed=true] { background: #edf6ef; color: var(--mint); }
body.platform-space .ads-overview { border-color: var(--line); border-radius: 6px; }
body.platform-space .ads-overview-heading h3 { color: #182127; font-size: 14px; }
body.platform-space .ads-overview-heading > span { background: #f2f6ef; color: var(--muted); }
body.platform-space #xianyu-ads-panel .ads-period-summary > div { border-color: var(--line); }
body.platform-space #xianyu-ads-panel .ads-period-summary strong { color: #182127; font-size: 29px; }
body.platform-space #xianyu-ads-panel .ads-period-summary > div:first-child strong { color: var(--mint); }
body.platform-space #xianyu-ads-panel .ads-period-summary span { font-size: 13px; color: var(--muted); }
body.platform-space #xianyu-ads-panel .ads-period-summary small { font-size: 12px; color: var(--muted); }
body.platform-space .ads-coverage { background: #fafcf8; border-color: var(--line); }
body.platform-space #xianyu-ads-panel .ads-coverage button,
body.platform-space #xianyu-ads-panel .ads-history-actions button { color: var(--mint); font-size: 13px; }
body.platform-space #xianyu-ads-panel .xianyu-ads-trend,
body.platform-space #xianyu-ads-panel .ads-history { border-color: var(--line); border-radius: 6px; }
body.platform-space #xianyu-ads-panel .xianyu-ads-trend-head h2,
body.platform-space #xianyu-ads-panel .ads-history-heading h2 { color: #182127; font-size: 18px; }
body.platform-space #xianyu-ads-panel .ads-history th { color: #667078; background: #f5f6f4; border-color: var(--line); font-size: 12px; }
body.platform-space #xianyu-ads-panel .ads-history td { color: #182127; border-color: #e8ebe9; font-size: 14px; height: 53px; }
body.platform-space #xianyu-ads-panel .ads-history td strong { color: #182127; font-weight: 550; }
body.platform-space #xianyu-ads-panel .ads-history-pagination { color: var(--muted); font-size: 12px; }
body.platform-space #xianyu-ads-panel .ads-history-pagination button { font-size: 12px; border-color: var(--line); }
body.platform-space #xianyu-ads-drawer { width: 490px; color: #182127; }
body.platform-space .ads-drawer-heading, body.platform-space .ads-drawer-footer { border-color: var(--line); }
body.platform-space .ads-drawer-heading h2 { color: #182127; font-size: 20px; }
body.platform-space .ads-drawer-heading small, body.platform-space #xianyu-ads-drawer label,
body.platform-space .ads-drawer-fields small, body.platform-space .ads-drawer-audit,
body.platform-space #xianyu-ads-drawer-status { color: var(--muted); font-size: 12px; }
body.platform-space #xianyu-ads-drawer input, body.platform-space #xianyu-ads-drawer textarea {
  border-color: var(--line); color: #182127; background: #fff; caret-color: var(--mint); font-size: 14px;
}
body.platform-space #xianyu-ads-drawer input[readonly], body.platform-space #xianyu-ads-drawer textarea[readonly] { background: #f7f9f3; color: #667078; }
body.platform-space .ads-drawer-context, body.platform-space .ads-drawer-derived { background: #f2f7ef; color: #667078; }
body.platform-space .ads-drawer-derived strong { color: var(--mint); }
body.platform-space .ads-shop-tile { border-color: var(--line); }
body.platform-space .ads-shop-tile strong { color: #182127; font-size: 13px; }
body.platform-space .ads-shop-tile span { color: var(--muted); font-size: 12px; }
body.platform-space .ads-shop-tile[aria-pressed=true] { background: #eff7ef; border-color: #a6c5ad; }
body.platform-space .ads-shop-tile[aria-pressed=true] strong,
body.platform-space .ads-shop-tile[aria-pressed=true] span { color: #087c72; }
body.platform-space .ads-drawer-proof .xianyu-ads-upload { background: #f5faf2; color: var(--mint); border-color: #afcbb6; font-size: 13px; }
body.platform-space #xianyu-ads-panel :focus-visible,
body.platform-space #xianyu-ads-drawer :focus-visible { outline: 2px solid #087c72; outline-offset: 3px; }

/* Lazy-loaded debugging CSS is intentionally overridden with scoped selectors. */
body.platform-space #debug-workbench-panel, body.platform-space .dw-dialog {
  --dw-text: #182127; --dw-muted: #667078; --dw-line: #e2e5e3; --dw-blue: #087c72;
  color: #182127;
}
body.platform-space #debug-workbench-panel button, body.platform-space .dw-dialog button { font-size: 13px; }
body.platform-space #debug-workbench-panel .dw-heading h1 { font-size: 30px; color: #182127; }
body.platform-space #debug-workbench-panel .dw-heading p { font-size: 13px; color: var(--muted); }
body.platform-space #debug-workbench-panel .dw-summary { border-color: var(--line); border-radius: 6px; }
body.platform-space #debug-workbench-panel .dw-summary strong { color: #182127; font-size: 29px; }
body.platform-space #debug-workbench-panel .dw-summary section:first-child strong { color: var(--mint); }
body.platform-space #debug-workbench-panel .dw-summary span { font-size: 13px; }
body.platform-space #debug-workbench-panel .dw-summary small { font-size: 12px; }
body.platform-space #debug-workbench-panel .dw-tabs button { min-height: 42px; font-size: 14px; color: #667078; }
body.platform-space #debug-workbench-panel .dw-tabs button[aria-pressed=true] { color: var(--mint); background: #eff7ef; border-bottom-color: var(--mint); }
body.platform-space #debug-workbench-panel .dw-tabs button:hover { background: #f3f7ef; }
body.platform-space #debug-workbench-panel .dw-filters label { font-size: 12px; }
body.platform-space #debug-workbench-panel .dw-filters input,
body.platform-space #debug-workbench-panel .dw-filters select { height: 39px; border-color: var(--line); color: #182127; font-size: 13px; }
body.platform-space #debug-workbench-panel .dw-table-shell { border-color: var(--line); border-radius: 6px; }
body.platform-space #debug-workbench-panel .dw-table-scroll th { color: #667078; background: #f5f6f4; font-size: 12px; border-color: var(--line); }
body.platform-space #debug-workbench-panel .dw-table-scroll td { font-size: 14px; color: #182127; border-color: #e8ebe9; }
body.platform-space #debug-workbench-panel .dw-table-scroll td small { font-size: 12px; color: var(--muted); }
body.platform-space #debug-workbench-panel .dw-table-scroll tbody tr:hover td { background: #f7faf4; }
body.platform-space #debug-workbench-panel .dw-commission { color: var(--mint) !important; }
body.platform-space #debug-workbench-panel .dw-task-title { color: #667078; font-size: 12px; }
body.platform-space #debug-workbench-panel .dw-status.working { background: #eaf4ee; color: #13776b; }
body.platform-space #debug-workbench-panel .dw-status { font-size: 12px; }
body.platform-space #debug-workbench-panel .dw-origin { background: #f3f7ef; color: #667078; }
body.platform-space #debug-workbench-panel .dw-pagination { font-size: 12px; }
body.platform-space .dw-dialog { border-radius: 6px; background: #fff; box-shadow: 0 18px 56px #18372229; }
body.platform-space .dw-dialog-heading h2 { color: #182127; font-size: 20px; }
body.platform-space .dw-dialog label { font-size: 13px; color: #667078; }
body.platform-space .dw-dialog input, body.platform-space .dw-dialog select,
body.platform-space .dw-dialog textarea { border-color: var(--line); color: #182127; background: #fff; font-size: 14px; caret-color: var(--mint); }
body.platform-space .dw-dialog input:focus, body.platform-space .dw-dialog textarea:focus,
body.platform-space .dw-dialog select:focus { border-color: #6eac8a; }
body.platform-space .dw-dialog .dw-check input { accent-color: var(--mint); }
body.platform-space .dw-dialog .dw-preview, body.platform-space .dw-dialog .dw-dialog-context { background: #eff7ef; color: #667078; }
body.platform-space .dw-dialog .dw-detail-grid dd { color: #182127; font-size: 14px; }
body.platform-space .dw-dialog .dw-detail-grid dt, body.platform-space .dw-dialog .dw-form-note,
body.platform-space .dw-dialog .dw-plan-list small, body.platform-space .dw-dialog .dw-events p { color: var(--muted); font-size: 12px; }
body.platform-space #debug-workbench-panel :focus-visible,
body.platform-space .dw-dialog :focus-visible { outline: 2px solid #087c72; outline-offset: 3px; }

/* Existing dialogs, modeless order detail, menus and refund notes. */
body.platform-space dialog { background: #fff; border-color: var(--line); border-radius: 6px; color: var(--text); box-shadow: 0 18px 56px #1b38272b; }
body.platform-space dialog::backdrop { background: #193c2b5c; }
body.platform-space dialog h2 { font-size: 21px; }
body.platform-space dialog input, body.platform-space dialog textarea,
body.platform-space dialog select { background: #fff; font-size: 14px; }
body.platform-space .order-drawer {
  inset: 0 0 0 auto; top: 0; width: 480px; max-width: 100vw; height: 100dvh;
  max-height: 100dvh; border-radius: 0; border: 0; border-left: 1px solid var(--line);
  padding: 24px; z-index: 85; box-shadow: -8px 0 30px #18332117;
}
body.platform-space:has(#order-dialog[open]) #ledger { margin-right: 0; }
body.platform-space .order-id { font-size: 18px; display: flex; align-items: center; gap: 10px; }
body.platform-space .detail-section { border-color: var(--line); }
body.platform-space .detail-section h3 { font-size: 14px; color: #182127; }
body.platform-space .detail-meta { font-size: 14px; line-height: 1.7; }
body.platform-space .detail-meta span { color: var(--muted); }
body.platform-space .event-list { font-size: 13px; }
body.platform-space .order-menu { background: #fff; border-color: var(--line); border-radius: 6px; box-shadow: 0 12px 32px #1a382329; z-index: 110; }
body.platform-space .order-menu button { min-height: 34px; font-size: 13px; }
body.platform-space .order-menu button:hover, body.platform-space .order-menu button:focus { background: #edf6ee; }
body.platform-space .simple-refund-panel {
  position: fixed; z-index: 80; right: 0; top: 0; width: 440px; max-width: 100vw;
  height: 100dvh; padding: 23px 23px; background: #fff; border-color: var(--line);
  box-shadow: -8px 0 26px #16372417;
}
body.platform-space .simple-refund-heading h2 { font-size: 18px; }
body.platform-space .simple-refund-content { font-size: 13px; }
body.platform-space .simple-refund-section h3 { font-size: 14px; }
body.platform-space .simple-refund-section textarea { background: #fbfcf8; font-size: 14px; }
body.platform-space .simple-refund-history p { background: #f3f7ef; }
body.platform-space .simple-refund-history time { font-size: 11px; }
body.platform-space .notice { background: #fff; border-color: #bdd7c4; box-shadow: 0 6px 25px #1c3b2721; color: #182127; font-size: 13px; }
body.platform-space .login-panel { margin-top: 60px; padding: 30px; border: 1px solid var(--line); border-radius: 6px; background: #fff; width: 440px; }
body.platform-space .login-panel .eyebrow { color: var(--muted); }

@media(min-width:1321px) {
  body.platform-space { --ps-sidebar-width: 256px; --ps-header-height: 70px; --ps-context-height: 62px; }
  body.platform-space h1, body.platform-space.simple-mode .heading-copy h1,
  body.platform-space .ads-page-heading h1, body.platform-space #debug-workbench-panel .dw-heading h1 { font-size: 32px; }
  body.platform-space .order-table td, body.platform-space.simple-mode .order-table td,
  body.platform-space .order-table .number { font-size: 15px; }
  body.platform-space .order-table button.sku-name,
  body.platform-space.simple-mode .order-table button.sku-name,
  body.platform-space .platform-order-identity strong { font-size: 15px; }
  body.platform-space .platform-order-identity small { font-size: 13px; }
  body.platform-space .source-status, body.platform-space .assistant-note { font-size: 14px; }
}
@media(min-width:1600px) {
  body.platform-space { --ps-sidebar-width: 256px; }
  body.platform-space #platform-top-nav { gap: 15px; }
  body.platform-space #platform-top-nav > button, body.platform-space #platform-top-nav > a { font-size: 17px; padding: 0 17px; }
  body.platform-space #main-content { padding-left: 32px; padding-right: 32px; }
}
@media(max-width:1280px) {
  body.platform-space { --ps-sidebar-width: 215px; }
  body.platform-space .topbar { padding: 0 18px; gap: 13px; }
  body.platform-space .brand { font-size: 20px; gap: 9px; }
  body.platform-space #platform-top-nav { gap: 3px; }
  body.platform-space #platform-top-nav > button, body.platform-space #platform-top-nav > a { padding: 0 9px; gap: 7px; font-size: 14px; }
  body.platform-space .top-meta { gap: 9px; }
  body.platform-space #main-content { padding: 23px 21px 0; }
  body.platform-space .platform-context-title { padding-left: 21px; }
  body.platform-space .bi-kpis strong, body.platform-space .receipt-kpis strong { font-size: 24px; }
  body.platform-space .bi-kpis > section, body.platform-space .receipt-kpis > section { padding: 17px 15px; }
  body.platform-space .bi-bottom-grid { grid-template-columns: minmax(0,1fr); }
}
@media(max-width:1050px) {
  body.platform-space .topbar { gap: 11px; }
  body.platform-space .brand { font-size: 18px; }
  body.platform-space #platform-top-nav > button, body.platform-space #platform-top-nav > a { gap: 6px; padding: 0 9px; font-size: 13px; }
  body.platform-space #platform-top-nav img { width: 19px; height: 19px; }
  body.platform-space #current-user { max-width: 85px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  body.platform-space #sync-indicator { max-width: 122px; font-size: 11px; }
  body.platform-space #sync-all-erp { max-width: 35px; white-space: nowrap; font-size: 0; }
  body.platform-space .platform-context-note, body.platform-space #platform-context-note { display: none; }
  body.platform-space #filters .search { max-width: none; flex-basis: 220px; }
  body.platform-space .bi-kpis, body.platform-space .receipt-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.platform-space .bi-kpis > section:nth-child(2n), body.platform-space .receipt-kpis > section:nth-child(2n) { border-right: 0; }
  body.platform-space .bi-kpis > section:nth-child(n+3), body.platform-space .receipt-kpis > section:nth-child(n+3) { border-top: 1px solid var(--line); }
  body.platform-space #debug-workbench-panel .dw-summary strong { font-size: 24px; }
  body.platform-space #xianyu-ads-panel .ads-period-summary strong { font-size: 25px; }
}
@media(max-width:760px) {
  body.platform-space { --ps-header-height: 62px; --ps-context-height: 51px; --ps-sidebar-width: 270px; font-size: 14px; }
  body.platform-space .topbar { height: 62px; min-height: 62px; padding: 0 12px; gap: 12px; }
  body.platform-space .brand { font-size: 17px; gap: 8px; }
  body.platform-space .brand-mark { width: 32px; height: 32px; font-size: 21px; }
  body.platform-space .brand-image-frame { width: 32px; height: 32px; }
  body.platform-space .brand-image-frame > img { width: 43px; height: 43px; left: -5.5px; top: -5.8px; }
  body.platform-space #platform-top-nav { margin-left: 0; gap: 1px; }
  body.platform-space #platform-top-nav > button, body.platform-space #platform-top-nav > a { flex-direction: column; gap: 3px; min-width: 49px; padding: 7px 7px 6px; font-size: 10px; }
  body.platform-space #platform-top-nav img, body.platform-space #platform-top-nav img.platform-logo { display: inline-block; width: 20px; height: 20px; flex-basis: 20px; }
  body.platform-space .top-meta { flex-shrink: 0; gap: 6px; }
  body.platform-space #sync-indicator, body.platform-space #sync-all-erp,
  body.platform-space #current-user, body.platform-space #appearance-open { display: none; }
  body.platform-space #logout { min-height: 30px; padding: 5px; font-size: 11px; }
  body.platform-space #platform-context { height: 51px; min-height: 51px; }
  body.platform-space .platform-context-title { flex-basis: auto; width: auto; padding: 0 12px; gap: 7px; font-size: 13px; white-space: nowrap; }
  body.platform-space .platform-context-title .platform-logo { width: 24px; height: 24px; flex-basis: 24px; }
  body.platform-space .platform-context-links { padding: 0 9px; gap: 3px; }
  body.platform-space .platform-context-links button, body.platform-space .platform-context-links a { padding: 7px 8px; font-size: 12px; min-height: 31px; }
  body.platform-space .platform-context-links img { width: 15px; height: 15px; }
  body.platform-space .workspace,
  body.platform-space.simple-mode .workspace,
  body.platform-space.simple-mode.simple-refund-open .workspace { display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(0,1fr); height: calc(100dvh - 113px); }
  body.platform-space #simple-order-sidebar {
    visibility: hidden; position: fixed; inset: 0 auto 0 0; z-index: 95;
    width: 278px; max-width: calc(100vw - 52px); padding: 25px 14px 20px;
    height: 100dvh; border-right: 1px solid var(--line); box-shadow: 12px 0 36px #193b2526;
  }
  body.platform-space.platform-sidebar-open #simple-order-sidebar { visibility: visible; }
  body.platform-space #platform-sidebar-backdrop { position: fixed; inset: 0; z-index: 94; width: 100vw; height: 100dvh; min-height: 0; border: 0; border-radius: 0; padding: 0; background: #1c3b285c; }
  body.platform-space.platform-sidebar-open #platform-sidebar-backdrop:not([hidden]) { display: block; }
  body.platform-space #platform-sidebar-toggle:not([hidden]) {
    display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px;
    position: fixed; top: 125px; left: 15px; z-index: 40;
    align-self: flex-start; min-height: 32px; max-width: calc(100vw - 30px); padding: 5px 10px;
    margin: 0; background: #fff; border-color: var(--line); color: #182127; font-size: 12px;
  }
  body.platform-space #platform-sidebar-toggle img { display: inline-block; width: 16px; height: 16px; }
  body.platform-space #platform-store-nav h2 { font-size: 20px; }
  body.platform-space #main-content { padding: 58px 15px 0; min-width: 0; height: 100%; overflow: hidden; }
  body.platform-space .page-heading, body.platform-space.simple-mode .page-heading { gap: 16px; margin-bottom: 14px; }
  body.platform-space .heading-copy, body.platform-space.simple-mode .heading-copy { gap: 8px; }
  body.platform-space h1, body.platform-space.simple-mode .heading-copy h1,
  body.platform-space .ads-page-heading h1, body.platform-space #debug-workbench-panel .dw-heading h1 { font-size: 25px; }
  body.platform-space .heading-copy p { font-size: 12px; }
  body.platform-space #filters { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 8px; }
  body.platform-space #filters .search { grid-column: 1/-1; width: 100%; max-width: none; min-width: 0; height: 39px; order: 0; }
  body.platform-space #filters .simple-date-filter:not([hidden]) { grid-column: 1/-1; width: 100%; height: 37px; justify-content: space-between; order: 1; }
  body.platform-space #filters .simple-date-filter input { width: 45%; font-size: 13px; }
  body.platform-space #filters > button { order: 3; min-width: 0; height: 36px; min-height: 36px; padding: 6px 12px; font-size: 13px; }
  body.platform-space #filters > .filter-submit { grid-column: 2; }
  body.platform-space #filters > .simple-filter-reset { grid-column: 3; }
  body.platform-space .order-date-presets { margin-bottom: 11px; gap: 4px; overflow-x: auto; flex-shrink: 0; }
  body.platform-space .order-date-presets > span { display: none; }
  body.platform-space .order-date-presets button { padding: 5px 9px; min-height: 29px; font-size: 11px; }
  body.platform-space #order-status-filters { margin-bottom: 11px; }
  body.platform-space .status-filter-line { flex-wrap: wrap; gap: 8px; }
  body.platform-space .status-filter-label { display: none; }
  body.platform-space .status-chip { min-height: 34px; padding: 6px 8px; font-size: 12px; }
  body.platform-space .status-count { font-size: 11px; }
  body.platform-space #refund-filter { min-height: 34px; height: 34px; font-size: 12px; }
  body.platform-space .status-filter-summary { margin-top: 7px; font-size: 11px; }
  body.platform-space #list-context { font-size: 11px; margin-bottom: 8px; }
  body.platform-space .order-table, body.platform-space.simple-mode .order-table { min-width: 1000px; font-size: 14px; }
  body.platform-space .order-table th, body.platform-space.simple-mode .order-table th { height: 40px; padding: 0 10px; font-size: 12px; }
  body.platform-space .order-table td, body.platform-space.simple-mode .order-table td { height: 57px; padding: 8px 10px; font-size: 13px; }
  body.platform-space .platform-order-identity > div { gap: 9px; min-width: 210px; }
  body.platform-space .platform-order-identity strong { font-size: 13px; }
  body.platform-space .platform-order-identity small { font-size: 12px; }
  body.platform-space .pager, body.platform-space.simple-mode .pager { padding: 12px 0 14px; gap: 7px; font-size: 12px; }
  body.platform-space .pager > div { gap: 7px; }
  body.platform-space .pager > div:last-child { gap: 6px; }
  body.platform-space .pager select { font-size: 12px; min-height: 28px; }
  body.platform-space #page-label { padding: 6px 8px; font-size: 12px; }
  body.platform-space #platform-extra-filters { grid-column: 1; grid-row: 3; order: 2; margin: 0; }
  body.platform-space #platform-extra-filters > summary { min-height: 36px; height: 36px; padding: 6px 12px; font-size: 13px; }
  body.platform-space #platform-extra-filters[open] { grid-column: 1/-1; grid-row: auto; order: 4; }
  body.platform-space #platform-extra-filters .platform-filter-popover { position: static; width: 100%; max-height: 260px; margin-top: 8px; padding: 11px; box-shadow: none; }
  body.platform-space #platform-extra-filters #simple-category-list { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 0; }
  body.platform-space #platform-extra-filters .simple-category small { font-size: 10px; }
  body.platform-space .bi-kpis, body.platform-space .receipt-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.platform-space .bi-kpis > section, body.platform-space .receipt-kpis > section { padding: 16px 13px; }
  body.platform-space .bi-kpis strong, body.platform-space .receipt-kpis strong { font-size: 23px; }
  body.platform-space .bi-kpis span, body.platform-space .receipt-kpis > section > span { font-size: 12px; }
  body.platform-space .bi-kpis small, body.platform-space .receipt-kpis small { font-size: 11px; }
  body.platform-space #xianyu-receivable-kpis { grid-template-columns: minmax(0,1fr); }
  body.platform-space #xianyu-receivable-kpis > section { border-right: 0; border-top: 1px solid var(--line); }
  body.platform-space #xianyu-receivable-kpis > section:first-child { border-top: 0; }
  body.platform-space .bi-block-title h2, body.platform-space .bi-flow-card .bi-block-title h2 { font-size: 18px; }
  body.platform-space .ads-page-heading p, body.platform-space #debug-workbench-panel .dw-heading p { font-size: 12px; }
  body.platform-space #xianyu-ads-panel .ads-period-controls { gap: 8px; }
  body.platform-space #xianyu-ads-panel .ads-period-controls input, body.platform-space #xianyu-ads-panel .ads-period-controls select { font-size: 12px; min-width: 0; }
  body.platform-space #xianyu-ads-panel .ads-period-summary strong { font-size: 23px; }
  body.platform-space #xianyu-ads-panel .ads-period-summary span { font-size: 12px; }
  body.platform-space #xianyu-ads-panel .ads-period-summary small { font-size: 11px; }
  body.platform-space #xianyu-ads-panel .ads-history-tools { flex-wrap: wrap; }
  body.platform-space #xianyu-ads-panel .ads-history th { font-size: 11px; }
  body.platform-space #xianyu-ads-panel .ads-history td { font-size: 13px; }
  body.platform-space #debug-workbench-panel .dw-summary span { font-size: 12px; }
  body.platform-space #debug-workbench-panel .dw-summary strong { font-size: 24px; }
  body.platform-space #debug-workbench-panel .dw-summary small { font-size: 11px; }
  body.platform-space #debug-workbench-panel .dw-tabs button { padding: 9px 11px; min-height: 39px; font-size: 13px; }
  body.platform-space #debug-workbench-panel .dw-filters input[type=date] { width: 100%; }
  body.platform-space #debug-workbench-panel .dw-table-scroll td { font-size: 13px; }
  body.platform-space dialog { padding: 20px; max-width: calc(100vw - 24px); }
  body.platform-space .order-drawer { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; top: 0; padding: 21px 18px; }
  body.platform-space .simple-refund-panel { width: 100vw; max-width: 100vw; top: 0; height: 100dvh; padding: 20px 17px; }
  body.platform-space #xianyu-ads-drawer { width: 100vw; max-width: 100vw; padding: 0; }
  body.platform-space .dw-dialog { width: 100vw; max-width: 100vw; padding: 0; border-radius: 0; }
  body.platform-space .login-panel { margin-top: 35px; padding: 24px; }
}
@media(max-width:430px) {
  body.platform-space .brand { font-size: 0; gap: 0; }
  body.platform-space .brand-mark { font-size: 21px; }
  body.platform-space #platform-top-nav > button, body.platform-space #platform-top-nav > a { min-width: 46px; padding-left: 6px; padding-right: 6px; }
  body.platform-space .platform-context-title { font-size: 12px; gap: 6px; padding-left: 12px; padding-right: 9px; }
  body.platform-space .platform-context-links { padding-left: 5px; gap: 0; }
  body.platform-space .platform-context-links button, body.platform-space .platform-context-links a { font-size: 11px; padding-left: 6px; padding-right: 6px; }
  body.platform-space .top-meta { gap: 2px; }
}
@media(prefers-reduced-motion:reduce) {
  body.platform-space *, body.platform-space *::before, body.platform-space *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
