/* Mobile web UI 2026-10-17: presentation only, compatible with the live Build151 ledger. */
.web-mobile-header, .web-mobile-nav-heading, .web-mobile-filter-toggle, .web-mobile-row-toggle { display: none; }
.web-mobile-backdrop[hidden] { display: none; }
@media (max-width: 980px) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body { font-size: 14px; }
  #accountGate { padding: 18px 12px 72px; }
  .web-login-content { grid-template-columns: minmax(0, 1fr); min-height: 0; max-width: 440px; margin-inline: auto; }
  .web-login-header { padding-bottom: 18px; }
  .web-login-browser-note, .web-login-intro { display: none; }
  .web-login-form-panel { padding: 24px 20px; border-radius: 8px; }
  .web-login-shell .account-login-heading h1 { font-size: 24px; }
  .app { display: block; min-width: 0; }
  .web-mobile-header { display: none; }
  body[data-web-auth="authenticated"] .web-mobile-header {
    position: sticky; top: 0; z-index: 80; display: flex; align-items: center; justify-content: space-between;
    gap: 12px; min-height: 64px; padding: 8px 14px; padding-top: max(8px, env(safe-area-inset-top));
    border-bottom: 1px solid #dce4ed; background: #fff;
  }
  .web-mobile-header > div { min-width: 0; }
  .web-mobile-header strong { display: block; color: #203951; font-size: 16px; line-height: 1.4; }
  .web-mobile-header span { display: block; margin-top: 3px; color: #526173; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .web-mobile-header button, .web-mobile-nav-heading button { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid #dce4ed; border-radius: 8px; color: #2466a8; background: #f5f8fc; }
  .web-mobile-backdrop { position: fixed; inset: 0; z-index: 85; background: #14263766; }
  body.web-mobile-navigation-open { overflow: hidden; }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 90; display: flex; flex-direction: column;
    width: min(340px, calc(100% - 40px)); max-width: 100%; height: 100dvh; overflow-y: auto;
    padding: 12px; padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: max(20px, env(safe-area-inset-bottom));
    gap: 12px; transform: translateX(-105%); visibility: hidden; background: #f2f6fa; border-right: 1px solid #d5dfeb;
  }
  .web-mobile-navigation-open .sidebar { transform: translateX(0); visibility: visible; }
  .web-mobile-nav-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; order: 0; }
  .web-mobile-nav-heading strong { font-size: 17px; color: #203951; }
  .sidebar > .brand { display: none; }
  .sidebar > .global-nav { order: 1; }
  .sidebar > .store-switcher { order: 2; border-radius: 8px; }
  .sidebar > .nav-group-label { order: 3; margin-top: 4px; letter-spacing: 0; }
  .sidebar > nav { display: grid; grid-template-columns: 1fr; order: 4; gap: 4px; overflow: visible; }
  .sidebar nav .nav-item { min-height: 44px; text-align: left; font-size: 15px; }
  .sidebar #exceptionsNav { justify-content: space-between; }
  .sidebar > .account-summary { order: 5; margin-top: auto; border-radius: 8px; }
  .account-summary-actions { gap: 8px; }
  .account-summary-actions button { min-height: 40px; font-size: 12px; }
  .sidebar .store-select-row { grid-template-columns: minmax(0, 1fr); }
  .sidebar .store-switcher select { height: 44px; font-size: 16px; }
  main { width: 100%; min-width: 0; padding: 14px 12px 28px; }
  main > .web-pilot-note, main > .web-view-context { display: none; }
  .panel, .surface, .panel > section, .panel > div { min-width: 0; max-width: 100%; }
  .surface { padding: 14px; border-radius: 8px; }
  .topbar { position: static; min-height: 0; display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin: 0 0 16px; padding: 0 0 14px; background: transparent; }
  .topbar h1 { margin: 0; font-size: 22px; line-height: 1.4; white-space: normal; letter-spacing: 0; }
  .topbar .inline-help { margin-top: 4px; }
  .toolbar { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; gap: 8px; }
  .month-toolbar-group { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; }
  .month-picker-label { min-width: 0; width: 100%; height: 44px; }
  .month-picker-label select { flex: 1 1 auto; width: auto; min-width: 0; height: 42px; font-size: 16px; }
  .toolbar .month-add-button { min-width: 44px; width: 44px; height: 44px; padding: 0; font-size: 0; }
  .toolbar .month-add-button > span { font-size: 24px; }
  .toolbar-command-group { display: flex; gap: 8px; padding: 0; border: 0; }
  .toolbar-command-group button { min-width: 0; min-height: 44px; }
  .toolbar #refreshData { flex: 0 0 44px; width: 44px; padding: 0; font-size: 0; }
  .toolbar #refreshData > span { font-size: 23px; }
  .toolbar #exportCsv { flex: 1; font-size: 14px; white-space: normal; }
  .section-head, .core-section-head { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
  .section-head h2, h2 { font-size: 18px; line-height: 1.45; }
  .section-head > span, .section-head p { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
  .content-grid, .import-layout, .overview-insight-grid, .aging-layout, .core-tracking-grid, .overview-comparison-band { grid-template-columns: minmax(0, 1fr); }
  .core-profit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .core-profit-item { padding: 14px 12px; border-bottom: 1px solid #dce4ed; }
  .core-profit-item.is-latest { grid-column: 1 / -1; }
  .core-profit-item strong { font-size: 22px; overflow-wrap: anywhere; }
  .core-profit-item.is-latest strong { font-size: 30px; }
  .core-profit-foot { display: grid; grid-template-columns: minmax(0, 1fr); }
  .core-profit-foot > div { padding: 10px 12px; flex-wrap: wrap; }
  .core-risk-grid, .core-order-counts, .overview-health-strip, .fee-summary-band, .fee-focus-strip,
  .receivable-control-grid, .receivable-summary-band, .receipt-reconciliation, .variance-summary-band,
  .global-close-readiness-counts, .global-operating-focus, .health-ring-grid, .overview-fee-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-kpi strong, .receivable-control-grid strong, .receivable-summary-band strong { font-size: 20px; overflow-wrap: anywhere; }
  .core-receivable-type-row { grid-template-columns: minmax(0, 1fr) auto; }
  .core-receivable-type-row .core-progress-track { grid-column: 1 / -1; }
  .appeal-overview { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 16px 0; }
  .appeal-months, .month-comparison-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .category-profit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-profit-item strong { font-size: 20px; }
  .category-profit-name { font-size: 15px; overflow-wrap: anywhere; }
  .profit-confidence-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comparison-details > div, .progress-row, .receivable-summary-row, .global-close-readiness-row,
  .fee-bar-row, .overview-receivable-row { min-width: 0; }
  .progress-row, .receivable-summary-row, .global-close-readiness-row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px 0; }
  .progress-row em { text-align: left; }
  .global-close-readiness-row button { justify-self: start; min-height: 44px; }
  .table-wrap, .global-shop-table-wrap, .category-orders-wrap { max-width: 100%; min-width: 0; -webkit-overflow-scrolling: touch; }
  input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: 16px; }
  button, .filter-trigger { touch-action: manipulation; }
  .filter-trigger, .sort-select, .table-controls input { min-height: 44px; }
  .status-menu { max-width: min(320px, calc(100vw - 48px)); }
  .status-menu.wide { width: min(320px, calc(100vw - 48px)); }
  .exception-toolbar, .exception-actions, .exception-priority-filter { flex-wrap: wrap; }
  .exception-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exception-summary-item { min-width: 0; }
  .exception-item { grid-template-columns: 20px minmax(0, 1fr); padding: 12px 8px; }
  .exception-item > div { min-width: 0; overflow-wrap: anywhere; }
  .exception-actions { grid-column: 2; }
  .exception-actions button { min-height: 40px; }
  #exceptions .actions button { min-height: 40px; font-size: 13px; }
  .receivable-detail-filters, .receipt-entry-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
  .receivable-detail-filters label { grid-template-columns: minmax(0, 1fr); }
  .import-step-head { flex-wrap: wrap; }
  .import-plan-settings, .import-file-grid, .import-settings-grid { grid-template-columns: minmax(0, 1fr); }
  .import-task-actions { flex-wrap: wrap; gap: 6px; }
  .import-task-actions button { min-height: 40px; }
  .import-task-row { min-width: 0; }
  .segmented-control { flex-wrap: wrap; }
  .modal-backdrop { z-index: 100; padding: 10px; }
  .toast { z-index: 95; top: 72px; bottom: auto; left: 12px; right: 12px; max-width: none; }
  .store-modal, .web-dialog { max-width: calc(100vw - 20px); max-height: calc(100dvh - 24px); padding: 16px; border-radius: 8px; }
  .correction-grid { grid-template-columns: minmax(0, 1fr); }
  .correction-actions { flex-wrap: wrap; }
  .correction-actions button { min-height: 40px; }
  .web-dialog .section-head { flex-wrap: nowrap; }
  .web-dialog .section-head > div { min-width: 0; }
  .web-dialog button[aria-label^="关闭"] { flex-shrink: 0; min-width: 44px; min-height: 44px; }
  .web-dialog input, .web-dialog select, .web-dialog textarea { min-width: 0; max-width: 100%; }
  .web-feedback-status { white-space: nowrap; }
  .web-feedback-heading strong { font-size: 15px; }
  .web-source-actions button, .web-feedback-item button { min-height: 40px; }
  .web-compliance-footer { padding-bottom: max(20px, env(safe-area-inset-bottom)); }

  #globalOverview .global-overview-hero { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 18px 0; }
  #globalOverview .global-profit-focus { padding: 0 14px; }
  #globalOverview .global-profit-focus strong { font-size: 30px; }
  #globalOverview .global-profit-comparison { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #globalOverview .global-profit-comparison > div { padding: 0 12px; }
  #globalOverview .global-profit-comparison strong { font-size: 20px; }
  #globalOverview .global-dashboard-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #globalOverview .dashboard-kpi { padding: 14px 10px; }
  #globalOverview .dashboard-kpi strong { font-size: 20px; }
  #globalOverview .dashboard-kpi em { white-space: normal; }
  #globalOverview .global-breakdown-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  #globalOverview .global-shop-table { display: block; min-width: 0; width: 100%; }
  #globalOverview .global-shop-table thead { display: none; }
  #globalOverview .global-shop-table tbody { display: grid; gap: 12px; }
  #globalOverview .global-shop-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; gap: 12px; border: 1px solid #dce4ed; border-radius: 8px; background: #fff; }
  #globalOverview .global-shop-table td { display: block; min-width: 0; width: auto; padding: 0; border: 0; text-align: left; white-space: normal; overflow-wrap: anywhere; }
  #globalOverview .global-shop-table td:nth-child(3) { display: block; }
  #globalOverview .global-shop-table td:first-child, #globalOverview .global-shop-table td:last-child { grid-column: 1 / -1; min-width: 0; }
  #globalOverview .global-shop-table td:first-child strong { font-size: 16px; }
  #globalOverview .global-shop-table td::before { display: block; content: attr(data-mobile-label); color: #526173; font-size: 12px; font-weight: 500; margin-bottom: 5px; }
  #globalOverview .global-shop-table td:first-child::before, #globalOverview .global-shop-table td:last-child::before { display: none; }
  #globalOverview .global-shop-table td[colspan]::before { display: none; }
  #globalOverview .global-shop-table small { margin-top: 3px; }
  #globalOverview .global-shop-table progress { margin: 0; width: 100%; max-width: 140px; }
  #globalOverview .global-shop-table .store-detail-button { width: 100%; min-height: 44px; background: #eef5fe; }
  #globalOverview .global-shop-table-wrap { border: 0; overflow: visible; }
  #globalOverview .global-shop-profit .value-comparison-row { min-width: 0; }
  #globalOverview .global-shop-profit strong { font-size: 18px; }

  #orders .section-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  #orders .section-head > h2 { padding-top: 8px; white-space: normal; }
  .web-mobile-filter-toggle { display: block; min-height: 40px; padding: 8px 14px; color: #2466a8; background: #eaf2fd; border: 1px solid #ccdaec; border-radius: 8px; }
  #orders .table-controls { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; padding: 0; background: transparent; gap: 8px; }
  #orders .table-controls .order-search { grid-column: 1 / -1; width: 100%; }
  #orders .table-controls > *, #orders .filter-trigger, #orders .sort-select { min-width: 0; width: 100%; }
  #orders .filter-trigger { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #orders .table-controls #orderTableCount { font-size: 12px; align-self: center; }
  #orders:not(.web-mobile-filters-open) .table-controls > :not(.order-search):not(#orderTableCount) { display: none; }
  #orders .surface { display: block; height: auto; min-height: 0; overflow: visible; padding: 0; border: 0; background: transparent; box-shadow: none; }
  #orders .table-wrap { height: auto; min-height: 0; max-height: none; overflow: visible; border: 0; scrollbar-gutter: auto; background: transparent; }
  #orders table { display: block; min-width: 0; width: 100%; }
  #orders thead { display: none; }
  #orders tbody { display: grid; gap: 12px; }
  #orders tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px 12px; border: 1px solid #dce4ed; border-radius: 8px; background: #fff; }
  #orders tbody td { display: none; position: static; min-width: 0; width: auto; max-width: none; padding: 0; border: 0; text-align: left; white-space: normal; overflow-wrap: anywhere; background: transparent; box-shadow: none; }
  #orders tbody tr:hover td { background: transparent; }
  #orders tbody td.web-mobile-cell-summary, #orders tbody .web-mobile-row-open td, #orders tbody td[colspan] { display: block; }
  #orders tbody td.web-mobile-cell-primary, #orders tbody td[colspan], #orders tbody td[data-mobile-label$="状态"] { grid-column: 1 / -1; }
  #orders tbody td::before { display: block; content: attr(data-mobile-label); margin-bottom: 5px; color: #526173; font-size: 12px; font-weight: 500; }
  #orders tbody td:first-child::before, #orders tbody td.web-mobile-product-cell::before, #orders tbody td[colspan]::before { display: none; }
  #orders .order-id-group { display: grid; grid-template-columns: 18px minmax(0, 1fr) 32px 44px 40px; gap: 6px; }
  #orders .order-id-text { width: auto; max-width: 100%; font-size: 12px; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
  #orders .copy-order-button, #orders .edit-order-button { min-width: 0; min-height: 36px; padding: 4px; }
  #orders .web-mobile-row-toggle { display: block; width: 100%; margin-top: 10px; padding: 8px 0; min-height: 36px; color: #2466a8; background: transparent; border-top: 1px solid #edf1f6; border-radius: 0; text-align: left; font-size: 13px; }
  #orders .sticky-profit { font-size: 18px; }
  #orders .quantity-cell { text-align: left; }
  #orders .cost-cell { justify-content: flex-start; }
  #orders .tag, #orders .compact-status-line { height: auto; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  #orders .order-row-selected { border-color: #2878ca; }
  #orders .order-profit-anomaly { border-left: 3px solid #c83f42; }
  #orders { padding-bottom: 116px; }
  #orders .order-pagination { position: fixed; inset: auto 0 0; z-index: 70; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px max(8px, env(safe-area-inset-bottom)); border-top: 1px solid #dce4ed; background: #fff; }
  #orders .page-controls { flex-wrap: wrap; gap: 8px; }
  #orders .page-controls button, #orders .page-controls select { min-height: 40px; }
  #orders .order-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  #orders .order-summary strong { white-space: normal; overflow-wrap: anywhere; }
  #orders .order-profit-reconcile { display: flex; flex-direction: column; min-width: 0; overflow: visible; }
  #orders .order-profit-reconcile > div { min-width: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  #orders .order-profit-reconcile i { min-width: 0; }
}
@media (min-width: 640px) and (max-width: 980px) {
  #orders tbody, #globalOverview .global-shop-table tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* workbench-ui-20261017: display changes only; ledger cells remain authoritative. */
.web-workbench { letter-spacing: 0; }
.web-workbench .app { grid-template-columns: 224px minmax(0, 1fr); }
.web-workbench .sidebar { display: flex; flex-direction: column; gap: 10px; padding: 16px 12px; background: #f8fafc; }
.web-workbench .brand { padding: 2px 8px 10px; }
.web-workbench .brand strong { font-size: 17px; }
.web-workbench .sidebar nav { display: grid; gap: 3px; }
.web-workbench .sidebar .nav-item { min-height: 40px; padding: 9px 12px; font-size: 14px; }
.web-workbench .nav-group-label { margin: 5px 8px 0; font-size: 12px; letter-spacing: 0; }
.web-workbench .store-switcher { padding: 12px; border-radius: 6px; }
.web-workbench .store-switcher select { height: 38px; font-size: 14px; }
.web-workbench main { min-width: 0; padding: 16px 20px 24px; }
.web-workbench main > .web-view-context { display: none; }
.web-workbench #webOperationNote:not([hidden]) { display: block; }
.web-workbench .topbar { min-height: 66px; padding: 0 0 12px; margin: 0 0 12px; width: auto; align-items: center; }
.web-workbench .topbar h1 { font-size: 22px; line-height: 1.45; letter-spacing: 0; }
.web-scope-label { display: block; margin-bottom: 3px; color: #566376; font-size: 12px; line-height: 1.5; }
.web-workbench .page-help { margin-top: 3px; }
.web-workbench .toolbar { gap: 8px; }
.web-workbench .month-toolbar-group { display: flex; }
.web-workbench .month-picker-label, .web-workbench .month-picker-label select { height: 38px; }
.web-workbench .toolbar-command-group { gap: 6px; padding-left: 8px; }
.web-workbench #refreshData { width: 38px; min-width: 38px; height: 38px; padding: 0; font-size: 0; }
.web-workbench #refreshData > span { font-size: 20px; }
.web-command-menu { position: relative; min-width: 0; }
.web-command-menu > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; padding: 7px 11px; border: 1px solid #dbe1e9; border-radius: 6px; background: #fff; color: #334155; font-size: 13px; font-weight: 600; list-style: none; cursor: pointer; box-sizing: border-box; }
.web-command-menu > summary::-webkit-details-marker { display: none; }
.web-command-menu > summary:hover, .web-command-menu[open] > summary { background: #edf4fd; border-color: #b6cdeb; }
.web-command-menu > summary:focus-visible, .web-bottom-nav button:focus-visible { outline: 2px solid #2878ca; outline-offset: 2px; }
.web-command-menu > summary svg { flex-shrink: 0; width: 18px; height: 18px; }
.web-command-menu-content { position: absolute; top: calc(100% + 6px); right: 0; z-index: 82; width: max-content; min-width: 190px; max-width: min(340px, calc(100vw - 32px)); max-height: min(520px, 70dvh); overflow-y: auto; padding: 6px; border: 1px solid #d9e1eb; border-radius: 8px; background: #fff; box-shadow: 0 8px 28px #23364b26; }
.web-command-menu-content button { display: block; width: 100%; min-width: 0; min-height: 38px; margin: 0; padding: 9px 11px; border: 0; border-radius: 4px; background: #fff; color: #25364a; text-align: left; font-size: 13px; white-space: normal; }
.web-command-menu-content button:hover:not(:disabled) { background: #edf4fd; }
.web-command-menu-content button:disabled { color: #737d89; background: #f8f9fb; }
.web-command-menu-content .month-add-button { font-size: 13px; width: 100%; }
.web-command-menu-content .month-add-button span { font-size: 18px; }
.web-workbench #webPageActions .web-command-menu-content button { display: flex; justify-content: flex-start; height: auto; min-height: 40px; width: 100%; font-size: 13px; }
.web-sidebar-utility { display: grid; gap: 7px; margin-top: auto; padding-top: 16px; }
.web-sidebar-utility > button { width: 100%; min-height: 38px; background: transparent; border: 1px solid #dce3ec; color: #334155; border-radius: 6px; }
#webAccountMenu > summary { flex-wrap: wrap; justify-content: flex-start; font-size: 11px; color: #637186; background: #f0f3f7; }
#webAccountMenu > summary > svg { margin-left: auto; order: 2; }
.web-profile-name { flex: 0 0 100%; color: #25364a; font-size: 14px; line-height: 1.5; }
.web-profile-warning { color: #9a5c13; font-size: 11px; }
#webAccountMenu > .web-command-menu-content { top: auto; bottom: calc(100% + 6px); left: 0; right: auto; width: 100%; min-width: 0; overflow-wrap: anywhere; }
.web-workbench #accountSummary { margin: 0; padding: 8px; border: 0; box-shadow: none; background: transparent; }
.web-workbench #accountSummary .account-summary-main { display: none; }
.web-workbench #accountSummary .account-summary-actions { display: grid; grid-template-columns: 1fr; gap: 2px; }
.web-workbench #accountSummary .account-summary-meta { padding-bottom: 8px; font-size: 12px; }
.web-workbench .web-pilot-note { margin: 6px; padding: 9px; font-size: 11px; border-radius: 4px; }
#webStoreManagement > summary { min-height: 30px; padding: 5px 0 0; border: 0; background: transparent; color: #566376; font-size: 12px; }
#webStoreManagement .store-account-actions { display: grid; grid-template-columns: 1fr; gap: 2px; margin: 0; }
#webStoreManagement > .web-command-menu-content { left: 0; right: auto; }
.web-profit-caption { display: block; color: #25364a !important; font-size: 15px !important; }
.web-workbench #globalOverview .global-profit-focus { display: flex; flex-direction: column; }
.web-workbench #globalCurrentProfit { order: 1; font-size: 34px; margin: 8px 0; }
.web-workbench #globalProfitMonthLabel { order: 2; color: #6a4d20; font-size: 13px; line-height: 1.5; }
.web-workbench #globalProfitRate { order: 3; margin-top: 4px; }
.web-workbench #globalStoreCount { display: inline; color: #2167ab; text-decoration: underline; text-decoration-color: #a6bfdc; text-underline-offset: 4px; cursor: pointer; font-size: 13px; line-height: 1.6; }
.web-workbench #globalOverview .dashboard-kpi { padding: 14px 16px; }
.web-workbench #globalOverview .global-overview-hero { padding: 18px 0; }
.web-workbench #globalOverview .global-profit-comparison strong { font-size: 25px; }
.web-workbench #orders .section-head > h2 { display: none; }
.web-workbench #orders .section-head { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.web-workbench #orders .table-controls { flex: 1 1 620px; justify-content: flex-start; padding: 0; border-radius: 0; background: transparent; }
.web-workbench #orders .table-controls > * { min-height: 36px; }
.web-workbench #orders .order-search { width: 170px; border-color: #dbe1e9; }
.web-workbench #orders .filter-trigger, .web-workbench #orders .sort-select { border-color: #dbe1e9; }
.web-workbench #orders:not(.web-mobile-filters-open) :is(#modelFilterWrap, #productFilterWrap, #skuFilterWrap, #estimatedProfitFilterWrap, #actualProfitFilterWrap, #orderSortSelect) { display: none; }
.web-workbench .web-mobile-filter-toggle { display: block; min-height: 36px; padding: 7px 11px; border-radius: 6px; font-size: 13px; }
.web-column-views { display: flex; flex: 0 0 auto; padding: 2px; gap: 2px; border: 1px solid #dbe1e9; border-radius: 6px; background: #f4f6f9; }
.web-column-views button { padding: 5px 8px; min-height: 30px; border-radius: 4px; background: transparent; color: #526173; font-size: 12px; }
.web-column-views button[aria-pressed="true"] { color: #1d568f; background: #fff; box-shadow: 0 1px 3px #25364a1c; }
.web-workbench #orders :is(.edit-order-button, .web-order-feedback-trigger, .web-mobile-row-toggle) { display: none; }
.web-workbench #orders .order-id-group { display: grid; grid-template-columns: 18px minmax(0, 1fr) 28px 28px; align-items: center; gap: 5px; }
.web-workbench #orders .order-id-text { width: auto; min-width: 0; font-size: 12px; }
.web-workbench #orders .copy-order-button, .web-order-details-trigger { display: grid; place-items: center; width: 28px; min-width: 28px; height: 30px; min-height: 30px; padding: 0; border: 1px solid #dce3ec; border-radius: 4px; background: #fff; color: #396283; }
.web-order-details-trigger:hover { background: #eaf3ff; border-color: #a8c6e9; }
.web-workbench #orders .table-wrap { position: relative; scrollbar-width: thin; scrollbar-color: #adb8c5 #f5f7fa; }
.web-workbench #orders .table-wrap::-webkit-scrollbar { width: 11px; height: 11px; }
.web-workbench #orders .table-wrap::-webkit-scrollbar-thumb { border-width: 2px; border-radius: 6px; background: #aab6c4; }
.web-orders-loading { display: none; }
.web-order-read-error { display: none; }
.web-workbench #orders.web-order-load-failed .table-wrap table { visibility: hidden; }
.web-workbench #orders.web-order-load-failed :is(.order-pagination, #webOrderTotals, .order-financial-totals) { visibility: hidden; }
.web-workbench #orders.web-order-load-failed .web-order-read-error { display: flex; position: absolute; inset: 0; z-index: 3; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; background: #fff; color: #34465b; }
.web-order-read-error strong { font-size: 16px; }
.web-order-read-error p { max-width: 480px; margin: 0; font-size: 14px; line-height: 1.7; color: #665025; }
.web-order-read-error button { min-height: 42px; padding: 10px 18px; border-radius: 6px; background: #eaf3ff; color: #2167ab; }
.web-workbench.store-switching #orders.active .table-wrap table { visibility: hidden; }
.web-workbench.store-switching #orders.active .order-financial-totals { visibility: hidden; }
.web-workbench.store-switching #orders.active .web-orders-loading { display: grid; position: absolute; inset: 0; place-items: center; padding: 24px; color: #3b526b; background: #fff; text-align: center; font-size: 14px; }
#webOrderTotals { min-width: 0; border-top: 1px solid #dce3ec; }
#webOrderTotals > summary { padding: 9px 4px; font-size: 13px; color: #334155; cursor: pointer; }
.web-workbench #orders #webOrderTotals .order-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.web-workbench #orders #webOrderTotals .order-summary > div { min-width: 0; }
.web-workbench #orders #webOrderTotals .order-summary em { display: block; }
.web-workbench #orders .order-pagination { min-height: 38px; padding: 4px 0; }
.web-workbench #orders .page-controls :is(button, select) { min-height: 30px; height: 30px; }
.web-order-detail { position: fixed; inset: 0 0 0 auto; width: min(680px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; padding: 0; border: 0; border-left: 1px solid #dbe1e9; border-radius: 0; color: #243448; background: #fff; box-shadow: -12px 0 40px #18263726; overflow: hidden; }
.web-order-detail[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.web-order-detail::backdrop { background: #14263766; }
.web-order-detail > header { display: flex; justify-content: space-between; gap: 12px; padding: 22px 24px 18px; border-bottom: 1px solid #dce3ec; background: #f8fafc; }
.web-order-detail > header > div { min-width: 0; }
.web-order-detail header span { font-size: 12px; color: #566376; }
.web-order-detail h2 { margin: 6px 0 5px; color: #22354c; font-size: 20px; line-height: 1.5; overflow-wrap: anywhere; letter-spacing: 0; }
.web-order-detail header small { color: #566376; font-size: 12px; line-height: 1.5; }
.web-detail-close { display: grid; place-items: center; flex: 0 0 44px; height: 44px; width: 44px; padding: 0; background: #edf1f6; border-radius: 6px; font-size: 26px; color: #334155; }
.web-order-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 0 24px; padding: 2px 24px 24px; overflow-y: auto; overscroll-behavior: contain; }
.web-order-fields > section { min-width: 0; padding: 16px 0; border-bottom: 1px solid #e6ebf1; }
.web-order-fields h3 { font-size: 12px; color: #566376; margin: 0 0 7px; font-weight: 500; }
.web-order-field-value { font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.web-order-field-value :is(.cost-cell, .order-product-cell) { display: block; }
.web-order-field-value :is(.cost-source-tooltip, .fee-detail-tooltip) { display: none; }
.web-order-field-value :is(small, .estimate-note, .pending-fee-note, .compact-status-line) { display: block; font-size: 12px; white-space: normal; color: #655326; line-height: 1.6; }
.web-order-field-value details { margin-top: 5px; }
.web-order-field-value details > summary { color: #2167ab; font-size: 12px; cursor: pointer; }
.web-order-field-value details > p { margin: 6px 0 0; padding-left: 10px; border-left: 2px solid #c9dcee; font-size: 13px; line-height: 1.7; color: #43546b; white-space: pre-wrap; }
.web-order-detail > footer { display: flex; gap: 10px; padding: 14px 24px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid #dce3ec; background: #fff; }
.web-order-detail > footer button { min-height: 42px; padding: 10px 18px; border-radius: 6px; background: #edf4fd; color: #2167ab; }
.web-workbench #exceptions .section-head { align-items: flex-start; flex-direction: column; gap: 12px; }
.web-workbench #exceptions .section-head h2 { display: none; }
.web-workbench #exceptions .section-head p { margin: 0; font-size: 13px; line-height: 1.6; }
.web-workbench #exceptions .section-actions { justify-content: flex-start; gap: 8px; flex-wrap: wrap; overflow: visible; }
.web-workbench #exceptions .section-actions > button { min-height: 36px; padding: 8px 12px; font-size: 13px; border-radius: 6px; }
.web-workbench #exceptions .section-actions .select-all-exceptions { font-size: 13px; }
.web-workbench #clearSelectedExceptions:disabled { display: none; }
.web-workbench .exception-priority-filter button { min-height: 42px; padding: 9px 12px; border-radius: 6px; font-size: 13px; }
.web-workbench .exception-summary { gap: 8px; }
.web-workbench .exception-summary-item { padding: 10px 12px; border-radius: 6px; }
.web-workbench .exception-item { padding: 14px 10px; }
.web-workbench .exception-item em { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.7; }
.web-workbench .exception-item.web-reason-open em { display: block; overflow: visible; }
.web-workbench .exception-actions { gap: 6px; flex-wrap: wrap; }
.web-workbench .exception-actions .web-exception-reason { padding: 6px 8px; color: #3a668f; background: transparent; font-size: 12px; }
.web-bottom-nav { display: none; }
.web-order-sku { display: none; }
@media (min-width: 981px) {
  .web-workbench .sidebar { position: sticky; top: 0; height: 100dvh; overflow-y: auto; }
  .web-workbench #orders > .surface { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; height: var(--orders-available-height, calc(100dvh - 125px)); min-height: 320px; padding: 12px 14px 0; overflow: visible; }
  .web-workbench #orders .table-wrap { min-height: 0; height: auto; max-height: none; overflow: auto; }
  .web-workbench #orders[data-web-columns="compact"] :is(th, td)[data-web-essential="false"] { display: none; }
  .web-workbench #orders[data-web-columns="compact"] table { min-width: 1120px; table-layout: fixed; }
  .web-workbench #orders[data-web-columns="compact"] :is(th, td):first-child { min-width: 254px; width: 254px; max-width: 254px; }
  .web-workbench #orders[data-web-columns="compact"] :is(th, td):nth-child(4) { width: 190px; min-width: 170px; max-width: 190px; white-space: normal; }
  .web-workbench #orders[data-web-columns="compact"] :is(th, td):nth-child(5) { width: 160px; min-width: 130px; max-width: 180px; white-space: normal; }
  .web-workbench #orders .order-product-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .web-workbench #orders td { padding: 9px 10px; font-size: 13px; vertical-align: middle; }
  .web-workbench #orders td .compact-status-line { max-width: 190px; }
  .web-workbench #orders[data-web-columns="compact"] :is(th, td):is([data-web-field="核销状态"], [data-web-field="利润状态"], [data-web-field="订单状态"]) { width: 180px; min-width: 180px; max-width: 180px; }
  .web-workbench #orders[data-web-columns="compact"] td .tag { max-width: 150px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
  .web-workbench #orders[data-web-columns="compact"] :is(th, td)[data-web-field="数量"] { width: 46px; min-width: 46px; }
  .web-workbench #orders[data-web-columns="compact"] :is(th, td):is([data-web-field="商家实收"], [data-web-field="确认收入"], [data-web-field="订单确认收入"]) { width: 98px; min-width: 98px; }
  .web-workbench #orders[data-web-columns="compact"] :is(th, td)[data-web-field="成本"] { width: 104px; min-width: 104px; }
  .web-workbench #orders[data-web-columns="compact"] :is(.cost-source-info, .fee-detail-info) { display: none; }
  .web-workbench #orders[data-web-columns="compact"] .cost-cell { min-width: 0; }
  .web-workbench #orders[data-web-columns="compact"] .compact-status-line { max-width: 160px; }
  .web-workbench #orders[data-web-columns="compact"] :is(th, td):is([data-web-field^="累计净费用"], [data-web-field^="实际费用"], [data-web-field^="平台费用"]) { width: 130px; min-width: 130px; }
  .web-workbench #orders[data-web-columns="compact"] .web-order-sku { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; font-size: 12px; font-weight: 500; color: #566376; }
  .web-workbench #orders .sticky-profit-final { min-width: 120px; max-width: 160px; width: 120px; }
}
@media (max-width: 980px) {
  .web-workbench .app { display: block; }
  .web-workbench .sidebar { height: 100dvh; padding: 12px; padding-top: max(12px, env(safe-area-inset-top)); }
  .web-workbench .sidebar nav .nav-item { min-height: 44px; font-size: 15px; }
  .web-workbench .sidebar .store-switcher select { height: 44px; font-size: 16px; }
  .web-workbench .web-sidebar-utility { order: 5; }
  .web-workbench #webAccountMenu > .web-command-menu-content { position: static; width: auto; box-shadow: none; margin-top: 6px; max-height: none; }
  .web-workbench main { padding: 12px 12px calc(78px + env(safe-area-inset-bottom)); }
  .web-workbench .web-mobile-header { min-height: 56px; padding-block: 6px; padding-top: max(6px, env(safe-area-inset-top)); }
  .web-workbench .topbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-height: 0; padding: 0; margin-bottom: 12px; }
  .web-workbench .topbar h1 { font-size: 20px; }
  .web-workbench .web-scope-label, .web-workbench .topbar .page-help { display: none; }
  .web-workbench .toolbar { display: flex; align-items: center; width: 100%; justify-content: space-between; }
  .web-workbench .month-toolbar-group { flex: 1; min-width: 0; }
  .web-workbench .month-picker-label { width: auto; flex: 1; min-width: 0; max-width: 230px; height: 40px; }
  .web-workbench .month-picker-label select { height: 38px; font-size: 16px; }
  .web-workbench .toolbar-command-group { flex: 0 0 auto; border: 0; padding: 0; }
  .web-workbench #refreshData { height: 40px; width: 40px; min-width: 40px; }
  .web-workbench #webPageActions > summary { min-height: 40px; }
  .web-workbench #webPageActions .month-add-button { width: 100%; font-size: 14px; }
  .web-workbench #orders { padding-bottom: 0; }
  .web-workbench #orders .section-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .web-workbench #orders .web-mobile-filter-toggle { grid-column: 2; grid-row: 1; min-height: 40px; }
  .web-workbench #orders .table-controls { display: contents; }
  .web-workbench #orders.web-order-load-failed .table-wrap { min-height: 280px; }
  .web-workbench #orders .table-controls > .order-search { display: block; grid-column: 1; grid-row: 1; min-width: 0; width: 100%; min-height: 40px; font-size: 16px; }
  .web-workbench #orders .table-controls > #orderTableCount { display: block; grid-column: 1 / -1; margin-bottom: 2px; min-height: 18px; }
  .web-workbench #orders:not(.web-mobile-filters-open) .table-controls > :not(.order-search):not(#orderTableCount) { display: none; }
  .web-workbench #orders .table-controls > .status-filter, .web-workbench #orders .sort-select { width: auto; min-width: 0; }
  .web-workbench #orders .table-controls :is(button, select) { min-height: 42px; }
  .web-workbench #orders .status-menu:not([hidden]) { position: fixed; inset: auto 12px calc(70px + env(safe-area-inset-bottom)); z-index: 84; width: auto; max-width: none; max-height: 55dvh; overflow-y: auto; box-shadow: 0 -6px 28px #23364b26; }
  .web-workbench #orders .web-column-views { display: none; }
  .web-workbench #orders tbody { gap: 8px; }
  .web-workbench #orders tbody tr { padding: 10px 11px; gap: 6px 12px; border-radius: 6px; }
  .web-workbench #orders .order-id-group { grid-template-columns: 18px minmax(0, 1fr) 30px 30px; gap: 4px; }
  .web-workbench #orders .order-id-text { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.5; }
  .web-workbench #orders .copy-order-button, .web-workbench #orders .web-order-details-trigger { min-height: 36px; height: 36px; width: 30px; min-width: 30px; }
  .web-workbench #orders tbody td::before { margin-bottom: 3px; font-size: 11px; }
  .web-workbench #orders tbody td.web-mobile-product-cell { font-size: 14px; }
  .web-workbench #orders td.web-mobile-product-cell :is(.order-product-name, .product-name) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .web-workbench #orders tbody td[data-mobile-label="SKU规格"] { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; color: #526173; }
  .web-workbench #orders tbody td[data-mobile-label="SKU规格"]::before { display: none; }
  .web-workbench #orders tbody td:is([data-mobile-label="数量"], [data-mobile-label="成本"]) { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
  .web-workbench #orders tbody td:is([data-mobile-label="数量"], [data-mobile-label="成本"])::before { margin: 0; }
  .web-workbench #orders tbody td[data-mobile-label="成本"] { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 8px; }
  .web-workbench #orders tbody td[data-mobile-label="成本"]::before { white-space: nowrap; }
  .web-workbench #orders tbody td[data-mobile-label="成本"] > .cost-cell { justify-self: end; min-width: 0; }
  .web-workbench #orders tbody td[data-mobile-label="成本"] > .estimate-note { grid-column: 1 / -1; text-align: right; white-space: normal; overflow-wrap: anywhere; font-size: 11px; }
  .web-workbench #orders tbody td:is([data-mobile-label="核销状态"], [data-mobile-label="利润状态"], [data-mobile-label="订单状态"])::before { display: none; }
  .web-workbench #orders tbody td .tag { display: block; min-height: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; line-height: 1.7; }
  .web-workbench #orders tbody td.sticky-profit-estimated { display: none; }
  .web-workbench #orders tbody td.sticky-profit-final { grid-column: 1 / -1; padding-top: 8px; border-top: 1px solid #e6ebf1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 8px; width: auto; min-width: 0; max-width: none; font-size: 18px; }
  .web-workbench #orders tbody td.sticky-profit-final::before { margin: 0; color: #43546a; font-size: 12px; }
  .web-workbench #orders tbody td.sticky-profit-final :is(.estimate-note, .profit-alert-note) { display: block; grid-column: 1 / -1; margin: 0; text-align: right; font-size: 11px; }
  .web-workbench #orders .compact-status-line { font-size: 12px; }
  .web-workbench #orders :is(.cost-source-info, .fee-detail-info) { display: none; }
  .web-workbench #orders .order-pagination { position: static; display: flex; padding: 12px 0; gap: 8px; background: transparent; border: 0; }
  .web-workbench #orders .page-controls :is(button, select) { min-height: 40px; height: 40px; }
  .web-workbench #orders .order-pagination > span { width: 100%; }
  .web-workbench #orders .page-controls { width: 100%; justify-content: space-between; gap: 4px; }
  .web-workbench #orders #webOrderTotals .order-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .web-workbench #orders #webOrderTotals .order-summary span { white-space: normal; }
  .web-workbench #orders .order-profit-reconcile { min-width: 0; }
  .web-workbench #globalOverview .global-profit-focus strong { font-size: 30px; }
  .web-workbench #globalOverview .global-profit-comparison strong { font-size: 20px; }
  .web-workbench #globalOverview .global-module-head { flex-wrap: wrap; align-items: flex-start; gap: 8px; }
  .web-workbench #globalOverview .dashboard-kpi { padding: 12px 10px; }
  .web-workbench #exceptions .surface { padding: 12px; }
  .web-workbench #exceptions .section-actions { display: flex; gap: 6px; }
  .web-workbench #exceptions .section-actions :is(button, summary) { min-height: 40px; font-size: 12px; }
  .web-workbench #exceptions .web-command-menu-content { position: fixed; inset: auto 12px calc(70px + env(safe-area-inset-bottom)); width: auto; max-width: none; max-height: 55dvh; }
  .web-workbench #exceptions .exception-priority-filter { gap: 6px; }
  .web-workbench #exceptions .exception-priority-filter button { flex: 1 1 100%; min-height: 40px; text-align: left; }
  .web-workbench #exceptions .exception-summary-item { padding: 8px; }
  .web-workbench #exceptions .exception-summary-item strong { font-size: 20px; }
  .web-workbench #exceptions .exception-item { padding: 12px 0; }
  .web-workbench #exceptions .exception-item strong { font-size: 13px; }
  .web-workbench #exceptions .exception-actions { justify-content: flex-start; }
  .web-workbench #exceptions .exception-actions button { min-height: 40px; }
  .web-order-detail { width: 100vw; border: 0; }
  .web-order-detail > header { padding: max(14px, env(safe-area-inset-top)) 16px 14px; }
  .web-order-detail h2 { font-size: 18px; }
  .web-order-fields { padding: 0 16px 20px; gap: 0 16px; }
  .web-order-fields > section { padding: 13px 0; }
  .web-order-field-value { font-size: 14px; }
  .web-order-detail > footer { padding-inline: 16px; }
  .web-order-detail > footer button { flex: 1; padding-inline: 8px; }
  body[data-web-auth="authenticated"].web-workbench .web-bottom-nav { position: fixed; inset: auto 0 0; z-index: 79; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 4px 8px max(4px, env(safe-area-inset-bottom)); min-height: 58px; border-top: 1px solid #dce3ec; background: #fff; }
  .web-bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 48px; min-width: 0; padding: 4px; color: #58677a; background: transparent; border-radius: 4px; font-size: 11px; }
  .web-bottom-nav button svg { width: 20px; height: 20px; }
  .web-bottom-nav button[aria-current] { color: #216fc1; font-weight: 700; }
  .web-workbench.web-mobile-navigation-open .web-bottom-nav,
  .web-workbench:has(dialog[open]) .web-bottom-nav,
  .web-workbench:has(.modal-backdrop:not([hidden])) .web-bottom-nav { display: none; }
}
@media (max-width: 360px) {
  .web-workbench #orders .order-id-text { font-size: 11px; }
  .web-order-fields { grid-template-columns: minmax(0, 1fr); }
}

/* Build164: one restrained, information-dense workspace on all clients. */
.web-workbench {
  --workspace-ink: #263342;
  --workspace-muted: #596675;
  --workspace-line: #dce2e7;
  --workspace-accent: #176ac0;
  color: var(--workspace-ink);
  background: #f5f6f8;
  font-size: 14px;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.web-workbench :is(h1, h2, h3, strong, button, summary) { letter-spacing: 0; }
.web-workbench :is(.global-profit-focus, .global-profit-comparison, .core-profit-item, .dashboard-kpi) strong { white-space: nowrap; }
.web-workbench #globalOverview :is(.global-profit-focus, .global-profit-comparison, .dashboard-kpi) strong { white-space: nowrap; }
.web-workbench button:focus-visible, .web-workbench summary:focus-visible,
.web-workbench a:focus-visible { outline: 2px solid #176ac0; outline-offset: 3px; }
.web-workbench .app { grid-template-columns: 218px minmax(0, 1fr); }
.web-workbench .sidebar { padding: 14px 10px; gap: 8px; background: #fff; }
.web-workbench .brand { padding: 2px 6px 10px; gap: 9px; }
.web-workbench .brand-mark { width: 34px; height: 34px; }
.web-workbench .brand strong { font-size: 16px; }
.web-workbench .brand span { font-size: 11px; }
.web-workbench .sidebar .global-nav { min-height: 44px; border-radius: 6px; padding: 10px; }
.web-workbench .store-switcher { padding: 10px; background: #f8fafc; border-radius: 6px; }
.web-workbench .store-switcher-head { margin-bottom: 8px; }
.web-workbench .store-field { margin-top: 8px; gap: 4px; }
.web-workbench .store-field > span { font-size: 11px; }
.web-workbench .store-select-row { display: block; }
.web-workbench .store-switcher select { width: 100%; max-width: 100%; font-size: 13px; }
.web-workbench .sidebar .nav-item { min-height: 40px; font-size: 13px; border-radius: 5px; }
.web-workbench .nav-group-label { font-size: 11px; }
.web-workbench .web-sidebar-utility { margin-top: auto; }
.web-workbench main { padding: 16px 24px 28px; }
.web-workbench .topbar { min-height: 62px; background: transparent; }
.web-workbench .topbar h1 { font-size: 21px; }
.web-workbench .web-scope-label { font-size: 12px; }
.web-workbench .page-help > summary { font-size: 11px; }
.web-workbench .surface { box-shadow: none; border-radius: 6px; }
.web-workbench :is(#overview > .surface, #exceptions > .surface, #feeOverview > .surface, #receivables > .surface) {
  border: 0; border-radius: 0; background: #fff;
}
.web-workbench :is(.section-head h2, .global-module-head h2) { font-size: 17px; }
.web-workbench .section-head { margin-bottom: 12px; }
.web-workbench .section-head > span { font-size: 12px; }
.workspace-section-links { display: flex; flex-wrap: wrap; gap: 18px; padding: 0 0 10px; }
.workspace-section-links a { color: #176ac0; text-underline-offset: 4px; font-size: 12px; padding: 4px 0; }
.web-workbench #globalOverview .global-module-head { padding-bottom: 4px; gap: 12px; }
.web-workbench #globalStoreCount { max-width: 65%; text-align: right; font-size: 12px; }
.web-workbench #globalOverview .global-overview-hero {
  min-height: 0; grid-template-columns: 1.1fr 1.5fr; padding: 18px 0;
  gap: 0; background: #fff; border-top: 2px solid #253a4d;
}
.web-workbench #globalOverview .global-profit-focus { padding: 0 20px; gap: 0; }
.web-workbench #globalOverview .web-profit-caption { font-size: 13px; font-weight: 650; }
.web-workbench #globalCurrentProfit { font-size: 32px; margin: 7px 0; }
.web-workbench #globalProfitMonthLabel { font-size: 12px; font-weight: 400; }
.web-workbench #globalOverview #globalProfitMonthLabel { font-size: 12px; font-weight: 400; line-height: 1.5; }
.web-workbench #globalProfitRate { font-size: 12px; }
.web-workbench #globalOverview .global-profit-comparison > div { padding: 6px 20px; }
.web-workbench #globalOverview .global-profit-comparison strong { font-size: 25px; margin: 7px 0; }
.web-workbench #globalOverview .global-profit-comparison :is(span, em) { font-size: 12px; }
.web-workbench #globalOverview .global-dashboard-secondary-strip { padding: 10px 0; gap: 24px; border-bottom: 1px solid var(--workspace-line); }
.web-workbench #globalOverview .global-dashboard-secondary-strip strong { font-size: 14px; }
.web-workbench #globalOverview .global-dashboard-secondary-strip :is(span, em) { font-size: 12px; }
.web-workbench #globalOverview .global-overview-module { margin-top: 20px; scroll-margin-top: 20px; }
.web-workbench #globalOverview .global-result-module { margin-top: 0; }
.web-workbench .category-profit-section { margin: 18px 0; padding: 0 0 16px; border-top: 0; scroll-margin-top: 20px; }
.web-workbench .category-profit-section .section-head > span { font-size: 12px; }
.web-workbench .category-profit-grid { grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 8px; }
.web-workbench .category-profit-item { padding: 12px 14px; gap: 7px; min-height: 110px; border-radius: 6px; }
.web-workbench .category-profit-name { font-size: 14px; align-items: center; }
.web-workbench .category-profit-name > span { color: #176ac0; }
.web-workbench .category-profit-item strong { font-size: 22px; line-height: 1.35; white-space: nowrap; }
.web-workbench .category-profit-track { height: 3px; }
.web-workbench :is(.category-profit-count, .category-profit-foot) { font-size: 12px; line-height: 1.5; }
.web-workbench .category-profit-foot { margin-top: 10px; }
.web-workbench #globalOverview .global-shop-table-wrap { background: #fff; border-block: 1px solid var(--workspace-line); }
.web-workbench #globalOverview .global-shop-table :is(th, td) { padding: 12px; font-size: 13px; }
.web-workbench #globalOverview .global-shop-table th { color: #53616f; font-size: 12px; background: #edf1f4; }
.web-workbench #globalOverview .global-shop-table th:nth-child(n+2):nth-child(-n+4) { text-align: right; }
.web-workbench #globalOverview .global-shop-table td:nth-child(n+2):nth-child(-n+4) { text-align: right; }
.web-workbench #globalOverview .global-shop-table td:first-child strong { font-size: 14px; }
.web-workbench #globalOverview .global-shop-profit strong { font-size: 17px; }
.web-workbench #globalOverview .global-shop-table .value-comparison-track { display: none; }
.web-workbench #globalOverview .global-shop-table tbody tr:hover { background: #f5f9fe; }
.web-workbench #globalOverview .global-receipts-band { padding: 18px 0 0; border-top: 1px solid var(--workspace-line); background: transparent; }
.web-workbench #globalOverview .global-dashboard-kpi-grid { background: #fff; }
.web-workbench #globalOverview .global-dashboard-kpi-grid .dashboard-kpi { min-height: 104px; padding: 14px 16px; }
.web-workbench #globalOverview .dashboard-kpi span { font-size: 12px; }
.web-workbench #globalOverview .dashboard-kpi strong { font-size: 24px; margin: 7px 0; }
.web-workbench #globalOverview .dashboard-kpi em { font-size: 11px; line-height: 1.5; }
.web-workbench .appeal-overview { padding: 14px 0; gap: 20px; }
.web-workbench .core-profit-tracker { padding: 16px 0 0; border-top: 2px solid #253a4d !important; }
.web-workbench .core-section-head { padding: 0 16px; }
.web-workbench .core-section-head .section-note { font-size: 12px; margin: 5px 0 0; }
.web-workbench .core-profit-grid { grid-template-columns: 1.1fr 1fr 1fr; border: 0; border-top: 1px solid var(--workspace-line); }
.web-workbench .core-profit-item { padding: 16px; background: transparent; min-height: 118px; }
.web-workbench .core-profit-item.is-latest { order: -1; background: #f5f9fe; }
.web-workbench .core-profit-item strong { font-size: 25px; margin: 7px 0; }
.web-workbench .core-profit-item.is-latest strong { font-size: 32px; }
.web-workbench .core-profit-item :is(span, em) { font-size: 12px; line-height: 1.5; }
.web-workbench .core-profit-foot > div { padding: 10px 16px; font-size: 12px; }
.web-workbench .core-profit-foot strong { font-size: 13px; }
.workspace-filter-summary { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid #dce2e7; }
.workspace-filter-summary[hidden] { display: none; }
.workspace-filter-summary > span { flex: 1; font-size: 12px; color: #24567e; overflow-wrap: anywhere; }
.workspace-filter-summary button { flex-shrink: 0; padding: 5px 8px; min-height: 30px; font-size: 12px; color: #176ac0; background: #edf5ff; }
.web-workbench .has-active-filters { background: #176ac0; color: #fff; border-color: #176ac0; }
.web-workbench #orders > .surface { grid-template-rows: auto auto minmax(0, 1fr) auto auto auto; border-radius: 0; border: 0; }
.web-workbench #orders .table-wrap { border-radius: 0; }
.web-workbench #orders .section-head { margin-bottom: 9px; align-items: center; }
.web-workbench #orders .table-controls { flex-basis: 440px; gap: 6px; }
.web-workbench #orders .web-column-views { margin-left: auto; }
.web-workbench #orders th { font-size: 12px; font-weight: 600; background: #edf1f4; }
.web-workbench #orders td { font-variant-numeric: tabular-nums; }
.web-workbench #orders .order-id-text { color: #205a89; }
.web-workbench #orders tbody tr:nth-child(even) td { background-color: #fafbfc; }
.web-workbench #orders tbody tr:hover td { background-color: #edf5ff; }
.web-workbench .exception-item { border-radius: 0; border: 0; border-bottom: 1px solid #dce2e7; background: #fff; }
.web-workbench .exception-summary-item { background: #fff; }
.web-workbench .exception-summary-item.active { box-shadow: inset 0 -3px #176ac0; }
.web-workbench .exception-priority-filter { gap: 8px; }
.web-workbench .exception-priority-filter button { font-size: 13px; }
.web-workbench .exception-priority-filter button strong { font-size: 20px; }
.web-workbench .web-feedback-item { border-radius: 6px; }
.web-workbench .store-modal { border-radius: 8px; }

@media (min-width: 981px) {
  .web-workbench #orders > .surface:has(.workspace-filter-summary[hidden]) { grid-template-rows: auto minmax(0, 1fr) auto auto auto; }
  .web-workbench #orders[data-web-columns="compact"] table { min-width: 1000px; }
  .web-workbench #orders[data-web-columns="compact"] :is(th, td):first-child { width: 230px; min-width: 230px; max-width: 230px; }
  .web-workbench #orders[data-web-columns="compact"] :is(th, td):nth-child(4) { width: 180px; min-width: 160px; max-width: 180px; }
  .web-workbench #orders td { padding: 8px; font-size: 12px; }
  .web-workbench #orders .order-id-group { grid-template-columns: 16px minmax(0, 1fr) 26px 26px; gap: 3px; }
  .web-workbench #orders .order-id-text { font-size: 11px; }
}
@media (max-width: 980px) {
  .web-workbench .app { display: block; }
  .web-workbench .sidebar { width: min(320px, calc(100% - 32px)); padding: 12px; }
  .web-workbench .sidebar .nav-item { min-height: 44px; font-size: 14px; }
  .web-workbench .sidebar .store-switcher select { height: 44px; font-size: 16px; }
  body:not([data-web-auth]) .web-mobile-header {
    position: sticky; top: 0; z-index: 80; display: flex; justify-content: space-between;
    align-items: center; gap: 12px; padding: 6px 12px; min-height: 56px; background: #fff; border-bottom: 1px solid #dce4ed;
  }
  body:not([data-web-auth]).web-workbench .web-bottom-nav {
    position: fixed; inset: auto 0 0; z-index: 79; display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)); min-height: 58px; padding: 4px 8px;
    border-top: 1px solid #dce3ec; background: #fff;
  }
  .web-workbench main { padding: 12px 12px calc(76px + env(safe-area-inset-bottom)); }
  .web-workbench .topbar { min-height: 0; gap: 6px; }
  .web-workbench .topbar h1 { font-size: 18px; }
  .web-workbench .web-mobile-header strong { font-size: 14px; }
  .web-workbench .web-mobile-header span { font-size: 11px; }
  .web-workbench .month-picker-label { height: 44px; }
  .web-workbench .month-picker-label > span { font-size: 11px; }
  .web-workbench :is(#refreshData, #webPageActions > summary) { min-height: 44px; height: 44px; }
  .web-workbench #globalOverview .global-module-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .web-workbench #globalStoreCount { max-width: 100%; text-align: left; line-height: 1.5; }
  .workspace-section-links { gap: 20px; padding: 3px 0; }
  .workspace-section-links a { min-height: 40px; display: inline-flex; align-items: center; }
  .web-workbench #globalOverview .global-overview-hero { grid-template-columns: minmax(0, 1fr); padding: 14px 0; gap: 14px; }
  .web-workbench #globalOverview .global-profit-focus { padding: 0 14px; }
  .web-workbench #globalCurrentProfit { font-size: 30px; }
  .web-workbench #globalOverview .global-profit-comparison > div { padding: 2px 14px; }
  .web-workbench #globalOverview .global-profit-comparison strong { font-size: 20px; }
  .web-workbench #globalOverview .global-profit-comparison :is(span, em) { font-size: 11px; }
  .web-workbench #globalOverview .global-dashboard-secondary-strip { gap: 6px 18px; padding-block: 8px; }
  .web-workbench #globalOverview .global-dashboard-secondary-strip em { display: none; }
  .web-workbench .category-profit-section { margin: 16px 0; padding-bottom: 14px; }
  .web-workbench .category-profit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .web-workbench .category-profit-item { min-height: 106px; padding: 11px; }
  .web-workbench .category-profit-item strong { font-size: 21px; }
  .web-workbench .category-profit-name { font-size: 14px; }
  .web-workbench .category-profit-count { font-size: 11px; }
  .web-workbench #globalOverview .global-shop-table-wrap { border: 0; background: transparent; }
  .web-workbench #globalOverview .global-shop-table tbody { gap: 8px; }
  .web-workbench #globalOverview .global-shop-table tr { gap: 10px 12px; padding: 12px; border-radius: 6px; }
  .web-workbench #globalOverview .global-shop-table td { padding: 0; font-size: 13px; text-align: left !important; }
  .web-workbench #globalOverview .global-shop-table td::before { font-size: 11px; }
  .web-workbench #globalOverview .global-shop-profit strong { font-size: 19px; }
  .web-workbench #globalOverview .global-dashboard-kpi-grid .dashboard-kpi { min-height: 102px; padding: 12px; }
  .web-workbench #globalOverview .dashboard-kpi strong { font-size: 21px; }
  .web-workbench .core-profit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .web-workbench .core-profit-item { padding: 12px; min-height: 100px; }
  .web-workbench .core-profit-item.is-latest { grid-column: 1 / -1; }
  .web-workbench .core-profit-item strong { font-size: 21px; }
  .web-workbench .core-profit-item.is-latest strong { font-size: 30px; }
  .web-workbench .core-status-badge { font-size: 11px; }
  .web-workbench .core-section-head { padding-inline: 12px; }
  .web-workbench .core-profit-foot > div { padding: 8px 12px; }
  .web-workbench #orders .section-head { align-items: stretch; }
  .web-workbench #orders .web-mobile-filter-toggle { min-height: 44px; }
  .web-workbench #orders .table-controls > .order-search { min-height: 44px; }
  .workspace-filter-summary { margin-bottom: 10px; align-items: flex-start; }
  .workspace-filter-summary button { min-height: 40px; }
  .web-workbench #orders .order-id-group { grid-template-columns: 18px minmax(0, 1fr) 40px 40px; gap: 3px; }
  .web-workbench #orders :is(.copy-order-button, .web-order-details-trigger) { width: 40px; height: 44px; min-height: 44px; }
  .web-workbench #orders .order-id-text { white-space: normal; overflow-wrap: anywhere; }
  .web-workbench #orders tbody tr:nth-child(even) td, .web-workbench #orders tbody tr:hover td { background: transparent; }
  .web-workbench #orders .order-pagination { min-height: 0; }
  .web-workbench #exceptions .exception-priority-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .web-workbench #exceptions .exception-priority-filter:first-child { grid-column: 1 / -1; justify-self: start; }
  .web-workbench #exceptions .exception-priority-filter { min-width: 0; white-space: normal; padding: 9px; min-height: 44px; font-size: 12px; gap: 8px; text-align: left; }
  .web-workbench #exceptions .exception-priority-filter strong { margin-left: auto; font-size: 20px; }
  .web-workbench #exceptions .exception-actions button { min-height: 44px; }
  .web-workbench .category-stores-wrap .category-store-open { min-width: 40px; min-height: 44px; }
  .web-workbench :is(#costRelationDialog, #categoryProfitDialog) { padding: 14px; border-radius: 6px; }
  .web-workbench .toast { top: auto; bottom: calc(72px + env(safe-area-inset-bottom)); font-size: 12px; max-height: 130px; overflow-y: auto; }
}
@media (max-width: 360px) {
  .web-workbench .month-picker-label > span { display: none; }
  .web-workbench .month-picker-label select { padding-inline: 8px; }
  .web-workbench #globalOverview .global-profit-comparison > div { padding-inline: 10px; }
}

/* Scoped home commands keep the same store and month throughout navigation. */
.web-workbench .import-plan-settings .jd-non-operating-rule { grid-template-columns: minmax(0, 1fr) minmax(220px, 320px) auto; }
.non-operating-rule-fields { display: grid; gap: 8px; min-width: 0; }
.non-operating-rule-fields :is(input, select) { width: 100%; min-width: 0; }
@media (max-width: 980px) {
  .web-workbench .import-plan-settings .jd-non-operating-rule { grid-template-columns: minmax(0, 1fr); }
  .non-operating-rule-fields :is(input, select) { min-height: 44px; }
}
.workspace-home-tools { display: grid; grid-template-columns: minmax(280px, 1fr) auto; align-items: center; gap: 10px 20px; margin: 16px 0; padding: 10px 0; border-block: 1px solid #dce2e7; }
.workspace-home-scope { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; min-width: 0; }
.workspace-home-scope label { color: #596574; font-size: 12px; white-space: nowrap; }
.workspace-home-scope select { width: 100%; min-width: 0; min-height: 36px; border: 1px solid #d7dfe7; border-radius: 5px; background: #fff; font-size: 12px; padding: 7px 28px 7px 8px; }
.workspace-home-tools :is(.workspace-search-toggle, .workspace-home-search button) { display: grid; place-items: center; width: 36px; height: 36px; min-height: 36px; padding: 7px; border: 1px solid #d7dfe7; border-radius: 5px; color: #176ac0; background: #fff; }
.workspace-home-tools svg { width: 20px; height: 20px; flex-shrink: 0; }
.workspace-home-commands { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.workspace-home-commands button { display: flex; justify-content: center; align-items: center; gap: 6px; min-width: 0; min-height: 36px; padding: 6px 10px; color: #344251; background: transparent; border-radius: 5px; font-size: 12px; white-space: nowrap; }
.workspace-home-commands button:hover { color: #176ac0; background: #edf5ff; }
.workspace-command-icon { position: relative; display: grid; place-items: center; width: 24px; height: 24px; color: #176ac0; }
.workspace-home-commands [data-home-action="exceptions"] .workspace-command-icon { color: #ad6b14; }
.workspace-home-commands [data-home-action="costs"] .workspace-command-icon { color: #267c6d; }
.workspace-home-commands [data-home-action="receivables"] .workspace-command-icon { color: #8b5d88; }
.workspace-home-search { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 36px; gap: 8px; order: 1; }
.workspace-home-search[hidden], .workspace-home-message[hidden] { display: none; }
.workspace-home-search input { width: 100%; min-width: 0; min-height: 36px; padding: 7px 10px; border: 1px solid #bdcfe3; border-radius: 5px; background: #fff; font-size: 14px; }
.workspace-home-message { grid-column: 1 / -1; order: 2; font-size: 12px; color: #875a1d; }
.workspace-global-order-search { grid-template-columns: auto minmax(0, 1fr) 36px; align-items: center; order: -1; padding-bottom: 10px; border-bottom: 1px solid #e2e7ed; }
.workspace-global-order-search label { color: #20384d; font-size: 13px; font-weight: 650; white-space: nowrap; }
.workspace-order-results { grid-column: 1 / -1; order: 3; min-width: 0; }
.workspace-order-results[hidden] { display: none; }
.workspace-order-results button { position: relative; display: grid; gap: 5px; width: 100%; min-height: 72px; padding: 12px 34px 12px 10px; border-top: 1px solid #dce2e7; background: transparent; color: #20384d; text-align: left; border-radius: 0; }
.workspace-order-results button:hover { background: #edf5ff; }
.workspace-order-results :is(strong,span,small) { min-width: 0; overflow-wrap: anywhere; }
.workspace-order-results strong { font-size: 13px; }
.workspace-order-results span { font-variant-numeric: tabular-nums; font-size: 14px; }
.workspace-order-results small { font-size: 12px; color: #596574; }
.workspace-order-results svg { position: absolute; right: 8px; top: calc(50% - 10px); }
.web-workbench :is(.global-profit-focus, .core-profit-item.is-latest)[role="button"] { position: relative; padding-right: 46px !important; cursor: pointer; }
.workspace-profit-arrow { position: absolute; width: 20px; height: 20px; right: 14px; top: 50%; transform: translateY(-50%); color: #176ac0; }
.web-workbench :is(.global-profit-focus, .core-profit-item.is-latest)[role="button"]:hover { background: #f5f9fe; }
.web-workbench :is(.global-profit-focus, .core-profit-item.is-latest)[role="button"]:focus-visible { outline: 2px solid #176ac0; outline-offset: -2px; }
.web-bottom-nav button { position: relative; }
.workspace-bottom-badge { position: absolute; top: 1px; left: calc(50% + 6px); min-width: 16px; height: 16px; line-height: 16px; padding: 0 4px; border-radius: 8px; background: #c83f45; color: #fff; font-size: 10px; font-weight: 650; }
.workspace-bottom-badge[hidden] { display: none; }
@media (min-width: 981px) and (max-width: 1250px) {
  .workspace-home-tools { grid-template-columns: minmax(240px, 1fr) auto; gap: 8px; }
  .workspace-home-commands button { padding-inline: 5px; }
}
@media (max-width: 980px) {
  .workspace-home-tools { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 10px 0; margin: 10px 0 14px; }
  .workspace-home-scope { grid-template-columns: auto minmax(0, 1fr); gap: 6px; }
  .workspace-home-scope select { min-height: 44px; font-size: 13px; padding-inline: 8px 24px; }
  .workspace-home-tools :is(.workspace-search-toggle, .workspace-home-search button) { width: 44px; height: 44px; min-height: 44px; }
  .workspace-home-commands { gap: 2px; }
  .workspace-home-commands button { flex-direction: column; min-height: 64px; gap: 4px; padding: 3px 0; font-size: 12px; }
  .workspace-command-icon { width: 32px; height: 32px; border-radius: 6px; background: #edf5ff; }
  .workspace-home-commands [data-home-action="exceptions"] .workspace-command-icon { background: #fff5e5; }
  .workspace-home-commands [data-home-action="costs"] .workspace-command-icon { background: #edf7f3; }
  .workspace-home-commands [data-home-action="receivables"] .workspace-command-icon { background: #f7f0f6; }
  .workspace-home-search { grid-template-columns: minmax(0, 1fr) 44px; order: 0; }
  .workspace-home-search input { min-height: 44px; font-size: 16px; }
  .workspace-global-order-search { order: -1; }
  .workspace-global-order-search label { grid-column: 1 / -1; }
  .workspace-global-order-search input { font-size: 16px; }
  .web-workbench #globalOverview .global-module-head h2 { display: none; }
  .web-workbench #globalOverview .workspace-section-links { display: none; }
  .web-workbench #globalOverview .global-overview-hero { padding-block: 12px; gap: 10px; }
  .web-workbench #globalOverview .global-profit-focus { padding-left: 14px; }
  .web-workbench #globalOverview .category-profit-section { margin-top: 12px; }
}
