/* Studio public styles, in their deployed source order. */
@scope (html) to (.site-wrap, #journey-dialog, #match-journey, .toast, .font-load-error) {
/* Studio source: studio-theme.css */

/* Only explicitly owned Studio roots receive tokens or native control styling. */
[data-wn-theme-root] {
  --wn-canvas:#ffffff; --wn-surface:#ffffff; --wn-raised:#ffffff;
  --wn-text:#92278f; --wn-secondary:#92278f; --wn-brand:#92278f;
  --wn-link:#92278f; --wn-focus:#92278f; --wn-divider:#92278f;
  --wn-control-border:#92278f; --wn-success:#176b50; --wn-warning:#795000; --wn-error:#b32424;
}
@media screen {
  [data-wn-theme-root][data-wn-theme="dark"] {
    --wn-canvas:#0e0e11; --wn-surface:#17171c; --wn-raised:#202026;
    --wn-text:#eee9ee; --wn-secondary:#c9c1c9; --wn-brand:#92278f;
    --wn-link:#d38dd0; --wn-focus:#e8afe5; --wn-divider:#482147;
    --wn-control-border:#827387; --wn-success:#84d4b6; --wn-warning:#f1cc7b; --wn-error:#ffaaa8;
    color-scheme:dark;
  }
  [data-wn-theme-root][data-wn-theme="light"] { color-scheme:light; }
}
[data-wn-theme-root] .wn-theme-switch {
  box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center;
  gap:10px; min-width:44px; min-height:44px; padding:8px 4px;
  font-family:PalatinoProRoman,sans-serif; font-size:16px; font-weight:400; line-height:1.4;
  color:var(--wn-text); background:transparent; border:0; border-radius:4px;
  cursor:pointer; white-space:nowrap; flex-shrink:0; box-shadow:none; text-shadow:none;
}
[data-wn-theme-root] .wn-theme-switch .wn-theme-track {
  display:inline-block; position:relative; width:38px; height:22px; box-sizing:border-box;
  background:var(--wn-raised); border:1px solid var(--wn-control-border); border-radius:12px;
}
[data-wn-theme-root] .wn-theme-track::after {
  content:""; position:absolute; top:3px; left:3px; width:14px; height:14px;
  border-radius:50%; background:var(--wn-brand); transition:transform .12s ease;
}
[data-wn-theme-root] .wn-theme-switch[aria-checked="true"] .wn-theme-track { background:var(--wn-brand); border-color:var(--wn-link); }
[data-wn-theme-root] .wn-theme-switch[aria-checked="true"] .wn-theme-track::after { background:#eee9ee; transform:translateX(16px); }
[data-wn-theme-root] .wn-theme-switch:focus-visible { outline:2px solid var(--wn-focus) !important; outline-offset:3px; }
[data-wn-theme-root] .wn-theme-switch:hover { color:var(--wn-link); }
@media (prefers-reduced-motion:reduce) { [data-wn-theme-root] .wn-theme-track::after { transition:none; } }
@media (forced-colors:active) {
  [data-wn-theme-root] .wn-theme-switch { color:ButtonText; }
  [data-wn-theme-root] .wn-theme-switch .wn-theme-track { background:Canvas; border:1px solid ButtonText; }
  [data-wn-theme-root] .wn-theme-switch .wn-theme-track::after { background:ButtonText; }
  [data-wn-theme-root] .wn-theme-switch[aria-checked="true"] .wn-theme-track { background:Highlight; border-color:Highlight; }
  [data-wn-theme-root] .wn-theme-switch[aria-checked="true"] .wn-theme-track::after { background:HighlightText; }
  [data-wn-theme-root] .wn-theme-switch:focus-visible { outline-color:Highlight !important; }
}
@media print { [data-wn-theme-root] .wn-theme-switch { display:none !important; } }

/* Studio source: demo-theme.css */

/* The public site's canvas, branding and marketing content are deliberately outside this boundary. */
#review-workspace[data-wn-theme-root] .review-toolbar{flex-wrap:wrap}
#review-workspace[data-wn-theme-root] .review-options{align-items:center;flex-wrap:wrap;gap:12px}
#review-workspace[data-wn-theme-root] [data-wn-theme-switch]{margin:0;font-weight:400}
#review-workspace[data-wn-theme-root] :is(.review-name,.thread-select,.thread-reply strong,.mobile-views button,.demo-pane-select,.demo-facts-toggle),
[data-wn-theme-owner="studio-demo"] :is(.dialog-head h2,.wn-comment-title){font-family:PalatinoProRoman,sans-serif;font-weight:400}
@media screen {
#review-workspace[data-wn-theme="dark"],
[data-wn-theme-owner="studio-demo"][data-wn-theme="dark"]{--purple:var(--wn-link);--ink:var(--wn-text);--muted:var(--wn-secondary);--line:var(--wn-divider);--paper:var(--wn-surface);--surround:var(--wn-canvas);background:var(--wn-surface);color:var(--wn-text);color-scheme:dark}
#review-workspace[data-wn-theme="dark"] :is(.review-toolbar,.demo-draft,.demo-comments,.draft-paper,.demo-facts,.demo-status,.discussion-nav,.mobile-views,.reply-actions){background:var(--wn-surface);color:var(--wn-text)}
#review-workspace[data-wn-theme="dark"] :is(.thread,.thread-reply){background-color:var(--wn-raised);color:var(--wn-text);border-color:var(--wn-divider)}
#review-workspace[data-wn-theme="dark"] .thread.active{border-color:var(--wn-link)}
#review-workspace[data-wn-theme="dark"] :is(.thread-kind,.demo-status){color:var(--wn-secondary)}
#review-workspace[data-wn-theme="dark"] :is(button,select,textarea,input),
[data-wn-theme-owner="studio-demo"][data-wn-theme="dark"] :is(button,textarea,input,select){background-color:var(--wn-raised);color:var(--wn-text);border-color:var(--wn-control-border)}
#review-workspace[data-wn-theme="dark"] :is(a,.review-name,.thread-select,.thread-reply strong,.demo-facts>strong,.draft-paper>h3),
[data-wn-theme-owner="studio-demo"][data-wn-theme="dark"] :is(a,.wn-comment-title,.dialog-head h2){color:var(--wn-link)}
#review-workspace[data-wn-theme="dark"] :is(.draft-paper h4,.feature-table caption,.feature-table th,.feature-table td){color:var(--wn-text)}
#review-workspace[data-wn-theme="dark"] .feature-table th button{background:transparent;color:var(--wn-link)}
#review-workspace[data-wn-theme="dark"] :is(.thread blockquote,.thread-reply,.feature-table th,.feature-table td,.draft-paper h4){border-color:var(--wn-divider)}
#review-workspace[data-wn-theme="dark"] .thread blockquote{border-left-color:var(--wn-link)}
#review-workspace[data-wn-theme="dark"] :is(.passage,.wm-anchor){color:inherit;background:transparent;border-color:var(--wn-link)}
#review-workspace[data-wn-theme="dark"] :is(.passage:hover,.passage.active){color:#fff3cd;background:#493d1d;border-color:#ffc333}
#review-workspace[data-wn-theme="dark"] .wnie-editor{caret-color:var(--wn-focus)}
#review-workspace[data-wn-theme="dark"] :is(.wnie-add,.thread ins){color:var(--wn-success);background:#153b30;text-decoration-color:var(--wn-success)}
#review-workspace[data-wn-theme="dark"] :is(.wnie-remove,.thread del){color:var(--wn-error);background:#422328;text-decoration-color:var(--wn-error)}
#review-workspace[data-wn-theme="dark"] .wnie-ui{color:var(--wn-secondary);background:var(--wn-raised);border-color:var(--wn-control-border)}
#review-workspace[data-wn-theme="dark"] :is(textarea,input)::placeholder,
[data-wn-theme-owner="studio-demo"][data-wn-theme="dark"] :is(textarea,input)::placeholder{color:var(--wn-secondary);opacity:1}
#review-workspace[data-wn-theme="dark"] :is(.reply-form textarea,.discussion-nav select){color:var(--wn-text);background:var(--wn-canvas);border-color:var(--wn-control-border)}
#review-workspace[data-wn-theme="dark"] :is(.demo-draft,.demo-comments,textarea){scrollbar-color:var(--wn-control-border) var(--wn-surface)}
#review-workspace[data-wn-theme="dark"] :is(.quiet:hover,.thread-tools button:hover,.reply-form button:hover,.demo-expand-toggle:hover,.demo-facts-toggle:hover){border-color:var(--wn-link);background:var(--wn-raised)}
#review-workspace[data-wn-theme="dark"] .thread-select{background:transparent}
#review-workspace[data-wn-theme="dark"] .mobile-views button[aria-selected=true]{color:var(--wn-link);border-bottom-color:var(--wn-link)}
#review-workspace[data-wn-theme="dark"] .comment-wheel-shell::before{background:linear-gradient(to bottom,rgba(0,0,0,.3),rgba(238,233,238,.09) 3px,transparent min(40px,14%),transparent max(calc(100% - 40px),86%),rgba(0,0,0,.3));box-shadow:inset 0 1px 0 rgba(238,233,238,.16)}
#review-workspace[data-wn-theme="dark"] .comment-wheel-shell::after{background:linear-gradient(to right,rgba(211,141,208,.04),rgba(238,233,238,.15) 35%,rgba(0,0,0,.4)),repeating-linear-gradient(to bottom,rgba(211,141,208,.4) 0 1px,transparent 1px 18px);background-position:0 0,0 var(--wheel-rim-phase);box-shadow:inset 1px 0 1px rgba(238,233,238,.2),-2px 0 5px rgba(0,0,0,.1)}
[data-wn-theme-owner="studio-demo"][data-wn-theme="dark"]{border-color:var(--wn-control-border)}
[data-wn-theme-owner="studio-demo"][data-wn-theme="dark"] :is(.wn-comment-body,#entry-form textarea){background:var(--wn-canvas);color:var(--wn-text);border-color:var(--wn-control-border)}
[data-wn-theme-owner="studio-demo"][data-wn-theme="dark"] :is(.wn-comment-save,.wn-edit-save){background:var(--wn-brand);color:#fff;border-color:var(--wn-link)}
[data-wn-theme-owner="studio-demo"][data-wn-theme="dark"] .wn-comment-quote{border-color:var(--wn-link)}
#review-workspace[data-wn-theme="dark"] :focus-visible,
[data-wn-theme-owner="studio-demo"][data-wn-theme="dark"] :focus-visible{outline-color:var(--wn-focus)}
#review-workspace[data-wn-theme="dark"] ::selection,
[data-wn-theme-owner="studio-demo"][data-wn-theme="dark"] ::selection{background:#5c325c;color:#fff}
}
@media(max-width:600px){#review-workspace[data-wn-theme-root] .review-options{justify-content:flex-end;gap:8px}#review-workspace[data-wn-theme-root] .review-options [data-wn-theme-switch]{margin-right:auto}}
@media print{#review-workspace[data-wn-theme-root],[data-wn-theme-owner="studio-demo"]{--purple:#92278f;--ink:#29212a;--muted:#655b65;--line:#e8e1e8;background:#fff!important;color:#29212a!important;color-scheme:light}#review-workspace[data-wn-theme-root] :is(.review-toolbar,.demo-draft,.demo-comments,.draft-paper,.demo-facts,.thread,.thread-reply,.passage){background:#fff!important;color:#29212a!important}#review-workspace[data-wn-theme-root] [data-wn-theme-switch]{display:none!important}}
@media(forced-colors:active){#review-workspace[data-wn-theme-root] .comment-wheel-shell::before,#review-workspace[data-wn-theme-root] .comment-wheel-shell::after{display:none}#review-workspace[data-wn-theme-root] :is(button,select,textarea,input),[data-wn-theme-owner="studio-demo"] :is(button,textarea,input,select){border-color:ButtonText}#review-workspace[data-wn-theme-root] .thread.active{outline:2px solid Highlight}#review-workspace[data-wn-theme-root] :focus-visible,[data-wn-theme-owner="studio-demo"] :focus-visible{outline-color:Highlight}}

@media screen and (min-width:1101px){#review-workspace[data-wn-theme-root]:not(.demo-expanded) .review-toolbar{padding-block:17px}}

/* Studio source: quiet-demo.css */

/* Quiet editorial presentation adapter for observed public demo families.
 * Load AFTER native demo/theme CSS. No layout, scrolling, visibility, values,
 * handlers, animation, viewport geometry or saved-preference rules are changed.
 * Scoped to owned demo roots; surrounding WordPress/Sites content is untouched.
 * Source inventory and integration notes: quiet-demo-adapter.txt.
 */

/* Typeface only: retain all native sizes/line heights used by paired scrolling. */
:is(#review-workspace, [data-wn-theme-owner="studio-demo"], .wn-mini[data-wn-theme-root], #simspace .wn-sim),
:scope:is([data-wn-theme-key="wikinative-draft-blog-demo:appearance:v1"], [data-wn-theme-key="wikinative-library-blog-demo:appearance:v1"], [data-wn-theme-key="wikinative-library-builder-demo:appearance:v1"]) body {
  font-family: PalatinoProRoman,sans-serif;
}
:is(#review-workspace, [data-wn-theme-owner="studio-demo"], .wn-mini[data-wn-theme-root], #simspace .wn-sim) :is(h1,h2,h3,h4,p,label,button,input,select,textarea,summary),
:scope:is([data-wn-theme-key="wikinative-draft-blog-demo:appearance:v1"], [data-wn-theme-key="wikinative-library-blog-demo:appearance:v1"], [data-wn-theme-key="wikinative-library-builder-demo:appearance:v1"]) body :is(.demo-header,.demo-notice,button,input,select,textarea) {
  font-family: PalatinoProRoman,sans-serif !important;
}

/* Screen-only palette preserves native print and forced-colour fallbacks. */
@media screen and (forced-colors: none) {
  :is(#review-workspace, [data-wn-theme-owner="studio-demo"], .wn-mini[data-wn-theme-root], #simspace .wn-sim),
  :scope:is([data-wn-theme-key="wikinative-draft-blog-demo:appearance:v1"], [data-wn-theme-key="wikinative-library-blog-demo:appearance:v1"], [data-wn-theme-key="wikinative-library-builder-demo:appearance:v1"]) {
    /* Exact approved Quiet editorial semantic values from palette 03. */
    --qe-canvas: #ffffff;
    --qe-paper: #ffffff;
    --qe-surface: #F0F4F8;
    --qe-raised: #ffffff;
    --qe-ink: #102A43;
    --qe-muted: #486581;
    --qe-line: #D9E2EC;
    --qe-control: #829AB1;
    --qe-link: #3525E6;
    --qe-focus: #3525E6;
    --qe-selection: #E6E6FF;
    --qe-brand: #92278f;
    --qe-action: #3525E6;
    --qe-action-hover: #1D0EBE;
    --qe-action-ink: #ffffff;
    --qe-good: #0C6B58;
    --qe-good-surface: #EFFCF6;
    --qe-warning: #8D2B0B;
    --qe-warning-surface: #FFFBEA;
    --qe-error: #8A041A;
    --qe-error-surface: #FFE3E3;
    --qe-info: #035388;
    --qe-info-surface: #E3F8FF;
    --qe-shadow: rgba(16,42,67,.09);

    /* Existing native theme aliases. Theme state stays owned by each root. */
    --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);
    --purple: var(--qe-link);
    --ink: var(--qe-ink);
    --muted: var(--qe-muted);
    --line: var(--qe-line);
    --paper: var(--qe-paper);
    --surround: var(--qe-canvas);
    --wn-ink: var(--qe-ink);
    --wn-purple: var(--qe-link);
    --wn-border: var(--qe-control);
    --wn-paper: var(--qe-paper);
    color-scheme: light;
  }
  :is(#review-workspace, [data-wn-theme-owner="studio-demo"], .wn-mini[data-wn-theme-root], #simspace .wn-sim)[data-wn-theme="dark"],
  :scope[data-wn-theme="dark"]:is([data-wn-theme-key="wikinative-draft-blog-demo:appearance:v1"], [data-wn-theme-key="wikinative-library-blog-demo:appearance:v1"], [data-wn-theme-key="wikinative-library-builder-demo:appearance:v1"]) {
    --qe-canvas: #102A43;
    --qe-paper: #102A43;
    --qe-surface: #243B53;
    --qe-raised: #334E68;
    --qe-ink: #F0F4F8;
    --qe-muted: #BCCCDC;
    --qe-line: #486581;
    --qe-control: #829AB1;
    --qe-link: #C4C6FF;
    --qe-focus: #C4C6FF;
    --qe-selection: #334E68;
    --qe-action: #C4C6FF;
    --qe-action-hover: #E6E6FF;
    --qe-action-ink: #102A43;
    --qe-good: #8EEDC7;
    --qe-good-surface: #014D40;
    --qe-warning: #FCE588;
    --qe-warning-surface: #334E68;
    --qe-error: #FFBDBD;
    --qe-error-surface: #610316;
    --qe-info: #B3ECFF;
    --qe-info-surface: #243B53;
    --qe-shadow: rgba(0,0,0,.18);
    color-scheme: dark;
  }

  /* Shared owned controls. No font-size, border-width or box-size overrides. */
  :is(#review-workspace, [data-wn-theme-owner="studio-demo"], .wn-mini[data-wn-theme-root]) {
    color: var(--qe-ink) !important;
    background-color: var(--qe-paper) !important;
    border-color: var(--qe-line) !important;
  }
  :is(#review-workspace, [data-wn-theme-owner="studio-demo"], .wn-mini[data-wn-theme-root]) :is(button,input,select,textarea) {
    color: var(--qe-ink) !important;
    background-color: var(--qe-paper) !important;
    border-color: var(--qe-control) !important;
    caret-color: var(--qe-ink);
  }
  :is(#review-workspace, [data-wn-theme-owner="studio-demo"], .wn-mini[data-wn-theme-root]) :is(input,textarea)::placeholder {
    color: var(--qe-muted) !important;
    opacity: 1 !important;
  }
  :is(#review-workspace, [data-wn-theme-owner="studio-demo"], .wn-mini[data-wn-theme-root]) :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible {
    outline-color: var(--qe-focus) !important;
  }
  :is(#review-workspace, [data-wn-theme-owner="studio-demo"], .wn-mini[data-wn-theme-root]) ::selection {
    color: var(--qe-ink) !important;
    background-color: var(--qe-selection) !important;
  }
  :is(#review-workspace, [data-wn-theme-owner="studio-demo"], .wn-mini[data-wn-theme-root]) a {
    color: var(--qe-link) !important;
  }
  :is(#review-workspace, [data-wn-theme-owner="studio-demo"], .wn-mini[data-wn-theme-root]) :is(button,input,select,textarea):disabled {
    color: var(--qe-muted) !important;
    background-color: var(--qe-surface) !important;
    border-color: var(--qe-line) !important;
  }

  /* Existing switch geometry/transform is preserved; only its colour pairs change. */
  :is(#review-workspace, [data-wn-theme-owner="studio-demo"], .wn-mini[data-wn-theme-root], #simspace .wn-sim) .wn-theme-switch {
    color: var(--qe-ink) !important;
    background-color: transparent !important;
  }
  :is(#review-workspace, [data-wn-theme-owner="studio-demo"], .wn-mini[data-wn-theme-root], #simspace .wn-sim) .wn-theme-track {
    background-color: var(--qe-surface) !important;
    border-color: var(--qe-control) !important;
  }
  :is(#review-workspace, [data-wn-theme-owner="studio-demo"], .wn-mini[data-wn-theme-root], #simspace .wn-sim) .wn-theme-track::after { background-color: var(--qe-link) !important; }
  :is(#review-workspace, [data-wn-theme-owner="studio-demo"], .wn-mini[data-wn-theme-root], #simspace .wn-sim) .wn-theme-switch[aria-checked="true"] .wn-theme-track {
    background-color: var(--qe-action) !important;
    border-color: var(--qe-action) !important;
  }
  :is(#review-workspace, [data-wn-theme-owner="studio-demo"], .wn-mini[data-wn-theme-root], #simspace .wn-sim) .wn-theme-switch[aria-checked="true"] .wn-theme-track::after { background-color: var(--qe-action-ink) !important; }

  /* Public Draft family: Sites homepage and the legacy standalone embed. */
  #review-workspace :is(.review-toolbar,.demo-draft,.demo-comments,.draft-paper,.demo-facts,.discussion-nav,.mobile-views,.reply-actions) {
    color: var(--qe-ink) !important;
    background-color: var(--qe-paper) !important;
    border-color: var(--qe-line) !important;
  }
  #review-workspace :is(.thread,.thread-reply) {
    color: var(--qe-ink) !important;
    background-color: var(--qe-surface) !important;
    border-color: var(--qe-line) !important;
  }
  #review-workspace .thread.active { border-color: var(--qe-link) !important; }
  #review-workspace :is(.thread-kind,.demo-status,.thread time) { color: var(--qe-muted) !important; }
  #review-workspace .demo-status { background-color: var(--qe-surface) !important; }
  #review-workspace :is(.review-name,.thread-select,.thread-reply strong,.demo-facts>strong,.draft-paper>h3) { color: var(--qe-link) !important; }
  #review-workspace :is(.draft-paper h4,.feature-table caption,.feature-table th,.feature-table td) {
    color: var(--qe-ink) !important;
    border-color: var(--qe-line) !important;
  }
  #review-workspace .feature-table th { background-color: var(--qe-surface) !important; }
  #review-workspace .feature-table td { background-color: var(--qe-paper) !important; }
  #review-workspace :is(.thread blockquote,.thread-reply,.draft-paper h4) { border-color: var(--qe-line) !important; }
  #review-workspace .thread blockquote { border-left-color: var(--qe-link) !important; }
  #review-workspace :is(.thread-select,.feature-table th button) {
    color: var(--qe-link) !important;
    background-color: transparent !important;
  }
  #review-workspace :is(.passage,.wm-anchor) {
    color: inherit !important;
    background-color: transparent !important;
    border-color: var(--qe-link) !important;
  }
  #review-workspace :is(.passage:hover,.passage.active) {
    color: var(--qe-warning) !important;
    background-color: var(--qe-warning-surface) !important;
    border-color: var(--qe-warning) !important;
  }
  #review-workspace :is(.wnie-add,.thread ins) {
    color: var(--qe-good) !important;
    background-color: var(--qe-good-surface) !important;
    text-decoration-color: var(--qe-good) !important;
  }
  #review-workspace :is(.wnie-remove,.thread del) {
    color: var(--qe-error) !important;
    background-color: var(--qe-error-surface) !important;
    text-decoration-color: var(--qe-error) !important;
  }
  #review-workspace .wnie-editor { caret-color: var(--qe-focus); }
  #review-workspace .wnie-ui {
    color: var(--qe-muted) !important;
    background-color: var(--qe-surface) !important;
    border-color: var(--qe-control) !important;
  }
  #review-workspace :is(.demo-draft,.demo-comments,textarea) { scrollbar-color: var(--qe-control) var(--qe-paper); }
  #review-workspace :is(.quiet,.thread-tools button,.reply-form button,.demo-expand-toggle,.demo-facts-toggle):hover:not(:disabled) {
    color: var(--qe-link) !important;
    background-color: var(--qe-surface) !important;
    border-color: var(--qe-link) !important;
  }
  #review-workspace .mobile-views button[aria-selected="true"] {
    color: var(--qe-link) !important;
    background-color: var(--qe-surface) !important;
    border-bottom-color: var(--qe-link) !important;
  }
  #review-workspace[data-wn-theme="dark"] .demo-wordmark [fill="#92278f"] { fill: var(--qe-link); }
  /* Change only wheel pigments; retain native rim dimensions and phase variable. */
  #review-workspace .comment-wheel-shell::before {
    background: linear-gradient(to bottom,var(--qe-shadow),rgba(159,179,200,.09) 3px,transparent min(40px,14%),transparent max(calc(100% - 40px),86%),var(--qe-shadow));
    box-shadow: inset 0 1px 0 rgba(159,179,200,.16);
  }
  #review-workspace .comment-wheel-shell::after {
    background: linear-gradient(to right,rgba(130,154,177,.04),rgba(159,179,200,.15) 35%,var(--qe-shadow)),repeating-linear-gradient(to bottom,var(--qe-control) 0 1px,transparent 1px 18px);
    background-position: 0 0,0 var(--wheel-rim-phase);
    box-shadow: inset 1px 0 1px rgba(159,179,200,.2),-2px 0 5px var(--qe-shadow);
  }

  /* Native body-mounted citation, comment and touch-edit surfaces. */
  [data-wn-theme-owner="studio-demo"] :is(.wn-comment-title,.dialog-head h2) { color: var(--qe-ink) !important; }
  [data-wn-theme-owner="studio-demo"] :is(.dialog-head,.wn-comment-actions,.reply-actions) {
    color: var(--qe-ink) !important;
    background-color: var(--qe-paper) !important;
    border-color: var(--qe-line) !important;
  }
  [data-wn-theme-owner="studio-demo"] :is(.wn-comment-body,#entry-form textarea) {
    color: var(--qe-ink) !important;
    background-color: var(--qe-paper) !important;
    border-color: var(--qe-control) !important;
  }
  [data-wn-theme-owner="studio-demo"] .wn-comment-quote {
    color: var(--qe-muted) !important;
    border-left-color: var(--qe-link) !important;
  }
  [data-wn-theme-owner="studio-demo"] :is(.wn-comment-save,.wn-edit-save) {
    color: var(--qe-action-ink) !important;
    background-color: var(--qe-action) !important;
    border-color: var(--qe-action) !important;
  }
  [data-wn-theme-owner="studio-demo"] :is(.wn-comment-save,.wn-edit-save):hover:not(:disabled) {
    color: var(--qe-action-ink) !important;
    background-color: var(--qe-action-hover) !important;
    border-color: var(--qe-action-hover) !important;
  }
  [data-wn-theme-owner="studio-demo"] :is(.wn-comment-save,.wn-edit-save):disabled {
    color: var(--qe-muted) !important;
    background-color: var(--qe-surface) !important;
    border-color: var(--qe-line) !important;
  }

  /* Inline manifesto wheel. Its own data-wn-theme remains the sole mode source. */
  .wn-mini[data-wn-theme-root] :is(.wm-head,.wm-help,.wm-article,.wm-article h3,.wm-article p,.wm-question) { color: var(--qe-ink) !important; }
  .wn-mini[data-wn-theme-root] :is(.wm-draft,.wm-comments) {
    color: var(--qe-ink) !important;
    background-color: var(--qe-paper) !important;
    scrollbar-color: var(--qe-control) var(--qe-paper);
  }
  .wn-mini[data-wn-theme-root] :is(.wm-article h3,.wm-foot) { border-color: var(--qe-line) !important; }
  .wn-mini[data-wn-theme-root] .wm-card {
    color: var(--qe-ink) !important;
    background-color: var(--qe-surface) !important;
    border-color: var(--qe-control) !important;
  }
  .wn-mini[data-wn-theme-root] .wm-card[aria-pressed="true"] {
    color: var(--qe-ink) !important;
    background-color: var(--qe-surface) !important;
    border-color: var(--qe-link) !important;
  }
  .wn-mini[data-wn-theme-root] :is(.wm-state,.wm-byline) { color: var(--qe-muted) !important; }
  .wn-mini[data-wn-theme-root] :is(.wm-author,.wm-link) { color: var(--qe-link) !important; }
  .wn-mini[data-wn-theme-root] .wm-quote { border-color: var(--qe-link) !important; }
  .wn-mini[data-wn-theme-root] .wm-anchor {
    color: inherit !important;
    background-color: transparent !important;
    text-decoration-color: var(--qe-link) !important;
  }
  .wn-mini[data-wn-theme-root] .wm-anchor[aria-pressed="true"] {
    color: var(--qe-warning) !important;
    background-color: var(--qe-warning-surface) !important;
  }
  .wn-mini[data-wn-theme-root] :is(.wm-sound,.wm-tab) {
    color: var(--qe-link) !important;
    background-color: var(--qe-paper) !important;
    border-color: var(--qe-control) !important;
  }
  .wn-mini[data-wn-theme-root] .wm-tab[aria-selected="true"] {
    color: var(--qe-ink) !important;
    background-color: var(--qe-surface) !important;
    border-color: var(--qe-link) !important;
  }
  .wn-mini[data-wn-theme-root] .wm-rim { background-color: var(--qe-canvas) !important; }
  .wn-mini[data-wn-theme-root] .wm-rim::before { border-color: var(--qe-line) !important; }
  .wn-mini[data-wn-theme-root] .wm-rim::after {
    background: repeating-linear-gradient(to bottom,transparent 0 11px,var(--qe-control) 11px 12px,transparent 12px 17px);
    background-position: 0 var(--wheel-rim-phase,0px);
  }

  /* Static native-parity frames: header/notice chrome plus native token bridge.
     Native review/library detail selectors come from quiet-editorial.css after
     the integration supplies body.wn-quiet-editorial to these frames only. */
  :scope:is([data-wn-theme-key="wikinative-draft-blog-demo:appearance:v1"], [data-wn-theme-key="wikinative-library-blog-demo:appearance:v1"], [data-wn-theme-key="wikinative-library-builder-demo:appearance:v1"]) body {
    color: var(--qe-ink) !important;
    background-color: var(--qe-canvas) !important;
  }
  :scope:is([data-wn-theme-key="wikinative-draft-blog-demo:appearance:v1"], [data-wn-theme-key="wikinative-library-blog-demo:appearance:v1"], [data-wn-theme-key="wikinative-library-builder-demo:appearance:v1"]) :is(.demo-header,.demo-notice,#demo-notice,#demo-notifications) {
    color: var(--qe-muted) !important;
    background-color: var(--qe-paper) !important;
    border-color: var(--qe-line) !important;
  }
  :scope:is([data-wn-theme-key="wikinative-draft-blog-demo:appearance:v1"], [data-wn-theme-key="wikinative-library-blog-demo:appearance:v1"], [data-wn-theme-key="wikinative-library-builder-demo:appearance:v1"]) :is(.demo-brand,.demo-header a) { color: var(--qe-link) !important; }
  :scope:is([data-wn-theme-key="wikinative-draft-blog-demo:appearance:v1"], [data-wn-theme-key="wikinative-library-blog-demo:appearance:v1"], [data-wn-theme-key="wikinative-library-builder-demo:appearance:v1"]) .demo-header button {
    color: var(--qe-link) !important;
    background-color: var(--qe-paper) !important;
    border-color: var(--qe-control) !important;
  }

  /* Existing manifesto SimSpace mini terminal, scoped to its exact insert.
     Reuses current markup and all run/reset/keyboard/feedback state attributes. */
  #simspace .wn-sim {
    --ss-ink: var(--qe-ink);
    --ss-crt: var(--qe-paper);
    --ss-phosphor: var(--qe-ink);
    --ss-soft: var(--qe-muted);
    --ss-amber: var(--qe-warning);
    --ss-purple: var(--qe-link);
    color: var(--qe-ink) !important;
  }
  #simspace .wn-sim :is(.ss-instruction,.ss-state,.ss-record cite,.ss-log,.ss-response) { color: var(--qe-muted) !important; }
  #simspace .wn-sim .ss-name { color: var(--qe-link) !important; }
  #simspace .wn-sim .ss-bezel { background-color: var(--qe-control) !important; }
  #simspace .wn-sim .ss-glass {
    color: var(--qe-ink) !important;
    background-color: var(--qe-paper) !important;
    border-color: var(--qe-control) !important;
    color-scheme: inherit;
  }
  #simspace .wn-sim :is(.ss-record,.ss-record p,.ss-label,.ss-log-label,.ss-handle) { color: var(--qe-ink) !important; }
  #simspace .wn-sim .ss-record { border-left-color: var(--qe-link) !important; }
  #simspace .wn-sim .ss-draft {
    color: var(--qe-ink) !important;
    background-color: var(--qe-surface) !important;
    border-color: var(--qe-control) !important;
    caret-color: var(--qe-ink);
  }
  #simspace .wn-sim .ss-draft::placeholder { color: var(--qe-muted) !important; opacity: 1 !important; }
  #simspace .wn-sim :is(.ss-key,.ss-run) {
    color: var(--qe-link) !important;
    background-color: transparent !important;
    border-color: var(--qe-control) !important;
  }
  #simspace .wn-sim .ss-run:disabled { color: var(--qe-muted) !important; background-color: transparent !important; }
  #simspace .wn-sim :is(.ss-tag,.ss-report) { color: var(--qe-warning) !important; }
  #simspace .wn-sim .ss-message[data-verdict="clear"] .ss-tag,
  #simspace .wn-sim[data-run="clear"] .ss-report { color: var(--qe-good) !important; }
  #simspace .wn-sim .ss-lamp { background-color: var(--qe-good) !important; }
  #simspace .wn-sim[data-run="busy"] .ss-lamp { background-color: var(--qe-warning) !important; }
  #simspace .wn-sim .ss-log-label::before { color: var(--qe-muted) !important; }
  #simspace .wn-sim :is(button,textarea):focus-visible { outline-color: var(--qe-focus) !important; }
}


}
