/* Cineskill projection room, web layout by Claude. The shared shell is achromatic.
   Original character art, film frames and working colour samples retain their own colour. */
/* ───────────────────────── tokens ───────────────────────── */
body[data-host=web][data-ui=projector] {
  --wp-bg: #0b0b0b;
  --wp-graphite: #161616;
  --wp-graphite-2: #202020;
  --wp-paper: #e9e9e9;
  --wp-ink: #f4f4f4;
  --wp-mute: #a4a4a4;
  --wp-signal: #e5e5e5;
  --wp-signal-ink: #131313;
  --wp-glass: rgba(255,255,255,.027);
  --wp-glass-2: rgba(255,255,255,.055);
  --wp-glass-3: rgba(255,255,255,.085);
  --wp-sheet: rgba(255,255,255,.018);
  --wp-line: rgba(255,255,255,.17);
  --wp-line-soft: rgba(255,255,255,.09);
  --wp-lit: rgba(255,255,255,.36);
  --wp-dark-edge: rgba(0, 0, 0, .5);
  --wp-shadow: 0 26px 48px -22px rgba(0, 0, 0, .85);
  --wp-r: 22px;
  --wp-r-sm: 14px;
  --wp-cut: 22px;
  --wp-gap: clamp(18px, 2.4vw, 40px);
  --wp-display: "Avenir Next Condensed", "Helvetica Neue", -apple-system, BlinkMacSystemFont, sans-serif;
  --wp-text: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --wp-mono: ui-monospace, "SF Mono", Menlo, monospace;
  /* zoom spring from saucer-motion.md (k380 c34, ζ .87) */
  --wp-settle: cubic-bezier(.2, .8, .2, 1);
  --wp-flip-time: .46s;
  /* saucer.css hooks, re-proportioned for the web hero */
  --hero-w: clamp(250px, 23vw, 340px);
  --hero-h: calc(var(--hero-w) / 1.211);
  --beam-width: calc(var(--hero-w) * .92);
  --beam-height: 64px;
  --anchor-x: 50%;
  background: var(--wp-bg);
  color: var(--wp-ink);
  font: 15px/1.45 var(--wp-text);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
@supports (animation-timing-function: linear(0, 1)) {
  body[data-host=web][data-ui=projector] {
    --wp-settle: linear(0, .057 6%, .185 12%, .333 19%, .476 25%, .607 31%, .713 38%, .799 44%, .862 50%, .91 56%, .944 62%, .967 69%, .982 75%, .992 81%, .998 88%, 1.001 94%, 1);
  }
}

/* Shared material resets: no inherited gradient fills or stitched (dashed) outlines on the web plate. */
body[data-host=web][data-ui=projector] #studio :is(.icon, .facet, .tile, .chip, .light-option, .media-mode, .agent-picker, .searchbox, #clear, #reset-empty, .copy-skill, .frame-card, .web-frame) {
  background-image: none;
}
body[data-host=web][data-ui=projector] #studio :is(.icon, .facet, .tile, .searchbox, .copy-skill, .media-mode)::after {
  content: none;
}
body[data-host=web][data-ui=projector] #studio :focus-visible {
  outline: 2px solid var(--wp-signal);
  outline-offset: 3px;
}

/* ───────────────────────── frame & grid ───────────────────────── */
body[data-host=web][data-ui=projector] #studio.web-glass {
  display: grid;
  position: relative;
  isolation: isolate;
  width: min(1480px, 100%);
  max-width: none;
  min-height: 100svh;
  margin: 0 auto;
  padding: 26px clamp(18px, 3vw, 48px) 44px;
  column-gap: var(--wp-gap);
  row-gap: 18px;
  align-items: start;
  perspective: 1900px;
  overflow-x: clip;
  grid-template-columns: 64px minmax(0, 1fr) clamp(360px, 33vw, 500px);
  grid-template-rows: auto auto 1fr;
  grid-template-areas:
    "rail home    idle"
    "rail home    panel"
    "rail samples panel";
}
body[data-host=web][data-ui=projector] #studio.web-glass > main { display: contents; }

/* One solid hairline guide between the editorial page and the instrument (no dashes). */
body[data-host=web][data-ui=projector][data-stage=menu] #studio.web-glass::before {
  content: "";
  grid-column: 3;
  grid-row: 1 / -1;
  justify-self: start;
  align-self: stretch;
  width: 1px;
  margin-left: calc(var(--wp-gap) / -2);
  background: var(--wp-line-soft);
  pointer-events: none;
}

/* Stages after the menu: the editorial page steps aside, the plate takes the room. */
body[data-host=web][data-ui=projector]:not([data-stage=menu]) #studio.web-glass {
  --hero-w: clamp(160px, 12vw, 200px);
  --anchor-x: clamp(120px, 14%, 220px);
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "rail idle"
    "rail panel";
}

/* ───────────────────────── rail (header.topbar) ───────────────────────── */
body[data-host=web][data-ui=projector] #studio .topbar {
  grid-area: rail;
  order: 0;
  align-self: start;
  position: sticky;
  top: 26px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: calc(100svh - 70px);
  min-height: 420px;
  padding: 14px 0;
  border: 1px solid var(--wp-line-soft);
  border-radius: 32px;
  background: var(--wp-graphite);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .14);
}
body[data-host=web][data-ui=projector][data-stage] #studio .topbar { display: flex; }
body[data-host=web][data-ui=projector] #studio .topbar::after { content: none; }
body[data-host=web][data-ui=projector] #studio .wordmark {
  display: block;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin: 6px 0 auto;
  font: 800 21px/1 var(--wp-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--wp-signal);
  text-shadow: none;
}
body[data-host=web][data-ui=projector] #studio .theme-switch {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body[data-host=web][data-ui=projector] #studio .theme-switch button {
  flex-direction: column;
  gap: 3px;
  min-width: 48px;
  min-height: 52px;
  padding: 6px 4px;
  border: 1px solid var(--wp-line-soft);
  border-radius: 16px;
  background-color: var(--wp-graphite-2);
  box-shadow: none;
  color: var(--wp-mute);
  font: 600 10px/1 var(--wp-text);
  letter-spacing: .02em;
}
body[data-host=web][data-ui=projector] #studio .theme-switch button::before { width: 24px; height: 22px; }
@media (hover: hover) {
  body[data-host=web][data-ui=projector] #studio .theme-switch button:hover { color: var(--wp-ink); border-color: var(--wp-line); }
}
body[data-host=web][data-ui=projector] #studio #tools {
  width: 44px;
  height: 44px;
  border: 1px solid var(--wp-line-soft);
  border-radius: 50%;
  background-color: var(--wp-graphite-2);
  background-size: 22px 22px;
}
body[data-host=web][data-ui=projector] #studio #tool-menu {
  top: auto;
  right: auto;
  bottom: 0;
  left: calc(100% + 12px);
  min-width: 190px;
  padding: 6px;
  border: 1px solid var(--wp-line);
  border-radius: 16px;
  background: var(--wp-graphite-2);
  color: var(--wp-ink);
  box-shadow: var(--wp-shadow);
}
body[data-host=web][data-ui=projector] #studio #tool-menu > * { border-radius: 10px; padding: 10px 12px; }
body[data-host=web][data-ui=projector] #studio #tool-menu > *:hover { background: var(--wp-glass-2); }

/* ───────────────────────── editorial home ───────────────────────── */
body[data-host=web][data-ui=projector] #studio .web-home {
  grid-area: home;
  position: relative;
  isolation: isolate;
  align-self: stretch;
  min-height: clamp(340px, 44vh, 520px);
  padding: clamp(18px, 4vh, 54px) 0 0;
}
body[data-host=web][data-ui=projector] #studio .web-home h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 9ch;
  font: 800 clamp(64px, 8.4vw, 148px)/.84 var(--wp-display);
  letter-spacing: -.035em;
  color: var(--wp-ink);
}
/* The heading sits directly on the canvas. Keep the optical material on controls. */
body[data-host=web][data-ui=projector] #studio .web-home::before,
body[data-host=web][data-ui=projector] #studio .web-home::after { content: none; }
body[data-host=web][data-ui=projector] #studio .web-count {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  margin: 26px 0 0 clamp(0px, 18%, 220px);
  padding: 12px 22px 12px 16px;
  background: var(--wp-signal);
  color: var(--wp-signal-ink);
  font: 700 clamp(15px, 1.25vw, 19px)/1 var(--wp-mono);
  letter-spacing: .02em;
  clip-path: none;
  font-variant-numeric: tabular-nums;
}

/* ───────────────────────── hero saucer ───────────────────────── */
body[data-host=web][data-ui=projector] #studio #idle {
  grid-area: idle;
  position: relative;
  isolation: isolate;
  width: 100%;
  height: calc(var(--hero-h) + 24px);
  margin: 0 0 -44px;
}
body[data-host=web][data-ui=projector] #studio #launch { top: 8px; }
/* Soft transmitted light is the only surface under the suspended projector. */
body[data-host=web][data-ui=projector] #studio #idle::before,
body[data-host=web][data-ui=projector] #studio #idle::after { content: none; }
body[data-host=web][data-ui=projector] #studio .saucer-beam { bottom: -34px; z-index: 1; filter: grayscale(1); opacity: .56; }

/* ───────────────────────── instrument plate (#browser / #detail) ───────────────────────── */
body[data-host=web][data-ui=projector] #studio :is(#browser, #detail) {
  grid-area: panel;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--wp-line);
  border-radius: var(--wp-r);
  background-color: var(--wp-glass);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  box-shadow: inset 1px 1px 0 var(--wp-lit), inset -1px -1px 0 var(--wp-dark-edge), var(--wp-shadow);
  transform-origin: 0 40%;
  backface-visibility: hidden;
}
/* The offset second sheet: a plane of the same glass sitting behind and below. */
body[data-host=web][data-ui=projector] #studio :is(#browser, #detail)::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 1px solid var(--wp-line-soft);
  border-radius: inherit;
  background-color: var(--wp-sheet);
  transform: translate(10px, 12px);
  pointer-events: none;
}
body[data-host=web][data-ui=projector]:not([data-stage=menu]) #studio :is(#browser, #detail) {
  width: min(100%, 1180px);
  padding: 22px clamp(18px, 2.2vw, 30px) 26px;
}

/* 3D flip between plates. Each stage has its own keyframe name so the flip replays on every change. */
body[data-host=web][data-ui=projector][data-stage=menu] #studio #browser { animation: wp-flip-menu var(--wp-flip-time) var(--wp-settle) both; }
body[data-host=web][data-ui=projector][data-stage=axis] #studio #browser { animation: wp-flip-axis var(--wp-flip-time) var(--wp-settle) both; }
body[data-host=web][data-ui=projector][data-stage=search] #studio #browser { animation: wp-flip-search var(--wp-flip-time) var(--wp-settle) both; }
body[data-host=web][data-ui=projector][data-stage=results] #studio #browser { animation: wp-flip-results var(--wp-flip-time) var(--wp-settle) both; }
body[data-host=web][data-ui=projector][data-stage=detail] #studio #detail { animation: wp-flip-detail var(--wp-flip-time) var(--wp-settle) both; }
body[data-host=web][data-ui=projector][data-transition=back][data-stage=menu] #studio #browser { animation-name: wp-unflip-menu; transform-origin: 100% 40%; }
body[data-host=web][data-ui=projector][data-transition=back][data-stage=axis] #studio #browser { animation-name: wp-unflip-axis; transform-origin: 100% 40%; }
body[data-host=web][data-ui=projector][data-transition=back][data-stage=search] #studio #browser { animation-name: wp-unflip-search; transform-origin: 100% 40%; }
body[data-host=web][data-ui=projector][data-transition=back][data-stage=results] #studio #browser { animation-name: wp-unflip-results; transform-origin: 100% 40%; }
@keyframes wp-flip-menu    { 0% { transform: rotateY(-16deg); } 100% { transform: none; } }
@keyframes wp-flip-axis    { 0% { opacity: .35; transform: rotateY(-74deg) translateZ(-60px); } 45% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes wp-flip-search  { 0% { opacity: .35; transform: rotateY(-74deg) translateZ(-60px); } 45% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes wp-flip-results { 0% { opacity: .35; transform: rotateY(-74deg) translateZ(-60px); } 45% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes wp-flip-detail  { 0% { opacity: .35; transform: rotateY(-74deg) translateZ(-60px); } 45% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes wp-unflip-menu    { 0% { transform: rotateY(16deg); } 100% { transform: none; } }
@keyframes wp-unflip-axis    { 0% { opacity: .35; transform: rotateY(74deg) translateZ(-60px); } 45% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes wp-unflip-search  { 0% { opacity: .35; transform: rotateY(74deg) translateZ(-60px); } 45% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes wp-unflip-results { 0% { opacity: .35; transform: rotateY(74deg) translateZ(-60px); } 45% { opacity: 1; } 100% { opacity: 1; transform: none; } }
/* The plate flip replaces the shared push-zoom on the plate's children. */
body[data-host=web][data-ui=projector] #studio :is(.tray, .instrument-top, .result-top, .facets) { animation: none; }

/* ───────────────────────── five actions (menu) ───────────────────────── */
body[data-host=web][data-ui=projector] #studio .facets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: minmax(132px, 19vh) minmax(132px, 19vh) 76px;
  grid-template-areas:
    "director director location location"
    "director director color    light"
    "search   search   search   search";
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body[data-host=web][data-ui=projector] #studio .facets .facet {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: stretch;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  padding: 16px 14px 14px;
  border: 1px solid var(--wp-line);
  border-radius: var(--wp-r-sm);
  background-color: var(--wp-glass);
  box-shadow: inset 1px 1px 0 var(--wp-lit), inset -1px -1px 0 var(--wp-dark-edge);
  color: var(--wp-ink);
  text-align: left;
  transition: transform .22s var(--wp-settle), background-color .18s ease, border-color .18s ease;
}
body[data-host=web][data-ui=projector] #studio .facets .facet[data-axis=director] { grid-area: director; }
body[data-host=web][data-ui=projector] #studio .facets .facet[data-axis=location] { grid-area: location; }
body[data-host=web][data-ui=projector] #studio .facets .facet[data-axis=color] { grid-area: color; }
body[data-host=web][data-ui=projector] #studio .facets .facet[data-axis=light] { grid-area: light; }
body[data-host=web][data-ui=projector] #studio .facets .facet[data-axis=search] { grid-area: search; }
body[data-host=web][data-ui=projector] #studio .facets .facet :is(canvas, img) {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  border-radius: 0;
  transition: transform .26s var(--wp-settle);
}
body[data-host=web][data-ui=projector] #studio .facets .facet span {
  font: 700 clamp(15px, 1.2vw, 19px)/1.1 var(--wp-display);
  letter-spacing: .005em;
  color: var(--wp-ink);
}
body[data-host=web][data-ui=projector] #studio .facets .facet[data-axis=director] span { font-size: clamp(22px, 2vw, 30px); }
body[data-host=web][data-ui=projector] #studio .facets .facet[data-axis=director] { padding: 20px 18px 18px; }
/* A small neutral registration dot indicates an active filter. */
body[data-host=web][data-ui=projector] #studio .facet.has-selection span::after { content: none; }
body[data-host=web][data-ui=projector] #studio .facets .facet.has-selection::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  border: 0;
  background: var(--wp-signal);
  clip-path: none;
}
/* Search: the forward slab. Solid signal field with an arrow-cut end. */
body[data-host=web][data-ui=projector] #studio .facets .facet[data-axis=search] {
  grid-template-rows: none;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 0 54px 0 18px;
  border: 0;
  border-radius: var(--wp-r-sm);
  background-color: var(--wp-signal);
  box-shadow: none;
  color: var(--wp-signal-ink);
  clip-path: none;
}
body[data-host=web][data-ui=projector] #studio .facets .facet[data-axis=search] img { width: 44px; height: 44px; }
body[data-host=web][data-ui=projector] #studio .facets .facet[data-axis=search] span {
  color: var(--wp-signal-ink);
  font-size: clamp(20px, 1.7vw, 26px);
}
@media (hover: hover) {
  body[data-host=web][data-ui=projector] #studio .facets .facet:not([data-axis=search]):hover {
    background-color: var(--wp-glass-2);
    border-color: var(--wp-lit);
    transform: translate(-3px, -3px);
    color: var(--wp-ink);
  }
  body[data-host=web][data-ui=projector] #studio .facets .facet:hover :is(canvas, img) { transform: scale(1.05); }
  body[data-host=web][data-ui=projector] #studio .facets .facet[data-axis=search]:hover { transform: translateX(4px); background-color: var(--wp-signal); }
}
body[data-host=web][data-ui=projector] #studio .facets .facet:active { transform: scale(.97); }
body[data-host=web][data-ui=projector] #studio .facets .facet[aria-expanded=true] { border-color: var(--wp-signal); }
/* Arrival: the five pieces settle one after another on the fan spring. */
body[data-host=web][data-ui=projector][data-stage=menu] #studio .facets .facet {
  animation: wp-rise .347s var(--fan-ease, var(--wp-settle)) var(--wp-delay, 90ms) both;
}
body[data-host=web][data-ui=projector][data-stage=menu] #studio .facets .facet[data-axis=director] { --wp-delay: 90ms; }
body[data-host=web][data-ui=projector][data-stage=menu] #studio .facets .facet[data-axis=location] { --wp-delay: 125ms; }
body[data-host=web][data-ui=projector][data-stage=menu] #studio .facets .facet[data-axis=color] { --wp-delay: 160ms; }
body[data-host=web][data-ui=projector][data-stage=menu] #studio .facets .facet[data-axis=light] { --wp-delay: 195ms; }
body[data-host=web][data-ui=projector][data-stage=menu] #studio .facets .facet[data-axis=search] { --wp-delay: 230ms; }
body[data-host=web][data-ui=projector][data-stage=menu] #studio .facets .facet span { animation: none; }
@keyframes wp-rise { from { transform: translateY(12px) scale(.97); } to { transform: none; } }

/* ───────────────────────── plate header (axis, search, results) ───────────────────────── */
body[data-host=web][data-ui=projector] #studio .saucer-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 0;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid var(--wp-line-soft);
  border-radius: 0;
  background: transparent;
  text-shadow: none;
}
body[data-host=web][data-ui=projector] #studio .saucer-heading {
  gap: 12px;
  font: 800 clamp(28px, 3vw, 44px)/1 var(--wp-display);
  letter-spacing: -.02em;
  color: var(--wp-ink);
}
body[data-host=web][data-ui=projector] #studio .saucer-emblem { width: 52px; height: 52px; }
body[data-host=web][data-ui=projector] #studio :is(.saucer-back, .saucer-pages button, .saucer-axis-pages button, #back) {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  min-width: 46px;
  padding: 0;
  border: 1px solid var(--wp-line);
  border-radius: 50%;
  background-color: var(--wp-glass);
  box-shadow: inset 1px 1px 0 var(--wp-lit);
  color: var(--wp-ink);
  font: 600 18px/1 var(--wp-text);
}
body[data-host=web][data-ui=projector] #studio #back { background-size: 22px 22px; background-position: center; background-repeat: no-repeat; }
@media (hover: hover) {
  body[data-host=web][data-ui=projector] #studio :is(.saucer-back, .saucer-pages button, .saucer-axis-pages button, #back):not(:disabled):hover { background-color: var(--wp-glass-3); }
}
/* Forward action: solid signal slab with an arrow-cut end (the same cut as Search and Copy skill). */
body[data-host=web][data-ui=projector] #studio .saucer-next {
  min-height: 48px;
  padding: 0 40px 0 20px;
  border: 0;
  border-radius: 12px;
  background-color: var(--wp-signal);
  color: var(--wp-signal-ink);
  font: 800 15px/1 var(--wp-display);
  letter-spacing: .02em;
  clip-path: none;
}
body[data-host=web][data-ui=projector] #studio .saucer-next span { display: none; }

/* ───────────────────────── choice tray ───────────────────────── */
body[data-host=web][data-ui=projector] #studio .tray {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body[data-host=web][data-ui=projector] #studio .tray .tile {
  display: grid;
  grid-template-rows: auto auto;
  gap: 10px;
  width: auto;
  padding: 12px 12px 14px;
  border: 1px solid var(--wp-line-soft);
  border-radius: var(--wp-r-sm);
  background-color: var(--wp-sheet);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .3);
  text-align: left;
  transition: transform .2s var(--wp-settle), background-color .16s ease, border-color .16s ease;
}
body[data-host=web][data-ui=projector] #studio .tray .tile canvas { width: 100%; height: clamp(92px, 11vw, 132px); }
body[data-host=web][data-ui=projector] #studio .tray .tile span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--wp-ink);
  font: 650 14px/1.2 var(--wp-text);
}
@media (hover: hover) {
  body[data-host=web][data-ui=projector] #studio .tray .tile:hover { background-color: var(--wp-glass-2); border-color: var(--wp-line); transform: translateY(-2px); }
}
body[data-host=web][data-ui=projector] #studio .tray .tile[aria-pressed=true] {
  border-color: var(--wp-signal);
  background-color: var(--wp-glass-2);
  box-shadow: inset 0 0 0 1px var(--wp-signal);
}
/* Light: orb instrument on the left, controls on the right, more sources below. */
body[data-host=web][data-ui=projector] #studio .tray.choices-light { display: flex; flex-direction: column; gap: 16px; }
body[data-host=web][data-ui=projector] #studio .orb-controls { display: flex; align-items: center; gap: 22px; }
body[data-host=web][data-ui=projector] #studio .orb-demo { width: 132px; height: 132px; flex: none; }
body[data-host=web][data-ui=projector] #studio .light-groups { gap: 10px; }
body[data-host=web][data-ui=projector] #studio .light-row { gap: 8px; }
body[data-host=web][data-ui=projector] #studio .light-option {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--wp-line);
  border-radius: 999px;
  background-color: var(--wp-sheet);
  box-shadow: none;
  color: var(--wp-ink);
  font: 600 13px/1 var(--wp-text);
}
body[data-host=web][data-ui=projector] #studio .light-option[aria-pressed=true] { background-color: var(--wp-signal); border-color: var(--wp-signal); color: var(--wp-signal-ink); }
/* Data colour stays exact: the dot shows only its own swatch; the selection ring is neutral. */
body[data-host=web][data-ui=projector] #studio .hue-dot { width: 30px; height: 30px; min-width: 30px; padding: 4px; }
body[data-host=web][data-ui=projector] #studio .hue-dot[aria-pressed=true] { border-color: var(--wp-ink); }
body[data-host=web][data-ui=projector] #studio .more-lights { gap: 10px; padding: 2px 2px 6px; }
body[data-host=web][data-ui=projector] #studio .more-lights .tile { width: 132px; }

/* ───────────────────────── search ───────────────────────── */
body[data-host=web][data-ui=projector] #studio .instrument-top { width: 100%; }
body[data-host=web][data-ui=projector] #studio .searchbox {
  height: 68px;
  padding: 0 22px 0 16px;
  gap: 14px;
  border: 1px solid var(--wp-line);
  border-radius: 18px;
  background-color: var(--wp-graphite);
  box-shadow: inset 1px 1px 0 var(--wp-lit);
}
body[data-host=web][data-ui=projector] #studio .searchbox:focus-within { outline: 2px solid var(--wp-signal); outline-offset: 3px; border-color: var(--wp-signal); border-radius: 18px; }
/* The ring belongs to the rounded field, not the bare input inside it. */
body[data-host=web][data-ui=projector] #studio .searchbox #query:is(:focus, :focus-visible) { outline: none; box-shadow: none; }
body[data-host=web][data-ui=projector] #studio .searchbox .search-art { width: 38px; height: 38px; }
body[data-host=web][data-ui=projector] #studio .searchbox #query {
  color: var(--wp-ink);
  font: 600 clamp(19px, 1.7vw, 24px)/1.2 var(--wp-text);
  letter-spacing: -.01em;
}
body[data-host=web][data-ui=projector] #studio .searchbox #query::placeholder { color: var(--wp-mute); }

/* ───────────────────────── chips, counts, pages ───────────────────────── */
body[data-host=web][data-ui=projector] #studio .filter-chips { gap: 8px; padding: 0; }
body[data-host=web][data-ui=projector] #studio .chip {
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid var(--wp-line);
  border-radius: 999px;
  background-color: var(--wp-graphite);
  box-shadow: none;
  color: var(--wp-ink);
  font: 600 13px/1 var(--wp-text);
}
body[data-host=web][data-ui=projector] #studio .result-top { display: flex; align-items: center; justify-content: space-between; min-height: 36px; padding: 0; }
body[data-host=web][data-ui=projector] #studio :is(#result-count, .saucer-pagination) {
  font: 600 12px/1.2 var(--wp-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--wp-mute);
  text-shadow: none;
}
body[data-host=web][data-ui=projector] #studio :is(#clear, #reset-empty) {
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid var(--wp-line);
  border-radius: 999px;
  background-color: transparent;
  box-shadow: none;
  color: var(--wp-ink);
  font: 600 13px/1 var(--wp-text);
}
body[data-host=web][data-ui=projector] #studio :is(.saucer-pages, .saucer-axis-pages) { justify-content: flex-start; gap: 14px; padding: 4px 0 0; }
body[data-host=web][data-ui=projector] #studio :is(.saucer-pages, .saucer-axis-pages) button:disabled { opacity: .32; }
body[data-host=web][data-ui=projector] #studio #empty {
  padding: 28px;
  border: 1px solid var(--wp-line-soft);
  border-radius: var(--wp-r-sm);
  background: var(--wp-graphite);
  text-align: left;
}
body[data-host=web][data-ui=projector] #studio #empty p { margin: 0 0 14px; font: 800 24px/1.1 var(--wp-display); color: var(--wp-ink); }

/* ───────────────────────── matching frames (real stills, own aspect) ───────────────────────── */
body[data-host=web][data-ui=projector] #studio #results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
  max-height: none;
  overflow: visible;
  padding: 4px 0 8px;
}
body[data-host=web][data-ui=projector] #studio #results .frame-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px;
  border: 1px solid var(--wp-line-soft);
  border-radius: 12px;
  background-color: var(--wp-graphite);
  box-shadow: 0 18px 30px -20px rgba(0, 0, 0, .9);
  text-align: left;
  transition: transform .2s var(--wp-settle), border-color .16s ease;
}
body[data-host=web][data-ui=projector] #studio #results .frame-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 4px;
  background: #000;
}
body[data-host=web][data-ui=projector] #studio .frame-name {
  padding: 10px 4px 4px;
  color: var(--wp-ink);
  font: 650 14px/1.25 var(--wp-text);
}
@media (hover: hover) {
  body[data-host=web][data-ui=projector] #studio #results .frame-card:hover { border-color: var(--wp-signal); transform: translateY(-3px); }
}

/* ───────────────────────── detail: screen + side column ───────────────────────── */
body[data-host=web][data-ui=projector] #studio #detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(240px, 24vw, 320px);
  grid-template-areas:
    "nav    nav"
    "screen rail"
    "screen handoff";
  grid-template-rows: auto auto 1fr;
  gap: 18px 22px;
}
body[data-host=web][data-ui=projector] #studio .detail-nav { grid-area: nav; gap: 16px; text-shadow: none; }
body[data-host=web][data-ui=projector] #studio #film-title {
  display: block;
  font: 600 12px/1.2 var(--wp-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--wp-mute);
}
body[data-host=web][data-ui=projector] #studio #style-title {
  margin: 4px 0 0;
  font: 800 clamp(30px, 3.4vw, 52px)/.98 var(--wp-display);
  letter-spacing: -.02em;
  color: var(--wp-ink);
}
body[data-host=web][data-ui=projector] #studio .screen {
  grid-area: screen;
  align-self: start;
  display: block;
  aspect-ratio: auto;
  min-height: 0;
  max-height: none;
  padding: 0;
  border-radius: 6px;
  background: var(--wp-glass);
  box-shadow: 0 0 0 1px var(--wp-line-soft), 0 30px 50px -28px #000;
  overflow: hidden;
}
body[data-host=web][data-ui=projector] #studio .screen :is(img, video) {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 0;
}
body[data-host=web][data-ui=projector] #studio .ref-rail {
  grid-area: rail;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: min(44vh, 380px);
  overflow-y: auto;
  scrollbar-width: thin;
  padding: 0;
}
body[data-host=web][data-ui=projector] #studio .ref-rail button {
  width: auto;
  aspect-ratio: auto;
  padding: 4px;
  border: 1px solid var(--wp-line-soft);
  border-radius: 8px;
  background-color: var(--wp-graphite);
}
body[data-host=web][data-ui=projector] #studio .ref-rail img { width: 100%; height: auto; border-radius: 3px; background: #000; }
body[data-host=web][data-ui=projector] #studio .ref-rail button[aria-pressed=true] { border-color: var(--wp-signal); box-shadow: inset 0 0 0 1px var(--wp-signal); }
body[data-host=web][data-ui=projector] #studio .ref-rail .ref-slot { background: var(--wp-signal); color: var(--wp-signal-ink); border-radius: 0; font-weight: 700; }
body[data-host=web][data-ui=projector] #studio .handoff {
  grid-area: handoff;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  align-self: end;
}
body[data-host=web][data-ui=projector] #studio .media-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--wp-line);
  border-radius: 14px;
  background-color: var(--wp-graphite);
  box-shadow: none;
}
body[data-host=web][data-ui=projector] #studio .media-mode button {
  justify-content: center;
  min-height: 42px;
  border-radius: 10px;
  background-color: transparent;
  color: var(--wp-mute);
  font: 650 13px/1 var(--wp-text);
}
body[data-host=web][data-ui=projector] #studio .media-mode button[aria-pressed=true] { background-color: var(--wp-glass-3); color: var(--wp-ink); box-shadow: inset 1px 1px 0 var(--wp-lit); }
body[data-host=web][data-ui=projector] #studio .agent-picker {
  border: 1px solid var(--wp-line);
  border-radius: 14px;
  background-color: var(--wp-graphite);
  box-shadow: none;
}
body[data-host=web][data-ui=projector] #studio .agent-picker select { width: 100%; height: 46px; padding: 0 14px; color: var(--wp-ink); background: transparent; font: 600 14px/1 var(--wp-text); }
body[data-host=web][data-ui=projector] #studio .copy-skill {
  justify-content: flex-start;
  flex: none;
  height: 56px;
  margin: 0;
  padding: 0 44px 0 18px;
  border: 0;
  border-radius: 12px;
  background-color: var(--wp-signal);
  box-shadow: none;
  color: var(--wp-signal-ink);
  font: 800 17px/1 var(--wp-display);
  letter-spacing: .02em;
  clip-path: none;
}
body[data-host=web][data-ui=projector] #studio .copy-skill:disabled { opacity: .5; }

/* ───────────────────────── reference frames (menu) ───────────────────────── */
body[data-host=web][data-ui=projector] #studio .web-samples {
  grid-area: samples;
  display: grid;
  gap: 14px;
  min-width: 0;
  padding-top: 8px;
}
body[data-host=web][data-ui=projector] #studio .web-samples h2 {
  justify-self: start;
  margin: 0;
  padding: 8px 14px;
  background: var(--wp-paper);
  color: #111111;
  font: 700 12px/1 var(--wp-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
body[data-host=web][data-ui=projector] #studio .web-frames {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: start;
  gap: 14px 16px;
}
body[data-host=web][data-ui=projector] #studio .web-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "img" "name" "film";
  gap: 4px;
  min-width: 0;
  padding: 8px 8px 10px;
  border: 1px solid var(--wp-line-soft);
  border-radius: 10px;
  background-color: var(--wp-graphite);
  color: var(--wp-ink);
  text-align: left;
  transition: transform .22s var(--wp-settle), border-color .16s ease;
}
body[data-host=web][data-ui=projector] #studio .web-frame:first-child { grid-row: 1 / span 2; }
body[data-host=web][data-ui=projector] #studio .web-frame:nth-child(3) { margin-left: 12%; }
body[data-host=web][data-ui=projector] #studio .web-frame img {
  grid-area: img;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  background: #000;
}
body[data-host=web][data-ui=projector] #studio .web-frame strong {
  grid-area: name;
  margin-top: 6px;
  min-width: 0;
  overflow-wrap: anywhere;
  font: 700 15px/1.2 var(--wp-display);
  letter-spacing: .01em;
}
body[data-host=web][data-ui=projector] #studio .web-frame small {
  grid-area: film;
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  font: 600 11px/1.3 var(--wp-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--wp-mute);
}
@media (hover: hover) {
  body[data-host=web][data-ui=projector] #studio .web-frame:hover { border-color: var(--wp-signal); transform: translateY(-3px); }
}

/* ───────────────────────── toast ───────────────────────── */
body[data-host=web][data-ui=projector] #status {
  border: 1px solid var(--wp-line);
  border-radius: 999px;
  background: var(--wp-graphite-2);
  color: var(--wp-ink);
  font: 600 13px/1.3 var(--wp-text);
}

/* ───────────────────────── tablet: rail becomes a top bar ───────────────────────── */
@media (max-width: 1099px) {
  body[data-host=web][data-ui=projector] #studio.web-glass {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 44%);
    grid-template-rows: auto auto auto 1fr;
    grid-template-areas:
      "rail    rail"
      "home    idle"
      "home    panel"
      "samples panel";
  }
  body[data-host=web][data-ui=projector]:not([data-stage=menu]) #studio.web-glass {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "rail" "idle" "panel";
  }
  body[data-host=web][data-ui=projector][data-stage=menu] #studio.web-glass::before { grid-row: 2 / -1; grid-column: 2; }
  body[data-host=web][data-ui=projector] #studio .topbar {
    position: relative;
    top: auto;
    flex-direction: row;
    height: auto;
    min-height: 0;
    padding: 8px 8px 8px 18px;
    border-radius: 999px;
  }
  body[data-host=web][data-ui=projector] #studio .wordmark { writing-mode: horizontal-tb; transform: none; margin: 0 auto 0 0; font-size: 20px; }
  body[data-host=web][data-ui=projector] #studio .theme-switch button { flex-direction: row; min-height: 44px; padding: 4px 12px; font-size: 12px; }
  body[data-host=web][data-ui=projector] #studio #tool-menu { left: auto; right: 0; bottom: auto; top: calc(100% + 10px); }
  body[data-host=web][data-ui=projector] #studio .web-home h1 { font-size: clamp(56px, 9vw, 96px); }
  body[data-host=web][data-ui=projector] #studio .web-home { min-height: clamp(280px, 30vh, 380px); }
  body[data-host=web][data-ui=projector] #studio .web-home::before { top: 34%; height: 38%; }
  body[data-host=web][data-ui=projector] #studio .web-home::after { top: 50%; height: 32%; }
  body[data-host=web][data-ui=projector] #studio .web-frames { grid-template-columns: minmax(0, 1fr); }
  body[data-host=web][data-ui=projector] #studio .web-frame:first-child { grid-row: auto; }
  body[data-host=web][data-ui=projector] #studio .web-frame:nth-child(3) { margin-left: 0; }
  body[data-host=web][data-ui=projector] #studio #results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-host=web][data-ui=projector] #studio #detail { grid-template-columns: minmax(0, 1fr); grid-template-areas: "nav" "screen" "rail" "handoff"; grid-template-rows: none; }
  body[data-host=web][data-ui=projector] #studio .ref-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body[data-host=web][data-ui=projector] #studio .handoff { flex-direction: row; flex-wrap: wrap; align-items: center; }
  body[data-host=web][data-ui=projector] #studio .copy-skill { margin-left: auto; }
}

/* ───────────────────────── phone / narrow: one column, thumb-first ───────────────────────── */
@media (max-width: 759px) {
  body[data-host=web][data-ui=projector] {
    --hero-w: min(42vw, 176px);
    --wp-gap: 12px;
  }
  body[data-host=web][data-ui=projector] #studio.web-glass,
  body[data-host=web][data-ui=projector]:not([data-stage=menu]) #studio.web-glass {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "rail" "home" "idle" "panel" "samples";
    row-gap: 12px;
    padding: 10px 16px 28px;
  }
  body[data-host=web][data-ui=projector]:not([data-stage=menu]) #studio.web-glass { --hero-w: min(44vw, 170px); --anchor-x: 50%; }
  body[data-host=web][data-ui=projector][data-stage=menu] #studio.web-glass::before { content: none; }
  body[data-host=web][data-ui=projector] #studio .topbar { padding: 4px 4px 4px 16px; }
  body[data-host=web][data-ui=projector] #studio .theme-switch button { padding: 4px 10px; }
  body[data-host=web][data-ui=projector] #studio .web-home { min-height: 0; padding: 8px 0 0; }
  body[data-host=web][data-ui=projector] #studio .web-home h1 { font-size: clamp(42px, 12.5vw, 64px); }
  body[data-host=web][data-ui=projector] #studio .web-home::before { left: 50%; top: 42%; width: 50%; height: 40%; }
  body[data-host=web][data-ui=projector] #studio .web-home::after { left: 64%; top: 56%; width: 36%; height: 38%; }
  body[data-host=web][data-ui=projector] #studio .web-count { margin: 10px 0 0 38%; padding: 9px 18px 9px 13px; font-size: 14px; }
  body[data-host=web][data-ui=projector] #studio #idle { margin-bottom: -34px; }
  body[data-host=web][data-ui=projector] #studio :is(#browser, #detail) { padding: 10px; gap: 12px; }
  body[data-host=web][data-ui=projector] #studio :is(#browser, #detail)::before { transform: translate(6px, 8px); }
  body[data-host=web][data-ui=projector] #studio .facets {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-rows: repeat(3, minmax(74px, 10.5svh)) 58px;
    grid-template-areas:
      "director location"
      "director color"
      "director light"
      "search   search";
    gap: 8px;
  }
  body[data-host=web][data-ui=projector] #studio .facets .facet:not([data-axis=director]):not([data-axis=search]) {
    grid-template-rows: none;
    grid-template-columns: 50px minmax(0, 1fr);
    align-items: center;
    padding: 8px 10px;
  }
  body[data-host=web][data-ui=projector] #studio .facets .facet[data-axis=director] { padding: 12px 12px 12px; }
  body[data-host=web][data-ui=projector] #studio .tray { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body[data-host=web][data-ui=projector] #studio .tray .tile canvas { height: 88px; }
  body[data-host=web][data-ui=projector] #studio .orb-controls { align-items: flex-start; gap: 14px; }
  body[data-host=web][data-ui=projector] #studio .orb-demo { width: 96px; height: 96px; }
  body[data-host=web][data-ui=projector] #studio .saucer-nav { flex-wrap: wrap; gap: 10px; }
  body[data-host=web][data-ui=projector] #studio .saucer-heading { font-size: 28px; }
  body[data-host=web][data-ui=projector] #studio .saucer-emblem { width: 40px; height: 40px; }
  body[data-host=web][data-ui=projector] #studio .saucer-next { width: 100%; justify-content: flex-start; }
  body[data-host=web][data-ui=projector] #studio .searchbox { height: 58px; }
  body[data-host=web][data-ui=projector] #studio #results { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  body[data-host=web][data-ui=projector] #studio .ref-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  body[data-host=web][data-ui=projector] #studio .handoff { flex-direction: column; align-items: stretch; }
  body[data-host=web][data-ui=projector] #studio .copy-skill { margin-left: 0; }
  /* Reference frames become a swipeable filmstrip. */
  body[data-host=web][data-ui=projector] #studio .web-frames {
    display: flex;
    gap: 12px;
    margin: 0 -16px;
    padding: 0 16px 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  body[data-host=web][data-ui=projector] #studio .web-frame { flex: 0 0 78%; scroll-snap-align: start; }
}

/* ───────────────────────── touch: larger targets, no hover choreography ───────────────────────── */
@media (pointer: coarse) {
  body[data-host=web][data-ui=projector] #studio :is(.chip, #clear, #reset-empty, .light-option) { min-height: 44px; padding-inline: 16px; }
  body[data-host=web][data-ui=projector] #studio :is(.saucer-back, .saucer-pages button, .saucer-axis-pages button, #back, #tools) { width: 48px; height: 48px; }
  body[data-host=web][data-ui=projector] #studio .hue-dot { width: 40px; height: 40px; min-width: 40px; padding: 6px; }
  body[data-host=web][data-ui=projector] #studio .theme-switch button { min-height: 48px; }
  body[data-host=web][data-ui=projector] #studio :is(.ref-rail button, .clip-toggle, .media-mode button) { min-height: 48px; }
  body[data-host=web][data-ui=projector] #studio .ref-rail button { display: grid; place-items: center; }
  body[data-host=web][data-ui=projector] #studio .facets .facet:active,
  body[data-host=web][data-ui=projector] #studio .tray .tile:active,
  body[data-host=web][data-ui=projector] #studio .web-frame:active { transform: scale(.97); }
}

/* ───────────────────────── reduced motion ─────────────────────────
   One rule: every flip, rise and lift becomes a 120 ms opacity fade at the final position; nothing travels. */
@media (prefers-reduced-motion: reduce) {
  body[data-host=web][data-ui=projector] #studio :is(#browser, #detail, .facets .facet) {
    animation: wp-fade .12s ease-out both !important;
    transform: none !important;
  }
  body[data-host=web][data-ui=projector] #studio :is(.facet, .tile, .frame-card, .web-frame, .theme-switch button):is(:hover, :active) { transform: none !important; }
  body[data-host=web][data-ui=projector] #studio .facets .facet:hover :is(canvas, img) { transform: none !important; }
}
@keyframes wp-fade { from { opacity: 0; } to { opacity: 1; } }

/* ───────────────────────── forced colours ───────────────────────── */
@media (forced-colors: active) {
  body[data-host=web][data-ui=projector] #studio :is(#browser, #detail, .facet, .tile, .frame-card, .web-frame, .topbar, .searchbox, .chip) { border-color: CanvasText; }
  body[data-host=web][data-ui=projector] #studio .web-home::before,
  body[data-host=web][data-ui=projector] #studio .web-home::after,
  body[data-host=web][data-ui=projector] #studio #idle::before,
  body[data-host=web][data-ui=projector] #studio #idle::after { display: none; }
  body[data-host=web][data-ui=projector] #studio :focus-visible { outline-color: Highlight; }
}


/* Match the neutral glass face on the primary navigation controls. */
body[data-host=web][data-ui=projector] #studio .facets .facet[data-axis=search],
body[data-host=web][data-ui=projector] #studio .facets .facet[data-axis=search]:hover,
body[data-host=web][data-ui=projector] #studio .saucer-next,
body[data-host=web][data-ui=projector] #studio .copy-skill,
body[data-host=web][data-ui=projector] #studio .web-count {
  color: var(--wp-ink); background-color: var(--wp-glass-2); border-radius: var(--wp-r-sm);
  border: 1px solid var(--wp-line); box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
body[data-host=web][data-ui=projector] #studio .facets .facet[data-axis=search] span { color: inherit; }
body[data-host=web][data-ui=projector] #studio .saucer-next span { display: inline; }
body[data-host=web][data-ui=projector][data-stage=menu] #studio .facets :is(canvas,img),
body[data-host=web][data-ui=projector] #studio .saucer-emblem,
body[data-host=web][data-ui=projector] #studio .search-art { filter: grayscale(1); }
