/* themes/kolam.css — surface styling for the "kolam" 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="kolam"]
   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).

   Design DNA (refs D01–D10): deep indigo ground with a fine 45° textile
   weave, a marigold accent, Fraunces for every spoken / headline word and
   Hind Madurai for the interface, gently ARCHED card tops (a temple-door
   curve, never a full semicircle), fine DOT LEADERS between a name and its
   price, warm ivory ink. Respectful and contemporary — no clip-art.

   SPECIFICITY: component styles are Svelte-scoped (.x.svelte-hash). Every
   rule here starts with the theme attribute PLUS the scheme attribute
   (`:root[data-kuyil-theme="kolam"][data-kuyil-scheme]`, 0-3-0) so a one-
   or two-class override always outranks the component's own selector at
   the same depth, without !important.

   INDIC SAFETY: anything that can carry caption / visitor / tenant text
   keeps line-height ≥ 1.3 and never gets uppercase or negative tracking.
   ========================================================================= */

/* ---- theme-local helpers ------------------------------------------------ */
:root[data-kuyil-theme="kolam"] {
  /* Arched-top radius: a wide, shallow ellipse over the top edge (50% of
     the width horizontally, a fixed rise vertically) with the token radius
     on the bottom corners — the D06/D07 card silhouette. */
  --kolam-rise: clamp(28px, 5.5vmin, 110px);
  --kolam-arch: 50% 50% var(--kuyil-radius-card) var(--kuyil-radius-card) /
    var(--kolam-rise) var(--kolam-rise) var(--kuyil-radius-card) var(--kuyil-radius-card);
  --kolam-rise-sm: clamp(18px, 3.2vmin, 60px);
  --kolam-arch-sm: 50% 50% 20px 20px / var(--kolam-rise-sm) var(--kolam-rise-sm) 20px 20px;
  /* Card surface: the indigo lifts one step toward the top (lamp-lit). */
  --kolam-card-bg: linear-gradient(
    180deg,
    var(--kuyil-surface-2) 0%,
    var(--kuyil-surface-1) 60%
  );
  --kolam-card-rim: color-mix(in srgb, var(--kuyil-text) 14%, transparent);
  --kolam-card-shadow: inset 0 1px 0 color-mix(in srgb, var(--kuyil-text) 8%, transparent),
    0 28px 64px color-mix(in srgb, var(--kuyil-bg) 40%, #000 60%);
  /* Fine dot leader — a row of 1.5px ivory dots, drawn not typed. */
  --kolam-dots: radial-gradient(
      circle,
      color-mix(in srgb, var(--kuyil-text) 34%, transparent) 0 1.1px,
      transparent 1.6px
    )
    0 100% / 7px 4px repeat-x;
  /* Marigold dot row (the kolam pulli) for hairline rules. */
  --kolam-pulli: radial-gradient(
      circle,
      color-mix(in srgb, var(--kuyil-accent) 70%, transparent) 0 1.4px,
      transparent 2px
    )
    50% 50% / 14px 6px repeat-x;
  --kolam-ink-soft: color-mix(in srgb, var(--kuyil-text) 78%, transparent);
  /* Talk-disc diameter and assistant-caption size. Portrait kiosks size off
     the short edge; landscape is height-bound (orb + captions + dock share
     ~1000px), so both temper there. */
  --kolam-mic: clamp(5.5rem, 13.5vmin, 9.5rem);
  --kolam-cap: clamp(1.35rem, 0.9rem + 3.2vmin, 3.5rem);
  /* Talk-disc pulli ring (D01/D03): eight looped petals on a base circle
     plus a faint outer thread (accent), and a dot in every loop / gap
     (ivory). Masks, so both inks follow the live tokens. */
  --kolam-ring-petals: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-50 -50 100 100'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.5'%3E%3Ccircle r='34.5'/%3E%3Ccircle r='40' stroke-width='0.7' stroke-opacity='0.45'/%3E%3Cpath id='p' d='M-9 -34.3C-19 -53 19 -53 9 -34.3'/%3E%3Cuse href='%23p' transform='rotate%2845%29'/%3E%3Cuse href='%23p' transform='rotate%2890%29'/%3E%3Cuse href='%23p' transform='rotate%28135%29'/%3E%3Cuse href='%23p' transform='rotate%28180%29'/%3E%3Cuse href='%23p' transform='rotate%28225%29'/%3E%3Cuse href='%23p' transform='rotate%28270%29'/%3E%3Cuse href='%23p' transform='rotate%28315%29'/%3E%3C/g%3E%3C/svg%3E");
  --kolam-ring-dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-50 -50 100 100'%3E%3Cg fill='%23000'%3E%3Cg id='d'%3E%3Ccircle cy='-42' r='1.8'/%3E%3Ccircle cx='15.31' cy='-36.96' r='1.15'/%3E%3C/g%3E%3Cuse href='%23d' transform='rotate%2845%29'/%3E%3Cuse href='%23d' transform='rotate%2890%29'/%3E%3Cuse href='%23d' transform='rotate%28135%29'/%3E%3Cuse href='%23d' transform='rotate%28180%29'/%3E%3Cuse href='%23d' transform='rotate%28225%29'/%3E%3Cuse href='%23d' transform='rotate%28270%29'/%3E%3Cuse href='%23d' transform='rotate%28315%29'/%3E%3C/g%3E%3C/svg%3E");
  --kolam-ring: 1.72;
}
@media (orientation: landscape) {
  :root[data-kuyil-theme="kolam"] {
    --kolam-mic: clamp(5.5rem, 9vh, 6.5rem);
    --kolam-cap: clamp(1.25rem, 0.8rem + 1.5vh, 2.25rem);
  }
}

/* ---- ground: indigo + textile weave + lamp glow ------------------------- */
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] body {
  background:
    /* floor shadow — the room darkens toward the visitor's feet */
    linear-gradient(
      180deg,
      transparent 62%,
      color-mix(in srgb, var(--kuyil-bg) 45%, #000 55%) 100%
    ),
    /* a single soft lamp-glow behind the orb, tinted by the tenant accent */
    radial-gradient(
      ellipse 72% 40% at 50% 30%,
      color-mix(in srgb, var(--kuyil-accent) 9%, transparent) 0%,
      transparent 72%
    ),
    /* the weave: two 1px diagonal threads at 3% ivory, 7px pitch */
    repeating-linear-gradient(
      45deg,
      color-mix(in srgb, var(--kuyil-text) 3.2%, transparent) 0 1px,
      transparent 1px 7px
    ),
    repeating-linear-gradient(
      -45deg,
      color-mix(in srgb, var(--kuyil-text) 3.2%, transparent) 0 1px,
      transparent 1px 7px
    ),
    var(--kuyil-bg);
  background-attachment: fixed;
}

/* ---- brand lockup: Fraunces plaque, sentence case ----------------------- */
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .brand-lockup__name {
  font-family: var(--kuyil-font-display);
  font-size: clamp(1.25rem, 0.9rem + 1.4vmin, 2.625rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-transform: none;
  font-variation-settings: "opsz" 96;
  color: var(--kuyil-text);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .brand-lockup__tagline {
  font-family: var(--kuyil-font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(0.95rem, 0.8rem + 0.6vmin, 1.375rem);
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: color-mix(in srgb, var(--kuyil-ink-muted) 95%, transparent);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .brand-lockup--dim {
  opacity: 0.7;
}

/* ---- language chip: quiet indigo pill, marigold pulli ------------------- */
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .lang-chip {
  min-height: 2.75rem;
  box-sizing: border-box;
  padding: 0 1.25rem 0 1.1rem;
  gap: 0.6rem;
  background: var(--kuyil-surface-1);
  border: 1px solid var(--kuyil-line);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--kuyil-text) 6%, transparent);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .lang-chip__dot {
  width: 0.45rem;
  height: 0.45rem;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--kuyil-accent) 18%, transparent);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .lang-chip__text {
  font-family: var(--kuyil-font-ui);
  font-size: clamp(0.9rem, 0.75rem + 0.6vmin, 1.5rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.06em;
  color: var(--kuyil-text);
}

/* ---- captions (ChatPanel, captions mode) --------------------------------
   The assistant speaks in Fraunces at reading-across-the-room size; the
   visitor's own words sit above in a quiet italic of the same family. */
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .chat-panel--captions {
  background: none;
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .chat-panel--captions .chat-line.assistant .chat-bubble {
  font-family: var(--kuyil-font-display);
  font-size: var(--kolam-cap);
  font-weight: 380;
  line-height: 1.3;
  letter-spacing: 0;
  font-variation-settings: "opsz" 144;
  color: var(--kuyil-text);
  text-shadow: 0 2px 28px color-mix(in srgb, var(--kuyil-bg) 70%, transparent);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .chat-panel--captions .chat-line.user .chat-bubble {
  font-family: var(--kuyil-font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1rem, 0.8rem + 0.9vmin, 1.75rem);
  line-height: 1.4;
  color: color-mix(in srgb, var(--kuyil-text) 72%, transparent);
  background: none;
}
/* Ask-list: ui face, marigold pulli bullets ringed like a kolam dot. */
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .chat-panel--captions .chat-asklist {
  gap: 0.7rem;
  margin-top: var(--space-3);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .chat-panel--captions .chat-asklist li {
  font-family: var(--kuyil-font-ui);
  font-size: clamp(1.05rem, 0.85rem + 0.9vmin, 1.75rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--kuyil-text);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .chat-asklist li::before {
  width: 0.36em;
  height: 0.36em;
  margin-top: 0.55em;
  background: var(--kuyil-accent);
  box-shadow: 0 0 0 0.16em color-mix(in srgb, var(--kuyil-accent) 22%, transparent);
}
/* Boxed fallback bubbles (no live call site, kept coherent). */
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .chat-panel:not(.chat-panel--captions) .chat-bubble {
  border-radius: 22px;
  border-end-start-radius: 6px;
  background: var(--kuyil-surface-1);
  border-color: var(--kuyil-line);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .chat-panel:not(.chat-panel--captions) .chat-line.user .chat-bubble {
  border-end-end-radius: 6px;
  border-end-start-radius: 22px;
}

/* ---- welcome / greeting: the italic Fraunces salutation (D01) ---------- */
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .welcome-card__word {
  font-family: var(--kuyil-font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2rem, 1rem + 4.6vmin, 5.5rem);
  line-height: 1.3;
  letter-spacing: 0;
  font-variation-settings: "opsz" 144;
  color: var(--kuyil-text);
  text-shadow: 0 0 1.2em color-mix(in srgb, var(--kuyil-accent) 16%, transparent);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .welcome-card__invite,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .welcome-card__sub {
  font-family: var(--kuyil-font-ui);
  font-weight: 400;
  font-size: clamp(1rem, 0.8rem + 0.9vmin, 1.75rem);
  line-height: 1.4;
  color: var(--kuyil-ink-muted);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .welcome-card__dot {
  background: var(--kuyil-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--kuyil-accent) 18%, transparent);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .greeting-text,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .fnb-greet__headline,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .fnb-greeting__text,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .duet-greet__text {
  font-family: var(--kuyil-font-display);
  font-style: italic;
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: 0;
  font-variation-settings: "opsz" 144;
  color: var(--kuyil-text);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .greeting-subtitle,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .fnb-greet__sub,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .fnb-greeting__sub,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .duet-greet__sub {
  font-family: var(--kuyil-font-ui);
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  color: var(--kuyil-ink-muted);
}
/* Under-orb identity line (tenant tagline): small italic plaque text. */
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .fnb-hero__identity,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .fnb-idline,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .duet-identity {
  font-family: var(--kuyil-font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(0.95rem, 0.8rem + 0.6vmin, 1.5rem);
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--kuyil-ink-muted);
}

/* ---- the talk control: a solid marigold disc in a pulli ring (D01) -----
   The disc keeps its fill in every press state; the states still read by
   RING hue (arming accent, live mint bloom, sent orchid, discarded dim) —
   the component's contract — just drawn outside the disc. */
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .mic-button {
  position: relative;
  /* Clears the pulli ring (it reaches ~0.37 × the disc below the disc). */
  gap: calc(var(--kolam-mic) * 0.42);
  /* …and above it, so a caption never sits on the petals. */
  margin-block-start: calc(var(--kolam-mic) * 0.3);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .mic-button__btn {
  z-index: 1;
  width: var(--kolam-mic);
  height: var(--kolam-mic);
  border: 0;
  background: var(--kuyil-accent);
  color: var(--kuyil-on-accent);
  box-shadow:
    0 0 0 clamp(5px, 0.8vmin, 8px) var(--kuyil-surface-1),
    0 0 0 calc(clamp(5px, 0.8vmin, 8px) + 1.5px) color-mix(in srgb, var(--kuyil-accent) 45%, transparent),
    0 16px 36px color-mix(in srgb, var(--kuyil-accent) 22%, transparent);
}
/* Pulli ring — accent petals on ::before, ivory dots on ::after; both are
   glyph-free SVG masks centred on the disc and painted beneath it. */
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .mic-button::before,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .mic-button::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: calc(var(--kolam-mic) / 2);
  width: calc(var(--kolam-mic) * var(--kolam-ring));
  height: calc(var(--kolam-mic) * var(--kolam-ring));
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity 0.25s ease, background-color 0.25s ease;
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .mic-button::before {
  background: var(--kuyil-accent);
  -webkit-mask: var(--kolam-ring-petals) center / contain no-repeat;
  mask: var(--kolam-ring-petals) center / contain no-repeat;
  opacity: 0.62;
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .mic-button::after {
  background: var(--kuyil-text);
  -webkit-mask: var(--kolam-ring-dots) center / contain no-repeat;
  mask: var(--kolam-ring-dots) center / contain no-repeat;
  opacity: 0.55;
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .mic-button[data-mic-state="arming"]::after,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .mic-button[data-mic-state="live"]::after {
  opacity: 0.95;
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .mic-button[data-mic-state="discarded"]::after {
  opacity: 0.2;
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .mic-button__mic {
  color: var(--kuyil-on-accent);
}
/* The sheen sweep would read as a glare on a flat marigold disc. */
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .mic-button__sheen {
  display: none;
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .mic-button[data-mic-state="arming"] .mic-button__btn {
  background: var(--kuyil-accent);
  box-shadow:
    0 0 0 clamp(5px, 0.8vmin, 8px) var(--kuyil-surface-1),
    0 0 0 calc(clamp(5px, 0.8vmin, 8px) + 3px) color-mix(in srgb, var(--kuyil-accent) 80%, transparent);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .mic-button[data-mic-state="arming"]::before {
  opacity: 1;
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .mic-button[data-mic-state="live"] .mic-button__btn {
  background: var(--kuyil-accent);
  box-shadow:
    0 0 0 clamp(5px, 0.8vmin, 8px) var(--kuyil-surface-1),
    0 0 0 calc(clamp(5px, 0.8vmin, 8px) + 3px) color-mix(in srgb, var(--state-listening) 85%, transparent),
    0 0 var(--mic-glow, 24px) color-mix(in srgb, var(--state-listening) 45%, transparent);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .mic-button[data-mic-state="live"]::before {
  opacity: 1;
  background: color-mix(in srgb, var(--state-listening) 75%, var(--kuyil-accent));
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .mic-button[data-mic-state="live"] .mic-button__mic,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .mic-button[data-mic-state="sent"] .mic-button__mic {
  color: var(--kuyil-on-accent);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .mic-button[data-mic-state="sent"] .mic-button__btn {
  box-shadow:
    0 0 0 clamp(5px, 0.8vmin, 8px) var(--kuyil-surface-1),
    0 0 0 calc(clamp(5px, 0.8vmin, 8px) + 3px) color-mix(in srgb, var(--state-thinking) 80%, transparent),
    0 0 28px color-mix(in srgb, var(--state-thinking) 45%, transparent);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .mic-button[data-mic-state="sent"]::before {
  background: color-mix(in srgb, var(--state-thinking) 70%, var(--kuyil-accent));
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .mic-button[data-mic-state="discarded"]::before {
  opacity: 0.3;
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .mic-button__label {
  font-family: var(--kuyil-font-ui);
  font-size: clamp(1rem, 0.8rem + 0.8vmin, 1.625rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--kuyil-text);
}

/* ---- restart: quiet indigo disc; hit area grown to 88px ---------------- */
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .restart-btn {
  width: 4rem;
  height: 4rem;
  background: var(--kuyil-bg);
  border: 1.5px solid color-mix(in srgb, var(--kuyil-text) 40%, transparent);
  color: var(--kuyil-text);
  opacity: 0.8;
}
/* Invisible 88px touch target (5.5rem) centred on the 64px disc. */
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .restart-btn::after {
  content: "";
  position: absolute;
  inset: -0.75rem;
  border-radius: 50%;
}

/* ---- mic meter / orb hint ----------------------------------------------- */
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .mic-meter__bar,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .mic-meter__fill {
  border-radius: 999px;
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .orb-hint__line {
  font-family: var(--kuyil-font-ui);
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: none;
}

/* ---- arched cards: registration, order confirm, ticket ------------------ */
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .reg-form,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .reg-card,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .reg-summary,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .order-placed,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .ticket-card,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .menu-card {
  background: var(--kolam-card-bg);
  border: 1px solid var(--kolam-card-rim);
  border-radius: var(--kolam-arch);
  box-shadow: var(--kolam-card-shadow);
  /* One opaque surface — no blur layer needed under it. */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Registration form (D06): labels in the ui face (no uppercase — they are
   tenant/LLM text in the visitor's script), values in Fraunces on a hand-
   ruled underline; the active field is a marigold-ruled well. */
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .reg-form {
  padding-top: calc(var(--kolam-rise) * 0.7 + var(--space-3));
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .reg-form__divider {
  height: 6px;
  background: var(--kolam-pulli);
  opacity: 0.7;
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .reg-form__row {
  border-radius: 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--kuyil-text) 16%, transparent);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .reg-form__row.is-active {
  background: color-mix(in srgb, var(--kuyil-accent) 8%, transparent);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--kuyil-text) 12%, transparent),
    inset 0 -2px 0 var(--kuyil-accent);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .reg-form__label,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .reg-card__label,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .reg-summary__label {
  font-family: var(--kuyil-font-ui);
  text-transform: none;
  letter-spacing: 0.01em;
  line-height: 1.3;
  color: var(--kuyil-ink-muted);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .reg-form__row.is-active .reg-form__label {
  color: var(--kuyil-accent);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .reg-form__value,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .reg-card__value,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .reg-summary__value {
  font-family: var(--kuyil-font-display);
  font-weight: 400;
  line-height: 1.3;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--kuyil-text);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .reg-form__arrow,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .reg-summary__check {
  color: var(--kuyil-accent);
}
/* Guest-book rules (.reg-row hook): square rows on full-width hand rules, a
   narrow label column; the active field lifts on a soft marigold wash and
   its value is underlined in marigold, like a pen line being written. */
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .reg-form {
  --reg-label-w: 30%;
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .reg-form__row.reg-row {
  border-radius: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--kuyil-text) 18%, transparent);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .reg-form__row.reg-row.is-active {
  background: linear-gradient(to top, color-mix(in srgb, var(--kuyil-accent) 12%, transparent), transparent 80%);
  box-shadow: none;
  border-bottom-color: transparent;
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .reg-row.is-active .reg-row__value {
  box-shadow: inset 0 -2px 0 var(--kuyil-accent);
  min-height: 1.6em;
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .reg-form__row.reg-row.is-rejected {
  background: color-mix(in srgb, var(--state-error) 10%, transparent);
  box-shadow: inset 0 -2px 0 var(--state-error);
}
@media (orientation: landscape) {
  :root[data-kuyil-theme="kolam"][data-kuyil-scheme] .reg-form--dense {
    padding-top: calc(var(--kolam-rise) * 0.45 + var(--space-2));
  }
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .reg-form__input {
  border-radius: var(--kuyil-radius-control);
  background: var(--kuyil-bg);
  font-family: var(--kuyil-font-display);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .reg-card__divider {
  background: var(--kolam-pulli);
  height: 6px;
  opacity: 0.7;
}

/* ---- order dock: arched tray, dot leaders, tabular rupees (D07) -------- */
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .order-dock {
  padding: calc(var(--kolam-rise-sm) * 0.55 + var(--space-2)) var(--space-5) var(--space-3);
  gap: var(--space-4);
  background: var(--kolam-card-bg);
  border: 1px solid var(--kolam-card-rim);
  border-radius: var(--kolam-arch-sm);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--kuyil-text) 8%, transparent),
    0 -18px 48px color-mix(in srgb, var(--kuyil-bg) 40%, #000 60%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .order-dock__glyph {
  color: var(--kuyil-accent);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .order-dock__lines {
  gap: var(--space-3);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .order-dock__line {
  gap: var(--space-3);
  padding: 0.35rem 0.35rem 0.35rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--kuyil-text) 4%, transparent);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .order-dock__thumb {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--kuyil-accent) 55%, transparent);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .order-dock__thumb--swatch {
  background: var(--kuyil-surface-2);
  border: 0;
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .order-dock__name {
  font-family: var(--kuyil-font-display);
  font-size: clamp(1rem, 0.8rem + 0.8vmin, 1.6rem);
  font-weight: 420;
  line-height: 1.3;
  color: var(--kuyil-text);
}
/* Dot leader between the name and its price — drawn, not typed. */
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .order-dock__amount {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--kuyil-font-display);
  font-size: clamp(0.95rem, 0.8rem + 0.6vmin, 1.45rem);
  line-height: 1.3;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--kolam-ink-soft);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .order-dock__amount::before {
  content: "";
  width: 2.25rem;
  height: 4px;
  align-self: center;
  background: var(--kolam-dots);
}
/* Stepper: one indigo pill holding two round keys. The visible key is
   ~64px; an invisible ring grows each hit area to 88px on the kiosk (the
   pill's 1.5rem gap keeps the two hit areas from overlapping), 44px+ on
   small widget screens. */
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .order-dock__step {
  gap: 1.5rem;
  padding: 0;
  border-radius: 999px;
  background: var(--kuyil-bg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--kuyil-text) 20%, transparent);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .order-dock__btn {
  position: relative;
  width: clamp(2.75rem, 6vmin, 4rem);
  height: clamp(2.75rem, 6vmin, 4rem);
  border: 0;
  background: transparent;
  color: var(--kuyil-text);
  font-family: var(--kuyil-font-ui);
  font-size: clamp(1.25rem, 0.9rem + 1vmin, 2rem);
  font-weight: 400;
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .order-dock__btn::after {
  content: "";
  position: absolute;
  inset: calc((clamp(2.75rem, 8.15vmin, 5.5rem) - clamp(2.75rem, 6vmin, 4rem)) / -2);
  border-radius: 50%;
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .order-dock__btn:last-child:not(:disabled) {
  background: var(--kuyil-accent);
  color: var(--kuyil-on-accent);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .order-dock__total {
  font-family: var(--kuyil-font-display);
  font-size: clamp(1.5rem, 1rem + 2vmin, 4rem);
  font-weight: 420;
  line-height: 1.1;
  font-variant-numeric: lining-nums tabular-nums;
  font-variation-settings: "opsz" 120;
  color: var(--kuyil-text);
}

/* ---- menu card (default kiosk grid) ------------------------------------ */
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .menu-card {
  padding-top: calc(var(--kolam-rise) * 0.6 + var(--space-3));
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .menu-card__cat,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .menu-sheet__group-name {
  font-family: var(--kuyil-font-ui);
  text-transform: none;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: var(--kuyil-accent);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .menu-tile {
  background: color-mix(in srgb, var(--kuyil-text) 4%, transparent);
  border-radius: 26px;
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .menu-tile__name,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .menu-card__line-name,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .menu-sheet__title {
  font-family: var(--kuyil-font-display);
  font-weight: 420;
  line-height: 1.3;
  color: var(--kuyil-text);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .menu-tile__price,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .menu-sheet__price,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .menu-card__total,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .menu-card__subtotal,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .menu-card__tax {
  font-family: var(--kuyil-font-display);
  font-variant-numeric: lining-nums tabular-nums;
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .menu-sheet__panel {
  background: var(--kolam-card-bg);
  border: 1px solid var(--kolam-card-rim);
  border-radius: var(--kolam-arch);
  padding-top: calc(var(--kolam-rise) * 0.6 + var(--space-3));
}

/* ---- menu list (crema reference board): dot-led, Fraunces items -------- */
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .menu-list__heading {
  font-family: var(--kuyil-font-ui);
  font-size: clamp(0.85rem, 0.7rem + 0.5vmin, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  line-height: 1.3;
  color: var(--kuyil-accent);
  padding-bottom: 0.35rem;
  background: var(--kolam-dots);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .menu-list__items li {
  font-family: var(--kuyil-font-display);
  font-size: clamp(0.95rem, 0.75rem + 0.7vmin, 1.5rem);
  line-height: 1.35;
}

/* ---- order placed (pickup confirm) -------------------------------------- */
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .order-placed {
  padding-top: calc(var(--kolam-rise) * 0.6 + var(--space-4));
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .order-placed__number,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .order-placed__token {
  font-family: var(--kuyil-font-display);
  font-weight: 420;
  font-variant-numeric: lining-nums tabular-nums;
  font-variation-settings: "opsz" 144;
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .order-placed__line,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .order-placed__row {
  line-height: 1.35;
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .order-placed__amount,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .order-placed__row--total {
  font-family: var(--kuyil-font-display);
  font-variant-numeric: lining-nums tabular-nums;
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .order-placed__row--total {
  border-top: 0;
  padding-top: 0.6rem;
  background: var(--kolam-dots);
  background-position: 0 0;
}

/* ---- cinema: ticket, seats, rails, booking strip ------------------------ */
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .ticket-card {
  padding-top: calc(var(--kolam-rise) * 0.6 + var(--space-4));
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .ticket-card__movie,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .poster-card__title,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .booking-strip__movie,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .cinema-idle__name {
  font-family: var(--kuyil-font-display);
  font-weight: 420;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .ticket-card__when,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .ticket-card__ref,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .ticket-card__seat,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .booking-strip__when,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .booking-strip__seat,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .concession-card__price {
  font-variant-numeric: lining-nums tabular-nums;
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .ticket-card__qr {
  background: var(--kuyil-text);
  border-radius: 24px;
  box-shadow: 0 0 0 6px var(--kuyil-surface-1), 0 0 0 7px var(--kolam-card-rim);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .ticket-card__seat {
  border-radius: 999px;
  font-family: var(--kuyil-font-display);
}

:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .seat-map__screen {
  border-top-style: dotted;
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .seat {
  border-radius: 14px 14px 8px 8px;
  font-family: var(--kuyil-font-ui);
  font-variant-numeric: lining-nums tabular-nums;
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .seat-map__letter {
  font-family: var(--kuyil-font-display);
  font-style: italic;
  color: var(--kuyil-ink-muted);
}

:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .poster-card,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .concession-card {
  border-radius: var(--kolam-arch-sm);
  background: var(--kolam-card-bg);
  border: 1px solid var(--kolam-card-rim);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .poster-card__art,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .concession-card__art {
  border-radius: var(--kolam-arch-sm);
  overflow: hidden;
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .concession-card__name {
  font-family: var(--kuyil-font-display);
  line-height: 1.3;
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .concession-card__price {
  font-family: var(--kuyil-font-display);
}

:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .booking-strip {
  background: var(--kuyil-surface-1);
  border: 1px solid var(--kuyil-line);
  border-radius: 999px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ---- attract / start (idle) --------------------------------------------- */
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .attract__name,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .start__name {
  font-family: var(--kuyil-font-display);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-transform: none;
  font-variation-settings: "opsz" 96;
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .attract__tagline,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .start__tagline,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .start__greet-sub {
  font-family: var(--kuyil-font-display);
  font-style: italic;
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--kuyil-ink-muted);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .aw,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .start__greet-headline {
  font-family: var(--kuyil-font-display);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: 0;
  font-variation-settings: "opsz" 144;
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .attract__dot,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .start__dot {
  background: var(--kuyil-accent);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .start__button {
  background: var(--kuyil-accent);
  color: var(--kuyil-on-accent);
  box-shadow:
    0 0 0 8px var(--kuyil-surface-1),
    0 0 0 9.5px color-mix(in srgb, var(--kuyil-accent) 45%, transparent);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .start__label {
  font-family: var(--kuyil-font-ui);
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: none;
}

/* ---- floating words: faint Fraunces italics drifting on the weave ------ */
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .floating-word {
  font-family: var(--kuyil-font-display);
  font-style: italic;
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}

/* ---- live visitor transcript (D03): their own words in ivory, ui face,
   a thin marigold caret at the end — not the dim dashed placeholder. The
   base rule in chat.css carries !important on colour/border, so this one
   must too (scoped to kolam, nowhere else). ------------------------------ */
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .chat-panel--captions .chat-line.user.chat-line--live .chat-bubble.listening-placeholder-bubble {
  font-family: var(--kuyil-font-ui);
  font-style: normal;
  font-weight: 400;
  font-size: calc(var(--kolam-cap) * 0.82);
  line-height: 1.4;
  letter-spacing: 0;
  color: color-mix(in srgb, var(--kuyil-text) 80%, transparent) !important;
  border: 0 !important;
  background: none;
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .chat-line--live .listening-placeholder-bubble span::after {
  width: 2px;
  height: 1.05em;
  margin-left: 0.18em;
  margin-bottom: -0.12em;
  border-radius: 1px;
  background: var(--kuyil-accent);
}

/* ---- the seam: a row of pulli dots instead of a solid filament --------
   The layouts' state colour + pulse stay intact (--seam-ink, opacity);
   the mask only perforates the line into kolam dots. */
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .fnb-seam,
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .duet-seam {
  height: 5px;
  block-size: 5px;
  border-radius: 0;
  box-shadow: none;
  -webkit-mask: radial-gradient(circle, #000 0 1.5px, transparent 2.1px) 0 50% / 12px 100% repeat-x;
  mask: radial-gradient(circle, #000 0 1.5px, transparent 2.1px) 0 50% / 12px 100% repeat-x;
}

/* ---- duet counter sheet: one arched counter, the order rail sits flat
   on it (no tray-in-a-tray). ------------------------------------------- */
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .duet-sheet {
  border: 0;
  border-radius: 50% 50% 0 0 / var(--kolam-rise) var(--kolam-rise) 0 0;
  background: var(--kolam-card-bg);
  box-shadow:
    inset 0 1px 0 var(--kolam-card-rim),
    0 -24px 56px color-mix(in srgb, var(--kuyil-bg) 40%, #000 60%);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .duet-dock .order-dock {
  padding-top: var(--space-3);
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* ---- marquee bill: same Fraunces plaque as everywhere else (the layout
   shrinks + tracks its wordmark; kolam keeps sentence case, no tracking). */
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .fnb-marquee .fnb-brand .brand-lockup__name {
  font-size: clamp(1.25rem, 0.9rem + 1.4vmin, 2.625rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-indent: 0;
}

/* ---- vendor-rejected order: keep the wordless ember rim the component
   draws (the arched-card rim above would otherwise replace it). -------- */
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .order-placed--failed {
  border-color: color-mix(in oklab, var(--state-error) 55%, transparent);
  box-shadow:
    var(--kolam-card-shadow),
    0 0 1.75rem color-mix(in oklab, var(--state-error) 26%, transparent);
}
/* The error seam is the wordless failure signal — fatter dots so it reads
   without the glow the mask removes. */
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .fnb-seam[data-state="error"],
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .duet-seam[data-state="error"] {
  height: 7px;
  block-size: 7px;
  -webkit-mask-image: radial-gradient(circle, #000 0 2.4px, transparent 3px);
  mask-image: radial-gradient(circle, #000 0 2.4px, transparent 3px);
}
/* Focus keeps captions in a narrow reading column — temper the size so a
   reply stays ~3–4 lines instead of a tall ribbon. */
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .fnb-focus .chat-panel--captions .chat-line.assistant .chat-bubble {
  font-size: calc(var(--kolam-cap) * 0.8);
}

/* ---- control dock (.kiosk-dock): the arched indigo shelf (D01/D07) -----
   A wide arch-topped shelf holding restart (start), talk (centre) and the
   balancing end slot; the shelf is opaque (no blur). Restart grows to the
   D07 96px-class disc inside it (its ::after hit ring stays anchored — the
   button is position: relative, never static). */
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .kiosk-dock {
  display: grid;
  grid-template-columns: minmax(5.5rem, 1fr) auto minmax(5.5rem, 1fr);
  align-items: center;
  justify-items: center;
  column-gap: var(--space-5);
  position: relative;
  box-sizing: border-box;
  width: min(100%, 60rem);
  padding: clamp(1.75rem, 3.6vmin, 3rem) clamp(var(--space-4), 4vmin, 4rem) var(--space-4);
  border-radius: 50% 50% 2.5rem 2.5rem / clamp(3rem, 7vmin, 5.6rem) clamp(3rem, 7vmin, 5.6rem) 2.5rem 2.5rem;
  background: var(--kolam-card-bg);
  border: 1px solid var(--kolam-card-rim);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--kuyil-text) 8%, transparent),
    0 -24px 60px color-mix(in srgb, var(--kuyil-bg) 40%, #000 60%);
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .kiosk-dock > .mic-button {
  grid-column: 2;
  grid-row: 1;
  margin-inline: 0;
}
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .kiosk-dock > .restart-btn {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  inset: auto;
  width: 5.5rem;
  height: 5.5rem;
  opacity: 1;
}
/* Top-bar clock: tabular rupee-style numerals in the ui face. */
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .kiosk-clock {
  font-family: var(--kuyil-font-ui);
  font-size: clamp(var(--text-base), 0.6rem + 1.1vmin, 1.65rem);
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--kolam-ink-soft);
}
/* The order lines pane wraps (and scrolls past ~3 rows) — give the
   steppers' invisible 88px hit rings room inside it so the pane's clip
   never trims a ring. */
:root[data-kuyil-theme="kolam"][data-kuyil-scheme] .order-dock__lines {
  padding: 0.75rem;
  margin: -0.75rem;
}
/* Landscape: the shelf hugs its controls so the caption band and menu
   below keep their height. */
@media (orientation: landscape) {
  :root[data-kuyil-theme="kolam"][data-kuyil-scheme] .kiosk-dock {
    width: min(100%, 34rem);
    padding-block: clamp(1.25rem, 2.6vmin, 2rem) var(--space-2);
  }
}
/* Retail button-wake dock (restart · talk · type + scan): the 34rem shelf
   cannot hold four controls with the talk control centred — take the whole
   column with slimmer side padding so the end column fits both toggles
   clear of the talk ornament (core.css balances the columns). */
@media (orientation: landscape) {
  :root[data-kuyil-theme="kolam"][data-kuyil-scheme] .kiosk-dock:has(> .restart-btn):has(> .scan-control):has(> .type-composer) {
    width: 100%;
    padding-inline: var(--space-4);
  }
}
