/* V19 A: the portfolio's black window palette, scoped to interior documents.
   Existing layout, type, imagery, painting opacity, lattice and behavior are retained. */
html:has(body:not(.qe-home)) {
  color-scheme:dark;
  --paper:#000;--ground:#000;--ink:#e9e7e2;
  --muted:#b9b6af;--soft:#b9b6af;--faint:#b9b6af;
  --accent:#e9e7e2;--blue:#e9e7e2;--on-accent:#000;--red:#e9e7e2;
  --hair:#cfccc6;--surface:#0b0b0b;--wash:rgba(233,231,226,.07);
  --folder-fill:#0b0b0b;--folder-hover:#e9e7e2;
  background:#000;
}
html[data-theme] body:not(.qe-home) {background:#000;color:var(--ink)}

/* Square labels use an inset rule so their existing bounds do not move. */
body:not(.qe-home) .qe-project-folder span {
  border-radius:0;background:#0b0b0b;color:#e9e7e2;
  box-shadow:inset 0 0 0 1px rgba(207,204,198,.4);
}
body:not(.qe-home) .qe-project-folder:is(:hover,:focus-visible,[aria-current=page]) span {
  background:#e9e7e2;color:#000;box-shadow:inset 0 0 0 1px #e9e7e2;
}
body:not(.qe-home) .qe-project-folder:focus-visible {border-radius:0}

/* The existing inline shell's hover/focus preview keeps its size and content. */
html[data-theme] body:not(.qe-home) > #qe-folder-preview.qe-folder-preview {
  background:#0b0b0b;border-color:#cfccc6;border-radius:0;
  box-shadow:5px 5px 0 rgba(255,255,255,.12);color:#e9e7e2;
}
body:not(.qe-home) .qe-folder-preview img {background:#000}
body:not(.qe-home) .qe-folder-preview strong {
  background:#101010;color:#e9e7e2;box-shadow:0 1px 0 #cfccc6;
}
body:not(.qe-home) .qe-folder-preview p {color:#b9b6af}

/* The retained model surface and toolbar keep their original geometry. */
body:not(.qe-home) .speaker-viewer {
  background:#0b0b0b;color:#e9e7e2;border-color:#cfccc6;border-radius:0;
  box-shadow:5px 5px 0 rgba(255,255,255,.12);
}
body:not(.qe-home) .speaker-toolbar {
  background:#101010;color:#e9e7e2;border-color:#cfccc6;
}
body:not(.qe-home) :is(.speaker-model,.speaker-loading) {background:#000;color:#e9e7e2}
body:not(.qe-home) .speaker-toolbar button[aria-pressed="true"],
body:not(.qe-home) .speaker-toolbar button[aria-pressed="true"]:disabled {
  background:#e9e7e2;border-color:#e9e7e2;color:#000;
}
body:not(.qe-home) .speaker-viewer :focus-visible {outline-color:#e9e7e2}

/* V20 reconciliation: retain the published Musical Furniture geometry and controls. */
body:not(.qe-home) .mf-project .mf-model {background:#0b0b0b}
body:not(.qe-home) .mf-project .mf-enlarge {background:#101010}
