/* Quiet editorial palette draft. STAGING ONLY, opt-in root gate required.
 * Raw ramps are exact values from the supplied palette-03.strict.json.
 * This file sets variables only: no dimensions, DOM, preference, or behaviour.
 * --qe-brand / --wn-brand retain WikiNative #92278f. Action purple is separate.
 * Proposed load order: existing CSS, this token file, scoped component overlays.
 */
@media (forced-colors: none) {
  :is(body.wn-quiet-editorial, #wikinative-quiet-staging) {
    --qe-purple-050:#E6E6FF; --qe-purple-100:#C4C6FF;
    --qe-purple-200:#A2A5FC; --qe-purple-300:#8888FC;
    --qe-purple-400:#7069FA; --qe-purple-500:#5D55FA;
    --qe-purple-600:#4D3DF7; --qe-purple-700:#3525E6;
    --qe-purple-800:#1D0EBE; --qe-purple-900:#0C008C;
    --qe-teal-050:#EFFCF6; --qe-teal-100:#C6F7E2;
    --qe-teal-200:#8EEDC7; --qe-teal-300:#65D6AD;
    --qe-teal-400:#3EBD93; --qe-teal-500:#27AB83;
    --qe-teal-600:#199473; --qe-teal-700:#147D64;
    --qe-teal-800:#0C6B58; --qe-teal-900:#014D40;
    --qe-blue-grey-050:#F0F4F8; --qe-blue-grey-100:#D9E2EC;
    --qe-blue-grey-200:#BCCCDC; --qe-blue-grey-300:#9FB3C8;
    --qe-blue-grey-400:#829AB1; --qe-blue-grey-500:#627D98;
    --qe-blue-grey-600:#486581; --qe-blue-grey-700:#334E68;
    --qe-blue-grey-800:#243B53; --qe-blue-grey-900:#102A43;
    --qe-light-blue-vivid-050:#E3F8FF; --qe-light-blue-vivid-100:#B3ECFF;
    --qe-light-blue-vivid-200:#81DEFD; --qe-light-blue-vivid-300:#5ED0FA;
    --qe-light-blue-vivid-400:#40C3F7; --qe-light-blue-vivid-500:#2BB0ED;
    --qe-light-blue-vivid-600:#1992D4; --qe-light-blue-vivid-700:#127FBF;
    --qe-light-blue-vivid-800:#0B69A3; --qe-light-blue-vivid-900:#035388;
    --qe-red-vivid-050:#FFE3E3; --qe-red-vivid-100:#FFBDBD;
    --qe-red-vivid-200:#FF9B9B; --qe-red-vivid-300:#F86A6A;
    --qe-red-vivid-400:#EF4E4E; --qe-red-vivid-500:#E12D39;
    --qe-red-vivid-600:#CF1124; --qe-red-vivid-700:#AB091E;
    --qe-red-vivid-800:#8A041A; --qe-red-vivid-900:#610316;
    --qe-yellow-vivid-050:#FFFBEA; --qe-yellow-vivid-100:#FFF3C4;
    --qe-yellow-vivid-200:#FCE588; --qe-yellow-vivid-300:#FADB5F;
    --qe-yellow-vivid-400:#F7C948; --qe-yellow-vivid-500:#F0B429;
    --qe-yellow-vivid-600:#DE911D; --qe-yellow-vivid-700:#CB6E17;
    --qe-yellow-vivid-800:#B44D12; --qe-yellow-vivid-900:#8D2B0B;

    --qe-canvas:#ffffff;
    --qe-paper:#ffffff;
    --qe-surface:var(--qe-blue-grey-050);
    --qe-raised:#ffffff;
    --qe-ink:var(--qe-blue-grey-900);
    --qe-muted:var(--qe-blue-grey-600);
    --qe-line:var(--qe-blue-grey-100);
    --qe-control:var(--qe-blue-grey-400);
    --qe-link:var(--qe-purple-700);
    --qe-focus:var(--qe-purple-700);
    --qe-selection:var(--qe-purple-050);
    --qe-brand:#92278f;
    --qe-action:var(--qe-purple-700);
    --qe-action-hover:var(--qe-purple-800);
    --qe-action-ink:#ffffff;
    --qe-good:var(--qe-teal-800);
    --qe-good-surface:var(--qe-teal-050);
    --qe-warning:var(--qe-yellow-vivid-900);
    --qe-warning-surface:var(--qe-yellow-vivid-050);
    --qe-error:var(--qe-red-vivid-800);
    --qe-error-surface:var(--qe-red-vivid-050);
    --qe-info:var(--qe-light-blue-vivid-900);
    --qe-info-surface:var(--qe-light-blue-vivid-050);
    --qe-icon-surface:transparent;
    --qe-shadow:rgba(16,42,67,.09);

    /* Shared Studio tokens: native wiki and portal consume these already. */
    --wn-canvas:var(--qe-canvas);
    --wn-surface:var(--qe-paper);
    --wn-raised:var(--qe-surface);
    --wn-text:var(--qe-ink);
    --wn-secondary:var(--qe-muted);
    --wn-brand:var(--qe-brand);
    --wn-link:var(--qe-link);
    --wn-focus:var(--qe-focus);
    --wn-divider:var(--qe-line);
    --wn-control-border:var(--qe-control);
    --wn-success:var(--qe-good);
    --wn-warning:var(--qe-warning);
    --wn-error:var(--qe-error);

    /* Existing portal shell aliases. No names or destinations are changed. */
    --ink:var(--qe-ink); --muted:var(--qe-muted);
    --paper:var(--qe-canvas); --white:var(--qe-paper);
    --tint:var(--qe-surface); --line:var(--qe-line); --purple:var(--qe-link);
    /* Existing private wiki aliases. */
    --tks-ink:var(--qe-ink); --tks-paper:var(--qe-paper);
    --tks-muted:var(--qe-muted); --tks-line:var(--qe-line);
    --tks-purple:var(--qe-link); --tks-purple-dark:var(--qe-link);
  }

  html[data-wn-theme="dark"] :is(body.wn-quiet-editorial, #wikinative-quiet-staging),
  :is(body.wn-quiet-editorial, #wikinative-quiet-staging)[data-wn-theme="dark"],
  html:not([data-wn-theme]).skin-theme-clientpref-night :is(body.wn-quiet-editorial, #wikinative-quiet-staging) {
    --qe-canvas:var(--qe-blue-grey-900);
    --qe-paper:var(--qe-blue-grey-900);
    --qe-surface:var(--qe-blue-grey-800);
    --qe-raised:var(--qe-blue-grey-700);
    --qe-ink:var(--qe-blue-grey-050);
    --qe-muted:var(--qe-blue-grey-200);
    --qe-line:var(--qe-blue-grey-600);
    --qe-control:var(--qe-blue-grey-400);
    --qe-link:var(--qe-purple-100);
    --qe-focus:var(--qe-purple-100);
    --qe-selection:var(--qe-blue-grey-700);
    --qe-action:var(--qe-purple-100);
    --qe-action-hover:var(--qe-purple-050);
    --qe-action-ink:var(--qe-blue-grey-900);
    --qe-good:var(--qe-teal-200);
    --qe-good-surface:var(--qe-teal-900);
    --qe-warning:var(--qe-yellow-vivid-200);
    --qe-warning-surface:var(--qe-blue-grey-700);
    --qe-error:var(--qe-red-vivid-100);
    --qe-error-surface:var(--qe-red-vivid-900);
    --qe-info:var(--qe-light-blue-vivid-100);
    --qe-info-surface:var(--qe-blue-grey-800);
    --qe-icon-surface:var(--qe-purple-050);
    --qe-shadow:rgba(0,0,0,.18);
  }

  @media (prefers-color-scheme: dark) {
    html:not([data-wn-theme]).skin-theme-clientpref-os :is(body.wn-quiet-editorial, #wikinative-quiet-staging) {
      --qe-canvas:var(--qe-blue-grey-900); --qe-paper:var(--qe-blue-grey-900);
      --qe-surface:var(--qe-blue-grey-800); --qe-raised:var(--qe-blue-grey-700);
      --qe-ink:var(--qe-blue-grey-050); --qe-muted:var(--qe-blue-grey-200);
      --qe-line:var(--qe-blue-grey-600); --qe-control:var(--qe-blue-grey-400);
      --qe-link:var(--qe-purple-100); --qe-focus:var(--qe-purple-100);
      --qe-selection:var(--qe-blue-grey-700);
      --qe-action:var(--qe-purple-100); --qe-action-hover:var(--qe-purple-050);
      --qe-action-ink:var(--qe-blue-grey-900);
      --qe-good:var(--qe-teal-200); --qe-good-surface:var(--qe-teal-900);
      --qe-warning:var(--qe-yellow-vivid-200); --qe-warning-surface:var(--qe-blue-grey-700);
      --qe-error:var(--qe-red-vivid-100); --qe-error-surface:var(--qe-red-vivid-900);
      --qe-info:var(--qe-light-blue-vivid-100); --qe-info-surface:var(--qe-blue-grey-800);
      --qe-icon-surface:var(--qe-purple-050); --qe-shadow:rgba(0,0,0,.18);
    }
  }
}

/* Staging presentation layer. Native layout, type metrics and interaction rules retained. */
@media (forced-colors: none) {
  html:root body.wn-quiet-editorial {
    --color-base:var(--qe-ink); --color-emphasized:var(--qe-ink);
    --color-subtle:var(--qe-muted); --color-placeholder:var(--qe-muted);
    --color-progressive:var(--qe-link); --color-link:var(--qe-link);
    --color-link--visited:var(--qe-link); --color-visited:var(--qe-link);
    --background-color-base:var(--qe-paper);
    --background-color-neutral:var(--qe-surface);
    --background-color-neutral-subtle:var(--qe-paper);
    --background-color-progressive:var(--qe-action);
    --border-color-base:var(--qe-control); --border-color-subtle:var(--qe-line);
    color:var(--qe-ink)!important; background-color:var(--qe-canvas)!important;
  }
  html:root body.wn-quiet-editorial :is(.mw-page-container,.mw-body,.mw-body-content,.mw-body-header,.vector-header-container,.vector-header,.vector-sticky-header,.mw-footer-container,.vector-main-menu,.vector-page-tools,.vector-toc,.site-header,.site-footer,.app-shell,.main-content,.wnsso-bar) {
    background-color:var(--qe-paper)!important; color:var(--qe-ink)!important; border-color:var(--qe-line)!important;
  }
  html:root body.wn-quiet-editorial :is(h1,h2,h3,h4,.mw-page-title-main) {color:var(--qe-ink)!important;border-color:var(--qe-line)!important;}
  html:root body.wn-quiet-editorial :is(.muted,.subtle,.quiet,.subtitle,.wn-card-description,.wn-card-subtitle,.mw-footer,.vector-menu-heading) {color:var(--qe-muted)!important;}
  html:root body.wn-quiet-editorial a:not(.wn-work-card):not(.button):not(.btn):not(.csrc-btn) {color:var(--qe-link);}
  html:root body.wn-quiet-editorial :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=submit]),textarea,select,.cdx-text-input__input) {
    background-color:var(--qe-paper)!important;color:var(--qe-ink)!important;border-color:var(--qe-control)!important;caret-color:var(--qe-ink);
  }
  html:root body.wn-quiet-editorial :is(input,textarea)::placeholder {color:var(--qe-muted)!important;}
  html:root body.wn-quiet-editorial :is(button,.button,.btn,.cs-btn,.oo-ui-buttonElement-button) {
    border-color:var(--qe-control);color:var(--qe-ink);background-color:var(--qe-paper);
  }
  html:root body.wn-quiet-editorial :is(button[type=submit],input[type=submit],.wn-primary,.btn-primary,.button-primary,.cs-primary,.csrc-btn,.oo-ui-flaggedElement-primary>.oo-ui-buttonElement-button,.cdx-button--weight-primary,#wpLoginAttempt) {
    background-color:var(--qe-action)!important;color:var(--qe-action-ink)!important;border-color:var(--qe-action)!important;
  }
  html:root body.wn-quiet-editorial :is(button[type=submit],input[type=submit],.wn-primary,.btn-primary,.button-primary,.cs-primary,.csrc-btn):hover:not(:disabled) {
    background-color:var(--qe-action-hover)!important;color:var(--qe-action-ink)!important;
  }
  html:root body.wn-quiet-editorial :is(.card,.wn-panel,.wn-callout,.wn-scratch-li,.ss-form,.wn-order-card,.wn-report,.cr-report,.cr-card,.ce-card,.ce-note,.ce-hint,.wnsso-box,.wn-dialog,.wn-modal) {
    color:var(--qe-ink)!important;background-color:var(--qe-paper)!important;border-color:var(--qe-line)!important;
  }
  html:root body.wn-quiet-editorial :is(.successbox,.mw-message-box-success,.notice-success,.ss-ok,.csrc-ok,.ci-success) {
    background-color:var(--qe-good-surface)!important;color:var(--qe-good)!important;border-color:var(--qe-good)!important;
  }
  html:root body.wn-quiet-editorial :is(.warningbox,.mw-message-box-warning,.notice-warning,.csrc-warn,.ci-warning,.cs-warn) {
    background-color:var(--qe-warning-surface)!important;color:var(--qe-warning)!important;border-color:var(--qe-warning)!important;
  }
  html:root body.wn-quiet-editorial :is(.errorbox,.mw-message-box-error,.notice-error,.csrc-err,#ci-error,.error) {
    background-color:var(--qe-error-surface)!important;color:var(--qe-error)!important;border-color:var(--qe-error)!important;
  }
  html:root body.wn-quiet-editorial :is(.cs-danger,.cs-reject,.cs-withdraw,.button-danger,.wn-scratch-do-delete input[type=submit]) {
    color:var(--qe-error)!important;background-color:var(--qe-error-surface)!important;border-color:var(--qe-error)!important;
  }
  html:root body.wn-quiet-editorial :is(.wikitable,.infobox,pre,.mw-highlight) {
    color:var(--qe-ink)!important;background-color:var(--qe-paper)!important;border-color:var(--qe-line)!important;
  }
  html:root body.wn-quiet-editorial :is(.wikitable>*>tr>th,.infobox-title,.infobox-above,.infobox-header) {
    color:var(--qe-ink)!important;background-color:var(--qe-surface)!important;border-color:var(--qe-line)!important;
  }
  html:root body.wn-quiet-editorial :is(a,button,input,textarea,select,summary,[tabindex]):focus-visible {outline-color:var(--qe-focus)!important;}
  html:root body.wn-quiet-editorial ::selection {background-color:var(--qe-selection)!important;color:var(--qe-ink)!important;}
  /* Surrounding application chrome only. Native review-pane/wheel metrics stay intact. */
  html:root body.wn-quiet-editorial :is(.firstHeading,.mw-page-title-main) {font-weight:400;}
  html:root body.wn-quiet-editorial #pt-quiet-toolshed a {display:inline-flex;align-items:center;gap:8px;text-decoration:none;}
  html:root body.wn-quiet-editorial #pt-quiet-toolshed a::before {content:"";display:inline-block;width:22px;height:22px;background-color:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 9 9-6 9 6v12H3V9Zm5 12v-8h8v8M3 9h18M10 16h4'/%3E%3C/svg%3E") center/contain no-repeat;}
  html[data-wn-theme="dark"] body.wn-quiet-editorial :is(.brand-wordmark,.wnsso-id b,.brand-name,.wn-wordmark) {color:var(--qe-link)!important;}
}

/* Staging identity and navigation sit outside every native tool workspace. */
html:root body.wn-quiet-editorial .qe-stage-strip { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:10px 0; margin:0 0 18px; border-bottom:1px solid var(--qe-line); color:var(--qe-muted); font:14px/1.4 "Times New Roman",serif; text-align:left; }
html:root body.wn-quiet-editorial .qe-stage-strip a { display:inline-flex; gap:8px; align-items:center; color:var(--qe-link); text-decoration:none; padding:5px 8px; border-radius:4px; }
html:root body.wn-quiet-editorial .qe-stage-strip a:hover { background:var(--qe-surface); }
/* Show the return shortcut inside tools, never on the Toolshed itself. */
html:root body.wn-quiet-editorial.page-Main_Page .qe-stage-toolshed { display:none; }
html:root body.wn-quiet-editorial .qe-stage-toolshed a.external { background-image:none; }
html:root body.wn-quiet-editorial .qe-stage-strip svg { width:22px; height:22px; flex-shrink:0; }
html:root body.wn-quiet-editorial #siteNotice { margin:0; }
html[data-wn-theme="dark"] body.wn-quiet-editorial .mw-logo-wordmark { filter:brightness(0) invert(90%); }
html:root body.wn-quiet-editorial .qe-portal-stage { margin:0 auto; padding:8px 24px; max-width:1160px; }
@media(max-width:600px) { html:root body.wn-quiet-editorial .qe-stage-strip { font-size:13px; gap:8px; margin-bottom:12px; } html:root body.wn-quiet-editorial #firstHeading {font-size:28px;line-height:1.2;} }

  html:root body.wn-quiet-editorial .qe-stage-strip a::before {content:"";display:inline-block;width:22px;height:22px;background-color:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 9 9-6 9 6v12H3V9Zm5 12v-8h8v8M3 9h18M10 16h4'/%3E%3C/svg%3E") center/contain no-repeat;}

@media (forced-colors:none) { html:root body.wn-quiet-editorial .ce-introduction {background-color:var(--qe-surface)!important;color:var(--qe-ink)!important;border-color:var(--qe-line)!important;} html:root body.wn-quiet-editorial .ce-introduction :is(.ce-private-label,summary) {color:var(--qe-link)!important;} }

@media (forced-colors:none) {
html:root body.wn-quiet-editorial .ce-proposal-introduction {background-color:var(--qe-surface)!important;color:var(--qe-ink)!important;border-color:var(--qe-line)!important;}
html:root body.wn-quiet-editorial :is(.ce-proposal-introduction,.ce-introduction,.ce-note)>p {color:var(--qe-ink)!important;}
}

html:root body.wn-quiet-editorial .qe-wordmark {font:normal 30px/1.2 "Times New Roman",serif;letter-spacing:0;color:#92278f;}
html[data-wn-theme="dark"] body.wn-quiet-editorial .qe-wordmark {color:var(--qe-link);}
html:root body.wn-quiet-editorial .identity-caption {font:normal 14px/1.4 "Times New Roman",serif;color:var(--qe-muted);}

/* Portal-only reading sizes. Native wiki editor and wheel metrics are untouched. */
html:root body.wn-quiet-editorial:not(.mediawiki) {font-family:"Times New Roman",serif;font-size:16px;}
html:root body.wn-quiet-editorial:not(.mediawiki) :is(label,.nav-link,.field-help,.identity-caption,.site-header button) {font-size:16px;line-height:1.5;}
html:root body.wn-quiet-editorial:not(.mediawiki) main p {font-size:16px;line-height:1.6;}
html:root body.wn-quiet-editorial:not(.mediawiki) :is(input,select,textarea,button) {font-family:"Times New Roman",serif;}
html:root body.wn-quiet-editorial:not(.mediawiki) .site-header .button-text {background:transparent!important;color:var(--qe-link)!important;border:1px solid var(--qe-line)!important;border-radius:4px;padding:8px 12px;text-decoration:none;}

@media (forced-colors:none) {
html[data-wn-theme="dark"] body.wn-quiet-editorial .vector-user-links a {color:var(--qe-link)!important;}
html:root body.wn-quiet-editorial:not(.mediawiki) .site-header form[action="/logout"] button.button-text[type="submit"] {background-color:var(--qe-paper)!important;color:var(--qe-link)!important;border-color:var(--qe-control)!important;}
}

/* Quiet editorial Toolshed. STAGING DRAFT ONLY. Load quiet-palette-tokens.css
 * first. Source: fresh live-source snapshot, 15 Nov 2026:
 * portal public/assets/client-dashboard.css and native ClientSuggest/resources/
 * ext.clientSuggest.dashboard.css. Both match inspected refinement candidates.
 *
 * Keep native paired groups, four/two columns, icon sizes, spacing, centred
 * labels, card transparency, native Draft details chooser and permissions.
 * This layer changes pigments only. It adds no content, display, geometry,
 * motion, positioning, overflow, interaction or event handlers.
 */
@media (forced-colors: none) {
  body.wn-quiet-editorial.wn-dashboard,
  body.wn-quiet-editorial.wn-dashboard :is(.mw-page-container,.mw-body,#content),
  :is(body.wn-quiet-editorial,#wikinative-quiet-staging) .app-shell.simple-dashboard,
  :is(body.wn-quiet-editorial,#wikinative-quiet-staging) .simple-dashboard .main-content {
    background-color:var(--qe-canvas,#ffffff) !important;
    color:var(--qe-ink,#102A43) !important;
  }
  :is(body.wn-quiet-editorial,#wikinative-quiet-staging) :is(.wn-workspace-intro,.wn-workspace-links) {
    color:var(--qe-muted,#486581) !important;
  }
  :is(body.wn-quiet-editorial,#wikinative-quiet-staging) .wn-workspace-cards.wn-tool-shelves .wn-work-card {
    color:var(--qe-ink,#102A43) !important;
    background-color:transparent !important;
    box-shadow:none !important;
  }
  :is(body.wn-quiet-editorial,#wikinative-quiet-staging) .wn-tool-shelves .wn-work-card > span:not(.wn-work-icon):not(.wn-work-arrow),
  :is(body.wn-quiet-editorial,#wikinative-quiet-staging) .wn-tool-shelves .wn-work-card strong {
    color:var(--qe-ink,#102A43) !important;
  }
  :is(body.wn-quiet-editorial,#wikinative-quiet-staging) .wn-tool-shelves .wn-work-card span span {
    color:var(--qe-muted,#486581) !important;
  }
  :is(body.wn-quiet-editorial,#wikinative-quiet-staging) .wn-tool-shelves .wn-work-icon {
    color:var(--qe-brand,#92278f) !important;
    background-color:var(--qe-icon-surface,transparent);
    border-radius:6px;
  }
  :is(body.wn-quiet-editorial,#wikinative-quiet-staging) .wn-tool-shelves a.wn-work-card:hover,
  :is(body.wn-quiet-editorial,#wikinative-quiet-staging) .wn-tool-shelves a.wn-work-card:hover strong {
    color:var(--qe-link,#3525E6) !important;
    text-decoration-color:var(--qe-link,#3525E6) !important;
  }
  :is(body.wn-quiet-editorial,#wikinative-quiet-staging) .wn-tool-shelves :is(.wn-work-card,a,summary):focus-visible {
    outline-color:var(--qe-focus,#3525E6) !important;
  }
  :is(body.wn-quiet-editorial,#wikinative-quiet-staging) .wn-tool-shelves .wn-workspace-draft-chooser > summary::after,
  :is(body.wn-quiet-editorial,#wikinative-quiet-staging) .wn-tool-shelves .wn-workspace-draft-chooser a:any-link,
  :is(body.wn-quiet-editorial,#wikinative-quiet-staging) .wn-workspace-links a:any-link {
    color:var(--qe-link,#3525E6) !important;
  }
  /* Retain original disabled icon filter/opacity and every availability label. */
  :is(body.wn-quiet-editorial,#wikinative-quiet-staging) .wn-tool-shelves .wn-work-card:is(.wn-work-disabled,.wn-work-pending,[aria-disabled="true"]),
  :is(body.wn-quiet-editorial,#wikinative-quiet-staging) .wn-tool-shelves .wn-work-card:is(.wn-work-disabled,.wn-work-pending,[aria-disabled="true"]) :is(strong,span) {
    color:var(--qe-muted,#486581) !important;
    background-color:transparent !important;
  }
  :is(body.wn-quiet-editorial,#wikinative-quiet-staging) .wn-account-menu nav {
    color:var(--qe-ink,#102A43) !important;
    background-color:var(--qe-raised,#ffffff) !important;
    border-color:var(--qe-line,#D9E2EC) !important;
  }
  :is(body.wn-quiet-editorial,#wikinative-quiet-staging) .wn-account-menu nav a:any-link {
    color:var(--qe-link,#3525E6) !important;
  }
}

/*
 * Quiet editorial: Library builder, Librarian and image tools.
 * STAGING DRAFT ONLY. Load after the existing styles, and apply the explicit
 * body.wn-quiet-editorial class or #wikinative-quiet-staging wrapper in staging.
 * Neither the gate nor stylesheet inclusion is installed by this file.
 *
 * Properties are pigment, border colour/radius, shadow and native-control colour
 * only. Native dimensions, layout, overflow, scrolling, visibility, positioning,
 * motion, hit areas, controls, states and all JavaScript remain untouched.
 * Existing source/document images and their pixels are never filtered/recoloured.
 *
 * Sources inspected: fresh live-source snapshot, 15 Nov 2026: ClientSources
 * librarian.v3, reader.v2, intake, preparation, people; ClientImages styles/JS.
 * Palette: supplied palette-03.strict.json; brand purple #92278f is retained.
 * Native selectors checked against fresh source; rendered staging QA remains.
 */

:is(body.wn-quiet-editorial, #wikinative-quiet-staging) {
  --qe-library-paper: #ffffff;
  --qe-library-surface: #F0F4F8;
  --qe-library-raised: #ffffff;
  --qe-library-ink: #102A43;
  --qe-library-muted: #486581;
  --qe-library-line: #D9E2EC;
  --qe-library-control: #829AB1;
  --qe-library-link: #3525E6;
  --qe-library-focus: #3525E6;
  --qe-library-tint: #E6E6FF;
  --qe-library-brand: #92278f;
  --qe-library-button: #3525E6;
  --qe-library-button-hover: #1D0EBE;
  --qe-library-button-ink: #ffffff;
  --qe-library-success: #0C6B58;
  --qe-library-success-surface: #EFFCF6;
  --qe-library-warning: #8D2B0B;
  --qe-library-warning-surface: #FFFBEA;
  --qe-library-error: #8A041A;
  --qe-library-error-surface: #FFE3E3;
  --qe-library-shadow: rgba(16, 42, 67, .09);
}

html[data-wn-theme="dark"] :is(body.wn-quiet-editorial, #wikinative-quiet-staging),
:is(body.wn-quiet-editorial, #wikinative-quiet-staging)[data-wn-theme="dark"] {
  --qe-library-paper: #102A43;
  --qe-library-surface: #243B53;
  --qe-library-raised: #334E68;
  --qe-library-ink: #F0F4F8;
  --qe-library-muted: #BCCCDC;
  --qe-library-line: #486581;
  --qe-library-control: #829AB1;
  --qe-library-link: #C4C6FF;
  --qe-library-focus: #C4C6FF;
  --qe-library-tint: #334E68;
  --qe-library-button: #C4C6FF;
  --qe-library-button-hover: #E6E6FF;
  --qe-library-button-ink: #102A43;
  --qe-library-success: #8EEDC7;
  --qe-library-success-surface: #014D40;
  --qe-library-warning: #FCE588;
  --qe-library-warning-surface: #334E68;
  --qe-library-error: #FFBDBD;
  --qe-library-error-surface: #610316;
  --qe-library-shadow: rgba(0, 0, 0, .18);
}

/* Only these native application roots participate. */
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) :is(.csrc-wrap, #ci-app, .ci-entry, #librarian-root, .librarian-reader) {
  color: var(--qe-library-ink) !important;
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) :is(.csrc-wrap, #ci-app, .ci-entry, #librarian-root, .librarian-reader) :is(h1,h2,h3,h4,h5,h6,label,legend,strong) {
  color: var(--qe-library-ink) !important;
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) :is(.csrc-wrap, #ci-app, .ci-entry, #librarian-root, .librarian-reader) a:any-link {
  color: var(--qe-library-link) !important;
  text-decoration-color: currentColor;
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) :is(.csrc-wrap, #ci-app, #librarian-root, .librarian-reader) :is(button,input,textarea,select,summary,a,[tabindex]):focus-visible {
  outline-color: var(--qe-library-focus) !important;
}

/* Library builder: preserve every native form, group, state and queue. */
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) .csrc-wrap :is(.csrc-intake-intro,.csrc-private-notice,.csrc-destination,.csrc-small,.csrc-meta,.csrc-format-hint,.csrc-format-icons,.csrc-limits,.csrc-queue-detail,.csrc-upload-info,.csrc-submitted-info,.csrc-field-hint,.csrc-trust,.csrc-people-help,.csrc-people-legacy) {
  color: var(--qe-library-muted) !important;
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) .csrc-wrap :is(.csrc-drop,.csrc-item,.csrc-queue-item,.csrc-private,.csrc-text,.csrc-soon) {
  background-color: var(--qe-library-paper) !important;
  color: var(--qe-library-ink) !important;
  border-color: var(--qe-library-line) !important;
  border-radius: 6px;
  box-shadow: none;
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) .csrc-wrap :is(.csrc-drop.csrc-dragover,.csrc-drop:focus-visible) {
  background-color: var(--qe-library-tint) !important;
  border-color: var(--qe-library-focus) !important;
  outline-color: var(--qe-library-focus) !important;
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) .csrc-wrap .csrc-tray {
  color: var(--qe-library-brand) !important;
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) .csrc-wrap :is(.csrc-paste-links,.csrc-preparation,.csrc-people,.csrc-person-row,.csrc-import,.csrc-preparation-result) {
  border-color: var(--qe-library-line) !important;
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) .csrc-wrap :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),textarea,select) {
  color: var(--qe-library-ink) !important;
  background-color: var(--qe-library-paper) !important;
  border-color: var(--qe-library-control) !important;
  caret-color: var(--qe-library-ink);
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) .csrc-wrap :is(input,textarea)::placeholder {
  color: var(--qe-library-muted) !important;
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) .csrc-wrap :is(button,.csrc-btn-small,.csrc-btn-secondary,input[type="submit"]) {
  color: var(--qe-library-ink) !important;
  background-color: var(--qe-library-paper) !important;
  border-color: var(--qe-library-control) !important;
  box-shadow: none;
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) .csrc-wrap :is(.csrc-btn,button[type="submit"]:not(.csrc-btn-secondary)) {
  color: var(--qe-library-button-ink) !important;
  background-color: var(--qe-library-button) !important;
  border-color: var(--qe-library-button) !important;
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) .csrc-wrap :is(.csrc-btn,button[type="submit"]:not(.csrc-btn-secondary)):hover:not(:disabled):not([aria-disabled="true"]) {
  background-color: var(--qe-library-button-hover) !important;
  border-color: var(--qe-library-button-hover) !important;
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) .csrc-wrap :is(.csrc-secondary,.csrc-help,.csrc-source-details,.csrc-preparation,.csrc-submission-history,.csrc-settings) > summary {
  color: var(--qe-library-ink) !important;
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) .csrc-wrap :is(.csrc-badge,.csrc-file-icon) {
  color: var(--qe-library-muted) !important;
  background-color: var(--qe-library-surface) !important;
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) .csrc-wrap :is(input[type="checkbox"],input[type="radio"],progress) {
  accent-color: var(--qe-library-link);
}
/* Do not equate a saved source with editorial acceptance by colouring it green. */
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) .csrc-wrap .csrc-queue-item[data-state="Saved"] .csrc-queue-state {
  color: var(--qe-library-ink) !important;
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) .csrc-wrap :is(.csrc-warn,.csrc-queue-item[data-state="Needs attention"]) {
  color: var(--qe-library-warning) !important;
  background-color: var(--qe-library-warning-surface) !important;
  border-color: var(--qe-library-warning) !important;
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) .csrc-wrap .csrc-queue-item[data-state="Needs attention"] .csrc-queue-state {
  color: var(--qe-library-warning) !important;
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) .csrc-wrap .csrc-err {
  color: var(--qe-library-error) !important;
  background-color: var(--qe-library-error-surface) !important;
  border-color: var(--qe-library-error) !important;
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) .csrc-wrap .csrc-ok {
  color: var(--qe-library-ink) !important;
  background-color: var(--qe-library-surface) !important;
  border-color: var(--qe-library-line) !important;
}

/* Librarian tokens drive existing search, shelves and cover. */
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) #librarian-root {
  --lib-ink: var(--qe-library-ink);
  --lib-muted: var(--qe-library-muted);
  --lib-paper: var(--qe-library-paper);
  --lib-surface: var(--qe-library-surface);
  --lib-line: var(--qe-library-line);
  --lib-accent: var(--qe-library-link);
  --lib-shelf: var(--qe-library-line);
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) #librarian-root #librarian-search-form {
  border-color: var(--qe-library-line);
  border-top-color: var(--qe-library-brand);
  background-color: var(--qe-library-paper);
  box-shadow: none;
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) #librarian-root :is(input,select,button) {
  color: var(--qe-library-ink) !important;
  background-color: var(--qe-library-paper) !important;
  border-color: var(--qe-library-control) !important;
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) #librarian-root #librarian-search-form button[type="submit"] {
  background-color: var(--qe-library-button) !important;
  color: var(--qe-library-button-ink) !important;
  border-color: var(--qe-library-button) !important;
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) #librarian-root #librarian-search-form button[type="submit"]:hover:not(:disabled) {
  background-color: var(--qe-library-button-hover) !important;
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) #librarian-root .librarian-books {
  background: transparent;
}
/* Neutral spines with one brand edge. Source identities and inline data remain. */
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) #librarian-root .librarian-book {
  --book-fg: var(--qe-library-ink) !important;
  --book-rule: var(--qe-library-line) !important;
  background: var(--qe-library-paper);
  border-color: var(--qe-library-line);
  box-shadow: inset 4px 0 var(--qe-library-brand), 2px 2px 3px var(--qe-library-shadow);
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) #librarian-root .librarian-book:hover,
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) #librarian-root .librarian-book:focus-visible {
  border-color: var(--qe-library-link);
  box-shadow: inset 4px 0 var(--qe-library-brand), 3px 7px 9px var(--qe-library-shadow);
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) #librarian-root .librarian-cover-link {
  --cover-fg: var(--qe-library-ink) !important;
  background: var(--qe-library-paper);
  border-color: var(--qe-library-line);
  box-shadow: inset 5px 0 var(--qe-library-brand), 5px 5px 0 var(--qe-library-surface), 8px 9px 15px var(--qe-library-shadow);
}

/* Reader: replace complete chrome ink/paper pairs; leave original media alone.
 * Extra specificity is necessary because reader.v2 has a three-ID !important
 * contrast repair. The native page/scroll selectors, dimensions and images are
 * deliberately absent from this override.
 */
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) :is(#librarian-root,#mw-content-text) :is(#librarian-book-dialog,.librarian-standalone-reader).librarian-reading,
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) :is(#librarian-root,#mw-content-text) :is(#librarian-book-dialog,.librarian-standalone-reader).librarian-reading .librarian-modal-reader {
  --lib-ink: var(--qe-library-ink);
  --lib-muted: var(--qe-library-muted);
  --lib-paper: var(--qe-library-paper);
  --lib-line: var(--qe-library-line);
  background: var(--qe-library-paper) !important;
  color: var(--qe-library-ink) !important;
  border-color: var(--qe-library-line);
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) :is(#librarian-root,#mw-content-text) :is(#librarian-book-dialog,.librarian-standalone-reader).librarian-reading .librarian-modal-reader :is(p,h2,h3,span,figcaption,label,button,input,select) {
  color: var(--qe-library-ink) !important;
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) :is(#librarian-root,#mw-content-text) :is(#librarian-book-dialog,.librarian-standalone-reader).librarian-reading :is(button,input,select) {
  color: var(--qe-library-ink) !important;
  background-color: var(--qe-library-paper) !important;
  border-color: var(--qe-library-control) !important;
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) :is(#librarian-root,#mw-content-text) :is(#librarian-book-dialog,.librarian-standalone-reader).librarian-reading button:hover:not(:disabled) {
  background-color: var(--qe-library-surface) !important;
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) :is(#librarian-root,#mw-content-text) :is(#librarian-book-dialog,.librarian-standalone-reader).librarian-reading button[aria-pressed="true"] {
  border-color: var(--qe-library-link) !important;
  text-decoration-color: var(--qe-library-link);
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) :is(#librarian-root,#mw-content-text) :is(#librarian-book-dialog,.librarian-standalone-reader).librarian-reading .librarian-modal-reader a:any-link {
  color: var(--qe-library-link) !important;
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) :is(#librarian-root,#mw-content-text) :is(#librarian-book-dialog,.librarian-standalone-reader).librarian-reading .librarian-live-source {
  --live-ink: var(--qe-library-ink);
  --live-link: var(--qe-library-link);
  --live-border: var(--qe-library-line);
}

/* Image upload and URL-only rationale: native shared app, no form rearrangement. */
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) #ci-app :is(.ci-intro,.ci-destination,.ci-field small,.ci-record-meta,#ci-limit,#ci-status) {
  color: var(--qe-library-muted) !important;
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) #ci-app :is(#ci-drop,.ci-record,.ci-transfer-row,.ci-result-block,.ci-thumb) {
  background-color: var(--qe-library-paper) !important;
  color: var(--qe-library-ink) !important;
  border-color: var(--qe-library-line) !important;
  border-radius: 6px;
  box-shadow: none;
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) #ci-app :is(.ci-tabs,.ci-results,.ci-help) {
  border-color: var(--qe-library-line) !important;
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) #ci-app #ci-drop svg {
  color: var(--qe-library-brand) !important;
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) #ci-app #ci-drop.ci-over {
  border-color: var(--qe-library-focus) !important;
  background-color: var(--qe-library-tint) !important;
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) #ci-app :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea,button) {
  color: var(--qe-library-ink) !important;
  background-color: var(--qe-library-paper) !important;
  border-color: var(--qe-library-control) !important;
  caret-color: var(--qe-library-ink);
  box-shadow: none;
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) #ci-app :is(input,textarea)::placeholder {
  color: var(--qe-library-muted) !important;
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) #ci-app :is(button[type="submit"],#ci-choose,.ci-tabs [aria-pressed="true"]) {
  background-color: var(--qe-library-button) !important;
  color: var(--qe-library-button-ink) !important;
  border-color: var(--qe-library-button) !important;
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) #ci-app :is(button[type="submit"],#ci-choose):hover:not(:disabled) {
  background-color: var(--qe-library-button-hover) !important;
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) #ci-app .ci-warning {
  color: var(--qe-library-warning) !important;
  background-color: var(--qe-library-warning-surface) !important;
  border-color: var(--qe-library-warning) !important;
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) #ci-app #ci-error {
  color: var(--qe-library-error) !important;
  background-color: var(--qe-library-error-surface) !important;
  border-color: var(--qe-library-error) !important;
}
:is(body.wn-quiet-editorial, #wikinative-quiet-staging) #ci-app :is(input[type="checkbox"],input[type="radio"],progress) {
  accent-color: var(--qe-library-link);
}

/* Respect the OS high-contrast palette without changing native visibility. */
@media (forced-colors: active) {
  :is(body.wn-quiet-editorial, #wikinative-quiet-staging),
  html[data-wn-theme="dark"] :is(body.wn-quiet-editorial, #wikinative-quiet-staging),
  :is(body.wn-quiet-editorial, #wikinative-quiet-staging)[data-wn-theme="dark"] {
    --qe-library-paper: Canvas;
    --qe-library-surface: Canvas;
    --qe-library-raised: Canvas;
    --qe-library-ink: CanvasText;
    --qe-library-muted: CanvasText;
    --qe-library-line: CanvasText;
    --qe-library-control: ButtonText;
    --qe-library-link: LinkText;
    --qe-library-focus: Highlight;
    --qe-library-tint: Canvas;
    --qe-library-brand: LinkText;
    --qe-library-button: ButtonFace;
    --qe-library-button-hover: ButtonFace;
    --qe-library-button-ink: ButtonText;
    --qe-library-warning: CanvasText;
    --qe-library-warning-surface: Canvas;
    --qe-library-error: CanvasText;
    --qe-library-error-surface: Canvas;
    --qe-library-shadow: transparent;
  }
}

/* Quiet editorial: Draft, Cartograph, Call James and James' Calendar.
 * STAGING CANDIDATE ONLY. Load AFTER the native extension and wiki-theme CSS.
 * Every selector requires body.wn-quiet-editorial; removing that class disables
 * this layer. No JavaScript, geometry, content, visibility or state changes.
 * Existing Times New Roman metrics, semantic weights and type sizes are kept.
 * Deliberately leave wheel pseudo-elements, thread transforms/background images,
 * dynamic shadows, outlines' widths/offsets and all motion rules untouched.
 * Forced-colour presentation remains entirely owned by native styles/browser.
 */
@media (forced-colors: none) {
  body.wn-quiet-editorial {
    --qe-review-paper: #FFFFFF;
    --qe-review-soft: #F0F4F8;
    --qe-review-raised: #FFFFFF;
    --qe-review-ink: #102A43;
    --qe-review-muted: #486581;
    --qe-review-line: #D9E2EC;
    --qe-review-control: #829AB1;
    --qe-review-link: #3525E6;
    --qe-review-action: #3525E6;
    --qe-review-action-ink: #FFFFFF;
    --qe-review-selected: #E6E6FF;
    --qe-review-brand: #92278F;
    --qe-review-good: #0C6B58;
    --qe-review-good-soft: #EFFCF6;
    --qe-review-good-strong: #C6F7E2;
    --qe-review-warning: #8D2B0B;
    --qe-review-warning-soft: #FFFBEA;
    --qe-review-error: #8A041A;
    --qe-review-error-soft: #FFE3E3;
    --qe-review-error-strong: #FFBDBD;
    --qe-review-info-soft: #E3F8FF;
    --qe-review-shadow: rgba(16, 42, 67, .08);
  }

  html[data-wn-theme="dark"] body.wn-quiet-editorial,
  html:not([data-wn-theme]).skin-theme-clientpref-night body.wn-quiet-editorial,
  html:not([data-wn-theme]) body.wn-quiet-editorial.wn-dark {
    --qe-review-paper: #102A43;
    --qe-review-soft: #243B53;
    --qe-review-raised: #243B53;
    --qe-review-ink: #F0F4F8;
    --qe-review-muted: #BCCCDC;
    --qe-review-line: #486581;
    --qe-review-control: #829AB1;
    --qe-review-link: #C4C6FF;
    --qe-review-action: #C4C6FF;
    --qe-review-action-ink: #102A43;
    --qe-review-selected: #334E68;
    --qe-review-brand: #C4C6FF;
    --qe-review-good: #8EEDC7;
    --qe-review-good-soft: #014D40;
    --qe-review-good-strong: #0C6B58;
    --qe-review-warning: #FCE588;
    --qe-review-warning-soft: #334E68;
    --qe-review-error: #FFBDBD;
    --qe-review-error-soft: #610316;
    --qe-review-error-strong: #8A041A;
    --qe-review-info-soft: #003E6B;
    --qe-review-shadow: rgba(0, 0, 0, .18);
  }

  @media (prefers-color-scheme: dark) {
    html:not([data-wn-theme]).skin-theme-clientpref-os body.wn-quiet-editorial {
      --qe-review-paper: #102A43;
      --qe-review-soft: #243B53;
      --qe-review-raised: #243B53;
      --qe-review-ink: #F0F4F8;
      --qe-review-muted: #BCCCDC;
      --qe-review-line: #486581;
      --qe-review-control: #829AB1;
      --qe-review-link: #C4C6FF;
      --qe-review-action: #C4C6FF;
      --qe-review-action-ink: #102A43;
      --qe-review-selected: #334E68;
      --qe-review-brand: #C4C6FF;
      --qe-review-good: #8EEDC7;
      --qe-review-good-soft: #014D40;
      --qe-review-good-strong: #0C6B58;
      --qe-review-warning: #FCE588;
      --qe-review-warning-soft: #334E68;
      --qe-review-error: #FFBDBD;
      --qe-review-error-soft: #610316;
      --qe-review-error-strong: #8A041A;
      --qe-review-info-soft: #003E6B;
      --qe-review-shadow: rgba(0, 0, 0, .18);
    }
  }

  /* Remap native pigment tokens locally, including high-specificity dark rules.
     No app-wide variables or MediaWiki theme preference are written. */
  html:root body.wn-quiet-editorial :is(.cs-review-workspace, #cs-panel, #cartograph, #cg-workbench, .sc-call-root, .sc-call-panel, .sc-calendar) {
    --wn-text: var(--qe-review-ink);
    --wn-secondary: var(--qe-review-muted);
    --wn-surface: var(--qe-review-paper);
    --wn-raised: var(--qe-review-soft);
    --wn-divider: var(--qe-review-line);
    --wn-control-border: var(--qe-review-control);
    --wn-link: var(--qe-review-link);
    --wn-focus: var(--qe-review-link);
    --wn-brand: var(--qe-review-brand);
    --wn-success: var(--qe-review-good);
    --wn-warning: var(--qe-review-warning);
    --wn-error: var(--qe-review-error);
    color: var(--qe-review-ink);
  }

  html:root body.wn-quiet-editorial.cs-modern-review :is(.cs-review-workspace, #cs-panel) {
    background-color: var(--qe-review-paper) !important;
    color: var(--qe-review-ink) !important;
  }
  html:root body.wn-quiet-editorial.cs-modern-review :is(.cs-review-workspace, #cs-panel) :is(.cs-review-draft, .cs-review-comments, .cs-review-tools, .cs-review-panel, .cs-card, .cs-composer) {
    background-color: var(--qe-review-paper) !important;
    border-color: var(--qe-review-line) !important;
    color: var(--qe-review-ink) !important;
  }
  html:root body.wn-quiet-editorial.cs-modern-review :is(.cs-review-workspace, #cs-panel) :is(.cs-review-comments-column, .cs-reply, .ep-wheel-head, .cs-ep-policy) {
    border-color: var(--qe-review-line) !important;
  }
  html:root body.wn-quiet-editorial.cs-modern-review :is(.cs-review-workspace, #cs-panel) .ep-wheel-head {
    background-color: var(--qe-review-soft) !important;
  }
  html:root body.wn-quiet-editorial.cs-modern-review :is(.cs-review-workspace, #cs-panel) :is(.cs-inline-title, .cs-user, .cs-review-tools > summary, .ep-wheel-head h2) {
    color: var(--qe-review-ink) !important;
  }
  html:root body.wn-quiet-editorial.cs-modern-review :is(.cs-review-workspace, #cs-panel) :is(.cs-role, .cs-date, .cs-meta, .cs-lbl, .cs-imported-label, .cs-note, .cs-removed, .cs-live-status, .ep-wheel-guide) {
    color: var(--qe-review-muted) !important;
  }
  html:root body.wn-quiet-editorial.cs-modern-review :is(.cs-review-workspace, #cs-panel) .cs-quote {
    border-color: var(--qe-review-link) !important;
  }
  html:root body.wn-quiet-editorial.cs-modern-review :is(.cs-review-workspace, #cs-panel) :is(.cs-card.cs-focus, .cs-card.cs-ep-current) {
    border-color: var(--qe-review-link) !important;
    outline-color: var(--qe-review-link) !important;
  }
  html:root body.wn-quiet-editorial.cs-modern-review :is(.cs-review-workspace, #cs-panel) .cs-card:is(.cs-status-resolved, .cs-status-accepted) {
    border-color: var(--qe-review-good) !important;
  }
  html:root body.wn-quiet-editorial.cs-modern-review :is(.cs-review-workspace, #cs-panel) .cs-card.cs-status-rejected {
    border-color: var(--qe-review-error) !important;
  }
  html:root body.wn-quiet-editorial.cs-modern-review :is(.cs-review-workspace, #cs-panel) :is(.cs-btn, .cs-linkbtn, .cs-mode-btn, .cs-review-tabs button, .cs-review-rotate, .cs-big) {
    background-color: var(--qe-review-raised) !important;
    color: var(--qe-review-link) !important;
    border-color: var(--qe-review-control) !important;
  }
  html:root body.wn-quiet-editorial.cs-modern-review :is(.cs-review-workspace, #cs-panel) :is(.cs-primary, .cs-accept) {
    background-color: var(--qe-review-action) !important;
    border-color: var(--qe-review-action) !important;
    color: var(--qe-review-action-ink) !important;
  }
  html:root body.wn-quiet-editorial.cs-modern-review :is(.cs-review-workspace, #cs-panel) :is(.cs-danger, .cs-reject, .cs-withdraw) {
    background-color: var(--qe-review-raised) !important;
    color: var(--qe-review-error) !important;
    border-color: var(--qe-review-control) !important;
  }
  html:root body.wn-quiet-editorial.cs-modern-review :is(.cs-review-workspace, #cs-panel) :is(input, textarea, select) {
    background-color: var(--qe-review-raised) !important;
    color: var(--qe-review-ink) !important;
    border-color: var(--qe-review-control) !important;
    caret-color: var(--qe-review-ink);
  }
  html:root body.wn-quiet-editorial.cs-modern-review :is(.cs-review-workspace, #cs-panel) :is(input, textarea)::placeholder {
    color: var(--qe-review-muted) !important;
  }
  html:root body.wn-quiet-editorial.cs-modern-review :is(.cs-review-workspace, #cs-panel) :is(.cs-btn, .cs-linkbtn, .cs-mode-btn, .cs-big):disabled {
    background-color: var(--qe-review-soft) !important;
    color: var(--qe-review-muted) !important;
    border-color: var(--qe-review-line) !important;
  }

  html:root body.wn-quiet-editorial.cs-modern-review :is(.cs-review-workspace, #cs-panel) :is(.cs-text, .cs-comment-text) {
    color: var(--qe-review-ink) !important;
  }

  /* Cartograph role pigments stay distinct; no proposal anchors or geometry. */
  html:root body.wn-quiet-editorial :is(#cartograph, #cg-workbench) {
    --cg-purple: var(--qe-review-link);
    --cg-border: var(--qe-review-control);
    --cg-surface: var(--qe-review-soft);
    --cg-baseline: var(--qe-review-info-soft);
    --cg-client-add: var(--qe-review-good-soft);
    --cg-james-add: var(--qe-review-good-strong);
    --cg-client-remove: var(--qe-review-error-soft);
    --cg-james-remove: var(--qe-review-error-strong);
    --cg-selected: var(--qe-review-selected);
    background-color: var(--qe-review-paper) !important;
  }
  html:root body.wn-quiet-editorial :is(#cartograph, #cg-workbench) :is(.cg-button, .cg-select, .cg-textarea, .cg-source-picker, .cg-source-search, .cg-wording, .cg-review-rendered, .cg-details-head, .cg-label, .cg-proposal-label) {
    background-color: var(--qe-review-raised) !important;
    color: var(--qe-review-ink) !important;
    border-color: var(--qe-review-control) !important;
  }
  html:root body.wn-quiet-editorial :is(#cartograph, #cg-workbench) .cg-primary {
    background-color: var(--qe-review-action) !important;
    border-color: var(--qe-review-action) !important;
    color: var(--qe-review-action-ink) !important;
  }
  html:root body.wn-quiet-editorial :is(#cartograph, #cg-workbench) :is(.cg-pending, .cg-attention, .cg-source-needed) {
    border-color: var(--qe-review-warning) !important;
    background-color: var(--qe-review-warning-soft) !important;
  }
  html:root body.wn-quiet-editorial :is(#cartograph, #cg-workbench) #cg-status.cg-error {
    border-color: var(--qe-review-error) !important;
    background-color: var(--qe-review-error-soft) !important;
  }

  html:root body.wn-quiet-editorial :is(#cartograph, #cg-workbench) .cg-wording.cg-original {
    background-color: var(--qe-review-info-soft) !important;
  }

  /* Calls and Calendar own their --sc-* token surface. The popup copies the
     body's gate and stylesheet; its actual panel node keeps its native state. */
  html:root body.wn-quiet-editorial :is(.sc-call-root, .sc-call-panel, .sc-calendar) {
    --sc-ink: var(--qe-review-ink);
    --sc-paper: var(--qe-review-paper);
    --sc-soft: var(--qe-review-soft);
    --sc-border: var(--qe-review-control);
    --sc-muted: var(--qe-review-muted);
    --sc-quiet: var(--qe-review-muted);
    --sc-purple: var(--qe-review-action);
  }
  html:root body.wn-quiet-editorial :is(.sc-workspace, .sc-call-panel, .sc-calendar) {
    background-color: var(--qe-review-paper);
    color: var(--qe-review-ink);
  }
  html:root body.wn-quiet-editorial .sc-call-panel {
    box-shadow: 0 2px 12px var(--qe-review-shadow);
  }
  html:root body.wn-quiet-editorial #sc-tool-tabs [role="tab"][aria-selected="true"] {
    border-bottom-color: var(--qe-review-link);
  }
  html:root body.wn-quiet-editorial .sc-call-panel #sc-join,
  html:root body.wn-quiet-editorial .sc-calendar :is(.sc-calendar-request button, .sc-calendar-action-accept) {
    background-color: var(--qe-review-action) !important;
    color: var(--qe-review-action-ink) !important;
    border-color: var(--qe-review-action) !important;
  }
  /* Match the shared dark theme's submit-button specificity, including popup
     panels that are no longer descendants of #sc-call-root. */
  html:root body.wn-quiet-editorial :is(#sc-call-root, .sc-call-panel, .sc-calendar) button[type="submit"] {
    background-color: var(--qe-review-action) !important;
    border-color: var(--qe-review-action) !important;
    color: var(--qe-review-action-ink) !important;
  }
  html:root body.wn-quiet-editorial :is(#sc-call-root, .sc-calendar) .sc-calendar-actions button:not(.sc-calendar-action-accept) {
    background-color: var(--qe-review-raised) !important;
    color: var(--qe-review-link) !important;
    border-color: var(--qe-review-control) !important;
  }
  html:root body.wn-quiet-editorial .sc-call-panel :is(.sc-call-error, #sc-recording-alerts),
  html:root body.wn-quiet-editorial .sc-calendar .sc-calendar-error {
    border-color: var(--qe-review-error) !important;
  }
  html:root body.wn-quiet-editorial.wn-studio-calls .sc-call-panel #sc-call-preflight .sc-recording-title,
  html:root body.wn-quiet-editorial .sc-call-panel .sc-end {
    color: var(--qe-review-error) !important;
  }
  html:root body.wn-quiet-editorial .sc-call-panel .sc-end {
    border-color: var(--qe-review-error) !important;
  }
  html:root body.wn-quiet-editorial .sc-call-panel #sc-camera-suggestion,
  html:root body.wn-quiet-editorial .sc-calendar :is(.sc-calendar-state-accepted, .sc-calendar-notice:not(.sc-calendar-error)) {
    border-color: var(--qe-review-good);
  }
  html:root body.wn-quiet-editorial .sc-calendar .sc-calendar-state-pending {
    border-color: var(--qe-review-warning);
  }
  html:root body.wn-quiet-editorial :is(.sc-call-panel, .sc-calendar) input:is([type="checkbox"], [type="radio"]) {
    accent-color: var(--qe-review-link);
  }
  html:root body.wn-quiet-editorial :is(.cs-review-workspace, .sc-call-root, .sc-call-panel, .sc-calendar, #cartograph, #cg-workbench) :focus-visible {
    outline-color: var(--qe-review-link) !important;
  }
}

@media (forced-colors:none) {
html:root body.wn-quiet-editorial :is(.csup-opnotice,.cs-draftnote,.cs-status-pill) {background-color:var(--qe-surface)!important;color:var(--qe-ink)!important;border-color:var(--qe-line)!important;}
html:root body.wn-quiet-editorial :is(.wn-notice-title,.wn-notice-summary) {color:var(--qe-ink)!important;}
html:root body.wn-quiet-editorial .wn-notice-action {background-color:var(--qe-paper)!important;color:var(--qe-link)!important;border-color:var(--qe-control)!important;}
html:root body.wn-quiet-editorial .cs-help {color:var(--qe-muted)!important;}
}

/* Staging only: theme the existing suggestions index without changing layout or behaviour. */
@media (forced-colors: none) {
  html:root body.wn-quiet-editorial .cs-suggestions-page { color:var(--qe-review-ink); }
  html:root body.wn-quiet-editorial .cs-suggestions-page .cs-li {
    background-color:var(--qe-review-raised)!important;
    color:var(--qe-review-ink)!important;
    border-color:var(--qe-review-line);
    border-left-color:var(--qe-review-link);
  }
  html:root body.wn-quiet-editorial .cs-suggestions-page :is(.cs-li-text,.cs-li em) { color:var(--qe-review-ink)!important; }
  html:root body.wn-quiet-editorial .cs-suggestions-page :is(.cs-li-meta,.cs-list-intro,.cs-empty) { color:var(--qe-review-muted)!important; }
  html:root body.wn-quiet-editorial .cs-suggestions-page a:not(.cs-btn) { color:var(--qe-review-link)!important; }
  html:root body.wn-quiet-editorial .cs-suggestions-page :is(.cs-badge,.cs-count,.cs-dash-counts span) {
    background-color:var(--qe-review-paper)!important;
    color:var(--qe-review-ink)!important;
  }
  html:root body.wn-quiet-editorial .cs-suggestions-page .cs-li.cs-status-accepted { border-left-color:var(--qe-review-good); }
  html:root body.wn-quiet-editorial .cs-suggestions-page .cs-li.cs-status-rejected { border-left-color:var(--qe-review-error); }
  html:root body.wn-quiet-editorial .cs-suggestions-page .cs-li:is(.cs-status-outdated,.cs-status-needs_manual) { border-left-color:var(--qe-review-warning); }
  html:root body.wn-quiet-editorial .cs-suggestions-page .cs-li:is(.cs-status-resolved,.cs-status-withdrawn) { border-left-color:var(--qe-review-muted); }
  html:root body.wn-quiet-editorial .cs-suggestions-page :is(.cs-status-accepted .cs-badge,ins) {
    background-color:var(--qe-review-good-soft)!important;
    color:var(--qe-review-good)!important;
  }
  html:root body.wn-quiet-editorial .cs-suggestions-page :is(.cs-status-rejected .cs-badge,del,.cs-btn.cs-danger) {
    background-color:var(--qe-review-error-soft)!important;
    color:var(--qe-review-error)!important;
    border-color:var(--qe-review-error);
  }
  html:root body.wn-quiet-editorial .cs-suggestions-page :is(.cs-status-outdated,.cs-status-needs_manual) .cs-badge {
    background-color:var(--qe-review-warning-soft)!important;
    color:var(--qe-review-warning)!important;
  }
  html:root body.wn-quiet-editorial .cs-suggestions-page .cs-li-overruled { border-left-color:var(--qe-review-error); }
  html:root body.wn-quiet-editorial .cs-suggestions-page .cs-btn {
    background-color:var(--qe-review-raised);
    color:var(--qe-review-link);
    border-color:var(--qe-review-control);
  }
  html:root body.wn-quiet-editorial .cs-suggestions-page :is(.cs-btn.cs-primary,.cs-type-james) {
    background-color:var(--qe-review-action)!important;
    color:var(--qe-review-action-ink)!important;
    border-color:var(--qe-review-action);
  }
  html:root body.wn-quiet-editorial .cs-suggestions-page .cs-btn:is(:disabled,[aria-disabled="true"]) {
    background-color:var(--qe-review-soft)!important;
    color:var(--qe-review-muted)!important;
    border-color:var(--qe-review-line);
  }
  html:root body.wn-quiet-editorial .cs-suggestions-page :focus-visible { outline-color:var(--qe-review-link)!important; }
}

/* Quiet editorial contrast-audit2 supplement: audit-portal-support.css */
/* SOURCE-AUDITED CANDIDATE ONLY: portal and support contrast gaps.
 * Load after the existing quiet-editorial bundle; root reviews/deploys separately.
 * Declarations are pigments plus authorised placeholder-only opacity:1.
 * No geometry, visibility, element opacity, behaviour,
 * content, permissions, form actions, hover motion or native disabled state changes.
 * Portal selectors use actual View.php signed-in/signed-out shells and exclude the
 * agreement shell. No public marketing, contractual copy or PDF-document styling.
 * Native review workspaces, Sources/Images and Calls are deliberately excluded.
 */
@media (forced-colors: none) {
  /* app.css, studio-interface.css and studio-portal-theme.css surfaces. */
  html:root body.wn-quiet-editorial:is(.signed-in,.signed-out):not(:has(.agreement-shell)) :is(.sidebar,.notice,.wn-account-menu nav,.service-card,.plan-card,.client-spaces .space-item,.pip-says,.pip-you,.assessment-report) {
    background-color:var(--qe-paper) !important; color:var(--qe-ink) !important; border-color:var(--qe-line) !important;
  }
  html:root body.wn-quiet-editorial:is(.signed-in,.signed-out):not(:has(.agreement-shell)) :is(.setup-key,.recovery-codes li,.internal-note,.pip-face,.rosie-monogram,.wn-pop,.wn-popover,.wn-modal,.wn-dialog,dialog) {
    background-color:var(--qe-surface) !important; color:var(--qe-ink) !important; border-color:var(--qe-line) !important;
  }
  html:root body.wn-quiet-editorial:is(.signed-in,.signed-out):not(:has(.agreement-shell)) :is(.empty-icon,.list-icon,.pill,.tag,.badge) {
    background-color:var(--qe-surface) !important; color:var(--qe-muted) !important; border-color:var(--qe-line) !important;
  }
  html:root body.wn-quiet-editorial:is(.signed-in,.signed-out):not(:has(.agreement-shell)) :is(.record-brief,.record-rosie) .badge {
    background-color:var(--qe-surface) !important; color:var(--qe-muted) !important; border-color:var(--qe-line) !important;
  }
  html:root body.wn-quiet-editorial:is(.signed-in,.signed-out):not(:has(.agreement-shell)) :is(.badge-stage,.plan-card.is-current) {
    border-color:var(--qe-link) !important; color:var(--qe-ink) !important;
  }
  html:root body.wn-quiet-editorial:is(.signed-in,.signed-out):not(:has(.agreement-shell)) :is(.badge-success,.allowance-nudge,.beta-credit-note) {
    background-color:var(--qe-good-surface) !important; color:var(--qe-good) !important; border-color:var(--qe-good) !important;
  }
  html:root body.wn-quiet-editorial:is(.signed-in,.signed-out):not(:has(.agreement-shell)) .badge-test {
    background-color:var(--qe-warning-surface) !important; color:var(--qe-warning) !important; border-color:var(--qe-warning) !important;
  }
  html:root body.wn-quiet-editorial:is(.signed-in,.signed-out):not(:has(.agreement-shell)) .internal-note {
    border-left-color:var(--qe-warning) !important;
  }
  html:root body.wn-quiet-editorial:is(.signed-in,.signed-out):not(:has(.agreement-shell)) :is(.notice-info,.notice:not(.notice-success):not(.notice-error):not(.notice-warning)) {
    background-color:var(--qe-info-surface) !important; color:var(--qe-info) !important; border-color:var(--qe-info) !important;
  }
  html:root body.wn-quiet-editorial:is(.signed-in,.signed-out):not(:has(.agreement-shell)) .notice-success {
    background-color:var(--qe-good-surface) !important; color:var(--qe-good) !important; border-color:var(--qe-good) !important;
  }
  html:root body.wn-quiet-editorial:is(.signed-in,.signed-out):not(:has(.agreement-shell)) .notice-warning {
    background-color:var(--qe-warning-surface) !important; color:var(--qe-warning) !important; border-color:var(--qe-warning) !important;
  }
  html:root body.wn-quiet-editorial:is(.signed-in,.signed-out):not(:has(.agreement-shell)) .notice-error {
    background-color:var(--qe-error-surface) !important; color:var(--qe-error) !important; border-color:var(--qe-error) !important;
  }
  html:root body.wn-quiet-editorial:is(.signed-in,.signed-out):not(:has(.agreement-shell)) :is(.notice,.allowance-nudge,.beta-credit-note) :where(p,span,strong,label,summary) {
    color:inherit !important;
  }
  html:root body.wn-quiet-editorial:is(.signed-in,.signed-out):not(:has(.agreement-shell)) :is(.field label,.field-label,.record-author,.record-body,.amount,.stage-note-line) {
    color:var(--qe-ink) !important;
  }
  html:root body.wn-quiet-editorial:is(.signed-in,.signed-out):not(:has(.agreement-shell)) :is(.field-help,.optional,.field-value,.client-ref,.header-note,.card-kicker,.auth-footnote,.empty-state p,.record-meta time,.purchase-number,.plan-facts,.wn-phone-text) {
    color:var(--qe-muted) !important;
  }
  html:root body.wn-quiet-editorial:is(.signed-in,.signed-out):not(:has(.agreement-shell)) .credit-amount {
    color:var(--qe-good) !important;
  }
  html:root body.wn-quiet-editorial:is(.signed-in,.signed-out):not(:has(.agreement-shell)) .app-shell a:any-link:not(.button):not(.wn-btn):not(.wn-work-card):not(.ce-proposal-action),
  html:root body.wn-quiet-editorial:is(.signed-in,.signed-out):not(:has(.agreement-shell)) .wn-account-menu nav a:any-link,
  html:root body.wn-quiet-editorial:is(.signed-in,.signed-out):not(:has(.agreement-shell)) .site-footer a:any-link {
    color:var(--qe-link) !important; text-decoration-color:currentColor !important;
  }
  html:root body.wn-quiet-editorial:is(.signed-in,.signed-out):not(:has(.agreement-shell)) :is(.nav-link.is-active,.nav-link:hover) {
    background-color:var(--qe-surface) !important; color:var(--qe-link) !important; border-color:var(--qe-line) !important;
  }
  html:root body.wn-quiet-editorial:is(.signed-in,.signed-out):not(:has(.agreement-shell)) .app-shell table {
    background-color:var(--qe-paper) !important; color:var(--qe-ink) !important; border-color:var(--qe-line) !important;
  }
  html:root body.wn-quiet-editorial:is(.signed-in,.signed-out):not(:has(.agreement-shell)) .app-shell :is(th,td) {
    border-color:var(--qe-line) !important;
  }
  html:root body.wn-quiet-editorial:is(.signed-in,.signed-out):not(:has(.agreement-shell)) .app-shell th {
    background-color:var(--qe-surface) !important; color:var(--qe-ink) !important; border-color:var(--qe-line) !important;
  }
  html:root body.wn-quiet-editorial:is(.signed-in,.signed-out):not(:has(.agreement-shell)) .app-shell td {
    color:var(--qe-muted) !important;
  }
  html:root body.wn-quiet-editorial:is(.signed-in,.signed-out):not(:has(.agreement-shell)) .app-shell td.amount {
    color:var(--qe-ink) !important;
  }
  /* Existing classed portal controls; no generic review/call buttons. */
  html:root body.wn-quiet-editorial:is(.signed-in,.signed-out):not(:has(.agreement-shell)) :is(.button,.ce-actions button,.ce-dashboard button) {
    background-color:var(--qe-surface) !important; color:var(--qe-link) !important; border-color:var(--qe-control) !important;
  }
  html:root body.wn-quiet-editorial:is(.signed-in,.signed-out):not(:has(.agreement-shell)) .button:not(.button-secondary):not(.button-danger) {
    background-color:var(--qe-action) !important; color:var(--qe-action-ink) !important; border-color:var(--qe-action) !important;
  }
  html:root body.wn-quiet-editorial:is(.signed-in,.signed-out):not(:has(.agreement-shell)) .button:not(.button-secondary):not(.button-danger):hover:not(:disabled):not([aria-disabled="true"]) {
    background-color:var(--qe-action-hover) !important; color:var(--qe-action-ink) !important; border-color:var(--qe-action) !important;
  }
  html:root body.wn-quiet-editorial:is(.signed-in,.signed-out):not(:has(.agreement-shell)) .button-secondary:hover:not(:disabled):not([aria-disabled="true"]) {
    background-color:var(--qe-surface) !important; color:var(--qe-link) !important; border-color:var(--qe-link) !important;
  }
  html:root body.wn-quiet-editorial:is(.signed-in,.signed-out):not(:has(.agreement-shell)) :is(.button-danger,.button-danger:hover) {
    background-color:var(--qe-error-surface) !important; color:var(--qe-error) !important; border-color:var(--qe-error) !important;
  }
  html:root body.wn-quiet-editorial:is(.signed-in,.signed-out):not(:has(.agreement-shell)) :is(.button-text,.credential-details summary,.wn-account-menu > summary) {
    color:var(--qe-link) !important;
  }
  html:root body.wn-quiet-editorial:is(.signed-in,.signed-out):not(:has(.agreement-shell)) :is(.field,.inline-form,.form-stack) input[type=file]::file-selector-button {
    background-color:var(--qe-surface) !important; color:var(--qe-link) !important; border-color:var(--qe-control) !important;
  }
  html:root body.wn-quiet-editorial:is(.signed-in,.signed-out):not(:has(.agreement-shell)) :is(.checkbox-field,.check-field,.choice) input {
    accent-color:var(--qe-action) !important;
  }
  html:root body.wn-quiet-editorial:is(.signed-in,.signed-out):not(:has(.agreement-shell)) :is(.button,.ce-actions button,.ce-dashboard button):is(:disabled,[aria-disabled="true"]) {
    background-color:var(--qe-surface) !important; color:var(--qe-muted) !important; border-color:var(--qe-line) !important;
  }
  /* Native OrderAssessment and CompletedReports (ClientReports/reports.css). */
  html:root body.wn-quiet-editorial .wn-order {
    color:var(--qe-ink) !important;
  }
  html:root body.wn-quiet-editorial .wn-order .wn-order-choice {
    background-color:var(--qe-paper) !important; color:var(--qe-ink) !important; border-color:var(--qe-control) !important;
  }
  html:root body.wn-quiet-editorial .wn-order .wn-order-choice:has(input:checked) {
    background-color:var(--qe-surface) !important; color:var(--qe-ink) !important; border-color:var(--qe-link) !important;
  }
  html:root body.wn-quiet-editorial .wn-order :is(legend,label,small,.wn-order-report) {
    color:var(--qe-ink) !important;
  }
  html:root body.wn-quiet-editorial .wn-order-project {
    color:var(--qe-muted) !important;
  }
  html:root body.wn-quiet-editorial .wn-order input[type=radio] {
    accent-color:var(--qe-action) !important;
  }
  html:root body.wn-quiet-editorial .wn-order .wn-order-error {
    background-color:var(--qe-error-surface) !important; color:var(--qe-error) !important; border-color:var(--qe-error) !important;
  }
  html:root body.wn-quiet-editorial .wn-order button,
  html:root body.wn-quiet-editorial.mw-special-CompletedReports button {
    background-color:var(--qe-action) !important; color:var(--qe-action-ink) !important; border-color:var(--qe-action) !important;
  }
  html:root body.wn-quiet-editorial .wn-order form:has(input[value=pna][type=hidden]) button {
    background-color:transparent !important; color:var(--qe-link) !important; border-color:var(--qe-control) !important;
  }
  html:root body.wn-quiet-editorial.mw-special-CompletedReports form:has(input[name=operation][value=withdraw]) button {
    background-color:var(--qe-error-surface) !important; color:var(--qe-error) !important; border-color:var(--qe-error) !important;
  }
  html:root body.wn-quiet-editorial .wn-order button:is(:disabled,[aria-disabled="true"]),
  html:root body.wn-quiet-editorial.mw-special-CompletedReports button:is(:disabled,[aria-disabled="true"]) {
    background-color:var(--qe-surface) !important; color:var(--qe-muted) !important; border-color:var(--qe-line) !important;
  }
  html:root body.wn-quiet-editorial.mw-special-CompletedReports .ce-note {
    background-color:var(--qe-paper) !important; color:var(--qe-ink) !important; border-color:var(--qe-line) !important;
  }
  html:root body.wn-quiet-editorial.mw-special-CompletedReports .ce-note :where(p,span,strong,label) {
    color:var(--qe-ink) !important;
  }
  /* Discussion intake/review chrome, explicitly outside cs-modern-review. */
  html:root body.wn-quiet-editorial:not(.cs-modern-review):not(:has(.agreement-shell)) :is(.ce-detail,.ce-dashboard,.ce-proposal-help,.ce-proposal-help-entry,.ce-proposal-text,#ce-proposal-form) {
    color:var(--qe-ink) !important; border-color:var(--qe-line) !important;
  }
  html:root body.wn-quiet-editorial:not(.cs-modern-review):not(:has(.agreement-shell)) :is(.ce-detail blockquote,.ce-detail pre,.ce-dashboard pre,.ce-proposal-help-entry) {
    background-color:var(--qe-surface) !important; color:var(--qe-ink) !important; border-color:var(--qe-line) !important;
  }
  html:root body.wn-quiet-editorial:not(.cs-modern-review):not(:has(.agreement-shell)) :is(.ce-introduction,.ce-proposal-introduction,.ce-note,.ce-hint) {
    background-color:var(--qe-paper) !important; color:var(--qe-ink) !important; border-color:var(--qe-line) !important;
  }
  html:root body.wn-quiet-editorial:not(.cs-modern-review):not(:has(.agreement-shell)) :is(.ce-introduction,.ce-proposal-introduction,.ce-note,.ce-hint) :where(p,span,strong,label,summary):not(:where(a,button,[role="button"]) *) {
    color:var(--qe-ink) !important;
  }
  html:root body.wn-quiet-editorial:not(.cs-modern-review):not(:has(.agreement-shell)) :is(.ce-detail,.ce-dashboard,#ce-proposal-form,.ce-workflow-slot) :is(.ce-quiet,.ce-close) {
    background-color:var(--qe-surface) !important; color:var(--qe-link) !important; border-color:var(--qe-control) !important;
  }
  html:root body.wn-quiet-editorial:not(.cs-modern-review):not(:has(.agreement-shell)) :is(.ce-actions button,.ce-dashboard button) {
    background-color:var(--qe-surface) !important; color:var(--qe-link) !important; border-color:var(--qe-control) !important;
  }
  html:root body.wn-quiet-editorial:not(.cs-modern-review):not(:has(.agreement-shell)) #ce-proposal-form :is(button,input[type=submit]):not(.ce-close):not(.ce-quiet) {
    background-color:var(--qe-action) !important; color:var(--qe-action-ink) !important; border-color:var(--qe-action) !important;
  }
  html:root body.wn-quiet-editorial:not(.cs-modern-review):not(:has(.agreement-shell)) a.ce-proposal-action:any-link {
    background-color:var(--qe-action) !important; color:var(--qe-action-ink) !important; border-color:var(--qe-action) !important;
  }
  html:root body.wn-quiet-editorial:not(.cs-modern-review):not(:has(.agreement-shell)) :is(.ce-detail,.ce-dashboard,#ce-proposal-form) :is(button,input[type=submit]):is(:disabled,[aria-disabled="true"]) {
    background-color:var(--qe-surface) !important; color:var(--qe-muted) !important; border-color:var(--qe-line) !important;
  }
  html:root body.wn-quiet-editorial:not(.cs-modern-review):not(:has(.agreement-shell)) :is(.ce-detail,.ce-dashboard,.ce-proposal-help,.ce-proposal-help-entry,.ce-workflow-slot) a:any-link:not(.ce-proposal-action) {
    color:var(--qe-link) !important; text-decoration-color:currentColor !important;
  }
  html:root body.wn-quiet-editorial:not(.cs-modern-review):not(:has(.agreement-shell)) :is(.ce-detail,.ce-dashboard,#ce-proposal-form) :is(input,select,textarea) {
    border-color:var(--qe-control) !important;
  }
  /* Scratch list and rename/delete chrome: class names confirmed by wiki-theme.css. */
  html:root body.wn-quiet-editorial.mw-special-ScratchPages .wn-scratch-li {
    background-color:var(--qe-paper) !important; color:var(--qe-ink) !important; border-color:var(--qe-line) !important;
  }
  html:root body.wn-quiet-editorial.mw-special-ScratchPages .wn-scratch-rename > summary {
    background-color:var(--qe-surface) !important; color:var(--qe-link) !important; border-color:var(--qe-control) !important;
  }
  html:root body.wn-quiet-editorial.mw-special-ScratchPages .wn-scratch-do-delete input[type=submit] {
    background-color:var(--qe-error-surface) !important; color:var(--qe-error) !important; border-color:var(--qe-error) !important;
  }
  html:root body.wn-quiet-editorial.mw-special-ScratchPages .wn-scratch-act :is(button,input[type=submit]):is(:disabled,[aria-disabled="true"]) {
    background-color:var(--qe-surface) !important; color:var(--qe-muted) !important; border-color:var(--qe-line) !important;
  }
  /* Shared onboarding controls only, from onboarding.css, not specialist tools. */
  html:root body.wn-quiet-editorial:not(.cs-modern-review):not(:has(.agreement-shell)) :is(.wn-panel,.wn-callout) {
    background-color:var(--qe-paper) !important; color:var(--qe-ink) !important; border-color:var(--qe-line) !important;
  }
  html:root body.wn-quiet-editorial:not(.cs-modern-review):not(:has(.agreement-shell)) :is(.wn-title,.wn-callout-text) {
    color:var(--qe-ink) !important;
  }
  html:root body.wn-quiet-editorial:not(.cs-modern-review):not(:has(.agreement-shell)) :is(.wn-kicker,.wn-progress-text,.wn-phone-text) {
    color:var(--qe-muted) !important;
  }
  html:root body.wn-quiet-editorial:not(.cs-modern-review):not(:has(.agreement-shell)) :is(.wn-help-button,.wn-ask-button,.wn-close,.wn-btn-back,.wn-btn-show,.wn-btn-ask,.wn-callout .wn-btn) {
    background-color:var(--qe-surface) !important; color:var(--qe-link) !important; border-color:var(--qe-control) !important;
  }
  html:root body.wn-quiet-editorial:not(.cs-modern-review):not(:has(.agreement-shell)) :is(.wn-btn-next,.wn-help-mark,.wn-badge) {
    background-color:var(--qe-action) !important; color:var(--qe-action-ink) !important; border-color:var(--qe-action) !important;
  }
  html:root body.wn-quiet-editorial:not(.cs-modern-review):not(:has(.agreement-shell)) :is(.wn-btn-link,.wn-btn-never) {
    color:var(--qe-link) !important;
  }
  html:root body.wn-quiet-editorial:not(.cs-modern-review):not(:has(.agreement-shell)) .wn-bar {
    background-color:var(--qe-surface) !important; color:var(--qe-ink) !important; border-color:var(--qe-control) !important;
  }
  html:root body.wn-quiet-editorial:not(.cs-modern-review):not(:has(.agreement-shell)) .wn-bar-fill {
    background-color:var(--qe-link) !important;
  }
  html:root body.wn-quiet-editorial:not(.cs-modern-review):not(:has(.agreement-shell)) .wn-textarea {
    background-color:var(--qe-paper) !important; color:var(--qe-ink) !important; border-color:var(--qe-control) !important;
  }
  html:root body.wn-quiet-editorial:not(.cs-modern-review):not(:has(.agreement-shell)) :is(.wn-help-button,.wn-ask-button,.wn-close,.wn-btn):is(:disabled,[aria-disabled="true"]) {
    background-color:var(--qe-surface) !important; color:var(--qe-muted) !important; border-color:var(--qe-line) !important;
  }
  /* Focus pigment only; retain native outline dimensions and placement. */
  html:root body.wn-quiet-editorial:is(.signed-in,.signed-out):not(:has(.agreement-shell)) :is(.app-shell,.wn-account-menu,.wn-panel) :focus-visible,
  html:root body.wn-quiet-editorial :is(.wn-order,#ce-proposal-form,.ce-proposal-help-entry,.cs-head-scratch,.wn-scratch-li) :focus-visible,
  html:root body.wn-quiet-editorial.mw-special-CompletedReports :focus-visible {
    outline-color:var(--qe-focus) !important;
  }

  /* Loaded ClientSupport UI: verified against current isolated-stage CSS/JS.
     Keep tabs/log dimensions, roles, billing, send handlers and disabled opacity. */
  html:root body.wn-quiet-editorial #csup-app,
  html:root body.wn-quiet-editorial #csup-app :is(.csup-body,.csup-pane,.csup-log,.csup-form) {
    background-color:var(--qe-paper)!important; color:var(--qe-ink)!important; border-color:var(--qe-line)!important;
  }
  html:root body.wn-quiet-editorial #csup-app :is(.csup-tabs,.csup-status) {
    background-color:var(--qe-surface)!important; color:var(--qe-muted)!important; border-color:var(--qe-line)!important;
  }
  html:root body.wn-quiet-editorial #csup-app .csup-tab {
    background-color:var(--qe-paper)!important; color:var(--qe-link)!important;
  }
  html:root body.wn-quiet-editorial #csup-app .csup-tab:is(.csup-active,[aria-selected="true"]) {
    background-color:var(--qe-surface)!important; color:var(--qe-ink)!important; border-bottom-color:var(--qe-link)!important;
  }
  html:root body.wn-quiet-editorial #csup-app :is(.csup-msg,.csup-assistant) {
    background-color:var(--qe-surface)!important; color:var(--qe-ink)!important;
  }
  html:root body.wn-quiet-editorial #csup-app .csup-user {
    background-color:var(--qe-action)!important; color:var(--qe-action-ink)!important;
  }
  html:root body.wn-quiet-editorial #csup-app .csup-text,
  html:root body.wn-quiet-editorial #csup-app .csup-text :where(p,span,div,strong,em,small,li,code,pre):not(:where(a,button) *) {
    background-color:transparent!important; color:inherit!important;
  }
  html:root body.wn-quiet-editorial #csup-app :is(.csup-blurb,.csup-who,.csup-cost,.csup-small,.csup-privacy,.csup-typing) {
    color:var(--qe-muted)!important;
  }
  html:root body.wn-quiet-editorial .csup-intro :is(.csup-privacy,.csup-billing) {
    color:var(--qe-muted)!important;
  }
  html:root body.wn-quiet-editorial #csup-app .csup-paused {
    background-color:var(--qe-warning-surface)!important; color:var(--qe-warning)!important; border-color:var(--qe-warning)!important;
  }
  html:root body.wn-quiet-editorial #csup-app .csup-error {
    background-color:var(--qe-error-surface)!important; color:var(--qe-error)!important; border-color:var(--qe-error)!important;
  }
  html:root body.wn-quiet-editorial #csup-app :is(.csup-sharelbl,.csrc-sharelbl) {
    color:var(--qe-ink)!important;
  }
  html:root body.wn-quiet-editorial #csup-app :is(textarea,select) {
    background-color:var(--qe-paper)!important; color:var(--qe-ink)!important; border-color:var(--qe-control)!important;
  }
  html:root body.wn-quiet-editorial #csup-app a:any-link {
    color:var(--qe-link)!important;
  }
  html:root body.wn-quiet-editorial #csup-app .csup-send {
    background-color:var(--qe-action)!important; color:var(--qe-action-ink)!important; border-color:var(--qe-action)!important;
  }
  html:root body.wn-quiet-editorial #csup-app .csup-send:hover:not(:disabled) {
    background-color:var(--qe-action-hover)!important; color:var(--qe-action-ink)!important;
  }
  html:root body.wn-quiet-editorial #csup-app :is(.csup-send,.csup-tab):is(:disabled,[aria-disabled="true"]) {
    background-color:var(--qe-surface)!important; color:var(--qe-muted)!important; border-color:var(--qe-line)!important;
  }
  html:root body.wn-quiet-editorial #csup-fab,
  html:root body.wn-quiet-editorial .csup-btn {
    background-color:var(--qe-paper)!important; color:var(--qe-link)!important; border-color:var(--qe-control)!important;
  }
  html:root body.wn-quiet-editorial .csup-btn-danger {
    background-color:var(--qe-error-surface)!important; color:var(--qe-error)!important; border-color:var(--qe-error)!important;
  }
  html:root body.wn-quiet-editorial.mw-special-OperatorDashboard :is(.cw-card,.csup-opnotice) {
    background-color:var(--qe-paper)!important; color:var(--qe-ink)!important; border-color:var(--qe-line)!important;
  }
  html:root body.wn-quiet-editorial #csup-app :focus-visible {
    outline-color:var(--qe-focus)!important;
  }

  /* Explicitly authorised visual exception: placeholder pseudo-elements only.
     Browser default .54 alpha made correct muted ink fail against white.
     This does not change input/textarea element opacity or disabled states. */
  html:root body.wn-quiet-editorial :is(input,textarea)::placeholder {
    color:var(--qe-muted)!important; opacity:1!important;
  }
}

/* Quiet editorial contrast-audit2 supplement: audit-review-toolshed.css */
/* Quiet editorial source-audit supplement. STAGING CANDIDATE, not deployed.
 * Append after review-calls.css and suggestions-list.css. Pigments only.
 * Native wheel gradients/shadows, layout, scrolling, selectors that hide panes,
 * transforms, dimensions, masks, borders' widths, focus metrics and handlers
 * are deliberately untouched. Existing --qe-* tokens supply both themes.
 */
@media (forced-colors: none) {
  /* Selection and citation dialogs are mounted under body, outside the panes. */
  html:root body.wn-quiet-editorial :is(.wn-comment-toolbar,.wn-comment-composer,.wn-citation-bubble,.wnie-ui,#cs-bubble) {
    background-color:var(--qe-review-raised)!important;
    color:var(--qe-review-ink)!important;
    border-color:var(--qe-review-control)!important;
  }
  /* Native studio-interface.css also paints citation descendants white.
     Clear only those surfaces; title, link and muted pigments follow below. */
  html:root body.wn-quiet-editorial .wn-citation-bubble :is(p,span,div,strong,small) {
    background-color:transparent!important;
    color:var(--qe-review-ink)!important;
  }
  html:root body.wn-quiet-editorial :is(.wn-comment-title,.wn-citation-bubble .wn-citation-title) {
    color:var(--qe-review-ink)!important;
  }
  html:root body.wn-quiet-editorial .wn-comment-quote,
  html:root body.wn-quiet-editorial .wn-citation-bubble :is(.wn-citation-label,.wn-citation-details,.wn-citation-no-url) {
    color:var(--qe-review-muted)!important;
    border-color:var(--qe-review-link)!important;
  }
  html:root body.wn-quiet-editorial .wn-citation-bubble :is(a:any-link,.wn-citation-url) {
    color:var(--qe-review-link)!important;
    background-color:transparent!important;
  }
  html:root body.wn-quiet-editorial .wn-citation-entry + .wn-citation-entry {
    border-color:var(--qe-review-line)!important;
  }
  html:root body.wn-quiet-editorial .wn-citation-body {
    scrollbar-color:var(--qe-review-control) transparent;
  }
  html:root body.wn-quiet-editorial :is(.wn-comment-toolbar,.wn-comment-composer,.wnie-ui,#cs-bubble) button,
  html:root body.wn-quiet-editorial .wn-citation-close {
    background-color:var(--qe-review-raised)!important;
    color:var(--qe-review-link)!important;
    border-color:var(--qe-review-control)!important;
  }
  html:root body.wn-quiet-editorial :is(.wn-comment-toolbar,.wn-comment-composer,.wnie-ui,#cs-bubble) button:hover:not(:disabled),
  html:root body.wn-quiet-editorial .wn-citation-close:hover {
    background-color:var(--qe-review-selected)!important;
    color:var(--qe-review-link)!important;
    border-color:var(--qe-review-link)!important;
  }
  html:root body.wn-quiet-editorial .wn-comment-composer .wn-comment-body {
    background-color:var(--qe-review-paper)!important;
    color:var(--qe-review-ink)!important;
    border-color:var(--qe-review-control)!important;
    caret-color:var(--qe-review-ink);
  }
  html:root body.wn-quiet-editorial .wn-comment-composer .wn-comment-body::placeholder {
    color:var(--qe-review-muted)!important;
  }
  html:root body.wn-quiet-editorial .wn-comment-composer .wn-comment-save {
    background-color:var(--qe-review-action)!important;
    color:var(--qe-review-action-ink)!important;
    border-color:var(--qe-review-action)!important;
  }
  html:root body.wn-quiet-editorial .wn-comment-composer .wn-comment-save:hover:not(:disabled) {
    background-color:var(--qe-action-hover)!important;
    color:var(--qe-review-action-ink)!important;
    border-color:var(--qe-action-hover)!important;
  }
  html:root body.wn-quiet-editorial :is(.wn-comment-toolbar,.wn-comment-composer,.wn-citation-bubble,.wnie-ui,#cs-bubble) :focus-visible {
    outline-color:var(--qe-review-link)!important;
  }

  /* Remaining composer labels, notices and selected native review controls. */
  html:root body.wn-quiet-editorial :is(.cs-review-workspace,#cs-panel) :is(.cs-composer label,.cs-mf-form label,.cs-ovr-explain) {
    color:var(--qe-review-ink)!important;
  }
  html:root body.wn-quiet-editorial :is(.cs-review-workspace,#cs-panel) :is(.cs-inline-status,.cs-toggle,.cs-link,.cs-ep-history) {
    color:var(--qe-review-link)!important;
  }
  html:root body.wn-quiet-editorial :is(.cs-review-workspace,#cs-panel) :is(.cs-mode,.cs-mf-form) {
    border-color:var(--qe-review-control)!important;
  }
  html:root body.wn-quiet-editorial :is(.cs-review-workspace,#cs-panel) :is(.cs-mode-btn[aria-pressed="true"],.cs-review-tabs button[aria-selected="true"]) {
    background-color:var(--qe-review-selected)!important;
    color:var(--qe-review-ink)!important;
    border-color:var(--qe-review-link)!important;
  }
  html:root body.wn-quiet-editorial :is(.cs-review-workspace,#cs-panel) :is(.cs-note,.cs-ovr-explain) {
    background-color:var(--qe-review-soft)!important;
  }
  html:root body.wn-quiet-editorial :is(.cs-review-workspace,#cs-panel) :is(.cs-practice,.cs-note.cs-warn,.cs-status-needs_manual .cs-note,.cs-ep-policy) {
    background-color:var(--qe-review-warning-soft)!important;
    color:var(--qe-review-warning)!important;
    border-color:var(--qe-review-warning)!important;
  }
  html:root body.wn-quiet-editorial :is(.cs-review-workspace,#cs-panel) :is(.cs-sugg ins,.cs-ins,.wnie-add) {
    background-color:var(--qe-review-good-soft)!important;
    color:var(--qe-review-good)!important;
    text-decoration-color:var(--qe-review-good)!important;
  }
  html:root body.wn-quiet-editorial :is(.cs-review-workspace,#cs-panel) :is(.cs-sugg del,.cs-del,.wnie-remove,.cs-ovr-del) {
    background-color:var(--qe-review-error-soft)!important;
    color:var(--qe-review-error)!important;
    text-decoration-color:var(--qe-review-error)!important;
  }
  html:root body.wn-quiet-editorial :is(.cs-review-workspace,#cs-panel) .cs-ovr-reason {
    color:var(--qe-review-error)!important;
  }
  html:root body.wn-quiet-editorial.cs-modern-review .cs-ep-review .cs-ep-marker {
    background-color:var(--qe-review-paper)!important;
    color:var(--qe-review-link)!important;
    border-color:var(--qe-review-control)!important;
  }
  html:root body.wn-quiet-editorial.cs-modern-review .cs-ep-review .cs-ep-marker::after {
    background-color:var(--qe-review-paper)!important;
  }
  html:root body.wn-quiet-editorial.cs-modern-review .cs-ep-review #cs-panel :is(.ep-wheel-title-row .ep-wheel-sound,.ep-wheel-actions .cs-big) {
    background-color:var(--qe-review-raised)!important;
    color:var(--qe-review-link)!important;
    border-color:var(--qe-review-control)!important;
  }
  html:root body.wn-quiet-editorial.cs-modern-review .cs-ep-review #cs-panel .ep-wheel-sound[aria-pressed="true"] {
    background-color:var(--qe-review-selected)!important;
    color:var(--qe-review-ink)!important;
    border-color:var(--qe-review-link)!important;
  }

  /* Legacy native mobile shell, if selected by the existing feature gates.
     Modern review keeps it hidden; these rules do not change that decision. */
  html:root body.wn-quiet-editorial :is(#cs-mobile-prompt,#cs-mobile-review,.cs-mobile-comments-column,.cs-mobile-nav) {
    background-color:var(--qe-review-paper)!important;
    color:var(--qe-review-ink)!important;
    border-color:var(--qe-review-line)!important;
  }
  html:root body.wn-quiet-editorial :is(#cs-mobile-review,#cs-mobile-prompt) :is(.cs-mobile-bar,.cs-mobile-draft-label,.cs-mobile-count,.cs-mobile-private) {
    color:var(--qe-review-muted)!important;
    border-color:var(--qe-review-line)!important;
  }
  html:root body.wn-quiet-editorial :is(#cs-mobile-review,#cs-mobile-prompt) :is(.cs-btn,#cs-mobile-thread) {
    background-color:var(--qe-review-raised)!important;
    color:var(--qe-review-link)!important;
    border-color:var(--qe-review-control)!important;
  }
  html:root body.wn-quiet-editorial #cs-mobile-review .cs-mobile-tabs [aria-pressed="true"] {
    background-color:var(--qe-review-selected)!important;
    color:var(--qe-review-ink)!important;
    border-color:var(--qe-review-link)!important;
  }
  html:root body.wn-quiet-editorial :is(#cs-mobile-review,#cs-mobile-prompt) :focus-visible {
    outline-color:var(--qe-review-link)!important;
  }

  /* Cartograph's review drawer, native mobile buttons and status surfaces. */
  /* Native comparison prose includes purple links/citation labels. The softer
     addition surface keeps that ink legible without changing addition meaning. */
  html:root body.wn-quiet-editorial :is(#cartograph,#cg-workbench) .cg-comparison .cg-proposed.cg-add {
    background-color:var(--qe-review-good-soft)!important;
  }
  html:root body.wn-quiet-editorial :is(#cartograph,#cg-workbench) :is(.cg-review-response,.cg-review-rule,.cg-review-finding,.cg-review-warning) {
    background-color:var(--qe-review-paper)!important;
    color:var(--qe-review-ink)!important;
    border-color:var(--qe-review-control)!important;
  }
  html:root body.wn-quiet-editorial :is(#cartograph,#cg-workbench) :is(.cg-details-head h3,.cg-review-rule legend,.cg-review-finding legend,.cg-review-warning legend) {
    color:var(--qe-review-ink)!important;
  }
  html:root body.wn-quiet-editorial :is(#cartograph,#cg-workbench) :is(.cg-tools-menu>summary,.cg-overview>summary) {
    color:var(--qe-review-link)!important;
    border-color:var(--qe-review-control)!important;
  }
  html:root body.wn-quiet-editorial :is(#cartograph,#cg-workbench) :is(.cg-verification-note,.cg-validation-errors) {
    background-color:var(--qe-review-warning-soft)!important;
    color:var(--qe-review-warning)!important;
    border-color:var(--qe-review-warning)!important;
  }
  html:root body.wn-quiet-editorial :is(#cartograph,#cg-workbench) .cg-live-context {
    background-color:var(--qe-info-surface)!important;
    border-color:var(--qe-info)!important;
    color:var(--qe-review-ink)!important;
  }
  html:root body.wn-quiet-editorial :is(#cartograph,#cg-workbench) .cg-editorial-review[data-review-status="passed"] {
    border-left-color:var(--qe-review-good)!important;
  }
  html:root body.wn-quiet-editorial :is(#cartograph,#cg-workbench) .cg-editorial-review[data-review-status="blocked"] {
    border-left-color:var(--qe-review-error)!important;
  }
  html:root body.wn-quiet-editorial :is(#cartograph,#cg-workbench) .cg-button:hover:not(:disabled) {
    background-color:var(--qe-review-selected)!important;
    color:var(--qe-review-ink)!important;
    border-color:var(--qe-review-link)!important;
  }
  html:root body.wn-quiet-editorial :is(#cartograph,#cg-workbench) .cg-primary:hover:not(:disabled) {
    background-color:var(--qe-action-hover)!important;
    color:var(--qe-review-action-ink)!important;
    border-color:var(--qe-action-hover)!important;
  }
  html:root body.wn-quiet-editorial :is(#cartograph,#cg-workbench) .cg-mobile-navigation [aria-pressed="true"] {
    background-color:var(--qe-review-selected)!important;
    color:var(--qe-review-ink)!important;
    border-color:var(--qe-review-link)!important;
  }
  html:root body.wn-quiet-editorial :is(#cartograph,#cg-workbench) .cg-button:disabled {
    background-color:var(--qe-review-soft)!important;
    color:var(--qe-review-muted)!important;
    border-color:var(--qe-review-line)!important;
  }

  /* Shared list-page states used by Drafts/Updates as well as Suggestions. */
  html:root body.wn-quiet-editorial .cs-suggestions-page :is(.cs-note,.cs-check,.cs-copybox) {
    background-color:var(--qe-review-paper)!important;
    color:var(--qe-review-ink)!important;
    border-color:var(--qe-review-control)!important;
  }
  html:root body.wn-quiet-editorial .cs-suggestions-page :is(.cs-small,.cs-check-details) {
    color:var(--qe-review-muted)!important;
  }
  html:root body.wn-quiet-editorial .cs-suggestions-page :is(.cs-note.cs-ok,.cs-check-pass .cs-check-icon) {
    color:var(--qe-review-good)!important;
  }
  html:root body.wn-quiet-editorial .cs-suggestions-page :is(.cs-note.cs-bad,.cs-check-fail .cs-check-icon,.cs-check-fix) {
    color:var(--qe-review-error)!important;
  }
  html:root body.wn-quiet-editorial .cs-suggestions-page .cs-check-pass {
    border-left-color:var(--qe-review-good)!important;
  }
  html:root body.wn-quiet-editorial .cs-suggestions-page .cs-check-fail {
    border-left-color:var(--qe-review-error)!important;
  }
  html:root body.wn-quiet-editorial .cs-suggestions-page .cs-btn:hover:not(:disabled):not([aria-disabled="true"]) {
    background-color:var(--qe-review-selected)!important;
    color:var(--qe-review-link)!important;
    border-color:var(--qe-review-link)!important;
  }
  html:root body.wn-quiet-editorial .cs-suggestions-page .cs-btn.cs-primary:hover:not(:disabled) {
    background-color:var(--qe-action-hover)!important;
    color:var(--qe-review-action-ink)!important;
    border-color:var(--qe-action-hover)!important;
  }
  html:root body.wn-quiet-editorial .cs-suggestions-page .cs-btn.cs-danger:hover:not(:disabled) {
    background-color:var(--qe-review-error-soft)!important;
    color:var(--qe-review-error)!important;
    border-color:var(--qe-review-error)!important;
  }
  /* Toolshed already has pigment coverage in toolshed.css. Its transparent
     shelves, native Draft chooser, disabled states and icon pixels are kept. */
}

/* Quiet editorial contrast-audit2 supplement: audit-library-calls.css */
/* Staging contrast audit, 15 November 2026. Append after quiet-editorial.css.
   Colour-only: native DOM, controls, dimensions, opacity and media stay intact. */
@media (forced-colors: none) {
  /* Use the accepted theme's single source of truth, including native night/OS.
     Earlier library aliases have an ID-bearing :is gate, hence !important. */
  html:root body.wn-quiet-editorial {
    --qe-library-paper: var(--qe-paper) !important;
    --qe-library-surface: var(--qe-surface) !important;
    --qe-library-raised: var(--qe-raised) !important;
    --qe-library-ink: var(--qe-ink) !important;
    --qe-library-muted: var(--qe-muted) !important;
    --qe-library-line: var(--qe-line) !important;
    --qe-library-control: var(--qe-control) !important;
    --qe-library-link: var(--qe-link) !important;
    --qe-library-focus: var(--qe-focus) !important;
    --qe-library-tint: var(--qe-selection) !important;
    --qe-library-brand: var(--qe-brand) !important;
    --qe-library-button: var(--qe-action) !important;
    --qe-library-button-hover: var(--qe-action-hover) !important;
    --qe-library-button-ink: var(--qe-action-ink) !important;
    --qe-library-success: var(--qe-good) !important;
    --qe-library-success-surface: var(--qe-good-surface) !important;
    --qe-library-warning: var(--qe-warning) !important;
    --qe-library-warning-surface: var(--qe-warning-surface) !important;
    --qe-library-error: var(--qe-error) !important;
    --qe-library-error-surface: var(--qe-error-surface) !important;
    --qe-library-shadow: var(--qe-shadow) !important;
  }

  /* These links live outside #ci-app and retain native white/purple styling. */
  html:root body.wn-quiet-editorial .ci-entry {
    border-color: var(--qe-line) !important;
  }
  html:root body.wn-quiet-editorial .ci-entry p {
    color: var(--qe-muted) !important;
  }
  html:root body.wn-quiet-editorial .ci-entry-actions .ci-button {
    background-color: var(--qe-paper) !important;
    color: var(--qe-link) !important;
    border-color: var(--qe-control) !important;
    text-decoration-color: currentColor;
  }
  html:root body.wn-quiet-editorial .ci-entry-actions .ci-button:hover {
    background-color: var(--qe-surface) !important;
  }
  html:root body.wn-quiet-editorial .ci-entry-actions .ci-button:focus-visible {
    outline-color: var(--qe-focus) !important;
  }
  /* Functional upload glyphs need contrast; decorative brand edges stay purple. */
  html:root body.wn-quiet-editorial #mw-content-text .csrc-wrap .csrc-tray,
  html:root body.wn-quiet-editorial #mw-content-text #ci-app #ci-drop svg {
    color: var(--qe-link) !important;
  }

  /* The selection-search menu is appended directly to body. */
  html:root body.wn-quiet-editorial .librarian-selection-menu {
    background-color: var(--qe-raised) !important;
    color: var(--qe-ink) !important;
    border-color: var(--qe-control) !important;
  }
  html:root body.wn-quiet-editorial .librarian-selection-menu a {
    color: var(--qe-link) !important;
  }
  html:root body.wn-quiet-editorial .librarian-selection-menu a:is(:hover, :focus-visible) {
    background-color: var(--qe-surface) !important;
    outline-color: var(--qe-focus) !important;
  }

  /* Searchable-text and fallback reader surfaces use the same pigment tokens. */
  html:root body.wn-quiet-editorial .csrc-wrap :is(.csrc-search, .csrc-search-output, .csrc-search-result, .csrc-search-corpus) {
    color: var(--qe-ink) !important;
    border-color: var(--qe-line) !important;
  }
  html:root body.wn-quiet-editorial .csrc-wrap :is(.csrc-search-result, .csrc-search-corpus) {
    background-color: var(--qe-paper) !important;
  }
  html:root body.wn-quiet-editorial .csrc-wrap .csrc-search-error {
    background-color: var(--qe-error-surface) !important;
    color: var(--qe-error) !important;
    border-color: var(--qe-error) !important;
  }
  html:root body.wn-quiet-editorial .csrc-wrap .csrc-search-partial {
    background-color: var(--qe-warning-surface) !important;
    color: var(--qe-warning) !important;
    border-color: var(--qe-warning) !important;
  }
  html:root body.wn-quiet-editorial #mw-content-text .csrc-wrap .csrc-preparation-result:not(:empty) {
    background-color: var(--qe-surface) !important;
    color: var(--qe-ink) !important;
    border-color: var(--qe-control) !important;
  }

  /* Cover both fallback and mounted reader. Never target PDF/image pixels or
     the publisher iframe. Three native IDs are needed for pressed controls. */
  html:root body.wn-quiet-editorial #librarian-root .librarian-live-source {
    --live-ink: var(--qe-ink);
    --live-link: var(--qe-link);
    --live-border: var(--qe-line);
  }
  html:root body.wn-quiet-editorial #mw-content-text #librarian-root :is(#librarian-book-dialog, .librarian-standalone-reader).librarian-reading .librarian-live-source button[aria-pressed="true"],
  html:root body.wn-quiet-editorial #mw-content-text #librarian-root > [data-reader-fallback] .librarian-live-source button[aria-pressed="true"] {
    background-color: var(--qe-action) !important;
    color: var(--qe-action-ink) !important;
    border-color: var(--qe-action) !important;
  }
  html:root body.wn-quiet-editorial #mw-content-text #librarian-root :is(#librarian-book-dialog, .librarian-standalone-reader).librarian-reading .librarian-live-source button[aria-pressed="true"]:hover:not(:disabled),
  html:root body.wn-quiet-editorial #mw-content-text #librarian-root > [data-reader-fallback] .librarian-live-source button[aria-pressed="true"]:hover:not(:disabled) {
    background-color: var(--qe-action-hover) !important;
    color: var(--qe-action-ink) !important;
    border-color: var(--qe-action-hover) !important;
  }

  /* Call panel also works in its native detached window, which copies the gate. */
  html:root body.wn-quiet-editorial :is(.sc-call-root, .sc-call-panel, .sc-calendar) {
    --sc-ink: var(--qe-ink);
    --sc-paper: var(--qe-paper);
    --sc-soft: var(--qe-surface);
    --sc-border: var(--qe-control);
    --sc-muted: var(--qe-muted);
    --sc-quiet: var(--qe-muted);
    --sc-purple: var(--qe-action);
  }
  html:root body.wn-quiet-editorial .sc-call-panel .sc-media-controls button[aria-pressed="true"] {
    background-color: var(--qe-selection) !important;
    color: var(--qe-ink) !important;
    border-color: var(--qe-link) !important;
  }
  html:root body.wn-quiet-editorial .sc-call-panel .sc-call-error,
  html:root body.wn-quiet-editorial .sc-calendar .sc-calendar-error {
    background-color: var(--qe-error-surface) !important;
    color: var(--qe-error) !important;
    border-color: var(--qe-error) !important;
  }
  /* Retain the native understated cancel action, including its clear border. */
  html:root body.wn-quiet-editorial :is(#sc-call-root, .sc-calendar) .sc-calendar-actions button.sc-calendar-action-cancel {
    background-color: var(--qe-paper) !important;
    color: var(--qe-link) !important;
    border-color: transparent !important;
  }
  /* InfoHelp is confirmed by Calls/Calendar templates. Its shared stylesheet
     is absent from this source snapshot, so inner structure needs browser QA. */
  html:root body.wn-quiet-editorial :is(.sc-call-root, .sc-call-panel, .sc-calendar) .wn-info-panel {
    background-color: var(--qe-raised) !important;
    color: var(--qe-ink) !important;
    border-color: var(--qe-control) !important;
  }
  html:root body.wn-quiet-editorial :is(.sc-call-root, .sc-call-panel, .sc-calendar) .wn-info-panel :is(p, span, strong, summary) {
    color: var(--qe-ink) !important;
  }
  html:root body.wn-quiet-editorial :is(.sc-call-root, .sc-call-panel, .sc-calendar) .wn-info-panel a:any-link {
    color: var(--qe-link) !important;
  }
}

/* Append to the production Quiet editorial stylesheet. Only nonlegal standalone
 * wizard frames receive wn-quiet-onboarding. No field geometry or hidden state. */
body.wn-quiet-editorial.wn-quiet-onboarding .wn-top { flex-wrap:wrap; gap:12px; }
body.wn-quiet-editorial.wn-quiet-onboarding .wn-top > .wn-theme-switch { margin-left:auto; }
@media (forced-colors:none) {
  body.wn-quiet-editorial.wn-quiet-onboarding { color:var(--qe-ink); background:var(--qe-canvas); }
  body.wn-quiet-editorial.wn-quiet-onboarding :is(.wn-card,.wn-box,.wn-userbox,.wn-generated,.wn-choice,.wn-input,.wn-toggle,.wn-skip,.wn-genpw,.wn-other,.wn-demo,.wn-practice,.wn-demo-panel,.wn-mock,.wn-mock-side,.wn-mock-bar,.wn-mock-editor,.wn-demo-card,.wn-msg,.wn-chip,.wn-chatpop,kbd) {
    color:var(--qe-ink); background-color:var(--qe-paper); border-color:var(--qe-line);
  }
  body.wn-quiet-editorial.wn-quiet-onboarding :is(h1,h2,h3,.wn-label,.wn-username,.wn-mock-title,.wn-demo-title) { color:var(--qe-ink); }
  body.wn-quiet-editorial.wn-quiet-onboarding :is(.wn-hint,.wn-opt,.wn-small,.wn-reassure,.wn-foot,.wn-foot-brand,.wn-brand-sub,.wn-progress-text,.wn-who,.wn-typing) { color:var(--qe-muted); }
  body.wn-quiet-editorial.wn-quiet-onboarding :is(a,.wn-brand,.wn-brand-name,.wn-mock-logo,.wn-other summary) { color:var(--qe-link); }
  body.wn-quiet-editorial.wn-quiet-onboarding :is(.wn-input,.wn-toggle,.wn-choice,.wn-genpw) { border-color:var(--qe-control); }
  body.wn-quiet-editorial.wn-quiet-onboarding :is(.wn-primary,.wn-cs-big) { color:var(--qe-action-ink)!important; background-color:var(--qe-action)!important; border-color:var(--qe-action)!important; }
  body.wn-quiet-editorial.wn-quiet-onboarding :is(.wn-primary,.wn-cs-big):hover:not(:disabled):not([aria-disabled="true"]) { background-color:var(--qe-action-hover)!important; }
  body.wn-quiet-editorial.wn-quiet-onboarding :is(.wn-secondary,.wn-toggle,.wn-chip,.wn-close) { color:var(--qe-link)!important; background-color:var(--qe-paper)!important; border-color:var(--qe-control)!important; }
  body.wn-quiet-editorial.wn-quiet-onboarding :is(.wn-error,.wn-demo-reject) { color:var(--qe-error)!important; background-color:var(--qe-error-surface)!important; border-color:var(--qe-error)!important; }
  body.wn-quiet-editorial.wn-quiet-onboarding :is(.wn-success,.wn-generated,.wn-demo-accept) { color:var(--qe-good)!important; background-color:var(--qe-good-surface)!important; border-color:var(--qe-good)!important; }
  body.wn-quiet-editorial.wn-quiet-onboarding :is(.wn-warn,.wn-bookmark,.wn-callout) { color:var(--qe-warning)!important; background-color:var(--qe-warning-surface)!important; border-color:var(--qe-warning)!important; }
}

/* Production return navigation, outside the native tool workspace. */
body.wn-quiet-editorial .qe-site-nav {display:flex;justify-content:flex-end;align-items:center;margin:0 0 18px;padding:8px 0;border-bottom:1px solid var(--qe-line);font:16px/1.4 "Times New Roman",serif;}
body.wn-quiet-editorial .qe-site-nav a {display:inline-flex;align-items:center;gap:8px;padding:6px 8px;color:var(--qe-link);text-decoration:none;border-radius:4px;}
body.wn-quiet-editorial .qe-site-nav a:hover {background:var(--qe-surface);}
body.wn-quiet-editorial .qe-site-nav a::before {content:"";width:22px;height:22px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 9 9-6 9 6v12H3V9Zm5 12v-8h8v8M3 9h18M10 16h4'/%3E%3C/svg%3E") center/contain no-repeat;}

/* Presence presentation only. Native disclosure, status text, polling,
 * announcements, suite scrolling, visibility and state classes are unchanged. */
html:root body.wn-quiet-editorial .wn-presence {
  font-family: "Times New Roman", Times, serif !important;
  font-size: 16px;
  line-height: 1.5;
}
html:root body.wn-quiet-editorial .wn-presence .wn-presence__summary {
  font-family: "Times New Roman", Times, serif !important;
  font-size: 18px !important;
  line-height: 1.5;
}
html:root body.wn-quiet-editorial .wn-presence :is(.wn-presence__space-name,.wn-presence__state,.wn-presence__hours,.wn-presence__empty) {
  font-size: 16px !important;
  line-height: 1.5 !important;
}
@media (forced-colors: none) {
  html:root body.wn-quiet-editorial .wn-presence {
    color: var(--qe-ink);
    background-color: var(--qe-surface);
    border-color: var(--qe-line);
  }
  html:root body.wn-quiet-editorial .wn-presence :is(.wn-presence__details,.wn-presence__content) {
    background-color: transparent;
  }
  html:root body.wn-quiet-editorial .wn-presence :is(.wn-presence__summary,.wn-presence__name,.wn-presence__space-name) {
    color: var(--qe-ink);
  }
  html:root body.wn-quiet-editorial .wn-presence .wn-presence__space-name a {
    color: var(--qe-link);
  }
  html:root body.wn-quiet-editorial .wn-presence :is(.wn-presence__state,.wn-presence__hours,.wn-presence__empty) {
    color: var(--qe-muted);
  }
  html:root body.wn-quiet-editorial .wn-presence :is(.wn-presence__summary,a):focus-visible {
    outline-color: var(--qe-focus) !important;
  }
  html:root body.wn-quiet-editorial .wn-presence .wn-presence__dot {
    background-color: var(--qe-muted);
  }
  html:root body.wn-quiet-editorial .wn-presence .wn-presence__state--online .wn-presence__dot {
    background-color: var(--qe-good);
  }
  html:root body.wn-quiet-editorial .wn-presence .wn-presence__state--away .wn-presence__dot {
    background-color: var(--qe-warning);
  }
  html:root body.wn-quiet-editorial .wn-presence .wn-presence__state--outside_hours .wn-presence__dot {
    background-color: var(--qe-link);
  }
  html:root body.wn-quiet-editorial .wn-presence .wn-presence__state--unavailable .wn-presence__dot {
    background-color: transparent;
    border-color: var(--qe-muted);
  }
}
