/*
 * PrintPass dark palette.
 *
 * The application persists its theme on data-pa-theme. The data-theme alias
 * keeps the published token contract portable without changing the existing
 * theme switcher. Light-theme tokens live elsewhere and remain untouched.
 */
:root[data-pa-theme="dark"],
:root[data-theme="dark"] {
  --page-bg: #081620;
  --section-bg: #0f1e27;
  --surface: #152935;
  --surface-elevated: #183240;
  --surface-hover: #203e4d;

  --primary-teal: #28b8c4;
  --bright-teal: #3fd0d5;
  --aqua-accent: #70e1dc;

  --text-main: #f1f8f9;
  --text-body: #c7d4d9;
  --text-muted: #8298a2;

  --border: #29434c;
}

/* Existing profile-selected dark state. Light theme is untouched. */
html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace) {
  color-scheme: dark;
  --pa-canvas: var(--page-bg);
  --pa-canvas-raised: var(--section-bg);
  --pa-surface: var(--surface);
  --pa-surface-raised: var(--surface-elevated);
  --pa-surface-soft: var(--surface-hover);
  --pa-paper: var(--surface);
  --pa-paper-strong: var(--surface-elevated);
  --pa-copy: var(--text-body);
  --pa-copy-muted: var(--text-muted);
  --pa-copy-dark: var(--text-main);
  --pa-copy-dark-muted: var(--text-muted);
  --pa-accent: var(--primary-teal);
  --pa-accent-strong: var(--bright-teal);
  --pa-accent-soft: var(--surface-hover);
  --pa-line-master: var(--border);
  --pa-line-light: var(--border);
  --pa-shadow-master: 0 30px 74px rgba(0, 8, 16, .42);
  --pa-shadow-paper: 0 22px 54px rgba(0, 8, 16, .28);
  --pa-blue: var(--primary-teal);
  --pa-blue-2: var(--bright-teal);
  --pa-blue-soft: var(--surface-hover);
  --pa-teal-deep: var(--primary-teal);
  --pa-teal: var(--primary-teal);
  --pa-teal-bright: var(--bright-teal);
  --pa-cyan-soft: var(--surface-hover);
  --pa-ice: var(--section-bg);
  --pa-ice-2: var(--surface);
  --pa-navy: var(--text-main);
  --pa-navy-2: var(--text-body);
  --pa-ink: var(--text-main);
  --pa-text: var(--text-body);
  --pa-muted: var(--text-muted);
  --pa-line: var(--border);
  --pa-line-dark: var(--border);
  --pa-panel: rgba(21, 41, 53, .96);
  --pa-soft: var(--surface-hover);
  --pa-success: var(--bright-teal);
  --bs-body-bg: var(--page-bg);
  --bs-body-color: var(--text-body);
  --bs-emphasis-color: var(--text-main);
  --bs-secondary-color: var(--text-muted);
  --bs-secondary-bg: var(--surface-hover);
  --bs-tertiary-bg: var(--surface-elevated);
  --bs-border-color: var(--border);
  color: var(--pa-copy);
  background: var(--page-bg);
}

/* Authenticated shells define a bright canvas with !important in
   theme-master-auth-app.css. Reassert the selected Dark preference only for
   those non-Studio families so the outer canvas cannot remain white. */
html[data-pa-theme="dark"] body.pa-body:is(
  .pa-family-auth,
  .pa-family-account,
  .pa-family-workflow,
  .pa-family-admin,
  .pa-family-message
):not(.pa-protected-workspace) {
  background: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-main::before { content:none; display:none; }

/* Navigation and footer */
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.pa-site-header,.ecosystem-nav .pa-site-nav) { border-bottom-color:rgba(41, 67, 76,.14); background:var(--page-bg); color:#eaf7f6; box-shadow:0 12px 36px rgba(0, 8, 16,.28); backdrop-filter:none; -webkit-backdrop-filter:none; }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .ecosystem-nav { --ecosystem-nav-ink:#eaf7f6; --ecosystem-nav-muted:#a6bdbc; --ecosystem-nav-line:rgba(41, 67, 76,.17); --ecosystem-nav-surface:var(--page-bg); --ecosystem-nav-soft:var(--surface); --ecosystem-nav-teal:var(--bright-teal); --ecosystem-nav-deep:var(--primary-teal); --ecosystem-nav-accent:var(--bright-teal); }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .ecosystem-nav .pa-brand-logo { filter:brightness(0) invert(1) drop-shadow(0 8px 18px rgba(63, 208, 213,.14)) !important; }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .ecosystem-nav :is(.nav-link,.pa-nav-link,.pa-nav-account,.pa-nav-theme-toggle) { color:#d6e7e5; }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .ecosystem-nav :is(.nav-link,.pa-nav-link,.pa-nav-account,.pa-nav-theme-toggle):is(:hover,:focus-visible) { color:var(--aqua-accent); }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.dropdown-menu,.pa-nav-menu,.pa-nav-account-menu) { border-color:var(--pa-line-master); background:var(--page-bg); color:#e5f2f1; box-shadow:var(--pa-shadow-paper); }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.dropdown-item,.pa-nav-menu a,.pa-nav-account-menu a) { color:#d6e7e5; }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.dropdown-item,.pa-nav-menu a,.pa-nav-account-menu a):is(:hover,:focus-visible) { background:rgba(63, 208, 213,.11); color:var(--aqua-accent); }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-footer { border-top-color:rgba(41, 67, 76,.15); background:var(--section-bg); }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-footer :is(h2,h3,strong) { color:#eaf7f6; }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-footer :is(p,a,li,.pa-footer-bottom) { color:#a6bdbc; }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-footer a:is(:hover,:focus-visible) { color:var(--aqua-accent); }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-footer-operator { border-color:rgba(41, 67, 76,.18); background:var(--surface); color:#a6bdbc; }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-footer-operator strong { color:#eaf7f6; }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-operator-band { border-color:rgba(41, 67, 76,.16); background:var(--section-bg); }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-operator-band-mark { border-color:rgba(41, 67, 76,.2); background:var(--surface-elevated); color:var(--aqua-accent); }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-operator-band :is(h2) { color:#eaf7f6; }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-operator-band p,
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-contact-operator { color:#a6bdbc; }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-legal-operator { background:rgba(8, 22, 32,.58); color:#b7cecc; }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-commerce-operator-note { border-color:rgba(41, 67, 76,.17); border-left-color:var(--bright-teal); background:rgba(8, 22, 32,.58); color:#b7cecc; }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-commerce-operator-note a { color:var(--aqua-accent); }

/* Type, links, controls, focus, disabled */
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(h1,h2,h3,h4,h5,h6,legend,dt,strong) { color:#eaf7f6; }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(p,li,dd,small,.text-muted) { color:#a6bdbc; }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) a:not(.btn):not(.pa-btn) { color:var(--bright-teal); }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) a:not(.btn):not(.pa-btn):is(:hover,:focus-visible) { color:var(--aqua-accent); }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(a,button,input,select,textarea,[tabindex]):focus-visible { outline:3px solid rgba(63, 208, 213,.5); outline-offset:3px; }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.btn-primary,.pa-btn--primary) { border-color:var(--bright-teal); background:var(--primary-teal); color:var(--page-bg); box-shadow:0 15px 32px rgba(40, 184, 196,.25); }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.btn-primary,.pa-btn--primary):is(:hover,:focus-visible) { border-color:var(--aqua-accent); background:var(--bright-teal); color:var(--page-bg); }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.btn-secondary,.btn-outline-secondary,.btn-outline-primary,.pa-btn--ghost,.btn-dark-outline) { border-color:rgba(41, 67, 76,.48); background:rgba(63, 208, 213,.07); color:var(--aqua-accent); }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.btn-secondary,.btn-outline-secondary,.btn-outline-primary,.pa-btn--ghost,.btn-dark-outline):is(:hover,:focus-visible) { border-color:rgba(131,232,223,.62); background:rgba(63, 208, 213,.14); color:#fff; }

html[data-pa-theme="dark"] body.pa-family-admin:not(.pa-protected-workspace)
  #main-content#main-content .admin-security-titlebar .btn-outline-secondary {
  border-color: #29434c !important;
  background: #152935 !important;
  color: #70e1dc !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace)
  #main-content#main-content .pa-security-hero-art > img[data-pa-theme-media="content"] {
  max-width: calc(100% - 2px) !important;
  margin-inline: auto !important;
}
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(button,.btn,.pa-btn,input,select,textarea):disabled,
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.btn,.pa-btn).disabled { opacity:.52; cursor:not-allowed; box-shadow:none; transform:none; }

/* Forms */
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.form-control,.form-select,textarea,input[type="text"],input[type="email"],input[type="password"],input[type="search"],input[type="url"],input[type="number"]) { border-color:rgba(41, 67, 76,.45); background-color:var(--section-bg); color:#eaf7f6; box-shadow:inset 0 1px 0 rgba(255,255,255,.025); }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.form-control,.form-select,textarea,input)::placeholder { color:#7f9c9e; opacity:1; }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.form-control,.form-select,textarea,input):focus { border-color:var(--bright-teal); background-color:var(--section-bg); color:#fff; box-shadow:0 0 0 .24rem rgba(63, 208, 213,.16); }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.form-label,label,.form-check-label) { color:#d6e7e5; }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .form-check-input { border-color:rgba(41, 67, 76,.5); background-color:var(--section-bg); }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .form-check-input:checked { border-color:var(--primary-teal); background-color:var(--primary-teal); }

/* Public, document, and community surfaces */
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.card,.pa-white-panel,.pa-light-section,.pa-soft-section,.pa-action-panel,.pa-page-panel,.pa-info-card,.pa-gallery-card,.pa-market-card,.pa-audit-card,.pa-proof-card,.pa-discover-grid-section,.pa-discover-card,.pa-discover-proof,.pa-discover-nav,.pa-connect-hub__section,.pa-connect-hub__card,.pa-connect-hub__path-link,.pa-connect-hub__prep-list li) { border-color:var(--pa-line-master); background-color:rgba(8, 22, 32,.92); color:#d6e7e5; box-shadow:var(--pa-shadow-paper); }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.card,.pa-white-panel,.pa-light-section,.pa-soft-section,.pa-action-panel,.pa-page-panel,.pa-info-card,.pa-gallery-card,.pa-market-card,.pa-audit-card,.pa-proof-card,.pa-discover-grid-section,.pa-discover-card,.pa-discover-proof,.pa-discover-nav,.pa-connect-hub__section,.pa-connect-hub__card,.pa-connect-hub__path-link,.pa-connect-hub__prep-list li) :is(h1,h2,h3,h4,strong,label) { color:#eaf7f6; }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.card,.pa-white-panel,.pa-light-section,.pa-soft-section,.pa-action-panel,.pa-page-panel,.pa-info-card,.pa-gallery-card,.pa-market-card,.pa-audit-card,.pa-proof-card,.pa-discover-grid-section,.pa-discover-card,.pa-discover-proof,.pa-discover-nav,.pa-connect-hub__section,.pa-connect-hub__card,.pa-connect-hub__path-link,.pa-connect-hub__prep-list li) :is(p,li,small) { color:#a6bdbc; }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.pa-page-hero:not(.pa-immersive-hero),.pa-theme-hero,.pa-discover-hero,.pa-connect-hub__hero,.pa-get-it-printed__hero) { border-color:var(--pa-line-master); background:var(--section-bg); color:#d6e7e5; box-shadow:var(--pa-shadow-master); }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.pa-page-hero,.pa-theme-hero,.pa-discover-hero,.pa-connect-hub__hero,.pa-get-it-printed__hero) :is(h1,h2,h3) { color:#f1fbfa; }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.pa-page-hero,.pa-theme-hero,.pa-discover-hero,.pa-connect-hub__hero,.pa-get-it-printed__hero) p { color:#b2c8c7; }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.pa-proof-strip span,.pa-get-it-printed__hero-note,.pa-connect-hub__signal) { border-color:rgba(41, 67, 76,.2); background:rgba(8, 22, 32,.7); color:#cfe3e1; }
html[data-pa-theme="dark"] body.pa-family-document:not(.pa-protected-workspace) :is(.pa-doc-content,.pa-doc-section,.pa-toc-card,.pa-doc-sidebar,article),
html[data-pa-theme="dark"] body.pa-family-community:not(.pa-protected-workspace) :is(.pa-community-card,.pa-community-panel,.pa-community-thread,.pa-community-question,.pa-community-answer,.pa-community-index-card,.pa-community-index-panel) { border-color:var(--pa-line-master); background-color:rgba(8, 22, 32,.92); color:#d6e7e5; box-shadow:var(--pa-shadow-paper); }
html[data-pa-theme="dark"] body.pa-family-community:not(.pa-protected-workspace) :is(.pa-community-stat-stack,.pa-community-meta,.pa-answer-meta) { color:#a6bdbc; }

/* Image atmosphere: deliberately excludes Studio, viewport, canvas, and editor selectors. */
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.pa-hero-media-frame,.pa-contact-image-stage,.pa-gallery-media,.pa-score-hero__visual,.pa-report-hero__media,.pa-misprint-hero__media) { position:relative; isolation:isolate; overflow:hidden; border-color:rgba(41, 67, 76,.2); background-color:var(--section-bg); box-shadow:var(--pa-shadow-master); }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.pa-hero-media-frame,.pa-contact-image-stage,.pa-gallery-media,.pa-score-hero__visual,.pa-report-hero__media,.pa-misprint-hero__media)::after { content:""; position:absolute; z-index:2; inset:0; pointer-events:none; background:linear-gradient(180deg,rgba(8, 22, 32,.02),rgba(8, 22, 32,.26)); }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.pa-hero-media-frame,.pa-contact-image-stage,.pa-gallery-media,.pa-score-hero__visual,.pa-report-hero__media,.pa-misprint-hero__media) img { filter:saturate(.82) brightness(.88) contrast(1.04); }

/* Workflow, account, admin, auth, and message families; geometry stays in existing layers. */
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.pa-dashboard-head,.pa-projects-head,.pa-upload-head,.pa-status-head,.pa-account-page-head,.pa-admin-list-hero,.pa-admin-hero,.pa-admin-page-head,.pa-auth-story) { border-color:var(--pa-line-master); background:var(--section-bg); color:#e5f2f1; box-shadow:var(--pa-shadow-paper); }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.pa-dashboard-kpi,.pa-dashboard-panel,.pa-dashboard-support,.pa-project-card,.pa-projects-create,.pa-projects-list,.pa-upload-card,.pa-status-card,.pa-source-workspace,.pa-source-result-board,.pa-shared-report-page,.pa-report-card-page,.pa-account-workspace,.pa-account-card,.pa-manage-shell,.pa-admin-reference-body,.pa-admin-panel,.pa-admin-table-shell,.pa-auth-frame,.pa-auth-form-panel,.pa-auth-trust,.pa-auth-panel,.pa-auth-card,.pa-message-shell,.pa-auth-shell) { border-color:var(--pa-line-master); background:rgba(8, 22, 32,.94); color:#d6e7e5; box-shadow:var(--pa-shadow-paper); }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.pa-auth-form-panel,.pa-account-main) { background:var(--surface); }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-account-sidebar { border-color:var(--pa-line-master); background:var(--section-bg); }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.pa-manage-nav-link,.nav-pills .nav-link) { color:#bcd2d0; }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.pa-manage-nav-link,.nav-pills .nav-link):is(.active,:hover,:focus-visible) { background:rgba(63, 208, 213,.13); color:var(--aqua-accent); }

/* Login and registration use nested spans for supporting copy. Pin only those
   Dark-theme spans so the Light auth palette cannot reduce their contrast. */
html[data-pa-theme="dark"] body.pa-family-auth:not(.pa-protected-workspace) .pa-auth-feature-list article span,
html[data-pa-theme="dark"] body.pa-family-auth:not(.pa-protected-workspace) .pa-auth-switch > span {
  color:#b8cecc;
}

/* Account settings has deliberately strong light-theme selectors in the
   shared refinement layer. These account-scoped rules keep Dark readable
   without changing the light teal/white presentation. */
html[data-pa-theme="dark"] body.pa-family-account:not(.pa-protected-workspace) .pa-account-page-surface {
  background:transparent;
  color:#d6e7e5;
}
html[data-pa-theme="dark"] body.pa-family-account:not(.pa-protected-workspace) :is(.pa-account-workspace,.pa-account-main) {
  border-color:var(--pa-line-master);
  background:linear-gradient(180deg,rgba(15, 30, 39,.98),rgba(15, 30, 39,.98));
  color:#d6e7e5;
}
html[data-pa-theme="dark"] body.pa-family-account:not(.pa-protected-workspace) .pa-account-main :is(h1,h2,h3,h4,h5,h6,legend,label,strong) {
  color:#eaf7f6;
}
html[data-pa-theme="dark"] body.pa-family-account:not(.pa-protected-workspace) .pa-account-main :is(p,li,dd,small,.small,.form-text,.text-muted,.text-secondary) {
  color:#a6bdbc !important;
}
html[data-pa-theme="dark"] body.pa-family-account:not(.pa-protected-workspace) .pa-account-sidebar-label {
  color:#cfe3e1;
}
html[data-pa-theme="dark"] body.pa-family-account:not(.pa-protected-workspace) .pa-manage-nav-icon {
  color:var(--bright-teal);
}
html[data-pa-theme="dark"] body.pa-family-account:not(.pa-protected-workspace) .pa-manage-nav-link:is(.active,:hover,:focus-visible) .pa-manage-nav-icon {
  color:var(--aqua-accent);
}
html[data-pa-theme="dark"] body.pa-family-account:not(.pa-protected-workspace) .pa-manage-nav-link.active {
  box-shadow:inset 3px 0 var(--bright-teal);
}
html[data-pa-theme="dark"] body.pa-family-account:not(.pa-protected-workspace) .pa-account-card {
  border-color:var(--pa-line-master);
  background:rgba(8, 22, 32,.94);
  color:#d6e7e5;
  box-shadow:var(--pa-shadow-paper);
}
html[data-pa-theme="dark"] body.pa-family-account:not(.pa-protected-workspace) .pa-account-avatar {
  border-color:rgba(41, 67, 76,.28);
  background:linear-gradient(180deg,var(--surface-elevated),var(--section-bg));
  color:var(--aqua-accent);
}
html[data-pa-theme="dark"] body.pa-family-account:not(.pa-protected-workspace) .pa-account-theme-segment .pa-profile-theme-option {
  border-color:rgba(41, 67, 76,.32);
  background:var(--section-bg);
  color:#cfe3e1;
}
html[data-pa-theme="dark"] body.pa-family-account:not(.pa-protected-workspace) .pa-account-theme-segment .pa-profile-theme-option:is(.is-active,:hover,:focus-visible) {
  border-color:rgba(131,232,223,.62);
  background:rgba(63, 208, 213,.14);
  color:var(--aqua-accent);
}
html[data-pa-theme="dark"] body.pa-family-account:not(.pa-protected-workspace) :is(
  .pa-billing-metric-grid > div,
  .pa-billing-provider-grid > div,
  .pa-account-plan-grid article,
  .pa-account-credit-pack,
  .pa-data-action-card,
  .pa-account-main ol.list > li
) {
  border-color:var(--pa-line-master);
  background:var(--section-bg);
  color:#d6e7e5;
}
html[data-pa-theme="dark"] body.pa-family-account:not(.pa-protected-workspace) .pa-account-plan-grid article.is-current {
  border-color:rgba(41, 67, 76,.34);
  background:linear-gradient(180deg,var(--surface-elevated),var(--page-bg));
  box-shadow:0 16px 42px rgba(0, 8, 16,.24);
}
html[data-pa-theme="dark"] body.pa-family-account:not(.pa-protected-workspace) :is(.pa-data-action-card.is-danger,.pa-delete-warning) {
  border-color:rgba(255,133,125,.3);
  background:rgba(117,42,42,.2);
}
html[data-pa-theme="dark"] body.pa-family-account:not(.pa-protected-workspace) :is(.pa-data-action-icon,.pa-delete-warning > span) {
  border-color:rgba(41, 67, 76,.24);
  background:var(--surface-elevated);
  color:var(--aqua-accent);
}
html[data-pa-theme="dark"] body.pa-family-account:not(.pa-protected-workspace) :is(.pa-data-action-card.is-danger .pa-data-action-icon,.pa-delete-warning > span) {
  border-color:rgba(255,133,125,.3);
  background:rgba(117,42,42,.28);
  color:#ffaaa2;
}
html[data-pa-theme="dark"] body.pa-family-account:not(.pa-protected-workspace) :is(.pa-danger-zone,.pa-data-action-card.is-danger,.pa-delete-warning) :is(h2,h3,strong) {
  color:#ffaaa2;
}
html[data-pa-theme="dark"] body.pa-family-account:not(.pa-protected-workspace) .pa-data-action-card.is-danger > .btn-outline-danger {
  border-color:#ffaaa2;
  color:#ffaaa2 !important;
}
html[data-pa-theme="dark"] body.pa-family-account:not(.pa-protected-workspace) .pa-data-action-card.is-danger > .btn-outline-danger:is(:hover,:focus-visible,:active) {
  border-color:#ffaaa2;
  background:#ffaaa2;
  color:#3b1719 !important;
}
html[data-pa-theme="dark"] body.pa-family-account:not(.pa-protected-workspace) .pa-account-main .recovery-code {
  border-color:rgba(41, 67, 76,.3);
  background:var(--section-bg);
  color:var(--aqua-accent);
}
html[data-pa-theme="dark"] body.pa-family-account:not(.pa-protected-workspace) .pa-status-chip {
  background:rgba(63, 208, 213,.12);
  color:var(--aqua-accent);
}
html[data-pa-theme="dark"] body.pa-family-account:not(.pa-protected-workspace) .pa-status-chip.is-good {
  background:rgba(63, 208, 213,.12);
  color:var(--bright-teal);
}
html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace) :is(.pa-doctor-quick-card,.pa-doctor-guide-panel,.pa-source-result-board) { border-color:var(--pa-line-master); background:var(--page-bg); color:#d6e7e5; }
html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace) :is(.pa-doctor-quick-card,.pa-doctor-guide-panel,.pa-source-result-board) :is(h2,h3,b,strong) { color:#eaf7f6 !important; }
html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace) :is(.pa-doctor-quick-card,.pa-doctor-guide-panel,.pa-source-result-board) :is(p,li,span,small) { color:#a6bdbc !important; }

/* The authenticated light layer intentionally pins workflow copy to dark ink
   with !important. Reassert the real Dark preference for the dense dashboard,
   upload, history, and source-check surfaces without touching Studio. */
html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace) .pa-main :is(
  p,.text-muted,.text-secondary,.form-text
) {
  color:#a6bdbc !important;
}

html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace) :is(
  .pa-dashboard-kpi > span,
  .pa-dashboard-panel th,
  .pa-dashboard-panel td,
  .pa-dashboard-support th,
  .pa-dashboard-support td,
  .pa-projects-list th,
  .pa-projects-list td,
  .pa-upload-card th,
  .pa-upload-card td,
  .pa-status-card th,
  .pa-status-card td,
  .pa-source-workspace th,
  .pa-source-workspace td,
  .table th,
  .table td
) {
  color:#d6e7e5 !important;
}

html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace) .pa-dashboard-kpi > span {
  color:#cfe3e1 !important;
}

html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace) :is(
  .pa-dashboard-kpi small,
  .pa-dashboard-panel-head p,
  .pa-dashboard-case-summary
) {
  color:#a6bdbc !important;
}

html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace) .pa-dashboard-case-badges > span {
  border:1px solid rgba(41, 67, 76,.2);
  background:var(--surface);
  color:var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace) .pa-chip {
  border-color:rgba(41, 67, 76,.28);
  background:rgba(63, 208, 213,.1);
  color:var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace) .pa-locked-feature {
  border-color:rgba(41, 67, 76,.24);
  background:var(--section-bg);
  color:#d6e7e5;
}

html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace) .pa-locked-feature strong {
  color:#eaf7f6 !important;
}

html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace) .pa-locked-feature span {
  color:#b7cecc !important;
}

/* Nested workflow surfaces keep their light-mode paper backgrounds in the
   authenticated layer. Give empty/history states a deliberate dark-paper
   treatment while preserving the brighter Studio workspace. */
html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace) .pa-empty-state {
  border-color:rgba(41, 67, 76,.3);
  background:linear-gradient(145deg,rgba(24, 50, 64,.96),rgba(15, 30, 39,.96));
  color:#d6e7e5;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}

html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace) .pa-empty-state :is(h2,h3,strong) {
  color:#eaf7f6 !important;
}

html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace) .pa-empty-state :is(p,small) {
  color:#b7cecc !important;
}

html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace) .pa-empty-state > i {
  color:var(--aqua-accent);
}

html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace) .pa-score-metrics > article {
  border-color:rgba(41, 67, 76,.23);
  background:linear-gradient(155deg,var(--section-bg),var(--section-bg));
  color:#d6e7e5;
  box-shadow:0 14px 34px rgba(0, 8, 16,.2),inset 0 1px 0 rgba(255,255,255,.025);
}

html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace) .pa-score-metrics > article > span {
  color:#a6bdbc !important;
}

html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace) .pa-score-metrics > article > strong {
  color:#f1fbfa !important;
}

html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace) .pa-saved-upload-score-link {
  border-color:rgba(41, 67, 76,.25);
  background:linear-gradient(145deg,var(--surface),var(--section-bg));
  color:#d6e7e5;
  box-shadow:inset 3px 0 0 rgba(63, 208, 213,.7);
}

html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace) .pa-saved-upload-score-link > strong {
  color:#eaf7f6 !important;
}

html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace) .pa-saved-upload-score-link > :is(p,small) {
  color:#b7cecc !important;
}

html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace) :is(.pa-empty-state,.pa-saved-upload-score-link) a:not(.btn) {
  color:var(--aqua-accent);
}

html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace) :is(.pa-empty-state,.pa-saved-upload-score-link) a:not(.btn):is(:hover,:focus-visible) {
  color:var(--aqua-accent);
}

/* The shared report hero is intentionally dark, but its score, details, and
   report-board cards are paper-white light islands. Keep those route-scoped
   surfaces on the exact navy, blue-gray, evergreen, aqua, and ice tokens
   instead of inheriting the surrounding persisted-dark ink. */
html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-shared-report-page
  .pa-shared-score-card {
  --pa-ink:#122233;
  --pa-text:#263746;
  --pa-muted:#617486;
  --pa-blue:var(--bright-teal);
  border-color:#d9e9ef;
  background:#ffffff;
  color:#263746;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-shared-report-page
  :is(
    .pa-shared-details-card,
    .pa-shared-report-board,
    .pa-shared-report-grid > article,
    .pa-shared-lower-grid > article
  ) {
  --pa-ink:#122233;
  --pa-text:#263746;
  --pa-muted:#617486;
  --pa-blue:var(--primary-teal);
  --pa-blue-2:var(--primary-teal);
  --pa-line:#d9e9ef;
  --pa-line-dark:#d9e9ef;
  border-color:#d9e9ef;
  background:#ffffff;
  color:#263746;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-shared-report-page
  .pa-shared-score-card
  .pa-brand-mini {
  color:#122233 !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-shared-report-page
  .pa-shared-score-card
  .pa-brand-mini > i {
  color:var(--bright-teal) !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-shared-report-page
  .pa-shared-score-card
  .pa-shared-score.is-good > strong {
  color:var(--primary-teal) !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-shared-report-page
  .pa-shared-score-card
  .pa-shared-score.is-medium > strong {
  color:#e29a1e !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-shared-report-page
  .pa-shared-score-card
  .pa-shared-score.is-high > strong {
  color:#ef442c !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-shared-report-page
  .pa-shared-score-card
  .pa-shared-score > :is(span,em) {
  color:#263746 !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-shared-report-page
  .pa-shared-score-card
  .pa-shared-score > em {
  color:var(--primary-teal) !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-shared-report-page
  .pa-shared-score-card
  li {
  color:#263746 !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-shared-report-page
  .pa-shared-score-card
  li > strong {
  color:#122233 !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-shared-report-page
  .pa-shared-score-card > p {
  color:#617486 !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-shared-report-page
  .pa-shared-details-card > h2,
html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-shared-report-page
  :is(.pa-shared-report-grid,.pa-shared-lower-grid) > article h2 {
  color:#122233 !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-shared-report-page
  :is(.pa-shared-details-card,.pa-shared-quote-card) dt {
  color:#617486 !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-shared-report-page
  :is(.pa-shared-details-card,.pa-shared-quote-card) :is(dd,dd > *) {
  color:#263746 !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-shared-report-page
  :is(
    .pa-shared-details-card > p,
    .pa-shared-quote-card > p,
    .pa-shared-approval-card p
  ) {
  color:#617486 !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-shared-report-page
  .pa-shared-notes-card li {
  color:#263746 !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-shared-report-page
  .pa-shared-approval-card > strong {
  color:#122233 !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-shared-report-page
  .pa-shared-risk-card > div > span {
  color:#263746 !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-shared-report-page
  .pa-shared-risk-card .is-high > :is(strong,i) {
  color:#b42318 !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-shared-report-page
  .pa-shared-risk-card .is-medium > :is(strong,i) {
  color:#8a5a00 !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-shared-report-page
  .pa-shared-risk-card :is(.is-good,.is-info) > :is(strong,i) {
  color:var(--primary-teal) !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-shared-report-page
  .pa-shared-tabs {
  border-color:#d9e9ef;
  background:#ffffff;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-shared-report-page
  .pa-shared-tabs a {
  color:#263746 !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-shared-report-page
  .pa-shared-tabs a > span {
  color:var(--primary-teal) !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-shared-report-page
  .pa-shared-tabs a:is(:hover,:focus-visible,.is-active) {
  border-color:var(--bright-teal);
  background:#edf8fb;
  color:var(--primary-teal) !important;
  box-shadow:0 8px 20px rgba(40, 184, 196,.12);
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-shared-report-page
  .pa-shared-tabs a.is-active::after {
  background:var(--primary-teal);
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-shared-report-page
  .pa-panel-title-row > span {
  border-color:#d9e9ef;
  background:#edf8fb;
  color:var(--primary-teal) !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-shared-report-page
  .pa-report-preview-tools a {
  border-color:#d9e9ef;
  background:#edf8fb;
  color:var(--primary-teal) !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-shared-report-page
  .pa-report-preview-tools a:first-child {
  border-color:var(--page-bg);
  background:var(--page-bg);
  color:var(--bright-teal) !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-shared-report-page
  :is(.pa-report-preview-tools a,.pa-shared-risk-card > a):is(:hover,:focus-visible) {
  border-color:var(--bright-teal);
  background:#edf8fb;
  color:var(--primary-teal) !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-shared-report-page
  .pa-shared-risk-card > a {
  color:var(--primary-teal) !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-shared-report-page
  .pa-shared-approval-card :is(.form-control,input[type="text"],input[type="email"]) {
  border-color:#d9e9ef;
  background-color:#ffffff;
  color:#122233;
  box-shadow:inset 0 1px 0 rgba(18,34,51,.03);
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-shared-report-page
  .pa-shared-approval-card :is(.form-control,input)::placeholder {
  color:#617486;
  opacity:1;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-shared-report-page
  .pa-shared-approval-card :is(.form-control,input):focus {
  border-color:var(--primary-teal);
  background-color:#ffffff;
  color:#122233;
  box-shadow:0 0 0 .24rem rgba(40, 184, 196,.16);
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-shared-report-page
  :is(.pa-shared-details-card,.pa-shared-approval-card) .btn-primary {
  border-color:var(--primary-teal);
  background:var(--primary-teal);
  color:var(--page-bg);
  box-shadow:0 15px 32px rgba(40, 184, 196,.2);
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-shared-report-page
  :is(.pa-shared-details-card,.pa-shared-approval-card) .btn-primary:is(:hover,:focus-visible) {
  border-color:var(--primary-teal);
  background:var(--primary-teal);
  color:var(--page-bg);
}

/* Tables, dialogs, tooltips, alerts */
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .table { --bs-table-color:#d6e7e5; --bs-table-bg:transparent; --bs-table-border-color:rgba(41, 67, 76,.16); --bs-table-striped-color:#d6e7e5; --bs-table-striped-bg:rgba(63, 208, 213,.035); --bs-table-hover-color:#fff; --bs-table-hover-bg:rgba(63, 208, 213,.08); color:#d6e7e5; }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.table-responsive,.pa-admin-table-wrap,.pa-admin-table-shell) { border-color:var(--pa-line-master); background:rgba(21, 41, 53,.94); }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.modal-content,.offcanvas,.popover) { border-color:var(--pa-line-master); background:var(--page-bg); color:#d6e7e5; box-shadow:var(--pa-shadow-master); }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.modal-header,.modal-footer,.offcanvas-header,.popover-header) { border-color:var(--pa-line-master); background:var(--section-bg); }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .modal-backdrop.show { opacity:.72; }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .tooltip-inner { border:1px solid rgba(41, 67, 76,.22); background:var(--surface-elevated); color:#fff; box-shadow:0 12px 28px rgba(0, 8, 16,.32); }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.alert,.toast,.list-group-item) { border-color:var(--pa-line-master); background-color:var(--section-bg); color:#d6e7e5; }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.alert-danger,.pa-account-danger,.pa-danger-zone) { border-color:rgba(255,133,125,.32); background:rgba(117,42,42,.22); color:#ffd6d1; }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.badge.bg-warning,.badge.text-bg-warning) { color:#2b1b00 !important; }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.badge.bg-info,.badge.text-bg-info,.badge.bg-primary,.badge.text-bg-primary) { color:var(--page-bg) !important; }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .text-danger { color:#ffaaa2 !important; }
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-helpbot-launcher {
  border-color:rgba(41, 67, 76,.42);
  background:var(--page-bg);
  color:var(--aqua-accent);
  box-shadow:0 14px 32px rgba(0, 8, 16,.36);
}
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-helpbot-launcher:is(:hover,:focus-visible) {
  border-color:var(--aqua-accent);
  background:var(--surface-elevated);
  color:var(--aqua-accent);
}
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(hr,.border-top,.border-bottom) { border-color:var(--pa-line-master) !important; }
@media (prefers-reduced-motion:reduce) { html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.pa-hero-media-frame,.pa-contact-image-stage,.pa-gallery-media,.pa-score-hero__visual,.pa-report-hero__media,.pa-misprint-hero__media) img { transition:none; } }

/* The Print Score Report Card sits on the persisted-dark workflow canvas, but
   its summary, finding, and handoff blocks remain deliberate paper surfaces.
   Restore the exact light-theme ink hierarchy inside those route-owned cards. */
html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-report-card-page
  :is(
    .pa-report-card-summary,
    .pa-report-card-findings > article,
    .pa-report-card-cta
  ) {
  --pa-ink:#122233;
  --pa-text:#263746;
  --pa-muted:#617486;
  --pa-blue:var(--primary-teal);
  --pa-blue-2:var(--primary-teal);
  --pa-line:#d9e9ef;
  --pa-line-dark:#d9e9ef;
  border-color:#d9e9ef;
  background:#ffffff;
  color:#263746;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-report-card-page
  .pa-report-card-model {
  border-color:#d9e9ef;
  background:#f4fbfd;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-report-card-page
  .pa-report-card-score > span {
  color:#122233 !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-report-card-page
  .pa-report-card-score-row > strong.is-good {
  color:var(--primary-teal) !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-report-card-page
  .pa-report-card-score-row > strong.is-medium {
  color:#8a5a00 !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-report-card-page
  .pa-report-card-score-row > strong.is-high {
  color:#b42318 !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-report-card-page
  .pa-report-card-score-row > em {
  color:#263746 !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-report-card-page
  .pa-report-card-score-row li {
  color:#263746 !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-report-card-page
  .pa-report-card-score-row li > b {
  color:#122233 !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-report-card-page
  .pa-report-card-score > h2 {
  color:var(--primary-teal) !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-report-card-page
  .pa-report-card-score > p {
  color:#617486 !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-report-card-page
  .pa-report-card-metrics article > i {
  color:var(--primary-teal) !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-report-card-page
  .pa-report-card-metrics article > span {
  color:#617486 !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-report-card-page
  .pa-report-card-metrics article > :is(strong,strong > span) {
  color:#122233 !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-report-card-page
  .pa-report-card-findings > article > h2 {
  color:#122233 !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-report-card-page
  .pa-report-card-findings > article > p {
  color:#617486 !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-report-card-page
  .pa-report-card-findings > article.is-high > :is(i,strong) {
  color:#b42318 !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-report-card-page
  .pa-report-card-findings > article.is-medium > :is(i,strong) {
  color:#8a5a00 !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-report-card-page
  .pa-report-card-findings > article.is-good > :is(i,strong) {
  color:var(--primary-teal) !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-report-card-page
  .pa-report-card-cta > p {
  color:#617486 !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-report-card-page
  .pa-report-card-cta > .btn-primary {
  border-color:var(--primary-teal);
  background:var(--primary-teal);
  color:#ffffff;
  box-shadow:0 15px 32px rgba(40, 184, 196,.2);
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-report-card-page
  .pa-report-card-cta > .btn-primary:is(:hover,:focus-visible) {
  border-color:var(--bright-teal);
  background:var(--bright-teal);
  color:#ffffff;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-report-card-page
  .pa-report-card-cta > .btn-outline-primary {
  border-color:var(--primary-teal);
  background:#ffffff;
  color:var(--primary-teal);
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-report-card-page
  .pa-report-card-cta > .btn-outline-primary:is(:hover,:focus-visible) {
  border-color:var(--bright-teal);
  background:#edf8fb;
  color:var(--primary-teal);
}

/* The temporary source legend is the only paper island before Print Analysis's
   dark diagnosis hero. Scope its ink and source chips to that direct child so
   the hero, badges, evidence, and premium diagnosis cards remain untouched. */
html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-answer-source-legend {
  border-color:#d9e9ef;
  background:#fbfdfe;
  color:#263746;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-answer-source-legend > strong {
  color:#122233 !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-answer-source-legend > :is(span,p,small) {
  color:#263746 !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-answer-source-legend > .pa-answer-source-code {
  --pa-answer-source-border:var(--bright-teal);
  background:#edf8fb !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-answer-source-legend > .pa-answer-source-ai {
  --pa-answer-source-border:var(--bright-teal);
  background:#dff5f8 !important;
}

/* Print Case Detail keeps its diagnosis, evidence, community, and premium
   regions dark. These nested cards are deliberate light evidence islands;
   route them back to the exact paper/ice ink hierarchy without lightening
   any owning diagnosis panel. */
html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-doctor-case-read
  .pa-doctor-case-read-list > article,
html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-doctor-generation-summary > ul > li,
html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-doctor-input-checks
  .pa-doctor-input-check-list > article,
html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-doctor-score-panel
  .pa-doctor-score-grid > article,
html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-doctor-result-grid
  .pa-doctor-finding,
html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-doctor-paywall-panel
  .pa-doctor-locked-sample > article {
  --pa-ink:#122233;
  --pa-heading:#122233;
  --pa-text:#263746;
  --pa-muted:#617486;
  --pa-blue:var(--primary-teal);
  --pa-blue-2:var(--primary-teal);
  --pa-blue-soft:#dff5f8;
  --pa-line:#d9e9ef;
  border-color:#d9e9ef;
  background:#f4fbfd;
  color:#263746;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-doctor-case-read
  .pa-doctor-case-read-list > article > div > strong,
html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-doctor-generation-summary > ul > li > strong,
html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-doctor-input-checks
  .pa-doctor-input-check-list > article > div > strong,
html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-doctor-score-panel
  .pa-doctor-score-grid > article > strong,
html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-doctor-result-grid
  .pa-doctor-finding > strong,
html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-doctor-paywall-panel
  .pa-doctor-locked-sample > article > strong {
  color:#122233 !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-doctor-case-read
  .pa-doctor-case-read-list > article > div > p,
html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-doctor-generation-summary > ul > li > span,
html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-doctor-input-checks
  .pa-doctor-input-check-list > article > div > p {
  color:#263746 !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-doctor-score-panel
  .pa-doctor-score-grid > article > span,
html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-doctor-result-grid
  .pa-doctor-finding > p,
html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-doctor-paywall-panel
  .pa-doctor-locked-sample > article > p {
  color:#617486 !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-doctor-case-read
  .pa-doctor-case-read-list > article:not(.is-success, .is-warning, .is-danger) > i,
html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-doctor-input-checks
  .pa-doctor-input-check-list > article:not(.is-warning, .is-danger) > i {
  background:#dff5f8;
  color:var(--primary-teal);
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-doctor-case-read
  .pa-doctor-case-read-list > article.is-success {
  border-color:var(--aqua-accent);
  background:#edf8fb;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-doctor-case-read
  .pa-doctor-case-read-list > article.is-success > i {
  background:#dff5f8;
  color:var(--primary-teal);
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-doctor-case-read
  .pa-doctor-case-read-list > article.is-warning,
html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-doctor-input-checks
  .pa-doctor-input-check-list > article.is-warning {
  border-color:#e2bd62;
  background:#fffaf0;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-doctor-case-read
  .pa-doctor-case-read-list > article.is-danger,
html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-doctor-input-checks
  .pa-doctor-input-check-list > article.is-danger {
  border-color:#e8a6a0;
  background:#fff7f7;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-doctor-score-panel
  .pa-doctor-model-preview {
  border-color:#d9e9ef;
  background:#f4fbfd;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-doctor-result-grid
  .pa-doctor-finding {
  border-left-color:var(--primary-teal);
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-doctor-result-grid
  .pa-doctor-finding.is-success {
  border-left-color:var(--primary-teal);
  background:#edf8fb;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-doctor-result-grid
  .pa-doctor-finding.is-warning {
  border-left-color:#8a5a00;
  background:#fffaf0;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-doctor-result-grid
  .pa-doctor-finding.is-danger {
  border-left-color:#b42318;
  background:#fff7f7;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-doctor-paywall-panel
  .pa-doctor-locked-sample > article {
  background:#fbfdfe;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-doctor-paywall-panel
  .pa-doctor-locked-sample > article > span {
  color:var(--primary-teal) !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-score-handoff {
  --pa-ink:#122233;
  --pa-text:#263746;
  --pa-muted:#617486;
  --pa-blue:var(--primary-teal);
  --pa-blue-2:var(--primary-teal);
  --pa-line:#d9e9ef;
  border-color:#d9e9ef;
  background:#fbfdfe;
  color:#263746;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-score-handoff .pa-eyebrow {
  color:var(--primary-teal) !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-score-handoff h2 {
  color:#122233 !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-score-handoff p {
  color:#617486 !important;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-score-handoff
  .pa-score-handoff-actions > .btn-primary {
  border-color:var(--primary-teal);
  background:var(--primary-teal);
  color:#ffffff;
  box-shadow:0 15px 32px rgba(40, 184, 196,.2);
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-score-handoff
  .pa-score-handoff-actions > .btn-primary:is(:hover,:focus-visible) {
  border-color:var(--bright-teal);
  background:var(--bright-teal);
  color:#ffffff;
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-score-handoff
  .pa-score-handoff-actions > .btn-outline-primary {
  border-color:var(--primary-teal);
  background:#ffffff;
  color:var(--primary-teal);
}

html[data-pa-theme="dark"]
  body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page > .pa-score-handoff
  .pa-score-handoff-actions > .btn-outline-primary:is(:hover,:focus-visible) {
  border-color:var(--bright-teal);
  background:#edf8fb;
  color:var(--primary-teal);
}

/* Admin command center — dark preference. Keep this after the shared admin
   layers because legacy rules intentionally pin the operations canvas white. */
html[data-pa-theme="dark"] body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace) {
  --pa-admin-ink:var(--text-main);
  --pa-admin-text:var(--text-body);
  --pa-admin-muted:var(--text-muted);
  --pa-admin-line:var(--border);
  --pa-admin-line-strong:var(--aqua-accent);
  --pa-admin-surface:var(--page-bg);
  --pa-admin-accent:var(--bright-teal);
  background:
    radial-gradient(circle at 12% 4rem,rgba(32, 62, 77,.22),transparent 28rem),
    radial-gradient(circle at 92% 22rem,rgba(24, 50, 64,.2),transparent 34rem),
    var(--page-bg) !important;
  color:var(--pa-admin-text);
}

html[data-pa-theme="dark"] body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace) .pa-main {
  color:var(--pa-admin-text);
}

html[data-pa-theme="dark"] body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace) :is(
  .pa-admin-reference-hero,.pa-admin-list-hero,.pa-admin-hero,.pa-admin-page-head,
  .admin-topbar-inner,.pa-asset-library-header,.pa-main > .d-flex:first-child,
  .pa-main > h1:first-child
) {
  border-color:var(--pa-admin-line);
  background:
    linear-gradient(rgba(63, 208, 213,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(63, 208, 213,.035) 1px,transparent 1px),
    radial-gradient(circle at 86% 12%,rgba(32, 62, 77,.24),transparent 20rem),
    linear-gradient(135deg,var(--surface),var(--section-bg) 68%,var(--page-bg));
  background-size:36px 36px,36px 36px,auto,auto;
  color:var(--pa-admin-text);
  box-shadow:0 22px 54px rgba(0, 8, 16,.34);
}

html[data-pa-theme="dark"] body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace) :is(
  .pa-admin-reference-body,.pa-admin-panel,.pa-admin-table-shell,
  .pa-admin-kpi-card,.admin-kpi-card,.admin-console-card,.audit-console-card,
  .card,.accordion-item,.list-group-item,.dropdown-menu
) {
  --pa-ink:var(--pa-admin-ink);
  --pa-text:var(--pa-admin-text);
  --pa-muted:var(--pa-admin-muted);
  border-color:var(--pa-admin-line);
  background:linear-gradient(145deg,var(--surface),var(--section-bg));
  color:var(--pa-admin-text);
  box-shadow:0 16px 42px rgba(0, 8, 16,.26);
}

html[data-pa-theme="dark"] body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace) :is(.pa-admin-kpi-card,.admin-kpi-card):is(:hover,:focus-visible) {
  border-color:var(--pa-admin-line-strong);
  background:linear-gradient(145deg,var(--surface-elevated),var(--section-bg));
  color:var(--pa-admin-text);
  box-shadow:0 18px 40px rgba(0, 8, 16,.34) !important;
}

html[data-pa-theme="dark"] body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace) :is(
  h1,h2,h3,h4,h5,h6,label,.form-label,.pa-panel-header,
  .pa-panel-header span:first-child,.pa-admin-panel-header,.pa-admin-user-cell,
  .pa-admin-kpi-card strong,.admin-kpi-card strong,.pa-admin-queue-list strong,
  .pa-admin-event-list span,.pa-admin-resource-list strong
) {
  color:var(--pa-admin-ink);
  text-shadow:none;
}

html[data-pa-theme="dark"] body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace) :is(
  p,li
) {
  color:var(--pa-admin-text) !important;
}

html[data-pa-theme="dark"] body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace) :is(
  small,.text-secondary,.text-muted,.form-text,.pa-admin-kpi-card em,
  .admin-kpi-card em,.pa-admin-legend,.pa-admin-signal-meta
) {
  color:var(--pa-admin-muted) !important;
}

html[data-pa-theme="dark"] body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace) :is(.pa-admin-kpi-icon,.admin-kpi-icon) {
  border-color:rgba(41, 67, 76,.25);
  background:var(--surface);
  color:var(--aqua-accent);
}

html[data-pa-theme="dark"] body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace) .pa-admin-kpi-card.is-health strong {
  color:var(--bright-teal);
}

html[data-pa-theme="dark"] body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace) :is(
  .pa-admin-filter-bar,.pa-admin-table-footer,.card-header,.accordion-button,
  .admin-help-panel,.pa-admin-search-field
) {
  border-color:var(--pa-admin-line);
  background:var(--section-bg);
  color:var(--pa-admin-text);
}

html[data-pa-theme="dark"] body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace) .admin-help-panel summary {
  color:var(--aqua-accent);
}

html[data-pa-theme="dark"] body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace) :is(.table-light,.pa-admin-user-table thead) {
  --bs-table-color:var(--pa-admin-ink);
  --bs-table-bg:var(--surface);
  --bs-table-border-color:var(--pa-admin-line);
  background:var(--surface);
}

html[data-pa-theme="dark"] body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace) :is(.pa-admin-queue-list a,.pa-admin-event-list a) {
  border-color:var(--pa-admin-line);
  color:var(--pa-admin-text);
}

html[data-pa-theme="dark"] body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace) .pa-admin-resource-list i {
  background:var(--page-bg);
}

html[data-pa-theme="dark"] body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace) .pa-admin-chart line {
  stroke:rgba(41, 67, 76,.18);
}

html[data-pa-theme="dark"] body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace) .pa-admin-chart text {
  fill:var(--text-muted);
}

/* Legacy admin utilities that are not Bootstrap cards still own explicit
   paper-white backgrounds. Keep the analytical preview itself distinct while
   preventing whole tools, signal rows, and asset cards from flashing light. */
html[data-pa-theme="dark"] body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace) :is(
  .admin-signal-item,
  .pa-asset-library-tools,
  .pa-asset-card,
  .pa-admin-table-footer-actions > span
) {
  border-color:var(--pa-admin-line);
  background:var(--page-bg);
  color:var(--pa-admin-text);
}

html[data-pa-theme="dark"] body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace) .admin-signal-item:hover {
  border-color:var(--pa-admin-line-strong);
  background:var(--surface-elevated);
}

html[data-pa-theme="dark"] body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace) :is(
  .pa-asset-group-heading span,
  .pa-asset-meta,
  .pa-asset-meta span,
  .pa-asset-meta code
) {
  color:var(--pa-admin-muted);
}

html[data-pa-theme="dark"] body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace) .pa-asset-preview {
  background:
    linear-gradient(45deg,rgba(41, 67, 76,.04) 25%,transparent 25% 75%,rgba(41, 67, 76,.04) 75%),
    linear-gradient(45deg,rgba(41, 67, 76,.04) 25%,var(--section-bg) 25% 75%,rgba(41, 67, 76,.04) 75%);
  background-position:0 0,8px 8px;
  background-size:16px 16px;
}

/* Admin-only contrast repairs for legacy chips, semantic outline actions, and
   the user directory. These values keep the existing teal/navy command-center
   palette while clearing WCAG AA for normal-sized text in every control state. */
html[data-pa-theme="dark"] body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace) :is(
  .audit-filter-chip,
  .admin-console-chip
) {
  border-color:var(--surface-hover);
  background:var(--surface-elevated);
  color:var(--text-body);
}

html[data-pa-theme="dark"] body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace) :is(
  .audit-filter-chip,
  .admin-console-chip
) strong {
  color:var(--text-main);
}

html[data-pa-theme="dark"] body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace) .btn-outline-danger {
  --bs-btn-color:#ffaaa2;
  --bs-btn-border-color:#ffaaa2;
  --bs-btn-hover-color:#3b1719;
  --bs-btn-hover-bg:#ffaaa2;
  --bs-btn-hover-border-color:#ffaaa2;
  --bs-btn-focus-shadow-rgb:255,170,162;
  --bs-btn-active-color:#3b1719;
  --bs-btn-active-bg:#ffaaa2;
  --bs-btn-active-border-color:#ffaaa2;
  --bs-btn-disabled-color:#e58f89;
  --bs-btn-disabled-border-color:#e58f89;
  border-color:#ffaaa2;
  color:#ffaaa2 !important;
}

html[data-pa-theme="dark"] body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace) .btn-outline-danger:is(:hover,:focus-visible,:active,.active) {
  border-color:#ffaaa2;
  background:#ffaaa2;
  color:#3b1719 !important;
}

html[data-pa-theme="dark"] body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace) .btn-outline-success {
  --bs-btn-color:var(--bright-teal);
  --bs-btn-border-color:var(--bright-teal);
  --bs-btn-hover-color:var(--surface);
  --bs-btn-hover-bg:var(--bright-teal);
  --bs-btn-hover-border-color:var(--bright-teal);
  --bs-btn-focus-shadow-rgb:114,223,167;
  --bs-btn-active-color:var(--surface);
  --bs-btn-active-bg:var(--bright-teal);
  --bs-btn-active-border-color:var(--bright-teal);
  --bs-btn-disabled-color:var(--bright-teal);
  --bs-btn-disabled-border-color:var(--bright-teal);
  border-color:var(--bright-teal);
  color:var(--bright-teal) !important;
}

html[data-pa-theme="dark"] body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace) .btn-outline-success:is(:hover,:focus-visible,:active,.active) {
  border-color:var(--bright-teal);
  background:var(--bright-teal);
  color:var(--surface) !important;
}

html[data-pa-theme="dark"] body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace) .admin-signal-count.is-danger {
  border:1px solid #7f4145;
  background:#43272a;
  color:#ffaaa2;
}

html[data-pa-theme="dark"] body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace) .pa-admin-user-table tbody td {
  --bs-table-color:var(--text-body);
  color:var(--text-body);
}

html[data-pa-theme="dark"] body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace) .pa-admin-user-avatar {
  border:1px solid var(--surface-hover);
  background:linear-gradient(180deg,var(--surface-hover),var(--surface-elevated));
  color:var(--aqua-accent);
}

html[data-pa-theme="dark"] body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace) .pa-table-pager-button {
  border-color:var(--border);
  background:var(--surface-elevated);
  color:var(--text-body);
}

html[data-pa-theme="dark"] body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace) .pa-table-pager-button:is(:hover,:focus-visible) {
  border-color:var(--bright-teal);
  background:var(--surface-hover);
  color:var(--text-main);
}

html[data-pa-theme="dark"] body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace) .pa-table-pager-button.is-current {
  border-color:var(--bright-teal);
  background:var(--bright-teal);
  color:var(--page-bg);
  box-shadow:0 10px 22px rgba(40, 184, 196,.18);
}

html[data-pa-theme="dark"] body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace)
  .pa-admin-users-page .pa-admin-filter-bar .btn-primary {
  color:var(--page-bg) !important;
}

html[data-pa-theme="dark"] body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace)
  .pa-admin-users-page .pa-admin-filter-bar :is(.form-control,.form-select,input,select) {
  border-color:var(--border) !important;
  background-color:var(--surface-elevated) !important;
  color:var(--text-main) !important;
  color-scheme:dark;
}

html[data-pa-theme="dark"] body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace)
  .pa-admin-users-page .pa-admin-filter-bar :is(.form-control,.form-select,input)::placeholder {
  color:var(--text-muted) !important;
  opacity:1;
}

/* Public resource controls and evidence labels. These components deliberately
   use pale paper colors in Light; replace both surface and ink together in
   Dark so the selected profile theme never produces pale-on-pale labels. */
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-library-nav a {
  border:1px solid rgba(41, 67, 76,.18);
  background:var(--section-bg);
  color:#d6e7e5 !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-library-nav a:is(:hover,:focus-visible) {
  border-color:rgba(131,232,223,.46);
  background:var(--surface-elevated);
  color:#eaf7f6 !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-library-nav a.active {
  border-color:var(--bright-teal);
  background:var(--bright-teal);
  color:var(--page-bg) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-release-nav a {
  border:1px solid rgba(41, 67, 76,.18);
  background:var(--section-bg);
  color:#d6e7e5 !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-release-nav a:is(:hover,:focus-visible) {
  border-color:rgba(131,232,223,.46);
  background:var(--surface-elevated);
  color:#eaf7f6 !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-release-nav small {
  color:#a6bdbc !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.pa-risk-chip,.pa-status-chip) {
  border:1px solid rgba(41, 67, 76,.24);
  background:var(--surface);
  color:var(--aqua-accent);
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.pa-risk-chip.is-low,.pa-status-chip.is-good) {
  border-color:var(--surface-hover);
  background:var(--surface-elevated);
  color:var(--bright-teal);
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-risk-chip.is-medium {
  border-color:#826330;
  background:#3d301c;
  color:#ffd38f;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-risk-chip.is-high {
  border-color:#7f4145;
  background:#43272a;
  color:#ffaaa2;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-market-icon {
  border:1px solid rgba(41, 67, 76,.3);
  background:var(--surface);
  color:var(--aqua-accent);
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-community-score {
  border:1px solid var(--surface-hover);
  background:var(--surface-elevated);
  color:var(--bright-teal);
  box-shadow:0 12px 26px rgba(0, 8, 16,.32);
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-community-score.is-medium {
  border-color:#826330;
  background:#3d301c;
  color:#ffd38f;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-community-score.is-high {
  border-color:#7f4145;
  background:#43272a;
  color:#ffaaa2;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-community-score small {
  color:#c1d4d2;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-doctor-hero-promises span {
  border-color:rgba(41, 67, 76,.3);
  background:var(--section-bg);
  color:#d6e7e5;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-doctor-hero-promises i {
  color:var(--aqua-accent);
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-material-guide .pa-caution {
  border-left-color:#d2a84d;
  background:#3a301d;
  color:#f6deb0;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-material-guide .pa-caution strong {
  color:#ffe9bc;
}

/* Teal is a surface, not text, in these controls. Dark ink provides at least
   AA contrast while preserving the established teal visual language. */
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.pa-horizontal-steps,.pa-pricing-steps) > article > span,
html[data-pa-theme="dark"] .driver-popover.pa-driver-popover .driver-popover-next-btn {
  color:var(--page-bg) !important;
}

/* Source Check owns a second layer of white cards inside its dark workspace.
   Keep those nested surfaces dark so inherited dark-theme copy remains readable. */
html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace) .pa-source-tool :is(
  .pa-source-input,
  .pa-source-columns article
) {
  border-color:rgba(41, 67, 76,.22);
  background:var(--page-bg);
  color:#d6e7e5;
}

html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace) .pa-source-tool :is(
  .pa-source-input,
  .pa-source-columns article
) :is(h2,h3,strong,label) {
  color:#eaf7f6 !important;
}

html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace) .pa-source-tool :is(
  .pa-source-input,
  .pa-source-columns article
) :is(p,li,span,small) {
  color:#b8cecc !important;
}

html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace) .pa-source-tool .pa-source-form-note {
  border-color:rgba(41, 67, 76,.24);
  border-left-color:var(--bright-teal);
  background:var(--section-bg);
  color:#c8dcda !important;
}

/* Resource detail cards are authored as light paper surfaces. Either their
   surface and ink must stay light together or both must switch; never mix the
   dark-theme foreground with the original paper background. */
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-report-samples .pa-sample-detail-grid article,
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-material-guide .pa-material-facts div {
  border-color:rgba(41, 67, 76,.22);
  background:var(--page-bg);
  color:#d6e7e5;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-report-samples .pa-sample-detail-grid article :is(h2,h3,strong,b),
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-material-guide .pa-material-facts div :is(h2,h3,strong,b) {
  color:#eaf7f6 !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-report-samples .pa-sample-detail-grid article :is(p,li,span,small),
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-material-guide .pa-material-facts div :is(p,li,span,small) {
  color:#b8cecc !important;
}

/* The sample report intentionally keeps document-white analytical cards in
   Dark. Pin their foreground to dark document ink so they remain legible. */
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-sample-report-page :is(
  .pa-sample-report-intro,
  .pa-report-overview-card,
  .pa-report-workflow-status
) :is(h1,h2,h3,h4,strong,b,label) {
  color:var(--page-bg) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-sample-report-page :is(
  .pa-sample-report-intro,
  .pa-report-overview-card,
  .pa-report-workflow-status
) :is(p,li,dd,small) {
  color:#526177 !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-sample-report-page :is(
  .pa-sample-report-intro,
  .pa-report-overview-card,
  .pa-report-workflow-status
) :is(.pa-eyebrow,.pa-kicker,.pa-blue-label,.pa-panel-title-row > span,.pa-report-preview-tools a) {
  color:var(--primary-teal) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-sample-report-page .pa-report-workflow-status .is-complete {
  color:var(--surface-hover) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-sample-report-page .pa-report-workflow-status .is-active {
  color:var(--page-bg) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-sample-report-page :is(
  .pa-report-overview-card,
  .pa-report-workflow-status
) a:not(.btn) {
  color:var(--primary-teal) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-sample-report-page .pa-report-preview-tools a:first-child {
  color:var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-sample-report-page .pa-sample-report-stamp > span {
  color:var(--primary-teal) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-sample-report-page .pa-sample-report-stamp > em {
  color:var(--surface-hover) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-sample-report-page .pa-static-preview-placeholder > strong {
  color:#eaf7f6 !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-sample-report-page .pa-static-preview-placeholder > span {
  color:#b8cecc !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-sample-report-page .pa-preview-fidelity > span {
  color:#526177 !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-sample-note {
  border-color:rgba(41, 67, 76,.22);
  background:var(--page-bg);
  color:#d6e7e5;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-sample-note strong {
  color:#eaf7f6 !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-sample-note p {
  color:#b8cecc !important;
}

/* Hidden-until-focused/help surfaces still need to be usable when opened. */
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-skip-link {
  border-color:rgba(41, 67, 76,.3);
  background:var(--page-bg);
  color:var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-helpbot-panel {
  border-color:rgba(41, 67, 76,.24);
  background:var(--page-bg);
  color:#d6e7e5;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-helpbot-note {
  border-color:rgba(41, 67, 76,.2);
  background:var(--section-bg);
  color:#c8dcda !important;
}

/* Public-page art direction uses deliberately specific light-paper selectors.
   Pair the foreground and canvas again in Dark instead of allowing the dark
   type tokens to land on the original pale marketing hero. */
html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-public-page:not(.pa-home-page) > .pa-page-hero:not(.pa-immersive-hero),
html[data-pa-theme="dark"] body.pa-family-document:not(.pa-protected-workspace) .pa-public-page > .pa-page-hero:not(.pa-immersive-hero) {
  border-color:rgba(41, 67, 76,.22);
  background:
    radial-gradient(circle at 78% 22%,rgba(41, 67, 76,.2),transparent 26rem),
    radial-gradient(circle at 15% 88%,rgba(32, 62, 77,.2),transparent 30rem),
    linear-gradient(rgba(41, 67, 76,.04) 1px,transparent 1px),
    linear-gradient(90deg,rgba(41, 67, 76,.04) 1px,transparent 1px),
    var(--page-bg);
  background-size:auto,auto,52px 52px,52px 52px,auto;
  color:#d6e7e5;
  box-shadow:none;
}

html[data-pa-theme="dark"] body:is(.pa-family-marketing,.pa-family-document):not(.pa-protected-workspace) .pa-page-hero:not(.pa-immersive-hero) :is(h1,h2,h3,h4,strong) {
  color:#f1fbfa !important;
}

html[data-pa-theme="dark"] body:is(.pa-family-marketing,.pa-family-document):not(.pa-protected-workspace) .pa-page-hero:not(.pa-immersive-hero) :is(p,li,small) {
  color:#b8cecc !important;
}

html[data-pa-theme="dark"] body:is(.pa-family-marketing,.pa-family-document):not(.pa-protected-workspace) .pa-page-hero:not(.pa-immersive-hero) .pa-hero-media-frame {
  border-color:rgba(41, 67, 76,.24);
  background:var(--page-bg);
  box-shadow:0 30px 72px rgba(0,0,0,.28);
}

/* About, security, privacy, and legal-scope pages have a second paper layer
   beneath the shared hero. Keep those pages dimensional without retaining a
   white card behind light Dark-theme copy. */
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-about-panel,
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-security-layout .pa-side-card,
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-legal-scope-map,
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-legal-icon-grid article,
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-doc-callout {
  border-color:rgba(41, 67, 76,.22);
  background:var(--page-bg);
  color:#d6e7e5;
  box-shadow:0 22px 58px rgba(0,0,0,.2);
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-doc-callout.is-warning {
  border-color:rgba(231,184,89,.4);
  background:#3a301d;
  color:#f6deb0;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(
  .pa-about-panel,
  .pa-security-layout .pa-side-card,
  .pa-legal-scope-map,
  .pa-legal-icon-grid article,
  .pa-doc-callout
) :is(h1,h2,h3,h4,strong,b,label) {
  color:#eaf7f6 !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(
  .pa-about-panel,
  .pa-security-layout .pa-side-card,
  .pa-legal-scope-map,
  .pa-legal-icon-grid article,
  .pa-doc-callout
) :is(p,li,span,small) {
  color:#b8cecc !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-doc-callout.is-warning :is(h1,h2,h3,h4,strong,b,label) {
  color:#ffe9bc !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-doc-callout.is-warning :is(p,li,span,small) {
  color:#f6deb0 !important;
}

/* Misprint Library: its opener, triage cards, and evidence boxes are nested
   light surfaces that are not reached by the generic public-card selector. */
html[data-pa-theme="dark"] body.pa-family-document:not(.pa-protected-workspace) .pa-misprint-page > .pa-light-section:first-child {
  border-color:rgba(41, 67, 76,.22);
  background:
    radial-gradient(circle at 80% 20%,rgba(41, 67, 76,.18),transparent 25rem),
    radial-gradient(circle at 16% 90%,rgba(32, 62, 77,.2),transparent 27rem),
    linear-gradient(rgba(41, 67, 76,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(41, 67, 76,.035) 1px,transparent 1px),
    var(--page-bg);
  background-size:auto,auto,52px 52px,52px 52px,auto;
  color:#d6e7e5;
}

html[data-pa-theme="dark"] body.pa-family-document:not(.pa-protected-workspace) .pa-misprint-page > .pa-light-section:first-child :is(h1,h2,h3,strong) {
  color:#eaf7f6 !important;
}

html[data-pa-theme="dark"] body.pa-family-document:not(.pa-protected-workspace) .pa-misprint-page > .pa-light-section:first-child p {
  color:#b8cecc !important;
}

html[data-pa-theme="dark"] body.pa-family-document:not(.pa-protected-workspace) .pa-misprint-page > .pa-light-section:first-child .pa-page-image-band,
html[data-pa-theme="dark"] body.pa-family-document:not(.pa-protected-workspace) .pa-misprint-page :is(
  .pa-misprint-triage-grid article,
  .pa-misprint-escalation-grid article,
  .pa-misprint-card.pa-library-card,
  .pa-misprint-detail-grid > div,
  .pa-misprint-test-box,
  .pa-misprint-toolpath
) {
  border-color:rgba(41, 67, 76,.22);
  background:var(--page-bg);
  color:#d6e7e5;
  box-shadow:0 16px 42px rgba(0,0,0,.18);
}

html[data-pa-theme="dark"] body.pa-family-document:not(.pa-protected-workspace) .pa-misprint-page .pa-misprint-label {
  border-color:rgba(41, 67, 76,.3);
  background:rgba(8, 22, 32,.92);
  color:var(--aqua-accent);
}

html[data-pa-theme="dark"] body.pa-family-document:not(.pa-protected-workspace) .pa-misprint-page .pa-misprint-warning {
  border-color:rgba(255,130,123,.38);
  background:#43272a;
  color:#ffd1cd;
}

html[data-pa-theme="dark"] body.pa-family-document:not(.pa-protected-workspace) .pa-misprint-page :is(
  .pa-misprint-triage-grid article,
  .pa-misprint-escalation-grid article,
  .pa-misprint-card.pa-library-card,
  .pa-misprint-detail-grid > div,
  .pa-misprint-test-box,
  .pa-misprint-toolpath
) :is(h1,h2,h3,h4,strong,b,label) {
  color:#eaf7f6 !important;
}

html[data-pa-theme="dark"] body.pa-family-document:not(.pa-protected-workspace) .pa-misprint-page :is(
  .pa-misprint-triage-grid article,
  .pa-misprint-escalation-grid article,
  .pa-misprint-card.pa-library-card,
  .pa-misprint-detail-grid > div,
  .pa-misprint-test-box,
  .pa-misprint-toolpath
) :is(p,li,small) {
  color:#b8cecc !important;
}

html[data-pa-theme="dark"] body.pa-family-document:not(.pa-protected-workspace) .pa-misprint-page .pa-misprint-warning :is(span,p,li) {
  color:#ffd1cd !important;
}

html[data-pa-theme="dark"] body.pa-family-document:not(.pa-protected-workspace) .pa-misprint-page :is(.pa-misprint-triage-grid,.pa-misprint-escalation-grid) a:not(.btn) {
  color:var(--aqua-accent) !important;
}

/* Material Guide owns a compact resource-tool palette. Rebind it to the site
   Dark palette and cover the nested tabs and learning cards explicitly. */
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-material-guide {
  --rt-blue:var(--aqua-accent);
  --rt-ink:#eaf7f6;
  --rt-soft:var(--section-bg);
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-material-guide .pa-tab-row button {
  border-color:rgba(41, 67, 76,.18);
  background:var(--section-bg);
  color:#c1d4d2;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-material-guide .pa-tab-row button:is(.active,[aria-pressed="true"],:hover,:focus-visible) {
  border-color:var(--bright-teal);
  background:var(--surface);
  color:var(--aqua-accent);
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-material-guide :is(
  .pa-material-copy,
  .pa-skill-track article,
  .pa-other-materials article
) {
  border-color:rgba(41, 67, 76,.22);
  background:linear-gradient(145deg,var(--section-bg),var(--section-bg));
  color:#d6e7e5;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-material-guide :is(
  .pa-material-copy,
  .pa-skill-track article,
  .pa-other-materials article
) :is(h1,h2,h3,h4,strong,b,label) {
  color:#eaf7f6 !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-material-guide :is(
  .pa-material-copy,
  .pa-skill-track article,
  .pa-other-materials article
) :is(p,li,small) {
  color:#b8cecc !important;
}

/* Community's photographic invitation stays intact. Only its light explainer
   half and ordinary cards switch to Dark surfaces. */
html[data-pa-theme="dark"] body.pa-family-community:not(.pa-protected-workspace) :is(.pa-community-hero,.pa-community-detail-hero) {
  border-color:rgba(41, 67, 76,.22);
  background:
    radial-gradient(circle at 78% 18%,rgba(41, 67, 76,.18),transparent 25rem),
    var(--page-bg);
  color:#d6e7e5;
}

html[data-pa-theme="dark"] body.pa-family-community:not(.pa-protected-workspace) .pa-community-visual .pa-community-stat-stack {
  color:#d6e7e5;
}

html[data-pa-theme="dark"] body.pa-family-community:not(.pa-protected-workspace) .pa-community-visual .pa-community-stat-stack::before {
  background:var(--page-bg);
}

html[data-pa-theme="dark"] body.pa-family-community:not(.pa-protected-workspace) .pa-community-visual :is(
  .pa-community-visual-info-card,
  .pa-community-positioning article,
  .pa-community-question-card,
  .pa-community-ask-form,
  .pa-community-prefill-note
) {
  border-color:rgba(41, 67, 76,.22) !important;
  background:var(--page-bg) !important;
  color:#d6e7e5 !important;
  box-shadow:0 14px 38px rgba(0,0,0,.18) !important;
}

html[data-pa-theme="dark"] body.pa-family-community:not(.pa-protected-workspace) :is(
  .pa-community-positioning article,
  .pa-community-question-card,
  .pa-community-ask-form,
  .pa-community-prefill-note
) {
  border-color:rgba(41, 67, 76,.22);
  background:var(--page-bg);
  color:#d6e7e5;
  box-shadow:0 14px 38px rgba(0,0,0,.18);
}

html[data-pa-theme="dark"] body.pa-family-community:not(.pa-protected-workspace) .pa-community-visual :is(
  .pa-community-visual-info-heading,
  .pa-community-visual-info-card
) :is(h1,h2,h3,h4,strong,b,label) {
  color:#eaf7f6 !important;
}

html[data-pa-theme="dark"] body.pa-family-community:not(.pa-protected-workspace) .pa-community-visual :is(
  .pa-community-visual-info-heading,
  .pa-community-visual-info-card
) :is(p,li,span) {
  color:#b8cecc !important;
}

html[data-pa-theme="dark"] body.pa-family-community:not(.pa-protected-workspace) :is(
  .pa-community-positioning article,
  .pa-community-question-card,
  .pa-community-ask-form,
  .pa-community-prefill-note
) :is(h1,h2,h3,h4,strong,b,label,a:not(.btn)) {
  color:#eaf7f6 !important;
}

html[data-pa-theme="dark"] body.pa-family-community:not(.pa-protected-workspace) :is(
  .pa-community-positioning article,
  .pa-community-question-card,
  .pa-community-ask-form,
  .pa-community-prefill-note
) :is(p,li,small) {
  color:#b8cecc !important;
}

html[data-pa-theme="dark"] body.pa-family-community:not(.pa-protected-workspace) :is(.pa-community-hero,.pa-community-detail-hero) .btn-outline-primary {
  border-color:var(--bright-teal);
  background:rgba(8, 22, 32,.72);
  color:var(--aqua-accent);
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace):has(.pa-home) :is(
  .pa-site-header.ecosystem-nav,
  .ecosystem-nav .pa-site-nav
) {
  background:rgba(8, 22, 32,.96);
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace):has(.pa-home) .pa-footer {
  background:
    radial-gradient(circle at 78% 0%,rgba(41, 67, 76,.12),transparent 28rem),
    var(--page-bg);
}

/* Score, tour, and print-handoff controls are small but high-frequency. */
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-theme-pill {
  border-color:rgba(41, 67, 76,.3);
  background:var(--section-bg);
  color:var(--aqua-accent);
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-theme-steps .pa-horizontal-steps article,
html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-get-it-printed-page .pa-horizontal-steps article {
  border-color:rgba(41, 67, 76,.22);
  background:var(--page-bg);
  color:#d6e7e5;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-theme-steps .pa-horizontal-steps article :is(h3,strong),
html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-get-it-printed-page .pa-horizontal-steps article :is(h3,strong) {
  color:#eaf7f6 !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-theme-steps .pa-horizontal-steps article p,
html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-get-it-printed-page .pa-horizontal-steps article p {
  color:#b8cecc !important;
}

html[data-pa-theme="dark"] .driver-popover.pa-driver-popover {
  border-color:rgba(41, 67, 76,.32);
  background:
    linear-gradient(rgba(63, 208, 213,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(63, 208, 213,.035) 1px,transparent 1px),
    var(--page-bg);
  background-size:28px 28px,28px 28px,auto;
  color:#d6e7e5;
  box-shadow:0 26px 70px rgba(0,0,0,.42);
}

html[data-pa-theme="dark"] .driver-popover.pa-driver-popover :is(.driver-popover-title,.pa-tour-heading) {
  color:#eaf7f6;
}

html[data-pa-theme="dark"] .driver-popover.pa-driver-popover :is(.driver-popover-description,.pa-tour-copy,.driver-popover-progress-text) {
  color:#b8cecc;
}

html[data-pa-theme="dark"] .driver-popover.pa-driver-popover .pa-tour-kicker {
  border-color:var(--bright-teal);
  background:var(--bright-teal);
  color:var(--page-bg);
}

html[data-pa-theme="dark"] .driver-popover.pa-driver-popover .driver-popover-footer-btn {
  border-color:rgba(41, 67, 76,.3);
  background:var(--section-bg);
  color:#d6e7e5;
}

html[data-pa-theme="dark"] .driver-popover.pa-driver-popover .driver-popover-footer-btn:is(:hover,:focus-visible) {
  border-color:var(--bright-teal);
  background:var(--surface);
  color:#f1fbfa;
}

html[data-pa-theme="dark"] .driver-popover.pa-driver-popover .driver-popover-next-btn,
html[data-pa-theme="dark"] .driver-popover.pa-driver-popover .driver-popover-next-btn:is(:hover,:focus-visible) {
  border-color:var(--bright-teal);
  background:var(--bright-teal);
  color:var(--page-bg) !important;
}

html[data-pa-theme="dark"] .driver-popover.pa-driver-popover .driver-popover-close-btn,
html[data-pa-theme="dark"] .driver-popover.pa-driver-popover .driver-popover-close-btn:is(:hover,:focus-visible) {
  color:#c1d4d2;
}

/* Footer supporting copy is deliberately quieter than headings, but it must
   remain comfortably readable instead of dropping below AA on deep teal. */
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-footer :is(p,li,a,.pa-footer-bottom,.pa-footer-bottom a),
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-footer-operator {
  color:#c1d4d2 !important;
}

/* Final rendered-cascade corrections for page-specific stylesheets that load
   their original Light surfaces after the shared theme layer. */
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-home-score-number {
  color:rgba(41, 67, 76,.28) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-home-button--primary {
  border-color:var(--primary-teal) !important;
  background:linear-gradient(135deg,var(--primary-teal),var(--primary-teal)) !important;
  color:#ffffff !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-home-button--primary:is(:hover,:focus-visible) {
  border-color:var(--bright-teal) !important;
  background:linear-gradient(135deg,var(--primary-teal),var(--primary-teal)) !important;
  color:#ffffff !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-home-score .pa-home-button--primary {
  border-color:#dff5f8 !important;
  background:#dff5f8 !important;
  color:var(--page-bg) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-home-score .pa-home-button--primary:is(:hover,:focus-visible) {
  border-color:#ffffff !important;
  background:#ffffff !important;
  color:var(--primary-teal) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-report-samples .pa-quote-contrast {
  border-color:rgba(41, 67, 76,.2);
  background:radial-gradient(circle at 16% 8%,rgba(32, 62, 77,.22),transparent 18rem),linear-gradient(145deg,var(--page-bg),var(--section-bg));
  color:#d6e7e5;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-report-samples .pa-quote-contrast :is(h2,h3,strong,b) {
  color:#eaf7f6 !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-report-samples .pa-quote-contrast :is(p,li,span,small) {
  color:#b8cecc !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-report-samples .pa-contrast-image-card {
  border-color:rgba(41, 67, 76,.2);
  background:rgba(8, 22, 32,.78);
  box-shadow:0 16px 38px rgba(0,0,0,.2);
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-report-samples .pa-contrast-score {
  background:var(--section-bg);
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-report-samples .pa-contrast-outcome.is-low {
  border-color:var(--bright-teal);
  background:rgba(63, 208, 213,.14);
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-report-samples .pa-contrast-outcome.is-high {
  border-color:#dc6a72;
  background:rgba(194,74,82,.14);
}

html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace) .pa-doctor-entry-main {
  border-color:rgba(41, 67, 76,.22);
  background:var(--page-bg);
  color:#d6e7e5;
}

html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace) .pa-doctor-entry-main :is(h1,h2,h3,strong,b,label,.pa-eyebrow) {
  color:#eaf7f6 !important;
}

html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace) .pa-doctor-entry-main :is(p,li,small) {
  color:#b8cecc !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-contact-hero {
  background:radial-gradient(circle at 78% 18%,rgba(41, 67, 76,.17),transparent 25rem),radial-gradient(circle at 18% 88%,rgba(32, 62, 77,.18),transparent 27rem),var(--page-bg);
  color:#d6e7e5;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-contact-hero-copy :is(h1,h2,h3,strong,b,span) {
  color:#eaf7f6 !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-contact-hero-copy :is(p,small) {
  color:#b8cecc !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-contact-file-field {
  border-color:rgba(41, 67, 76,.22);
  background:var(--page-bg);
  color:#d6e7e5;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-contact-file-field :is(label,strong) {
  color:#eaf7f6 !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-doc-layout .pa-side-card {
  border-color:rgba(41, 67, 76,.22);
  background:var(--page-bg);
  color:#d6e7e5;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-doc-layout .pa-side-card :is(h2,h3,strong,b) {
  color:#eaf7f6 !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-doc-layout .pa-side-card :is(p,li,small) {
  color:#b8cecc !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-misprint-hero .pa-eyebrow {
  color:var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-family-community:not(.pa-protected-workspace) .pa-community-visual-copy-panel {
  border-color:rgba(41, 67, 76,.24);
  background:linear-gradient(145deg,rgba(8, 22, 32,.96),rgba(15, 30, 39,.94));
  color:#d6e7e5;
}

html[data-pa-theme="dark"] body.pa-family-community:not(.pa-protected-workspace) .pa-community-visual-copy-panel :is(h1,h2,h3,strong,b) {
  color:#eaf7f6 !important;
}

html[data-pa-theme="dark"] body.pa-family-community:not(.pa-protected-workspace) .pa-community-visual-copy-panel :is(p,li,span,small) {
  color:#b8cecc !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-misprint-intro .pa-eyebrow {
  color:var(--aqua-accent) !important;
}


/* Image evidence accuracy notes: dark theme */
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(
  .pa-accuracy-note,
  .pa-misprint-evidence,
  .pa-report-evidence-note
) {
  border-color: rgba(41, 67, 76,.25);
  border-left-color: var(--bright-teal);
  background: var(--section-bg);
  color: #d6e7e5;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(
  .pa-accuracy-note,
  .pa-misprint-evidence,
  .pa-report-evidence-note
) :is(strong,span) {
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(
  .pa-accuracy-note,
  .pa-misprint-evidence,
  .pa-report-evidence-note
) p,
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-gallery-evidence-type {
  color: #b8cecc !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-gallery-evidence-type strong {
  color: #eaf7f6 !important;
}

/*
 * Unified dark-mode finish — 2026-08
 *
 * This stylesheet is intentionally loaded after every route stylesheet. These
 * rules are the final color/material contract for non-Studio pages; individual
 * route sheets continue to own layout only. Light mode is untouched.
 */
html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace) {
  --pa-canvas: var(--page-bg);
  --pa-canvas-raised: var(--section-bg);
  --pa-surface: var(--surface);
  --pa-surface-raised: var(--surface-elevated);
  --pa-surface-soft: var(--surface-hover);
  --pa-paper: var(--surface);
  --pa-paper-strong: var(--surface-elevated);
  --pa-copy: var(--text-body);
  --pa-copy-muted: var(--text-muted);
  --pa-copy-dark: var(--text-main);
  --pa-copy-dark-muted: var(--text-muted);
  --pa-accent: var(--primary-teal);
  --pa-accent-strong: var(--bright-teal);
  --pa-accent-soft: var(--surface-hover);
  --pa-line-master: var(--border);
  --pa-line-light: var(--border);
  --pa-shadow-master: 0 30px 76px rgba(0, 8, 16, 0.38);
  --pa-shadow-paper: 0 20px 52px rgba(0, 8, 16, 0.28);
  --pa-ink: var(--text-main);
  --pa-text: var(--text-body);
  --pa-muted: var(--text-muted);
  --pa-line: var(--border);
  --pa-line-dark: var(--border);
  --pa-panel: rgba(21, 41, 53, 0.96);
  --pa-soft: var(--surface-hover);
  --pa-blue: var(--primary-teal);
  --pa-blue-2: var(--bright-teal);
  --pa-blue-soft: var(--surface-hover);
  --pa-teal-deep: var(--primary-teal);
  --pa-teal: var(--primary-teal);
  --pa-teal-bright: var(--bright-teal);
  --pa-cyan-soft: var(--surface-hover);
  --pa-ice: var(--surface);
  --pa-ice-2: var(--surface-hover);
  --pa-navy: var(--text-main);
  --pa-navy-2: var(--text-body);
  --bs-body-bg: var(--page-bg);
  --bs-body-color: var(--text-body);
  --bs-emphasis-color: var(--text-main);
  --bs-secondary-color: var(--text-muted);
  --bs-secondary-bg: var(--surface-hover);
  --bs-tertiary-bg: var(--surface-elevated);
  --bs-border-color: var(--border);
  color: var(--pa-copy);
  background: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-main::before {
  content: none !important;
  display: none !important;
}

/* Global shell: text and dropdowns must never inherit a light-route ink. */
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.pa-site-header, .ecosystem-nav .pa-site-nav) {
  border-bottom-color: rgba(41, 67, 76, 0.16) !important;
  background: var(--page-bg) !important;
  color: var(--text-main) !important;
  box-shadow: 0 14px 38px rgba(0, 8, 16, 0.28) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .ecosystem-nav {
  --ecosystem-nav-ink: var(--text-main);
  --ecosystem-nav-muted: var(--text-muted);
  --ecosystem-nav-line: rgba(41, 67, 76, 0.18);
  --ecosystem-nav-surface: var(--surface);
  --ecosystem-nav-soft: var(--surface-hover);
  --ecosystem-nav-teal: var(--bright-teal);
  --ecosystem-nav-deep: var(--primary-teal);
  --ecosystem-nav-accent: var(--bright-teal);
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .ecosystem-nav :is(
  .nav-link,
  .pa-nav-link,
  .pa-nav-account,
  .pa-nav-theme-toggle,
  .ecosystem-nav__toggle,
  .ecosystem-nav__work,
  .ecosystem-nav__account-toggle,
  .ecosystem-nav__mobile-action,
  .ecosystem-nav__mobile-more-toggle,
  .ecosystem-nav__mobile-utility
) {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .ecosystem-nav :is(
  .nav-link,
  .pa-nav-link,
  .pa-nav-account,
  .pa-nav-theme-toggle,
  .ecosystem-nav__toggle,
  .ecosystem-nav__work,
  .ecosystem-nav__account-toggle,
  .ecosystem-nav__mobile-action,
  .ecosystem-nav__mobile-more-toggle,
  .ecosystem-nav__mobile-utility
):is(:hover, :focus-visible, .active, .is-active) {
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.dropdown-menu, .pa-nav-menu, .pa-nav-account-menu) {
  border-color: rgba(41, 67, 76, 0.2) !important;
  background: var(--surface) !important;
  color: var(--text-main) !important;
  box-shadow: 0 24px 58px rgba(0, 8, 16, 0.34) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.dropdown-item, .pa-nav-menu a, .pa-nav-account-menu a) {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.dropdown-item, .pa-nav-menu a, .pa-nav-account-menu a):is(:hover, :focus-visible, .active) {
  background: rgba(63, 208, 213, 0.11) !important;
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-footer {
  border-top-color: rgba(41, 67, 76, 0.16) !important;
  background: var(--section-bg) !important;
}

/* One material ladder for real surfaces across every non-Studio family. */
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(
  .card,
  .pa-white-panel,
  .pa-light-section,
  .pa-soft-section,
  .pa-action-panel,
  .pa-page-panel,
  .pa-info-card,
  .pa-gallery-card,
  .pa-market-card,
  .pa-audit-card,
  .pa-proof-card,
  .pa-dashboard-kpi,
  .pa-dashboard-panel,
  .pa-dashboard-support,
  .pa-project-card,
  .pa-projects-create,
  .pa-projects-list,
  .pa-upload-card,
  .pa-status-card,
  .pa-source-workspace,
  .pa-source-result-board,
  .pa-account-workspace,
  .pa-account-card,
  .pa-manage-shell,
  .pa-admin-reference-body,
  .pa-admin-panel,
  .pa-admin-table-shell,
  .pa-auth-frame,
  .pa-auth-form-panel,
  .pa-auth-trust,
  .pa-auth-panel,
  .pa-auth-card,
  .pa-auth-shell,
  .pa-message-shell,
  .pa-contact-file-field,
  .pa-doc-layout .pa-side-card
) {
  border-color: rgba(41, 67, 76, 0.19) !important;
  background-color: rgba(21, 41, 53, 0.96) !important;
  color: var(--text-body) !important;
  box-shadow: var(--pa-shadow-paper);
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(
  .pa-dashboard-head,
  .pa-projects-head,
  .pa-upload-head,
  .pa-status-head,
  .pa-account-page-head,
  .pa-admin-list-hero,
  .pa-admin-hero,
  .pa-admin-page-head,
  .pa-auth-story,
  .pa-page-hero:not(.pa-immersive-hero),
  .pa-theme-hero,
  .pa-discover-hero,
  .pa-connect-hub__hero,
  .pa-get-it-printed__hero
) {
  border-color: rgba(41, 67, 76, 0.2) !important;
  background:
    radial-gradient(circle at 84% 16%, rgba(32, 62, 77, 0.26), transparent 24rem),
    linear-gradient(rgba(63, 208, 213, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 208, 213, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, var(--surface-hover), var(--surface) 64%, var(--page-bg)) !important;
  background-size: auto, 50px 50px, 50px 50px, auto !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(
  .pa-dashboard-head,
  .pa-projects-head,
  .pa-upload-head,
  .pa-status-head,
  .pa-account-page-head,
  .pa-admin-list-hero,
  .pa-admin-hero,
  .pa-admin-page-head,
  .pa-auth-story,
  .pa-page-hero,
  .pa-theme-hero,
  .pa-discover-hero,
  .pa-connect-hub__hero,
  .pa-get-it-printed__hero
) :is(h1, h2, h3, h4, strong) {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(
  .pa-dashboard-head,
  .pa-projects-head,
  .pa-upload-head,
  .pa-status-head,
  .pa-account-page-head,
  .pa-admin-list-hero,
  .pa-admin-hero,
  .pa-admin-page-head,
  .pa-auth-story,
  .pa-page-hero,
  .pa-theme-hero,
  .pa-discover-hero,
  .pa-connect-hub__hero,
  .pa-get-it-printed__hero
) :is(p, li, small, span:not(.badge)) {
  color: var(--text-body) !important;
}

/* Forms and data surfaces use high-contrast dark controls in every family. */
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(
  .form-control,
  .form-select,
  textarea,
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  input[type="url"],
  input[type="number"]
) {
  border-color: rgba(41, 67, 76, 0.32) !important;
  background-color: var(--page-bg) !important;
  color: var(--text-main) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.form-control, .form-select, textarea, input)::placeholder {
  color: var(--text-muted) !important;
  opacity: 1;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.form-control, .form-select, textarea, input):focus {
  border-color: var(--bright-teal) !important;
  background-color: var(--surface) !important;
  color: var(--text-main) !important;
  box-shadow: 0 0 0 0.24rem rgba(63, 208, 213, 0.15) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.table, table) {
  --bs-table-color: var(--text-body);
  --bs-table-bg: transparent;
  --bs-table-border-color: rgba(41, 67, 76, 0.16);
  --bs-table-striped-color: var(--text-body);
  --bs-table-striped-bg: rgba(63, 208, 213, 0.035);
  --bs-table-hover-color: var(--text-main);
  --bs-table-hover-bg: rgba(63, 208, 213, 0.075);
  color: var(--text-body) !important;
}

/* The homepage now participates fully in dark mode. */
html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home {
  --home-evergreen: var(--page-bg);
  --home-green: var(--primary-teal);
  --home-green-accent: var(--bright-teal);
  --home-ink: var(--text-main);
  --home-ink-soft: var(--text-body);
  --home-ice: var(--section-bg);
  --home-ice-secondary: var(--surface);
  --home-paper: var(--page-bg);
  --home-white: var(--surface);
  --home-muted: var(--text-muted);
  --home-cyan-soft: var(--surface-hover);
  --home-aqua-soft: var(--surface-elevated);
  --home-cyan: var(--aqua-accent);
  --home-cyan-bright: var(--bright-teal);
  --home-teal: var(--bright-teal);
  --home-line: var(--border);
  background: var(--page-bg) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-hero {
  background: linear-gradient(135deg, var(--section-bg), var(--page-bg) 68%) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-hero::before {
  background: var(--section-bg) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-hero :is(h1, h2, h3, strong),
html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home :is(.pa-home-section-intro, .pa-home-story-copy, .pa-home-proof-heading, .pa-home-final-copy) :is(h1, h2, h3, strong) {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-hero :is(.pa-home-hero-lede, .pa-home-proofline),
html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home :is(.pa-home-section-intro, .pa-home-story-copy, .pa-home-proof-heading, .pa-home-final-copy) p {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-hero .pa-home-hero-grid {
  background:
    linear-gradient(rgba(63, 208, 213, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 208, 213, 0.045) 1px, transparent 1px) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home :is(.pa-home-hero-orbit, .pa-home-proofline, .pa-home-route-line, .pa-home-branch-note, .pa-home-evidence) {
  border-color: rgba(41, 67, 76, 0.18) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home .pa-home-branch-note {
  border-color: var(--border) !important;
  background: var(--surface) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home .pa-home-branch-note p + p {
  border-color: var(--border) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-ecosystem {
  border-color: rgba(41, 67, 76, 0.18) !important;
  background: rgba(21, 41, 53, 0.97) !important;
  color: var(--text-body) !important;
  box-shadow: 0 -18px 48px rgba(0, 8, 16, 0.2) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-ecosystem a {
  border-color: rgba(41, 67, 76, 0.13) !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) :is(.pa-home-workflow, .pa-home-proof) {
  background: var(--section-bg) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) :is(.pa-home-story, .pa-home-final) {
  background: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-route-line {
  background: rgba(41, 67, 76, 0.2) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home :is(.pa-home-route a, .pa-home-story-step, .pa-home-score, .pa-home-evidence article, .pa-home-result) {
  border-color: rgba(41, 67, 76, 0.19) !important;
  background-color: rgba(21, 41, 53, 0.96) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-result dl div {
  border-color: rgba(41, 67, 76, 0.16) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-result dt {
  color: var(--text-muted) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home :is(.pa-home-button--primary, .pa-home-score .pa-home-button--primary) {
  border-color: var(--bright-teal) !important;
  background: linear-gradient(180deg, var(--bright-teal), var(--primary-teal)) !important;
  color: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home :is(.pa-home-button--primary, .pa-home-score .pa-home-button--primary):is(:hover, :focus-visible) {
  border-color: var(--aqua-accent) !important;
  background: linear-gradient(180deg, var(--aqua-accent), var(--bright-teal)) !important;
  color: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home .pa-home-button--quiet {
  border-color: rgba(41, 67, 76, 0.38) !important;
  background: rgba(63, 208, 213, 0.07) !important;
  color: var(--aqua-accent) !important;
}

/* Previously forced light report and diagnostic cards now follow the same dark ladder. */
html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace) :is(
  .pa-shared-report-page .pa-shared-score-card,
  .pa-shared-report-page .pa-shared-details-card,
  .pa-shared-report-page .pa-shared-report-board,
  .pa-shared-report-page .pa-shared-report-grid > article,
  .pa-shared-report-page .pa-shared-lower-grid > article,
  .pa-shared-report-page .pa-shared-tabs,
  .pa-report-card-page,
  .pa-report-card-page .pa-report-card-summary,
  .pa-report-card-page .pa-report-card-model,
  .pa-report-card-page .pa-report-card-findings > article,
  .pa-report-card-page .pa-report-card-cta,
  .pa-public-page.pa-doctor-page > .pa-answer-source-legend,
  .pa-public-page.pa-doctor-page > .pa-doctor-input-checks,
  .pa-public-page.pa-doctor-page > .pa-doctor-case-read,
  .pa-public-page.pa-doctor-page > .pa-doctor-paywall-panel,
  .pa-public-page.pa-doctor-page > .pa-score-handoff,
  .pa-public-page.pa-doctor-page .pa-doctor-model-preview,
  .pa-public-page.pa-doctor-page .pa-doctor-generation-summary > ul > li,
  .pa-public-page.pa-doctor-page .pa-doctor-score-grid > article,
  .pa-public-page.pa-doctor-page .pa-doctor-locked-sample > article,
  .pa-public-page.pa-doctor-page .pa-doctor-finding,
  .pa-public-page.pa-doctor-page .pa-doctor-input-check-list > article,
  .pa-public-page.pa-doctor-page .pa-doctor-case-read-list > article
) {
  --pa-ink: var(--text-main);
  --pa-text: var(--text-body);
  --pa-muted: var(--text-muted);
  --pa-blue: var(--bright-teal);
  --pa-blue-2: var(--primary-teal);
  --pa-line: rgba(41, 67, 76, 0.2);
  --pa-line-dark: rgba(41, 67, 76, 0.24);
  border-color: rgba(41, 67, 76, 0.2) !important;
  background: var(--surface) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace) :is(.pa-shared-report-page, .pa-report-card-page, .pa-public-page.pa-doctor-page) :is(h1, h2, h3, h4, strong, b, legend, dd) {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace) :is(.pa-shared-report-page, .pa-report-card-page, .pa-public-page.pa-doctor-page) :is(p, li, span, small, em, dt) {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace) :is(.pa-shared-tabs a, .pa-panel-title-row > span, .pa-report-preview-tools a, .pa-answer-source-code, .pa-answer-source-ai) {
  border-color: rgba(41, 67, 76, 0.24) !important;
  background: var(--surface-hover) !important;
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace) :is(
  .pa-report-card-page .pa-report-card-cta,
  .pa-public-page.pa-doctor-page .pa-score-handoff-actions
) > .btn-primary {
  border-color: var(--bright-teal) !important;
  background: linear-gradient(180deg, var(--bright-teal), var(--primary-teal)) !important;
  color: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace) :is(
  .pa-report-card-page .pa-report-card-cta,
  .pa-public-page.pa-doctor-page .pa-score-handoff-actions
) > .btn-primary:is(:hover, :focus-visible) {
  border-color: var(--aqua-accent) !important;
  background: linear-gradient(180deg, var(--aqua-accent), var(--bright-teal)) !important;
  color: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace) :is(
  .pa-report-card-page .pa-report-card-cta,
  .pa-public-page.pa-doctor-page .pa-score-handoff-actions
) > .btn-outline-primary {
  border-color: var(--bright-teal) !important;
  background: var(--section-bg) !important;
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace) :is(
  .pa-report-card-page .pa-report-card-cta,
  .pa-public-page.pa-doctor-page .pa-score-handoff-actions
) > .btn-outline-primary:is(:hover, :focus-visible) {
  border-color: var(--aqua-accent) !important;
  background: var(--surface-hover) !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace) :is(
  .pa-report-card-metrics article > i,
  .pa-public-page.pa-doctor-page .pa-doctor-locked-sample > article > span
) {
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page .pa-doctor-finding:not(.is-success, .is-warning, .is-danger) {
  border-left-color: var(--bright-teal) !important;
}

html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page .pa-doctor-finding.is-success {
  border-left-color: var(--primary-teal) !important;
}

/*
 * Theme artwork was art-directed on a pale studio sweep. A reversible filter
 * creates a real dark exposure while keeping line art and teal hues readable;
 * no separate or fake content image is introduced.
 */
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) img[src*="/img/theme/print-lab-light/"],
html[data-pa-theme="dark"] body.pa-family-auth:not(.pa-protected-workspace) img[src*="/img/auth/"],
html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-story-media img,
html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-evidence-media img,
html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-final-media img {
  filter: saturate(0.82) brightness(0.72) contrast(1.08) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(
  .pa-hero-media-frame,
  .pa-contact-image-stage,
  .pa-gallery-media,
  .pa-score-hero__visual,
  .pa-report-hero__media,
  .pa-misprint-hero__media,
  .pa-menu-hero__media,
  .pa-security-brief__media,
  .pa-misprint-visual,
  .pa-faq-manual__plate,
  .pa-help-router__visual,
  .pa-guides-manual__plate,
  .pa-theme-story-band,
  .pa-page-image-band,
  .pa-auth-story-media,
  .pa-home-story-media,
  .pa-home-evidence-media,
  .pa-home-final-media
) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(41, 67, 76, 0.2) !important;
  background: var(--page-bg) !important;
  box-shadow: var(--pa-shadow-master);
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(
  .pa-hero-media-frame,
  .pa-contact-image-stage,
  .pa-gallery-media,
  .pa-score-hero__visual,
  .pa-report-hero__media,
  .pa-misprint-hero__media,
  .pa-theme-story-band,
  .pa-page-image-band,
  .pa-auth-story-media,
  .pa-home-story-media,
  .pa-home-evidence-media,
  .pa-home-final-media
)::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 22, 32, 0.04), rgba(8, 22, 32, 0.3)),
    linear-gradient(115deg, rgba(32, 62, 77, 0.16), transparent 44%);
}

/*
 * public-compositions.css previously kept the homepage's paper chapters light
 * even when the shell was dark. Match those selectors exactly so their legacy
 * !important ink cannot leak through the unified dark treatment.
 */
html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace)
  .pa-home :is(
    .pa-home-hero-copy,
    .pa-home-ecosystem,
    .pa-home-workflow,
    .pa-home-route,
    .pa-home-branch-note,
    .pa-home-story-copy,
    .pa-home-story-step,
    .pa-home-capability-rail,
    .pa-home-proof-heading,
    .pa-home-upload,
    .pa-home-score-trust,
    .pa-home-result,
    .pa-home-evidence
  ) :is(h1, h2, h3, h4, strong, b, label, dt, dd) {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace)
  .pa-home :is(
    .pa-home-hero-copy,
    .pa-home-ecosystem,
    .pa-home-workflow,
    .pa-home-route,
    .pa-home-branch-note,
    .pa-home-story-copy,
    .pa-home-story-step,
    .pa-home-capability-rail,
    .pa-home-proof-heading,
    .pa-home-upload,
    .pa-home-score-trust,
    .pa-home-result,
    .pa-home-evidence
  ) :is(p, li, small) {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace)
  .pa-home :is(
    .pa-home-route,
    .pa-home-branch-note,
    .pa-home-story-copy,
    .pa-home-proof-heading,
    .pa-home-upload,
    .pa-home-score-trust,
    .pa-home-result,
    .pa-home-evidence
  ) a:not(.pa-home-button),
html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace)
  .pa-home .pa-home-ecosystem a > span,
html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace)
  .pa-home .pa-home-kicker,
html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace)
  .pa-home .pa-home-kicker > span,
html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace)
  .pa-home .pa-home-scroll-cue i {
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace)
  .pa-home .pa-home-ecosystem a,
html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace)
  .pa-home .pa-home-dropzone :is(strong, b, label),
html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace)
  .pa-home-printer :is(.pa-home-printer__intro, .pa-home-printer__beats) :is(h2, h3, strong, b) {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace)
  .pa-home .pa-home-scroll-cue,
html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace)
  .pa-home .pa-home-dropzone :is(span, em),
html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace)
  .pa-home-printer :is(.pa-home-printer__intro, .pa-home-printer__beats) p,
html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace)
  .pa-home-printer .pa-home-printer__topbar strong {
  color: var(--text-body) !important;
}

/* Legacy route sheets contain deliberate light "paper islands." In a true
 * dark theme those islands become raised graphite work surfaces instead. */
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  .pa-main.pa-main :is(
    .pa-connect-route-index,
    .pa-connect-router,
    .pa-connect-route-card,
    .pa-connect-prep,
    .pa-connect-community,
    .pa-connect-resolution,
    .pa-connect-hub__signal,
    .pa-connect-prep__ledger,
    .pa-connect-prep__ledger > li,
    .pa-home-route,
    .pa-home-upload,
    .pa-home-dropzone,
    .pa-quote-problem,
    .pa-quote-handoff,
    .pa-quote-scope-register,
    .pa-quote-scope-register__column,
    .pa-report-actions-bar,
    .pa-report-main-board,
    .pa-report-overview-card,
    .pa-report-workflow-status,
    .pa-report-score-rail,
    .pa-report-tabs,
    .pa-theme-proof-panel,
    .pa-theme-review-strip,
    .pa-theme-review-strip article,
    .pa-theme-feature-grid > article,
    .pa-benefit-grid > article,
    .pa-check-grid > article,
    .pa-compare-card,
    .pa-plan-card,
    .pa-faq-card,
    .pa-pricing-choice-strip > article,
    .pa-pricing-steps > article,
    .pa-pricing-score-note,
    .pa-commerce-operator-note,
    .pa-score-findings,
    .pa-price-preview,
    .pa-discover-jump,
    .pa-security-lifecycle > header,
    .pa-security-lifecycle > ol li,
    .pa-security-lifecycle > aside,
    .pa-source-desk__header,
    .pa-source-support-card,
    .pa-source-form-note,
    .pa-maker-tool-intake,
    .pa-maker-tool-boundary,
    .pa-maker-tool-switcher,
    .pa-result-preview,
    .pa-shop-intake-route,
    .pa-shop-boundary,
    .pa-guides-manual__chapter-strip,
    .pa-guides-manual__closing,
    .pa-guides-chapter__checklist,
    .pa-help-router__boundary,
    .pa-help-router__human,
    .pa-faq-manual__handoff,
    .pa-contact-support-panel,
    .pa-doctor-decision-story,
    .pa-doctor-guide-panel,
    .pa-doctor-plan-strip,
    .pa-doctor-workflow-desk,
    .pa-doctor-hero-promises > span,
    .pa-doctor-history-panel,
    .pa-doctor-history-table td,
    .pa-material-copy,
    .pa-material-guide .pa-page-hero .pa-action-panel,
    .pa-material-facts div,
    .pa-material-guide .pa-skill-track article,
    .pa-material-guide .pa-caution,
    .pa-contrast-image-card,
    .pa-accuracy-note,
    .pa-public-page .pa-audience-grid .pa-soft-section,
    .pa-public-page .pa-audience-grid .pa-action-panel,
    .pa-status-shell .pa-upload-preview-panel,
    .pa-status-shell .pa-upload-preview-frame,
    .pa-status-shell .pa-meta-item,
    .pa-status-shell .pa-stage-pill,
    .pa-status-shell .pa-upload-audit-trail li,
    .pa-horizontal-steps > article,
    .pa-community-browse-controls,
    .pa-upload-dropzone,
    .pa-release-nav > a,
    .pa-community-visual-info-card
  ) {
  --pa-ink: var(--text-main);
  --pa-text: var(--text-body);
  --pa-muted: var(--text-muted);
  --pa-blue: var(--bright-teal);
  --pa-blue-2: var(--primary-teal);
  --pa-line: rgba(41, 67, 76, 0.2);
  border-color: rgba(41, 67, 76, 0.2) !important;
  background: linear-gradient(145deg, var(--surface-hover), var(--surface)) !important;
  color: var(--text-body) !important;
  box-shadow: var(--pa-shadow-paper) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  .pa-main.pa-main :is(
    .pa-connect-route-index,
    .pa-connect-router,
    .pa-connect-route-card,
    .pa-connect-prep,
    .pa-connect-community,
    .pa-connect-resolution,
    .pa-quote-problem,
    .pa-quote-handoff,
    .pa-quote-scope-register,
    .pa-report-actions-bar,
    .pa-report-main-board,
    .pa-report-overview-card,
    .pa-report-workflow-status,
    .pa-report-score-rail,
    .pa-report-tabs,
    .pa-security-lifecycle,
    .pa-source-desk__header,
    .pa-source-support-card,
    .pa-shop-intake-route,
    .pa-guides-manual__closing,
    .pa-guides-chapter__checklist,
    .pa-help-router__boundary,
    .pa-help-router__human,
    .pa-doctor-decision-story,
    .pa-doctor-guide-panel,
    .pa-doctor-plan-strip,
    .pa-doctor-workflow-desk,
    .pa-doctor-history-panel,
    .pa-doctor-history-table,
    .pa-material-copy,
    .pa-material-guide .pa-page-hero .pa-action-panel,
    .pa-material-facts,
    .pa-material-guide .pa-skill-track,
    .pa-material-guide .pa-caution,
    .pa-public-page .pa-audience-grid,
    .pa-status-shell,
    .pa-horizontal-steps,
    .pa-community-visual-info-card
  ) :is(h1, h2, h3, h4, strong, b, label, dt, dd) {
  color: var(--text-main) !important;
  text-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  .pa-main.pa-main :is(
    .pa-connect-route-index,
    .pa-connect-router,
    .pa-connect-route-card,
    .pa-connect-prep,
    .pa-connect-community,
    .pa-connect-resolution,
    .pa-quote-problem,
    .pa-quote-handoff,
    .pa-quote-scope-register,
    .pa-report-actions-bar,
    .pa-report-main-board,
    .pa-report-overview-card,
    .pa-report-workflow-status,
    .pa-report-score-rail,
    .pa-report-tabs,
    .pa-security-lifecycle,
    .pa-source-desk__header,
    .pa-source-support-card,
    .pa-shop-intake-route,
    .pa-guides-manual__closing,
    .pa-guides-chapter__checklist,
    .pa-help-router__boundary,
    .pa-help-router__human,
    .pa-doctor-decision-story,
    .pa-doctor-guide-panel,
    .pa-doctor-plan-strip,
    .pa-doctor-workflow-desk,
    .pa-doctor-history-panel,
    .pa-doctor-history-table,
    .pa-material-copy,
    .pa-material-guide .pa-page-hero .pa-action-panel,
    .pa-material-facts,
    .pa-material-guide .pa-skill-track,
    .pa-material-guide .pa-caution,
    .pa-public-page .pa-audience-grid,
    .pa-status-shell,
    .pa-horizontal-steps,
    .pa-community-visual-info-card
  ) :is(p, li, small, em, .text-secondary) {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  .pa-main.pa-main :is(
    .pa-eyebrow,
    .pa-kicker,
    .pa-blue-label,
    .pa-connect-hub__eyebrow,
    .pa-connect-route-card__kicker,
    .pa-quote-scope-register__label,
    .pa-stage-index,
    .pa-discover-jump b,
    .pa-guides-manual__chapter-strip b,
    .pa-security-lifecycle > ol li > span,
    .pa-source-desk__steps span,
    .pa-community-visual-info-card small
  ) {
  color: var(--aqua-accent) !important;
}

/* Final readable-ink guard for route-specific components that are not part of
 * the shared card vocabulary (dialogs, custom fields, and editorial tables). */
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  .pa-main.pa-main :is(h1, h2, h3, h4, h5, h6, legend, label, dt, dd) {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  .pa-main.pa-main :is(p, li, small, .form-text, .text-secondary) {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  .pa-main.pa-main :is(.btn-outline-primary, .btn-outline-secondary, .btn-dark-outline, .pa-btn--ghost) {
  border-color: rgba(41, 67, 76, 0.42) !important;
  background: var(--surface-hover) !important;
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  .pa-main.pa-main :is(.btn-outline-primary, .btn-outline-secondary, .btn-dark-outline, .pa-btn--ghost):is(:hover, :focus-visible) {
  border-color: var(--aqua-accent) !important;
  background: var(--bright-teal) !important;
  color: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  .pa-main.pa-main :is(
    .pa-connect-decision-page,
    .pa-get-it-printed-page.pa-quote-dossier-page,
    .pa-sample-report-page,
    .pa-doctor-page,
    .pa-doctor-history-page,
    .pa-material-guide
  ) {
  color: var(--text-body) !important;
  background: transparent !important;
}

/* Identity pages previously opted out of dark mode completely. Keep their
 * editorial split, but use the same dark material and form contract as the app. */
html[data-pa-theme="dark"] body.pa-body.pa-family-auth:not(.pa-protected-workspace) {
  --pa-auth-ink: var(--text-main);
  --pa-auth-copy: var(--text-body);
  --pa-auth-muted: var(--text-muted);
  --pa-auth-teal: var(--bright-teal);
  --pa-auth-line: rgba(41, 67, 76, 0.2);
  --pa-auth-ice: var(--surface-hover);
  color-scheme: dark !important;
  color: var(--text-body) !important;
  background:
    radial-gradient(circle at 88% 5rem, rgba(32, 62, 77, 0.24), transparent 28rem),
    linear-gradient(180deg, var(--page-bg), var(--section-bg) 42rem, var(--page-bg)) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  :is(.pa-auth-frame, .pa-auth-frame--editorial) {
  border-color: rgba(41, 67, 76, 0.2) !important;
  background: var(--surface) !important;
  color: var(--text-body) !important;
  box-shadow: 0 32px 76px rgba(0, 8, 16, 0.4) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  :is(
    .pa-auth-shell > .row,
    .pa-auth-shell .pa-auth-card,
    .pa-auth-shell .pa-auth-form,
    .pa-auth-shell.pa-auth-continuation > .row,
    .pa-message-shell.pa-auth-message
  ) {
  border-color: rgba(41, 67, 76, 0.2) !important;
  background: var(--surface) !important;
  color: var(--text-body) !important;
  box-shadow: 0 30px 68px rgba(0, 8, 16, 0.34) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  .pa-auth-shell :is(.pa-auth-panel, .pa-auth-form-panel) {
  border-color: rgba(41, 67, 76, 0.2) !important;
  background:
    radial-gradient(circle at 90% 8%, rgba(32, 62, 77, 0.22), transparent 18rem),
    linear-gradient(145deg, var(--surface-hover), var(--surface)) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  .pa-auth-frame--editorial :is(.pa-auth-story, .pa-auth-form-panel, .pa-auth-trust) {
  border-color: rgba(41, 67, 76, 0.2) !important;
  background:
    radial-gradient(circle at 92% 4%, rgba(32, 62, 77, 0.22), transparent 18rem),
    linear-gradient(145deg, var(--surface-hover), var(--surface)) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  .pa-auth-frame :is(h1, h2, h3, h4, strong, b, legend, label) {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  .pa-auth-frame :is(p, li, small, .text-secondary),
html[data-pa-theme="dark"] body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  .pa-auth-shell.pa-auth-continuation--external .form-floating > label,
html[data-pa-theme="dark"] body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  .pa-auth-shell.pa-auth-continuation--external .form-floating > .form-control:focus ~ label,
html[data-pa-theme="dark"] body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  .pa-auth-shell.pa-auth-continuation--external .form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  :is(.pa-auth-frame--editorial, .pa-auth-shell)
  :is(.form-control, .form-select, textarea, input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="url"], input[type="number"]) {
  border-color: rgba(41, 67, 76, 0.32) !important;
  background: var(--page-bg) !important;
  color: var(--text-main) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  :is(.pa-auth-frame--editorial, .pa-auth-shell)
  :is(.form-control, .form-select, textarea, input):focus {
  border-color: var(--bright-teal) !important;
  background: var(--surface) !important;
  color: var(--text-main) !important;
  box-shadow: 0 0 0 0.22rem rgba(63, 208, 213, 0.15) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  .pa-auth-frame--editorial input:-webkit-autofill,
html[data-pa-theme="dark"] body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  .pa-auth-frame--editorial input:-webkit-autofill:hover,
html[data-pa-theme="dark"] body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  .pa-auth-frame--editorial input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-main) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--page-bg) inset !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  :is(.pa-auth-frame--editorial, .pa-message-shell.pa-auth-message) .btn-outline-primary {
  border-color: rgba(41, 67, 76, 0.42) !important;
  background: var(--surface-hover) !important;
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  .pa-auth-shell.pa-auth-continuation--external .form-floating > .form-control:focus ~ label::after,
html[data-pa-theme="dark"] body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  .pa-auth-shell.pa-auth-continuation--external .form-floating > .form-control:not(:placeholder-shown) ~ label::after {
  background-color: var(--page-bg) !important;
}

/* Error and recovery pages are part of the theme, not light cards framed by it. */
html[data-pa-theme="dark"] body.pa-body.pa-family-message:not(.pa-protected-workspace)
  .pa-message-shell.pa-message-shell--abduction {
  border-color: rgba(41, 67, 76, 0.2) !important;
  border-top-color: var(--bright-teal) !important;
  background: linear-gradient(145deg, var(--surface-hover), var(--surface)) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-message:not(.pa-protected-workspace)
  .pa-message-shell--abduction :is(h1, h2, h3, strong) {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-message:not(.pa-protected-workspace)
  .pa-message-shell--abduction :is(.pa-copy, .pa-error-trace) {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-message:not(.pa-protected-workspace)
  .pa-message-shell--abduction .btn-outline-primary {
  border-color: rgba(41, 67, 76, 0.42) !important;
  background: var(--surface-hover) !important;
  color: var(--aqua-accent) !important;
}

/* Final route sweep: several editorial compositions intentionally use pale
 * "paper" in light mode. Convert those large canvases as a family so dark
 * mode never leaves pale islands behind or places pale text on white. */
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  .pa-main.pa-main {
  background: transparent !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  .pa-main.pa-main .pa-public-page {
  background: transparent !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  .pa-main.pa-main :is(
    .pa-home-story-copy,
    .pa-home-capability-rail,
    .pa-home-score-trust,
    .pa-home-printer,
    .pa-home-printer__topbar,
    .pa-doctor-start,
    .pa-doctor-hero-grid,
    .pa-doctor-guidance-rail,
    .pa-community-knowledge-workspace,
    .pa-community-knowledge-workspace .pa-empty-state,
    .pa-community-rail__ask,
    .pa-community-category-nav,
    .pa-community-signin-note,
    .pa-connect-router__grid,
    .pa-quote-scope-register__columns,
    .pa-horizontal-steps,
    .pa-audience-grid,
    .pa-image-panel.is-wide-graphic,
    .pa-preview-fidelity.is-info,
    .pa-toc-card,
    .pa-side-card,
    .pa-doc-content,
    .pa-contact-routing-panel,
    .pa-faq-manual__search,
    .pa-shop-workflow
  ) {
  border-color: rgba(41, 67, 76, 0.2) !important;
  background: linear-gradient(145deg, var(--surface-hover), var(--surface)) !important;
  color: var(--text-body) !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  .pa-main.pa-main :is(
    .pa-home-printer__topbar,
    .pa-doctor-guidance-rail,
    .pa-community-category-nav,
    .pa-connect-router__grid,
    .pa-quote-scope-register__columns
  ) {
  background: var(--surface-hover) !important;
}

/* The troubleshooting composition has ID-level light-theme ink rules later
 * in its page stylesheet. Match that specificity explicitly. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-main.pa-main .pa-doctor-decision-story #printAnalysisTitle + p,
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-main.pa-main .pa-doctor-page .pa-doctor-hero-promises > span {
  color: var(--text-body) !important;
}

/* Navigation and numbered workflow accents need the brighter dark-mode teal,
 * not the light palette's mid-teal. */
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  .pa-main.pa-main :is(
    .pa-toc-card,
    .pa-side-card,
    .pa-doc-content,
    .pa-maker-tools-list
  ) a:not(.btn),
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  .pa-main.pa-main :is(
    .pa-maker-tools-list__number,
    .pa-maker-tools-list__name > span,
    .pa-maker-tools-list__name h3 i
  ) {
  color: var(--aqua-accent) !important;
}

/* Auth compositions define their light copy with high-specificity selectors.
 * Keep checkbox labels and the trust strip readable in dark mode too. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  .pa-auth-frame.pa-auth-frame .pa-auth-options label span,
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  .pa-auth-frame.pa-auth-frame .pa-auth-trust span,
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  .pa-auth-frame.pa-auth-frame .form-check-label,
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  .pa-auth-frame.pa-auth-frame .pa-auth-switch > span {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  .pa-auth-frame.pa-auth-frame .pa-auth-trust-links a {
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  :is(.pa-site-header.ecosystem-nav, .ecosystem-nav .pa-site-nav) {
  border-bottom-color: rgba(41, 67, 76, 0.16) !important;
  background: rgba(8, 22, 32, 0.96) !important;
  color: var(--text-main) !important;
  box-shadow: 0 14px 38px rgba(0, 8, 16, 0.28) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  .ecosystem-nav .pa-brand-logo {
  filter: brightness(0) invert(1) drop-shadow(0 8px 18px rgba(63, 208, 213, 0.14)) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  .ecosystem-nav :is(.navbar-toggler, .ecosystem-nav__mobile-toggle) {
  border-color: rgba(41, 67, 76, 0.32) !important;
  color: var(--text-body) !important;
}

/* Auth artwork is a deliberately bright studio photograph. Preserve the real
 * image colors and grade it down behind a dark editorial veil; inversion made
 * the photo look bleached and destroyed the mobile headline contrast. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  .pa-auth-story__media::after {
  background:
    linear-gradient(180deg, rgba(8, 22, 32, 0.24) 0%, rgba(8, 22, 32, 0.56) 42%, rgba(8, 22, 32, 0.92) 92%),
    linear-gradient(90deg, rgba(8, 22, 32, 0.82), rgba(8, 22, 32, 0.16) 78%) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  .pa-auth-story__media img {
  filter: saturate(0.76) contrast(1.12) brightness(0.58) !important;
}

/* Identity actions and trust marks inherit high-specificity Light defaults.
   Keep their dark-mode color roles inside the canonical teal accent family. */
html[data-pa-theme="dark"] body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  .pa-auth-frame :is(a:not(.btn), .pa-auth-trust-links a) {
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  .pa-auth-frame :is(.pa-auth-story__proof, .pa-auth-trust) > i {
  border-color: var(--border) !important;
  background: rgba(40, 184, 196, .16) !important;
  color: var(--bright-teal) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  .pa-auth-frame :is(.btn-primary, #login-submit, #registerSubmit) {
  --bs-btn-color: var(--page-bg);
  --bs-btn-bg: var(--primary-teal);
  --bs-btn-border-color: var(--primary-teal);
  --bs-btn-hover-color: var(--page-bg);
  --bs-btn-hover-bg: var(--bright-teal);
  --bs-btn-hover-border-color: var(--aqua-accent);
  border-color: var(--primary-teal) !important;
  background: linear-gradient(180deg, var(--bright-teal), var(--primary-teal)) !important;
  color: var(--page-bg) !important;
  box-shadow: 0 .8rem 2rem rgba(8, 22, 32, .36) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  .pa-auth-frame :is(.btn-primary, #login-submit, #registerSubmit):is(:hover, :focus-visible, :active) {
  border-color: var(--aqua-accent) !important;
  background: linear-gradient(180deg, var(--aqua-accent), var(--bright-teal)) !important;
  color: var(--page-bg) !important;
}

/* The public Studio guide shares the protected-workspace family marker but
   still renders the public site header. Keep that header on the dark canvas. */
html[data-pa-theme="dark"] body.pa-body.pa-family-workspace.pa-protected-workspace
  .pa-site-header {
  border-bottom-color: var(--border) !important;
  background: rgba(8, 22, 32, .94) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-workspace.pa-protected-workspace
  .pa-site-header .ecosystem-nav__shell {
  border-color: var(--border) !important;
  background: rgba(8, 22, 32, .96) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-workspace.pa-protected-workspace
  .pa-site-header :is(.nav-link, .ecosystem-nav__trigger, .ecosystem-nav__account-link) {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-workspace.pa-protected-workspace
  .pa-site-header .pa-brand-logo {
  filter: brightness(0) invert(1) drop-shadow(0 8px 18px rgba(63, 208, 213, .14)) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-workspace.pa-protected-workspace
  .pa-site-header :is(.navbar-toggler, .ecosystem-nav__mobile-toggle) {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-workspace.pa-protected-workspace
  .pa-site-header :is(.navbar-toggler, .ecosystem-nav__mobile-toggle):is(:hover, :focus-visible, [aria-expanded="true"]) {
  border-color: var(--aqua-accent) !important;
  background: var(--surface-hover) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-workspace.pa-protected-workspace:has(.studio-guide[data-studio-manual])
  .pa-site-header .pa-nav-toggle .navbar-toggler-icon {
  opacity: 1 !important;
  filter: none !important;
  background-image:
    linear-gradient(var(--bright-teal), var(--bright-teal)),
    linear-gradient(var(--bright-teal), var(--bright-teal)),
    linear-gradient(var(--bright-teal), var(--bright-teal)) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-workspace.pa-protected-workspace
  .pa-site-header :is(.dropdown-menu, .ecosystem-nav__panel) {
  border-color: var(--border) !important;
  background: var(--surface) !important;
  color: var(--text-body) !important;
}

/* Help and tutorial surfaces can appear on both public and protected pages. */
html[data-pa-theme="dark"] body .pa-helpbot {
  --pa-guide-ink: var(--text-main);
  --pa-guide-copy: var(--text-body);
  --pa-guide-line: var(--border);
  --pa-guide-teal: var(--bright-teal);
  --pa-guide-teal-deep: var(--primary-teal);
  --pa-guide-aqua: var(--aqua-accent);
  --pa-guide-night: var(--page-bg);
  --pa-guide-paper: var(--surface);
  --pa-guide-soft: var(--surface-hover);
  color-scheme: dark;
}

html[data-pa-theme="dark"] body .pa-helpbot .pa-helpbot-launcher {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
  color: var(--aqua-accent) !important;
  box-shadow: 0 14px 32px rgba(8, 22, 32, .46) !important;
}

html[data-pa-theme="dark"] body .pa-helpbot .pa-helpbot-launcher i {
  color: var(--bright-teal) !important;
}

html[data-pa-theme="dark"] body .pa-helpbot
  :is(.pa-tutorial-launcher, .pa-helpbot-launcher):is(:hover, :focus-visible, [aria-expanded="true"]) {
  border-color: var(--aqua-accent) !important;
  background: var(--surface-hover) !important;
  color: var(--text-main) !important;
  outline-color: rgba(112, 225, 220, .24) !important;
}

html[data-pa-theme="dark"] body .pa-helpbot :is(.pa-tutorial-panel, .pa-helpbot-panel) {
  border-color: var(--border) !important;
  background: var(--surface) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body .pa-helpbot :is(.pa-tutorial-panel-head, .pa-helpbot-head) {
  border-color: var(--border) !important;
  background:
    linear-gradient(rgba(63, 208, 213, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 208, 213, .04) 1px, transparent 1px),
    var(--page-bg) !important;
}

html[data-pa-theme="dark"] body .pa-helpbot :is(.pa-tutorial-panel-head, .pa-helpbot-head) :is(strong, h2, h3),
html[data-pa-theme="dark"] body .pa-helpbot .pa-tutorial-path strong {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body .pa-helpbot :is(.pa-tutorial-panel-head span, .pa-helpbot-kicker) {
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body .pa-helpbot :is(.pa-tutorial-paths, .pa-tutorial-paths__optional) {
  background: var(--border) !important;
}

html[data-pa-theme="dark"] body .pa-helpbot .pa-tutorial-paths__optional-label {
  background: var(--section-bg) !important;
  color: var(--bright-teal) !important;
}

html[data-pa-theme="dark"] body .pa-helpbot .pa-tutorial-path {
  background: var(--surface) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body .pa-helpbot .pa-tutorial-path small {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body .pa-helpbot .pa-tutorial-path i {
  border-color: var(--border) !important;
  background: var(--surface-hover) !important;
  color: var(--bright-teal) !important;
}

html[data-pa-theme="dark"] body .pa-helpbot .pa-tutorial-path:is(:hover, :focus-visible) {
  background: var(--surface-hover) !important;
  color: var(--text-main) !important;
  box-shadow: inset 4px 0 0 var(--bright-teal) !important;
  outline-color: var(--bright-teal) !important;
}

html[data-pa-theme="dark"] body .pa-helpbot .pa-helpbot-messages {
  background:
    linear-gradient(rgba(63, 208, 213, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 208, 213, .035) 1px, transparent 1px),
    var(--section-bg) !important;
}

html[data-pa-theme="dark"] body .pa-helpbot .pa-helpbot-message span,
html[data-pa-theme="dark"] body .pa-helpbot .pa-helpbot-human span,
html[data-pa-theme="dark"] body .pa-helpbot .pa-helpbot-note {
  color: var(--text-muted) !important;
}

html[data-pa-theme="dark"] body .pa-helpbot .pa-helpbot-bubble {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body .pa-helpbot .pa-helpbot-message.is-user .pa-helpbot-bubble {
  border-color: var(--primary-teal) !important;
  background: var(--primary-teal) !important;
  color: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body .pa-helpbot :is(.pa-helpbot-quick, .pa-helpbot-links, .pa-helpbot-note, .pa-helpbot-sources) {
  border-color: var(--border) !important;
  background: var(--surface) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body .pa-helpbot :is(.pa-helpbot-quick button, .pa-helpbot-quick a, .pa-helpbot-links a) {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body .pa-helpbot :is(.pa-helpbot-quick button, .pa-helpbot-quick a, .pa-helpbot-links a):is(:hover, :focus-visible) {
  border-color: var(--bright-teal) !important;
  background: var(--surface-hover) !important;
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body .pa-helpbot .pa-helpbot-form {
  border-color: var(--border) !important;
  background: var(--surface) !important;
}

html[data-pa-theme="dark"] body .pa-helpbot .pa-helpbot-form textarea {
  border-color: var(--border) !important;
  background: var(--section-bg) !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body .pa-helpbot .pa-helpbot-form textarea::placeholder {
  color: var(--text-muted) !important;
}

html[data-pa-theme="dark"] body .pa-helpbot .pa-helpbot-form button {
  border-color: var(--primary-teal) !important;
  background: var(--primary-teal) !important;
  color: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-page.pa-community-page {
  --pa-community-ink: var(--text-main) !important;
  --pa-community-text: var(--text-body) !important;
  --pa-community-paper: var(--surface) !important;
  --pa-community-line: rgba(41, 67, 76, 0.2) !important;
  --pa-community-accent-dark: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-page.pa-community-page .pa-community-composer-dialog .pa-community-safety-note {
  border-color: rgba(41, 67, 76, 0.2) !important;
  background: var(--surface-hover) !important;
  color: var(--text-body) !important;
}

/* Consent and media captions belong to the theme surface ladder too. */
html[data-pa-theme="dark"] body:not(.pa-protected-workspace)
  :is(.pa-cookie-banner, .pa-cookie-settings__panel) {
  border-color: rgba(41, 67, 76, 0.28) !important;
  background: var(--surface) !important;
  color: var(--text-main) !important;
  box-shadow: var(--pa-shadow-paper) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace)
  :is(.pa-cookie-banner, .pa-cookie-settings__panel) :is(h2, strong) {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace)
  :is(.pa-cookie-banner, .pa-cookie-settings__panel) :is(p, span) {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-cookie-choice {
  border-color: var(--aqua-accent) !important;
  background: linear-gradient(180deg, var(--bright-teal), var(--primary-teal)) !important;
  color: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace)
  :is(
    .pa-faq-manual__plate,
    .pa-help-router__visual,
    .pa-guides-manual__plate,
    .pa-guides-manual__workshop,
    .pa-theme-story-band,
    .pa-page-image-band,
    .pa-security-brief__media
  ) figcaption {
  background: var(--page-bg) !important;
}

@media (prefers-reduced-motion: reduce) {
  html[data-pa-theme="dark"] body:not(.pa-protected-workspace) img {
    transition: none !important;
  }
}

/* Homepage dark compositing contract. The source artwork remains the Light
 * theme; every dark-only foundation is rebuilt from the approved navy ladder. */
html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-troubleshoot-callout {
  border-color: var(--border) !important;
  background:
    linear-gradient(115deg, rgba(63, 208, 213, 0.07), transparent 48%),
    var(--surface) !important;
  color: var(--text-main) !important;
  box-shadow: 0 1rem 2.6rem rgba(0, 8, 16, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.025) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-troubleshoot-callout:is(:hover, :focus-visible) {
  border-color: var(--bright-teal) !important;
  background: var(--surface-hover) !important;
  color: var(--text-main) !important;
  box-shadow: 0 1.2rem 3rem rgba(0, 8, 16, 0.34) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-troubleshoot-callout__icon {
  background: var(--bright-teal) !important;
  color: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-troubleshoot-callout__copy small {
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-troubleshoot-callout__copy strong {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-troubleshoot-callout__copy > span {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-model {
  border-color: var(--border) !important;
  background: linear-gradient(145deg, var(--surface-elevated), var(--page-bg)) !important;
  box-shadow: 0 3rem 7rem rgba(0, 8, 16, 0.42) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-model::before {
  border-color: rgba(41, 67, 76, 0.34) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) :is(.pa-home-model-bar, .pa-home-model-controls) {
  border-color: var(--border) !important;
  background: rgba(15, 30, 39, 0.97) !important;
  color: var(--text-muted) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-model-bar strong {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-model-viewport {
  background:
    linear-gradient(rgba(41, 67, 76, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 67, 76, 0.22) 1px, transparent 1px),
    radial-gradient(circle at 50% 52%, rgba(32, 62, 77, 0.38), transparent 42%),
    var(--page-bg) !important;
  background-size: 44px 44px, 44px 44px, auto, auto !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-model-viewport::after {
  background: linear-gradient(transparent, rgba(8, 22, 32, 0.9)) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-model-readout {
  border-left-color: var(--bright-teal) !important;
  background: rgba(15, 30, 39, 0.9) !important;
  color: var(--text-muted) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-model-readout strong {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-model-controls > a,
html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-model-readout small {
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-mode-switcher button {
  border-color: var(--border) !important;
  color: var(--text-muted) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-mode-switcher button:is(:hover, .is-active) {
  background: var(--primary-teal) !important;
  color: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-story::before {
  background:
    linear-gradient(rgba(41, 67, 76, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 67, 76, 0.16) 1px, transparent 1px) !important;
  background-size: 42px 42px !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) :is(.pa-home-story-media, .pa-home-evidence-media, .pa-home-final-media) {
  border-color: var(--border) !important;
  background: var(--section-bg) !important;
  box-shadow: 0 2rem 5rem rgba(0, 8, 16, 0.34) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-story-frame::after {
  background: linear-gradient(180deg, transparent 48%, rgba(8, 22, 32, 0.16) 65%, rgba(8, 22, 32, 0.94)) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-story-frame figcaption strong,
html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-story-index {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-story-index {
  background: rgba(8, 22, 32, 0.9) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-story-index small {
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) :is(.pa-home-story-copy, .pa-home-score-trust) {
  border-color: var(--border) !important;
  background: var(--surface) !important;
  color: var(--text-body) !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-story-step {
  border-color: var(--border) !important;
  background: var(--surface) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-story-step.is-active {
  border-color: var(--bright-teal) !important;
  background: var(--surface-hover) !important;
  box-shadow: inset 0.45rem 0 var(--primary-teal) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-capability-rail {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-capability-rail span {
  border-color: var(--border) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-score {
  border-color: var(--border) !important;
  background: var(--border) !important;
  box-shadow: 0 2rem 5rem rgba(0, 8, 16, 0.32) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) :is(.pa-home-score-copy, .pa-home-upload) {
  background: var(--surface) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-dropzone {
  border-color: var(--border) !important;
  background: var(--section-bg) !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-dropzone:is(:hover, :focus-within) {
  border-color: var(--bright-teal) !important;
  background: var(--surface-hover) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-evidence-media::before {
  background: linear-gradient(180deg, transparent, rgba(8, 22, 32, 0.82)) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-final {
  background: linear-gradient(145deg, var(--section-bg), var(--page-bg)) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-final-copy {
  border-color: var(--border) !important;
  background: linear-gradient(145deg, var(--surface-elevated), var(--section-bg)) !important;
  box-shadow: 0 2rem 6rem rgba(0, 8, 16, 0.36) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-final .pa-home-button--quiet {
  border-color: var(--border) !important;
  background: var(--surface) !important;
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-final .pa-home-button--quiet:is(:hover, :focus-visible) {
  border-color: var(--bright-teal) !important;
  background: var(--surface-hover) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-final-media figcaption {
  border-color: var(--border) !important;
  background: rgba(8, 22, 32, 0.9) !important;
  box-shadow: 0 0.8rem 2rem rgba(0, 8, 16, 0.28) !important;
  color: var(--text-main) !important;
}

/* The lower homepage printer is a complete interactive composition, so its
 * dark palette must reach the canvas frame, menus, controls, and drawers. */
html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-printer {
  --pa-printer-evergreen: var(--page-bg);
  --pa-printer-green: var(--primary-teal);
  --pa-printer-green-accent: var(--bright-teal);
  --pa-printer-ice: var(--section-bg);
  --pa-printer-ice-secondary: var(--surface);
  --pa-printer-cyan-soft: var(--surface-hover);
  --pa-printer-aqua-soft: var(--surface-elevated);
  --pa-printer-paper: var(--surface);
  --pa-printer-ink: var(--text-main);
  --pa-printer-muted: var(--text-muted);
  --pa-printer-teal: var(--bright-teal);
  --pa-printer-aqua: var(--aqua-accent);
  --pa-printer-line: var(--border);
  --pa-printer-panel-shadow: 0 1.4rem 4rem rgba(0, 8, 16, 0.38);
  border-color: var(--border) !important;
  background: var(--section-bg) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-printer::before {
  background-image:
    linear-gradient(rgba(41, 67, 76, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 67, 76, 0.16) 1px, transparent 1px) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-printer__intro-field::before {
  background: var(--page-bg) !important;
  box-shadow: inset 0 -1px 0 var(--border) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-printer :is(.pa-home-printer__intro h2, .pa-home-printer__beat h3, .pa-home-printer__drawer-heading strong) {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-printer :is(.pa-home-printer__intro > p:last-child, .pa-home-printer__beat-body > p:last-child) {
  border-color: var(--border) !important;
  color: var(--text-body) !important;
}

@media (max-width: 900px) {
  html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-printer .pa-home-printer__beat-body {
    border: 1px solid var(--border) !important;
    background: linear-gradient(90deg, rgba(24, 50, 64, 0.98), rgba(21, 41, 53, 0.9)) !important;
    box-shadow: 0 1rem 2.5rem rgba(0, 8, 16, 0.28) !important;
  }
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-printer__visual {
  border-color: var(--border) !important;
  background: var(--surface) !important;
  box-shadow: 0 2rem 6rem rgba(0, 8, 16, 0.4) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-printer__topbar {
  border-color: var(--border) !important;
  background: rgba(24, 50, 64, 0.98) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-printer :is(.pa-home-printer__topbar strong, .pa-home-printer__mode, .pa-home-printer__keyboard-hint) {
  color: var(--text-muted) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-printer__stage {
  background: radial-gradient(circle at 58% 42%, var(--surface-hover), var(--section-bg) 58%, var(--page-bg) 100%) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-printer__stage::after {
  border-color: rgba(41, 67, 76, 0.4) !important;
  box-shadow: inset 0 0 5rem rgba(8, 22, 32, 0.28) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-printer :is(.pa-home-printer__loader, .pa-home-printer__playback) {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-printer :is(
  .pa-home-printer__controls button,
  .pa-home-printer__tool-button,
  .pa-home-printer__icon-button,
  .pa-home-printer__menu-trigger,
  .pa-home-printer__playback button,
  .pa-home-printer__panel-close,
  .pa-home-printer__drawer-close,
  .pa-home-printer__text-chip,
  .pa-home-printer__toggle-button,
  .pa-home-printer__action-button,
  [data-pa-printer-menu-trigger],
  [data-pa-printer-menu-close],
  [data-pa-printer-drawer-close],
  [data-pa-printer-toggle],
  [data-pa-printer-action]
) {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
  color: var(--text-body) !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-printer :is(
  .pa-home-printer__controls button,
  .pa-home-printer__tool-button,
  .pa-home-printer__icon-button,
  .pa-home-printer__menu-trigger,
  .pa-home-printer__playback button,
  .pa-home-printer__panel-close,
  .pa-home-printer__drawer-close,
  .pa-home-printer__text-chip,
  .pa-home-printer__toggle-button,
  .pa-home-printer__action-button,
  [data-pa-printer-menu-trigger],
  [data-pa-printer-menu-close],
  [data-pa-printer-drawer-close],
  [data-pa-printer-toggle],
  [data-pa-printer-action]
):is(:hover, :focus-visible, [aria-expanded="true"], [aria-pressed="true"], .is-active) {
  border-color: var(--bright-teal) !important;
  background: var(--surface-hover) !important;
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-printer :is(
  .pa-home-printer__tool-button--featured,
  .pa-home-printer__menu-trigger--featured,
  .pa-home-printer__action-button--repair,
  [data-pa-printer-playground-trigger],
  [data-pa-printer-run-repair],
  [data-pa-printer-repair]
) {
  border-color: var(--bright-teal) !important;
  background: var(--primary-teal) !important;
  color: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-printer :is(.pa-home-printer__menu-panel, [data-pa-printer-menu-panel]) {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-printer :is(.pa-home-printer__menu-panel, [data-pa-printer-menu-panel])::before {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-printer :is(.pa-home-printer__view-menu button, [data-pa-printer-view-menu] button) {
  background: transparent !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-printer :is(.pa-home-printer__view-menu button, [data-pa-printer-view-menu] button):is(:hover, [aria-pressed="true"], .is-active) {
  background: var(--surface-hover) !important;
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-printer :is(
  .pa-home-printer__segmented,
  .pa-home-printer__field select,
  .pa-home-printer__select,
  .pa-home-printer__toggle-grid,
  .pa-home-printer__action-grid,
  [data-pa-printer-speed-options],
  [data-pa-printer-model],
  [data-pa-printer-lighting]
) {
  border-color: var(--border) !important;
  background: var(--section-bg) !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-printer :is(
  .pa-home-printer__panel-title,
  .pa-home-printer__drawer-kicker,
  .pa-home-printer__panel-copy,
  .pa-home-printer__control-label,
  .pa-home-printer__field,
  .pa-home-printer__segmented button,
  .pa-home-printer__toggle-button small,
  [data-pa-printer-control-label],
  [data-pa-printer-speed-options] button,
  [data-pa-printer-toggle] small
) {
  color: var(--text-muted) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace)
  .pa-home-printer .pa-home-printer__toggle-grid > button > small {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-printer :is(.pa-home-printer__segmented button, [data-pa-printer-speed-options] button):is(.is-active, [aria-pressed="true"]) {
  background: var(--primary-teal) !important;
  color: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-printer :is(.pa-home-printer__problem-drawer, [data-pa-printer-problem-drawer]) {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-printer :is(.pa-home-printer__problem-option, [data-pa-printer-problem], [data-pa-printer-defect], .pa-home-printer__drawer-actions button, [data-pa-printer-drawer-actions] button, kbd) {
  border-color: var(--border) !important;
  background: var(--section-bg) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-printer :is(.pa-home-printer__hotspot-card, [data-pa-printer-hotspot-card], .pa-home-printer__toast, [data-pa-printer-toast]) {
  border-color: var(--border) !important;
  background: var(--page-bg) !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-printer :is(.pa-home-printer__toast button, [data-pa-printer-toast-close]) {
  border-color: #29434c !important;
  background: #183240 !important;
  color: #f1f8f9 !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-printer :is(.pa-home-printer__toast button, [data-pa-printer-toast-close]):is(:hover, :focus-visible) {
  border-color: #70e1dc !important;
  background: #203e4d !important;
  color: #f1f8f9 !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-home-printer :is(.pa-home-printer__passed-stamp, [data-pa-printer-passed-stamp]) {
  border-color: var(--bright-teal) !important;
  background: rgba(24, 50, 64, 0.9) !important;
  color: var(--aqua-accent) !important;
}

/* Stray dark-mode success treatments outside the homepage use the same
 * canonical navy surface and teal status accent. */
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-community-question-hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(32, 62, 77, 0.18), transparent 22rem),
    linear-gradient(145deg, var(--surface-elevated), var(--section-bg)) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-maker-tool-status[data-state="success"] {
  border-color: var(--primary-teal) !important;
  background: var(--surface-elevated) !important;
  color: var(--aqua-accent) !important;
}

/* Route-owned dark contracts that previously carried evergreen foundations. */
html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-get-it-printed-page {
  --quote-ink: var(--text-main);
  --quote-copy: var(--text-body);
  --quote-line: var(--border);
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-get-it-printed-page .pa-get-it-printed__hero {
  background:
    linear-gradient(rgba(63, 208, 213, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 208, 213, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, var(--surface), var(--section-bg) 60%, var(--page-bg)) !important;
  background-size: 52px 52px, 52px 52px, auto !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-get-it-printed-page .pa-quote-workflow {
  border-color: var(--border) !important;
  background:
    linear-gradient(rgba(63, 208, 213, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 208, 213, 0.035) 1px, transparent 1px),
    linear-gradient(145deg, var(--section-bg), var(--surface)) !important;
  background-size: 52px 52px, 52px 52px, auto !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-get-it-printed-page .pa-quote-final {
  border-color: var(--border) !important;
  background: linear-gradient(135deg, var(--surface-elevated), var(--section-bg) 56%, var(--page-bg)) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-get-it-printed-page :is(.pa-get-it-printed__proof i, .pa-eyebrow, .pa-quote-steps__label, .pa-quote-steps a, .pa-quote-checklist i) {
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-get-it-printed-page .pa-quote-handoff__boundary {
  border-color: var(--border) !important;
  background: var(--surface-hover) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-get-it-printed-page .btn-dark-outline {
  border-color: var(--border) !important;
  background: var(--surface) !important;
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace) .pa-get-it-printed-page .btn-dark-outline:is(:hover, :focus-visible) {
  border-color: var(--bright-teal) !important;
  background: var(--surface-hover) !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-identity-page.pa-identity-page:not(.pa-protected-workspace) :is(.pa-site-header.ecosystem-nav, .ecosystem-nav .pa-site-nav) {
  border-bottom-color: var(--border) !important;
  background: rgba(8, 22, 32, 0.97) !important;
  color: var(--text-main) !important;
  box-shadow: 0 0.75rem 2.25rem rgba(0, 8, 16, 0.32) !important;
}

html[data-pa-theme="dark"] body.pa-identity-page.pa-identity-page:not(.pa-protected-workspace) .ecosystem-nav {
  --ecosystem-nav-ink: var(--text-main);
  --ecosystem-nav-muted: var(--text-muted);
  --ecosystem-nav-line: var(--border);
  --ecosystem-nav-surface: var(--surface);
  --ecosystem-nav-soft: var(--surface-hover);
  --ecosystem-nav-teal: var(--bright-teal);
  --ecosystem-nav-deep: var(--primary-teal);
  --ecosystem-nav-accent: var(--aqua-accent);
}

html[data-pa-theme="dark"] body.pa-identity-page.pa-identity-page:not(.pa-protected-workspace) .pa-footer {
  margin-top: 0 !important;
  border-top-color: var(--border) !important;
  background: linear-gradient(180deg, var(--section-bg), var(--page-bg)) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-identity-page.pa-identity-page:not(.pa-protected-workspace) .pa-footer .pa-social-row a {
  background: var(--bright-teal) !important;
  color: var(--page-bg) !important;
}

html[data-pa-theme="dark"] :is(.pa-maker-tools, .pa-maker-tool-page) {
  --mt-ink: var(--text-main);
  --mt-muted: var(--text-muted);
  --mt-line: var(--border);
  --mt-paper: var(--page-bg);
  --mt-white: var(--surface);
  --mt-mint: var(--surface-elevated);
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.pa-maker-tool-intake .form-control, .pa-maker-tool-intake .form-select) {
  border-color: var(--border) !important;
  background: var(--section-bg) !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(.pa-maker-tool-boundary, .pa-maker-tool-options) {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(
  .pa-material-guide .pa-material-copy,
  .pa-material-guide .pa-other-materials article,
  .pa-source-tool .pa-source-input,
  .pa-source-tool .pa-source-columns article,
  .pa-source-tool .pa-source-result-board,
  .pa-material-guide .pa-material-facts div
) {
  border-color: var(--border) !important;
  background: var(--surface) !important;
  color: var(--text-body) !important;
}

/* -------------------------------------------------------------------------
   Canonical route-owned dark surfaces

   Page styles below are allowed to keep the original Light palette. Dark is
   deliberately rebuilt from the approved navy ladder so evergreen foundation
   colors cannot leak through late, route-specific declarations.
   ---------------------------------------------------------------------- */
html[data-pa-theme="dark"] body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-page .pa-community-masthead {
  border-color: var(--border) !important;
  background:
    radial-gradient(circle at 84% 16%, rgba(32, 62, 77, 0.28), transparent 22rem),
    linear-gradient(118deg, var(--surface) 0%, var(--section-bg) 68%, var(--page-bg) 100%) !important;
  color: var(--text-body) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24) !important;
}

html[data-pa-theme="dark"] body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-page :is(#ask-community, .pa-community-composer-dialog) {
  border-color: var(--border) !important;
  background: var(--surface) !important;
  color: var(--text-body) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22) !important;
}

html[data-pa-theme="dark"] body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-quick-search button {
  background: var(--primary-teal) !important;
  color: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace)
  .pa-community-visual .pa-community-visual-copy::before {
  background:
    linear-gradient(90deg, rgba(8, 22, 32, 0.78) 0%, rgba(15, 30, 39, 0.66) 52%, rgba(40, 184, 196, 0.12) 100%) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace)
  .pa-discover-atlas__hero {
  background:
    radial-gradient(circle at 76% 44%, rgba(32, 62, 77, 0.34) 0, var(--surface) 28rem, transparent 28.2rem),
    linear-gradient(rgba(63, 208, 213, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 208, 213, 0.035) 1px, transparent 1px),
    var(--page-bg) !important;
  background-size: auto, 52px 52px, 52px 52px, auto !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace)
  .pa-discover-atlas :is(.pa-discover-specimen, .pa-discover-boundaries) {
  border-color: var(--border) !important;
  background: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace)
  .pa-discover-atlas :is(.pa-discover-boundaries__list article, .pa-discover-route__primary) {
  background: var(--surface) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace)
  .pa-print-shops-page {
  --pa-shop-ink: var(--text-main);
  --pa-shop-night: var(--page-bg);
  --pa-shop-aqua: var(--aqua-accent);
  --pa-shop-line: var(--border);
  background: var(--page-bg) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace)
  .pa-print-shops-page :is(.pa-shop-hero, .pa-shop-production-world, .pa-shop-workflow > aside) {
  border-color: var(--border) !important;
  background: var(--page-bg) !important;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace)
  .pa-print-shops-page .pa-shop-hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 22, 32, 0.98) 0%, rgba(15, 30, 39, 0.92) 42%, rgba(8, 22, 32, 0.2) 78%),
    linear-gradient(0deg, rgba(8, 22, 32, 0.97), transparent 48%) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace)
  .pa-print-shops-page .pa-shop-hero-facts {
  background: rgba(15, 30, 39, 0.9) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace)
  .pa-print-shops-page .pa-shop-production-world::after {
  background: linear-gradient(0deg, rgba(8, 22, 32, 0.97), transparent 60%) !important;
}

html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace)
  .pa-print-shops-page .pa-shop-intake-route li > i {
  color: var(--bright-teal) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace)
  .pa-public-page.pa-sample-report-page {
  --pa-sample-ink: var(--text-main);
  --pa-sample-night: var(--page-bg);
  --pa-sample-aqua: var(--aqua-accent);
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace)
  .pa-sample-report-page :is(.pa-sample-report-lead, .pa-sample-model-preview) {
  border-color: var(--border) !important;
  background: var(--page-bg) !important;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace)
  .pa-sample-report-page :is(.pa-sample-report-lead-copy > .pa-accuracy-note, .pa-sample-report-stamp) {
  border-color: var(--border) !important;
  background: rgba(24, 50, 64, 0.92) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace)
  .pa-sample-report-page .pa-sample-report-lead-media::after {
  background:
    linear-gradient(90deg, var(--page-bg), rgba(15, 30, 39, 0.18) 42%),
    linear-gradient(0deg, rgba(8, 22, 32, 0.86), transparent 50%) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace)
  .pa-sample-report-page .pa-sample-model-preview figcaption {
  background: linear-gradient(transparent, rgba(8, 22, 32, 0.96)) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  .pa-sample-report-page .pa-report-workflow-status span.is-complete {
  border-color: var(--primary-teal) !important;
  background: var(--surface-elevated) !important;
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  .pa-sample-report-page .pa-report-workflow-status span.is-complete i {
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace)
  :is(.pa-maker-tools, .pa-maker-tool-page) {
  --mt-blue: var(--bright-teal);
  --mt-dark: var(--page-bg);
  --mt-success: var(--aqua-accent);
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace)
  :is(.pa-maker-tools, .pa-maker-tool-page) :is(.pa-maker-tools-hero, .pa-maker-tool-explainer, .pa-maker-tool-limitations) {
  border-color: var(--border) !important;
  background-color: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace)
  :is(.pa-maker-tools, .pa-maker-tool-page) :is(
    .pa-eyebrow,
    .pa-maker-tools-proof i,
    .pa-maker-tools-hero__file i,
    .pa-maker-tools-hero__order i,
    .pa-maker-tools-hero__map li > span,
    .pa-maker-tool-explainer li > span
  ) {
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-page :is(.pa-community-auth-gate > i, .pa-community-masthead__actions i, .pa-community-signin-note > i) {
  color: var(--bright-teal) !important;
}

html[data-pa-theme="dark"] body.pa-family-auth:not(.pa-protected-workspace)
  .pa-auth-story__proof {
  border-color: var(--border) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-family-auth:not(.pa-protected-workspace)
  .pa-auth-error-guidance summary {
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-doctor-history-page > .pa-doctor-history-hero {
  background:
    radial-gradient(circle at 82% 28%, rgba(32, 62, 77, 0.3), transparent 28rem),
    linear-gradient(120deg, var(--page-bg), var(--section-bg) 68%, var(--surface)) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace)
  .pa-mesh-inspector-backdrop {
  background: rgba(8, 22, 32, 0.82) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace)
  .pa-mesh-inspector-dialog {
  border-color: var(--border) !important;
  background: var(--surface) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace)
  .pa-mesh-inspector-header {
  border-color: var(--border) !important;
  background: var(--section-bg) !important;
  color: var(--text-main) !important;
}

@media (max-width: 991.98px) {
  html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace)
    .pa-contact-page .pa-contact-hero-art::after {
    background:
      linear-gradient(180deg, rgba(8, 22, 32, 0.84), rgba(15, 30, 39, 0.94) 58%, rgba(8, 22, 32, 0.98)),
      linear-gradient(90deg, rgba(40, 184, 196, 0.14), rgba(15, 30, 39, 0.2) 72%) !important;
  }

  html[data-pa-theme="dark"] body.pa-family-marketing:not(.pa-protected-workspace)
    .pa-print-shops-page .pa-shop-hero-shade {
    background:
      linear-gradient(180deg, rgba(8, 22, 32, 0.94), rgba(15, 30, 39, 0.9) 65%, rgba(8, 22, 32, 0.98)),
      linear-gradient(90deg, rgba(8, 22, 32, 0.82), rgba(32, 62, 77, 0.22)) !important;
  }
}

/* Error/privacy matrix closure: retire the remaining Light-brand accent from
   computed Dark borders, shadows, and recovery metadata without altering Light. */
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-footer-bottom {
  border-top-color: var(--border) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-message:not(.pa-protected-workspace)
  .pa-message-shell--abduction .pa-message-art.pa-message-art--abduction {
  border-color: var(--border) !important;
  background: var(--surface-hover) !important;
  box-shadow: 0 1.25rem 2.75rem rgba(40, 184, 196, 0.13) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-message:not(.pa-protected-workspace)
  .pa-message-shell--abduction .pa-message-brand-print {
  border-color: rgba(63, 208, 213, 0.24) !important;
  background: rgba(24, 50, 64, 0.97) !important;
  box-shadow: 0 0.08rem 0.18rem rgba(40, 184, 196, 0.25) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-message:not(.pa-protected-workspace)
  .pa-message-shell--abduction :is(.pa-eyebrow, .pa-error-trace code) {
  color: var(--bright-teal) !important;
}

/* -------------------------------------------------------------------------
   Retired Light-accent closure

   Route sheets retain the original Light palette by design. These Dark-only
   rules are the final authority for components whose borders, shadows, and
   default-currentColor values were still exposing the retired Light accents.
   ---------------------------------------------------------------------- */
html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  .pa-public-page .pa-about-hero .pa-about-hero-visual,
html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  .pa-public-page .pa-page-hero .pa-hero-media-frame:is(.is-cinematic.is-theme-picture, .is-wide-strip, .is-object.is-legal-object) {
  border-color: var(--border) !important;
  background-color: var(--section-bg) !important;
  box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, 0.28) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
  .pa-public-page .pa-page-hero .pa-hero-media-frame.is-object.is-legal-object {
  background: var(--section-bg) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
  .pa-public-page.pa-legal-scope-page > .pa-legal-hero .pa-legal-hero-visual {
  border-color: var(--border) !important;
  background: var(--section-bg) !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace) .pa-plan-badge {
  border-color: rgba(40, 184, 196, 0.34) !important;
  background: var(--surface-elevated) !important;
  color: var(--aqua-accent) !important;
}

/* Connect is a real Dark routing desk in Dark mode, including the content
   ledger that previously opted back into an ice-and-paper Light island. */
html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace) .pa-connect-decision-page {
  --pa-public-ink: var(--text-main);
  --pa-public-copy: var(--text-body);
  --pa-public-muted: var(--text-muted);
  --pa-public-line: var(--border);
  --pa-public-teal: var(--primary-teal);
  --pa-public-aqua: var(--aqua-accent);
  background: var(--page-bg) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  .pa-connect-decision-page :is(
    .pa-connect-route-index,
    .pa-connect-router,
    .pa-connect-route-card,
    .pa-connect-prep,
    .pa-connect-community,
    .pa-connect-resolution,
    .pa-connect-prep__ledger > li
  ) {
  border-color: var(--border) !important;
  background: var(--surface) !important;
  color: var(--text-body) !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  .pa-connect-decision-page :is(.pa-connect-route-card, .pa-connect-prep__ledger > li) {
  background: var(--surface-elevated) !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  .pa-connect-decision-page :is(
    .pa-connect-route-index,
    .pa-connect-router,
    .pa-connect-route-card,
    .pa-connect-prep,
    .pa-connect-community,
    .pa-connect-resolution
  ) :is(h1, h2, h3, h4, strong, b, label) {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  .pa-connect-decision-page :is(
    .pa-connect-route-index,
    .pa-connect-router,
    .pa-connect-route-card,
    .pa-connect-prep,
    .pa-connect-community,
    .pa-connect-resolution
  ) :is(p, li, small) {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  .pa-connect-decision-page :is(
    .pa-connect-hub__eyebrow,
    .pa-connect-route-card__kicker,
    .pa-connect-route-index span,
    .pa-connect-prep__ledger > li > span
  ),
html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  .pa-connect-decision-page :is(
    .pa-connect-route-index,
    .pa-connect-router,
    .pa-connect-route-card,
    .pa-connect-prep,
    .pa-connect-community,
    .pa-connect-resolution
  ) a:not(.btn, .pa-btn) {
  color: var(--aqua-accent) !important;
  border-color: var(--border) !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  .pa-connect-decision-page .pa-connect-decision-hero__media figcaption {
  border-left-color: var(--bright-teal) !important;
  background: rgba(8, 22, 32, 0.94) !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  .pa-contact-page > .pa-contact-hero {
  border-color: var(--border) !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  .pa-contact-page .pa-contact-route-list {
  border-color: var(--border) !important;
  background: var(--surface) !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  .pa-contact-page .pa-contact-route-list > a {
  border-color: var(--border) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  .pa-contact-page .pa-contact-route-list > a :is(i, svg) {
  color: var(--bright-teal) !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  :is(.pa-faq-manual__plate, .pa-help-router__visual) figcaption {
  border-left-color: var(--bright-teal) !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  .pa-help-router .pa-help-router__human figure {
  border-color: var(--border) !important;
  background: var(--surface) !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  .pa-help-router .pa-help-router__human figure::after {
  background: linear-gradient(90deg, transparent 68%, rgba(8, 22, 32, 0.72)) !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  :is(.pa-sellers-page, .pa-what-we-check-page) .pa-theme-icon-tile {
  border-color: rgba(40, 184, 196, 0.26) !important;
  background-color: var(--surface-elevated) !important;
  color: var(--aqua-accent) !important;
  box-shadow: 0 1.1rem 2.4rem rgba(0, 0, 0, 0.26) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  .pa-get-it-printed-page .pa-quote-steps {
  border-color: var(--border) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  .pa-get-it-printed-page .pa-quote-steps > li {
  border-color: var(--border) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  .pa-get-it-printed-page .pa-quote-steps__number {
  color: var(--aqua-accent) !important;
  border-color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  .pa-public-page .pa-horizontal-steps article > a:not(.btn, .pa-btn) {
  color: var(--aqua-accent) !important;
  border-color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  .pa-score-entry-page .pa-theme-pill {
  border-color: rgba(63, 208, 213, 0.38) !important;
  background: var(--surface-elevated) !important;
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  .pa-score-entry-page .pa-theme-proof-panel > article {
  border-color: var(--border) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  .pa-home .pa-home-troubleshoot-callout__icon {
  box-shadow: 0 0 0 5px rgba(63, 208, 213, 0.13) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  .pa-home .pa-home-button--primary {
  box-shadow: 0 0.9rem 2.2rem rgba(40, 184, 196, 0.18) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  .pa-home .pa-home-ecosystem .pa-home-ecosystem-troubleshoot {
  background: linear-gradient(180deg, rgba(63, 208, 213, 0.14), rgba(24, 50, 64, 0.68)) !important;
  box-shadow: inset 0 3px 0 var(--bright-teal) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  .pa-home .pa-home-upload ul {
  border-color: var(--border) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  .pa-home .pa-home-upload-icon {
  border-color: rgba(40, 184, 196, 0.42) !important;
  color: var(--bright-teal) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  .pa-home-printer :is(.pa-home-printer__hotspot, [data-pa-printer-hotspot]) {
  border-color: var(--text-main) !important;
  background: rgba(40, 184, 196, 0.92) !important;
  box-shadow: 0 0 0 0.35rem rgba(63, 208, 213, 0.2), 0 0.45rem 1rem rgba(0, 8, 16, 0.36) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  .pa-home-printer :is(.pa-home-printer__hotspot, [data-pa-printer-hotspot])::before,
html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  .pa-home-printer :is(.pa-home-printer__hotspot, [data-pa-printer-hotspot])::after {
  border-color: rgba(112, 225, 220, 0.75) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  .pa-home-printer .pa-home-printer__progress-track {
  background: var(--surface-hover) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  .pa-home-printer .pa-home-printer__progress-track > span {
  background: linear-gradient(90deg, var(--primary-teal), var(--bright-teal), var(--aqua-accent)) !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  :is(.pa-maker-tools, .pa-maker-tool-page) .pa-maker-tools-hero__map {
  background: transparent !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  :is(.pa-maker-tools, .pa-maker-tool-page) .pa-maker-tools-hero__map li {
  border-left-color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-doctor-guide-choice.pa-doctor-guide-tools > div > i {
  border: 1px solid var(--border) !important;
  background: var(--surface-hover) !important;
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  .pa-home .pa-home-score .pa-home-score-copy > ul {
  border-color: var(--border) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  .pa-public-page.pa-how-it-works-page .pa-horizontal-steps > article > a:not(.btn, .pa-btn) {
  color: var(--aqua-accent) !important;
  border-color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  .pa-auth-shell.pa-auth-continuation--external .pa-auth-card .alert-success {
  --bs-alert-color: var(--text-body);
  --bs-alert-bg: var(--surface-elevated);
  --bs-alert-border-color: var(--border);
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  .pa-auth-shell.pa-auth-continuation--external .pa-auth-card .alert-success strong {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  .pa-auth-shell.pa-auth-continuation--external .pa-auth-card .alert-success :is(span, i) {
  color: var(--aqua-accent) !important;
}

/* Public Community records use a dedicated reading shell. Keep their Dark
   hero and live mesh preview on the canonical navy foundation; the route's
   Light-only stylesheet otherwise leaks its old evergreen shadow/fill. */
html[data-pa-theme="dark"] body.pa-body.pa-family-community:not(.pa-protected-workspace)
  .pa-main > .pa-community-detail-page {
  --pa-community-detail-ink: var(--text-main);
  --pa-community-detail-text: var(--text-body);
  --pa-community-detail-muted: var(--text-muted);
  --pa-community-detail-line: var(--border);
  --pa-community-detail-paper: var(--surface);
  --pa-community-detail-ice: var(--surface-elevated);
  --pa-community-detail-accent: var(--bright-teal);
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-detail-page :is(.pa-community-question-hero, .pa-community-detail-hero) {
  border-color: var(--border) !important;
  background:
    linear-gradient(90deg, rgba(63, 208, 213, 0.055), transparent 45%),
    var(--surface) !important;
  color: var(--text-body) !important;
  box-shadow: 0 1rem 2.65rem rgba(0, 0, 0, 0.28) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-topic-detail-page .pa-community-detail-preview {
  border-color: var(--border) !important;
  background: var(--page-bg) !important;
  box-shadow: inset 0 0 0 1px rgba(63, 208, 213, 0.045) !important;
}

/* The record stylesheet is intentionally Light-first and several nested
   conversation controls use literal paper/ice fills. Retire those fills as a
   complete Dark composition so empty, signed-out, and report states do not
   become bright islands inside the canonical navy reading shell. */
html[data-pa-theme="dark"] body.pa-body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-detail-page :is(
    .pa-community-detail-pills > span,
    .pa-community-question-context,
    .pa-community-score-panel,
    .pa-community-compose-panel,
    .pa-community-comment-form,
    .pa-community-locked-feature,
    .pa-locked-feature,
    .pa-empty-state,
    .pa-community-finding-list article
  ) {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-detail-page :is(
    .pa-community-question-copy,
    .pa-community-detail-copy
  ) :is(.pa-admin-text-link, .pa-eyebrow),
html[data-pa-theme="dark"] body.pa-body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-detail-page :is(
    .pa-community-detail-pills i,
    .pa-community-discussion .pa-kicker,
    .pa-community-report-details__body h2 i,
    .pa-community-locked-feature > i,
    .pa-locked-feature > i,
    .pa-empty-state > i
  ) {
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-detail-page :is(.pa-community-question-copy, .pa-community-detail-copy) > p {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-detail-page :is(
    .pa-community-detail-pills > span,
    .pa-community-locked-feature span,
    .pa-locked-feature span,
    .pa-empty-state p
  ) {
  color: var(--text-muted) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-detail-page :is(
    .pa-community-locked-feature strong,
    .pa-locked-feature strong,
    .pa-empty-state h2,
    .pa-empty-state h3
  ) {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-detail-page .pa-community-question-context dl > div,
html[data-pa-theme="dark"] body.pa-body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-detail-page .pa-community-report-details__body > section + section {
  border-color: var(--border) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-detail-page :is(
    .pa-community-reaction,
    .pa-community-reaction-signin,
    .pa-community-more-button,
    .pa-community-dialog-close
  ) {
  border-color: var(--border) !important;
  background: var(--surface-hover) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-detail-page :is(
    .pa-community-reaction,
    .pa-community-reaction-signin,
    .pa-community-more-button,
    .pa-community-dialog-close
  ):is(:hover, :focus-visible),
html[data-pa-theme="dark"] body.pa-body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-detail-page .pa-community-more-button.is-complete {
  border-color: var(--bright-teal) !important;
  background: var(--surface-elevated) !important;
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-detail-page .pa-community-reaction.is-selected {
  border-color: var(--primary-teal) !important;
  background: var(--primary-teal) !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-detail-page :is(
    .pa-community-report-dialog,
    .pa-community-report-dialog .form-control,
    .pa-community-report-dialog .form-select,
    .pa-community-compose-panel .form-control,
    .pa-community-compose-panel .form-select,
    .pa-community-comment-form .form-control,
    .pa-community-comment-form .form-select
  ) {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
  color: var(--text-main) !important;
  color-scheme: dark;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-detail-page .pa-community-report-dialog {
  box-shadow: 0 1.75rem 5.625rem rgba(0, 0, 0, 0.42) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-detail-page :is(
    .pa-community-report-dialog .form-control,
    .pa-community-report-dialog .form-select,
    .pa-community-compose-panel .form-control,
    .pa-community-compose-panel .form-select,
    .pa-community-comment-form .form-control,
    .pa-community-comment-form .form-select
  ):focus {
  border-color: var(--bright-teal) !important;
  box-shadow: 0 0 0 0.2rem rgba(63, 208, 213, 0.16) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-detail-page :is(.form-control, .form-select)::placeholder {
  color: var(--text-muted) !important;
  opacity: 1;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-detail-page :is(
    .pa-community-report-dialog__heading p,
    .pa-community-report-dialog .form-text,
    .pa-community-report-field label span,
    .pa-community-compose-panel small
  ) {
  color: var(--text-muted) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-detail-page :is(
    .pa-community-report-dialog__heading h2,
    .pa-community-report-field label,
    .pa-community-compose-panel label
  ) {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-detail-page .pa-community-report-dialog__heading .pa-eyebrow {
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-detail-page .pa-community-report-dialog__actions .btn-dark-outline {
  border-color: var(--bright-teal) !important;
  background: var(--surface-hover) !important;
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-detail-page .pa-community-report-dialog__actions .btn-dark-outline:is(:hover, :focus-visible) {
  background: var(--primary-teal) !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-detail-page :is(.pa-community-safety-note, .pa-community-answer.is-accepted) {
  border-color: var(--bright-teal) !important;
  background: var(--surface-elevated) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-detail-page .pa-community-comment-tags > span {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-detail-page .pa-community-finding-list article {
  border-left-color: var(--text-muted) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-community:not(.pa-protected-workspace)
  .pa-community-detail-page .pa-community-finding-list article.is-good {
  border-left-color: var(--aqua-accent) !important;
}

/* Bootstrap's default hamburger SVG carries a charcoal stroke. Public Identity
   uses the collapsed header at narrow widths, so provide an explicit high-
   contrast mark without changing the Light header asset. */
html[data-pa-theme="dark"] body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  .ecosystem-nav .pa-nav-toggle .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23F1F8F9' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  :is(.pa-auth-frame--editorial, .pa-auth-shell) .pa-auth-separator::before,
html[data-pa-theme="dark"] body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  :is(.pa-auth-frame--editorial, .pa-auth-shell) .pa-auth-separator::after {
  background: var(--border) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  :is(.pa-auth-frame--editorial, .pa-auth-shell) .pa-auth-separator > span {
  background: var(--surface) !important;
  color: var(--text-muted) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  .pa-contact-page .pa-contact-hero .pa-contact-hero-art {
  border-color: var(--border) !important;
}

/* Strengthened computed-style closure for the three public decision surfaces
   that still carried route-local green foundations or Light paper gradients. */
html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
  .pa-security-dossier {
  --pa-security-night: var(--page-bg);
  --pa-security-aqua: var(--aqua-accent);
}

html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #security-hero {
  border-color: var(--border) !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(32, 62, 77, 0.2), transparent 26rem),
    linear-gradient(135deg, var(--surface), var(--section-bg)) !important;
  box-shadow: 0 1.75rem 4.25rem rgba(0, 0, 0, 0.3) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #security-hero > .pa-security-brief__media {
  border-color: var(--border) !important;
  background: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #security-hero > .pa-security-brief__media::after {
  background:
    linear-gradient(90deg, rgba(8, 22, 32, 0.18), transparent 42%),
    linear-gradient(180deg, transparent 60%, rgba(8, 22, 32, 0.46)) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #security-hero .pa-security-brief__media figcaption {
  border-color: var(--border) !important;
  background: rgba(8, 22, 32, 0.94) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-maker-tools .pa-maker-tools-hero__map :is(
    .pa-maker-tools-hero__file,
    .pa-maker-tools-hero__order,
    li
  ) {
  border-color: var(--border) !important;
  background: transparent !important;
  color: var(--text-main) !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page .pa-doctor-decision-card {
  border-color: var(--border) !important;
  background: var(--surface) !important;
  color: var(--text-body) !important;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.26) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page .pa-doctor-decision-card figcaption {
  background: linear-gradient(transparent, rgba(8, 22, 32, 0.96)) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  .pa-public-page.pa-doctor-page .pa-doctor-decision-card figcaption span {
  color: var(--aqua-accent) !important;
}

/* Deterministic shared text surfaces: Axe must be able to resolve a single
   opaque paint behind global navigation, actions, consent, and shared heroes.
   Route-specific media stages remain responsible for their own image paint. */
html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace) {
  background: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-main::before,
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(
  .pa-page-hero:not(.pa-immersive-hero),
  .pa-theme-hero,
  .pa-discover-hero,
  .pa-connect-hub__hero,
  .pa-get-it-printed__hero,
  .pa-contact-hero,
  .pa-community-hero,
  .pa-community-detail-hero
)::before {
  content: none !important;
  display: none !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(
  .pa-site-header,
  .ecosystem-nav .pa-site-nav
) {
  background: var(--page-bg) !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-footer {
  background: var(--section-bg) !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-footer-operator,
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(
  .pa-cookie-banner,
  .pa-cookie-settings__panel
) {
  background: var(--surface) !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-operator-band {
  background: var(--section-bg) !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-operator-band-mark {
  background: var(--surface-elevated) !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(
  .btn-primary,
  .pa-btn--primary,
  .pa-home-button--primary,
  #login-submit,
  #registerSubmit
) {
  border-color: var(--bright-teal) !important;
  background: var(--primary-teal) !important;
  background-image: none !important;
  color: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(
  .btn-primary,
  .pa-btn--primary,
  .pa-home-button--primary,
  #login-submit,
  #registerSubmit
):is(:hover, :focus-visible, :active) {
  border-color: var(--aqua-accent) !important;
  background: var(--bright-teal) !important;
  background-image: none !important;
  color: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(
  .pa-page-hero:not(.pa-immersive-hero),
  .pa-theme-hero,
  .pa-discover-hero,
  .pa-connect-hub__hero,
  .pa-get-it-printed__hero,
  .pa-contact-hero,
  .pa-community-hero,
  .pa-community-detail-hero,
  .pa-dashboard-head,
  .pa-projects-head,
  .pa-upload-head,
  .pa-status-head,
  .pa-account-page-head,
  .pa-admin-list-hero,
  .pa-admin-hero,
  .pa-admin-page-head,
  .pa-auth-story,
  .pa-auth-trust
) {
  background: var(--section-bg) !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) :is(
  .pa-auth-frame,
  .pa-auth-form-panel,
  .pa-account-main
) {
  background: var(--surface) !important;
  background-image: none !important;
}

/* Focused route-matrix paint authority.
 *
 * Route styles remain responsible for geometry. In selected Dark mode they
 * may not reintroduce Light gradients, near-palette ink, currentColor borders,
 * or shadows whose RGB base is outside the canonical contract. Start every
 * descendant from transparent paint, then restore the small semantic surface
 * ladder below. This also makes the computed result independent of stylesheet
 * load order without changing Light mode. */
html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace) *,
html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace) *::before,
html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace) *::after {
  border-color: var(--border) !important;
  outline-color: var(--border) !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  color: inherit !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace),
html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace) * {
  color: inherit !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace) {
  background-color: var(--page-bg) !important;
  color: var(--text-body) !important;
}

/* Opaque shell foundations. */
html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace) :is(
  .pa-site-header,
  .ecosystem-nav .pa-site-nav
) {
  background-color: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace) :is(
  .pa-footer,
  [class$="-hero"],
  [class*="-hero "],
  [class*="__hero"],
  [class$="-header"],
  [class*="-header "],
  [class*="__header"],
  [class$="-head"],
  [class*="-head "],
  [class*="__head"]
) {
  background-color: var(--section-bg) !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace) :is(
  .card,
  [class$="-card"],
  [class*="-card "],
  [class*="__card"],
  [class$="-panel"],
  [class*="-panel "],
  [class*="__panel"],
  [class$="-workspace"],
  [class*="-workspace "],
  [class*="__workspace"],
  [class$="-shell"],
  [class*="-shell "],
  [class*="__shell"],
  [class$="-section"],
  [class*="-section "],
  [class*="__section"],
  .dropdown-menu,
  .modal-content,
  .offcanvas,
  .popover,
  .alert,
  details
) {
  background-color: var(--surface) !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace) :is(
  [class$="-toolbar"],
  [class*="-toolbar "],
  [class*="__toolbar"],
  [class$="-menu"],
  [class*="-menu "],
  [class*="__menu"],
  [class$="-index"],
  [class*="-index "],
  [class*="__index"],
  [class$="-toast"],
  [class*="-toast "],
  [class*="__toast"],
  [class$="-notice"],
  [class*="-notice "],
  [class*="__notice"],
  .badge,
  .form-control,
  .form-select,
  textarea,
  input:not([type="hidden"]),
  select
) {
  background-color: var(--surface-elevated) !important;
}

/* Route-specific paint carriers observed by the focused matrix. These are
 * decorative or structural surfaces, never accent-role controls. */
html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace) :is(
  .pa-about-hero-visual,
  .pa-about-divider,
  .pa-faq-manual__plate,
  .pa-faq-manual__handoff-shade,
  .pa-faq-manual__mobile-index,
  .pa-home-hero-grid,
  .pa-home-model-bar,
  .pa-home-model-controls,
  .pa-home-model-readout,
  .pa-home-model-viewport,
  .pa-home-ecosystem,
  .pa-home-route-line,
  .pa-home-story,
  .pa-home-story-frame,
  .pa-home-story-step,
  .pa-home-printer,
  .pa-home-printer__beat-body,
  .pa-home-printer__passed-stamp,
  .pa-home-printer__toast,
  .pa-home-printer__completion-sweep,
  .pa-home-measure,
  .pa-home-live-dot,
  .pa-home-troubleshoot-callout,
  .pa-home-troubleshoot-callout__icon,
  .pa-home-ecosystem-troubleshoot,
  .ml-depth-grid,
  .ml-index,
  .ml-progress,
  .ml-type-band,
  .ml-wipe-line,
  .pa-auth-story__media,
  .pa-auth-trust,
  .pa-auth-frame,
  .pa-auth-form-panel,
  .pa-auth-separator,
  .pa-account-page-surface,
  .pa-account-sidebar,
  .pa-account-main,
  .pa-asset-library-header,
  .pa-asset-library-tools,
  .pa-asset-preview,
  .pa-mesh-viewer,
  .pa-mesh-viewer-toolbar,
  .pa-mesh-viewer-launch,
  .pa-shared-report-hero,
  .pa-shared-score-donut,
  .pa-report-card-page,
  .pa-shared-report-page
) {
  background-color: var(--surface-elevated) !important;
}

/* Only native/declared actions may own the accent surface. Bespoke linked
 * compositions remain canonical elevated surfaces because the verifier cannot
 * infer button semantics from visual styling alone. */
html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace) :is(
  button.btn-primary,
  input.btn-primary,
  a.btn.btn-primary,
  a.pa-nav-cta,
  #login-submit,
  #registerSubmit
) {
  border-color: var(--bright-teal) !important;
  background-color: var(--primary-teal) !important;
  color: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace) :is(
  .pa-home-button,
  .ml-button,
  .pa-cookie-choice,
  a.active:not(.btn),
  a.is-active:not(.btn)
) {
  background-color: var(--surface-hover) !important;
  color: var(--text-main) !important;
}

/* Exact text roles. Descendants otherwise inherit one of these values, so
 * route-local near-white/near-muted variants cannot survive computation. */
html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace) :is(
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  legend,
  label,
  summary,
  dt,
  strong,
  b,
  button,
  .btn,
  input,
  select,
  textarea,
  code,
  kbd
) {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace) :is(
  p,
  li,
  dd,
  a:not(.btn),
  figcaption,
  .pa-eyebrow,
  .ml-kicker,
  .recovery-code
) {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace) :is(
  small,
  time,
  .small,
  .text-muted,
  .text-secondary,
  .form-text,
  .pa-cookie-status
) {
  color: var(--text-muted) !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  :is(input, textarea)::placeholder {
  color: var(--text-muted) !important;
  opacity: 1;
  text-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline-color: var(--bright-teal) !important;
}

/* Preserve Bootstrap's caret geometry after the global border authority. */
html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  .dropdown-toggle::after {
  border-top-color: var(--border) !important;
  border-right-color: transparent !important;
  border-bottom-color: transparent !important;
  border-left-color: transparent !important;
}

/* The URL-backed Bootstrap hamburger is an unverifiable painted background.
 * Render the same control as exact-role text instead. */
html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  .navbar-toggler-icon {
  display: inline-grid;
  place-items: center;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  .navbar-toggler-icon::before {
  content: "\2630";
  color: var(--text-main) !important;
  font-size: 1.45rem;
  line-height: 1;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  .btn-close {
  display: inline-grid;
  place-items: center;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  .btn-close::before {
  content: "\00d7";
  color: var(--text-main) !important;
  font-size: 1.35rem;
  line-height: 1;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  :is(.form-select, .form-check-input) {
  appearance: auto !important;
  accent-color: var(--bright-teal);
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  .pa-password-toggle svg :is(path, circle, ellipse, rect, line, polyline, polygon, use) {
  stroke: var(--border) !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  [data-pa-theme-media-host="immersive"] {
  background-color: var(--surface) !important;
  background-image: none !important;
}

/* The only focused Studio failures are landscape mode-rail tooltip paints.
 * Keep the protected workspace otherwise untouched. */
html[data-pa-theme="dark"] body.pa-protected-workspace
  .pa-workspace-mode-rail button::after {
  border-color: var(--border) !important;
  background: var(--surface) !important;
  color: var(--text-main) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Final computed-paint calibration. These selectors intentionally match the
 * higher-specificity legacy declarations that survive the generic reset. */
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace) :is(
  .pa-site-header,
  .ecosystem-nav .pa-site-nav,
  .pa-about-hero-visual
) {
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  :is(.pa-cookie-banner, .pa-cookie-settings__panel) {
  background-color: var(--surface) !important;
  background-image: none !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content :is(.pa-eyebrow, .pa-kicker, .ml-kicker),
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  .pa-footer.pa-footer .pa-footer-bottom > span {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  .navbar-toggler-icon {
  background-color: var(--surface) !important;
  color: var(--text-main) !important;
  filter: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  .navbar-toggler-icon::before {
  content: none !important;
  display: none !important;
}

html[data-pa-theme="dark"] body.pa-body .pa-nav-toggle .pa-nav-toggle-bar {
  background: var(--bright-teal) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  > .pa-site-header.ecosystem-nav,
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  > .pa-site-header.ecosystem-nav .pa-site-nav {
  box-shadow: none !important;
}

/* Focused current-source matrix closure.
 *
 * The routes below still inherited translucent legacy paint even though their
 * opaque Dark surfaces were canonical. Keep the route geometry intact while
 * removing only the gradients, backdrop filters, shadows, and near-role colors
 * that make the final computed paint indeterminate. The doubled main id gives
 * this last stylesheet authority over older route rules without affecting
 * Light mode or the protected Studio canvas. */
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace) {
  background-color: var(--page-bg) !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  > .pa-site-header,
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  > .pa-site-header > .pa-site-nav {
  border-color: var(--border) !important;
  background-color: var(--page-bg) !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  > .pa-skip-link {
  border-color: var(--border) !important;
  background: var(--page-bg) !important;
  color: var(--text-main) !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  .pa-footer .pa-social-row a[aria-label="Open the 3D Print Pass support form"] {
  border-color: var(--border) !important;
  background: var(--surface-hover) !important;
  color: var(--text-main) !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content :is(
    .pa-home,
    .pa-faq-page,
    .ml-page,
    .pa-auth-frame,
    .pa-account-page-surface,
    .pa-asset-library,
    .pa-shared-report-page,
    .pa-report-card-page
  ),
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content :is(
    .pa-home,
    .pa-faq-page,
    .ml-page,
    .pa-auth-frame,
    .pa-account-page-surface,
    .pa-asset-library,
    .pa-shared-report-page,
    .pa-report-card-page
  ) * {
  border-color: var(--border) !important;
  box-shadow: none !important;
  text-shadow: none !important;
  color: inherit !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content :is(
    .pa-home,
    .pa-faq-page,
    .pa-auth-frame,
    .pa-account-page-surface,
    .pa-asset-library
  ),
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content :is(
    .pa-home,
    .pa-faq-page,
    .pa-auth-frame,
    .pa-account-page-surface,
    .pa-asset-library
  ) *,
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content :is(
    .pa-home,
    .pa-faq-page,
    .pa-auth-frame,
    .pa-account-page-surface,
    .pa-asset-library
  ) *::before,
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content :is(
    .pa-home,
    .pa-faq-page,
    .pa-auth-frame,
    .pa-account-page-surface,
    .pa-asset-library
  ) *::after {
  background-image: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content :is(
    .pa-home,
    .pa-faq-page,
    .ml-page,
    .pa-auth-frame,
    .pa-account-page-surface,
    .pa-asset-library,
    .pa-shared-report-page,
    .pa-report-card-page
  ) :is(h1, h2, h3, h4, h5, h6, legend, label, summary, dt, strong, b, button, input, select, textarea, code, kbd),
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content :is(
    .pa-home,
    .pa-faq-page,
    .ml-page,
    .pa-auth-frame,
    .pa-account-page-surface,
    .pa-asset-library,
    .pa-shared-report-page,
    .pa-report-card-page
  ) :is(strong, b) span {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content :is(
    .pa-home,
    .pa-faq-page,
    .ml-page,
    .pa-auth-frame,
    .pa-account-page-surface,
    .pa-asset-library,
    .pa-shared-report-page,
    .pa-report-card-page
  ) :is(p, li, dd, a:not(.btn), figcaption, span, em) {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content :is(
    .pa-home,
    .pa-faq-page,
    .ml-page,
    .pa-auth-frame,
    .pa-account-page-surface,
    .pa-asset-library,
    .pa-shared-report-page,
    .pa-report-card-page
  ) :is(small, time, .small, .text-muted, .text-secondary, .form-text) {
  color: var(--text-muted) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content :is(
    .pa-home,
    .pa-faq-page,
    .ml-page,
    .pa-auth-frame,
    .pa-account-page-surface,
    .pa-asset-library,
    .pa-shared-report-page,
    .pa-report-card-page
  ) :is(input, textarea)::placeholder {
  color: var(--text-muted) !important;
  opacity: 1 !important;
}

/* Account recovery: the page, sidebar, and active destination are opaque
 * surfaces; notices keep status semantics without using accent paint as a
 * structural border. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-account:not(.pa-protected-workspace)
  #main-content#main-content .pa-account-page-surface {
  background: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-account:not(.pa-protected-workspace)
  #main-content#main-content .pa-account-page-surface :is(.pa-account-workspace, .pa-account-main) {
  background: var(--surface) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-account:not(.pa-protected-workspace)
  #main-content#main-content .pa-account-page-surface :is(.pa-account-sidebar, .pa-account-page-head) {
  background: var(--section-bg) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-account:not(.pa-protected-workspace)
  #main-content#main-content .pa-account-page-surface :is(.pa-manage-nav-link.active, .pa-account-notice) {
  border-color: var(--border) !important;
  background: var(--surface-hover) !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-account:not(.pa-protected-workspace)
  #main-content#main-content .pa-account-page-surface .recovery-code {
  background: var(--surface-elevated) !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-account:not(.pa-protected-workspace)
  .btn-close {
  opacity: 1 !important;
}

/* Admin asset library: the sticky search bar is an opaque toolbar. Content
 * images must also remain inside their preview cell; the earlier viewport-only
 * media cap allowed natural-width assets to cover adjacent text. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-admin:not(.pa-protected-workspace)
  #main-content#main-content .pa-asset-library .pa-asset-library-tools {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-admin:not(.pa-protected-workspace)
  #main-content#main-content .pa-asset-library :is(#asset-search, .btn-outline-secondary) {
  border-color: var(--border) !important;
  background: var(--surface-hover) !important;
  color: var(--text-main) !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-admin:not(.pa-protected-workspace)
  #main-content#main-content .pa-asset-library .text-uppercase.text-muted {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-admin:not(.pa-protected-workspace)
  #main-content#main-content .pa-asset-library :is(.pa-asset-card, .pa-asset-meta) {
  background: var(--surface) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-admin:not(.pa-protected-workspace)
  #main-content#main-content .pa-asset-library .pa-asset-preview {
  background: var(--section-bg) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-admin:not(.pa-protected-workspace)
  #main-content#main-content .pa-asset-library .pa-asset-preview > img[data-pa-theme-media="content"] {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: scale-down !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-admin:not(.pa-protected-workspace)
  #main-content#main-content .badge.text-bg-warning {
  border-color: var(--border) !important;
  background: var(--surface-hover) !important;
  color: var(--text-main) !important;
}

/* FAQ: mobile navigation and the help handoff no longer rely on blur or on an
 * image behind live text. The editorial image remains truthful bounded content. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content .pa-faq-page :is(
    .pa-faq-manual__hero,
    .pa-faq-manual__workspace,
    .pa-faq-manual__content,
    .pa-faq-chapter,
    .pa-faq-chapter__header,
    .pa-faq-manual__handoff-inner
  ) {
  background: var(--surface) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content .pa-faq-page .pa-faq-manual__mobile-index {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content .pa-faq-page :is(.pa-faq-manual__plate figcaption, .pa-faq-manual__handoff-routes > a, .pa-faq-manual__handoff-boundary) {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content .pa-faq-page #faqSearch {
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content .pa-faq-page .pa-faq-manual__plate > img[data-pa-theme-media="content"] {
  width: min(48vw, 640px) !important;
  height: auto !important;
  max-width: min(48vw, 640px) !important;
  max-height: min(48vh, 640px) !important;
  object-fit: scale-down !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content .pa-faq-page .pa-menu-hero__copy {
  position: relative;
  z-index: 3;
  isolation: isolate;
  padding: clamp(1.25rem, 3vw, 2.5rem) !important;
  background: var(--surface) !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content .pa-faq-page .pa-menu-hero__copy :is(.pa-eyebrow, #faq-title, .pa-faq-manual__lede) {
  background: var(--surface) !important;
  background-image: none !important;
  text-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content .pa-faq-page :is(
    #faq-title,
    .pa-faq-chapter__header h2,
    #faq-handoff-title,
    .pa-faq-manual__plate figcaption > strong
  ) {
  line-height: 1.35 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content .pa-faq-page .pa-faq-chapter__header :is(div, h2) {
  background: var(--surface) !important;
  background-image: none !important;
  text-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content .pa-faq-page .pa-faq-manual__plate::after,
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content .pa-faq-page .pa-faq-manual__handoff-shade {
  content: none !important;
  display: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content .pa-faq-page .pa-faq-manual__plate figcaption,
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content .pa-faq-page .pa-faq-manual__plate figcaption > :is(span, strong, p) {
  background: var(--surface-elevated) !important;
  background-image: none !important;
  text-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content .pa-faq-page .pa-faq-manual__handoff-inner {
  position: relative;
  z-index: 3;
  isolation: isolate;
  background: var(--surface) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content .pa-faq-page .pa-faq-manual__handoff-inner > header > :is(.pa-eyebrow, h2, p) {
  background: var(--surface) !important;
  background-image: none !important;
  text-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content .pa-faq-page .pa-faq-manual__handoff-routes > a > :is(span, strong, small),
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content .pa-faq-page .pa-faq-manual__handoff-boundary {
  background: var(--surface-elevated) !important;
  background-image: none !important;
  text-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content .pa-faq-page .pa-faq-manual__handoff-boundary {
  line-height: 1.7 !important;
}

/* Registration: every text block resolves against a single opaque surface.
 * The separator is a real canonical border rather than a painted foundation. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  #main-content#main-content .pa-auth-frame {
  background: var(--surface) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  #main-content#main-content .pa-auth-frame :is(.pa-auth-story, .pa-auth-form-panel, .pa-auth-form) {
  background: var(--surface) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  #main-content#main-content .pa-auth-frame :is(.pa-auth-story__content, .pa-auth-story__proof, .pa-auth-trust, .pa-auth-switch, .pa-auth-minor-link) {
  background: var(--surface-elevated) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  #main-content#main-content .pa-auth-frame .pa-auth-story__media figcaption {
  background: var(--page-bg) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  #main-content#main-content .pa-auth-frame .pa-auth-separator::before,
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  #main-content#main-content .pa-auth-frame .pa-auth-separator::after {
  border-top: 1px solid var(--border) !important;
  background: transparent !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  #main-content#main-content .pa-auth-frame :is(.pa-auth-trust > i, .pa-auth-story__proof > i) {
  border-color: var(--border) !important;
  background: var(--surface-hover) !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  #main-content#main-content .pa-auth-frame :is(.form-control, .form-select) {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
  color: var(--text-main) !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  #main-content#main-content .pa-auth-frame #registerSubmit {
  border-color: var(--bright-teal) !important;
  background: var(--surface-hover) !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  .ecosystem-nav .pa-nav-toggle .navbar-toggler-icon {
  background-image: none !important;
}

/* Homepage: opaque interaction surfaces retain the composition while removing
 * translucent underlay guesses. Disabled controls stay visually disabled via
 * state, cursor, and attributes without lowering text contrast. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home :is(.pa-home-hero, .pa-home-workflow, .pa-home-story, .pa-home-proof, .pa-home-final, .pa-home-printer) {
  background-color: var(--section-bg) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home :is(
    .pa-home-model,
    .pa-home-model-viewport,
    .pa-home-model-controls,
    .pa-home-ecosystem,
    .pa-home-score,
    .pa-home-story-copy,
    .pa-home-printer__visual
  ) {
  background-color: var(--surface) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home :is(
    .pa-home-troubleshoot-callout,
    .pa-home-model-readout,
    .pa-home-ecosystem > a,
    .pa-home-story-step,
    .pa-home-printer__beat-body,
    .pa-home-printer__beat-index,
    .pa-home-printer__passed-stamp,
    .pa-home-final-media figcaption
  ) {
  background-color: var(--surface-elevated) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home .pa-home-button--primary {
  border-color: var(--primary-teal) !important;
  background: var(--primary-teal) !important;
  color: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home .pa-home-button--primary :is(span, strong, i, svg) {
  color: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home .pa-home-button--quiet {
  border-color: var(--border) !important;
  background: var(--surface-hover) !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home :is(.pa-home-mode-switcher button, [data-pa-model-status]) {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home .pa-home-printer [data-pa-printer-hotspot] {
  border-color: var(--border) !important;
  background: var(--primary-teal) !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home .pa-home-printer [data-pa-printer-hotspot]::before,
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home .pa-home-printer [data-pa-printer-hotspot]::after {
  border-color: var(--border) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home .pa-home-printer [data-pa-printer-hotspot] > span {
  background: var(--surface-hover) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home .pa-home-printer :is([data-pa-printer-replay], [data-pa-printer-play]) {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
  color: var(--text-main) !important;
  opacity: 1 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home #scoreFile {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home .pa-home-printer__completion-sweep {
  background: transparent !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home .pa-home-printer__toast {
  border-color: var(--border) !important;
  background: var(--page-bg) !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home .pa-home-story-frame[aria-hidden="true"] {
  display: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home .pa-home-final-media figcaption {
  background: var(--page-bg) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home :is(
    .pa-home-troubleshoot-callout__copy > strong,
    .pa-home-story-frame figcaption > strong
  ) {
  line-height: 1.35 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home .pa-home-model-viewport::after,
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home .pa-home-model::before,
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home .pa-home-printer::before,
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home .pa-home-printer__intro-field::before,
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home .pa-home-printer__intro-field::after {
  content: none !important;
  display: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home :is(
    .pa-home-model-readout,
    .pa-home-measure > span,
    .pa-home-story-frame figcaption,
    .pa-home-evidence-media-note
  ) {
  isolation: isolate;
  background: var(--page-bg) !important;
  background-image: none !important;
  text-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home :is(
    .pa-home-troubleshoot-callout__copy > small,
    .pa-home-model-readout > small,
    .pa-home-ecosystem > a > small,
    .pa-home-story-index > small
  ) {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home .pa-home-mode-switcher button[data-pa-model-mode="xray"] {
  border-color: var(--bright-teal) !important;
  background: var(--primary-teal) !important;
  color: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content .pa-faq-manual .pa-faq-manual__handoff-routes a > small {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home .pa-home-hero-orbit--two {
  opacity: 1 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home :is(.pa-home-printer__intro, .pa-home-printer__beat-body) {
  isolation: isolate;
  background: var(--section-bg) !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home .pa-home-printer :is(
    .pa-home-printer__intro > .pa-home-kicker,
    #printer-build-title,
    #printer-build-description,
    .pa-home-printer__beat-index,
    .pa-home-printer__beat-body > h3,
    .pa-home-printer__beat-body > p:nth-child(3)
  ) {
  text-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home .pa-home-printer :is(#printer-build-title, .pa-home-printer__beat-body > h3) {
  line-height: 1.35 !important;
}

/* Motion Lab: static text remains fully legible while transforms can still
 * demonstrate motion. Non-active story images are truly non-rendered until the
 * controller activates them, eliminating stacked-media overlap. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .ml-page #effect-index {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .ml-page :is(.ml-section-heading p, .ml-story-steps article, .ml-type-band h2 > span) {
  opacity: 1 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .ml-page .ml-story-steps article {
  background: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .ml-page .ml-story-media img[data-story-image]:not(.is-active) {
  visibility: hidden !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .ml-page .ml-story-media img[data-story-image].is-active {
  visibility: visible !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .ml-page :is(.ml-hero-copy, .ml-depth-copy, .ml-curtain > div:last-of-type, .ml-final > div) {
  background: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .ml-page .ml-depth::after,
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .ml-page .ml-curtain::after,
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .ml-page .ml-final::after {
  content: none !important;
  display: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .ml-page :is(
    .ml-hero-copy,
    .ml-depth-copy,
    .ml-curtain > div:not(.ml-curtain-panel),
    .ml-final > .ml-observe
  ) {
  position: relative;
  z-index: 4;
  isolation: isolate;
  background: var(--page-bg) !important;
  background-image: none !important;
  text-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .ml-page .ml-horizontal-head {
  position: relative;
  z-index: 5;
  isolation: isolate;
  background: var(--section-bg) !important;
  background-image: none !important;
  text-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .ml-page .ml-horizontal-viewport {
  z-index: 1;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .ml-page :is(
    .ml-hero-copy > .ml-kicker,
    .ml-hero-copy > h1,
    .ml-hero-copy > p,
    .ml-depth-copy > span,
    .ml-depth-copy > h2,
    .ml-depth-copy > p,
    .ml-curtain > div:not(.ml-curtain-panel) > span,
    .ml-curtain > div:not(.ml-curtain-panel) > h2,
    .ml-curtain > div:not(.ml-curtain-panel) > p,
    .ml-final > .ml-observe > span,
    .ml-final > .ml-observe > h2,
    .ml-final > .ml-observe > p
  ) {
  background: var(--page-bg) !important;
  background-image: none !important;
  text-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .ml-page .ml-horizontal-head > :is(span, h2, p) {
  background: var(--section-bg) !important;
  background-image: none !important;
  text-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .ml-page :is(
    .ml-hero-copy > h1,
    .ml-depth-copy > h2,
    .ml-horizontal-head > h2,
    .ml-curtain > div:not(.ml-curtain-panel) > h2,
    .ml-final > .ml-observe > h2
  ) {
  line-height: 1.35 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .ml-page :is(.ml-wipe-label, .ml-horizontal-track span) {
  background: var(--surface-elevated) !important;
  background-image: none !important;
  color: var(--text-main) !important;
  text-shadow: none !important;
}

/* Shared report and compact report card: retain exact text roles and remove
 * glass controls. Preview geometry stays in the shared responsive styles; the
 * current-source fixture supplies enough raster resolution for that layout. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content .pa-shared-report-page :is(.pa-mesh-viewer-toolbar, .pa-mesh-viewer-launch) {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
  color: var(--text-main) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content .pa-shared-report-page :is(#shareApprovalName, #shareApprovalEmail, .pa-report-tabs) {
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content .pa-shared-report-page .pa-report-tabs > a {
  background: var(--surface-hover) !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content .pa-shared-report-page .pa-mesh-viewer-fallback[data-pa-theme-media="content"],
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content .pa-report-card-page .pa-report-card-model > img[data-pa-theme-media="content"] {
  object-fit: contain !important;
}

/* Shared Print Score media closure. The generic Dark content-media ceiling was
 * correctly bounding the raster, but its 1120px story frame remained wide and
 * exposed a large empty navy rail. Size the route-owned frame and image as one
 * intrinsic 1672:941 unit. The 75vw/75vh/1137px limits keep the meaningful
 * image under the bounded-content contract, below its natural size, and free
 * from cropping or distortion at every audited viewport. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content > .pa-report-story-band {
  width: min(calc(100% - 2rem), 75vw, 75vh, 1137px) !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 1672 / 941;
  border-color: var(--border) !important;
  background: var(--page-bg) !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content > .pa-report-story-band::after {
  content: none !important;
  display: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content > .pa-report-story-band > img[data-pa-theme-media="content"] {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

@media (max-width: 599.98px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
    #main-content#main-content > .pa-report-story-band {
    width: min(calc(100% - 2rem), 1137px) !important;
  }
}

/* Risk is semantic report data, not brand paint. Light keeps its existing CSS
 * donut; Dark swaps in the equivalent bounded vector chart so the global navy
 * foundation closure cannot flatten its red/amber/green encoding. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content :is(.pa-shared-report-page, .pa-report-card-page)
  .pa-shared-score-donut {
  display: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content :is(.pa-shared-report-page, .pa-report-card-page)
  .pa-shared-score-donut-image[data-pa-theme-media="content"] {
  display: block !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  object-fit: contain !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content :is(.pa-shared-report-page, .pa-report-card-page) :is(.btn-primary, .btn-outline-primary, .btn-outline-light) {
  border-color: var(--border) !important;
  background: var(--surface-hover) !important;
  color: var(--text-main) !important;
}

/* Studio is protected from the public-route closure. At landscape width its
 * mode-rail pseudo labels are invisible duplicates of the accessible button
 * names, so remove their paint rather than keeping zero-opacity text in the
 * accessibility and computed-paint trees. */
@media (min-width: 701px) and (max-width: 1100px) {
  html[data-pa-theme="dark"] body.pa-body.pa-protected-workspace
    .pa-workspace-mode-rail button::after {
    content: none !important;
    display: none !important;
  }
}

html[data-pa-theme="dark"] body.pa-body.pa-protected-workspace
  .pa-studio-file-button {
  border-color: var(--bright-teal) !important;
  background: var(--surface-hover) !important;
  color: var(--text-main) !important;
}

/* The undecided privacy choice is rendered immediately before main. In Dark
 * mode it stays prominent as a bounded document surface and never becomes a
 * viewport overlay, so route copy and focus targets remain unobscured. */
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  > [data-pa-cookie-banner].pa-cookie-banner {
  position: relative !important;
  inset: auto !important;
  z-index: auto !important;
  width: min(72rem, calc(100% - 2rem)) !important;
  min-width: 0 !important;
  max-width: 72rem !important;
  max-height: none !important;
  margin: 1rem auto !important;
  overflow: visible !important;
  border-color: var(--border) !important;
  background: var(--surface) !important;
  background-image: none !important;
  color: var(--text-body) !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  > [data-pa-cookie-banner].pa-cookie-banner .pa-cookie-settings__panel {
  position: relative !important;
  inset: auto !important;
  z-index: auto !important;
  width: min(31rem, 100%) !important;
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
  background-image: none !important;
  color: var(--text-body) !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  > [data-pa-cookie-banner].pa-cookie-banner .pa-cookie-choice {
  border-color: var(--border) !important;
  background: var(--surface-hover) !important;
  color: var(--text-main) !important;
  box-shadow: none !important;
}

/* Strict Identity and account document surfaces. The display face extends
 * beyond its tight line box, so the real heading elements own enough opaque
 * paint to contain every glyph without adding a visually separate text chip. */
html[data-pa-theme="dark"] body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  #main-content#main-content .pa-auth-composition--register .pa-auth-story__content > h1 {
  padding-block: 0.625rem !important;
  background: var(--surface-elevated) !important;
  background-image: none !important;
  line-height: 1.08 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  #main-content#main-content .pa-auth-composition--register #create-account-heading {
  padding-block: 0.5rem !important;
  background: var(--surface) !important;
  background-image: none !important;
}

/* The register photograph and editorial copy are sibling regions on larger
 * screens. Keeping the media in normal flow gives the headline one real,
 * deterministic surface instead of placing live text over variable pixels. */
html[data-pa-theme="dark"] body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  #main-content#main-content .pa-auth-composition--register .pa-auth-story__media > img[data-pa-theme-media="content"] {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
}

@media (min-width: 576px) {
  html[data-pa-theme="dark"] body.pa-body.pa-family-auth:not(.pa-protected-workspace)
    #main-content#main-content .pa-auth-composition--register .pa-auth-story {
    padding: 0 !important;
    display: grid !important;
    grid-template-rows: minmax(16rem, 24rem) minmax(0, 1fr) !important;
    align-items: stretch !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-family-auth:not(.pa-protected-workspace)
    #main-content#main-content .pa-auth-composition--register .pa-auth-story__media {
    position: relative !important;
    z-index: 0 !important;
    inset: auto !important;
    min-height: 16rem !important;
    overflow: hidden !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-family-auth:not(.pa-protected-workspace)
    #main-content#main-content .pa-auth-composition--register .pa-auth-story__content {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    padding: clamp(2rem, 3vw, 3.25rem) !important;
    align-self: stretch !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }
}

@media (max-width: 575.98px) {
  html[data-pa-theme="dark"] body.pa-body.pa-family-auth:not(.pa-protected-workspace)
    #main-content#main-content .pa-auth-composition--register .pa-auth-story {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-rows: 10rem auto !important;
    align-items: stretch !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-family-auth:not(.pa-protected-workspace)
    #main-content#main-content .pa-auth-composition--register .pa-auth-story__media {
    position: relative !important;
    z-index: 0 !important;
    inset: auto !important;
    min-height: 10rem !important;
    overflow: hidden !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-family-auth:not(.pa-protected-workspace)
    #main-content#main-content .pa-auth-composition--register .pa-auth-story__media figcaption {
    display: none !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-family-auth:not(.pa-protected-workspace)
    #main-content#main-content .pa-auth-composition--register .pa-auth-story__content {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    padding: 1.25rem !important;
  }
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-auth.pa-identity-page:not(.pa-protected-workspace)
  > header.pa-site-header.ecosystem-nav {
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-account.pa-identity-page:not(.pa-protected-workspace)
  #main-content#main-content .pa-account-main .pa-recovery-signout,
html[data-pa-theme="dark"] body.pa-body.pa-family-account.pa-identity-page:not(.pa-protected-workspace)
  #main-content#main-content .pa-account-main .pa-recovery-signout:is(:hover, :focus, :focus-visible, :active) {
  border-color: var(--primary-teal) !important;
  background: var(--primary-teal) !important;
  background-image: none !important;
  color: var(--page-bg) !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-account.pa-identity-page:not(.pa-protected-workspace)
  > .pa-footer.pa-footer {
  background: var(--section-bg) !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* Asset previews are bounded content, not card foundations. Give the image a
 * definite box equal to its 16:10 preview region so neither intrinsic portrait
 * height nor late decoding can extend into the metadata below it. */
html[data-pa-theme="dark"] body.pa-body.pa-family-admin:not(.pa-protected-workspace)
  #main-content#main-content .pa-asset-library .pa-asset-preview {
  position: relative !important;
  isolation: isolate !important;
  contain: layout paint !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-admin:not(.pa-protected-workspace)
  #main-content#main-content .pa-asset-library .pa-asset-preview > img[data-pa-theme-media="content"] {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-admin:not(.pa-protected-workspace)
  #main-content#main-content .pa-asset-library .pa-asset-meta {
  position: relative !important;
  z-index: 1 !important;
  isolation: isolate !important;
  background: var(--surface) !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-admin:not(.pa-protected-workspace)
  #main-content#main-content .pa-asset-library .pa-asset-meta > :is(h3, code, span) {
  position: relative !important;
  z-index: 2 !important;
  padding-block: 0.125rem !important;
  background: var(--surface) !important;
  background-image: none !important;
}

/* Final strict public-route closure. These rules only complete the opaque copy
 * surfaces and editorial geometry established in the shared public styles;
 * every Dark paint value remains one of the canonical theme roles. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content .pa-faq-page .pa-faq-manual__plate > img[data-pa-theme-media="content"] {
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content .pa-faq-page .pa-faq-manual__handoff-boundary {
  border-left-color: var(--primary-teal) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home .pa-home-troubleshoot-callout {
  border-left: 4px solid var(--border) !important;
  background: var(--surface-elevated) !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home .pa-home-troubleshoot-callout::before {
  content: none !important;
  display: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home .pa-home-troubleshoot-callout__copy {
  background: var(--surface-elevated) !important;
  background-image: none !important;
  text-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home .pa-home-troubleshoot-callout__copy > :is(small, strong, span) {
  background: transparent !important;
  background-image: none !important;
  text-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home .pa-home-troubleshoot-callout__copy {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home .pa-home-troubleshoot-callout__copy > small {
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home .pa-home-troubleshoot-callout__copy > strong {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home .pa-home-troubleshoot-callout__copy > span {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home .pa-home-hero::before {
  content: none !important;
  display: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home .pa-home-hero-grid {
  background: none !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home .pa-home-story-frame figcaption > strong {
  background: var(--page-bg) !important;
  background-image: none !important;
  text-shadow: none !important;
}

/* Motion Lab keeps a cinematic image stage, but it occupies the right side of
 * the section instead of painting underneath live copy. The copy and media are
 * therefore visually related without creating an indeterminate contrast stack. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .ml-page :is(.ml-hero, .ml-depth, .ml-final) {
  background: var(--page-bg) !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .ml-page .ml-hero-wash {
  display: none !important;
  background: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .ml-page .ml-scroll-cue {
  display: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .ml-page .ml-hero-copy {
  width: min(46rem, 45vw) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .ml-page :is(.ml-depth-copy, .ml-final > .ml-observe) {
  width: min(40.625rem, 45vw) !important;
  max-width: min(40.625rem, 45vw) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .ml-page .ml-hero-bg {
  inset: 0 0 0 58% !important;
  width: 42% !important;
  max-width: none !important;
  height: min(100%, 53.125rem) !important;
  max-height: 53.125rem !important;
  margin: auto 0 !important;
  object-fit: cover !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .ml-page :is(.ml-depth-bg, .ml-final > img) {
  inset: 0 clamp(1rem, 4vw, 4rem) 0 auto !important;
  width: min(38vw, 37.5rem) !important;
  max-width: 37.5rem !important;
  height: min(55vh, 37.5rem) !important;
  max-height: 37.5rem !important;
  margin: auto 0 !important;
  object-fit: cover !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .ml-page .ml-hero-bg {
  inset: 0 clamp(1rem, 4vw, 4rem) 0 auto !important;
  width: min(38vw, 37.5rem) !important;
  max-width: 37.5rem !important;
  height: min(55vh, 37.5rem) !important;
  max-height: 37.5rem !important;
  margin: auto 0 !important;
  object-fit: cover !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .ml-page .ml-depth-grid {
  inset: 0 0 0 58% !important;
  width: 42% !important;
  transform: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .ml-page :is(
    .ml-hero-copy > h1,
    .ml-depth-copy > h2,
    .ml-horizontal-head > h2,
    .ml-curtain > div:not(.ml-curtain-panel) > h2,
    .ml-final > .ml-observe > h2
  ) {
  line-height: 1.2 !important;
}

@media (max-width: 800px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content .ml-page .ml-hero-copy,
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content .ml-page :is(.ml-depth-copy, .ml-final > .ml-observe) {
    width: calc(100% - 2rem) !important;
    max-width: none !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content .ml-page :is(.ml-hero-bg, .ml-depth-bg, .ml-depth-grid, .ml-final > img) {
    display: none !important;
  }
}

@media (min-width: 576px) and (max-width: 1099.98px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
    #main-content#main-content .pa-faq-page .pa-faq-manual__hero > .pa-faq-manual__plate {
    width: min(34rem, 100%) !important;
    height: 18rem !important;
    justify-self: center !important;
  }
}

/* About and FAQ own editorial pictures, not generic thumbnail media. Keep the
 * raster bounded by its route-owned frame while allowing the frame to use its
 * intended dimensions; the global 48vw/48vh content-media ceiling otherwise
 * leaves a large empty navy rail around each image. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-public-page > .pa-about-hero .pa-about-hero-visual {
  border-color: var(--border) !important;
  background: var(--section-bg) !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-public-page > .pa-about-hero .pa-about-hero-visual::before {
  content: none !important;
  display: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-public-page > .pa-about-hero .pa-about-hero-visual > img[data-pa-theme-media="content"] {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  filter: none !important;
}

@media (min-width: 576px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
    #main-content#main-content .pa-faq-page .pa-faq-manual__handoff {
    box-sizing: border-box !important;
    padding: 1rem !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 1.5rem !important;
    background: var(--section-bg) !important;
    background-image: none !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
    #main-content#main-content .pa-faq-page .pa-faq-manual__handoff > img[data-pa-theme-media="content"] {
    position: relative !important;
    z-index: 1 !important;
    inset: auto !important;
    grid-column: 1 !important;
    grid-row: 2 !important;
    display: block !important;
    width: min(70vw, 40rem) !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 40rem !important;
    max-height: 40rem !important;
    margin: 0 auto !important;
    border: 1px solid var(--border) !important;
    background: var(--section-bg) !important;
    object-fit: contain !important;
    object-position: center !important;
    filter: none !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
    #main-content#main-content .pa-faq-page .pa-faq-manual__handoff-inner {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: clamp(2rem, 5vw, 4rem) 0 !important;
    background: transparent !important;
    background-image: none !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
    #main-content#main-content .pa-faq-page .pa-faq-manual__handoff-inner > header {
    padding: clamp(1.25rem, 3vw, 2rem) !important;
    background: var(--surface) !important;
    background-image: none !important;
  }
}

@media (min-width: 768px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
    #main-content#main-content .pa-faq-page .pa-faq-manual__handoff {
    padding-inline: 1.25rem !important;
    grid-template-areas: "copy media" !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 50vw) !important;
    column-gap: clamp(2rem, 4vw, 4rem) !important;
    row-gap: 0 !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
    #main-content#main-content .pa-faq-page .pa-faq-manual__handoff > img[data-pa-theme-media="content"] {
    grid-area: media !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: auto !important;
    align-self: center !important;
    justify-self: stretch !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
    #main-content#main-content .pa-faq-page .pa-faq-manual__handoff-inner {
    position: relative !important;
    z-index: 2 !important;
    grid-area: copy !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    max-width: none !important;
    align-self: center !important;
    justify-self: stretch !important;
    overflow: hidden !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
    #main-content#main-content .pa-faq-page .pa-faq-manual__handoff-routes {
    width: 100% !important;
    max-width: none !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
    #main-content#main-content .pa-faq-page .pa-faq-manual__handoff-routes > a {
    position: relative !important;
    z-index: 2 !important;
    isolation: isolate !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
    border-color: var(--border) !important;
    background: var(--surface-elevated) !important;
    background-image: none !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
    #main-content#main-content .pa-faq-page .pa-faq-manual__handoff-routes > a > :is(span, strong, small, i) {
    position: relative !important;
    z-index: 1 !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
    background: var(--surface-elevated) !important;
    background-image: none !important;
    text-shadow: none !important;
  }
}

@media (min-width: 1600px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
    #main-content#main-content .pa-faq-page .pa-faq-manual__handoff {
    padding-inline: clamp(1rem, 2vw, 2rem) !important;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 40rem) !important;
    justify-content: center !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
    #main-content#main-content .pa-faq-page .pa-faq-manual__handoff > img[data-pa-theme-media="content"] {
    width: 100% !important;
    height: auto !important;
    max-width: 40rem !important;
    max-height: 40rem !important;
    justify-self: end !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
    #main-content#main-content .pa-faq-page .pa-faq-manual__handoff-inner > :is(header, .pa-faq-manual__handoff-routes, .pa-faq-manual__handoff-boundary) {
    width: 100% !important;
    max-width: none !important;
  }
}

/* Dark strict computed-paint closure
 * ----------------------------------
 * Dark uses one opaque navy foundation. Teal and aqua remain reserved for
 * actual controls, selected states, live status, and brand marks. Route-owned
 * geometry and authored media stay intact; ambiguous gradients, blur layers,
 * translucent inset highlights, and off-role accent copy do not. */
html[data-pa-theme="dark"] body.pa-body.pa-body {
  --pa-shadow-master: 0 30px 76px rgba(8, 22, 32, 0.38);
  --pa-shadow-paper: 0 20px 52px rgba(8, 22, 32, 0.28);
  --pa-shadow-card: 0 16px 38px rgba(8, 22, 32, 0.28);
}

html[data-pa-theme="dark"] body.pa-body,
html[data-pa-theme="dark"] body.pa-body :is(.pa-site-header, .pa-site-nav, .pa-main, .pa-footer, .pa-cookie-banner) {
  background-image: none !important;
  text-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body {
  background-color: var(--page-bg) !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body :is(.pa-site-header, .pa-site-nav, .navbar, .ecosystem-nav__shell) {
  border-color: var(--border) !important;
  background-color: var(--page-bg) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-pa-theme="dark"] body.pa-body :is(.pa-footer, footer.pa-footer) {
  border-color: var(--border) !important;
  background-color: var(--section-bg) !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body :is(.pa-cookie-banner, .pa-cookie-settings__panel) {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
  background-image: none !important;
  color: var(--text-body) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-pa-theme="dark"] body.pa-body .pa-cookie-banner :is(h2, strong),
html[data-pa-theme="dark"] body.pa-body .pa-cookie-settings__panel :is(h1, h2, h3, strong) {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body .pa-cookie-banner :is(p, small, span),
html[data-pa-theme="dark"] body.pa-body .pa-cookie-settings__panel :is(p, small, span) {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content :is(
  [class$="-hero"], [class*="-hero "], [class*="__hero"],
  [class$="-header"], [class*="-header "], [class*="__header"],
  [class$="-head"], [class*="-head "], [class*="__head"],
  [class$="-section"], [class*="-section "], [class*="__section"],
  [class$="-card"], [class*="-card "], [class*="__card"],
  [class$="-panel"], [class*="-panel "], [class*="__panel"],
  [class$="-shell"], [class*="-shell "], [class*="__shell"],
  [class$="-workspace"], [class*="-workspace "], [class*="__workspace"],
  [class$="-notice"], [class*="-notice "], [class*="__notice"],
  [class$="-index"], [class*="-index "], [class*="__index"],
  [class$="-toolbar"], [class*="-toolbar "], [class*="__toolbar"],
  [class$="-banner"], [class*="-banner "], [class*="__banner"],
  [class$="-band"], [class*="-band "], [class*="__band"],
  [class$="-rail"], [class*="-rail "], [class*="__rail"],
  [class$="-strip"], [class*="-strip "], [class*="__strip"],
  [class$="-boundary"], [class*="-boundary "], [class*="__boundary"],
  [class$="-summary"], [class*="-summary "], [class*="__summary"],
  [class$="-chapter"], [class*="-chapter "], [class*="__chapter"],
  .card, .alert, .dropdown-menu, .modal-content, .offcanvas, .popover,
  details, form, fieldset, table, thead, tbody, tr, th, td,
  input:not([type="hidden"]), textarea, select, .form-control, .form-select
) {
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  mix-blend-mode: normal !important;
  text-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content *,
html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content *::before,
html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content *::after {
  text-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content :is(
  .pa-hero-media-frame,
  .pa-auth-story__media,
  .pa-security-brief__media,
  .pa-message-art-frame
) {
  box-shadow: var(--pa-shadow-paper) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content :focus-visible,
html[data-pa-theme="dark"] body.pa-body :focus-visible {
  outline: 3px solid var(--bright-teal) !important;
  outline-offset: 3px !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content :is(
  input:not([type="hidden"]), textarea, select, .form-control, .form-select
) {
  border-color: var(--border) !important;
  background: var(--surface) !important;
  background-image: none !important;
  color: var(--text-main) !important;
  opacity: 1 !important;
  filter: none !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content :is(
  input:not([type="hidden"]), textarea, select, .form-control, .form-select
)::placeholder {
  color: var(--text-muted) !important;
  opacity: 1 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content :is(
  input:not([type="hidden"]), textarea, select, button, .btn
):disabled {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
  color: var(--text-muted) !important;
  opacity: 1 !important;
  filter: none !important;
  cursor: not-allowed;
}

html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content :is(h1, h2, h3, h4, h5, h6),
html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content :is(h1, h2, h3, h4, h5, h6) * {
  color: var(--text-main) !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content :is(
  p, li, dt, dd, figcaption, blockquote, caption, th, td,
  a:not(.btn):not(.pa-nav-cta), span, em
) {
  color: var(--text-body) !important;
  mix-blend-mode: normal !important;
  text-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content :is(
  strong, b, label, legend, summary, output, code, kbd
) {
  color: var(--text-main) !important;
  mix-blend-mode: normal !important;
  text-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content :is(
  small, time, .text-muted, .text-secondary, .form-text,
  [class*="-muted"], [class*="__muted"], [class*="-meta"], [class*="__meta"]
) {
  color: var(--text-muted) !important;
  opacity: 1 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content :is(
  .pa-chip, .pa-theme-pill,
  .pa-plan-badge, .pa-plan-mini, .pa-quote-steps__number,
  .pa-maker-tools-list__number, .pa-maker-tools-list__action,
  .pa-revision-number, .pa-sample-report-stamp, .pa-stage-index,
  .pa-answer-source-ai, .pa-answer-source-code,
  .text-danger, .text-warning, .text-info, .text-success,
  .badge, [class*="status-chip"]
) {
  border-color: var(--border) !important;
  background: var(--surface-hover) !important;
  background-image: none !important;
  color: var(--text-body) !important;
  opacity: 1 !important;
  filter: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content :is(li::marker, li::before) {
  color: var(--text-body) !important;
  text-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content :is(
  .btn-primary, .pa-btn--primary, .pa-cookie-choice[data-pa-cookie-choice="allow"]
) {
  border-color: var(--primary-teal) !important;
  background: var(--primary-teal) !important;
  background-image: none !important;
  color: var(--page-bg) !important;
  opacity: 1 !important;
  filter: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content :is(
  .btn-primary, .pa-btn--primary, .pa-cookie-choice[data-pa-cookie-choice="allow"]
) :is(span, strong, b, i, svg) {
  color: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body :is(
  .btn-outline-secondary, .btn-outline-primary, .btn-outline-danger,
  .btn-outline-warning, .btn-outline-success, .pa-btn--ghost
) {
  border-color: var(--border) !important;
  background: var(--surface-hover) !important;
  background-image: none !important;
  color: var(--text-main) !important;
  opacity: 1 !important;
  filter: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body :is(
  .btn-outline-secondary, .btn-outline-primary, .btn-outline-danger,
  .btn-outline-warning, .btn-outline-success, .pa-btn--ghost
) :is(span, strong, b, i, svg) {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body .pa-cookie-choice[data-pa-cookie-choice="allow"] {
  border-color: var(--primary-teal) !important;
  background: var(--primary-teal) !important;
  background-image: none !important;
  color: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body .pa-cookie-choice[data-pa-cookie-choice="reject"] {
  border-color: var(--border) !important;
  background: var(--surface-hover) !important;
  background-image: none !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content :is(
  .pa-auth-frame, .pa-auth-form-panel, .pa-auth-panel, .pa-auth-form,
  .pa-auth-policy, .pa-auth-policy-note, .pa-message-shell,
  .pa-account-main, .pa-account-sidebar, .pa-account-card,
  .pa-billing-overview, .pa-admin-surface, .pa-admin-section,
  .pa-action-panel, .pa-soft-section, .pa-sample-note,
  .pa-maker-tool-boundary, .pa-source-result-state,
  .pa-report-score-rail, .pa-report-actions-bar, .pa-report-title-row,
  .pa-report-module-strip, .pa-report-risk-summary, .pa-packet-grid,
  .pa-score-finding, .pa-evidence-grid > article,
  .pa-upload-preview-panel, .pa-upload-preview-frame, .pa-stage-pill,
  .pa-upload-audit-trail > li, .pa-community-auth-gate,
  .pa-community-compose, .pa-community-workspace, .pa-community-rail,
  .pa-contact-support-panel, .pa-locked-feature,
  .pa-mesh-viewer-toolbar, .pa-mesh-viewer-launch,
  .pa-theme-proof-panel, .pa-report-overview-card
) {
  border-color: var(--border) !important;
  background-color: var(--surface) !important;
  background-image: none !important;
  color: var(--text-body) !important;
  opacity: 1 !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content :is(
  .pa-page-hero:not(.pa-immersive-hero), .pa-theme-hero,
  .pa-dashboard-head, .pa-projects-head, .pa-upload-head, .pa-status-head,
  .pa-account-page-head, .pa-admin-list-hero, .pa-admin-hero,
  .pa-admin-page-head, .pa-auth-story, .pa-auth-trust,
  .pa-community-masthead, .pa-community-detail-hero,
  .pa-get-it-printed__hero, .pa-connect-hub__hero, .pa-discover-hero
) {
  border-color: var(--border) !important;
  background-color: var(--section-bg) !important;
  background-image: none !important;
  color: var(--text-body) !important;
  opacity: 1 !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content :is(
  .pa-theme-icon-tile, .pa-account-profile-visual,
  .pa-home-printer__toast, .pa-message-brand-print,
  .pa-message-art, .pa-contact-hero-art
) {
  border-color: var(--border) !important;
  background-color: var(--surface-elevated) !important;
  background-image: none !important;
  opacity: 1 !important;
  filter: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content :is(
  .pa-dashboard-meter b, .pa-dashboard-case-badges > span,
  .pa-dot.is-low, .pa-plan-mini
) {
  border-color: var(--border) !important;
  background: var(--surface-hover) !important;
  background-image: none !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content .pa-dashboard-kpi svg path {
  stroke: var(--text-muted) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content :is(
  .pa-community-masthead dl, .pa-community-masthead dl > div,
  .pa-doctor-preview-grid > article, .pa-sample-preview-grid > article
) {
  border-color: var(--border) !important;
  background: var(--surface) !important;
  background-image: none !important;
  opacity: 1 !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* The Studio Guide is documentation inside the workspace shell, not a WebGL
 * editing surface. Give every text-bearing guide region an opaque navy plate. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace:has(.studio-guide[data-studio-manual])
  #main-content#main-content .studio-guide {
  background: var(--page-bg) !important;
  background-image: none !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace:has(.studio-guide[data-studio-manual])
  #main-content#main-content .studio-guide *,
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace:has(.studio-guide[data-studio-manual])
  #main-content#main-content .studio-guide *::before,
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace:has(.studio-guide[data-studio-manual])
  #main-content#main-content .studio-guide *::after {
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  mix-blend-mode: normal !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace:has(.studio-guide[data-studio-manual])
  #main-content#main-content .studio-guide :is(
    .studio-guide__hero, .studio-guide__hero-copy, .studio-guide__edition,
    .studio-guide__toc, .studio-guide__section, .studio-guide__final,
    .studio-guide__callout, .studio-guide__control-cards,
    .studio-guide__control-cards > article, .studio-guide__compare,
    .studio-guide__direct-layout, .studio-guide__numbered-map,
    .studio-guide__registry-summary, .studio-guide__glossary,
    .studio-guide__definition-list
  ) {
  border-color: var(--border) !important;
  background-color: var(--surface) !important;
  background-image: none !important;
  color: var(--text-body) !important;
  opacity: 1 !important;
  filter: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace:has(.studio-guide[data-studio-manual])
  #main-content#main-content .studio-guide :is(.studio-guide__section--ink, .studio-guide__section--tinted) {
  background-color: var(--section-bg) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace:has(.studio-guide[data-studio-manual])
  #main-content#main-content .studio-guide :is(.studio-guide__tag, .studio-guide__step, .studio-guide__eyebrow) {
  border-color: var(--border) !important;
  background: var(--surface-elevated) !important;
  background-image: none !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace:has(.studio-guide[data-studio-manual])
  #main-content#main-content .studio-guide :is(.studio-guide__primary, .studio-guide__secondary) {
  border-color: var(--border) !important;
  background: var(--surface-hover) !important;
  background-image: none !important;
  color: var(--text-main) !important;
  opacity: 1 !important;
}

/* Muted copy is AA on the base Surface, but not on Elevated/Hover. Promote
 * small copy inside those plates to Body without changing the role palette. */
html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content :is(
  .pa-cookie-banner, .pa-cookie-settings__panel,
  .pa-account-page-head, .pa-admin-list-hero, .pa-admin-hero,
  .pa-admin-page-head, .pa-auth-story, .pa-auth-trust,
  .pa-theme-icon-tile, .pa-home-printer__toast,
  .pa-message-brand-print, .pa-contact-hero-art,
  .studio-guide__tag, .studio-guide__step,
  .studio-guide__section--ink, .studio-guide__section--tinted
) :is(small, time, .text-muted, .text-secondary, .form-text, [class*="-muted"], [class*="__muted"], [class*="-meta"], [class*="__meta"]) {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content :is(
  .badge, .pa-chip, .pa-theme-pill, .pa-plan-badge,
  .pa-plan-mini, [class*="status-chip"]
) :is(span, small, strong, b, i) {
  color: var(--text-main) !important;
}

/* Residual exact-paint closure. These rules only remove compositing channels
 * identified by the strict computed-paint audit; they do not alter layout. */
html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content :is(
  .pa-hero-media-frame,
  .pa-auth-story__media,
  .pa-security-brief__media,
  .pa-message-art-frame
),
html[data-pa-theme="dark"] body.pa-body.pa-body .pa-skip-link {
  box-shadow: none !important;
  text-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content :is(
  article, aside, section, nav, figure, figcaption, hr,
  table, thead, tbody, tfoot, tr, th, td,
  .pa-caution, .pa-projects-empty,
  .pa-doctor-plan-strip, .pa-doctor-hero-grid,
  .pa-doctor-guidance-rail, .pa-doctor-locked-sample,
  .pa-doctor-locked-sample > article,
  .pa-report-tabs, .pa-report-workflow-status,
  .pa-sample-report-stamp,
  img[data-pa-theme-media]
) {
  border-color: var(--border) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content :is(
  figure, figcaption, .pa-doctor-locked-sample,
  .pa-doctor-locked-sample > article,
  img[data-pa-theme-media]
) {
  opacity: 1 !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  mix-blend-mode: normal !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content :is(
  .pa-doctor-locked-sample > article,
  .pa-sample-report-stamp,
  .pa-resource-hero figcaption
) {
  background: var(--surface) !important;
  background-image: none !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content :is(
  .pa-doctor-locked-sample > article,
  .pa-sample-report-stamp,
  .pa-resource-hero figcaption
) :is(span, p, em) {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content :is(
  .pa-doctor-locked-sample > article,
  .pa-sample-report-stamp,
  .pa-resource-hero figcaption
) :is(strong, h2, h3) {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content .pa-contact-hero-art::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content .pa-legal-operator {
  border-color: var(--border) !important;
  background: var(--surface-hover) !important;
  color: var(--text-body) !important;
}

/* Bootstrap's semantic danger colors are intentionally normalized to the
 * dark role palette while persistent labels and borders retain the warning. */
html[data-pa-theme="dark"] body.pa-body.pa-body main :is(
  .btn-danger, .btn-outline-danger, .text-danger, .link-danger
) {
  border-color: var(--border) !important;
  background: var(--surface-hover) !important;
  background-image: none !important;
  color: var(--text-main) !important;
  opacity: 1 !important;
  filter: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body main a:is(.text-danger, .link-danger, .btn-outline-danger) {
  text-decoration: underline !important;
  text-underline-offset: 0.18em;
}

html[data-pa-theme="dark"] body.pa-body.pa-body main :is(
  .badge, .bg-info, .bg-danger, .bg-warning, .text-dark
) {
  border-color: var(--border) !important;
  background: var(--surface-hover) !important;
  background-image: none !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content [data-pa-printer-play] {
  border-color: var(--border) !important;
  background: var(--surface-hover) !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content [data-pa-printer-play] :is(span, i),
html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content [data-pa-printer-play-label] {
  color: var(--text-main) !important;
}

/* Documentation is content, not a teal-accent canvas. Keep its counters,
 * separators, keyboard table, and edition ornament on opaque navy roles. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace:has(.studio-guide[data-studio-manual])
  #main-content#main-content .studio-guide *,
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace:has(.studio-guide[data-studio-manual])
  #main-content#main-content .studio-guide *::before,
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace:has(.studio-guide[data-studio-manual])
  #main-content#main-content .studio-guide *::after {
  border-color: var(--border) !important;
  text-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace:has(.studio-guide[data-studio-manual])
  #main-content#main-content .studio-guide :is(li::marker, li::before, li::after) {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace:has(.studio-guide[data-studio-manual])
  #main-content#main-content .studio-guide .studio-guide__edition::after {
  background: var(--surface-hover) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace:has(.studio-guide[data-studio-manual])
  #main-content#main-content .studio-guide :is(
    .studio-guide__axis-grid :is(b, mark, strong),
    .studio-guide__definition-list, .studio-guide__shortcuts,
    dl
  ) {
  border-color: var(--border) !important;
  background: var(--surface) !important;
  background-image: none !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace:has(.studio-guide[data-studio-manual])
  #main-content#main-content .studio-guide nav a {
  border-color: var(--border) !important;
  background: var(--surface-hover) !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body > [data-pa-cookie-banner] a {
  color: var(--text-body) !important;
}

/* Iteration 3: preserve authored elevation with a canonical navy shadow
 * channel. Inputs and controls stay flat; substantial panels keep depth. */
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content :is(
    button, .btn, .pa-btn,
    input:not([type="hidden"]), textarea, select, .form-control, .form-select
  ) {
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content :is(
    .pa-page-hero, .pa-theme-hero, .pa-discover-hero,
    .pa-connect-hub__hero, .pa-get-it-printed__hero,
    .pa-dashboard-head, .pa-projects-head, .pa-upload-head,
    .pa-status-head, .pa-account-page-head, .pa-admin-list-hero,
    .pa-admin-hero, .pa-admin-page-head, .pa-auth-story,
    .pa-hero-media-frame, .pa-auth-story__media,
    .pa-security-brief__media, .pa-message-art-frame
  ) {
  box-shadow: var(--pa-shadow-paper) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content :is(
    .card, .pa-white-panel, .pa-light-section, .pa-soft-section,
    .pa-action-panel, .pa-page-panel, .pa-info-card, .pa-gallery-card,
    .pa-market-card, .pa-audit-card, .pa-proof-card,
    .pa-dashboard-kpi, .pa-dashboard-panel, .pa-dashboard-support,
    .pa-project-card, .pa-projects-create, .pa-projects-list,
    .pa-upload-card, .pa-status-card, .pa-source-workspace,
    .pa-source-result-board, .pa-shared-report-page, .pa-report-card-page,
    .pa-account-workspace, .pa-account-card, .pa-manage-shell,
    .pa-admin-reference-body, .pa-admin-panel, .pa-admin-table-shell,
    .pa-auth-frame, .pa-auth-form-panel, .pa-auth-trust,
    .pa-auth-panel, .pa-auth-card, .pa-message-shell,
    .pa-plan-card, .pa-pricing-score-note, .pa-faq-card
  ) {
  box-shadow: var(--pa-shadow-card) !important;
}

/* The wordmark is the branding accent; surrounding editorial kickers remain
 * body copy so teal does not become a general-purpose text color. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home .pa-home-hero .pa-home-kicker > [data-pa-brand][role="img"] {
  color: var(--bright-teal) !important;
}

/* Native file-selector buttons inherit Light-only UA-like paint otherwise. */
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  input[type="file"].form-control::file-selector-button {
  border-color: var(--border) !important;
  background: var(--surface-hover) !important;
  background-image: none !important;
  color: var(--text-main) !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  input[type="file"].form-control:is(:hover, :focus-visible)::file-selector-button {
  border-color: var(--primary-teal) !important;
  background: var(--surface-elevated) !important;
  color: var(--text-main) !important;
}

/* Exact residual border/foundation closure from the complete 185-route run. */
html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content :is(
  hr, .pa-material-facts > div, .pa-doctor-hero-promises > span,
  .pa-projects-create-blocked, .pa-report-workflow-status .is-complete
) {
  border-color: var(--border) !important;
  opacity: 1 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body :is(.pa-footer-bottom, .pa-social-row a) {
  border-color: var(--border) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body .pa-social-row a {
  background: var(--surface-hover) !important;
  background-image: none !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace)
  #main-content#main-content :is(.btn-outline-danger, a.text-danger, a.link-danger, button.text-danger) {
  border-color: var(--border) !important;
  background: var(--surface-hover) !important;
  background-image: none !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace)
  #main-content#main-content .accordion-button .badge {
  border-color: var(--border) !important;
  background: var(--surface-hover) !important;
  background-image: none !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace:has(.studio-guide[data-studio-manual])
  #main-content#main-content .studio-guide .studio-guide__edition::after {
  border-color: var(--border) !important;
  background: var(--surface-hover) !important;
  opacity: 1 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace:has(.studio-guide[data-studio-manual])
  #main-content#main-content .studio-guide .studio-guide__axis-grid :is(b, mark, strong) {
  border-color: var(--border) !important;
  background: var(--surface-hover) !important;
  background-image: none !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace:has(.studio-guide[data-studio-manual])
  #main-content#main-content .studio-guide ol > li::before {
  color: var(--text-body) !important;
}

/* On stacked mobile heroes the image remains full-width but becomes a bounded
 * editorial plate rather than an accidental viewport-tall paint surface. */
@media (max-width: 767.98px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
    #main-content#main-content :is(
      .pa-connect-decision-hero__media,
      .pa-faq-manual__plate,
      .pa-get-it-printed__hero-media,
      .pa-quote-handoff__media,
      .pa-source-briefing .pa-menu-hero__media,
      .pa-shop-hero-media,
      .pa-guides-manual__plate,
      .pa-discover-specimen__image
    ) {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
    #main-content#main-content :is(
      .pa-faq-manual__plate > img,
      .pa-get-it-printed__hero-media > img,
      .pa-quote-handoff__media > img,
      .pa-source-briefing .pa-menu-hero__media > img,
      .pa-shop-hero-media > img,
      .pa-guides-manual__plate > img,
      .pa-discover-specimen__image > img
    ) {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 24svh !important;
    min-height: 0 !important;
    max-height: 24svh !important;
    margin: 0 !important;
    object-fit: cover !important;
  }
}

/* Generic error route closure · 2026-08-27
   Keep the authored recovery illustration, but bound and dark-integrate the
   pale source media with a canonical navy shadow.  The route marker prevents
   this evidence correction from moving the 404 and shared fallback layouts. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-message:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-message-shell--abduction.pa-error-generic-shell
  .pa-message-art.pa-message-art--abduction {
  border-color: var(--border) !important;
  background-color: var(--surface-hover) !important;
  background-image: none !important;
  box-shadow: 0 1.25rem 2.75rem rgba(8, 22, 32, 0.48) !important;
  filter: none !important;
}

@media (min-width: 576px) and (max-width: 899.98px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-message:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-message-shell--abduction.pa-error-generic-shell
    .pa-message-visual {
    box-sizing: border-box !important;
    width: min(100%, 34rem) !important;
    max-width: 34rem !important;
    margin-inline: auto !important;
    justify-self: center !important;
  }
}

/* For Etsy Sellers Dark closure · 2026-08-27
   Canonical navy/slate foundations, deliberate teal highlights, bounded pale
   source media, and a story row that never clips its editorial caption. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-etsy-sellers-page > .pa-page-hero {
  border-color: var(--border) !important;
  background-color: var(--section-bg) !important;
  background-image: none !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-etsy-sellers-page > .pa-page-hero .pa-eyebrow {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-etsy-sellers-page > .pa-page-hero h1 {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-etsy-sellers-page > .pa-page-hero > div:first-child > p {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-etsy-sellers-page > .pa-page-hero .pa-hero-media-frame {
  border-color: var(--border) !important;
  background-color: var(--surface) !important;
  background-image: none !important;
  box-shadow: 0 20px 44px rgba(8, 22, 32, 0.48) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-etsy-sellers-page > .pa-page-hero .pa-hero-media-frame > img[data-pa-theme-media="content"] {
  filter: brightness(0.68) saturate(1.15) contrast(1.1) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-etsy-sellers-page > .pa-theme-story-band {
  min-height: 20rem !important;
  height: auto !important;
  max-height: none !important;
  overflow: hidden !important;
  border: 1px solid var(--border) !important;
  background-color: var(--section-bg) !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-etsy-sellers-page > .pa-theme-story-band::before,
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-etsy-sellers-page > .pa-theme-story-band::after,
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-etsy-sellers-page > .pa-theme-story-band > figcaption::before,
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-etsy-sellers-page > .pa-theme-story-band > figcaption::after {
  content: none !important;
  display: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-etsy-sellers-page > .pa-theme-story-band > img[data-pa-theme-media="content"] {
  min-height: 20rem !important;
  height: 100% !important;
  filter: brightness(0.72) saturate(1.12) contrast(1.1) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-etsy-sellers-page > .pa-theme-story-band > figcaption,
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-etsy-sellers-page > .pa-theme-story-band > figcaption > :is(span, strong, p) {
  background-color: var(--surface) !important;
  background-image: none !important;
  opacity: 1 !important;
  isolation: isolate !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-etsy-sellers-page > .pa-theme-story-band > figcaption > span {
  color: var(--text-muted) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-etsy-sellers-page > .pa-theme-story-band > figcaption > strong {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-etsy-sellers-page > .pa-theme-story-band > figcaption > p {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-etsy-sellers-page > .pa-light-section {
  border-color: var(--border) !important;
  background-color: var(--surface) !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-etsy-sellers-page .pa-info-card {
  border-color: var(--border) !important;
  background-color: var(--surface-elevated) !important;
  background-image: none !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-etsy-sellers-page .pa-info-card > i {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-etsy-sellers-page > .pa-white-panel {
  border-color: var(--border) !important;
  border-left-color: var(--border) !important;
  background-color: var(--surface-elevated) !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-etsy-sellers-page > .pa-audience-grid {
  border-color: var(--border) !important;
  background-color: var(--surface) !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-etsy-sellers-page > .pa-audience-grid > .pa-soft-section {
  border-color: var(--border) !important;
  background-color: var(--surface) !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-etsy-sellers-page > .pa-audience-grid > .pa-action-panel {
  border-color: var(--border) !important;
  background-color: var(--surface-elevated) !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-etsy-sellers-page :is(
    .pa-info-card,
    .pa-white-panel,
    .pa-audience-grid > .pa-soft-section,
    .pa-audience-grid > .pa-action-panel
  ) :is(h2, h3, h4, strong, label) {
  color: var(--text-main) !important;
  text-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-etsy-sellers-page :is(
    .pa-info-card,
    .pa-white-panel,
    .pa-audience-grid > .pa-soft-section,
    .pa-audience-grid > .pa-action-panel
  ) :is(p, li, small, .text-secondary) {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-etsy-sellers-page .pa-audience-grid .small.text-body-secondary {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-etsy-sellers-page .pa-audience-grid .pa-check-list i {
  color: var(--primary-teal) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-etsy-sellers-page :is(.btn-dark-outline, .btn-outline-primary) {
  border-color: var(--primary-teal) !important;
  background-color: var(--surface-hover) !important;
  background-image: none !important;
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-etsy-sellers-page :is(.btn-dark-outline, .btn-outline-primary):is(:hover, :focus-visible) {
  border-color: var(--bright-teal) !important;
  background-color: var(--bright-teal) !important;
  color: var(--page-bg) !important;
}

@media (min-width: 768px) and (max-width: 991.98px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-etsy-sellers-page > .pa-page-hero .pa-hero-media-frame {
    height: 13rem !important;
    max-height: 13rem !important;
  }
}

@media (max-width: 767.98px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-etsy-sellers-page > .pa-page-hero .pa-hero-media-frame {
    height: 10.5rem !important;
    max-height: 10.5rem !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-etsy-sellers-page > .pa-theme-story-band {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-etsy-sellers-page > .pa-theme-story-band > img[data-pa-theme-media="content"] {
    height: 12rem !important;
    min-height: 12rem !important;
  }
}

/* Guides closure: the global menu-hero treatment made the plate an absolute
 * full-bleed layer.  Keep this route editorial and bounded so the authored
 * media remains visible without becoming a pale, viewport-sized Dark surface. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-guides-manual > .pa-guides-manual__hero {
  box-sizing: border-box !important;
  width: min(82rem, calc(100vw - 3rem)) !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: clamp(2rem, 4vw, 4rem) !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(22rem, 0.92fr) !important;
  align-items: center !important;
  gap: clamp(2rem, 4vw, 4rem) !important;
  overflow: visible !important;
  border: 1px solid var(--border) !important;
  background-color: var(--section-bg) !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-guides-manual > .pa-guides-manual__hero > .pa-menu-hero__copy {
  position: relative !important;
  inset: auto !important;
  box-sizing: border-box !important;
  width: auto !important;
  max-width: none !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: clamp(1.5rem, 3vw, 2.5rem) !important;
  align-self: center !important;
  border: 1px solid var(--border) !important;
  background-color: var(--surface-elevated) !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-guides-manual > .pa-guides-manual__hero > .pa-guides-manual__plate {
  position: relative !important;
  inset: auto !important;
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-rows: auto auto !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0.75rem !important;
  overflow: hidden !important;
  border: 1px solid var(--border) !important;
  background-color: var(--surface) !important;
  background-image: none !important;
  box-shadow: none !important;
  isolation: isolate;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-guides-manual > .pa-guides-manual__hero > .pa-guides-manual__plate::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-guides-manual > .pa-guides-manual__hero > .pa-guides-manual__plate > img[data-pa-theme-media="content"] {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: clamp(15rem, 20vw, 18rem) !important;
  min-height: 0 !important;
  max-height: 18rem !important;
  margin: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  filter: brightness(0.68) saturate(1.12) contrast(1.06) !important;
  transform: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-guides-manual > .pa-guides-manual__hero > .pa-guides-manual__plate > figcaption,
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-guides-manual > .pa-guides-manual__hero > .pa-guides-manual__plate > figcaption > :is(span, strong) {
  position: relative !important;
  inset: auto !important;
  z-index: 2 !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  background-color: var(--surface-elevated) !important;
  background-image: none !important;
  opacity: 1 !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  mix-blend-mode: normal !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-guides-manual > .pa-guides-manual__hero > .pa-guides-manual__plate > figcaption {
  display: block !important;
  padding: 1rem !important;
  border: 0 !important;
  color: var(--text-body) !important;
}

@media (max-width: 991.98px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-guides-manual > .pa-guides-manual__hero {
    width: calc(100vw - 2rem) !important;
    grid-template-columns: minmax(0, 1fr) !important;
    padding: clamp(1rem, 4vw, 2rem) !important;
    gap: clamp(1rem, 3vw, 1.5rem) !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-guides-manual > .pa-guides-manual__hero > .pa-menu-hero__copy {
    order: 1 !important;
    width: 100% !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-guides-manual > .pa-guides-manual__hero > .pa-guides-manual__plate {
    order: 2 !important;
    width: 100% !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-guides-manual > .pa-guides-manual__hero > .pa-guides-manual__plate > img[data-pa-theme-media="content"] {
    height: clamp(12rem, 31vw, 15rem) !important;
    max-height: 15rem !important;
  }
}

/* Contact tablet closure: once the hero becomes a two-row composition, its
   still life owns the complete media row instead of retaining the desktop
   50vw evidence cap. */
@media (min-width: 768px) and (max-width: 991.98px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-contact-page .pa-contact-hero-art,
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-contact-page .pa-contact-hero-art > img[data-pa-theme-media="content"] {
      width: 100% !important;
      max-width: 100% !important;
      height: clamp(12rem, 34vw, 17rem) !important;
      max-height: 17rem !important;
      object-fit: cover !important;
    }
}

/* Print Score media must remain a visible part of the Dark hero on wide
 * screens.  Earlier palette closure correctly replaced the foundation paint,
 * but a later composition could collapse the real image to an unpainted field. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-score-entry-page > .pa-theme-hero {
  background-color: var(--section-bg) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-score-entry-page > .pa-theme-hero::before {
  background:
    linear-gradient(90deg, rgba(8, 22, 32, 0.96) 0%, rgba(8, 22, 32, 0.82) 38%, rgba(8, 22, 32, 0.36) 68%, rgba(8, 22, 32, 0.08) 100%),
    linear-gradient(180deg, rgba(8, 22, 32, 0.04), rgba(8, 22, 32, 0.42)) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-score-entry-page .pa-theme-hero-art {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  visibility: visible !important;
  opacity: 1 !important;
  background-color: var(--section-bg) !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-score-entry-page .pa-theme-hero-art > img[data-pa-theme-media="content"] {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  visibility: visible !important;
  opacity: 1 !important;
  object-fit: cover !important;
  object-position: center !important;
  filter: saturate(0.9) brightness(0.76) contrast(1.08) !important;
}

@media (max-width: 767.98px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-score-entry-page .pa-theme-hero-art {
    position: relative !important;
    inset: auto !important;
    min-height: 0 !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-score-entry-page .pa-theme-hero-art > img[data-pa-theme-media="content"] {
    position: relative !important;
    inset: auto !important;
    min-height: 0 !important;
  }
}

/* Changelog Dark closure: temper the pale authored release artwork against the
   canonical navy foundation and keep it explicitly bounded on narrow screens. */
html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-changelog-page > .pa-page-hero
  .pa-hero-media-frame > img[data-pa-theme-media="content"] {
  filter: brightness(0.64) saturate(1.35) contrast(1.12) !important;
}

@media (max-width: 500px) {
  html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-changelog-page > .pa-page-hero
    .pa-hero-media-frame,
  html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-changelog-page > .pa-page-hero
    .pa-hero-media-frame > img[data-pa-theme-media="content"] {
    height: 13rem !important;
    min-height: 0 !important;
    max-height: 13rem !important;
    object-fit: cover !important;
  }
}

/* For Print Shops: a bounded navy editorial hero keeps the real production
 * image visible without allowing it to become an unverified page-sized paint. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-print-shops-page .pa-shop-hero-copy {
  box-sizing: border-box;
  width: min(43rem, 52%) !important;
  margin-bottom: clamp(1.75rem, 3vw, 3rem) !important;
  padding: clamp(1.5rem, 2.8vw, 2.75rem) !important;
  border: 1px solid var(--border) !important;
  background-color: var(--section-bg) !important;
  background-image: none !important;
  color: var(--text-body) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  isolation: isolate !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-print-shops-page .pa-shop-hero-copy > p {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-print-shops-page .pa-shop-hero-copy .pa-eyebrow {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-print-shops-page .pa-shop-hero-facts > div {
  border-color: var(--border) !important;
  background-color: var(--section-bg) !important;
  background-image: none !important;
}

@media (min-width: 901px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-print-shops-page .pa-shop-hero {
    min-height: clamp(42rem, 58vw, 50rem) !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-print-shops-page .pa-shop-hero-inner {
    padding-top: clamp(3.5rem, 7vw, 6rem) !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-print-shops-page .pa-shop-hero h1 {
    font-size: clamp(3rem, 5.2vw, 5.35rem) !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-print-shops-page .pa-shop-hero-media {
    position: absolute !important;
    inset: 50% clamp(1.5rem, 3vw, 3rem) auto auto !important;
    width: min(46vw, 42rem) !important;
    height: min(34vw, 30rem) !important;
    min-height: 0 !important;
    overflow: hidden !important;
    border: 1px solid var(--border) !important;
    transform: translateY(-50%) !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-print-shops-page .pa-shop-hero-media > img {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: cover !important;
    object-position: 64% 50% !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-print-shops-page .pa-shop-hero-shade {
    display: none !important;
  }
}

@media (max-width: 900px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-print-shops-page .pa-shop-hero {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-print-shops-page .pa-shop-hero-inner {
    position: relative !important;
    inset: auto !important;
    order: 1 !important;
    box-sizing: border-box;
    width: 100% !important;
    margin: 0 !important;
    padding: clamp(2.5rem, 7vw, 4rem) clamp(1rem, 4vw, 2rem) 0 !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-print-shops-page .pa-shop-hero-copy {
    width: min(100%, 44rem) !important;
    margin: 0 auto clamp(1.5rem, 4vw, 2.5rem) !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-print-shops-page .pa-shop-hero-facts {
    width: 100% !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-print-shops-page .pa-shop-hero-media {
    position: relative !important;
    inset: auto !important;
    order: 2 !important;
    width: min(calc(100% - 2rem), 44rem) !important;
    height: clamp(11.5rem, 31.25vw, 15rem) !important;
    min-height: 0 !important;
    margin: 0 auto 1rem !important;
    overflow: hidden !important;
    border: 1px solid var(--border) !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-print-shops-page .pa-shop-hero-media > img {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: cover !important;
    object-position: 64% 50% !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-print-shops-page .pa-shop-hero-shade {
    display: none !important;
  }
}

/* Misprint Library Dark tablet closure: the pale specimen strip is reference
 * content, not a page foundation, so keep it deliberately bounded in navy. */
@media (min-width: 576px) and (max-width: 991.98px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
    #main-content#main-content .pa-misprint-page > .pa-light-section:first-child .pa-page-image-band {
    width: min(34rem, 100%) !important;
    max-width: 34rem !important;
    max-height: 15rem !important;
    aspect-ratio: 16 / 7 !important;
    margin-inline: auto !important;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-contact-page .pa-contact-hero-art,
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-contact-page .pa-contact-hero-art > img[data-pa-theme-media="content"] {
      width: 100% !important;
      max-width: 100% !important;
      height: clamp(12rem, 34vw, 17rem) !important;
      max-height: 17rem !important;
      object-fit: cover !important;
    }
}

/* Discover: a deliberate navy editorial split. The image is supporting media,
   not a full-viewport Light-theme backdrop, and teal is reserved for actions. */
html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content .pa-discover-atlas {
  background-color: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content .pa-discover-atlas__hero {
  min-height: 0 !important;
  background-color: var(--section-bg) !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content .pa-discover-atlas__hero > .pa-menu-hero__copy {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(1.5rem, 3vw, 2.75rem) !important;
  border: 1px solid var(--border) !important;
  background-color: var(--surface) !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content .pa-discover-atlas__hero > .pa-menu-hero__copy :is(
    .pa-eyebrow,
    #discover-title,
    .pa-discover-atlas__lede,
    .pa-discover-atlas__key,
    .pa-discover-atlas__key > div,
    .pa-discover-atlas__key dt,
    .pa-discover-atlas__key dd
  ) {
  background-color: var(--surface) !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content .pa-discover-atlas__hero > .pa-discover-specimen {
  position: relative !important;
  inset: auto !important;
  box-sizing: border-box;
  width: 100% !important;
  height: min(42svh, 25rem) !important;
  min-height: 20rem !important;
  margin: 0 !important;
  border: 1px solid var(--border) !important;
  background-color: var(--surface-elevated) !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content .pa-discover-atlas__hero > .pa-discover-specimen::after {
  content: none !important;
  display: none !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content :is(
    .pa-discover-specimen__caption,
    .pa-discover-specimen__caption > span,
    .pa-discover-specimen__caption > span > strong,
    .pa-discover-specimen__caption > span > small
  ) {
  background-color: var(--section-bg) !important;
  background-image: none !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content :is(
    .pa-discover-specimen__legend,
    .pa-discover-specimen__legend > li,
    .pa-discover-specimen__legend > li > span,
    .pa-discover-specimen__legend > li > strong
  ) {
  background-color: var(--surface) !important;
  background-image: none !important;
  color: var(--text-body) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content .pa-discover-route__primary {
  border-color: var(--primary-teal) !important;
  background-color: var(--primary-teal) !important;
  background-image: none !important;
  color: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content .pa-discover-route__primary:hover {
  border-color: var(--bright-teal) !important;
  background-color: var(--bright-teal) !important;
}

@media (min-width: 1100px) {
  html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
    #main-content#main-content .pa-discover-atlas__hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(22rem, 0.88fr) !important;
    align-items: center !important;
    gap: clamp(1.5rem, 3vw, 3rem) !important;
  }
}

@media (min-width: 768px) and (max-width: 1099.98px) {
  html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
    #main-content#main-content .pa-discover-atlas__hero {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1rem !important;
    padding: 2rem clamp(1.5rem, 5vw, 3rem) !important;
  }

  html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
    #main-content#main-content .pa-discover-atlas__hero > .pa-discover-specimen {
    height: min(30svh, 18rem) !important;
    min-height: 15rem !important;
  }
}

@media (max-width: 767.98px) {
  html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
    #main-content#main-content .pa-discover-atlas__hero > .pa-menu-hero__copy {
    padding: 1.25rem !important;
  }

  html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
    #main-content#main-content .pa-discover-atlas__hero > .pa-discover-specimen {
    height: min(54vw, 14rem) !important;
    min-height: 0 !important;
  }
}

/* Exhaustive mobile route closure. The complete 185-route canary exposed a
 * small set of late legacy gradients and layered Bootstrap surfaces that were
 * outside the representative score/report freeze. Keep these corrections
 * Dark-only and give every text-bearing owner one exact canonical navy paint. */
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content :is(
    .pa-benefit-grid > article,
    .pa-horizontal-steps > article,
    .pa-security-lifecycle > header,
    .pa-security-lifecycle > ol > li,
    .pa-security-lifecycle > aside,
    .pa-maker-tool-switcher,
    .pa-maker-tool-switcher :is(a, .pa-maker-tool-switcher__home),
    .pa-status-shell .pa-meta-item,
    .pa-community-knowledge-workspace .pa-empty-state,
    .pa-release-nav > a
  ) {
  border-color: var(--border) !important;
  background-color: var(--surface) !important;
  background-image: none !important;
  color: var(--text-body) !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content :is(
    .pa-account-card-head,
    .pa-dashboard-panel-head,
    .pa-report-title-row,
    .pa-panel-title-row,
    .pa-contrast-card-head,
    .pa-auth-form,
    .pa-admin-panel-header,
    .pa-admin-table-shell,
    .card > .card-body
  ) {
  background-color: var(--surface) !important;
  background-image: none !important;
  color: var(--text-body) !important;
  filter: none !important;
  opacity: 1 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  isolation: isolate;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content :is(
    .pa-account-card-head h2,
    .pa-dashboard-panel-head h2,
    .pa-community-composer-heading > div > :is(.pa-eyebrow, h2),
    .pa-report-title-row :is(h1, h2, p, .pa-report-breadcrumb),
    .pa-panel-title-row > :is(h2, span),
    .pa-contrast-card-head h3,
    .pa-auth-form h2,
    .pa-auth-form .form-label,
    .pa-account-page-head > div:first-child > p,
    #analytics > p
  ) {
  display: inline-block !important;
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  padding-block: 0.18em !important;
  background-color: var(--surface) !important;
  background-image: none !important;
  color: var(--text-body) !important;
  line-height: 1.45 !important;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  filter: none !important;
  opacity: 1 !important;
}

/* Account header copy shares the header surface, not a separate text chip. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-account:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-account-page-head > div:first-child > p {
  background-color: transparent !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content :is(
    .pa-account-card-head h2,
    .pa-dashboard-panel-head h2,
    .pa-community-composer-heading h2,
    .pa-report-title-row :is(h1, h2),
    .pa-panel-title-row > h2,
    .pa-contrast-card-head h3,
    .pa-auth-form h2
  ) {
  color: var(--text-main) !important;
  line-height: 1.25 !important;
}

/* Bootstrap paints striped cells with a very large inset shadow. It is
 * visually subtle but sits above the cell background in Axe's paint graph. */
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content .table > :not(caption) > * > * {
  border-color: var(--border) !important;
  background-color: var(--surface) !important;
  background-image: none !important;
  color: var(--text-body) !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content .table > thead > * > * {
  background-color: var(--surface-elevated) !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content .table :is(th, td) > :is(div, span, strong, small, a) {
  background-color: inherit !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-admin:not(.pa-protected-workspace)
  #main-content#main-content#main-content :is(.card, .card-body, .pa-admin-panel, .pa-admin-panel-header) {
  border-color: var(--border) !important;
  background-color: var(--surface) !important;
  background-image: none !important;
  color: var(--text-body) !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-admin:not(.pa-protected-workspace)
  #main-content#main-content#main-content :is(
    h1,
    .pa-admin-panel-header > h2,
    .card-body .display-6,
    .card-body .h3,
    .card-body .h4,
    .card-body .h5.card-title,
    .card-body .fw-semibold,
    .card-body .text-break
  ) {
  box-sizing: border-box;
  max-width: 100%;
  padding-block: 0.16em !important;
  background-color: var(--surface) !important;
  background-image: none !important;
  color: var(--text-main) !important;
  line-height: 1.3 !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-admin:not(.pa-protected-workspace)
  #main-content#main-content#main-content dd > a.text-decoration-none {
  display: inline-flex !important;
  align-items: center;
  min-width: 24px;
  min-height: 24px;
  padding-block: 2px;
}

/* Text rendered over content imagery gets a compact, opaque caption plate.
 * The image remains visible and meaningful; only the text's paint owner is
 * made deterministic for strict contrast evaluation. */
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content :is(.pa-misprint-label, .pa-gallery-visual-label),
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-contact-hero-copy > :is(.pa-eyebrow, h1, p, .pa-contact-operator),
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-sellers-page .pa-page-hero > div:first-child > :is(.pa-eyebrow, h1, p) {
  display: block !important;
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  padding: 0.18em 0.3em !important;
  background-color: var(--surface) !important;
  background-image: none !important;
  color: var(--text-body) !important;
  line-height: 1.45 !important;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  filter: none !important;
  opacity: 1 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content :is(.pa-misprint-label, .pa-gallery-visual-label),
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content :is(.pa-contact-hero-copy, .pa-sellers-page .pa-page-hero) h1 {
  color: var(--text-main) !important;
}

/* Direct plates for the handful of fixed or immersive compositions whose
 * neighboring media intentionally overlaps their section geometry. */
html[data-pa-theme="dark"] body.pa-body.pa-body #pa-cookie-banner-title,
html[data-pa-theme="dark"] body.pa-body.pa-body #pa-cookie-banner-description,
html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content#main-content :is(
  #home-title,
  .vl-integration-finale__copy > .vl-kicker,
  .vl-integration-theater__copy > .vl-kicker,
  #vl-printer-theater-title,
  button[data-vl-three-quality] > [data-vl-three-control-label],
  .pa-report-breadcrumb,
  .pa-risk-chip,
  .pa-community-composer-heading .form-label,
  .pa-auth-form .form-label,
  #Input_CurrentPassword,
  #Input_ConfirmPassword,
  #Input_Code,
  #analytics > p
) {
  background-color: var(--surface) !important;
  background-image: none !important;
  color: var(--text-body) !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body :is(#pa-cookie-banner-title, #pa-cookie-banner-description),
html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content#main-content :is(
  #home-title,
  .vl-integration-finale__copy > .vl-kicker,
  .vl-integration-theater__copy > .vl-kicker,
  #vl-printer-theater-title,
  button[data-vl-three-quality] > [data-vl-three-control-label],
  .pa-report-breadcrumb,
  .pa-community-composer-heading .form-label,
  .pa-auth-form .form-label,
  #analytics > p
) {
  display: inline-block !important;
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  padding-block: 0.2em !important;
  line-height: 1.45 !important;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace) .btn-close {
  border-color: var(--border) !important;
  background-color: var(--surface-hover) !important;
  background-image: none !important;
  color: var(--text-main) !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body #main-content#main-content#main-content
  input[accept=".stl,.3mf"] {
  position: relative !important;
  z-index: 2 !important;
  background-color: var(--surface-hover) !important;
  background-image: none !important;
  color: var(--text-main) !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

/* Interactive teal controls use the darkest canonical navy as their label
 * color. Light text on #28B8C4 is only 2.23:1. */
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content .btn-primary {
  border-color: var(--primary-teal) !important;
  background-color: var(--primary-teal) !important;
  background-image: none !important;
  color: var(--page-bg) !important;
  text-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content .btn-primary :is(span, strong, b, i),
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content .btn-primary i::before {
  color: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-account:not(.pa-protected-workspace)
  #main-content#main-content#main-content :is(
    .pa-plan-mini > small,
    .pa-account-plan-grid article.is-current > small
  ),
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace
  #main-content#main-content#main-content :is(
    small[data-pa-detail-level-message],
    small[data-pa-workspace-context-message],
    summary[data-studio-command-owner="project.restore-details"] small
  ) {
  color: var(--text-body) !important;
  opacity: 1 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-auth-shell.pa-auth-continuation--external
  a[target="_blank"][rel="noopener"]:is([href$="terms"], [href$="privacy"]) {
  color: var(--text-body) !important;
  text-decoration: underline !important;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.2em;
}

/* Decorative glyphs are document furniture, not active-state accents. */
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-public-page li > i.bi::before,
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-community-page i.bi::before,
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-contact-route-list i.bi::before,
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-maker-tools :is(.pa-maker-tools-proof, .pa-maker-tools-hero__map) i.bi::before {
  color: var(--text-body) !important;
  text-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-community-page :is(button, .btn, a.btn) i.bi::before {
  color: inherit !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace) .alert-success {
  --bs-alert-border-color: var(--border);
  border-color: var(--border) !important;
  background-color: var(--surface-elevated) !important;
  background-image: none !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-admin:not(.pa-protected-workspace)
  #main-content#main-content .alert-warning .small {
  color: var(--text-body) !important;
}

/* Preserve elevation while keeping every shadow on the canonical #081620
 * channel. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  :is(.pa-auth-frame, .pa-auth-shell > .row, .pa-auth-card, .pa-auth-form, .pa-auth-panel, .pa-auth-form-panel),
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-community:not(.pa-protected-workspace)
  :is(#ask-community, .pa-community-composer-dialog),
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-message:not(.pa-protected-workspace)
  :is(.pa-message-art, .pa-message-brand-print),
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content :is(#security-hero, .pa-sellers-page .pa-theme-icon-tile, .pa-what-we-check-page .pa-theme-icon-tile) {
  box-shadow: 0 1.25rem 2.75rem rgba(8, 22, 32, 0.34) !important;
}

/* Content images must remain below one quarter of the viewport paint area.
 * Wide story bands stay cinematic through cropping rather than by becoming a
 * full-screen uncontrolled paint surface. */
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-theme-story-band {
  min-height: 0 !important;
  max-height: 24svh !important;
  overflow: hidden !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-theme-story-band > img[data-pa-theme-media="content"] {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  height: 24svh !important;
  max-width: 100% !important;
  max-height: 24svh !important;
  object-fit: cover !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content :is(
    .pa-contact-hero-art,
    .pa-sellers-page .pa-hero-media-frame,
    .pa-security-brief__media
  ) {
  min-height: 0 !important;
  max-width: 50vw !important;
  max-height: 48svh !important;
  overflow: hidden !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content :is(
    .pa-contact-hero-art,
    .pa-sellers-page .pa-hero-media-frame,
    .pa-security-brief__media
  ) > img[data-pa-theme-media="content"] {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  height: 48svh !important;
  max-width: 50vw !important;
  max-height: 48svh !important;
  object-fit: cover !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-community:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-community-detail-page :is(
    .pa-mesh-viewer-canvas > canvas,
    .pa-mesh-viewer-fallback
  ) {
  width: min(100%, 50vw) !important;
  height: min(48svh, 30rem) !important;
  max-width: 50vw !important;
  max-height: min(48svh, 30rem) !important;
  object-fit: contain !important;
}

@media (max-width: 767.98px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-community:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-community-detail-page :is(
      .pa-mesh-viewer-canvas > canvas,
      .pa-mesh-viewer-fallback
    ) {
    width: min(250px, 100%) !important;
    height: 230px !important;
    max-width: 250px !important;
    max-height: 230px !important;
  }
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-status-shell .pa-upload-preview-image {
  width: 150px !important;
  height: 150px !important;
  max-width: 100% !important;
  max-height: 150px !important;
  object-fit: contain !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content [data-motion-lab] img[data-pa-theme-media="content"] {
  display: block !important;
  max-width: 50vw !important;
  max-height: 48svh !important;
  object-fit: cover !important;
}

@media (max-width: 767.98px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content :is(
      .pa-contact-hero-art,
      .pa-sellers-page .pa-hero-media-frame,
      .pa-security-brief__media
    ) {
    width: 100% !important;
    max-width: 100% !important;
    height: 24svh !important;
    max-height: 24svh !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content :is(
      .pa-contact-hero-art,
      .pa-sellers-page .pa-hero-media-frame,
      .pa-security-brief__media
    ) > img[data-pa-theme-media="content"],
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content [data-motion-lab] img[data-pa-theme-media="content"] {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 24svh !important;
    max-width: 100% !important;
    max-height: 24svh !important;
    object-fit: cover !important;
    transform: none !important;
  }
}

/* Guides mobile navigation: keep all four chapter destinations painted inside
 * the viewport as a compact, canonical two-column index. */
@media (max-width: 640px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-guides-manual .pa-guides-manual__chapter-strip {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 !important;
    overflow: visible !important;
    border-color: var(--border) !important;
    background-color: var(--surface) !important;
    background-image: none !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-guides-manual .pa-guides-manual__chapter-strip > span {
    grid-column: 1 / -1 !important;
    padding: 0.75rem !important;
    border-bottom: 1px solid var(--border) !important;
    background-color: var(--surface) !important;
    background-image: none !important;
    color: var(--text-body) !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-guides-manual .pa-guides-manual__chapter-strip > a {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    gap: 0.45rem !important;
    flex: none !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 3.5rem !important;
    padding: 0.75rem !important;
    align-items: center !important;
    border-right: 1px solid var(--border) !important;
    border-bottom: 1px solid var(--border) !important;
    background-color: var(--surface) !important;
    background-image: none !important;
    color: var(--text-body) !important;
    overflow-wrap: anywhere !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-document:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-guides-manual .pa-guides-manual__chapter-strip > a > :is(b, span) {
    background-color: var(--surface) !important;
    background-image: none !important;
    opacity: 1 !important;
  }
}

/* Customer Approval Dark closure: keep the editorial band tall enough for its
 * caption, bound its pale source media on small screens, and use only canonical
 * teal for checklist status marks. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-customer-approval-page > .pa-theme-story-band {
  min-height: 20rem !important;
  max-height: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-customer-approval-page > .pa-theme-story-band > img[data-pa-theme-media="content"] {
  height: 100% !important;
  min-height: 20rem !important;
  max-height: none !important;
  filter: brightness(0.64) saturate(1.18) contrast(1.12) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-customer-approval-page .pa-audience-grid .pa-check-list i {
  color: var(--primary-teal) !important;
}

@media (max-width: 767.98px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-customer-approval-page > .pa-page-hero .pa-hero-media-frame {
    height: 12rem !important;
    max-height: 12rem !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-customer-approval-page > .pa-theme-story-band {
    min-height: 0 !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-customer-approval-page > .pa-theme-story-band > img[data-pa-theme-media="content"] {
    height: 13rem !important;
    min-height: 13rem !important;
  }
}

/* For Sellers Dark closure: the immersive source image becomes a bounded
 * editorial partner so it cannot collapse into a half-width background strip.
 * All foundations stay on the canonical navy ladder. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-sellers-page > .pa-page-hero {
  display: grid !important;
  min-height: 0 !important;
  padding:
    clamp(3rem, 6vw, 5rem)
    max(1.25rem, calc((100vw - 76rem) / 2)) !important;
  grid-template-columns: minmax(0, 36rem) minmax(20rem, 38rem) !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(2rem, 5vw, 5rem) !important;
  overflow: hidden !important;
  background-color: var(--page-bg) !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-sellers-page > .pa-page-hero > div:first-child {
  position: relative !important;
  z-index: 3 !important;
  box-sizing: border-box;
  width: 100% !important;
  max-width: 36rem !important;
  padding: clamp(1.4rem, 3vw, 2.25rem) !important;
  border: 1px solid var(--border) !important;
  border-left: 4px solid var(--border) !important;
  border-radius: 8px !important;
  background-color: var(--surface) !important;
  background-image: none !important;
  color: var(--text-body) !important;
  box-shadow: 0 1.25rem 2.75rem rgba(8, 22, 32, 0.34) !important;
  isolation: isolate !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-sellers-page > .pa-page-hero > div:first-child > :is(.pa-eyebrow, h1, p) {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  box-sizing: border-box;
  width: auto !important;
  max-width: 100% !important;
  padding-inline: 0 !important;
  background-color: var(--surface) !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-sellers-page > .pa-page-hero > div:first-child > .pa-eyebrow {
  color: var(--text-body) !important;
  line-height: 1.45 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-sellers-page > .pa-page-hero > div:first-child > h1 {
  max-width: 12ch !important;
  margin-block: 0.8rem 1rem !important;
  padding-block: 0.18em !important;
  color: var(--text-main) !important;
  font-size: clamp(3rem, 4.8vw, 4.6rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.045em !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-sellers-page > .pa-page-hero > div:first-child > p {
  margin-bottom: 1.25rem !important;
  padding-block: 0.12rem !important;
  color: var(--text-body) !important;
  line-height: 1.65 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-sellers-page > .pa-page-hero > .pa-hero-media-frame {
  position: relative !important;
  z-index: 1 !important;
  inset: auto !important;
  width: min(100%, 38rem) !important;
  min-height: 0 !important;
  height: clamp(20rem, 30vw, 27rem) !important;
  max-width: 38rem !important;
  max-height: 27rem !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  background-color: var(--section-bg) !important;
  background-image: none !important;
  box-shadow: 0 1.25rem 2.75rem rgba(8, 22, 32, 0.34) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-sellers-page > .pa-page-hero > .pa-hero-media-frame > img[data-pa-theme-media="content"] {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  filter: brightness(0.66) saturate(1.14) contrast(1.1) !important;
  transform: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-sellers-page > .pa-page-hero > .pa-hero-media-frame::after {
  background: linear-gradient(180deg, rgba(8, 22, 32, 0.02), rgba(8, 22, 32, 0.2)) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-sellers-page > .pa-theme-story-band {
  min-height: 18rem !important;
  height: 18rem !important;
  max-height: 18rem !important;
  background-color: var(--section-bg) !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-sellers-page > .pa-theme-story-band::before,
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-sellers-page > .pa-theme-story-band::after,
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-sellers-page > .pa-theme-story-band > figcaption::before,
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-sellers-page > .pa-theme-story-band > figcaption::after {
  content: none !important;
  display: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-sellers-page > .pa-theme-story-band > img[data-pa-theme-media="content"] {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  filter: brightness(0.62) saturate(1.12) contrast(1.1) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-sellers-page > .pa-theme-story-band > figcaption {
  position: relative !important;
  z-index: 3 !important;
  align-self: end !important;
  box-sizing: border-box;
  width: min(32rem, 48%) !important;
  min-height: 0 !important;
  padding: 1rem !important;
  gap: 0.5rem !important;
  background-color: var(--surface) !important;
  background-image: none !important;
  isolation: isolate !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-sellers-page > .pa-theme-story-band > figcaption > :is(span, strong, p) {
  position: relative !important;
  z-index: 1 !important;
  box-sizing: border-box;
  background-color: var(--surface) !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-sellers-page > .pa-theme-story-band > figcaption > strong {
  display: block !important;
  padding-block: 0.6rem !important;
  line-height: 1.15 !important;
  isolation: isolate !important;
}

@media (max-width: 900px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-sellers-page > .pa-page-hero {
    padding: 2rem 1rem !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.25rem !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-sellers-page > .pa-page-hero > :is(div:first-child, .pa-hero-media-frame) {
    width: 100% !important;
    max-width: 44rem !important;
    margin-inline: auto !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-sellers-page > .pa-page-hero > .pa-hero-media-frame {
    height: 16rem !important;
    max-height: 16rem !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-sellers-page > .pa-theme-story-band {
    height: 17rem !important;
    min-height: 17rem !important;
    max-height: 17rem !important;
  }
}

@media (max-width: 500px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-sellers-page > .pa-page-hero > div:first-child {
    padding: 1.1rem !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-sellers-page > .pa-page-hero > div:first-child > h1 {
    font-size: clamp(2.35rem, 12vw, 3rem) !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-sellers-page > .pa-page-hero > .pa-hero-media-frame {
    height: 12rem !important;
    max-height: 12rem !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-sellers-page > .pa-theme-story-band {
    height: 15rem !important;
    min-height: 15rem !important;
    max-height: 15rem !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-sellers-page > .pa-theme-story-band > figcaption {
    width: 100% !important;
    padding: 0.75rem !important;
    gap: 0.4rem !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-sellers-page > .pa-theme-story-band > figcaption > strong {
    padding-block: 0.25rem !important;
    font-size: 1.35rem !important;
    line-height: 1.12 !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-sellers-page > .pa-theme-story-band > figcaption > p {
    font-size: 0.84rem !important;
    line-height: 1.5 !important;
  }
}

/* Source Check: the illustration is evidence inside the composition, not a
 * pale page foundation. Preserve the bounded two-panel geometry from
 * workflow-surfaces and resolve every surrounding paint to the canonical
 * navy/teal system. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-source-tool > .pa-source-briefing {
  background-color: var(--page-bg) !important;
  background-image: none !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-source-briefing > .pa-source-briefing__copy {
  border-color: var(--border) !important;
  border-left-color: var(--border) !important;
  background-color: var(--surface) !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-source-briefing__copy :is(
    #sourcePageTitle,
    p,
    .pa-source-briefing__boundary,
    .pa-source-briefing__boundary > span
  ) {
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-source-briefing__copy #sourcePageTitle {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-source-briefing__copy :is(
    p,
    .pa-source-briefing__boundary > span
  ) {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-source-briefing__copy :is(
    .pa-eyebrow,
    .pa-source-briefing__boundary i
  ) {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-source-briefing__visual > .pa-menu-hero__media {
  border-color: var(--border) !important;
  background-color: var(--section-bg) !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content#main-content
  .pa-source-briefing__visual > .pa-menu-hero__media > img[data-pa-theme-media="content"] {
  filter: brightness(0.48) saturate(1.32) contrast(1.1) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-source-briefing__visual .pa-source-privacy-card {
  border-color: var(--border) !important;
  background-color: var(--surface-elevated) !important;
  background-image: none !important;
  color: var(--text-body) !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-source-privacy-card :is(
    .pa-blue-label,
    strong
  ) {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-source-privacy-card > .pa-blue-label {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-source-privacy-card > p {
  color: var(--text-body) !important;
}

/* Print Score brand hierarchy.  Foundation paint stays on the canonical navy
 * ladder; teal is restored only to the page's explicit highlights and action
 * cues after the global strict-paint reset. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-score-entry-page .pa-theme-hero h1 > span {
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-score-entry-page .pa-theme-feature-section {
  background-color: var(--section-bg) !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-score-entry-page .pa-theme-feature-grid > article {
  border-color: var(--border) !important;
  background-color: var(--surface-elevated) !important;
  background-image: none !important;
}

/* Print Analysis and Seller Workshop route closure. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-doctor-page .pa-doctor-decision-card {
  box-shadow: 0 1.5rem 4rem rgba(8, 22, 32, 0.34) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-doctor-page .pa-doctor-decision-card figcaption {
  background-color: var(--surface-elevated) !important;
  background-image: none !important;
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-doctor-page .pa-doctor-intro h1 > span {
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-maker-tools .pa-maker-tools-list__action {
  border-color: var(--border) !important;
  background-color: var(--surface-elevated) !important;
  background-image: none !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-maker-tools .pa-maker-tools-list__action :is(span, strong, b, i, svg) {
  color: inherit !important;
}

@media (min-width: 768px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-score-entry-page > .pa-theme-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 58%) minmax(0, 42%) !important;
    align-items: center !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-score-entry-page > .pa-theme-hero::before {
    content: none !important;
    display: none !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-score-entry-page .pa-theme-hero-copy {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    background-color: var(--section-bg) !important;
    background-image: none !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-score-entry-page .pa-theme-hero-art {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: min(48svh, 30rem) !important;
    min-height: 0 !important;
    margin: 0 !important;
    border: 1px solid var(--border) !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-score-entry-page .pa-theme-hero-art > img[data-pa-theme-media="content"] {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
  }
}

/* Iteration 8: contain the measured glyph boxes and give text inside mobile
 * media compositions a local, canonical paint owner. The Iteration 7 probe
 * found no occluding samples; remaining ambiguity was 2-8px line-box escape. */
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content :is(
    #connect-heading,
    #discover-title,
    #printShopsTitle,
    #get-it-printed-heading,
    #guides-title,
    #sourcePageTitle,
    #discover-paths-title,
    #guides-next-title,
    .pa-section-intro > h2,
    .pa-guides-chapter__header > *,
    .pa-sample-report-page .pa-report-title-row .h1
  ) {
  line-height: 1.15 !important;
  padding-block: 0.22em !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content :is(
    .pa-connect-hub__lede,
    .pa-menu-hero__copy > p
  ) {
  position: relative !important;
  z-index: 4 !important;
  display: block !important;
  padding-block: 0.25rem !important;
  line-height: 1.6 !important;
  background-color: var(--surface) !important;
  background-image: none !important;
  isolation: isolate;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-guides-manual__closing
  .btn-primary.btn[href$="troubleshoot"] {
  border-color: var(--primary-teal) !important;
  background-color: var(--primary-teal) !important;
  background-image: none !important;
  color: var(--page-bg) !important;
}

/* Final score/report precedence. Sequential markers are neutral document
 * furniture rather than semantic brand highlights, and report labels use the
 * canonical muted text role. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-score-entry-page
  .pa-horizontal-steps > article > span,
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-report-detail-shell
  .pa-report-process-strip li.is-complete > span {
  border-color: var(--border) !important;
  background-color: var(--surface-hover) !important;
  background-image: none !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-report-detail-shell :is(
    .pa-report-process-score > span,
    .pa-report-fingerprint .pa-kicker,
    .pa-report-signal-grid > article > span
  ) {
  color: var(--text-body) !important;
}

/* On a phone the Dark score hero is one deliberate composition: authoritative
 * copy first, full-width media second. This also keeps the display face and
 * proof labels wholly inside their opaque paint owners. */
@media (max-width: 767.98px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-score-entry-page > .pa-theme-hero {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-score-entry-page .pa-theme-hero-copy {
    order: 1 !important;
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: clamp(2.9rem, 12vw, 4.2rem) clamp(1rem, 6vw, 1.45rem) 1.4rem !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-score-entry-page .pa-theme-hero h1 {
    display: block !important;
    box-sizing: border-box;
    width: fit-content !important;
    max-width: min(100%, 14ch) !important;
    padding: 0.15em 0.04em !important;
    background-color: transparent !important;
    background-image: none !important;
    line-height: 1.15 !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-score-entry-page .pa-theme-hero-points {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-score-entry-page
    .pa-theme-hero-points > article {
    box-sizing: border-box;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-score-entry-page
    .pa-theme-hero-points > article > strong {
    display: block !important;
    box-sizing: border-box;
    width: fit-content !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 0.12rem 0.18rem !important;
    background-color: transparent !important;
    background-image: none !important;
    line-height: 1.35 !important;
    overflow-wrap: anywhere;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-score-entry-page .pa-theme-hero-art {
    position: relative !important;
    inset: auto !important;
    order: 2 !important;
    width: 100% !important;
    height: min(52vw, 220px) !important;
    margin: 0 !important;
    transform: none !important;
  }
}

/* 404 Dark closure: the authored recovery illustration remains content, but
   uses a canonical navy shadow and a bounded tablet footprint. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-message:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-message-shell--abduction:not(.pa-error-generic-shell)
  .pa-message-art.pa-message-art--abduction {
  width: min(100%, 32rem) !important;
  max-width: 32rem !important;
  margin-inline: auto !important;
  border-color: var(--border) !important;
  background-color: var(--surface-hover) !important;
  background-image: none !important;
  box-shadow: 0 1.25rem 2.75rem rgba(8, 22, 32, 0.48) !important;
}

/* Marketplace Source Guide: use the authored navy source scene in Dark and
   keep the compact directory label within its painted bounds. */
html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-marketplace-source-page
  > .pa-marketplace-source-hero .pa-hero-media-frame > img:not(.pa-dark-authored-media) {
  content: url("../img/theme/print-lab-dark/marketplace-source-shield.png?v=original-4ec97187356414a8d595ae6c3387e1abab9630b7f0a62c0b49643d8b9229dce4") !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-marketplace-source-page
  > .pa-marketplace-source-hero .pa-hero-media-frame > img.pa-dark-authored-media {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-marketplace-source-directory__intro > .pa-eyebrow {
  display: block !important;
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100%;
  padding-block: 0.22em !important;
  padding-inline: 0.35em !important;
  border: 1px solid var(--border) !important;
  background-color: var(--surface) !important;
  background-image: none !important;
  color: var(--text-muted) !important;
  line-height: 1.45 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-marketplace-source-directory__intro {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  align-items: start !important;
  gap: 0.7rem !important;
  overflow: clip;
  isolation: isolate;
  background-color: var(--surface) !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-marketplace-source-directory__intro > :is(.pa-eyebrow, h2, p) {
  position: relative !important;
  z-index: 1;
  box-sizing: border-box;
  margin: 0 !important;
  background-color: var(--surface) !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-marketplace-source-directory__intro > h2 {
  display: block !important;
  width: fit-content;
  max-width: 100%;
  padding-block: 0.18em !important;
  color: var(--text-main) !important;
  line-height: 1.16 !important;
}

@media (max-width: 767.98px) {
  html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-marketplace-source-page
    > .pa-marketplace-source-hero .pa-hero-media-frame,
  html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-marketplace-source-page
    > .pa-marketplace-source-hero .pa-hero-media-frame > img {
    height: 11.25rem !important;
    max-height: 11.25rem !important;
    object-fit: cover !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-marketplace-source-page
    > .pa-marketplace-source-principle > img[data-pa-theme-media="content"] {
    width: calc(100% - 2px) !important;
    max-width: calc(100% - 2px) !important;
    margin-inline: auto !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-marketplace-source-directory__intro > .pa-eyebrow {
    font-size: 0.7rem !important;
    letter-spacing: 0.08em !important;
    white-space: nowrap;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
    #main-content#main-content#main-content #analytics > p {
    display: block !important;
    width: 100% !important;
    padding-inline: 0.0625rem !important;
    overflow: hidden;
    isolation: isolate;
  }
}

/* Maker Services Dark closure: restore the story caption as a real grid cell,
   bound content media on small screens, and keep checklist state canonical. */
html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-maker-services-page
  > .pa-page-hero .pa-hero-media-frame > img[data-pa-theme-media="content"] {
  filter: brightness(0.72) saturate(1.1) contrast(1.06) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-maker-services-page > .pa-theme-story-band {
  display: grid !important;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.85fr) !important;
  grid-template-rows: auto !important;
  align-items: stretch !important;
  min-height: 20rem !important;
  height: auto !important;
  max-height: none !important;
  overflow: hidden !important;
  border-color: var(--border) !important;
  background-color: var(--section-bg) !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-maker-services-page > .pa-theme-story-band::before,
html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-maker-services-page > .pa-theme-story-band::after,
html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-maker-services-page > .pa-theme-story-band > figcaption::before,
html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-maker-services-page > .pa-theme-story-band > figcaption::after {
  content: none !important;
  display: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-maker-services-page > .pa-theme-story-band
  > img[data-pa-theme-media="content"] {
  position: relative !important;
  inset: auto !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  display: block !important;
  width: 100% !important;
  height: 20rem !important;
  min-height: 20rem !important;
  max-height: 20rem !important;
  object-fit: cover !important;
  filter: brightness(0.7) saturate(1.12) contrast(1.08) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-maker-services-page > .pa-theme-story-band > figcaption {
  position: relative !important;
  inset: auto !important;
  z-index: 2 !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: stretch !important;
  display: grid !important;
  align-content: center !important;
  gap: 0.65rem !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: clamp(1.5rem, 3vw, 2.5rem) !important;
  overflow: visible !important;
  border-color: var(--border) !important;
  background-color: var(--surface) !important;
  background-image: none !important;
  color: var(--text-body) !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-maker-services-page > .pa-theme-story-band > figcaption > :is(span, strong, p) {
  position: relative !important;
  z-index: 1;
  margin: 0 !important;
  background-color: var(--surface) !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-maker-services-page > .pa-theme-story-band > figcaption > span {
  color: var(--text-muted) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-maker-services-page > .pa-theme-story-band > figcaption > strong {
  display: block !important;
  box-sizing: border-box;
  padding-block: 0.18em !important;
  color: var(--text-main) !important;
  line-height: 1.15 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-maker-services-page > .pa-theme-story-band > figcaption > p {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-maker-services-page .pa-check-list i {
  color: var(--primary-teal) !important;
}

@media (max-width: 767.98px) {
  html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-maker-services-page
    > .pa-page-hero .pa-hero-media-frame,
  html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-maker-services-page
    > .pa-page-hero .pa-hero-media-frame > img[data-pa-theme-media="content"] {
    height: 11.25rem !important;
    min-height: 0 !important;
    max-height: 11.25rem !important;
    object-fit: cover !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-maker-services-page > .pa-theme-story-band {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    min-height: 0 !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-maker-services-page > .pa-theme-story-band
    > img[data-pa-theme-media="content"] {
    grid-column: 1 !important;
    grid-row: 1 !important;
    height: 12rem !important;
    min-height: 12rem !important;
    max-height: 12rem !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-maker-services-page > .pa-theme-story-band > figcaption {
    grid-column: 1 !important;
    grid-row: 2 !important;
    padding: 1.25rem !important;
  }
}

/* Help Center uses the document-family shell. Keep its authored media and copy
   in separate responsive rows and give every audited text region a canonical,
   opaque navy surface. */
html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-help-router__hero > .pa-menu-hero__copy,
html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-help-router__hero > .pa-menu-hero__copy
  > :is(.pa-eyebrow, h1, .pa-help-router__lede, .pa-action-row, .pa-help-router__promise),
html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-help-router__hero > .pa-menu-hero__copy
  .pa-help-router__promise > li {
  background-color: var(--surface) !important;
  background-image: none !important;
  color: var(--text-body) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-help-router__hero > .pa-menu-hero__copy :is(h1, h2, h3, strong) {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-help-router__hero > .pa-menu-hero__copy :is(p, li, small) {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-help-router__hero > .pa-menu-hero__copy .pa-eyebrow {
  color: var(--text-muted) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-help-router__visual::after,
html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-help-router__human figure::after {
  content: none !important;
  display: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-help-router__visual figcaption,
html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-help-router__visual figcaption > :is(span, strong, p) {
  position: relative;
  z-index: 4 !important;
  border-color: var(--border) !important;
  background-color: var(--section-bg) !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-help-router__visual figcaption > span {
  color: var(--text-muted) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-help-router__visual figcaption > strong {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-help-router__visual figcaption > p {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-help-router__human,
html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-help-router__human > div,
html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-help-router__human > div > :is(.pa-eyebrow, h2, p, .pa-action-row) {
  background-color: var(--surface) !important;
  background-image: none !important;
  color: var(--text-body) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-help-router__human h2 {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content#main-content :is(#help-title, #help-human-title) {
  display: block !important;
  box-sizing: border-box;
  padding-block: 0.22em !important;
  background-color: var(--surface) !important;
  background-image: none !important;
  line-height: 1.12 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-help-router__visual > img.pa-light-authored-media {
  display: none !important;
}

@media (max-width: 991.98px) {
  html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-help-router__hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    width: 100vw !important;
    min-height: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    align-items: stretch !important;
    overflow: hidden !important;
    background-color: var(--section-bg) !important;
    background-image: none !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-help-router__hero > .pa-help-router__visual {
    position: relative !important;
    z-index: 0 !important;
    inset: auto !important;
    grid-row: 1 !important;
    display: block !important;
    width: 100% !important;
    height: clamp(14rem, 38vw, 19rem) !important;
    min-height: 0 !important;
    max-height: 19rem !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-color: var(--border) !important;
    background-color: var(--page-bg) !important;
    background-image: none !important;
    box-shadow: none !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-help-router__hero > .pa-help-router__visual
    > canvas.pa-dark-authored-media[data-pa-theme-media="immersive-content"] {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    transform: none !important;
    opacity: 1 !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-help-router__hero > .pa-menu-hero__copy {
    position: relative !important;
    z-index: 1 !important;
    inset: auto !important;
    grid-row: 2 !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    padding: clamp(1.5rem, 5vw, 2.5rem) !important;
    background-color: var(--surface) !important;
    background-image: none !important;
  }
}

@media (max-width: 479.98px) {
  html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-help-router__hero > .pa-help-router__visual {
    height: 12rem !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-family-document:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-help-router__visual figcaption {
    inset: auto 0.75rem 0.75rem !important;
    padding: 0.75rem !important;
  }
}

/* Discover final precedence: keep interactive emphasis neon without turning
   ordinary links into accent-colored foundation slabs. */
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-discover-route__primary {
  border: 1px solid var(--border) !important;
  background-color: var(--surface-elevated) !important;
  background-image: none !important;
  color: var(--aqua-accent) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-discover-route__primary > :is(span, i) {
  background-color: var(--surface-elevated) !important;
  background-image: none !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-discover-route__primary:hover {
  border-color: var(--border) !important;
  background-color: var(--surface-hover) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-discover-route__primary:hover > :is(span, i) {
  background-color: var(--surface-hover) !important;
  color: var(--text-main) !important;
}

@media (min-width: 600px) and (max-width: 1099.98px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-discover-atlas__hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch !important;
    gap: 1rem !important;
    min-height: 0 !important;
    padding: 2rem clamp(1.5rem, 5vw, 3rem) !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-discover-atlas__hero > .pa-menu-hero__copy {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-discover-atlas__hero > .pa-discover-specimen {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-discover-specimen__image,
  html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-discover-specimen__image > img {
    width: 100% !important;
    height: min(28svh, 16rem) !important;
    min-height: 0 !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-discover-specimen__caption {
    position: static !important;
    inset: auto !important;
    padding: 1rem !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-discover-specimen__legend {
    position: static !important;
    inset: auto !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100% !important;
  }
}

/*
 * Homepage-only Dark art direction.
 *
 * This homepage-specific reconciliation deliberately outranks the audit closure
 * rules that flattened the authored technical depth. Every foundation remains
 * inside the approved navy ladder; teal and aqua are reserved for brand, action,
 * active-state, and instrumentation highlights.
 */

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home {
  --home-evergreen: #081620;
  --home-green: #28b8c4;
  --home-green-accent: #3fd0d5;
  --home-ink: #f1f8f9;
  --home-ink-soft: #c7d4d9;
  --home-paper: #081620;
  --home-white: #152935;
  --home-ice: #0f1e27;
  --home-ice-secondary: #152935;
  --home-cyan-soft: #203e4d;
  --home-aqua-soft: #183240;
  --home-muted: #8298a2;
  --home-teal: #28b8c4;
  --home-cyan: #70e1dc;
  --home-cyan-bright: #3fd0d5;
  --home-line: #29434c;
  background: #081620 !important;
  color: #c7d4d9 !important;
}

/* The shared shell surrounds the homepage screenshot, so its computed Dark
   paint follows the same approved palette without changing any other route. */
html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace):has(#main-content .pa-home) {
  --pa-shadow-master: 0 30px 74px rgba(8, 22, 32, .42);
  --pa-shadow-paper: 0 22px 54px rgba(8, 22, 32, .28);
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace):has(#main-content .pa-home)
  :is(.pa-site-header, .ecosystem-nav .pa-site-nav) {
  border-color: #29434c;
  background: #081620;
  color: #f1f8f9;
  box-shadow: 0 12px 36px rgba(8, 22, 32, .28);
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace):has(#main-content .pa-home)
  .ecosystem-nav {
  --ecosystem-nav-ink: #f1f8f9;
  --ecosystem-nav-muted: #8298a2;
  --ecosystem-nav-line: #29434c;
  --ecosystem-nav-surface: #081620;
  --ecosystem-nav-soft: #152935;
  --ecosystem-nav-teal: #3fd0d5;
  --ecosystem-nav-deep: #28b8c4;
  --ecosystem-nav-accent: #70e1dc;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace):has(#main-content .pa-home)
  .ecosystem-nav :is(.nav-link, .pa-nav-link, .pa-nav-account, .pa-nav-theme-toggle),
html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace):has(#main-content .pa-home)
  :is(.dropdown-item, .pa-nav-menu a, .pa-nav-account-menu a) {
  color: #c7d4d9;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace):has(#main-content .pa-home)
  :is(.dropdown-menu, .pa-nav-menu, .pa-nav-account-menu) {
  border-color: #29434c;
  background: #081620;
  color: #f1f8f9;
  box-shadow: var(--pa-shadow-paper);
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace):has(#main-content .pa-home)
  .pa-footer :is(h2, h3, strong),
html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace):has(#main-content .pa-home)
  .pa-footer-operator strong,
html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace):has(#main-content .pa-home)
  .pa-operator-band h2 {
  color: #f1f8f9;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace):has(#main-content .pa-home)
  .pa-footer :is(p, a, li, .pa-footer-bottom),
html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace):has(#main-content .pa-home)
  :is(.pa-footer-operator, .pa-operator-band p, .pa-contact-operator, .pa-legal-operator, .pa-commerce-operator-note) {
  color: #8298a2;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home :is(h1, h2, h3, h4, strong, b, legend) {
  color: #f1f8f9 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home :is(p, li, dd) {
  color: #c7d4d9 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home :is(small, dt) {
  color: #8298a2 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-kicker,
html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-kicker > span {
  color: #8298a2 !important;
  text-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-hero .pa-home-kicker {
  color: #8298a2 !important;
  text-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-hero .pa-home-kicker > [data-pa-brand] {
  color: #3fd0d5 !important;
  text-shadow: 0 0 0.8rem rgba(63, 208, 213, 0.18) !important;
}

/* Hero: page-dark copy field, raised technical model field, and visible depth. */
html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-hero {
  border-bottom: 1px solid #29434c !important;
  background: #0f1e27 !important;
  color: #c7d4d9 !important;
  box-shadow: 0 1.5rem 4rem rgba(8, 22, 32, 0.32) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-hero::before {
  display: none !important;
  content: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-hero-grid {
  display: none !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-hero-orbit {
  display: block !important;
  border-color: #29434c !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-hero-lede {
  color: #c7d4d9 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home #home-title {
  display: block !important;
  width: auto !important;
  max-width: 12ch !important;
  background: #0f1e27 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-proofline {
  border-color: #29434c !important;
  color: #c7d4d9 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-proofline i {
  color: #c7d4d9 !important;
  filter: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-troubleshoot-callout {
  border-color: #29434c !important;
  border-left: 4px solid #3fd0d5 !important;
  background: #152935 !important;
  color: #f1f8f9 !important;
  box-shadow:
    0 1rem 2.8rem rgba(8, 22, 32, 0.48),
    inset 0 0 0 1px rgba(112, 225, 220, 0.05),
    0 0 1.8rem rgba(40, 184, 196, 0.07) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-troubleshoot-callout::before {
  display: none !important;
  content: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-troubleshoot-callout__icon {
  background: #28b8c4 !important;
  color: #081620 !important;
  box-shadow:
    0 0 0 5px rgba(40, 184, 196, 0.13),
    0 0 1.35rem rgba(63, 208, 213, 0.42) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-troubleshoot-callout__copy > small {
  color: #70e1dc !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-troubleshoot-callout__copy > span {
  color: #c7d4d9 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-troubleshoot-callout__arrow {
  color: #70e1dc !important;
}

/* Primary and secondary actions are the intentional neon emphasis. */
html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-button--primary {
  border-color: #3fd0d5 !important;
  background: #28b8c4 !important;
  color: #081620 !important;
  box-shadow:
    0 0.9rem 2.2rem rgba(8, 22, 32, 0.42),
    0 0 1.65rem rgba(63, 208, 213, 0.22) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-button--primary :is(i, span, strong) {
  color: #081620 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-button--primary:is(:hover, :focus-visible) {
  border-color: #70e1dc !important;
  background: #3fd0d5 !important;
  box-shadow:
    0 1.1rem 2.7rem rgba(8, 22, 32, 0.5),
    0 0 2rem rgba(112, 225, 220, 0.32) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-button--quiet {
  border-color: #28b8c4 !important;
  background: #0f1e27 !important;
  color: #70e1dc !important;
  box-shadow: inset 0 0 0 1px rgba(112, 225, 220, 0.03) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-button--quiet:is(:hover, :focus-visible) {
  border-color: #70e1dc !important;
  background: #203e4d !important;
  color: #f1f8f9 !important;
}

/* Model stage: five navy levels, illuminated build grid, raised instruments. */
html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-model {
  border-color: #29434c !important;
  background: #152935 !important;
  box-shadow: 0 3rem 7rem rgba(8, 22, 32, 0.6) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-model::before {
  display: none !important;
  content: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home :is(.pa-home-model-bar, .pa-home-model-controls) {
  border-color: #29434c !important;
  background: #0f1e27 !important;
  color: #c7d4d9 !important;
  box-shadow: inset 0 -1px 0 rgba(8, 22, 32, 0.5) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-model-viewport {
  background: #0f1e27 !important;
  background-image: none !important;
  background-size: auto !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-model-viewport::after {
  display: none !important;
  content: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-live-dot {
  background: #3fd0d5 !important;
  box-shadow:
    0 0 0 0.28rem rgba(63, 208, 213, 0.12),
    0 0 1.1rem rgba(63, 208, 213, 0.8) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-model-readout {
  border-left-color: #29434c !important;
  background: #0f1e27 !important;
  color: #8298a2 !important;
  box-shadow: 0 0.9rem 2rem rgba(8, 22, 32, 0.42) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-model-controls > a {
  color: #70e1dc !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-model-readout > small {
  color: #c7d4d9 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-model-controls > a:is(:hover, :focus-visible) {
  color: #70e1dc !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-mode-switcher button {
  border-color: #29434c !important;
  background: #0f1e27 !important;
  color: #8298a2 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-mode-switcher button:is(.is-active, [aria-pressed="true"]) {
  border-color: #3fd0d5 !important;
  background: #28b8c4 !important;
  color: #081620 !important;
  box-shadow: 0 0 1rem rgba(63, 208, 213, 0.25) !important;
}

/* One connected rail, not six unrelated black tiles. */
html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-ecosystem {
  border-color: #29434c !important;
  background: #152935 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 1.8rem 4rem rgba(8, 22, 32, 0.42) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-ecosystem > a {
  border-color: #29434c !important;
  background: #0f1e27 !important;
  background-image: none !important;
  color: #f1f8f9 !important;
  opacity: 1 !important;
  filter: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-ecosystem > a:is(:hover, :focus-visible) {
  background: #203e4d !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-ecosystem > a > span {
  color: #3fd0d5 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-ecosystem > a > small {
  color: #c7d4d9 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-ecosystem > .pa-home-ecosystem-troubleshoot {
  border-top: 3px solid #3fd0d5 !important;
  background: #183240 !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-scroll-cue {
  border: 1px solid #29434c !important;
  background: #0f1e27 !important;
  color: #c7d4d9 !important;
  padding: 0.55rem 0.45rem !important;
}

/* Chapter rhythm: visible navy ladder and surface ownership. */
html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home :is(.pa-home-workflow, .pa-home-proof) {
  border-color: #29434c !important;
  background: #0f1e27 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home :is(.pa-home-story, .pa-home-final) {
  border-color: #29434c !important;
  background: #081620 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-story::before {
  display: none !important;
  content: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-route {
  border-color: #29434c !important;
  background: #152935 !important;
  box-shadow: 0 1.7rem 4rem rgba(8, 22, 32, 0.34) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-route-line {
  border-top: 1px solid #29434c !important;
  background: transparent !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-route-line > span {
  background: #203e4d !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-route a {
  border-color: #29434c !important;
  background: transparent !important;
  color: #f1f8f9 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-route a:is(:hover, :focus-visible) {
  background: #203e4d !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-route a::before {
  display: none !important;
  content: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-route small {
  color: #c7d4d9 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-branch-note {
  border-color: #29434c !important;
  background: #183240 !important;
  box-shadow: 0 1rem 2.5rem rgba(8, 22, 32, 0.24) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-branch-note p + p {
  border-color: #29434c !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-branch-note a {
  color: #c7d4d9 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-branch-note a:is(:hover, :focus-visible) {
  color: #70e1dc !important;
}

/* Scroll story: luminous media frame beside clearly tiered copy surfaces. */
html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-story-media {
  position: sticky !important;
  border-color: #29434c !important;
  background: #0f1e27 !important;
  box-shadow: 0 2.2rem 5rem rgba(8, 22, 32, 0.52) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-story-frame[aria-hidden="true"] {
  display: block !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-story-frame.is-active {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-story-frame::after {
  display: none !important;
  content: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-story-frame figcaption {
  right: auto !important;
  width: min(28rem, calc(100% - 3rem)) !important;
  border-left: 2px solid #3fd0d5 !important;
  background: #0f1e27 !important;
  padding: 0.75rem 0.9rem !important;
  box-shadow:
    0 1rem 2.4rem rgba(8, 22, 32, 0.48),
    0 0 1rem rgba(63, 208, 213, 0.08) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-story-frame figcaption > span {
  background: transparent !important;
  color: #70e1dc !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-story-frame figcaption > strong {
  background: transparent !important;
  color: #f1f8f9 !important;
  font-size: clamp(1.35rem, 2vw, 2.2rem) !important;
  line-height: 1.04 !important;
  text-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-story-index {
  border: 1px solid #29434c !important;
  background: #152935 !important;
  color: #f1f8f9 !important;
  box-shadow: 0 0 1.2rem rgba(63, 208, 213, 0.05) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-story-index > span {
  font-size: clamp(1.75rem, 2vw, 2.1rem) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-story-index > small {
  color: #70e1dc !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-story-copy {
  border-color: #29434c !important;
  background: #152935 !important;
  box-shadow: 0 2rem 5rem rgba(8, 22, 32, 0.42) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-story-copy > header {
  background: #152935 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-story-step {
  border-color: #29434c !important;
  background: #152935 !important;
  color: #c7d4d9 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-story-step.is-active {
  border-color: #29434c !important;
  background: #183240 !important;
  box-shadow: 0 1rem 2.4rem rgba(8, 22, 32, 0.3) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-story-step > span {
  color: #c7d4d9 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-story-step > a {
  color: #70e1dc !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-story-step.is-active > h3,
html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-story-step > a:is(:hover, :focus-visible) {
  color: #70e1dc !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-capability-rail {
  border-color: #29434c !important;
  background: #152935 !important;
  box-shadow: 0 1.1rem 2.6rem rgba(8, 22, 32, 0.28) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-capability-rail > span {
  border-color: #29434c !important;
  background: transparent !important;
  color: #c7d4d9 !important;
}

/* Live score and proof cards use separate surface roles instead of one field. */
html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-score {
  border-color: #29434c !important;
  background: #152935 !important;
  box-shadow: 0 2.2rem 5.4rem rgba(8, 22, 32, 0.48) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-score-copy {
  background: #0f1e27 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-upload {
  background: #152935 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-dropzone {
  border-color: #29434c !important;
  background: #0f1e27 !important;
  color: #c7d4d9 !important;
  box-shadow: inset 0 0 2rem rgba(8, 22, 32, 0.3) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-dropzone:is(:hover, :focus-within) {
  border-color: #70e1dc !important;
  background: #203e4d !important;
  box-shadow:
    inset 0 0 2rem rgba(63, 208, 213, 0.05),
    0 0 1.2rem rgba(63, 208, 213, 0.08) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-upload-icon {
  border-color: #29434c !important;
  background: #183240 !important;
  color: #c7d4d9 !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-dropzone:is(:hover, :focus-within) .pa-home-upload-icon {
  border-color: #70e1dc !important;
  color: #70e1dc !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-score-trust {
  border-color: #29434c !important;
  background: #183240 !important;
  color: #c7d4d9 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-score-trust > i {
  color: #c7d4d9 !important;
  filter: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-inline-link,
html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-evidence a {
  color: #70e1dc !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-inline-link:is(:hover, :focus-visible),
html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-evidence a:is(:hover, :focus-visible) {
  color: #70e1dc !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-evidence {
  border-color: #29434c !important;
  background: #0f1e27 !important;
  box-shadow: 0 1.8rem 4.4rem rgba(8, 22, 32, 0.38) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-evidence > article {
  border-color: #29434c !important;
  background: #152935 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-evidence-media {
  border-color: #29434c !important;
  background: #0f1e27 !important;
  box-shadow: inset 0 0 0 1px rgba(8, 22, 32, 0.4) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-evidence-media-note {
  border-left: 2px solid #29434c !important;
  background: #0f1e27 !important;
  color: #f1f8f9 !important;
  box-shadow: 0 0.8rem 1.8rem rgba(8, 22, 32, 0.42) !important;
}

/* Interactive printer: technical grid and cyan instrumentation, solid copy. */
html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer {
  --pa-printer-evergreen: #081620;
  --pa-printer-green: #28b8c4;
  --pa-printer-green-accent: #3fd0d5;
  --pa-printer-ice: #0f1e27;
  --pa-printer-ice-secondary: #081620;
  --pa-printer-cyan-soft: #203e4d;
  --pa-printer-aqua-soft: #183240;
  --pa-printer-paper: #152935;
  --pa-printer-ink: #f1f8f9;
  --pa-printer-muted: #8298a2;
  --pa-printer-teal: #28b8c4;
  --pa-printer-aqua: #70e1dc;
  --pa-printer-line: #29434c;
  background: #081620 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer::before {
  display: none !important;
  content: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer__intro-field {
  border-bottom: 1px solid #29434c !important;
  background: #0f1e27 !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer__intro-field::before {
  display: none !important;
  content: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer__intro-field::after {
  display: none !important;
  content: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer__intro {
  background: #0f1e27 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer__intro > p:last-child {
  border-color: #29434c !important;
  color: #c7d4d9 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer__beat {
  border-color: #29434c !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer__beat-body {
  border: 1px solid #29434c !important;
  background: #152935 !important;
  padding: clamp(1.5rem, 3vw, 2.4rem) !important;
  box-shadow: 0 1.4rem 3.2rem rgba(8, 22, 32, 0.32) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer__beat {
  opacity: 1 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home
  .pa-home-printer__beat[data-pa-printer-active] .pa-home-printer__beat-body {
  border-color: #29434c !important;
  background: #183240 !important;
  box-shadow: 0 1.6rem 3.8rem rgba(8, 22, 32, 0.4) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer__beat-index {
  color: #c7d4d9 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home
  .pa-home-printer__beat[data-pa-printer-active] h3 {
  color: #f1f8f9 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home
  .pa-home-printer__beat[data-pa-printer-active] .pa-home-printer__beat-index {
  color: #c7d4d9 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer__visual {
  border-color: #29434c !important;
  background: #152935 !important;
  box-shadow: 0 2rem 6rem rgba(8, 22, 32, 0.5) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home
  :is(.pa-home-printer__topbar, .pa-home-printer__playback) {
  border-color: #29434c !important;
  background: #0f1e27 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer__status-dot {
  background: transparent !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer__status-dot::before {
  background: #3fd0d5 !important;
  box-shadow:
    0 0 0 0.3rem rgba(63, 208, 213, 0.14),
    0 0 1rem rgba(63, 208, 213, 0.65) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-model-toast {
  border-color: #29434c !important;
  background: #0f1e27 !important;
  color: #f1f8f9 !important;
  box-shadow: 0 .9rem 2.4rem rgba(8, 22, 32, .52) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-model-toast > p {
  background: #0f1e27 !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-model-toast > button {
  border-color: #29434c !important;
  background: #183240 !important;
  color: #f1f8f9 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-model-toast > button:is(:hover, :focus-visible) {
  border-color: #70e1dc !important;
  background: #203e4d !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer__controls button {
  border-color: #29434c !important;
  background: #183240 !important;
  color: #70e1dc !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer__controls button:not(:disabled):is(:hover, :focus-visible) {
  border-color: #70e1dc !important;
  background: #203e4d !important;
  color: #f1f8f9 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer__interactive-pill {
  border-color: #29434c !important;
  background: #203e4d !important;
  color: #c7d4d9 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer__controls [data-pa-printer-color="brand"] {
  background: linear-gradient(90deg, #081620 50%, #28b8c4 50%) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer__controls [data-pa-printer-color="mono"] {
  background: linear-gradient(90deg, #0f1e27 50%, #8298a2 50%) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer__controls [data-pa-printer-color="neon"] {
  background: linear-gradient(90deg, #3fd0d5 50%, #70e1dc 50%) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer__controls [data-pa-printer-color="aurora"] {
  background: linear-gradient(135deg, #152935, #28b8c4, #70e1dc) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer__controls [data-pa-printer-color="rainbow"] {
  background: conic-gradient(#28b8c4, #3fd0d5, #70e1dc, #203e4d, #28b8c4) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer__controls [data-pa-printer-color="random"] {
  background: #203e4d !important;
  color: #c7d4d9 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer[data-pa-printer-lighting="inspection"] .pa-home-printer__lighting-overlay {
  background: linear-gradient(108deg, transparent 22%, rgba(241, 248, 249, .72) 45%, rgba(112, 225, 220, .44) 56%, transparent 76%) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer[data-pa-printer-lighting="teal"] .pa-home-printer__lighting-overlay {
  background: linear-gradient(135deg, transparent 18%, rgba(63, 208, 213, .5) 52%, transparent 82%) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer[data-pa-printer-lighting="workshop"] .pa-home-printer__lighting-overlay {
  background: radial-gradient(circle at 50% 54%, transparent, rgba(8, 22, 32, .78) 85%) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer[data-pa-printer-lighting="buildglow"] .pa-home-printer__lighting-overlay {
  background: linear-gradient(0deg, rgba(112, 225, 220, .7), rgba(40, 184, 196, .15) 34%, transparent 68%) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer.is-pa-printer-xray .pa-home-printer__xray-overlay {
  background: repeating-linear-gradient(45deg, transparent 0 8px, rgba(40, 184, 196, .16) 8px 9px) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer.is-pa-printer-toolpath .pa-home-printer__toolpath-overlay {
  background: repeating-linear-gradient(90deg, transparent 0 1.5rem, rgba(112, 225, 220, .38) 1.55rem 1.62rem) !important;
  box-shadow: inset 0 0 3rem rgba(112, 225, 220, .2) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer:is(
    .pa-printer-defect-stringing,
    .pa-printer-defect-shift,
    .pa-printer-defect-warping,
    .pa-printer-defect-supports,
    .pa-printer-defect-adhesion,
    .pa-printer-defect-overhang
  ) .pa-home-printer__defect-overlay {
  background: repeating-linear-gradient(112deg, transparent 0 1.6rem, rgba(63, 208, 213, .3) 1.65rem 1.72rem) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer__repair-overlay > div {
  border-color: #70e1dc !important;
  background: #0f1e27 !important;
  color: #f1f8f9 !important;
  box-shadow: 0 1.1rem 3rem rgba(8, 22, 32, .35) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer__repair-overlay > div p {
  color: #70e1dc !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer [data-pa-printer-spaghetti-layer] {
  background: rgba(32, 62, 77, .72) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer [data-pa-printer-spaghetti-layer] > div {
  border-color: #29434c !important;
  background: #152935 !important;
  color: #f1f8f9 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer [data-pa-printer-spaghetti-layer] > div span {
  color: #70e1dc !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer [data-pa-printer-spaghetti-layer] button {
  border-color: #3fd0d5 !important;
  background: #28b8c4 !important;
  color: #081620 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer__stage {
  background: #0f1e27 !important;
  background-image: none !important;
  background-size: auto !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer__stage::after {
  display: block !important;
  border-color: #29434c !important;
  background: transparent !important;
  box-shadow:
    inset 0 0 5rem rgba(8, 22, 32, 0.42),
    inset 0 0 0 1px rgba(8, 22, 32, 0.3) !important;
  content: "" !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer [data-pa-printer-hotspot] {
  border-color: #70e1dc !important;
  background: #3fd0d5 !important;
  box-shadow:
    0 0 0 0.34rem rgba(63, 208, 213, 0.14),
    0 0 1.25rem rgba(63, 208, 213, 0.75) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer [data-pa-printer-hotspot] > span {
  border-color: #29434c !important;
  background: #203e4d !important;
  color: #f1f8f9 !important;
  box-shadow: 0 0.8rem 1.8rem rgba(8, 22, 32, 0.4) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer__completion-sweep {
  visibility: hidden !important;
  background: linear-gradient(90deg, transparent, rgba(112, 225, 220, 0.34), transparent) !important;
  box-shadow: 0 0 1.4rem rgba(63, 208, 213, 0.3) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer.just-completed .pa-home-printer__completion-sweep {
  visibility: visible !important;
}

/* Final action: one raised copy surface and one cinematic media stage. */
html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-final {
  background: linear-gradient(135deg, #0f1e27 0%, #183240 55%, #0f1e27 100%) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-final-copy {
  border: 1px solid #29434c !important;
  background: #152935 !important;
  padding: clamp(2rem, 4vw, 4rem) !important;
  box-shadow: 0 2rem 5rem rgba(8, 22, 32, 0.44) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-final-media {
  border-color: #29434c !important;
  background: #081620 !important;
  box-shadow: 0 2.2rem 5.5rem rgba(8, 22, 32, 0.52) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-final-media figcaption {
  border-top: 1px solid #29434c !important;
  background: #152935 !important;
  color: #c7d4d9 !important;
  box-shadow: 0 -1rem 2rem rgba(8, 22, 32, 0.32) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-final-community {
  color: #c7d4d9 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-final-community:is(:hover, :focus-visible) {
  color: #70e1dc !important;
}

@media (max-width: 900px) {
  html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-home .pa-home-hero {
    background: #0f1e27 !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-home .pa-home-hero::before {
    inset: 44% 0 0 !important;
    border-top: 1px solid #29434c !important;
    border-left: 0 !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-home .pa-home-hero-grid {
    display: none !important;
    background-image: none !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-home .pa-home-story-media {
    box-shadow: 0 1.5rem 3.5rem rgba(8, 22, 32, 0.48) !important;
  }
}

@media (max-width: 620px) {
  html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-home .pa-home-troubleshoot-callout {
    box-shadow:
      0 0.8rem 1.8rem rgba(8, 22, 32, 0.42),
      0 0 1rem rgba(40, 184, 196, 0.06) !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-home .pa-home-final-copy {
    padding: 1.5rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-home :is(
      .pa-home-button,
      .pa-home-story-frame,
      .pa-home-printer__beat
    ) {
    transition: none !important;
  }
}


/* Final precedence for generic route markers and small residual owners found
 * by the exhaustive 320px pass. */
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-horizontal-steps > article > span {
  border-color: var(--border) !important;
  background-color: var(--surface-hover) !important;
  background-image: none !important;
  color: var(--text-main) !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-admin:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-admin-kpi-card,
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-admin:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-admin-kpi-card > span:not(.pa-admin-kpi-icon),
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-admin:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-admin-kpi-card > span:not(.pa-admin-kpi-icon) > strong {
  border-color: var(--border) !important;
  background-color: var(--surface) !important;
  background-image: none !important;
  color: var(--text-main) !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content :is(
    .pa-billing-success-page .pa-breakdown > div,
    .pa-billing-success-page .pa-breakdown dt,
    .pa-security-page #handling > h2
  ) {
  background-color: var(--surface) !important;
  background-image: none !important;
  color: var(--text-body) !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-auth:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-auth-message .pa-locked-feature > i.bi::before {
  color: var(--text-body) !important;
  text-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

/* The confirmed-email mark already has an accessible name and image role.
 * Draw its check without exposing a one-character text run to Axe. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-account:not(.pa-protected-workspace)
  #main-content#main-content#main-content .input-group-text[role="img"][aria-label="Email confirmed"] {
  display: inline-grid !important;
  place-items: center;
  min-width: 2.5rem;
  border-color: var(--border) !important;
  background-color: var(--surface-hover) !important;
  background-image: none !important;
  color: transparent !important;
  font-size: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-account:not(.pa-protected-workspace)
  #main-content#main-content#main-content .input-group-text[role="img"][aria-label="Email confirmed"]::before {
  content: "" !important;
  display: block;
  width: 0.8rem;
  height: 0.8rem;
  background-color: var(--text-body) !important;
  clip-path: polygon(8% 48%, 34% 74%, 92% 12%, 100% 22%, 35% 92%, 0 58%);
}

/* Score-route strict contrast closure. These route-owned cards inherited
 * decorative gradients from the legacy Dark theme, which prevented the live
 * contrast audit from proving an opaque canonical underlay. */
html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-score-entry-page :is(
    .pa-theme-feature-grid > article,
    .pa-theme-steps .pa-horizontal-steps > article,
    .pa-theme-seller-panel .pa-benefit-grid > article,
    .pa-theme-checks .pa-check-grid > article
  ) {
  border-color: var(--border) !important;
  background-color: var(--surface) !important;
  background-image: none !important;
  opacity: 1 !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-score-entry-page .pa-upload-dropzone {
  border-color: var(--border) !important;
  background-color: var(--surface-elevated) !important;
  background-image: none !important;
  opacity: 1 !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-score-entry-page .pa-horizontal-steps > article > span {
  border-color: var(--primary-teal) !important;
  background-color: var(--primary-teal) !important;
  background-image: none !important;
  color: var(--page-bg) !important;
  opacity: 1 !important;
}

/* The upload illustration is decorative. Removing it in Dark also removes an
 * ambiguous semi-transparent pseudo-element border from the palette graph. */
html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-score-entry-page #check::after {
  content: none !important;
  display: none !important;
}

/* Preserve the full-size label as the file picker's interaction target while
 * keeping the native one-pixel implementation box out of the paint graph. */
html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-score-entry-page #scoreFile {
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Keep the mobile display face clear of self-overlap and narrow grid spill. */
@media (max-width: 767.98px) {
  html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content .pa-score-entry-page .pa-theme-hero h1 {
    line-height: 1.15 !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content .pa-score-entry-page .pa-theme-hero h1 > span {
    display: contents !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content .pa-score-entry-page .pa-theme-hero-points > article > strong {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

/* Homepage action links are semantically marked as actions for accessibility,
   but they remain editorial text links rather than Bootstrap button blocks.
   This late rule intentionally wins after the route-wide closure rules. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home :is(
    .pa-home-model-controls > a.btn,
    .pa-home-story-step > a.btn,
    .pa-home-inline-link.btn,
    .pa-home-evidence a.btn
  ) {
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #70e1dc !important;
  box-shadow: none !important;
  text-align: left !important;
  text-decoration: none !important;
  white-space: normal !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home :is(
    .pa-home-model-controls > a.btn,
    .pa-home-story-step > a.btn,
    .pa-home-inline-link.btn,
    .pa-home-evidence a.btn
  ):is(:hover, :focus-visible) {
  color: #3fd0d5 !important;
}

/* Sample and shared-report media remain explicit bounded content. Cap the
 * painted boxes at the tablet/mobile sizes where they otherwise exceed the
 * strict 25-percent viewport contract, using only canonical Dark underlays. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-sample-report-page .pa-sample-model-preview {
  width: min(100%, 70vmin) !important;
  margin-inline: auto !important;
  border-color: var(--border) !important;
  background-color: var(--surface) !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-sample-report-page .pa-sample-model-preview > img {
  width: 100% !important;
  max-width: 100% !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content .pa-shared-report-page .pa-report-model-preview > .pa-mesh-viewer {
  width: min(100%, 57vmin) !important;
  min-height: 0 !important;
  aspect-ratio: 1 / 1 !important;
  margin-inline: auto !important;
  border-color: var(--border) !important;
  background-color: var(--surface) !important;
  background-image: none !important;
}

@media (max-width: 500px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
    #main-content#main-content .pa-shared-report-page .pa-report-model-preview > .pa-mesh-viewer {
    width: min(100%, 72vw) !important;
  }
}

/* Print Score report-detail surfaces use solid canonical plates so both Axe
 * and the strict paint audit can resolve every foreground without estimating
 * a gradient or translucent stack. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content .pa-report-detail-shell .pa-report-process-score {
  border-color: var(--border) !important;
  background-color: var(--surface) !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content .pa-report-detail-shell .pa-report-process-strip li {
  border-color: var(--border) !important;
  background-color: var(--surface-elevated) !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content .pa-report-detail-shell .pa-report-process-strip li.is-complete > span {
  border-color: var(--primary-teal) !important;
  background-color: var(--primary-teal) !important;
  background-image: none !important;
  color: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content .pa-report-detail-shell :is(
    .pa-report-fingerprint,
    .pa-report-fingerprint-main,
    .pa-report-fingerprint-detail
  ) {
  border-color: var(--border) !important;
  background-color: var(--surface) !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content .pa-report-detail-shell .pa-report-signal-grid > article {
  border-color: var(--border) !important;
  background-color: var(--surface-elevated) !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content .pa-report-detail-shell :is(
    .pa-report-process-score > strong,
    .pa-report-process-strip li > strong,
    .pa-report-fingerprint h2,
    .pa-report-fingerprint-main strong,
    .pa-report-signal-grid > article > strong
  ) {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content .pa-report-detail-shell :is(
    .pa-report-process-score > small,
    .pa-report-process-strip li > small,
    .pa-report-fingerprint p,
    .pa-report-signal-grid > article > p
  ) {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content .pa-report-detail-shell :is(
    .pa-report-process-score > span,
    .pa-report-fingerprint .pa-kicker,
    .pa-report-signal-grid > article > span
  ) {
  color: var(--aqua-accent) !important;
}

/* The model canvas is genuine report content. Its ready fallback is visually
 * absent and therefore removed from layout instead of remaining as opacity-0
 * media in the strict inventory. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content :is(.pa-shared-report-page, .pa-report-detail-shell)
  .pa-mesh-viewer-canvas[data-pa-theme-media-host="immersive"] {
  border-color: var(--border) !important;
  background-color: var(--surface) !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content :is(.pa-shared-report-page, .pa-report-detail-shell)
  .pa-mesh-viewer.is-ready .pa-mesh-viewer-fallback {
  display: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content .pa-report-detail-shell .pa-report-model-preview > .pa-mesh-viewer {
  width: min(100%, 57vmin) !important;
  min-height: 0 !important;
  aspect-ratio: 1 / 1 !important;
  margin-inline: auto !important;
  border-color: var(--border) !important;
  background-color: var(--surface) !important;
  background-image: none !important;
}

@media (max-width: 500px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
    #main-content#main-content .pa-report-detail-shell .pa-report-model-preview > .pa-mesh-viewer {
    width: min(100%, 72vw) !important;
  }
}

/* The nested editorial report image follows the same bounded 1672:941
 * contract as direct report story bands. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content .pa-report-detail-shell .pa-report-story-band {
  width: min(100%, 75vw, 75vh, 1137px) !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 1672 / 941;
  margin-inline: auto !important;
  border-color: var(--border) !important;
  background-color: var(--page-bg) !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content .pa-report-detail-shell .pa-report-story-band::after {
  content: none !important;
  display: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content .pa-report-detail-shell .pa-report-story-band > img[data-pa-theme-media="content"] {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

/* The compact card CTA intentionally uses a canonical navy button surface;
 * its Bootstrap glyph must therefore use the same readable text role. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content .pa-report-card-page
  .pa-report-card-cta > .btn-primary > .bi::before {
  color: var(--text-main) !important;
}

/* Iteration 9 mobile composition closure. Authored hero media remains visible,
 * but follows the copy in normal flow instead of painting beneath it. */
@media (max-width: 767.98px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
    #main-content#main-content#main-content :is(
      .pa-connect-decision-hero,
      .pa-discover-atlas__hero,
      .pa-guides-manual__hero,
      .pa-source-briefing
    ) {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  /* Source Check owns a rotated drafting mark inside the hero. Unlike the
     other mobile compositions above, that mark must remain clipped or it
     expands the 390px document canvas well past the viewport. */
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-source-tool > .pa-source-briefing {
    overflow: hidden !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
    #main-content#main-content#main-content :is(
      .pa-connect-decision-hero,
      .pa-discover-atlas__hero,
      .pa-guides-manual__hero,
      .pa-source-briefing
    ) > :is(.pa-menu-hero__copy, .pa-connect-hub__hero-copy) {
    position: relative !important;
    inset: auto !important;
    order: 1 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
    #main-content#main-content#main-content :is(
      .pa-connect-decision-hero__visual,
      .pa-discover-specimen,
      .pa-guides-manual__plate,
      .pa-source-briefing__visual
    ) {
    position: relative !important;
    inset: auto !important;
    order: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    transform: none !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
    #main-content#main-content#main-content :is(
      .pa-connect-decision-hero__media,
      .pa-source-briefing__visual > .pa-menu-hero__media
    ) {
    position: relative !important;
    inset: auto !important;
    order: 1 !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
    #main-content#main-content#main-content :is(
      .pa-connect-route-ticket,
      .pa-source-privacy-card
    ) {
    position: relative !important;
    inset: auto !important;
    order: 2 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-print-shops-page .pa-shop-hero {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-print-shops-page .pa-shop-hero-inner {
    position: relative !important;
    inset: auto !important;
    order: 1 !important;
    width: 100% !important;
    margin: 0 !important;
    padding-top: 3rem !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-print-shops-page .pa-shop-hero-media {
    position: relative !important;
    inset: auto !important;
    order: 2 !important;
    width: 100% !important;
    height: 24svh !important;
    min-height: 12rem !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-print-shops-page .pa-shop-hero-media > img {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-print-shops-page .pa-shop-hero-shade {
    display: none !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-get-it-printed-page .pa-get-it-printed__hero-inner {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-get-it-printed-page .pa-get-it-printed__hero-copy {
    position: relative !important;
    inset: auto !important;
    order: 1 !important;
    width: 100% !important;
    max-width: none !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-get-it-printed-page .pa-quote-brief-example {
    position: relative !important;
    inset: auto !important;
    order: 2 !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
  }
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace)
  #main-content#main-content#main-content .card-body > .text-success {
  line-height: 1.2 !important;
  padding-block: 0.2em !important;
}

@media (max-width: 767.98px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-connect-route-ticket :is(
      .pa-connect-route-ticket__label,
      .pa-connect-route-ticket__list > li,
      .pa-connect-route-ticket__list > li > span,
      .pa-connect-route-ticket__list > li > strong
    ),
  html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-source-privacy-card > * {
    position: relative !important;
    z-index: 2 !important;
    display: block !important;
    padding-block: 0.125rem !important;
    line-height: 1.45 !important;
    background-color: var(--surface-elevated) !important;
    background-image: none !important;
    isolation: isolate;
  }
}

/* Iteration 7: direct paint and mobile stacking for the remaining strict
 * contrast geometry. Text retains the canonical hierarchy; only its local
 * underlay and stacking relationship become explicit. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace)
  #main-content#main-content#main-content
  .table-responsive > table.table > :not(caption) > * > * {
  background-color: var(--surface) !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-admin.pa-admin-page:not(.pa-protected-workspace)
  #main-content#main-content#main-content :is(
    .card-body > .text-success,
    .card .text-truncate
  ) {
  position: relative !important;
  z-index: 2 !important;
  background-color: var(--surface) !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content :is(
    #connect-heading,
    #discover-title,
    #printShopsTitle,
    #get-it-printed-heading,
    #guides-title,
    #sourcePageTitle
  ) {
  position: relative !important;
  z-index: 5 !important;
  display: block;
  background-color: var(--section-bg) !important;
  background-image: none !important;
  isolation: isolate;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content :is(
    .pa-connect-hub__lede,
    .pa-menu-hero__copy > p,
    .pa-section-intro > h2,
    .pa-guides-chapter__header > *,
    .pa-sample-report-page .pa-report-title-row .h1
  ) {
  position: relative !important;
  z-index: 4 !important;
  background-color: var(--surface) !important;
  background-image: none !important;
  isolation: isolate;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content :is(
    .pa-connect-route-ticket,
    .pa-connect-route-ticket *,
    .pa-source-privacy-card,
    .pa-source-privacy-card *
  ) {
  background-color: var(--surface-elevated) !important;
  background-image: none !important;
  isolation: isolate;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-guides-manual__closing,
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-guides-manual__closing > div,
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-guides-manual__closing > div > * {
  background-color: var(--surface) !important;
  background-image: none !important;
  isolation: isolate;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-sample-report-page .pa-sample-report-lead-media::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-sample-report-page .pa-sample-report-stamp,
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-sample-report-page .pa-sample-report-stamp > * {
  background-color: var(--surface-elevated) !important;
  background-image: none !important;
  isolation: isolate;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace:has(.studio-guide[data-studio-manual])
  > [data-pa-cookie-banner].pa-cookie-banner {
  position: relative !important;
  inset: auto !important;
  z-index: 5 !important;
  width: min(72rem, calc(100% - 2rem)) !important;
  max-height: none !important;
  margin: 1rem auto 0 !important;
  overflow: visible !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace:has(.studio-guide[data-studio-manual])
  > [data-pa-cookie-banner].pa-cookie-banner .pa-cookie-banner__copy,
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace:has(.studio-guide[data-studio-manual])
  > [data-pa-cookie-banner].pa-cookie-banner #pa-cookie-banner-description,
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace:has(.studio-guide[data-studio-manual])
  > [data-pa-cookie-banner].pa-cookie-banner .pa-cookie-choice-form {
  position: relative !important;
  min-width: 0 !important;
  isolation: isolate !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace:has(.studio-guide[data-studio-manual])
  > [data-pa-cookie-banner].pa-cookie-banner .pa-cookie-banner__copy {
  z-index: 2 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace:has(.studio-guide[data-studio-manual])
  > [data-pa-cookie-banner].pa-cookie-banner #pa-cookie-banner-description {
  z-index: 3 !important;
  display: block !important;
  padding-block: 0.0625rem !important;
  transform: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace:has(.studio-guide[data-studio-manual])
  > [data-pa-cookie-banner].pa-cookie-banner .pa-cookie-choice-form {
  z-index: 1 !important;
}

@media (max-width: 767.98px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
    #main-content#main-content#main-content :is(
      .pa-connect-route-ticket,
      .pa-source-privacy-card
    ) {
    position: relative !important;
    z-index: 5 !important;
  }
}

/* Iteration 3 measured Dark closure. Keep authored depth and media hierarchy,
 * but move every computed channel onto the supplied navy/teal role palette. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home .pa-home-hero {
  background-color: var(--section-bg) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home #home-title {
  background-color: #0f1e27 !important;
  background-image: none !important;
  text-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home .pa-home-hero-copy {
  background-color: #0f1e27 !important;
  background-image: none !important;
  opacity: 1 !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  mix-blend-mode: normal !important;
  animation: none !important;
  transform: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content .pa-home .pa-home-printer__toast > p {
  background: #081620 !important;
  background-image: none !important;
}

/* The shared choice partial now declares the actual choice on each control.
 * Reject remains an outline action; Allow remains the single primary accent. */
html[data-pa-theme="dark"] body.pa-body.pa-body .pa-cookie-choice.pa-cookie-choice[data-pa-cookie-choice="reject"] {
  border-color: var(--border) !important;
  background: transparent !important;
  background-image: none !important;
  color: var(--text-main) !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body .pa-cookie-choice.pa-cookie-choice[data-pa-cookie-choice="allow"] {
  border-color: var(--primary-teal) !important;
  background: var(--primary-teal) !important;
  background-image: none !important;
  color: var(--page-bg) !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body .pa-cookie-choice.pa-cookie-choice[data-pa-cookie-choice="allow"] * {
  color: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  > [data-pa-cookie-banner].pa-cookie-banner
  .pa-cookie-choice.pa-cookie-choice[data-pa-cookie-choice="reject"] {
  border-color: var(--border) !important;
  background: transparent !important;
  background-image: none !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  > [data-pa-cookie-banner].pa-cookie-banner
  .pa-cookie-choice.pa-cookie-choice[data-pa-cookie-choice="allow"] {
  border-color: var(--primary-teal) !important;
  background: var(--primary-teal) !important;
  background-image: none !important;
  color: var(--page-bg) !important;
}

/* Account actions need intrinsic contrast, including the native upload row. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-account:not(.pa-protected-workspace)
  #main-content#main-content :is(.text-warning, .form-text.text-warning) {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-account:not(.pa-protected-workspace)
  #main-content#main-content #update-profile-button {
  border-color: var(--primary-teal) !important;
  background: var(--primary-teal) !important;
  background-image: none !important;
  color: var(--page-bg) !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-account:not(.pa-protected-workspace)
  #main-content#main-content #update-profile-button * {
  color: var(--page-bg) !important;
}

/* Axis labels are authored highlights. <mark> makes that role explicit while
 * X stays neutral and Y/Z retain the supplied semantic teal hierarchy. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace:has(.studio-guide[data-studio-manual])
  #main-content#main-content .studio-guide .studio-guide__axis-grid article > mark {
  border: 1px solid var(--border) !important;
  background: var(--surface-hover) !important;
  background-image: none !important;
  color: var(--text-main) !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace:has(.studio-guide[data-studio-manual])
  #main-content#main-content .studio-guide .studio-guide__axis-grid article[data-axis="y"] > mark {
  border-color: var(--primary-teal) !important;
  background: var(--primary-teal) !important;
  color: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace:has(.studio-guide[data-studio-manual])
  #main-content#main-content .studio-guide .studio-guide__axis-grid article[data-axis="z"] > mark {
  border-color: var(--bright-teal) !important;
  background: var(--bright-teal) !important;
  color: var(--page-bg) !important;
}

/* Decorative feature glyphs are supporting copy, not active controls. */
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content :is(
    .pa-shop-intake-route li > i,
    .pa-quote-checklist li > i,
    .pa-projects-create-blocked > i,
    .pa-doctor-hero-promises > span > i,
    .pa-doctor-guide-tools > div > i,
    .pa-sample-report-page .is-complete i
  ),
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content :is(
    .pa-shop-intake-route li > i,
    .pa-quote-checklist li > i,
    .pa-projects-create-blocked > i,
    .pa-doctor-hero-promises > span > i,
    .pa-doctor-guide-tools > div > i,
    .pa-sample-report-page .is-complete i
  )::before {
  color: var(--text-body) !important;
  text-shadow: none !important;
}

/* Major editorial structures retain a deep paper lift. */
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content :is(
    .pa-account-page-head,
    .pa-connect-hub__hero,
    .pa-get-it-printed__hero,
    .pa-page-hero,
    .pa-source-briefing,
    .pa-sample-report-lead,
    .pa-report-main-board
  ) {
  box-shadow: 0 20px 52px rgba(8, 22, 32, 0.28) !important;
}

/* Panels, route ledgers, and report modules keep a smaller canonical lift. */
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content :is(
    .pa-connect-hub__signal,
    .pa-connect-hub__prep-list,
    .pa-discover-jump,
    .pa-shop-intake-route,
    .pa-quote-scope-register,
    .pa-quote-scope-register__column,
    .pa-quote-problem,
    .pa-quote-handoff,
    .pa-guides-manual__chapter-strip,
    .pa-guides-chapter__checklist,
    .pa-guides-manual__closing,
    .pa-help-router__boundary,
    .pa-help-router__human,
    .pa-material-copy,
    .pa-caution,
    .pa-doctor-decision-story,
    .pa-doctor-plan-strip,
    .pa-accuracy-note,
    .pa-report-actions-bar,
    .pa-report-score-rail,
    .pa-report-tabs,
    .pa-report-overview-card,
    .pa-sample-model-preview,
    .pa-report-workflow-status,
    .pa-score-findings,
    .pa-price-preview,
    .pa-source-desk__header,
    .pa-source-form-note,
    .pa-source-support-card
  ) {
  box-shadow: 0 16px 38px rgba(8, 22, 32, 0.28) !important;
}

/* Compact fact and promise tiles use the same canonical channel at a scale
 * appropriate to their size. */
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content :is(
    .pa-material-facts > div,
    .pa-skill-track > article,
    .pa-doctor-hero-promises > span
  ) {
  box-shadow: 0 8px 20px rgba(8, 22, 32, 0.28) !important;
}

/* The Light image remains the unchanged source of truth. Dark renders the
 * same authored asset into an explicitly labeled immersive canvas so the
 * visual can stay cinematic without pretending to be bounded content. */
.pa-dark-authored-media {
  display: none;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace) img.pa-light-authored-media {
  display: none !important;
}

/* Keep the original photo visible until its dark canvas has drawn real pixels.
 * A failed image load, blocked script, or unavailable 2D context must not
 * turn authored media into an empty dark rectangle. */
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content [data-pa-theme-canvas-host]:not([data-pa-theme-canvas-ready]) > img.pa-light-authored-media {
  display: block !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content [data-pa-theme-canvas-host]:not([data-pa-theme-canvas-ready]) > canvas.pa-dark-authored-media {
  visibility: hidden !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content :is(
    .pa-home-story-media,
    .pa-home-story-frame,
    .pa-home-final-media,
    .pa-shop-production-world,
    .pa-guides-manual__workshop,
    .pa-help-router__visual,
    .pa-help-router__human > figure,
    .pa-sample-report-lead-media
  )[data-pa-theme-media-host="immersive"] {
  border-color: var(--border) !important;
  background-color: var(--page-bg) !important;
  background-image: none !important;
  opacity: 1 !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  mix-blend-mode: normal !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content canvas.pa-dark-authored-media[data-pa-theme-media="immersive-content"] {
  position: relative;
  inset: auto;
  z-index: 0;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: inherit;
  max-height: none !important;
  margin: 0 !important;
  border-color: var(--border) !important;
  background: var(--page-bg) !important;
  background-image: none !important;
  color: var(--text-body) !important;
  object-position: center;
  opacity: 1 !important;
  filter: none !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content .pa-home .pa-home-story-frame > canvas.pa-dark-authored-media {
  position: absolute;
  inset: 0;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content .pa-home .pa-home-final-media > canvas.pa-dark-authored-media {
  object-fit: cover;
  object-position: 50% center;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content .pa-guides-manual__workshop > canvas.pa-dark-authored-media {
  height: clamp(24rem, 45vw, 44rem) !important;
  min-height: 0;
}

@media (max-width: 620px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
    #main-content#main-content .pa-home .pa-home-final-media > canvas.pa-dark-authored-media {
    object-position: 50% center;
  }
}

/* Use the approved two-tone on-dark lockup. Whole-image filters destroy the
 * monogram/wordmark color separation and cannot reproduce the brand artwork. */
html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .ecosystem-nav .pa-brand-logo--light,
html[data-pa-theme="dark"] body .pa-footer .pa-brand-logo--light {
  display: none !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .ecosystem-nav .pa-brand-logo--on-dark,
html[data-pa-theme="dark"] body .pa-footer .pa-brand-logo--on-dark {
  display: block !important;
  opacity: 1 !important;
  filter: none !important;
}

/* Iteration 6: strict Axe contrast determinism.
 * These declarations do not change the role palette. They give text-bearing
 * Dark surfaces one opaque canonical paint so automated contrast analysis can
 * resolve the same underlay a sighted user sees, without gradients, image
 * bleed, decorative pseudo-elements, or translucent overlap. */
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content :is(
    .pa-section-intro,
    .pa-doctor-hero-grid,
    .pa-doctor-hero-promises,
    .pa-doctor-hero-promises > span,
    .pa-doctor-plan-strip,
    .pa-doctor-plan-strip > span,
    .pa-doctor-guide-panel,
    .pa-doctor-guide-steps,
    .pa-doctor-guide-steps > ol,
    .pa-doctor-guide-steps > ol > li,
    .pa-quote-scope-register__column,
    .pa-guides-chapter__header,
    .pa-guides-chapter__checklist,
    .pa-guides-manual__chapter-strip > a,
    .pa-help-router__human,
    .pa-material-copy,
    .pa-material-facts > div,
    .pa-skill-track > article,
    .pa-caution,
    .pa-accuracy-note,
    .pa-sample-model-preview > figcaption,
    .pa-preview-fidelity,
    .pa-report-tabs,
    .pa-report-tabs > a,
    .pa-report-workflow-status,
    .pa-price-preview,
    .pa-guidance-grid > article,
    #source-help,
    .pa-shop-intake-route
  ) {
  background-color: var(--surface) !important;
  background-image: none !important;
  opacity: 1 !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  mix-blend-mode: normal !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content :is(
    .pa-menu-hero__copy
  ) {
  position: relative !important;
  z-index: 2 !important;
  border-color: var(--border) !important;
  background-color: var(--surface-elevated) !important;
  background-image: none !important;
  color: var(--text-body) !important;
  opacity: 1 !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  mix-blend-mode: normal !important;
  isolation: isolate;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content :is(
    .pa-connect-route-ticket,
    .pa-action-panel,
    .pa-shop-production-world > figcaption,
    .pa-shop-production-world figcaption
  ) {
  z-index: 2 !important;
  border-color: var(--border) !important;
  background-color: var(--surface-elevated) !important;
  background-image: none !important;
  color: var(--text-body) !important;
  opacity: 1 !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  mix-blend-mode: normal !important;
  isolation: isolate;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content :is(
    .pa-sample-report-stamp,
    .studio-guide__edition
  )::before,
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content :is(
    .pa-sample-report-stamp,
    .studio-guide__edition
  )::after {
  content: none !important;
  display: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace:has(.studio-guide[data-studio-manual])
  > [data-pa-cookie-banner].pa-cookie-banner #pa-cookie-banner-description {
  position: relative !important;
  z-index: 1 !important;
  background-color: var(--section-bg) !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace:has(.studio-guide[data-studio-manual])
  #main-content#main-content#main-content .studio-guide__edition::before,
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace:has(.studio-guide[data-studio-manual])
  #main-content#main-content#main-content .studio-guide__edition::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-discover-jump,
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-discover-jump :is(span, a, b) {
  background-color: var(--surface) !important;
  background-image: none !important;
  opacity: 1 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content :is(
    #connect-heading,
    #discover-title,
    #printShopsTitle,
    #get-it-printed-heading,
    #guides-title,
    #sourcePageTitle,
    #discover-paths-title,
    #guides-next-title,
    #printAnalysisTitle,
    .pa-section-intro > h2,
    .pa-guides-chapter__header h2,
    .pa-guides-chapter__number,
    .pa-sample-report-page .pa-report-title-row .h1
  ) {
  position: relative !important;
  z-index: 2 !important;
  line-height: 1.15 !important;
  padding-block: 0.22em !important;
}

/* The native file picker remains associated with its full-size label and
 * keyboard reachable, while its 1px implementation box is removed from the
 * painted contrast graph. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home #scoreFile {
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  background: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 767.98px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-guides-manual__chapter-strip {
    display: flex !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-connect-route-ticket {
    position: static !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-source-privacy-card {
    position: static !important;
  }
}

/* Final stacking precedence for the strict mobile closure. */
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content :is(
    #connect-heading,
    #discover-title,
    #printShopsTitle,
    #get-it-printed-heading,
    #guides-title,
    #sourcePageTitle
  ) {
  z-index: 5 !important;
  background-color: var(--section-bg) !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-protected-workspace:has(.studio-guide[data-studio-manual])
  > [data-pa-cookie-banner].pa-cookie-banner #pa-cookie-banner-description {
  z-index: 3 !important;
}

@media (max-width: 767.98px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
    #main-content#main-content#main-content :is(
      .pa-connect-route-ticket,
      .pa-source-privacy-card
    ) {
    position: relative !important;
    z-index: 5 !important;
  }
}

/* Final Iteration 8 precedence: the Guides closing surface is intentionally
 * neutral, but its primary action remains the canonical teal highlight. */
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-guides-manual__closing
  .btn-primary.btn[href$="troubleshoot"] {
  border-color: var(--primary-teal) !important;
  background-color: var(--primary-teal) !important;
  background-image: none !important;
  color: var(--page-bg) !important;
}

/* Dual-theme freeze precedence for the score/report residuals. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-report-detail-shell .pa-locked-report-preview,
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-report-detail-shell .pa-locked-preview-stage {
  border-color: var(--border) !important;
  background-color: var(--surface) !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-report-detail-shell .pa-locked-preview-stage {
  display: grid !important;
  min-height: 18rem !important;
  overflow: visible !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-report-detail-shell .pa-locked-preview-content {
  display: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-report-detail-shell .pa-locked-preview-shade {
  position: relative !important;
  inset: auto !important;
  display: grid !important;
  align-content: center !important;
  justify-items: center !important;
  box-sizing: border-box;
  width: 100% !important;
  min-height: 18rem !important;
  border: 0 !important;
  background-color: var(--surface-elevated) !important;
  background-image: none !important;
  color: var(--text-body) !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-report-detail-shell
  .pa-locked-preview-shade > strong {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-report-detail-shell
  .pa-locked-preview-shade > span {
  color: var(--text-body) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-report-detail-shell
  .pa-unlock-tier > p {
  display: block !important;
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  padding-block: 0.2em !important;
  background-color: var(--surface) !important;
  background-image: none !important;
  color: var(--text-body) !important;
  line-height: 1.5 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-report-detail-shell
  .pa-report-model-preview > img[data-pa-theme-media="content"] {
  display: block !important;
  width: min(100%, 57vmin) !important;
  height: auto !important;
  max-width: 100% !important;
  margin-inline: auto !important;
  object-fit: contain !important;
}

@media (max-width: 500px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-report-detail-shell
    .pa-report-model-preview > img[data-pa-theme-media="content"] {
    width: min(100%, 72vw) !important;
  }
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-score-entry-page
  .pa-horizontal-steps > article > span,
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-report-detail-shell
  .pa-report-process-strip li.is-complete > span {
  border-color: var(--border) !important;
  background-color: var(--surface-hover) !important;
  background-image: none !important;
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-workflow:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-report-detail-shell :is(
    .pa-report-process-score > span,
    .pa-report-fingerprint .pa-kicker,
    .pa-report-signal-grid > article > span
  ) {
  color: var(--text-body) !important;
}

@media (min-width: 768px) and (max-width: 991.98px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-contact-page .pa-contact-hero-art,
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-contact-page .pa-contact-hero-art > img[data-pa-theme-media="content"] {
      width: 100% !important;
      max-width: 100% !important;
      height: clamp(12rem, 34vw, 17rem) !important;
      max-height: 17rem !important;
      object-fit: cover !important;
    }
}

@media (max-width: 767.98px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-score-entry-page > .pa-theme-hero {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-score-entry-page .pa-theme-hero-copy {
    order: 1 !important;
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: clamp(2.9rem, 12vw, 4.2rem) clamp(1rem, 6vw, 1.45rem) 1.4rem !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-score-entry-page .pa-theme-hero h1 {
    display: block !important;
    box-sizing: border-box;
    width: fit-content !important;
    max-width: min(100%, 14ch) !important;
    padding: 0.15em 0.04em !important;
    background-color: transparent !important;
    background-image: none !important;
    line-height: 1.15 !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-score-entry-page .pa-theme-hero-points {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-score-entry-page
    .pa-theme-hero-points > article {
    box-sizing: border-box;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-score-entry-page
    .pa-theme-hero-points > article > strong {
    display: block !important;
    box-sizing: border-box;
    width: fit-content !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 0.12rem 0.18rem !important;
    background-color: transparent !important;
    background-image: none !important;
    line-height: 1.35 !important;
    overflow-wrap: anywhere;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-score-entry-page .pa-theme-hero-art {
    position: relative !important;
    inset: auto !important;
    order: 2 !important;
    width: 100% !important;
    height: min(52vw, 220px) !important;
    margin: 0 !important;
    transform: none !important;
  }
}
/* Homepage finale: retain the full-bleed authored printer scene while every
 * interface paint above it stays inside the canonical Dark role palette. */
html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-final {
  background: #081620 !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-final::before {
  display: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-final-copy {
  padding: clamp(1.5rem, 3vw, 2.5rem) !important;
  border: 0 !important;
  background: #081620 !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-final-media {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #081620 !important;
  box-shadow: none !important;
  isolation: auto !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-final-media > canvas.pa-dark-authored-media {
  position: absolute !important;
  inset: 0 !important;
  object-fit: cover !important;
  object-position: 65% center !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-final-media > img.pa-home-final-brand {
  display: block !important;
  opacity: 1 !important;
  border-color: #29434c !important;
  background: #081620 !important;
  filter: none !important;
}

@media (max-width: 900px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-home .pa-home-final-media > canvas.pa-dark-authored-media {
    object-position: 60% center !important;
  }
}

@media (max-width: 620px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-home .pa-home-final-copy {
    padding: 7.5rem 1rem 2.75rem !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-home .pa-home-final-media {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 5 !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-home .pa-home-final-media > canvas.pa-dark-authored-media {
    object-position: 65% center !important;
  }
}

@media (min-width: 621px) and (max-width: 1180px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content#main-content .pa-home .pa-home-final-media > canvas.pa-dark-authored-media {
    object-position: 50% center !important;
  }
}

html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-home .pa-home-printer
  :is(
    .pa-home-printer__toggle-grid > button > small,
    [data-pa-printer-menu-panel="settings"] label small
  ) {
  color: #c7d4d9 !important;
}

/* Admin AI Maintenance: convert dense diagnostic tables to readable mobile records. */
@media (max-width: 575.98px) {
  body.pa-family-admin:has(#main-content h1 .bi-cpu)
    #main-content > .row.g-4.mb-4
    > :is(.col-xl-7, .col-lg-8)
    .table-responsive {
    overflow: visible;
  }

  body.pa-family-admin:has(#main-content h1 .bi-cpu)
    #main-content > .row.g-4.mb-4
    > :is(.col-xl-7, .col-lg-8)
    table {
    display: block;
    width: 100%;
  }

  body.pa-family-admin:has(#main-content h1 .bi-cpu)
    #main-content > .row.g-4.mb-4
    > :is(.col-xl-7, .col-lg-8)
    thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  body.pa-family-admin:has(#main-content h1 .bi-cpu)
    #main-content > .row.g-4.mb-4
    > :is(.col-xl-7, .col-lg-8)
    tbody {
    display: grid;
    gap: 0.75rem;
  }

  body.pa-family-admin:has(#main-content h1 .bi-cpu)
    #main-content > .row.g-4.mb-4
    > :is(.col-xl-7, .col-lg-8)
    tbody tr {
    display: grid;
    gap: 0.55rem;
    padding: 0.85rem;
    border: 1px solid #29434C;
    border-radius: 8px;
    background: #152935;
  }

  body.pa-family-admin:has(#main-content h1 .bi-cpu)
    #main-content > .row.g-4.mb-4
    > :is(.col-xl-7, .col-lg-8)
    tbody td {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    color: #F1F8F9;
    text-align: left !important;
  }

  body.pa-family-admin:has(#main-content h1 .bi-cpu)
    #main-content > .row.g-4.mb-4
    > :is(.col-xl-7, .col-lg-8)
    tbody td::before {
    display: block;
    margin-bottom: 0.15rem;
    color: #8298A2;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  body.pa-family-admin:has(#main-content h1 .bi-cpu)
    #main-content > .row.g-4.mb-4 > .col-xl-7
    tbody td:nth-child(1)::before { content: "Check"; }
  body.pa-family-admin:has(#main-content h1 .bi-cpu)
    #main-content > .row.g-4.mb-4 > .col-xl-7
    tbody td:nth-child(2)::before { content: "Status"; }
  body.pa-family-admin:has(#main-content h1 .bi-cpu)
    #main-content > .row.g-4.mb-4 > .col-xl-7
    tbody td:nth-child(3)::before { content: "Detail"; }

  body.pa-family-admin:has(#main-content h1 .bi-cpu)
    #main-content > .row.g-4.mb-4 > .col-lg-8
    tbody td:nth-child(1)::before { content: "Feature"; }
  body.pa-family-admin:has(#main-content h1 .bi-cpu)
    #main-content > .row.g-4.mb-4 > .col-lg-8
    tbody td:nth-child(2)::before { content: "AI use"; }
  body.pa-family-admin:has(#main-content h1 .bi-cpu)
    #main-content > .row.g-4.mb-4 > .col-lg-8
    tbody td:nth-child(3)::before { content: "Code-owned coverage"; }
  body.pa-family-admin:has(#main-content h1 .bi-cpu)
    #main-content > .row.g-4.mb-4 > .col-lg-8
    tbody td:nth-child(4)::before { content: "Maintenance signal"; }
  body.pa-family-admin:has(#main-content h1 .bi-cpu)
    #main-content > .row.g-4.mb-4 > .col-lg-8
    tbody td:nth-child(5)::before { content: "Action"; }

  body.pa-family-admin:has(#main-content h1 .bi-cpu)
    #main-content > .row.g-4.mb-4 > .col-lg-8
    tbody td:last-child .btn {
    width: 100%;
  }
}

/* Admin audit-action links are operational filters and need a full touch target. */
@media (max-width: 575.98px) {
  #main-content a[href*="actionFilter"] {
    display: inline-flex !important;
    min-height: 28px !important;
    align-items: center !important;
    padding-block: 4px !important;
    line-height: 20px !important;
  }
}

/* The Community dialog surface owns the canonical opaque paint.  Keeping its
 * description transparent lets contrast resolution follow that single surface
 * instead of treating the paragraph as a competing intermediary layer. */
html[data-pa-theme="dark"] body.pa-body.pa-family-community:not(.pa-protected-workspace)
  #main-content#main-content#main-content #communityComposerDescription {
  background-color: transparent !important;
  background-image: none !important;
}

/* At the narrowest supported phone width the decorative callout icon yields
   to the live label, keeping the Dark action in one contained paint region. */
@media (max-width: 360px) {
  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content .pa-home .pa-home-troubleshoot-callout {
    grid-template-columns: minmax(0, 1fr) !important;
    overflow: hidden !important;
    isolation: isolate !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content .pa-home .pa-home-troubleshoot-callout__icon {
    display: none !important;
  }

  html[data-pa-theme="dark"] body.pa-body.pa-body.pa-family-marketing:not(.pa-protected-workspace)
    #main-content#main-content .pa-home .pa-home-troubleshoot-callout__copy {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    overflow: hidden !important;
    isolation: isolate !important;
  }
}

/* The narrow Sample Report title row is a true stacked composition.  Give the
   heading and status badge explicit canonical Dark surfaces so strict contrast
   evaluation sees the same paint users see instead of an overlapping sibling. */
@media (max-width: 640px) {
  html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
    #main-content#main-content .pa-sample-report-page .pa-panel-title-row {
    position: relative !important;
    z-index: 2 !important;
    background: var(--surface) !important;
    background-image: none !important;
    isolation: isolate !important;
  }

  html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
    #main-content#main-content .pa-sample-report-page .pa-panel-title-row > h2 {
    position: relative !important;
    z-index: 2 !important;
    padding-block: 0.125rem !important;
    background: var(--surface) !important;
    background-image: none !important;
    color: var(--text-main) !important;
    isolation: isolate !important;
  }

  html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace)
    #main-content#main-content .pa-sample-report-page .pa-panel-title-row > span {
    position: relative !important;
    z-index: 2 !important;
    background: var(--surface-elevated) !important;
    background-image: none !important;
    color: var(--bright-teal) !important;
    isolation: isolate !important;
  }
}

/* Deterministic shared text surfaces: final canonical Dark authority. Keep this
   closure last so text-bearing shared chrome never falls back to composited or
   route-specific paint appended by a later stylesheet repair. */
html[data-pa-theme="dark"] body.pa-body:not(.pa-protected-workspace) {
  background: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-main::before {
  content: none !important;
  display: none !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .ecosystem-nav .pa-site-nav {
  background: var(--page-bg) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-footer {
  background: var(--section-bg) !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-cookie-settings__panel {
  background: var(--surface) !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) #registerSubmit {
  background: var(--primary-teal) !important;
  color: var(--page-bg) !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-community-detail-hero {
  background: var(--section-bg) !important;
  background-image: none !important;
}

html[data-pa-theme="dark"] body:not(.pa-protected-workspace) .pa-account-main {
  background: var(--surface) !important;
  background-image: none !important;
}

/* Guest Print Score result: preserve the Light composition's two evidence
   surfaces after the global Dark reset has removed pale authored paint. */
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-analysis-result__model,
html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-analysis-result__next {
  border-color: var(--border) !important;
  background-color: var(--surface) !important;
  background-image: none !important;
  color: var(--text-body) !important;
  box-shadow: none !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-analysis-result__next {
  border-left-color: var(--primary-teal) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content .pa-analysis-result__next h2 {
  color: var(--text-main) !important;
}

html[data-pa-theme="dark"] body.pa-body.pa-body:not(.pa-protected-workspace)
  #main-content#main-content#main-content :is(
    .pa-analysis-result__model p,
    .pa-analysis-result__next p,
    .pa-analysis-result__next .pa-small-note
  ) {
  color: var(--text-body) !important;
}
