/* Repair dark color leaks in mobile business screens using the current PWA palette. */
@media screen and (max-width: 760px), screen and (max-width: 1000px) and (max-height: 540px) and (orientation: landscape) {
  /* The row owns the card surface, including the bespoke sales editor grid. */
  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled
    :is(table[data-mobile-cards]:not(.daily-production-table), .si-entry-table) > tbody > tr {
    background: var(--pwa-surface);
    border-color: var(--pwa-line);
    color: var(--pwa-ink);
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled
    :is(table[data-mobile-cards]:not(.daily-production-table), .si-entry-table) > tbody > tr > td {
    background: transparent;
    color: var(--pwa-ink);
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled
    :is(table[data-mobile-cards]:not(.daily-production-table), .si-entry-table) > tbody > tr > td::before,
  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled
    :is(table[data-mobile-cards]:not(.daily-production-table), .si-entry-table) > tbody > tr > td > :is(small, .cell-sub) {
    color: var(--pwa-muted);
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled
    :is(table[data-mobile-cards]:not(.daily-production-table), .si-entry-table) > tbody > tr > :is(td[data-label="序号"], td[data-label="序"], .si-line-index) {
    border-bottom-color: var(--pwa-line) !important;
    color: var(--pwa-muted);
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled table[data-mobile-cards]:not(.daily-production-table) > tbody > tr > td .id-link {
    color: var(--pwa-accent);
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled .topbar .global-search {
    background: transparent !important;
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled .global-search :is(.gs-panel, .gs-group, .gs-result) {
    background: var(--pwa-surface);
    border-color: var(--pwa-line);
    color: var(--pwa-ink);
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled .global-search :is(
    .gs-help, .gs-group span, .gs-type-icon, .gs-result-badge, .gs-close
  ) {
    background: var(--pwa-well);
    border-color: var(--pwa-line);
    color: var(--pwa-muted);
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled .global-search :is(
    .gs-results-meta, .gs-result-summary, .gs-result-detail, .gs-empty, .gs-clear
  ) {
    color: var(--pwa-muted);
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled .global-search :is(
    .gs-panel-heading strong, .gs-empty strong, .gs-clear:hover
  ) {
    color: var(--pwa-ink);
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled .gs-panel-heading {
    border-color: var(--pwa-line);
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled .gs-type-icon svg {
    stroke: var(--pwa-accent);
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled .gs-result mark {
    background: #483925;
    color: #ffdeaa;
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled .gs-result:is(:hover, .is-selected, :focus-visible) {
    background: var(--pwa-selected);
    border-color: var(--pwa-line);
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled .global-search .gs-field .gs-input {
    background: transparent !important;
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled .global-search.is-expanded .gs-field:focus-within {
    border-color: var(--pwa-focus) !important;
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled .modal :is(.required, .pr-required) {
    color: #ffc0b9;
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled .si-editor {
    background: var(--pwa-bg);
    border-color: var(--pwa-line);
    color: var(--pwa-ink);
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled :is(
    .si-editor-head, .si-editor-footer, .si-intro, .si-stats > article
  ) {
    background: var(--pwa-surface);
    border-color: var(--pwa-line);
    color: var(--pwa-ink);
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled :is(
    .si-source-order, .si-invoice-fields, .si-calculated, .si-settled > div,
    .si-account-list article, .si-gift-notice
  ) {
    background: var(--pwa-well);
    border-color: var(--pwa-line);
    color: var(--pwa-muted);
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled :is(
    .si-editor-head h2, .si-intro h2, .si-stats strong, .si-empty h3,
    .si-invoice-fields > header > strong, .si-detail-top > strong,
    .si-detail-facts dd, .si-settled strong, .si-account-list strong,
    .si-calculated > strong, .si-calculated b, .si-entry-table [data-si-line-total]
  ) {
    color: var(--pwa-ink);
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled :is(
    .si-editor-head > div > span, .si-editor-head p, .si-editor-footer > span,
    .si-intro > div > span, .si-intro p, .si-readonly, .si-stats span, .si-empty,
    .si-source-order > p, .si-account-setting > small, .si-invoice-fields > header > span,
    .si-line-extra summary, .si-receipt-balance, .si-receipt-balance small,
    .si-help, .si-detail-facts dt, .si-settled small, .si-account-list small, .si-account-list p
  ) {
    color: var(--pwa-muted);
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled .si-calculated > strong {
    border-top-color: var(--pwa-line);
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled
    :is(.si-entry-table [data-si-tax-exclusive], .si-receipt-balance output) {
    background: var(--pwa-well);
    border-color: var(--pwa-line);
    color: var(--pwa-ink);
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled .si-form .si-gift-toggle {
    color: var(--pwa-muted) !important;
  }

  /* Leave room for the floating assistant without realigning the row actions. */
  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled .si-editor .si-remove {
    margin-inline-end: 44px;
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled .si-form input[type="checkbox"] {
    accent-color: var(--pwa-accent);
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled .si-form input[readonly] {
    background: var(--pwa-surface) !important;
    border-color: var(--pwa-line) !important;
    color: var(--pwa-muted) !important;
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled .si-form input[aria-invalid="true"] {
    border-color: #e3918a !important;
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled .si-history-use {
    background: var(--pwa-well);
    color: var(--pwa-ink);
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled
    :is(.si-error, .si-form-error, .si-status-reversed) {
    background: #513033;
    border-color: #8e5457;
    color: #ffd5d0;
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled .si-receipt-balance small[data-state="error"] {
    color: #ffc0b9;
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled
    :is(.si-attention, .si-resume, .si-legacy-note, .si-status-draft) {
    background: #483925;
    border-color: #796345;
    color: #ffdeaa;
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled .si-history-price {
    color: #ffdeaa !important;
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled :is(.si-status-posted, .si-gift-badge) {
    background: #293e35;
    border-color: #577566;
    color: var(--pwa-accent);
  }

  /* Legacy module cards and form groups share the mobile surface and ink. */
  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled :is(
    .sq-intro, .sq-metrics > div, .wh-intro, .wh-stats article,
    .pm-intro, .pm-summary > div, .pm-toolbar, .pm-channel-fieldset label,
    .co-summary, .co-account-applicant, .stock-management-summary,
    .production-progress-line, .detail-production-summary, .production-report-history article,
    .tm-summary article, .tm-profile-card
  ) {
    background: var(--pwa-surface);
    border-color: var(--pwa-line);
    color: var(--pwa-ink);
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled :is(
    .sq-search, .cqa-note, .cqa-tabs button, .production-quantity-grid > span,
    .tm-tabs, .tm-platform, .tm-rule span, .tm-form .tm-check
  ) {
    background: var(--pwa-well);
    border-color: var(--pwa-line);
    color: var(--pwa-muted);
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled :is(
    .sq-intro h2, .sq-metrics strong, .sq-empty h3, .sq-form-section h3,
    .sq-live-total strong, .sq-table td strong, .sq-table .sq-money,
    .cqa-heading h2, .cqa-empty strong, .cqa-numeric,
    .wh-intro h2, .wh-stats strong, .pm-intro h2, .pm-summary strong, .pm-form-section h3,
    #product-master-count, .pm-empty h3, .pm-channel-fieldset legend,
    .co-intro h2, .co-summary b, .co-empty strong, .co-account-heading h3,
    .co-account-applicant > strong, .stock-management-summary > strong, .stock-ledger-card h2,
    .stock-sku-card .stock-ratio b, .production-quantity-grid b,
    .tm-hero h2, .tm-rule strong, .tm-profile-head h3, .tm-profile-card dd
  ) {
    color: var(--pwa-ink);
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled :is(
    .sq-intro p, .sq-eyebrow, .sq-metrics span, .sq-metrics small, .sq-search svg,
    .sq-count, .sq-empty p, .sq-form, .sq-live-total, .sq-live-total small,
    .sq-net-price, .sq-section-title > span, .sq-line-index, .sq-table .sq-index, .sq-table small,
    .cqa-heading p, .cqa-heading > div > span, .cqa-empty,
    .wh-intro > div > span, .wh-intro p, .wh-stats article > span, .wh-help, .wh-line .wh-serial,
    .pm-eyebrow, .pm-intro p, .pm-summary > div > span, .pm-summary small, .pm-toolbar label > span,
    .pm-result-caption, .pm-result-caption > span, .pm-empty p, .pm-channel-fieldset legend > span, .pm-form-note,
    .co-eyebrow, .co-intro p, .co-summary small, .co-tabs button, .co-empty, .co-empty p,
    .co-account-applicant > span, .stock-management-summary > span,
    .tm-hero p, .tm-summary article > small, .tm-note, .tm-platform .tm-note, .tm-tabs > button, .tm-rule
  ) {
    color: var(--pwa-muted);
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled :is(.customer-ordering, .tax-management) {
    color: var(--pwa-ink);
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled :is(
    .cqa-tabs button.active, .tm-tabs > button.active
  ) {
    background: var(--pwa-selected);
    color: var(--pwa-ink);
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled .sq-search input {
    background: transparent !important;
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled .production-progress-track {
    background: var(--pwa-line);
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled :is(
    .production-quantity-grid .produced, .tm-pill
  ) {
    background: #253e32;
    color: var(--pwa-accent);
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled .production-quantity-grid .produced b {
    color: var(--pwa-accent);
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled :is(
    .production-quantity-grid .remaining, .production-legacy-note, .tm-pill.warm
  ) {
    background: #413226;
    border-color: #69543f;
    color: #ffd1a0;
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled :is(
    .production-quantity-grid .remaining b, .stock-sku-card .stock-quantity.orange,
    .stock-sku-card .stock-ratio.orange b
  ) {
    color: #ffd1a0;
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled :is(
    .stock-sku-card .stock-quantity.red, .stock-sku-card .stock-ratio.red b
  ) {
    color: #ffc2bf;
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled .tm-platform a {
    color: var(--pwa-accent);
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled :is(
    .qc-intro, .qc-steps > div, .paddy-summary, .ft-mini, .plan-task
  ) {
    background: var(--pwa-surface);
    border-color: var(--pwa-line);
    color: var(--pwa-ink);
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled :is(
    .qc-search, .qc-tabs button span, .qc-steps b,
    .paddy-summary > h3, .paddy-summary-total, .paddy-summary-void .paddy-summary-total,
    .ship-periods, .ship-tabs > button span, .ft-tabs, .ft-mini > svg, .ft-hero > div > svg
  ) {
    background: var(--pwa-well);
    border-color: var(--pwa-line);
    color: var(--pwa-muted);
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled :is(
    .qc-intro h2, .qc-steps span, .qc-empty h3, .qc-tabs > button.active,
    .paddy-empty strong, #paddy-count, .paddy-summary-cell > strong, .paddy-summary-cell b,
    .ship-intro h2, .ship-pending h3, .ship-section-heading h3, .ship-product b,
    .ship-tabs > button.active, .ft-hero > div > span, .ft-mini strong,
    .plan-column-head h2
  ),
  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled:is(
    [data-workspace-page="planning"], [data-workspace-page="paddy"]
  ) #page-content .card-head h2 {
    color: var(--pwa-ink);
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled :is(
    .co-connection-head p, .qc-eyebrow, .qc-intro p, .qc-steps small, .qc-empty p, .qc-tabs > button:not(.active),
    .paddy-summary > h3 > small, .paddy-summary-cell > span, .paddy-empty p,
    .paddy-list-meta > span:not(#paddy-count), .paddy-help,
    .ship-intro > div > span, .ship-intro p, .ship-pending p, .ship-section-heading p,
    .ship-product span, .ship-tabs > button:not(.active), .ship-periods button, .ship-result-count,
    .ft-hero small, .ft-tabs > button, .ft-mini span, .ft-mini strong small, .ft-empty
  ) {
    color: var(--pwa-muted);
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled :is(
    .ship-periods button.active, .ft-tabs > button.active
  ) {
    background: var(--pwa-selected);
    color: var(--pwa-ink);
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled .qc-search input {
    background: transparent !important;
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled :is(.ship-text-link, .ship-tracking-link) {
    color: var(--pwa-accent);
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled .ship-pending h3 span {
    color: #ffd1a0;
  }

  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled .ft-bank-state {
    background: #413226;
    border-color: #69543f;
    color: #ffd1a0;
  }


  html[data-workspace-theme="dark"] body.workspace-unified.mw-enabled .modal .modal-back {
    background: var(--pwa-surface);
    border-color: var(--pwa-line);
    color: var(--pwa-ink);
  }

  /* Apply the home palette to shared business components while keeping their layout. */
  html[data-workspace-theme] body.workspace-unified.mw-enabled[data-workspace-page]:not(:where(
    [data-workspace-page="overview"], [data-workspace-page="personal"], .is-im-page, .touch-fullscreen
  )) .content > .page-heading h1,
  html[data-workspace-theme] body.workspace-unified.mw-enabled #page-content :is(.si-editor-head, .si-intro) h2 {
    color: var(--pwa-ink);
  }

  html[data-workspace-theme] body.workspace-unified.mw-enabled[data-workspace-page]:not(:where(
    [data-workspace-page="overview"], [data-workspace-page="personal"], .is-im-page, .touch-fullscreen
  )) .content > .page-heading p,
  html[data-workspace-theme] body.workspace-unified.mw-enabled #page-content :is(.si-editor-head, .si-intro) :is(p, div > span) {
    color: var(--pwa-muted);
  }

  html[data-workspace-theme] body.workspace-unified.mw-enabled[data-workspace-page]:not(:where(
    [data-workspace-page="overview"], [data-workspace-page="personal"], .is-im-page, .touch-fullscreen
  )) #page-content :is(
    .card, .si-editor, .si-intro, .wh-intro, .sq-intro, .pm-intro, .pm-product-card, .pr-panel
  ):not(:where(.print-sheet, .paper, .si-print-preview, .order-print-preview, [data-print])) {
    border-color: var(--pwa-line) !important;
    border-radius: var(--pwa-card-radius, 23px);
    background-color: var(--pwa-surface) !important;
    color: var(--pwa-ink);
    box-shadow: var(--pwa-card-shadow, 0 3px 12px #242a3809);
  }

  html[data-workspace-theme] body.workspace-unified.mw-enabled[data-workspace-page]:not(:where(
    [data-workspace-page="overview"], [data-workspace-page="personal"], .is-im-page, .touch-fullscreen
  )) #page-content :is(.card-head > :is(h2, h3), .sq-intro h2, .wh-intro h2, .pm-intro h2) {
    color: var(--pwa-ink);
  }

  html[data-workspace-theme] body.workspace-unified.mw-enabled #page-content :is(.si-editor-head, .si-intro, .wh-intro, .sq-intro, .pm-intro) {
    background: var(--pwa-material-light, none), var(--pwa-surface);
    border-color: var(--pwa-line);
  }

  html[data-workspace-theme] body.workspace-unified.mw-enabled #page-content .si-editor :is(.si-source-order, .si-entry-row, .si-invoice-fields, .si-calculated) {
    background-color: var(--pwa-bg);
    border-color: var(--pwa-line);
    border-radius: var(--pwa-card-radius, 23px);
  }

  html[data-workspace-theme] body.workspace-unified.mw-enabled #page-content .si-form label:not(:where(.si-gift-toggle, .si-check)) {
    color: var(--pwa-ink);
  }

  html[data-workspace-theme] body.workspace-unified.mw-enabled #page-content .si-editor :is(.si-source-order p, .si-editor-footer .si-help, .si-account-setting > small) {
    color: var(--pwa-muted);
  }

  html[data-workspace-theme] body.workspace-unified.mw-enabled #page-content .si-editor :is(.si-editor-footer, .si-receipt-balance output, [data-si-tax-exclusive]) {
    background-color: var(--pwa-well);
    border-color: var(--pwa-line);
    color: var(--pwa-ink);
  }

  html[data-workspace-theme] body.workspace-unified.mw-enabled[data-workspace-page]:not(:where(
    [data-workspace-page="overview"], [data-workspace-page="personal"], .is-im-page, .touch-fullscreen
  )) #page-content :is(.toolbar, .si-toolbar, .wh-toolbar, .pm-toolbar, .sq-search, .qc-search) {
    background-color: var(--pwa-surface) !important;
    border-color: var(--pwa-line) !important;
    color: var(--pwa-muted);
  }

  html[data-workspace-theme] body.workspace-unified.mw-enabled[data-workspace-page]:not(:where(
    [data-workspace-page="overview"], [data-workspace-page="personal"], .is-im-page, .touch-fullscreen
  )) .content :is(.page-heading > .heading-actions, #page-content) .button {
    border-radius: var(--pwa-control-radius, 14px);
  }

  html[data-workspace-theme] body.workspace-unified.mw-enabled[data-workspace-page]:not(:where(
    [data-workspace-page="overview"], [data-workspace-page="personal"], .is-im-page, .touch-fullscreen
  )) .content :is(.page-heading > .heading-actions, #page-content) .button:not(:where(
    .secondary, .ghost, .danger, .cc-danger-button, .warning, .orange, .red, [aria-pressed], [aria-selected], :disabled
  )) {
    background-color: var(--pwa-action) !important;
    border-color: var(--pwa-action) !important;
    color: var(--pwa-action-ink) !important;
  }

  html[data-workspace-theme] body.workspace-unified.mw-enabled[data-workspace-page]:not(:where(
    [data-workspace-page="overview"], [data-workspace-page="personal"], .is-im-page, .touch-fullscreen
  )) .content :is(.page-heading > .heading-actions, #page-content) .button.secondary:not(:where(
    .danger, .cc-danger-button, .warning, .orange, .red, [aria-pressed], [aria-selected], :disabled
  )) {
    background-color: var(--pwa-surface) !important;
    border-color: var(--pwa-line) !important;
    color: var(--pwa-ink) !important;
  }

  html[data-workspace-theme] body.workspace-unified.mw-enabled[data-workspace-page]:not(:where(
    [data-workspace-page="overview"], [data-workspace-page="personal"], .is-im-page, .touch-fullscreen
  )) #page-content .tabs .tab {
    border-radius: var(--pwa-control-radius, 14px);
    background-color: transparent !important;
    color: var(--pwa-muted) !important;
  }

  html[data-workspace-theme] body.workspace-unified.mw-enabled[data-workspace-page]:not(:where(
    [data-workspace-page="overview"], [data-workspace-page="personal"], .is-im-page, .touch-fullscreen
  )) #page-content .tabs .tab:is(.active, [aria-selected="true"], [aria-current="page"]) {
    background-color: var(--pwa-selected) !important;
    color: var(--pwa-accent) !important;
  }

  html[data-workspace-theme] body.workspace-unified.mw-enabled[data-workspace-page]:not(:where(
    [data-workspace-page="overview"], [data-workspace-page="personal"], .is-im-page, .touch-fullscreen
  )) #page-content :is(form, .toolbar, .si-toolbar, .wh-toolbar, .pm-toolbar) :is(
    input:not(:where([type="hidden"], [type="checkbox"], [type="radio"], [type="file"], [type="range"], [type="color"], [type="button"], [type="submit"], [type="reset"])),
    select, textarea
  ):not(:where(.sq-search input, .qc-search input, :disabled, [readonly], [aria-invalid="true"])) {
    border-radius: var(--pwa-control-radius, 14px);
    background-color: var(--pwa-field) !important;
    border-color: var(--pwa-control-line, var(--pwa-line)) !important;
    color: var(--pwa-ink) !important;
  }

  html[data-workspace-theme] body.workspace-unified.mw-enabled[data-workspace-page]:not(:where(
    [data-workspace-page="overview"], [data-workspace-page="personal"], .is-im-page, .touch-fullscreen
  )) #page-content :is(form, .toolbar, .si-toolbar, .wh-toolbar, .pm-toolbar) :is(input, select, textarea):focus-visible {
    outline-color: var(--pwa-focus);
  }

  /* Extend the home palette to mobile navigation and personal cards. */
  html[data-workspace-theme] body.workspace-unified.mw-enabled .mw-menu-sheet {
    background: var(--pwa-bg) !important;
    border-color: var(--pwa-line) !important;
    color: var(--pwa-ink) !important;
  }

  html[data-workspace-theme] body.workspace-unified.mw-enabled .mw-menu-sheet::backdrop {
    background: var(--pwa-overlay);
  }

  html[data-workspace-theme] body.workspace-unified.mw-enabled .mw-menu-sheet .mw-menu-search input {
    background: transparent !important;
    color: var(--pwa-ink) !important;
  }

  html[data-workspace-theme] body.workspace-unified.mw-enabled .mw-menu-sheet .mw-menu-search input::placeholder,
  html[data-workspace-theme] body.workspace-unified.mw-enabled .mw-menu-sheet .mw-menu-empty {
    color: var(--pwa-muted);
  }

  html[data-workspace-theme] body.workspace-unified.mw-enabled .mw-menu-sheet .mw-menu-empty strong {
    color: var(--pwa-ink);
  }

  html[data-workspace-theme] body.workspace-unified.mw-enabled .personal-workspace {
    --pw-line: var(--pwa-line);
    color: var(--pwa-ink);
  }

  html[data-workspace-theme] body.workspace-unified.mw-enabled .personal-workspace :is(.pw-profile-card, .pw-section, .pw-count, .pw-task-card) {
    background: var(--pwa-surface) !important;
    border-color: var(--pwa-line) !important;
    color: var(--pwa-ink);
    box-shadow: var(--pwa-card-shadow);
  }

  html[data-workspace-theme] body.workspace-unified.mw-enabled .personal-workspace .pw-profile-card {
    background: var(--pwa-material-light), var(--pwa-surface) !important;
  }

  html[data-workspace-theme] body.workspace-unified.mw-enabled .personal-workspace :is(.pw-page-heading h2, .pw-profile-name h2, .pw-count strong, .pw-section h3, .pw-reminder strong, .pw-task-card h4) {
    color: var(--pwa-ink);
  }

  html[data-workspace-theme] body.workspace-unified.mw-enabled .personal-workspace :is(
    .pw-eyebrow, .pw-role, .pw-profile-caption, .pw-profile-contact, .pw-count > span,
    .pw-count .pw-icon, .pw-section-head p, .pw-reminder p, .pw-reminder small, .pw-small-note,
    .pw-column-empty, .pw-task-notes, .pw-task-dates
  ) {
    color: var(--pwa-muted);
  }

  html[data-workspace-theme] body.workspace-unified.mw-enabled .personal-workspace :is(.pw-task-view, .pw-board-column, .pw-reminder-mark) {
    background: var(--pwa-well) !important;
    border-color: var(--pwa-line) !important;
    color: var(--pwa-ink);
  }

  html[data-workspace-theme] body.workspace-unified.mw-enabled .personal-workspace .pw-task-view button {
    color: var(--pwa-muted);
  }

  html[data-workspace-theme] body.workspace-unified.mw-enabled .personal-workspace .pw-task-view button[aria-pressed="true"] {
    background: var(--pwa-surface);
    color: var(--pwa-accent);
    box-shadow: var(--pwa-card-shadow);
  }

  html[data-workspace-theme] body.workspace-unified.mw-enabled .personal-workspace :is(.pw-icon-button, .pw-profile-edit, .pw-reminder-open) {
    background: var(--pwa-surface) !important;
    border-color: var(--pwa-line) !important;
    color: var(--pwa-ink) !important;
  }

  html[data-workspace-theme] body.workspace-unified.mw-enabled .personal-workspace .pw-reminder {
    border-color: var(--pwa-line);
  }

  html[data-workspace-theme] body.workspace-unified.mw-enabled #page-content .si-editor
    :is(.si-editor-head, .si-editor-footer) {
    background: var(--pwa-lens-reflection), var(--pwa-lens-fill);
    border-color: var(--pwa-lens-edge);
    box-shadow: var(--pwa-lens-depth);
  }
}
