/*
 * CINEROOM glass layer. Load after styles.css.
 * The default and data-theme="purple" share the same palette.
 * Theme changes affect presentation only; semantic states retain their colors.
 */
:root,
:root[data-theme="purple"] {
  color-scheme: dark;
  --bg: #0d0b13;
  --text: #f5f3fa;
  --muted: #bcb6ca;
  --soft-text: #a39aad;
  --accent: #b68aff;
  --accent-rgb: 167, 123, 255;
  --accent-fill: #a77bff;
  --accent-end: #9b78e0;
  --on-accent: #130e1b;
  --surface-opaque: #1b1724;
  --surface-raised-opaque: #282231;
  --surface-rgb: 28, 24, 38;
  --raised-rgb: 41, 34, 52;
  --input-bg: #15111d;
  --scene-bg: #171220;
  --shadow-tint: 8, 5, 14;
}
:root[data-theme="blue"] {
  --bg: #090f16;
  --text: #f0f6fc;
  --muted: #b2c2d1;
  --soft-text: #94a7ba;
  --accent: #9fceff;
  --accent-rgb: 112, 181, 250;
  --accent-fill: #a3d1fb;
  --accent-end: #79abd9;
  --on-accent: #0a1723;
  --surface-opaque: #14212c;
  --surface-raised-opaque: #203140;
  --surface-rgb: 20, 33, 44;
  --raised-rgb: 32, 49, 64;
  --input-bg: #0d1923;
  --scene-bg: #10202e;
  --shadow-tint: 2, 9, 17;
}
:root[data-theme="green"] {
  --bg: #090f0e;
  --text: #f0f8f4;
  --muted: #b2c7bd;
  --soft-text: #95ada1;
  --accent: #a2dfbc;
  --accent-rgb: 112, 196, 148;
  --accent-fill: #a7dfbe;
  --accent-end: #7fb496;
  --on-accent: #0b1b12;
  --surface-opaque: #15231c;
  --surface-raised-opaque: #22342a;
  --surface-rgb: 21, 35, 28;
  --raised-rgb: 34, 52, 42;
  --input-bg: #0e1b14;
  --scene-bg: #11251a;
  --shadow-tint: 3, 12, 7;
}
:root[data-theme="red"] {
  --bg: #130a0c;
  --text: #fcf2f3;
  --muted: #d1b6bc;
  --soft-text: #b899a1;
  --accent: #ffb0b5;
  --accent-rgb: 237, 132, 145;
  --accent-fill: #f7b1b8;
  --accent-end: #da8995;
  --on-accent: #260c12;
  --surface-opaque: #29191f;
  --surface-raised-opaque: #3b252d;
  --surface-rgb: 41, 25, 31;
  --raised-rgb: 59, 37, 45;
  --input-bg: #201117;
  --scene-bg: #2b161e;
  --shadow-tint: 16, 3, 7;
}
:root[data-theme="black"] {
  --bg: #0b0b0b;
  --text: #f6f6f6;
  --muted: #bebebe;
  --soft-text: #a1a1a1;
  --accent: #e0e0e0;
  --accent-rgb: 195, 195, 195;
  --accent-fill: #dedede;
  --accent-end: #b4b4b4;
  --on-accent: #111111;
  --surface-opaque: #1b1b1b;
  --surface-raised-opaque: #292929;
  --surface-rgb: 27, 27, 27;
  --raised-rgb: 41, 41, 41;
  --input-bg: #141414;
  --scene-bg: #181818;
  --shadow-tint: 0, 0, 0;
}
:root {
  --panel: var(--surface-opaque);
  --purple: var(--accent);
  --pink: var(--accent);
  --border: rgba(255, 255, 255, .13);
  --border-bright: rgba(255, 255, 255, .24);
  --border-accent: rgba(var(--accent-rgb), .45);
  --glass-surface: rgba(var(--surface-rgb), .78);
  --glass-raised: rgba(var(--raised-rgb), .84);
  --glass-glint: rgba(255, 255, 255, .12);
  --glass-shadow: 0 16px 38px rgba(var(--shadow-tint), .23), inset 0 1px 0 var(--glass-glint);
  --warning-text: #f1d29d;
  --warning-bg: #30271b;
  --warning-border: #8c7041;
  --danger-text: #ffb0be;
  --danger-bg: #321d25;
  --danger-border: #a66076;
  --success-text: #b4e5c9;
  --success-bg: #1a3025;
  --success-border: #5d9576;
  --ease-glass: 180ms cubic-bezier(.2, .7, .2, 1);
}

html { background: var(--bg); accent-color: var(--accent-fill); }
body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(ellipse at 6% 5%, rgba(var(--accent-rgb), .085), transparent 48%),
    radial-gradient(ellipse at 96% 24%, rgba(var(--accent-rgb), .045), transparent 43%),
    var(--bg);
}
::selection { background: rgba(var(--accent-rgb), .32); color: var(--text); }
a { color: inherit; }
a:hover { color: var(--accent); }
p, .micro, .meta, nav, .trust, footer, .queue-url { color: var(--muted); }
b, strong, h1, h2, h3, .brand, footer b { color: var(--text); }
.eyebrow, .steps, h1 em, .category-name, .safety h3, .safety a, .message b { color: var(--accent); }
.eyebrow { letter-spacing: .14em; }

/* Reflected surfaces have opaque fallbacks; blur is progressive enhancement. */
header,
.card,
.chat,
.info-strip,
details,
.queue-item,
dialog,
.theme-panel {
  background-color: var(--surface-opaque);
  background-image: linear-gradient(145deg, rgba(255, 255, 255, .045), transparent 60%);
  border-color: var(--border);
  box-shadow: var(--glass-shadow);
}
header {
  position: relative;
  z-index: 20;
  width: calc(100% - 40px);
  max-width: 1360px;
  margin: 20px auto 0;
  padding: 18px 24px;
  gap: 20px;
  border: 1px solid var(--border-bright);
  border-radius: 25px;
  overflow: visible;
}
header nav { gap: 22px; white-space: nowrap; }
header > .actions { margin-left: auto; gap: 8px; flex-wrap: nowrap; min-width: 0; }
header .brand { flex-shrink: 0; }
header #locale { width: 66px; min-width: 66px; padding-left: 11px; }
header #account { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo {
  background: rgba(var(--accent-rgb), .075);
  border-bottom: 1px solid rgba(var(--accent-rgb), .12);
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
}
.logo {
  background: linear-gradient(145deg, rgba(255, 255, 255, .25), transparent 70%), linear-gradient(135deg, var(--accent-fill), var(--accent-end));
  color: var(--on-accent);
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 11px;
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), .12), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.adult { color: var(--muted); border-color: var(--border-bright); background: rgba(255, 255, 255, .035); }

/* Controls keep a stable, readable foreground across every accent. */
button,
.theme-trigger {
  color: var(--text);
  border-color: var(--border-bright);
  background-color: var(--surface-raised-opaque);
  background-image: linear-gradient(165deg, rgba(255, 255, 255, .075), transparent 58%);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 3px 9px rgba(0, 0, 0, .08);
  transition: background-color var(--ease-glass), border-color var(--ease-glass), box-shadow var(--ease-glass), transform var(--ease-glass);
}
button:hover,
.theme-trigger:hover {
  background-color: var(--surface-raised-opaque);
  background-image: linear-gradient(165deg, rgba(var(--accent-rgb), .16), rgba(255, 255, 255, .025));
  border-color: var(--border-accent);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 5px 15px rgba(0, 0, 0, .15);
}
button:active, .theme-trigger:active { transform: translateY(1px); }
button:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.primary, .primary:hover {
  color: var(--on-accent);
  background-color: var(--accent-fill);
  background-image: linear-gradient(155deg, rgba(255, 255, 255, .22), transparent 60%), linear-gradient(135deg, var(--accent-fill), var(--accent-end));
  border-color: rgba(255, 255, 255, .33);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), 0 6px 21px rgba(var(--accent-rgb), .13);
}
.primary:hover { filter: brightness(1.07); }
.primary:disabled { filter: none; }
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.category-chips button[aria-pressed="true"],
.cam-actions button[aria-pressed="true"] {
  background: linear-gradient(150deg, rgba(var(--accent-rgb), .25), rgba(var(--accent-rgb), .12)), var(--surface-raised-opaque);
  border-color: var(--border-accent);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13);
}
input, select, textarea {
  background-color: var(--input-bg);
  color: var(--text);
  border-color: var(--border-bright);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, .15);
  border-radius: 11px;
}
input::placeholder, textarea::placeholder { color: var(--soft-text); opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: var(--border-accent); }
input[type="checkbox"], input[type="range"] { accent-color: var(--accent-fill); }
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
}
option { background: var(--surface-opaque); color: var(--text); }

/* Ambient artwork stays within the chosen palette, including monochrome. */
.hero { padding-top: 72px; }
.art {
  border-color: var(--border-accent);
  border-radius: 25px;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(var(--accent-rgb), .28), transparent 65%),
    linear-gradient(150deg, rgba(255, 255, 255, .055), transparent 55%),
    var(--scene-bg);
  box-shadow: 0 27px 75px rgba(var(--shadow-tint), .45), inset 0 1px 0 rgba(255, 255, 255, .16);
}
.orb {
  border-color: rgba(var(--accent-rgb), .56);
  box-shadow: 0 0 70px rgba(var(--accent-rgb), .14), inset 0 0 35px rgba(var(--accent-rgb), .11);
}
.orb::before, .orb::after { border-color: rgba(var(--accent-rgb), .33); }
.art-title { color: var(--text); text-shadow: 0 2px 16px rgba(0, 0, 0, .3); }
.art-bottom { background: var(--surface-opaque); border-top: 1px solid var(--border); }
.pill {
  color: var(--accent);
  background: rgba(var(--accent-rgb), .105);
  border-color: rgba(var(--accent-rgb), .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
}
.trust { border-color: var(--border); }
.card { border-radius: 20px; }
.card:hover { border-color: var(--border-accent); box-shadow: 0 22px 48px rgba(var(--shadow-tint), .32), inset 0 1px 0 var(--glass-glint); }
.poster {
  background:
    radial-gradient(ellipse at 42% 120%, rgba(var(--accent-rgb), .45), transparent 61%),
    linear-gradient(135deg, rgba(255, 255, 255, .06), transparent 62%),
    var(--scene-bg);
}
.poster.two {
  background:
    radial-gradient(circle at 69% 35%, rgba(var(--accent-rgb), .3), transparent 35%),
    linear-gradient(32deg, rgba(255, 255, 255, .035), rgba(var(--accent-rgb), .08)),
    var(--scene-bg);
}
.poster.three {
  background:
    repeating-linear-gradient(125deg, transparent 0 24px, rgba(var(--accent-rgb), .065) 25px 26px),
    linear-gradient(45deg, rgba(255, 255, 255, .025), rgba(var(--accent-rgb), .17)),
    var(--scene-bg);
}
.poster strong { color: var(--text); opacity: .88; }
.card-bottom span { color: var(--muted); }
.info-strip { border-radius: 18px; }
footer { background: rgba(255, 255, 255, .012); border-color: var(--border); }

/* The cinema and every camera use the same glass material. */
.screen {
  border-color: var(--border-accent);
  border-radius: 19px;
  background:
    radial-gradient(ellipse at 50% 85%, rgba(var(--accent-rgb), .27), transparent 63%),
    linear-gradient(150deg, rgba(255, 255, 255, .025), rgba(var(--accent-rgb), .04)),
    var(--scene-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 12px 32px rgba(var(--shadow-tint), .2);
}
.screen::before {
  border-color: rgba(var(--accent-rgb), .4);
  box-shadow: 0 0 80px rgba(var(--accent-rgb), .17), inset 0 0 30px rgba(var(--accent-rgb), .035);
}
.is-mini .screen::before { box-shadow: 0 0 40px rgba(var(--accent-rgb), .14); }
.screen h2 { color: var(--text); }
.screen p { color: var(--muted); }
.playback, .layout-bar, .participants-heading { color: var(--muted); }
.playback input { box-shadow: none; }
.camera-slot {
  background: var(--surface-opaque);
  border-color: var(--border);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.cam, .cam-tile, .cam-tile:nth-child(even) {
  border-color: var(--border);
  background:
    radial-gradient(ellipse at 80% 20%, rgba(var(--accent-rgb), .095), transparent 70%),
    linear-gradient(145deg, rgba(255, 255, 255, .035), transparent 70%),
    var(--surface-opaque);
}
.cam-top, .cam-status, .cam small, .camera-placeholder { color: var(--muted); }
.cam-bottom b { color: var(--text); }
.avatar, .cam-visual .avatar {
  color: var(--text);
  background: linear-gradient(145deg, rgba(var(--accent-rgb), .2), rgba(255, 255, 255, .04)), var(--surface-raised-opaque);
  border: 1px solid rgba(var(--accent-rgb), .3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13), 0 5px 24px rgba(var(--accent-rgb), .08);
}
.silhouette { background: rgba(var(--accent-rgb), .085); }
.cam-actions button { background-color: var(--surface-raised-opaque); border-color: var(--border-bright); }
.cam-actions button:hover { background: linear-gradient(145deg, rgba(var(--accent-rgb), .15), transparent), var(--surface-raised-opaque); border-color: var(--border-accent); }
.is-hidden {
  background: repeating-linear-gradient(135deg, transparent, transparent 10px, rgba(255, 255, 255, .018) 10px, rgba(255, 255, 255, .018) 11px), var(--surface-opaque);
}
.main-stage > .cam-tile {
  border-color: var(--border-accent);
  border-radius: 19px;
  background:
    radial-gradient(ellipse at 50% 70%, rgba(var(--accent-rgb), .2), transparent 65%),
    linear-gradient(140deg, rgba(255, 255, 255, .03), transparent),
    var(--scene-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 12px 32px rgba(var(--shadow-tint), .2);
}
.layout-note { border-left-color: var(--accent-end); background: rgba(var(--accent-rgb), .065); color: var(--muted); border-radius: 0 10px 10px 0; }
.chat { border-radius: 20px; }
.message, .queue-peek { border-color: var(--border); }
.queue-item { border-radius: 14px; }
.optional-tags { border-color: var(--border-bright); border-radius: 13px; }
.optional-tags legend { color: var(--muted); }

/* Dialogs and notices remain readable with or without translucency. */
dialog {
  color: var(--text);
  border-color: var(--border-bright);
  border-radius: 25px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .17);
}
dialog::backdrop { background: rgba(3, 3, 3, .74); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.notice { background: var(--warning-bg); border-color: var(--warning-border); color: var(--warning-text); border-radius: 13px; }
.error { color: var(--danger-text); }
.link-result { border-color: var(--border-bright); background: var(--surface-raised-opaque); color: var(--text); }
.link-result.approved { border-color: var(--success-border); background: var(--success-bg); color: var(--success-text); }
.link-result.review { border-color: var(--warning-border); background: var(--warning-bg); color: var(--warning-text); }
.link-result.rejected { border-color: var(--danger-border); background: var(--danger-bg); color: var(--danger-text); }
#toast {
  background: var(--surface-raised-opaque);
  color: var(--text);
  border-color: var(--border-accent);
  border-radius: 15px;
  box-shadow: 0 14px 50px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .16);
}

/* Header appearance picker. The header anchors its panel on every viewport. */
details.theme-picker { position: static; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; flex: 0 0 auto; }
.theme-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 44px;
  min-height: 44px;
  padding: 9px 11px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.theme-trigger::-webkit-details-marker { display: none; }
.theme-trigger::marker { content: ''; }
.theme-trigger svg { width: 21px; height: 21px; flex: 0 0 auto; stroke: currentColor; }
.theme-picker[open] > .theme-trigger { border-color: var(--border-accent); background: linear-gradient(145deg, rgba(var(--accent-rgb), .15), transparent), var(--surface-raised-opaque); }
.theme-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 16px;
  z-index: 50;
  width: min(360px, calc(100vw - 32px));
  max-width: calc(100% - 24px);
  padding: 18px;
  border: 1px solid var(--border-bright);
  border-radius: 21px;
  color: var(--text);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .17);
}
.theme-panel h2, .theme-panel h3, .theme-panel p { margin: 0 0 12px; }
.theme-panel h2, .theme-panel h3 { font-size: 17px; letter-spacing: -.015em; }
.theme-panel p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.theme-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.theme-option {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 88px;
  padding: 12px 6px;
  background: var(--surface-raised-opaque);
  border-color: var(--border);
  border-radius: 13px;
}
.theme-name { font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; color: var(--text); }
.theme-swatch {
  display: block;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .28);
  background: linear-gradient(145deg, rgba(255, 255, 255, .28), transparent 65%), var(--swatch, var(--accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 3px 10px rgba(0, 0, 0, .2);
}
[data-theme-option="purple"] { --swatch: #a77bff; }
[data-theme-option="blue"] { --swatch: #85bbee; }
[data-theme-option="green"] { --swatch: #8bcaa6; }
[data-theme-option="red"] { --swatch: #e6929e; }
[data-theme-option="black"] { --swatch: #353535; }
.theme-option[aria-pressed="true"] {
  background: linear-gradient(150deg, rgba(var(--accent-rgb), .17), rgba(255, 255, 255, .035)), var(--surface-raised-opaque);
  border-color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15);
}
.theme-option[aria-pressed="true"]::after { content: '✓'; position: absolute; top: 5px; right: 8px; color: var(--text); font-size: 13px; font-weight: 700; }

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  header, .chat, .info-strip, dialog, .theme-panel {
    background-color: var(--glass-surface);
    -webkit-backdrop-filter: blur(22px) saturate(125%);
    backdrop-filter: blur(22px) saturate(125%);
  }
  .card { background-color: var(--glass-surface); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .art-bottom { background: var(--glass-raised); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  #toast { background: var(--glass-raised); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
}
@media (max-width: 1180px) {
  header { padding: 16px 19px; gap: 15px; }
  header nav { display: none; }
  header .brand { font-size: 18px; }
}
@media (max-width: 720px) {
  header { width: calc(100% - 24px); margin: 12px auto 0; padding: 15px; border-radius: 21px; flex-wrap: wrap; gap: 14px; }
  header .brand { font-size: 18px; }
  header > .actions { flex: 1 1 100%; flex-wrap: wrap; justify-content: flex-end; margin-left: 0; }
  header #account { max-width: min(190px, 50vw); }
  header button { font-size: 14px; padding: 9px 11px; }
  header .primary { flex: 1 1 auto; }
  .theme-panel { right: 0; max-width: 100%; width: min(360px, calc(100vw - 24px)); padding: 16px; }
  .hero { padding-top: 42px; }
  .art { border-radius: 21px; }
  dialog { border-radius: 21px; }
  .demo { font-size: 12px; padding-inline: 18px; }
}

/* Respect system accessibility preferences without changing semantic states. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .card:hover, button:active, .theme-trigger:active { transform: none; }
  .screen::before { animation: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  header, .card, .chat, .info-strip, details, .queue-item, dialog, .theme-panel, .art-bottom, #toast {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background-color: var(--surface-opaque);
  }
  .art-bottom, #toast { background: var(--surface-raised-opaque); }
  dialog::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(0, 0, 0, .88); }
}
@media (prefers-contrast: more) {
  :root { --border: rgba(255, 255, 255, .4); --border-bright: rgba(255, 255, 255, .65); --border-accent: var(--accent); }
  header, .card, .chat, .info-strip, details, .queue-item, dialog, .theme-panel {
    background-color: var(--surface-opaque);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  :where(a, button, input, select, textarea, summary):focus-visible { outline-width: 3px; }
  .soft-text, .micro, .meta, .cam-top, .cam-status, .queue-url { color: var(--text); }
  button:disabled { opacity: .7; }
}
@media (forced-colors: active) {
  body, header, .demo, .card, .poster, .poster.two, .poster.three, .art, .art-bottom, .screen, .cam, .cam-tile, .cam-tile:nth-child(even), .main-stage > .cam-tile, .camera-slot, .chat, .info-strip, details, dialog, .theme-panel, .queue-item, .notice, .link-result, .link-result.approved, .link-result.review, .link-result.rejected, .layout-note, .pill, .avatar, .cam-visual .avatar, #toast {
    color: CanvasText;
    background: Canvas;
    border-color: CanvasText;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    text-shadow: none;
  }
  button, .primary, .primary:hover, .theme-trigger, .theme-option, .cam-actions button, .cam-actions button[aria-pressed="true"], .category-chips button[aria-pressed="true"], .theme-option[aria-pressed="true"], .theme-picker[open] > .theme-trigger {
    color: ButtonText;
    background: ButtonFace;
    border: 1px solid ButtonText;
    box-shadow: none;
    filter: none;
  }
  input, select, textarea { color: FieldText; background: Field; border-color: FieldText; box-shadow: none; }
  select { appearance: auto; }
  a, .safety a { color: LinkText; }
  .eyebrow, .steps, h1 em, .category-name, .safety h3, .message b, .theme-name, .theme-option[aria-pressed="true"]::after, p, .micro, .meta, .cam-top, .cam-status, .queue-url, .camera-placeholder, .layout-bar { color: CanvasText; }
  .theme-option[aria-pressed="true"], .category-chips button[aria-pressed="true"], .cam-actions button[aria-pressed="true"] { outline: 2px solid Highlight; outline-offset: -4px; }
  :where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid Highlight; }
  .orb, .orb::before, .orb::after, .screen::before { border-color: CanvasText; box-shadow: none; }
  .silhouette { background: CanvasText; opacity: .1; }
  .theme-swatch { background: Canvas; border-color: ButtonText; box-shadow: none; }
  .logo { background: Canvas; color: CanvasText; border-color: CanvasText; box-shadow: none; }
  dialog::backdrop { background: Canvas; opacity: .8; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Accessible live announcements and compact trigger accent. */
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; }
.current-theme-dot { width: 7px; height: 7px; display: inline-block; flex: 0 0 auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(var(--accent-rgb), .2); }
@media (forced-colors: active) { .current-theme-dot { background: ButtonText; box-shadow: none; } }

/* The controls share the glass material, not just its reflected edge. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  button:not(.primary), .theme-trigger {
    background-color: var(--glass-raised);
    -webkit-backdrop-filter: blur(14px) saturate(125%);
    backdrop-filter: blur(14px) saturate(125%);
  }
  button:not(.primary):hover, .theme-trigger:hover { background-color: rgba(var(--raised-rgb), .94); }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  button:not(.primary), .theme-trigger {
    background-color: var(--surface-raised-opaque);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
@media (forced-colors: active) {
  button:not(.primary), button:not(.primary):hover, .theme-trigger, .theme-trigger:hover {
    background: ButtonFace;
    color: ButtonText;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
.theme-trigger { border: 1px solid var(--border-bright); }
.theme-trigger:hover, .theme-picker[open]>.theme-trigger { border-color: var(--border-accent); }
/* Denser floating glass keeps large page text from competing with menu labels. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .theme-picker .theme-panel { background-color: rgba(var(--surface-rgb), .96); }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .theme-picker .theme-panel { background-color: var(--surface-opaque); }
}
@media (forced-colors: active) { .theme-picker .theme-panel { background: Canvas; } }
