/* Browser pilot additions; the desktop stylesheet remains untouched. */
.web-pilot-note { padding: 10px 20px; margin-bottom: 12px; border: 1px solid #cbd8e9; border-radius: 10px; background: #f3f7fc; color: #405877; font-size: 12px; }
.web-view-context { margin: 0 0 14px; padding: 10px 14px; border-left: 3px solid #1268b5; background: #f0f6fc; color: #405877; font-size: 12px; line-height: 1.7; }
.web-ops-grid { display: grid; gap: 12px; margin: 18px 0; }
.web-ops-grid section { padding: 14px; border: 1px solid #dce7f2; border-radius: 8px; }
.web-ops-grid section[data-warning="true"] { background: #fff6e7; border-color: #e4b66c; }
.web-ops-grid strong { display: block; margin-bottom: 5px; }
.web-ops-grid p { margin: 0; font-size: 13px; }
#checkClientUpdate, #openStoreSync, #storeSyncBanner, #clientUpdateBanner,
#accountSubscriptionSection, #restoreBackup, #restoreEncryptedBackup,
.restore-file-field, #restoreBackupPasswordField { display: none !important; }
body:not([data-web-role="org_owner"]):not([data-web-role="finance_operator"]) #addStore,
body:not([data-web-role="org_owner"]):not([data-web-role="finance_operator"]) #editStore { display: none; }
body:not([data-web-role="org_owner"]) #openAccountAdmin { display: none !important; }
body:not([data-web-role="org_owner"]) .data-safety-surface { display: none; }
.web-account-users-table { min-width: 760px !important; table-layout: fixed; }
.web-account-users-table th,
.web-account-users-table td { font-size: 12px !important; line-height: 1.45; overflow-wrap: normal; word-break: keep-all; }
.web-account-users-table th { white-space: nowrap; }
.web-account-users-table th:nth-child(1),
.web-account-users-table td:nth-child(1) { width: 18%; }
.web-account-users-table th:nth-child(2),
.web-account-users-table td:nth-child(2) { width: 24%; }
.web-account-users-table th:nth-child(3),
.web-account-users-table td:nth-child(3) { display: none; }
.web-account-users-table th:nth-child(4),
.web-account-users-table td:nth-child(4) { width: 18%; white-space: nowrap; }
.web-account-users-table th:nth-child(5),
.web-account-users-table td:nth-child(5) { width: 40%; min-width: 280px; }
.web-account-users-table .account-row-primary { white-space: nowrap; }
.web-account-users-table select { display: block; min-width: 150px; margin-bottom: 7px; }
.web-account-users-table .account-reset-password { display: block; width: 150px; height: 32px; margin: 8px 0 7px; }
.web-account-users-table .account-inline-action { margin: 2px 5px 2px 0; white-space: nowrap; }
.web-dialog :focus-visible { outline: 3px solid #476fac; outline-offset: 3px; }
.web-dialog { box-sizing: border-box; width: min(760px, calc(100vw - 40px)); max-height: 85vh; padding: 26px; border: 1px solid #d6deea; border-radius: 16px; color: #26354a; box-shadow: 0 24px 80px #12264033; }
.web-dialog::backdrop { background: #13223980; }
.web-dialog .section-head { align-items: start; gap: 18px; }
.web-dialog h2, .web-dialog h3 { margin: 0 0 8px; }
.web-dialog p { line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.web-dialog .section-head p, #webFeedbackContext { color: #64748b; font-size: 13px; }
.web-dialog textarea { box-sizing: border-box; display: block; width: 100%; resize: vertical; margin: 8px 0 12px; padding: 12px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; }
.web-dialog button { cursor: pointer; border-radius: 8px; padding: 8px 12px; }
.web-dialog button:disabled { cursor: wait; opacity: .6; }
.web-feedback-item { margin: 12px 0; padding: 16px; border: 1px solid #dde4ee; border-radius: 10px; background: #f8fafc; }
.web-feedback-item small { display: block; color: #64748b; margin-top: 6px; }
.web-feedback-item { border-radius: 8px; background: #fff; }
.web-feedback-item button { margin: 8px 8px 0 0; }
.web-feedback-context-fields { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; margin-bottom: 18px; }
.web-feedback-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.web-feedback-field label { font-weight: 600; }
.web-feedback-context-fields select, .web-feedback-context-fields input { box-sizing: border-box; width: 100%; min-width: 0; height: 40px; margin: 0; padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #26354a; font: inherit; }
.web-feedback-version { margin: 0 0 14px; font-size: 12px; color: #526277; overflow-wrap: anywhere; }
.web-feedback-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.web-feedback-heading strong { font-size: 16px; color: #20384d; overflow-wrap: anywhere; }
.web-feedback-status { flex: 0 0 auto; padding: 3px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.web-feedback-status.is-open { color: #9c4212; background: #fff2e8; }
.web-feedback-status.is-resolved { color: #176947; background: #eaf7ef; }
@media (max-width: 600px) {
  .web-feedback-context-fields { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .web-feedback-heading { flex-wrap: wrap; gap: 8px; }
}
.web-source-notice { font-size: 13px; color: #4b5563; }
.web-support-consent { display: flex; align-items: flex-start; gap: 9px; margin: 16px 0; font-size: 13px; line-height: 1.6; }
.web-support-consent input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 3px; }
#webFeedbackFile { display: block; max-width: 100%; margin-top: 8px; }
.web-source-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 15px 0; border-top: 1px solid #dce2e8; }
.web-source-row strong { display: block; overflow-wrap: anywhere; font-size: 14px; }
.web-source-row small { display: block; margin-top: 6px; color: #4b5563; }
.web-source-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
#webArchivePolicy { font-size: 13px; color: #4b5563; }
@media (max-width: 600px) { .web-source-row { grid-template-columns: minmax(0, 1fr); } }
.web-password-dialog { max-width: 440px; }
.web-password-dialog label { display: grid; gap: 8px; margin: 16px 0; }
.web-password-dialog input { padding: 10px; border: 1px solid #cbd5e1; border-radius: 8px; }
.web-compliance-footer { display: flex; justify-content: center; gap: 10px; padding: 18px 20px 28px; color: #64748b; font-size: 12px; }
.web-compliance-footer a { color: inherit; text-decoration: none; }
.web-compliance-footer a:hover { color: #294f86; text-decoration: underline; }
#accountAdminMessage[data-state="success"] { color: #18704a; }
#accountAdminMessage[data-state="error"] { color: #b42318; }
.account-admin-section-head > span { flex: 0 0 auto; min-width: 34px; white-space: nowrap; text-align: right; }

/* Benefits occupy the first screen; no small floating card in a blank canvas. */
#accountGate { padding: 24px 32px 64px; overflow-y: auto; align-items: start; background: #eef2f7; }
#accountGate .web-login-shell { width: min(1440px, 100%); padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.web-login-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 4px 22px; }
.web-login-header .account-login-brand strong { color: #16334a; font-size: 19px; }
.web-login-header .account-login-brand span { color: #52677c; margin-top: 4px; }
.web-login-browser-note { color: #52677c; font-size: 12px; }
.web-login-content { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 24px; min-height: min(800px, calc(100svh - 155px)); }
.web-login-intro { padding: clamp(26px, 3vw, 48px); background: #16334a; color: #fff; border-radius: 18px; display: flex; flex-direction: column; min-width: 0; }
.web-login-platforms { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.web-login-platforms > span:not(.web-login-platform-note) { padding: 5px 10px; border: 1px solid #ffffff30; border-radius: 5px; color: #d9e7f1; font-size: 12px; }
.web-login-platform-note { color: #aabfd0; font-size: 12px; margin-left: 4px; }
.web-login-intro h2 { margin: 30px 0 18px; color: #fff; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; font-size: clamp(28px, 3vw, 44px); line-height: 1.45; letter-spacing: -.8px; font-weight: 650; }
.web-login-intro h2 em { font-style: normal; color: #8ee4d7; }
.web-login-description { margin: 0; color: #c1d1df; font-size: 14px; line-height: 1.9; }
.web-login-capabilities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; padding: 0; margin: 28px 0 20px; gap: 0 26px; }
.web-login-capabilities li { padding: 17px 0; border-top: 1px solid #ffffff26; }
.web-login-capabilities strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.5; color: #fff; }
.web-login-capabilities strong::before { content: ""; display: inline-block; width: 5px; height: 13px; background: #8ee4d7; margin-right: 9px; border-radius: 2px; vertical-align: -1px; }
.web-login-capabilities span { display: block; color: #c1d1df; font-size: 12px; line-height: 1.8; margin-top: 6px; }
.web-login-source-note { margin: auto 0 0; padding-top: 14px; color: #aabfd0; font-size: 11px; line-height: 1.7; }
.web-login-form-panel { padding: 36px 30px 28px; min-width: 0; background: #fff; border: 1px solid #dbe3ec; border-radius: 18px; display: flex; flex-direction: column; }
.web-login-shell .account-login-heading { margin: 0 0 28px; }
.web-login-shell .account-login-heading h1 { font-size: 26px; margin: 0; color: #16334a; }
.web-login-shell .account-login-heading p { margin: 10px 0 0; }
.web-login-shell form { gap: 18px; }
.web-login-shell input { height: 46px; }
.web-password-field > label { margin-bottom: 7px; }
.web-password-input { position: relative; }
.web-login-shell .web-password-input input { padding-right: 68px; }
.web-password-input button { position: absolute; top: 5px; right: 5px; height: 36px; min-width: 52px; padding: 0 9px; background: transparent; color: #0066cc; font-size: 12px; border-radius: 5px; }
.web-password-input button:hover { background: #edf6ff; }
.web-login-shell #accountLoginMessage:empty { display: none; }
.web-login-shell #accountLoginMessage { margin: 0; line-height: 1.6; }
.web-login-shell #submitAccountLogin { min-height: 46px; margin: 2px 0 0; }
.web-login-help { color: #6e6e73; font-size: 12px; margin: 18px 0 0; }
.web-login-shell .account-privacy-note { margin-top: 22px; margin-bottom: 28px; }
.web-login-contact { margin-top: auto; padding: 20px; background: #f0f6fc; border-radius: 10px; border: 1px solid #dce7f2; }
.web-login-contact-label { display: block; color: #405b72; font-size: 12px; }
.web-login-contact a { display: inline-block; margin: 9px 0 5px; color: #1268b5; font: 650 25px/1.25 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: -.7px; text-decoration: none; }
.web-login-contact a:hover { text-decoration: underline; text-underline-offset: 4px; }
.web-login-contact a:focus-visible { outline: 2px solid #007aff; outline-offset: 4px; }
.web-login-contact p { margin: 4px 0 10px; font-size: 12px; color: #52677c; }
.web-login-contact small { display: block; color: #6e6e73; font-size: 11px; line-height: 1.7; }
body[data-web-auth="guest"] .web-compliance-footer { position: fixed; bottom: 0; left: 0; right: 0; z-index: 101; background: #eef2f7; padding: 14px; }
@media (min-width: 1600px) {
  #accountGate .web-login-shell { width: min(1680px, 100%); }
  .web-login-content { grid-template-columns: minmax(0, 1fr) 440px; }
  .web-login-intro h2 { font-size: 52px; }
  .web-login-description { font-size: 16px; }
  .web-login-capabilities li { padding: 24px 0; }
  .web-login-capabilities strong { font-size: 19px; }
  .web-login-capabilities span { font-size: 14px; }
  .web-login-form-panel { padding: 42px 36px 32px; }
  .web-login-shell .account-login-heading h1 { font-size: 30px; }
  .web-login-shell form { gap: 24px; }
  .web-login-shell input, .web-login-shell #submitAccountLogin { min-height: 52px; }
  .web-password-input button { top: 8px; }
  .web-login-contact { padding: 24px; }
  .web-login-contact a { font-size: 29px; }
}
@media (max-width: 1050px) and (min-width: 721px) {
  #accountGate { padding-inline: 22px; }
  .web-login-content { grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; }
  .web-login-intro { padding: 26px; }
  .web-login-form-panel { padding: 30px 24px; }
  .web-login-intro h2 { font-size: 27px; }
  .web-login-capabilities { column-gap: 16px; }
  .web-login-capabilities strong { font-size: 14px; }
}
@media (max-width: 720px) {
  #accountGate { padding: 18px 14px 64px; }
  .web-login-header { padding: 0 6px 18px; }
  .web-login-header .account-login-brand strong { font-size: 17px; }
  .web-login-browser-note { display: none; }
  .web-login-content { grid-template-columns: 1fr; gap: 16px; min-height: 0; }
  .web-login-intro { padding: 22px; }
  .web-login-intro h2 { margin: 16px 0 8px; font-size: clamp(23px, 5.8vw, 32px); letter-spacing: -.5px; }
  .web-login-description { font-size: 12px; }
  .web-login-description br, .web-login-capabilities, .web-login-source-note, .web-login-platform-note { display: none; }
  .web-login-form-panel { padding: 26px 22px; }
  .web-login-shell .account-login-heading h1 { font-size: 24px; }
}

@media (max-width: 680px) {
  .web-account-users-table { min-width: 0 !important; table-layout: auto; }
  .web-account-users-table thead { display: none; }
  .web-account-users-table tbody,
  .web-account-users-table tr,
  .web-account-users-table td { display: block; width: auto !important; min-width: 0 !important; }
  .web-account-users-table tr { margin: 0 0 14px; padding: 12px 14px; border: 1px solid #d9e2ee; border-radius: 12px; background: #f8fafc; }
  .web-account-users-table td { box-sizing: border-box; padding: 9px 0 !important; border: 0 !important; font-size: 13px !important; white-space: normal !important; }
  .web-account-users-table td::before { display: block; margin-bottom: 5px; color: #64748b; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
  .web-account-users-table td:nth-child(1)::before { content: "使用人"; }
  .web-account-users-table td:nth-child(2)::before { content: "角色"; }
  .web-account-users-table td:nth-child(4)::before { content: "最后登录"; }
  .web-account-users-table td:nth-child(5)::before { content: "状态与操作"; }
  .web-account-users-table td:nth-child(3) { display: none !important; }
  .web-account-users-table select,
  .web-account-users-table .account-reset-password { width: 100%; min-width: 0; height: 40px; }
  .web-account-users-table .account-inline-action { min-height: 38px; margin: 6px 6px 0 0; }
  .web-dialog { width: calc(100vw - 20px); max-height: 92vh; padding: 18px; }
  .web-compliance-footer { flex-wrap: wrap; padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .web-dialog, .web-pilot-note, .web-feedback-item { scroll-behavior: auto; transition: none !important; animation: none !important; }
}

/* 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) { 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 .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); }
}
