/* themes/gallery.css — surface styling for the "gallery" kiosk theme.
   ---------------------------------------------------------------------------
   Theme TOKENS (colours, fonts, radii) are painted on :root by
   applyKioskTheme() from src/lib/kiosk/themes.ts; this file only holds the
   theme-specific SURFACE treatment (cards, dock, captions, ground texture)
   that tokens alone can't express. The presence motif lives in
   src/lib/components/motifs/.

   RULE: every selector here is scoped under :root[data-kuyil-theme="gallery"]
   so the five theme sheets can all be linked at once without leaking.
   THE ONE LAW: no content: strings with words — styling only.
   STALE-CACHE: plain <link> from app.html, not fingerprinted (see app.html).

   GALLERY — Swiss / International style on gallery white (designs E01–E10):
   flat ground, no grain, no glow, no blur. Ink hairlines and a header rule
   with grid ticks carry the structure; captions are bold and flush-left
   (Schibsted Grotesk via --kuyil-font-display); the tenant accent appears
   only as LARGE FLAT FIELDS (the live band, the listening seam, tokens).
   Controls are square-ish (--kuyil-radius-control 8 / card 4).

   Specificity note: Svelte-scoped component rules weigh (0,2,0)–(0,5,0) and
   are injected AFTER this sheet, so overrides of component internals that a
   component re-states per state use the `:not(#_)` id-weight hook (the root
   never has id "_" — it always matches) instead of !important.

   Indic safety: every element that can carry visitor/tenant text keeps
   line-height ≥ 1.3, letter-spacing ≥ 0 and text-transform: none here.
   Uppercase / negative tracking appear only on Latin-only numerals. */

/* =====================================================================
   1. Ground + shared scale
   ===================================================================== */
:root[data-kuyil-theme="gallery"] {
  /* Square-ish geometry everywhere the shared radius scale is used. */
  --radius-sm: 4px;
  --radius-md: 4px;
  --radius-lg: var(--kuyil-radius-card, 4px);
  --radius-xl: var(--kuyil-radius-card, 4px);
  --radius-pill: var(--kuyil-radius-control, 8px);
  /* Gallery-local knobs. */
  --gal-ink: var(--kuyil-text);
  --gal-rule: 2px;
  --gal-rule-heavy: 6px;
  --gal-gutter: var(--space-5);
  /* Kiosk touch floor: 88px at 1080-class screens, never under 44px. */
  --gal-step: clamp(2.75rem, 8.2vmin, 5.5rem);
  --gal-mic: clamp(5.5rem, 13vmin, 9rem);
  /* No soft drop shadows on this ground — everything is flat. */
  --kuyil-shadow: transparent;
}

/* Flat gallery wall: plain ground, no texture, no tenant photo wash. */
:root[data-kuyil-theme="gallery"] body {
  background: var(--kuyil-bg);
  color: var(--kuyil-text);
  font-family: var(--kuyil-font-ui);
}

/* Ambient drifting words are decoration that fights the grid — hide. */
:root[data-kuyil-theme="gallery"] .floating-words {
  display: none;
}

:root[data-kuyil-theme="gallery"] :focus-visible {
  outline: 3px solid var(--gal-ink);
  outline-offset: 3px;
}

/* =====================================================================
   2. Top bar — brand plaque, header rule + grid ticks, language chip
   ===================================================================== */
/* The brand row spans the measure and carries the 2px ink rule with six
   column ticks hanging from it (E01–E10 header). */
:root[data-kuyil-theme="gallery"] .fnb-brand,
:root[data-kuyil-theme="gallery"] .duet-brand {
  position: relative;
  justify-self: stretch;
  align-self: stretch;
  display: flex;
  justify-content: flex-start;
  padding-bottom: var(--space-4);
  border-bottom: var(--gal-rule) solid var(--gal-ink);
  margin-bottom: 14px; /* room for the hanging ticks */
}
:root[data-kuyil-theme="gallery"] .fnb-brand::after,
:root[data-kuyil-theme="gallery"] .duet-brand::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 100%;
  height: 14px;
  pointer-events: none;
  background:
    linear-gradient(var(--gal-ink), var(--gal-ink)) right top / var(--gal-rule) 100% no-repeat,
    repeating-linear-gradient(
      to right,
      var(--gal-ink) 0 var(--gal-rule),
      transparent var(--gal-rule) calc((100% - var(--gal-rule)) / 6)
    );
}

:root[data-kuyil-theme="gallery"]:not(#_) .brand-lockup {
  align-items: flex-start;
  justify-self: start;
  text-align: start;
  gap: var(--space-1);
}
:root[data-kuyil-theme="gallery"]:not(#_) .brand-lockup--dim {
  opacity: 0.55;
}
:root[data-kuyil-theme="gallery"]:not(#_) .brand-lockup__logo {
  max-height: 3.25rem;
}
/* Brand name — bold plaque, flush-left. Tenant data: may be any script, so
   no uppercase and no tracking. */
:root[data-kuyil-theme="gallery"]:not(#_) .brand-lockup__name {
  font-family: var(--kuyil-font-display);
  font-size: clamp(1.375rem, 0.9rem + 2vmin, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-indent: 0;
  text-transform: none;
  color: var(--gal-ink);
}
:root[data-kuyil-theme="gallery"]:not(#_) .brand-lockup__tagline {
  font-size: clamp(0.875rem, 0.7rem + 0.8vmin, 1.125rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  color: var(--kuyil-ink-muted);
}

/* Identity line under the orb (tenant tagline) — quiet caption, no caps. */
:root[data-kuyil-theme="gallery"]:not(#_) .fnb-hero__identity,
:root[data-kuyil-theme="gallery"]:not(#_) .fnb-idline,
:root[data-kuyil-theme="gallery"]:not(#_) .duet-identity {
  font-size: clamp(0.875rem, 0.7rem + 0.8vmin, 1.125rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  color: var(--kuyil-ink-muted);
}

/* Language chip — a solid ink tab, square corners (E05 header). */
:root[data-kuyil-theme="gallery"] .lang-chip {
  border-radius: 0;
  border: 0;
  background: var(--gal-ink);
  padding: var(--space-2) var(--space-4);
  gap: var(--space-3);
}
:root[data-kuyil-theme="gallery"] .lang-chip__dot {
  border-radius: 0;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--kuyil-bg);
  animation: none;
}
:root[data-kuyil-theme="gallery"] .lang-chip__text {
  color: var(--kuyil-bg);
  font-size: clamp(0.875rem, 0.7rem + 0.8vmin, 1.25rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

/* =====================================================================
   3. Captions (chat.css caption mode) — bold, flush-left, hanging marks
   ===================================================================== */
:root[data-kuyil-theme="gallery"] .chat-panel--captions {
  background: none;
}
:root[data-kuyil-theme="gallery"] .chat-panel--captions .chat-line {
  justify-content: flex-start;
}
:root[data-kuyil-theme="gallery"] .chat-panel--captions .chat-bubble {
  text-align: start;
  text-wrap: pretty;
  text-shadow: none;
  /* Hanging indent: the speaker mark sits in the margin, text aligns. */
  padding-inline-start: 0.9em;
}
/* Speaker marks (E03/E05): square = visitor, accent circle = assistant.
   Wordless geometry only. */
:root[data-kuyil-theme="gallery"] .chat-panel--captions .chat-bubble::before {
  content: "";
  display: inline-block;
  width: 0.36em;
  height: 0.36em;
  margin-inline-start: -0.9em;
  margin-inline-end: 0.54em;
  vertical-align: 0.14em;
  background: var(--gal-ink);
}
:root[data-kuyil-theme="gallery"] .chat-panel--captions .chat-line.assistant .chat-bubble::before {
  border-radius: 50%;
  background: var(--kuyil-accent);
}

/* Visitor line: quiet ink-muted, no accent wash (chat.css's boxed-mode user
   tint otherwise leaks into captions at higher specificity). */
:root[data-kuyil-theme="gallery"] .chat-panel--captions .chat-line.user .chat-bubble {
  background: none;
  border: none;
  border-radius: 0;
  font-size: clamp(1rem, 0.8rem + 1.1vmin, 1.625rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--kuyil-ink-muted);
}
/* Assistant caption — the reading surface: large, bold, flush-left. */
:root[data-kuyil-theme="gallery"] .chat-panel--captions .chat-line.assistant .chat-bubble {
  font-family: var(--kuyil-font-display);
  font-size: clamp(1.5rem, 0.9rem + 3vmin, 3.5rem);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: 0;
  color: var(--gal-ink);
  text-shadow: none;
}
/* Landscape kiosks: the caption band is short, so one step down keeps the
   newest line whole inside the layout's height cap. */
@media (orientation: landscape) {
  :root[data-kuyil-theme="gallery"] .chat-panel--captions .chat-line.assistant .chat-bubble {
    font-size: clamp(1.25rem, 0.8rem + 2vmin, 2.25rem);
  }
}
/* Focus: the layout caps the caption column at 44ch of the PANEL's small
   ui size (~430px), which wraps the display caption to 2–3 words a line.
   Re-measure it to a reading width in rem. */
:root[data-kuyil-theme="gallery"]:not(#_) .fnb-focus .fnb-captions .chat-panel--captions {
  width: min(46rem, 100%);
}
/* Duet's caption column is half the screen — one step down. */
:root[data-kuyil-theme="gallery"] .duet-voice .chat-panel--captions .chat-line.assistant .chat-bubble {
  font-size: clamp(1.375rem, 0.9rem + 2.2vmin, 2.625rem);
}
/* Crema / cinema keep their one-step-down budget (menu / seat map share
   the column). */
:root[data-kuyil-theme="gallery"] .fnb-crema .chat-panel--captions .chat-line.assistant .chat-bubble,
:root[data-kuyil-theme="gallery"] .fnb-cinema .chat-panel--captions .chat-line.assistant .chat-bubble {
  font-size: clamp(1.25rem, 0.9rem + 1.6vmin, 2rem);
}

/* Live visitor ghost — upright (no faux-italic on Indic), square pulse. */
:root[data-kuyil-theme="gallery"] .chat-panel--captions .listening-placeholder-bubble {
  font-style: normal;
  color: var(--kuyil-ink-muted) !important; /* chat.css states it !important */
}
:root[data-kuyil-theme="gallery"] .listening-placeholder-bubble span::after {
  border-radius: 0;
  background: var(--kuyil-accent);
}

/* Ask-list — flush-left ruled questions with square accent markers. */
:root[data-kuyil-theme="gallery"] .chat-panel--captions .chat-asklist {
  width: auto;
  margin-inline: 0;
  padding-inline-start: 0;
  gap: 0;
  border-top: 1px solid var(--kuyil-line);
}
:root[data-kuyil-theme="gallery"] .chat-panel--captions .chat-asklist li {
  font-size: clamp(1.0625rem, 0.85rem + 1.2vmin, 1.625rem);
  font-weight: 500;
  line-height: 1.35;
  padding-block: 0.4em;
  border-bottom: 1px solid var(--kuyil-line);
  color: var(--gal-ink);
  text-shadow: none;
}
:root[data-kuyil-theme="gallery"] .fnb-crema .chat-panel--captions .chat-asklist li,
:root[data-kuyil-theme="gallery"] .fnb-cinema .chat-panel--captions .chat-asklist li {
  font-size: clamp(1rem, 0.8rem + 0.9vmin, 1.25rem);
}
:root[data-kuyil-theme="gallery"] .chat-asklist li::before {
  border-radius: 0;
  width: 0.36em;
  height: 0.36em;
  background: var(--kuyil-accent);
}

/* Boxed panel fallback (no live call site) — flat ruled sheet. */
:root[data-kuyil-theme="gallery"] .chat-panel:not(.chat-panel--captions) {
  background: var(--kuyil-bg);
  border: 0;
  border-top: var(--gal-rule) solid var(--gal-ink);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
:root[data-kuyil-theme="gallery"] .chat-panel:not(.chat-panel--captions) .chat-bubble {
  border-radius: var(--kuyil-radius-card);
  line-height: 1.4;
}

/* =====================================================================
   4. Greetings — WelcomeCard, layout greetings, default GreetingCard
   ===================================================================== */
/* E02 wake: the welcome is a big flush-left display block, not a centred
   floating glow. The float/drift on the stage is dropped (gallery is calm);
   the per-language swap stays so rotations still read. */
:root[data-kuyil-theme="gallery"]:not(#_) .welcome-card {
  align-self: stretch;
  width: 100%;
  text-align: start;
}
:root[data-kuyil-theme="gallery"]:not(#_) .welcome-card__stage {
  align-items: flex-start;
  animation: none;
}
:root[data-kuyil-theme="gallery"]:not(#_) .welcome-card__greeting {
  max-width: min(100%, 52rem);
  margin-inline: 0;
}
:root[data-kuyil-theme="gallery"]:not(#_) .welcome-card__sub {
  justify-content: flex-start;
}
:root[data-kuyil-theme="gallery"]:not(#_) .welcome-card__word {
  font-family: var(--kuyil-font-display);
  font-size: clamp(2rem, 0.8rem + 5vmin, 4.75rem);
  text-wrap: balance;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--gal-ink);
  text-shadow: none;
}
:root[data-kuyil-theme="gallery"]:not(#_) .welcome-card__invite {
  font-size: clamp(1rem, 0.8rem + 1vmin, 1.5rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--kuyil-ink-muted);
}
:root[data-kuyil-theme="gallery"]:not(#_) .welcome-card__dot {
  border-radius: 0;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--kuyil-accent);
  box-shadow: none;
}

/* Layout greetings (idle) — E01/E02 scale, flush-left on the grid. */
:root[data-kuyil-theme="gallery"]:not(#_) :is(.fnb-greet, .fnb-greeting, .duet-greet) {
  align-self: stretch;
  max-width: none;
  text-align: start;
  justify-content: flex-start;
  animation: none;
}
:root[data-kuyil-theme="gallery"]:not(#_) :is(.fnb-greet__headline, .fnb-greeting__text, .duet-greet__text) {
  font-size: clamp(2rem, 0.8rem + 5vmin, 4.75rem);
  max-inline-size: 18em;
  text-wrap: balance;
}
:root[data-kuyil-theme="gallery"]:not(#_) .fnb-duet .duet-greet__text {
  font-size: clamp(1.75rem, 0.8rem + 3.6vmin, 3.5rem);
}
:root[data-kuyil-theme="gallery"]:not(#_) :is(.fnb-greet__headline, .fnb-greeting__text, .duet-greet__text, .start__greet-headline) {
  font-family: var(--kuyil-font-display);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--gal-ink);
  text-shadow: none;
}
:root[data-kuyil-theme="gallery"]:not(#_) :is(.fnb-greet__sub, .fnb-greeting__sub, .duet-greet__sub, .start__greet-sub) {
  font-weight: 500;
  line-height: 1.4;
  color: var(--kuyil-ink-muted);
}

/* Default kiosk grid (+page.svelte .main-screen). */
:root[data-kuyil-theme="gallery"] .greeting-card {
  align-items: flex-start;
  text-align: start;
  background: var(--kuyil-bg);
  border: 0;
  border-top: var(--gal-rule) solid var(--gal-ink);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: var(--space-6) 0 0;
}
:root[data-kuyil-theme="gallery"] .greeting-text {
  font-family: var(--kuyil-font-display);
  font-weight: 700;
  line-height: 1.3;
}
:root[data-kuyil-theme="gallery"] .greeting-subtitle {
  font-weight: 500;
  line-height: 1.4;
}
:root[data-kuyil-theme="gallery"] .instruction-pill {
  border-radius: 0;
  border: 0;
  background: var(--gal-ink);
}
:root[data-kuyil-theme="gallery"] .pill-dot {
  border-radius: 0;
  background: var(--kuyil-accent);
  box-shadow: none;
  animation: none;
}
:root[data-kuyil-theme="gallery"] .pill-text {
  color: var(--kuyil-bg);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
}
:root[data-kuyil-theme="gallery"] .bottom-hint-container {
  background: none;
  border-radius: 0;
  border-top: 1px solid var(--kuyil-line);
}
:root[data-kuyil-theme="gallery"] .bottom-hint-text {
  font-weight: 500;
  line-height: 1.4;
}

/* =====================================================================
   5. The dock — MicButton (+ live band), RestartButton, MicMeter, OrbHint
   ===================================================================== */
:root[data-kuyil-theme="gallery"]:not(#_) .mic-button {
  position: relative;
  gap: var(--space-3);
}
/* Ready: a flat accent disc, on-accent glyph, no rim, no glow, no sheen. */
:root[data-kuyil-theme="gallery"]:not(#_) .mic-button__btn {
  width: var(--gal-mic);
  height: var(--gal-mic);
  border: 0;
  border-radius: 50%;
  background: var(--kuyil-accent);
  color: var(--kuyil-on-accent);
  box-shadow: none;
}
:root[data-kuyil-theme="gallery"]:not(#_) .mic-button__sheen {
  display: none;
}
:root[data-kuyil-theme="gallery"]:not(#_) .mic-button__mic {
  width: 38%;
  height: 38%;
  color: var(--kuyil-on-accent);
}
/* Arming: a crisp double ring (ground gap + ink) — no bloom yet. */
:root[data-kuyil-theme="gallery"]:not(#_) .mic-button[data-mic-state='arming'] .mic-button__btn {
  background: var(--kuyil-accent);
  box-shadow:
    0 0 0 4px var(--kuyil-bg),
    0 0 0 8px var(--gal-ink);
}
/* Live: the disc squares off and turns to paper, and a FULL-WIDTH flat
   accent field opens behind it (E03 live dock). The field is a fixed
   pseudo-element at its static (in-flow) block position, painted at z -1
   inside the layout's stacking context, so it sits behind the orb and the
   captions and spans the whole screen width at the mic's height. */
:root[data-kuyil-theme="gallery"]:not(#_) .mic-button[data-mic-state='live'] .mic-button__btn {
  border-radius: var(--kuyil-radius-control, 8px);
  background: var(--kuyil-on-accent);
  box-shadow: none;
}
:root[data-kuyil-theme="gallery"]:not(#_) .mic-button[data-mic-state='live'] .mic-button__mic {
  color: var(--kuyil-accent);
}
:root[data-kuyil-theme="gallery"]:not(#_) .mic-button[data-mic-state='live']::before {
  content: "";
  position: fixed;
  inset-inline: 0;
  height: calc(var(--gal-mic) + 6.5rem);
  margin-top: -1.75rem;
  background: var(--kuyil-accent);
  z-index: -1;
  pointer-events: none;
}
:root[data-kuyil-theme="gallery"]:not(#_) .mic-button[data-mic-state='live'] .mic-button__label {
  color: var(--kuyil-on-accent);
}
/* Sent: a solid ink flush — distinct from ready/live without a new hue. */
:root[data-kuyil-theme="gallery"]:not(#_) .mic-button[data-mic-state='sent'] .mic-button__btn {
  background: var(--gal-ink);
  box-shadow: none;
}
:root[data-kuyil-theme="gallery"]:not(#_) .mic-button[data-mic-state='sent'] .mic-button__mic {
  color: var(--kuyil-bg);
}
/* Discarded: drops back, faded. */
:root[data-kuyil-theme="gallery"]:not(#_) .mic-button[data-mic-state='discarded'] .mic-button__btn {
  background: var(--kuyil-accent);
  box-shadow: none;
  opacity: 0.4;
}
:root[data-kuyil-theme="gallery"]:not(#_) .mic-button__btn:focus-visible {
  outline: 3px solid var(--gal-ink);
  outline-offset: 5px;
}
/* Tenant hint label under the control — bold caption, may be any script. */
:root[data-kuyil-theme="gallery"]:not(#_) .mic-button__label {
  font-size: clamp(1rem, 0.8rem + 1vmin, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--gal-ink);
}

/* Restart — a square ink-outlined control (E05 dock). */
:root[data-kuyil-theme="gallery"]:not(#_) .restart-btn {
  border-radius: var(--kuyil-radius-card, 4px);
  border: var(--gal-rule) solid var(--gal-ink);
  background: var(--kuyil-bg);
  color: var(--gal-ink);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Mic meter — flat accent bars, square ends. */
:root[data-kuyil-theme="gallery"]:not(#_) .mic-meter__bar {
  border-radius: 0;
  background: color-mix(in srgb, var(--gal-ink) 10%, transparent);
}
:root[data-kuyil-theme="gallery"]:not(#_) .mic-meter__fill {
  border-radius: 0;
  background: var(--kuyil-accent);
}

/* Orb hint line (widget / default grid). */
:root[data-kuyil-theme="gallery"]:not(#_) .orb-hint__line {
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--gal-ink);
  text-shadow: none;
}

/* =====================================================================
   6. Wordless state indicators — seams become hairlines / flat fields
   ===================================================================== */
/* Atelier / crema / cinema seam: a full-bleed 2px ink rule at rest (the
   dock rule of E05); state is a flat accent FIELD whose thickness is drawn
   with a box-shadow spread so the grid row never changes height. Static —
   gallery is calm; colour + thickness carry the state. */
:root[data-kuyil-theme="gallery"]:not(#_) .fnb-seam {
  height: var(--gal-rule);
  margin-inline: calc(-1 * var(--gal-gutter));
  border-radius: 0;
  overflow: visible;
  background: var(--gal-ink);
  opacity: 1;
  box-shadow: none;
  animation: none;
}
:root[data-kuyil-theme="gallery"]:not(#_) .fnb-seam[data-state='listening'] {
  background: var(--kuyil-accent);
  box-shadow: 0 0 0 9px var(--kuyil-accent);
}
:root[data-kuyil-theme="gallery"]:not(#_) .fnb-seam[data-state='processing'] {
  background: var(--kuyil-accent);
  box-shadow: 0 0 0 2px var(--kuyil-accent);
}
:root[data-kuyil-theme="gallery"]:not(#_) .fnb-seam[data-state='speaking'] {
  background: var(--kuyil-accent);
  box-shadow: none;
}
:root[data-kuyil-theme="gallery"]:not(#_) .fnb-seam[data-state='error'] {
  background: var(--state-error);
  box-shadow: 0 0 0 2px var(--state-error);
}

/* Duet split filament — same language. */
:root[data-kuyil-theme="gallery"]:not(#_) .duet-seam {
  background: var(--gal-ink);
  border-radius: 0;
  opacity: 1;
  box-shadow: none;
  animation: none;
}
:root[data-kuyil-theme="gallery"]:not(#_) .duet-seam[data-state='greeting'],
:root[data-kuyil-theme="gallery"]:not(#_) .duet-seam[data-state='speaking'] {
  background: var(--kuyil-accent);
}
:root[data-kuyil-theme="gallery"]:not(#_) .duet-seam[data-state='listening'] {
  background: var(--kuyil-accent);
  box-shadow: 0 0 0 6px var(--kuyil-accent);
}
:root[data-kuyil-theme="gallery"]:not(#_) .duet-seam[data-state='processing'] {
  background: var(--kuyil-accent);
  box-shadow: 0 0 0 2px var(--kuyil-accent);
}
:root[data-kuyil-theme="gallery"]:not(#_) .duet-seam[data-state='error'] {
  background: var(--state-error);
  box-shadow: 0 0 0 2px var(--state-error);
}

/* Marquee state pill → a flat square tab. */
:root[data-kuyil-theme="gallery"]:not(#_) .fnb-state {
  border-radius: 0;
  box-shadow: none;
  animation: none;
  background: var(--kuyil-ink-muted);
}
:root[data-kuyil-theme="gallery"]:not(#_) .fnb-state:is([data-state='listening'], [data-state='speaking']) {
  background: var(--kuyil-accent);
}
:root[data-kuyil-theme="gallery"]:not(#_) .fnb-state[data-state='thinking'] {
  background: var(--gal-ink);
}
:root[data-kuyil-theme="gallery"]:not(#_) .fnb-state[data-state='error'] {
  background: var(--state-error);
}

/* Focus pulse → a square mark; the listening ring stays (component guards
   it under reduced motion) but squares off too. */
:root[data-kuyil-theme="gallery"]:not(#_) .fnb-pulse,
:root[data-kuyil-theme="gallery"]:not(#_) .fnb-pulse::before {
  border-radius: 0;
  box-shadow: none;
}
:root[data-kuyil-theme="gallery"]:not(#_) .fnb-pulse[data-state='speaking'] {
  background: var(--kuyil-accent);
}
:root[data-kuyil-theme="gallery"]:not(#_) .fnb-pulse[data-state='thinking'] {
  background: var(--gal-ink);
}

/* =====================================================================
   7. Order dock — the cart as a RULED TABLE (E07): name · − · + · price,
      heavy rule over the wordless total.
   ===================================================================== */
:root[data-kuyil-theme="gallery"]:not(#_) .order-dock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0;
  padding: 0;
  background: var(--kuyil-bg);
  border: 0;
  border-top: var(--gal-rule) solid var(--gal-ink);
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
:root[data-kuyil-theme="gallery"]:not(#_) .order-dock__glyph {
  display: none;
}
:root[data-kuyil-theme="gallery"]:not(#_) .order-dock__lines {
  grid-column: 1 / -1;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  overflow-x: hidden;
  overflow-y: auto;
  /* Two and a half rows visible — the half row is the wordless "more". */
  max-height: calc((var(--gal-step) + 1.25rem) * 2.5);
}
:root[data-kuyil-theme="gallery"]:not(#_) .order-dock__line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(5ch, auto);
  align-items: center;
  column-gap: var(--space-4);
  padding: 0.625rem 0;
  border-radius: 0;
  border-bottom: 1px solid var(--kuyil-line);
}
:root[data-kuyil-theme="gallery"]:not(#_) .order-dock__thumb {
  grid-column: 1;
  grid-row: 1;
  width: 3rem;
  height: 3rem;
  border-radius: 0;
}
/* Missing photo: the E07 square accent marker instead of a grey swatch. */
:root[data-kuyil-theme="gallery"]:not(#_) .order-dock__thumb--swatch {
  width: 0.875rem;
  height: 0.875rem;
  border: 0;
  background: var(--kuyil-accent);
}
:root[data-kuyil-theme="gallery"]:not(#_) .order-dock__name {
  grid-column: 2;
  grid-row: 1;
  font-size: clamp(1.0625rem, 0.8rem + 1.4vmin, 2.25rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--gal-ink);
  white-space: normal;
  overflow-wrap: anywhere;
}
:root[data-kuyil-theme="gallery"]:not(#_) .order-dock__step {
  grid-column: 3;
  grid-row: 1;
  gap: var(--space-3);
}
:root[data-kuyil-theme="gallery"]:not(#_) .order-dock__amount {
  grid-column: 4;
  grid-row: 1;
  justify-self: end;
  font-size: clamp(1.0625rem, 0.8rem + 1.4vmin, 2.25rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--gal-ink);
  font-variant-numeric: tabular-nums;
}
:root[data-kuyil-theme="gallery"]:not(#_) .order-dock__btn {
  width: var(--gal-step);
  height: var(--gal-step);
  border-radius: var(--kuyil-radius-card, 4px);
  border: var(--gal-rule) solid var(--gal-ink);
  background: transparent;
  color: var(--gal-ink);
  font-size: clamp(1.25rem, 0.9rem + 1.8vmin, 2.5rem);
  font-weight: 500;
}
:root[data-kuyil-theme="gallery"]:not(#_) .order-dock__btn:disabled {
  opacity: 0.3;
}
:root[data-kuyil-theme="gallery"]:not(#_) .order-dock__line.is-rejected {
  background: color-mix(in srgb, var(--state-error) 10%, transparent);
  box-shadow: inset 4px 0 0 var(--state-error);
}
/* Total — no word, just a heavy ink rule and big tabular numerals. */
:root[data-kuyil-theme="gallery"]:not(#_) .order-dock__total {
  grid-column: 2;
  justify-self: end;
  margin-top: var(--space-3);
  padding-top: var(--space-2);
  min-width: 40%;
  text-align: end;
  border-top: var(--gal-rule-heavy) solid var(--gal-ink);
  font-size: clamp(1.5rem, 1rem + 3vmin, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--gal-ink);
  font-variant-numeric: tabular-nums;
}

/* =====================================================================
   8. Order placed — flat sheet, tokens as solid accent fields
   ===================================================================== */
:root[data-kuyil-theme="gallery"]:not(#_) .order-placed {
  align-items: stretch;
  background: var(--kuyil-surface-1);
  border: 0;
  border-top: var(--gal-rule-heavy) solid var(--gal-ink);
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  animation: none;
}
:root[data-kuyil-theme="gallery"]:not(#_) .order-placed::after {
  display: none;
}
:root[data-kuyil-theme="gallery"]:not(#_) .order-placed--failed {
  border-top-color: var(--state-error);
  box-shadow: none;
}
:root[data-kuyil-theme="gallery"]:not(#_) :is(.order-placed__check, .order-placed__cross) {
  align-self: flex-start;
  text-shadow: none;
}
:root[data-kuyil-theme="gallery"]:not(#_) .order-placed__number {
  align-self: flex-start;
  font-weight: 800;
  letter-spacing: -0.02em; /* Latin numerals only */
  color: var(--gal-ink);
}
:root[data-kuyil-theme="gallery"]:not(#_) .order-placed__tokens {
  justify-content: flex-start;
  gap: var(--space-3);
}
:root[data-kuyil-theme="gallery"]:not(#_) .order-placed__token {
  border: 0;
  border-radius: 0;
  background: var(--kuyil-accent);
  color: var(--kuyil-on-accent);
  font-weight: 700;
  padding: var(--space-3) var(--space-5);
}
:root[data-kuyil-theme="gallery"]:not(#_) .order-placed__row {
  padding-block: var(--space-1);
  border-bottom: 1px solid var(--kuyil-line);
}
:root[data-kuyil-theme="gallery"]:not(#_) .order-placed__line {
  font-weight: 600;
  line-height: 1.35;
  color: var(--gal-ink);
}
:root[data-kuyil-theme="gallery"]:not(#_) .order-placed__mods {
  font-weight: 500;
  color: var(--kuyil-ink-muted);
}
:root[data-kuyil-theme="gallery"]:not(#_) .order-placed__amount {
  color: var(--gal-ink);
  font-variant-numeric: tabular-nums;
}
:root[data-kuyil-theme="gallery"]:not(#_) .order-placed__row--total {
  border-top: var(--gal-rule-heavy) solid var(--gal-ink);
  border-bottom: 0;
}
:root[data-kuyil-theme="gallery"]:not(#_) .order-placed__row--total .order-placed__amount {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--gal-ink);
}
:root[data-kuyil-theme="gallery"]:not(#_) :is(.order-placed__row--subtotal, .order-placed__row--tax) :is(.order-placed__line, .order-placed__amount) {
  color: var(--kuyil-ink-muted);
}

/* =====================================================================
   9. Menu list (crema) — ruled columns, square markers
   ===================================================================== */
:root[data-kuyil-theme="gallery"]:not(#_) .menu-list {
  opacity: 1;
  gap: var(--space-4) var(--space-6);
}
:root[data-kuyil-theme="gallery"]:not(#_) .menu-list--receded {
  opacity: 0.55;
}
:root[data-kuyil-theme="gallery"]:not(#_) .menu-list__group {
  width: 100%;
  border-top: var(--gal-rule) solid var(--gal-ink);
  padding-top: var(--space-2);
}
:root[data-kuyil-theme="gallery"]:not(#_) .menu-list__heading {
  font-family: var(--kuyil-font-display);
  font-size: clamp(0.875rem, 0.7rem + 0.7vmin, 1.125rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gal-ink);
}
:root[data-kuyil-theme="gallery"]:not(#_) .menu-list__items li {
  font-size: clamp(0.875rem, 0.7rem + 0.8vmin, 1.125rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--gal-ink);
}
:root[data-kuyil-theme="gallery"]:not(#_) .menu-list__items li::before {
  border-radius: 0;
  background: var(--kuyil-accent);
}

/* =====================================================================
   10. Registration — RegistrationForm / Card / Summary as ruled tables (E06)
   ===================================================================== */
:root[data-kuyil-theme="gallery"]:not(#_) :is(.reg-form, .reg-card, .reg-summary) {
  background: var(--kuyil-bg);
  border: 0;
  border-top: var(--gal-rule) solid var(--gal-ink);
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
:root[data-kuyil-theme="gallery"]:not(#_) .reg-form {
  padding: 0;
  column-gap: var(--space-6);
}
:root[data-kuyil-theme="gallery"]:not(#_) :is(.reg-form__divider, .reg-card__divider) {
  display: none;
}
:root[data-kuyil-theme="gallery"]:not(#_) .reg-form__row {
  border-radius: 0;
  padding: 0.625rem 0.25rem;
  border-bottom: 1px solid var(--kuyil-line);
}
:root[data-kuyil-theme="gallery"]:not(#_) .reg-form--dense .reg-form__row {
  padding: 0.375rem 0.25rem;
}
/* Active row — being filled by voice: accent tint + 4px accent floor. */
:root[data-kuyil-theme="gallery"]:not(#_) .reg-form__row.is-active {
  background: color-mix(in srgb, var(--kuyil-accent) 10%, transparent);
  box-shadow: inset 0 -4px 0 var(--kuyil-accent);
  border-bottom-color: transparent;
}
:root[data-kuyil-theme="gallery"]:not(#_) .reg-form__row.is-rejected {
  background: color-mix(in srgb, var(--state-error) 10%, transparent);
  box-shadow: inset 0 -4px 0 var(--state-error);
}
:root[data-kuyil-theme="gallery"]:not(#_) .reg-form__arrow {
  line-height: 2.1;
}
/* Labels are tenant config in any script: no caps, no tracking. */
:root[data-kuyil-theme="gallery"]:not(#_) :is(.reg-form__label, .reg-card__label, .reg-summary__label) {
  font-size: clamp(0.8125rem, 0.6rem + 0.8vmin, 1rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  color: var(--kuyil-ink-muted);
}
:root[data-kuyil-theme="gallery"]:not(#_) :is(.reg-form__value, .reg-summary__value) {
  font-size: clamp(1rem, 0.7rem + 1.3vmin, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--gal-ink);
  font-variant-numeric: tabular-nums;
}
:root[data-kuyil-theme="gallery"]:not(#_) .reg-form--dense .reg-form__value {
  font-size: clamp(0.9375rem, 0.7rem + 1vmin, 1.25rem);
  line-height: 1.3;
}
:root[data-kuyil-theme="gallery"]:not(#_) .reg-form--dense .reg-form__label {
  line-height: 1.3;
  letter-spacing: 0;
}
:root[data-kuyil-theme="gallery"]:not(#_) .reg-card__value {
  font-weight: 600;
  line-height: 1.35;
  color: var(--gal-ink);
}
:root[data-kuyil-theme="gallery"]:not(#_) .reg-form__input {
  border-radius: var(--kuyil-radius-card, 4px);
  border: var(--gal-rule) solid var(--gal-ink);
  background: var(--kuyil-surface-1);
  font-weight: 600;
  line-height: 1.3;
}
:root[data-kuyil-theme="gallery"]:not(#_) .reg-card__row {
  border-bottom-color: var(--kuyil-line);
}
:root[data-kuyil-theme="gallery"]:not(#_) .reg-summary {
  align-items: stretch;
}
:root[data-kuyil-theme="gallery"]:not(#_) .reg-summary__check {
  align-self: flex-start;
  text-shadow: none;
}
:root[data-kuyil-theme="gallery"]:not(#_) .reg-summary__row {
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--kuyil-line);
}
/* Ruled table rows (.reg-row hook): a narrow label column, bold value cell;
   the bottom pad keeps the last value's 44px hit area inside the card. */
:root[data-kuyil-theme="gallery"]:not(#_) .reg-form {
  --reg-label-w: 28%;
  padding-bottom: var(--space-3);
}
:root[data-kuyil-theme="gallery"]:not(#_) .reg-row__label {
  align-self: center;
}
:root[data-kuyil-theme="gallery"]:not(#_) .reg-form__row.is-active .reg-form__label {
  color: var(--gal-ink);
}
@media (orientation: landscape) {
  :root[data-kuyil-theme="gallery"]:not(#_) .reg-form--dense .reg-form__row {
    padding-block: 0.3rem;
  }
}
/* Portrait kiosk: one ruled column of 14 rows at near-E06 size. */
@media (orientation: portrait) and (min-width: 1000px) and (min-height: 1600px) {
  :root[data-kuyil-theme="gallery"]:not(#_) .reg-form__label,
  :root[data-kuyil-theme="gallery"]:not(#_) .reg-form--dense .reg-form__label {
    font-size: 1.0625rem;
  }
  :root[data-kuyil-theme="gallery"]:not(#_) .reg-form__value,
  :root[data-kuyil-theme="gallery"]:not(#_) .reg-form--dense .reg-form__value {
    font-size: 1.75rem;
  }
}

/* =====================================================================
   11. Cinema surfaces — posters, seats, concessions, strip, ticket
   ===================================================================== */
:root[data-kuyil-theme="gallery"]:not(#_) .cinema-idle__name {
  background: none;
  color: var(--gal-ink);
  -webkit-text-fill-color: currentColor;
  filter: none;
  line-height: 1.3;
}
:root[data-kuyil-theme="gallery"]:not(#_) .cinema-showtime {
  border-radius: var(--kuyil-radius-card, 4px);
  background: var(--kuyil-surface-1);
  border: var(--gal-rule) solid var(--gal-ink);
  box-shadow: none;
}
:root[data-kuyil-theme="gallery"]:not(#_) .cinema-showtime.is-selected {
  background: var(--kuyil-accent);
  border-color: var(--kuyil-accent);
  color: var(--kuyil-on-accent);
  box-shadow: none;
}
:root[data-kuyil-theme="gallery"]:not(#_) .cinema-showtime.is-selected * {
  color: var(--kuyil-on-accent);
}
:root[data-kuyil-theme="gallery"]:not(#_) :is(.poster-card__art, .concession-card__art) {
  border-radius: 0;
  border: 1px solid var(--kuyil-line);
  box-shadow: none;
}
:root[data-kuyil-theme="gallery"]:not(#_) :is(.poster-card.is-selected .poster-card__art, .concession-card.is-selected .concession-card__art) {
  border-color: var(--kuyil-accent);
  box-shadow: 0 0 0 4px var(--kuyil-accent);
}
:root[data-kuyil-theme="gallery"]:not(#_) :is(.poster-card__title, .concession-card__name) {
  font-weight: 600;
  line-height: 1.3;
  color: var(--gal-ink);
}
:root[data-kuyil-theme="gallery"]:not(#_) :is(.poster-card.is-selected .poster-card__title, .concession-card.is-selected .concession-card__name) {
  color: var(--gal-ink);
  text-decoration: underline 3px var(--kuyil-accent);
  text-underline-offset: 0.3em;
}
:root[data-kuyil-theme="gallery"]:not(#_) :is(.poster-card__meta, .concession-card__price) {
  font-weight: 500;
  line-height: 1.35;
  color: var(--kuyil-ink-muted);
  font-variant-numeric: tabular-nums;
}
:root[data-kuyil-theme="gallery"]:not(#_) .concession-card__badge {
  border-radius: 0;
  background: var(--kuyil-accent);
  color: var(--kuyil-on-accent);
  box-shadow: none;
  font-variant-numeric: tabular-nums;
}

/* =====================================================================
   11b. Retail surfaces (RetailLayout) — gallery is the retail reference look:
   flat paper tiles on ink hairlines, the product art on a flat grey plate
   (no hashed tint), square badges/chips, the accent only as flat fields
   (badges, the selected chip, the offer rule, the map target).
   ===================================================================== */
:root[data-kuyil-theme="gallery"]:not(#_) :is(.retail-tile, .offer-card, .wayfinding) {
  border-radius: var(--kuyil-radius-card, 4px);
  border: 1px solid color-mix(in srgb, var(--gal-ink) 24%, transparent);
  background: var(--kuyil-surface-1);
  box-shadow: none;
}
:root[data-kuyil-theme="gallery"]:not(#_) .retail-tile__art {
  background: var(--kuyil-surface-2);
  color: color-mix(in srgb, var(--gal-ink) 55%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--gal-ink) 14%, transparent);
}
:root[data-kuyil-theme="gallery"]:not(#_) .retail-tile--detail .retail-tile__art {
  border-bottom: none;
  border-inline-end: 1px solid color-mix(in srgb, var(--gal-ink) 14%, transparent);
}
:root[data-kuyil-theme="gallery"]:not(#_) .retail-tile.is-selected {
  border-color: var(--kuyil-accent);
  box-shadow: 0 0 0 4px var(--kuyil-accent);
}
:root[data-kuyil-theme="gallery"]:not(#_) :is(.retail-tile__badge, .offer-card__badge) {
  border-radius: 0;
}
:root[data-kuyil-theme="gallery"]:not(#_) .retail-tile__name {
  color: var(--gal-ink);
}
/* Prices: Schibsted Grotesk's tabular figures give the decimal point a full
   digit-width cell ("AED 11 . 50" at display sizes) — set retail prices in
   proportional lining figures so the amount reads as one word. */
:root[data-kuyil-theme="gallery"]:not(#_) .retail-tile__price {
  font-variant-numeric: proportional-nums lining-nums;
  letter-spacing: -0.005em;
}
:root[data-kuyil-theme="gallery"]:not(#_) .retail-chip {
  border-radius: 0;
  background: transparent;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gal-ink) 40%, transparent);
}
:root[data-kuyil-theme="gallery"]:not(#_) .retail-dept {
  border-radius: var(--kuyil-radius-card, 4px);
  border: var(--gal-rule) solid var(--gal-ink);
  background: var(--kuyil-bg);
  color: var(--gal-ink);
}
:root[data-kuyil-theme="gallery"]:not(#_) .retail-dept.is-selected {
  background: var(--kuyil-accent);
  border-color: var(--kuyil-accent);
  color: var(--kuyil-on-accent);
}
:root[data-kuyil-theme="gallery"]:not(#_) .offer-card {
  border-inline-start: var(--gal-rule-heavy) solid var(--kuyil-accent);
}
:root[data-kuyil-theme="gallery"]:not(#_) .wayfinding__plan {
  border-radius: 0;
  background: var(--kuyil-surface-2);
}
:root[data-kuyil-theme="gallery"]:not(#_) .wayfinding__floor {
  border-radius: var(--kuyil-radius-card, 4px);
  border: var(--gal-rule) solid var(--gal-ink);
  background: var(--kuyil-bg);
  color: var(--gal-ink);
}
:root[data-kuyil-theme="gallery"]:not(#_) .wayfinding__floor.is-active {
  background: var(--gal-ink);
  color: var(--kuyil-bg);
}
:root[data-kuyil-theme="gallery"]:not(#_) .retail-idle__name {
  color: var(--gal-ink);
}
:root[data-kuyil-theme="gallery"]:not(#_) .scan-viewfinder__frame {
  border-radius: 0;
  border: var(--gal-rule) solid var(--gal-ink);
}
:root[data-kuyil-theme="gallery"]:not(#_) .scan-viewfinder__close {
  border-radius: var(--kuyil-radius-card, 4px);
  border: var(--gal-rule) solid var(--gal-ink);
}

/* Seat map — square seats, flat accent selection, a straight screen rule. */
:root[data-kuyil-theme="gallery"]:not(#_) .seat-map__screen {
  border-top: var(--gal-rule-heavy) solid var(--gal-ink);
  border-radius: 0;
  box-shadow: none;
}
:root[data-kuyil-theme="gallery"]:not(#_) .seat {
  border-radius: 2px;
  border-color: color-mix(in srgb, var(--gal-ink) 55%, transparent);
  background: var(--kuyil-surface-1);
}
:root[data-kuyil-theme="gallery"]:not(#_) .seat[data-state='taken'] {
  border-color: transparent;
  background: var(--kuyil-surface-2);
}
:root[data-kuyil-theme="gallery"]:not(#_) .seat[data-state='held'] {
  border-color: transparent;
  background: var(--kuyil-surface-2);
}
:root[data-kuyil-theme="gallery"]:not(#_) .seat[data-state='selected'] {
  border-color: var(--kuyil-accent);
  background: var(--kuyil-accent);
  color: var(--kuyil-on-accent);
  box-shadow: none;
}
:root[data-kuyil-theme="gallery"]:not(#_) .seat-map__legend {
  border-radius: 0;
  background: none;
  border-top: 1px solid var(--kuyil-line);
}
:root[data-kuyil-theme="gallery"]:not(#_) .seat-map__legend .seat--swatch {
  border-radius: 2px;
}
:root[data-kuyil-theme="gallery"]:not(#_) .seat-map__letter {
  font-weight: 600;
  color: var(--kuyil-ink-muted);
}

/* Booking summary strip — ink type, square chips. */
:root[data-kuyil-theme="gallery"]:not(#_) .booking-strip {
  font-weight: 500;
  line-height: 1.35;
  color: var(--kuyil-ink-muted);
}
:root[data-kuyil-theme="gallery"]:not(#_) .booking-strip__movie {
  font-weight: 700;
  color: var(--gal-ink);
}
:root[data-kuyil-theme="gallery"]:not(#_) .booking-strip__seat {
  border-radius: 0;
  border: 0;
  background: var(--kuyil-accent);
  color: var(--kuyil-on-accent);
  font-variant-numeric: tabular-nums;
}
:root[data-kuyil-theme="gallery"]:not(#_) .booking-strip__snack {
  border-radius: 0;
  border: 1px solid var(--kuyil-line-strong);
  background: none;
  color: var(--gal-ink);
}

/* Ticket — flat white sheet under a heavy rule; QR square, unshadowed. */
:root[data-kuyil-theme="gallery"]:not(#_) .ticket-card {
  background: var(--kuyil-surface-1);
  border: 0;
  border-top: var(--gal-rule-heavy) solid var(--gal-ink);
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  animation: none;
}
:root[data-kuyil-theme="gallery"]:not(#_) .ticket-card--failed {
  border-top-color: var(--state-error);
}
:root[data-kuyil-theme="gallery"]:not(#_) .ticket-card__ref {
  font-weight: 800;
  letter-spacing: -0.01em; /* Latin booking reference only */
  color: var(--gal-ink);
  text-shadow: none;
}
:root[data-kuyil-theme="gallery"]:not(#_) :is(.ticket-card__check, .ticket-card__cross) {
  text-shadow: none;
}
:root[data-kuyil-theme="gallery"]:not(#_) .ticket-card__seat {
  border-radius: 0;
  border: 0;
  background: var(--kuyil-accent);
  color: var(--kuyil-on-accent);
  font-variant-numeric: tabular-nums;
}
:root[data-kuyil-theme="gallery"]:not(#_) .ticket-card__movie {
  font-weight: 700;
  line-height: 1.3;
  color: var(--gal-ink);
}
:root[data-kuyil-theme="gallery"]:not(#_) .ticket-card__when {
  font-weight: 500;
  line-height: 1.35;
  color: var(--kuyil-ink-muted);
}
:root[data-kuyil-theme="gallery"]:not(#_) .ticket-card__qr {
  border-radius: 0;
  border: 1px solid var(--kuyil-line);
  box-shadow: none;
}

/* =====================================================================
   12. Attract / Start — solid ink wordmark, flat controls
   ===================================================================== */
:root[data-kuyil-theme="gallery"]:not(#_) :is(.attract__name, .start__name) {
  background: none;
  color: var(--gal-ink);
  -webkit-text-fill-color: currentColor;
  filter: none;
  text-shadow: none;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
}
:root[data-kuyil-theme="gallery"]:not(#_) .aw {
  background: none;
  color: color-mix(in srgb, var(--gal-ink) 14%, var(--kuyil-bg));
  -webkit-text-fill-color: currentColor;
  font-weight: 700;
  line-height: 1.3;
}
:root[data-kuyil-theme="gallery"]:not(#_) :is(.attract__tagline, .start__tagline) {
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--kuyil-ink-muted);
}
:root[data-kuyil-theme="gallery"]:not(#_) .attract__dot {
  border-radius: 0;
  box-shadow: none;
}
:root[data-kuyil-theme="gallery"]:not(#_) .start__button {
  border: var(--gal-rule) solid var(--gal-ink);
  background: var(--kuyil-surface-1);
  box-shadow: none;
}
:root[data-kuyil-theme="gallery"]:not(#_) .start__label {
  font-weight: 700;
  line-height: 1.3;
  color: var(--gal-ink);
}
:root[data-kuyil-theme="gallery"]:not(#_) .start__dot {
  background: var(--kuyil-accent);
  box-shadow: none;
}
:root[data-kuyil-theme="gallery"]:not(#_) .start__ring {
  border-color: var(--kuyil-accent);
}

/* =====================================================================
   13. Boot overlay — flat wall, one ink hairline progress
   ===================================================================== */
:root[data-kuyil-theme="gallery"] .boot-overlay {
  background: var(--kuyil-bg);
}
:root[data-kuyil-theme="gallery"] .boot-overlay__brand {
  font-weight: 700;
  color: var(--gal-ink);
}
:root[data-kuyil-theme="gallery"] .boot-overlay__progress {
  border-radius: 0;
  background: var(--kuyil-line);
}
:root[data-kuyil-theme="gallery"] .boot-overlay__bar {
  border-radius: 0;
  background: var(--kuyil-accent);
}
:root[data-kuyil-theme="gallery"] .boot-overlay--error .boot-overlay__bar {
  background: var(--state-error);
}

/* =====================================================================
   14. Website widget (/widget halo) — square ruled ribbon, 44px controls
   ===================================================================== */
:root[data-kuyil-theme="gallery"]:not(#_) .halo-ribbon {
  border-radius: var(--kuyil-radius-card, 4px);
  background: var(--kuyil-surface-1);
  border: 1px solid var(--kuyil-line-strong);
  border-top: var(--gal-rule) solid var(--gal-ink);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
:root[data-kuyil-theme="gallery"]:not(#_) .halo-ribbon::after {
  display: none;
}
:root[data-kuyil-theme="gallery"]:not(#_) .halo-ribbon__user {
  line-height: 1.4;
  font-weight: 500;
}
:root[data-kuyil-theme="gallery"]:not(#_) .halo-ribbon__assistant {
  font-family: var(--kuyil-font-display);
  font-weight: 600;
  line-height: 1.4;
}
:root[data-kuyil-theme="gallery"]:not(#_) .halo-guide {
  border-radius: 0;
  background: var(--gal-ink);
  color: var(--kuyil-bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
:root[data-kuyil-theme="gallery"]:not(#_) .halo-collapse {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--kuyil-radius-card, 4px);
  border: var(--gal-rule) solid var(--gal-ink);
  background: var(--kuyil-surface-1);
  color: var(--gal-ink);
}

/* =====================================================================
   15. Reduced motion — gallery adds no animation of its own; it only
   removes motion. Restated so the static states hold.
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  :root[data-kuyil-theme="gallery"]:not(#_) :is(.fnb-seam, .duet-seam, .fnb-state, .lang-chip__dot, .pill-dot) {
    animation: none;
    transition: none;
  }
}

/* =====================================================================
   Control dock (.kiosk-dock) — a full-width band (E03/E05): ink rule over
   the paper ground at rest; while the visitor is LISTENED to (machine
   `listening`, or the talk control held live) the band turns into a flat
   accent field and the controls invert to on-accent ink. The field replaces
   the live mic's own fixed field (§5) when the mic sits in a dock. In
   portrait the band bleeds to both screen edges (a z -1 pseudo, behind the
   orb/captions); landscape keeps it to its column.
   ===================================================================== */
:root[data-kuyil-theme="gallery"]:not(#_) .kiosk-dock {
  display: grid;
  grid-template-columns: minmax(5.5rem, 1fr) auto minmax(5.5rem, 1fr);
  align-items: center;
  justify-items: start;
  column-gap: var(--space-5);
  position: relative;
  box-sizing: border-box;
  align-self: stretch;
  width: 100%;
  padding: clamp(var(--space-4), 3vmin, 3rem) var(--space-4) var(--space-3);
}
:root[data-kuyil-theme="gallery"]:not(#_) .kiosk-dock::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--kuyil-bg);
  border-top: var(--gal-rule) solid var(--gal-ink);
  transition: background-color 0.25s ease;
}
@media (orientation: portrait) {
  :root[data-kuyil-theme="gallery"]:not(#_) .kiosk-dock::before {
    inset-inline: -100vmax;
  }
}
:root[data-kuyil-theme="gallery"]:not(#_) .kiosk-dock > .mic-button {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  margin-inline: 0;
}
:root[data-kuyil-theme="gallery"]:not(#_) .kiosk-dock > .restart-btn {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  inset: auto;
  width: 5.5rem;
  height: 5.5rem;
  opacity: 1;
}
:root[data-kuyil-theme="gallery"]:not(#_) .kiosk-dock .mic-button[data-mic-state='live']::before {
  content: none;
}
/* Listening: the flat accent field. */
:root[data-kuyil-theme="gallery"]:not(#_) :is(.kiosk-dock[data-state='listening']:not(:has(.mic-button)), .kiosk-dock:has(.mic-button[data-mic-state='live']))::before {
  background: var(--kuyil-accent);
  border-top-color: var(--kuyil-accent);
}
:root[data-kuyil-theme="gallery"]:not(#_) :is(.kiosk-dock[data-state='listening']:not(:has(.mic-button)), .kiosk-dock:has(.mic-button[data-mic-state='live'])) .mic-button__btn {
  border-radius: var(--kuyil-radius-control, 8px);
  background: var(--kuyil-on-accent);
}
:root[data-kuyil-theme="gallery"]:not(#_) :is(.kiosk-dock[data-state='listening']:not(:has(.mic-button)), .kiosk-dock:has(.mic-button[data-mic-state='live'])) .mic-button__mic {
  color: var(--kuyil-accent);
}
:root[data-kuyil-theme="gallery"]:not(#_) :is(.kiosk-dock[data-state='listening']:not(:has(.mic-button)), .kiosk-dock:has(.mic-button[data-mic-state='live'])) .mic-button__label {
  color: var(--kuyil-on-accent);
}
:root[data-kuyil-theme="gallery"]:not(#_) :is(.kiosk-dock[data-state='listening']:not(:has(.mic-button)), .kiosk-dock:has(.mic-button[data-mic-state='live'])) .restart-btn {
  border-color: var(--kuyil-on-accent);
  background: transparent;
  color: var(--kuyil-on-accent);
}
/* Visitor type toggle (TypeComposer) — the end-slot twin of restart: the
   same square ink outline, inverted on the listening band; open = solid ink.
   The retail camera-barcode toggle (RetailScanControl) shares the look. */
:root[data-kuyil-theme="gallery"]:not(#_) :is(.type-composer__toggle, .scan-control__toggle) {
  border-radius: var(--kuyil-radius-card, 4px);
  border: var(--gal-rule) solid var(--gal-ink);
  background: var(--kuyil-bg);
  color: var(--gal-ink);
}
:root[data-kuyil-theme="gallery"]:not(#_) :is(.kiosk-dock[data-state='listening']:not(:has(.mic-button)), .kiosk-dock:has(.mic-button[data-mic-state='live'])) :is(.type-composer__toggle, .scan-control__toggle) {
  border-color: var(--kuyil-on-accent);
  background: transparent;
  color: var(--kuyil-on-accent);
}
:root[data-kuyil-theme="gallery"]:not(#_) .kiosk-dock :is(.type-composer__toggle, .scan-control__toggle)[aria-expanded='true'],
:root[data-kuyil-theme="gallery"]:not(#_) :is(.kiosk-dock[data-state='listening']:not(:has(.mic-button)), .kiosk-dock:has(.mic-button[data-mic-state='live'])) :is(.type-composer__toggle, .scan-control__toggle)[aria-expanded='true'] {
  border-color: var(--kuyil-on-accent);
  background: var(--kuyil-on-accent);
  color: var(--kuyil-accent);
}
@media (prefers-reduced-motion: reduce) {
  :root[data-kuyil-theme="gallery"]:not(#_) .kiosk-dock::before {
    transition: none;
  }
}
/* Top-bar clock (E03): grey tabular numerals in the ui face. */
:root[data-kuyil-theme="gallery"]:not(#_) .kiosk-clock {
  font-size: clamp(var(--text-base), 0.6rem + 1.1vmin, 1.65rem);
  font-weight: 500;
  color: var(--kuyil-ink-muted);
}
