/* The live feed: the home page (/) and every room (/live.html?room=). docs/design/visual-system.md
   v1 tokens and type; layout from Roger's decision of 2026-11-02 (docs/decisions.md): a live site
   first, a shop second.
   Phone: one room fills the screen; overlays in the manner of a live app (host and Live at the
   top, follow / share / bag on a right-hand rail, the chat, the piece on air and "Ask <host>" at the
   bottom); swipe up or down for the next or previous live show.
   Desktop: the 9:16 stage is the centre of the page; the other live shows run down a rail on the
   left, the piece on air and the bag sit beside them, the chat sits on the right. One grid, every
   column the height of the stage. */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-500.woff2") format("woff2");
}

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-var.woff2") format("woff2-variations"), url("/fonts/inter-var.woff2") format("woff2");
}

:root {
  --ivory: #f7f5f0;
  --paper: #ffffff;
  --sand: #e8dfd3;
  --taupe: #b3a18d;
  --espresso: #4a443e;
  --charcoal: #242424;
  --signal: #8a2f25;
  --accent: var(--charcoal);
  --scrim: rgba(36, 36, 36, 0.62);
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-ui: "Inter Variable", "Inter", -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 12.8px;
  --fs-sm: 16px;
  --fs-md: 20px;
  --fs-lg: 25px;
  --fs-xl: 31px;
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --radius: 2px;
  --head-h: 64px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--charcoal);
  color: var(--ivory);
  font-family: var(--font-ui);
  font-size: var(--fs-sm);
  line-height: 1.4;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
}

:focus-visible {
  outline: 2px solid var(--ivory);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

.tnum {
  font-variant-numeric: tabular-nums;
}

button {
  font: inherit;
  touch-action: manipulation;
}

/* ---------- shell (phone first) ---------- */
.watch {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--charcoal);
}

.watch-head,
.rail,
.shop,
.chat-head {
  display: none;
}

.stage-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
  touch-action: pan-x; /* vertical swipes are ours */
}

.stage,
.peek {
  position: absolute;
  inset: 0;
  background: #000;
  transition: transform 220ms ease-out;
}

.stage video.clip,
.peek video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
  pointer-events: none;
}

/* A short, stable cross-fade keeps the portrait container fixed as source
   clips with different dimensions are swapped. */
.stage video.clip.clip-enter {
  animation: clip-enter 180ms ease-out both;
}

@keyframes clip-enter {
  from { opacity: 0.84; transform: scale(1.012); }
  to { opacity: 1; transform: scale(1); }
}

.peek {
  z-index: 1;
  visibility: hidden;
}

.peek.on {
  visibility: visible;
  z-index: 3;
}

.stage {
  z-index: 2;
}

/* A1.12: the previous room's last frame carries the switch, under the new stage's video, and
   fades out when the new room has a picture of its own (live.js carryIn/dropCarry). */
.stage-carry {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #000;
  opacity: 1;
  transition: opacity 200ms ease-out;
  pointer-events: none;
}
.stage-carry.out {
  opacity: 0;
}
.stage-carry video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* ---------- top overlay ---------- */
.top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: calc(env(safe-area-inset-top, 0px) + var(--s2)) var(--s3) var(--s6);
  background: linear-gradient(to bottom, rgba(36, 36, 36, 0.66), rgba(36, 36, 36, 0));
  pointer-events: none;
}

.top > * {
  pointer-events: auto;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--ivory);
  cursor: pointer;
}

/* The host name in serif with the plain words "AI host" beside it: the disclosure is part of the name
   line, every time the name appears over the video (N108). */
.host-line {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s2);
  min-height: 44px;
  align-items: center;
  min-width: 0;
  color: var(--ivory);
  text-decoration: none;
}

.host-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-md);
  line-height: 1;
  white-space: nowrap;
}

.ai-tag {
  font-size: var(--fs-xs);
  padding: 2px 6px;
  border: 1px solid rgba(247, 245, 240, 0.7);
  border-radius: var(--radius);
  white-space: nowrap;
}

.live-badge {
  margin-left: var(--s1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: var(--radius);
  background: var(--signal);
  color: var(--ivory);
  font-size: var(--fs-xs);
  font-weight: 500;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ivory);
  flex: none;
}

body[data-off-air] .live-badge {
  background: var(--espresso);
}

.test-badge {
  padding: 3px 8px;
  border: 1px dashed rgba(247, 245, 240, 0.8);
  border-radius: var(--radius);
  font-size: var(--fs-xs);
}

/* Phone: the top line keeps the name, "AI host" and Live whole; Test sits on the room-name line. */
.host-line,
.live-badge {
  flex: none;
}

.top .test-badge {
  display: none;
}

.room-name .test-badge {
  margin-right: var(--s2);
  padding: 1px 6px;
}

.unmute {
  margin-left: auto;
  min-height: 44px;
  padding: 0 var(--s3);
  border: 2px solid var(--ivory);
  border-radius: var(--radius);
  background: var(--charcoal);
  color: var(--ivory);
  font-size: var(--fs-xs);
  cursor: pointer;
  white-space: nowrap;
}

.unmute:hover,
.unmute:focus-visible {
  background: var(--ivory);
  color: var(--charcoal);
}

/* Desktop captions toggle (the phone rail's CC button is hidden on desktop). Phones: not shown. */
.cc-desk {
  display: none;
}

@media (min-width: 900px) {
  .cc-desk {
    display: inline-flex;
    align-items: center;
    margin-left: var(--s2);
  }

  .unmute[hidden] + .cc-desk {
    margin-left: auto;
  }

  .cc-desk[aria-pressed="false"] {
    text-decoration: line-through;
    opacity: 0.8;
  }
}

.room-name {
  position: absolute;
  z-index: 5;
  top: calc(env(safe-area-inset-top, 0px) + 56px);
  left: var(--s4);
  right: 88px;
  margin: 0;
  font-size: var(--fs-xs);
  color: rgba(247, 245, 240, 0.86);
  text-shadow: 0 1px 2px rgba(36, 36, 36, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- the right-hand rail (phone) ---------- */
.side-actions {
  position: absolute;
  z-index: 6;
  right: var(--s2);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 236px);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.act {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 56px;
  min-height: 56px;
  border: 0;
  border-radius: var(--radius);
  background: rgba(36, 36, 36, 0.38);
  color: var(--ivory);
  cursor: pointer;
}

.act-label {
  font-size: 11px;
}

.act[aria-pressed="true"] svg {
  fill: var(--ivory);
}

.act .count,
.head-bag .count {
  position: absolute;
  top: 4px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--ivory);
  color: var(--charcoal);
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.act .count:empty,
.head-bag .count:empty {
  display: none;
}

.status,
.toast {
  position: absolute;
  z-index: 8;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: var(--s2) var(--s3);
  border-radius: var(--radius);
  background: rgba(36, 36, 36, 0.86);
  color: var(--ivory);
  font-size: var(--fs-xs);
  text-align: center;
  max-width: calc(100% - 32px);
}

.status {
  top: calc(env(safe-area-inset-top, 0px) + 96px);
}

.toast {
  top: calc(env(safe-area-inset-top, 0px) + 132px);
}

.swipe-hint {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 42%;
  transform: translateX(-50%);
  margin: 0;
  padding: var(--s2) var(--s3);
  border-radius: var(--radius);
  background: rgba(36, 36, 36, 0.62);
  color: var(--ivory);
  font-size: var(--fs-xs);
  white-space: nowrap;
  pointer-events: none;
}

/* N192: an off-air or empty panel covers the stage; the swipe hint never shows through it. */
.panel-over:not([hidden]) ~ .swipe-hint,
#stage-wrap:has(.panel-over:not([hidden])) .swipe-hint {
  display: none;
}

/* ---------- panels over the stage: off the air, nothing live ---------- */
.panel-over {
  position: absolute;
  z-index: 7;
  left: var(--s4);
  right: var(--s4);
  top: 30%;
  padding: var(--s5);
  border-radius: var(--radius);
  background: rgba(36, 36, 36, 0.92);
  color: var(--ivory);
}

/* Off the air the panel says it all: no toast repeating it, no follow/share over the panel. */
body[data-off-air] .toast,
body[data-off-air] #follow-btn,
body[data-off-air] #share-btn {
  display: none;
}

.panel-over h2 {
  margin: 0 0 var(--s2);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-xl);
  line-height: 1.1;
}

.panel-over p {
  margin: 0 0 var(--s3);
}

.empty .countdown {
  font-size: var(--fs-lg);
  margin: 0 0 var(--s3);
}

.replay-tag {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid rgba(247, 245, 240, 0.7);
  border-radius: var(--radius);
  font-size: var(--fs-xs);
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s4);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--s4);
  border: 1px solid var(--charcoal);
  border-radius: var(--radius);
  background: transparent;
  color: var(--charcoal);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.btn.primary {
  background: var(--charcoal);
  color: var(--ivory);
}

.btn.light {
  border-color: var(--ivory);
  background: var(--ivory);
  color: var(--charcoal);
}

.btn[disabled] {
  background: var(--sand);
  border-color: var(--sand);
  color: var(--espresso);
  cursor: default;
}

.link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--espresso);
  font-size: var(--fs-xs);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link.light {
  color: var(--ivory);
}

/* ---------- bottom overlay: chat, the piece on air, Ask <host> ---------- */
section.chat {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 0 var(--s3) calc(env(safe-area-inset-bottom, 0px) + var(--s2));
}

/* The scrim behind the chat and the bar (visual-system.md §2: charcoal 0–70%, ivory text). */
section.chat::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: -96px;
  z-index: -1;
  background: linear-gradient(to top, rgba(36, 36, 36, 0.72) 0%, rgba(36, 36, 36, 0.55) 70%, rgba(36, 36, 36, 0) 100%);
  pointer-events: none;
}

.feed {
  list-style: none;
  margin: 0 72px var(--s2) 0;
  padding: 0;
  max-height: 22dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(to bottom, transparent, #000 18px);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.line {
  align-self: flex-start;
  max-width: 100%;
  padding: 2px 0;
  font-size: 15px;
  color: var(--ivory);
  overflow-wrap: anywhere;
  text-shadow: 0 1px 2px rgba(36, 36, 36, 0.55);
}

.line .who {
  font-weight: 500;
  margin-right: 6px;
  color: rgba(247, 245, 240, 0.8);
}

.line.reply {
  padding-left: var(--s3);
  border-left: 2px solid var(--ivory);
}

.line.reply .who {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  line-height: 1;
  color: var(--ivory);
}

.composer {
  display: flex;
  gap: var(--s2);
}

.composer input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 var(--s4);
  border: 0;
  border-radius: var(--radius);
  background: var(--sand);
  color: var(--charcoal);
  font: inherit;
  font-size: 16px; /* no iOS zoom */
}

.composer input::placeholder {
  color: var(--espresso);
}

.composer input:disabled {
  opacity: 0.8;
}

.composer button {
  min-height: 48px;
  padding: 0 var(--s5);
  border: 0;
  border-radius: var(--radius);
  background: var(--charcoal);
  color: var(--ivory);
  font-weight: 500;
  cursor: pointer;
}

.composer button:disabled {
  background: var(--espresso);
}

/* ---------- the piece on air: compact bar (phone) / panel (desktop) ---------- */
.clip-requests {
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
  gap: 8px;
  padding: 8px 12px;
}
.clip-requests button {
  min-height: 44px;
  min-width: 0;
  font: inherit;
}
.clip-requests .clip-request {
  flex: 1 1 0;
  white-space: normal;
  background: var(--charcoal);
  color: var(--ivory);
}
.clip-requests button:hover:not(:disabled) { background: var(--espresso); }
.clip-requests :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.clip-requests :disabled { opacity: .55; cursor: not-allowed; }
.clip-request-attribution {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 210px);
  left: 16px;
  right: 72px;
  z-index: 5;
  width: fit-content;
  max-width: calc(100% - 88px);
  padding: 6px 10px;
  color: #fff;
  background: #242424;
  border-radius: 8px;
  font-size: 13px;
  overflow-wrap: anywhere;
  pointer-events: none;
}
#clip-requests-desktop { display: none; }
@media (min-width: 900px) {
  #clip-requests-desktop { display: flex; padding-inline: 0; }
  #clip-requests-desktop button:focus-visible { outline-color: var(--charcoal); }
  #clip-requests-mobile { display: none; }
}

.product-strip {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  align-items: stretch;
  margin: 0 0 var(--s2);
  padding: var(--s2);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--charcoal);
  width: 100%;
}

.product-strip .open {
  display: flex;
  align-items: center;
  gap: var(--s2);
  flex: none;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.product-art {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--sand);
  flex: none;
}

.product-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* No picture (none in the product source, or it failed to load): the name, set on sand. */
.product-art .art-name {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 6px;
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.1;
  color: var(--espresso);
  overflow: hidden;
}

.product-art.has-image .art-name {
  visibility: hidden;
}

.product-strip .art {
  width: 44px;
  height: 55px;
}

.product-strip .art .art-name {
  font-size: 9px;
  padding: 3px;
}

.product-strip .meta {
  display: block;
  flex: 1;
  min-width: 0;
}

.product-strip .meta .t {
  display: block;
  font-size: var(--fs-xs);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-strip .meta .p {
  display: block;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.product-strip .actions {
  display: flex;
  gap: 6px;
  flex: none;
  min-width: 0;
  width: 100%;
}

.product-strip .btn {
  flex: 1 1 0;
  min-height: 44px;
  min-width: 0;
  padding: 0 var(--s3);
  font-size: var(--fs-xs);
  overflow-wrap: anywhere;
}

/* The ad's piece stays pinned until the viewer dismisses it (A1.11). */
.product-strip {
  position: relative;
}

.product-strip .unpin {
  position: absolute;
  top: -22px;
  left: -6px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--ivory);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- sheets: product, Buy now, bag, follow ---------- */
dialog.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  margin: 0 auto;
  width: 100%;
  max-width: 560px;
  max-height: 92dvh;
  overflow-y: auto;
  border: 0;
  border-radius: 14px 14px 0 0;
  padding: var(--s5) var(--s4) calc(env(safe-area-inset-bottom, 0px) + var(--s5));
  background: var(--paper);
  color: var(--charcoal);
  box-shadow: 0 -8px 24px rgba(36, 36, 36, 0.18);
}

dialog.sheet[open] {
  animation: sheet-up 240ms ease-out;
}

@keyframes sheet-up {
  from {
    transform: translateY(16px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

dialog.sheet::backdrop {
  background: rgba(36, 36, 36, 0.55);
}

dialog.sheet h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-lg);
  line-height: 1.15;
  margin: 0 0 var(--s3);
}

dialog.sheet .price {
  font-size: var(--fs-md);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  margin: 0 0 var(--s3);
}

dialog.sheet .price .was {
  color: var(--espresso);
  font-weight: 400;
  text-decoration: line-through;
  margin-left: var(--s2);
}

dialog.sheet .buy-line {
  margin: 0 0 var(--s1);
  font-size: var(--fs-sm);
}

dialog.sheet .field {
  display: grid;
  gap: var(--s1);
  margin: var(--s2) 0;
  font-size: var(--fs-xs);
  color: var(--espresso);
}

dialog.sheet input {
  min-height: 48px;
  border-radius: var(--radius);
  border: 1px solid var(--taupe);
  background: var(--paper);
  color: var(--charcoal);
  padding: 0 var(--s3);
  font-size: 16px;
}

dialog.sheet .btn {
  min-height: 52px;
  margin-top: var(--s2);
  width: 100%;
}

dialog.sheet .sheet-body {
  display: grid;
  gap: var(--s3);
}

dialog.sheet .sheet-art {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 38dvh;
}

dialog.sheet .chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

dialog.sheet .chip {
  min-height: 44px;
  min-width: 44px;
  padding: 0 var(--s4);
  border: 1px solid var(--taupe);
  border-radius: var(--radius);
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
}

dialog.sheet .chip[aria-pressed="true"] {
  background: var(--sand);
  border-color: var(--sand);
}

dialog.sheet .note {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--espresso);
}

dialog.sheet .notice {
  margin: var(--s2) 0 0;
  padding: var(--s2) var(--s3);
  border-left: 2px solid var(--charcoal);
  background: var(--ivory);
  font-size: var(--fs-xs);
}

dialog.sheet .notice.err {
  border-left-color: var(--signal);
  color: var(--signal);
}

dialog.sheet .bag-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

dialog.sheet .bag-line {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: var(--s3);
  align-items: center;
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--sand);
}

dialog.sheet .bag-line .art {
  width: 56px;
  height: 70px;
}

dialog.sheet .bag-line .t {
  display: block;
  font-size: var(--fs-sm);
}

dialog.sheet .bag-line .m {
  display: block;
  font-size: var(--fs-xs);
  color: var(--espresso);
}

dialog.sheet .qty {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  margin-top: var(--s1);
}

dialog.sheet .qty button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--taupe);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--charcoal);
  cursor: pointer;
}

dialog.sheet .amount {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

dialog.sheet .total {
  display: flex;
  justify-content: space-between;
  padding: var(--s3) 0;
  font-size: var(--fs-md);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ---------- desktop: the stage at the centre ---------- */
@media (min-width: 900px) {
  html,
  body {
    background: var(--ivory);
    color: var(--charcoal);
  }

  :focus-visible {
    outline-color: var(--charcoal);
  }

  .watch {
    display: grid;
    grid-template-columns: 112px minmax(240px, 300px) auto minmax(280px, 360px);
    grid-template-rows: var(--head-h) minmax(0, 1fr);
    grid-template-areas:
      "head head head head"
      "rail shop stage chat";
    column-gap: var(--s5);
    row-gap: var(--s4);
    justify-content: center;
    padding: 0 var(--s5) var(--s5);
    background: var(--ivory);
  }

  .watch-head {
    grid-area: head;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: 1px solid var(--sand);
  }

  .swipe-hint {
    top: auto;
    bottom: var(--s5);
  }

  .watch-head .wordmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 120px;
    padding: 0 var(--s3);
    font-family: var(--font-ui);
    font-size: 16px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--charcoal);
    text-decoration: none;
  }

  .menu-btn,
  .head-bag {
    position: relative;
    justify-self: start;
    min-height: 44px;
    padding: 0 var(--s4);
    border: 1px solid var(--taupe);
    border-radius: var(--radius);
    background: transparent;
    color: var(--charcoal);
    cursor: pointer;
  }

  .head-bag {
    justify-self: end;
    padding-right: var(--s6);
  }

  .head-bag .count {
    top: 12px;
    right: 8px;
    background: var(--charcoal);
    color: var(--ivory);
  }

  .only-phone,
  .side-actions,
  .room-name {
    display: none !important;
  }

  .stage-wrap {
    grid-area: stage;
    position: relative;
    inset: auto;
    height: 100%;
    width: 100%;
    min-width: 0;
    aspect-ratio: 9 / 16;
    max-width: calc((100dvh - var(--head-h) - 48px) * 9 / 16);
    border-radius: var(--radius);
  }

  /* Keep the chat in its own column around 1100px; it must never cover stage. */
  @media (max-width: 73.75rem) {
    .watch {
      grid-template-columns: 80px minmax(180px, 220px) minmax(300px, 1fr) minmax(260px, 300px);
      column-gap: var(--s3);
      padding-left: var(--s3);
      padding-right: var(--s3);
    }

    .stage-wrap {
      max-width: none;
      justify-self: stretch;
    }

    section.chat {
      min-width: 0;
      overflow: hidden;
    }
  }

  .top {
    padding: var(--s3);
  }

  .top .test-badge:not([hidden]) {
    display: inline-block;
  }

  /* The rail: the other live shows, each with its current frame. */
  .rail {
    grid-area: rail;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
  }

  .rail-title,
  .shop h3 {
    margin: 0 0 var(--s3);
    font-size: var(--fs-xs);
    color: var(--espresso);
  }

  .rail ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--s3);
  }

  .rail-item {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius);
    background: var(--charcoal);
    overflow: hidden;
    cursor: pointer;
  }

  .rail-item[aria-current="true"] {
    border-color: var(--charcoal);
  }

  .rail-item video,
  .rail-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .rail-item .rail-name {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: var(--s4) 6px 6px;
    background: linear-gradient(to top, rgba(36, 36, 36, 0.8), rgba(36, 36, 36, 0));
    color: var(--ivory);
    font-size: 11px;
    line-height: 1.2;
    text-align: left;
  }

  .rail-item .rail-test {
    position: absolute;
    top: 4px;
    left: 4px;
    padding: 1px 4px;
    border: 1px dashed var(--ivory);
    color: var(--ivory);
    font-size: 10px;
  }

  /* The shop column: the piece on air, the rest of the show, the bag. */
  .shop {
    grid-area: shop;
    display: flex;
    flex-direction: column;
    gap: var(--s4);
    min-height: 0;
    overflow-y: auto;
  }

  .shop-title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: var(--fs-lg);
    line-height: 1.15;
  }

  .product-strip.panel {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s3);
    margin: 0;
    padding: 0;
    background: none;
  }

  .product-strip.panel .open {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s3);
  }

  .product-strip.panel .art.big {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    max-height: 34dvh;
  }

  .product-strip.panel .art.big .art-name {
    font-size: var(--fs-lg);
    padding: var(--s4);
  }

  .product-strip.panel .meta .t {
    white-space: normal;
    font-family: var(--font-display);
    font-size: var(--fs-md);
    line-height: 1.2;
  }

  .product-strip.panel .meta .p {
    font-size: var(--fs-md);
    font-weight: 500;
  }

  .product-strip.panel .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s2);
  }

  .product-strip.panel .btn {
    min-height: 48px;
    font-size: var(--fs-sm);
  }

  .also ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .also-item {
    display: flex;
    gap: var(--s3);
    align-items: center;
    width: 100%;
    min-height: 56px;
    padding: var(--s2) 0;
    border: 0;
    border-top: 1px solid var(--sand);
    background: none;
    color: var(--charcoal);
    text-align: left;
    cursor: pointer;
  }

  .also-item .art {
    width: 40px;
    height: 50px;
  }

  .also-item .meta .t,
  .also-item .meta .p {
    display: block;
    font-size: var(--fs-xs);
  }

  .also-item .meta .p {
    font-variant-numeric: tabular-nums;
    color: var(--espresso);
  }

  .bag-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 52px;
    margin-top: auto;
    padding: 0 var(--s4);
    border: 1px solid var(--charcoal);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--charcoal);
    cursor: pointer;
  }

  .bag-summary .value {
    font-variant-numeric: tabular-nums;
    color: var(--espresso);
  }

  /* The chat column: on paper, the stream fills it, Ask <host> at its foot. */
  section.chat {
    grid-area: chat;
    position: static;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: var(--s4);
    border: 1px solid var(--sand);
    border-radius: var(--radius);
    background: var(--paper);
  }

  section.chat::before {
    content: none;
  }

  .chat-head {
    display: block;
    padding-bottom: var(--s3);
    border-bottom: 1px solid var(--sand);
  }

  .chat-head h2 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: var(--fs-lg);
  }

  .chat-note {
    margin: var(--s1) 0 0;
    font-size: var(--fs-xs);
    color: var(--espresso);
  }

  section.chat .feed {
    flex: 1;
    max-height: none;
    margin: 0;
    padding: var(--s3) 0;
    mask-image: none;
  }

  section.chat .line {
    color: var(--charcoal);
    text-shadow: none;
    border-bottom: 1px solid var(--ivory);
    align-self: stretch;
  }

  section.chat .line .who {
    color: var(--espresso);
  }

  section.chat .line.reply {
    border-left-color: var(--charcoal);
  }

  section.chat .line.reply .who {
    color: var(--charcoal);
  }

  section.chat .strip-slot {
    display: none;
  }

  section.chat .composer input {
    border: 1px solid var(--taupe);
  }

  .menu {
    left: var(--s5);
    top: var(--head-h);
    bottom: auto;
    width: 300px;
  }

  dialog.sheet {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    border-radius: var(--radius);
  }

  dialog.sheet[open] {
    animation: none;
  }
}

/* ---------- the menu ---------- */
.menu {
  position: fixed;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--s5) var(--s4) calc(env(safe-area-inset-bottom, 0px) + var(--s4));
  background: var(--paper);
  color: var(--charcoal);
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -8px 24px rgba(36, 36, 36, 0.18);
}

.menu-title {
  margin: 0 0 var(--s2);
  font-size: var(--fs-xs);
  color: var(--espresso);
}

.menu ul {
  list-style: none;
  margin: 0 0 var(--s4);
  padding: 0;
}

.menu a {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--sand);
  color: var(--charcoal);
  text-decoration: none;
}

.menu-channels a {
  font-family: var(--font-display);
  font-size: var(--fs-md);
}

.menu a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (min-width: 900px) {
  .menu {
    left: var(--s5);
    right: auto;
    top: var(--head-h);
    bottom: auto;
    width: 300px;
    border: 1px solid var(--sand);
    border-radius: var(--radius);
  }
}

@media (prefers-reduced-motion: reduce) {
  dialog.sheet[open] {
    animation: none;
  }

  .stage,
  .peek {
    transition: none;
  }
}

/* ---------- answers in the stream (A1.12) ----------
   The pinned question: "@name: question" over the video while the answer plays. Under the top
   line and the room name, clear of the right-hand rail; at most three lines. */
.answer-pin {
  position: absolute;
  z-index: 5;
  top: calc(env(safe-area-inset-top, 0px) + 84px);
  left: var(--s4);
  right: 88px;
  margin: 0;
  padding: var(--s2) var(--s3);
  border-left: 2px solid var(--ivory);
  border-radius: var(--radius);
  background: rgba(36, 36, 36, 0.72);
  color: var(--ivory);
  font-size: var(--fs-sm);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  animation: answer-in 160ms ease-out;
}

.answer-pin[hidden] {
  display: none;
}

.answer-pin .pin-who {
  font-weight: 600;
}

/* VOICE-2: streamed answer words appear one chunk at a time while their audio plays. */
.answer-caption {
  position: absolute;
  z-index: 5;
  left: var(--s4);
  right: var(--s4);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 112px);
  margin: 0 auto;
  width: min(92%, 680px);
  padding: var(--s2) var(--s3);
  border-radius: var(--radius);
  background: rgba(36, 36, 36, 0.82);
  color: var(--ivory);
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
  animation: answer-in 120ms ease-out;
}

.answer-caption[hidden] {
  display: none;
}

/* The product card full-frame under a voice with no close-up clip: it covers the host entirely
   (no moving mouth under another voice). Above the video, under the overlays. */
.answer-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  padding: calc(env(safe-area-inset-top, 0px) + 120px) var(--s5) 200px;
  background: var(--sand);
  color: var(--espresso);
  text-align: center;
  animation: answer-in 160ms ease-out;
}

.answer-cover[hidden] {
  display: none;
}

.answer-cover .cover-art {
  width: min(72%, 320px);
  aspect-ratio: 4 / 5;
  height: auto;
}

.answer-cover .cover-art .art-name {
  font-size: var(--fs-lg);
  padding: var(--s3);
}

.answer-cover .cover-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  line-height: 1.15;
}

.answer-cover .cover-price {
  margin: 0;
  font-size: var(--fs-sm);
}

@keyframes answer-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (min-width: 900px) {
  .answer-pin {
    top: 64px;
    right: var(--s4);
  }

  .answer-cover {
    padding: 96px var(--s5) var(--s6);
  }
}

@media (prefers-reduced-motion: reduce) {
  .answer-pin,
  .answer-caption,
  .answer-cover {
    animation: none;
  }
}

/* ---------- A1.14: the comment staff pinned, above the chat ---------- */
.chat-pin {
  margin: 0 0 var(--s2);
  padding: var(--s1) var(--s2);
  border-left: 2px solid var(--ivory);
  border-radius: var(--radius);
  background: rgba(36, 36, 36, 0.56);
  color: var(--ivory);
  font-size: var(--fs-sm);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.chat-pin[hidden] {
  display: none;
}

.chat-pin .pin-label {
  margin-right: var(--s1);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

.chat-pin .who {
  margin-right: var(--s1);
  font-weight: 600;
}

/* ---------- live feel (A1.13): captions, hearts, viewer count, stream events, sold, promo ---------- */

/* Pop-up captions (standard S10, web/js/popcaps.js): three words at a time, upper case, large bold
   white with a black outline, the spoken word yellow, a small pop per new group. The position below
   is the lowest the words may go (on phones above the chat, the piece on air and Ask <host>, 248 px,
   and left of the rail; on desktop 8 % above the stage's bottom) and the fallback without layout.
   N296 (S10: over the upper chest/hands, never across the face): popcaps.js moves the box up to the
   band `captionBand` picks: under the clip's face box, else the lower third of the frame, and clear
   of the clip's product box when it gives one. Most viewers watch muted, so
   they are on by default; CC turns them off. Size follows the stage's width (the reference: 62 px
   on a 720 px frame, 8.6 %). */
.pop-captions {
  position: absolute;
  z-index: 5;
  left: var(--s3);
  right: 80px;
  /* Keep the fallback band above the measured composer/request controls. PopCaptions then
     tightens this further when the in-stage product card or feedback is visible. */
  bottom: max(calc(env(safe-area-inset-bottom, 0px) + 248px), calc(var(--chat-controls-height, 176px) + 12px));
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.pop-captions[hidden] {
  display: none;
}

.pc-group {
  margin: 0;
  max-width: 92%; /* the pop's 1.08 overshoot stays inside the box */
  text-align: center;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: calc(clamp(24px, 8.6vw, 52px) * var(--pc-fit, 1));
  line-height: 1.1;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: #fff;
  -webkit-text-stroke: 0.14em #000;
  paint-order: stroke fill;
  text-shadow: 0 0.06em 0.12em rgba(0, 0, 0, 0.45);
  overflow-wrap: anywhere;
  text-wrap: balance;
  transform-origin: 50% 60%;
  animation: pc-pop 160ms ease-out both;
}

.pc-group .w.on {
  color: #ffe600;
}

/* N234b/N296: where no full-size band is left (next to a product box, or under the face on a short
   stage) the words are set smaller (--pc-k, 85 % down to 60 %) with a soft shadow plate
   (popcaps.js captionBand). The
   plate is a shadow outside the box, so it does not change the box's size or position. */
.pop-captions.pc-small .pc-group {
  font-size: calc(clamp(24px, 8.6vw, 52px) * var(--pc-fit, 1) * var(--pc-k, 0.85));
}

.pop-captions.pc-plate .pc-group {
  background: rgba(0, 0, 0, 0.28);
  border-radius: 0.3em;
  box-shadow: 0 0 0.5em 0.35em rgba(0, 0, 0, 0.28);
}

@keyframes pc-pop {
  0% {
    transform: scale(0.8);
  }
  56% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pc-group {
    animation: none;
  }
}

.act.cc .cc-mark {
  display: inline-block;
  min-width: 26px;
  padding: 1px 3px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.act.cc:not(.on) .cc-mark {
  opacity: 0.55;
  text-decoration: line-through;
}

/* A1.12: captions wanted but this clip has none: the mark is dimmed, not struck through. */
.act.cc.none .cc-mark {
  opacity: 0.55;
}

.hearts {
  position: absolute;
  z-index: 6;
  right: 20px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 236px);
  width: 48px;
  height: 45%;
  pointer-events: none;
  overflow: visible;
}

.hearts .heart {
  position: absolute;
  bottom: 0;
  left: 14px;
  font-size: 24px;
  color: #e8546f;
  text-shadow: 0 1px 2px rgba(36, 36, 36, 0.35);
  opacity: 0;
  animation: heart-up 1.6s ease-out forwards;
}

@keyframes heart-up {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.6);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx, 0), -260px) scale(1.1);
  }
}

.viewer-count {
  margin-left: var(--s1);
  padding: 3px 8px;
  border-radius: var(--radius);
  background: rgba(36, 36, 36, 0.45);
  color: var(--ivory);
  font-size: var(--fs-xs);
  white-space: nowrap;
}

.viewer-count[hidden] {
  display: none;
}

.line.event {
  font-size: 13px;
  color: rgba(247, 245, 240, 0.86);
}

.line.event .who:empty {
  display: none;
}

.line.event.purchase .what::before {
  content: "\1F6CD\FE0E  ";
}

.product-strip .meta .sold {
  display: block;
  font-size: 12px;
  opacity: 0.8;
}

.product-strip .meta .flash {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--signal);
}

@media (prefers-reduced-motion: reduce) {
  .hearts .heart {
    animation-duration: 0.01s;
  }
}

@media (min-width: 900px) {
  /* Desktop: the rail and the chat are outside the stage; the words are centred on it and sized by
     its width (container units on the caption box, 88 % of the stage: 9.77 cqw = 8.6 % of it). */
  .pop-captions {
    left: 6%;
    right: 6%;
    bottom: 8%;
    container-type: inline-size;
  }

  .pc-group {
    font-size: calc(clamp(22px, 9.77cqw, 52px) * var(--pc-fit, 1));
  }

  .pop-captions.pc-small .pc-group {
    font-size: calc(clamp(22px, 9.77cqw, 52px) * var(--pc-fit, 1) * var(--pc-k, 0.85));
  }

  .hearts {
    right: var(--s3);
    bottom: 18%;
  }

  section.chat .line.event {
    color: var(--charcoal);
    opacity: 0.8;
  }
}

/* ---------- C1 (S23): the persistent "AI-generated" mark and the first-join disclosure;
   (S20) trust lines and reviews in the product, Buy now and bag sheets ---------- */
.ai-mark {
  position: absolute;
  z-index: 6;
  top: calc(env(safe-area-inset-top, 0px) + 78px);
  right: var(--s3);
  margin: 0;
  padding: 2px 6px;
  border: 1px solid rgba(247, 245, 240, 0.7);
  border-radius: var(--radius);
  background: var(--charcoal);
  color: var(--ivory);
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
}

.ai-disclosure {
  position: absolute;
  z-index: 9;
  top: calc(env(safe-area-inset-top, 0px) + 104px);
  left: var(--s3);
  right: 72px;
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s3);
  border-radius: var(--radius);
  background: rgba(36, 36, 36, 0.9);
  color: var(--ivory);
  font-size: var(--fs-xs);
  line-height: 1.4;
}

/* One disclosure control owns the persistent mark and its expandable explanation. Keeping the
   details wrapper layout-transparent preserves the immersive room while making the declaration
   keyboard and touch collapsible. */
.ai-disclosure-group { display: contents; }
.ai-disclosure-group > summary { display: contents; cursor: pointer; list-style: none; }
.ai-disclosure-group > summary::-webkit-details-marker { display: none; }
.disclosure-chevron { display: none; }
.ai-disclosure-group > summary:focus-visible .ai-mark { outline: 2px solid currentColor; outline-offset: 3px; }

.ai-disclosure p {
  flex: 1;
  margin: 0;
}

.ai-disclosure button {
  flex: none;
  min-width: 44px;
  min-height: 44px;
  padding: 0 var(--s3);
  border: 1px solid rgba(247, 245, 240, 0.7);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ivory);
  font: inherit;
  cursor: pointer;
}

.trust {
  margin: var(--s2) 0;
}

.trust-line {
  margin: 2px 0;
  font-size: var(--fs-xs);
  color: var(--espresso);
}

.trust-line .v {
  font-weight: 600;
  color: var(--charcoal);
}

.trust-line a {
  color: inherit;
  text-decoration: underline;
}

.reviews {
  margin-top: var(--s3);
  font-size: var(--fs-xs);
  color: var(--espresso);
}

.reviews-title {
  margin: 0 0 var(--s1);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--charcoal);
}

.reviews p,
.review-list {
  margin: 2px 0;
  padding: 0;
  list-style: none;
}

.stars {
  letter-spacing: 1px;
  color: var(--charcoal);
}

.review-badge {
  margin-left: var(--s2);
  font-size: 11px;
  opacity: 0.8;
}

@media (min-width: 900px) {
  .ai-mark {
    top: 64px;
  }

  .ai-disclosure {
    top: 96px;
    right: var(--s3);
  }
}

/* S33: product chapters — the list in the detail panel, the personal replay over the stage, and the
   "Queued — the host is answering (#n)" status under an own question. */
.chapters {
  margin-top: var(--s3);
}

.chapter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s2);
}

.chapter {
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  align-items: center;
  gap: var(--s2);
}

.chapter-art {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
}

.chapter-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chapter-current, .chapter-price {
  color: var(--signal);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.chapter-price { color: var(--charcoal); font-variant-numeric: tabular-nums; }

.chapter-replay {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: #000;
}

.chapter-replay video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Replay captions belong to the personal clip above the replay layer. */
#stage-wrap:has(.chapter-replay) > .pop-captions {
  z-index: 7;
}

.chapter-replay-bar {
  position: absolute;
  left: var(--s3);
  right: var(--s3);
  top: calc(env(safe-area-inset-top, 0px) + 56px);
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.chapter-replay-label {
  flex: 1;
  margin: 0;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.chapter-replay-bar {
  flex-wrap: wrap;
}

/* S32: the parts of the segment (from the engine's clip roles), one row under the bar; scrolls
   sideways inside the stage on a narrow phone, never the page. */
.chapter-parts {
  order: 10;
  flex: 1 0 100%;
  display: flex;
  gap: var(--s2);
  overflow-x: auto;
  scrollbar-width: none;
}

.chapter-part {
  flex: none;
  padding: 4px 10px;
  font-size: 13px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.chapter-part[aria-pressed="true"] {
  background: #fff;
  color: #111;
}

.line .queued {
  display: block;
  font-size: 12px;
  opacity: 0.75;
}

/* S32: the transition card between two products (a styled card over the swap, never a hard cut)
   and the "Time to decide" recap on the product strip at the end of a product's segment. */
.product-transition {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(6px);
  color: #fff;
  animation: pt-fade 1200ms ease-in-out both;
  pointer-events: none;
}

.product-transition img {
  width: 40%;
  max-width: 220px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
}

.product-transition .pt-label {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.product-transition .pt-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  padding: 0 var(--s4);
}

@keyframes pt-fade {
  0% { opacity: 0; }
  20% { opacity: 1; }
  75% { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .product-transition {
    animation: none;
  }
}

.product-strip .recap {
  position: absolute;
  top: -26px;
  left: 0;
  padding: 2px 10px;
  border-radius: 999px;
  background: #ffe600;
  color: #111;
  font-size: 12px;
  font-weight: 700;
}

.product-strip.recap-on {
  position: relative;
}

/* S35: the language switch in the menu (English | 中文). The same rules are in app.css for the
   standalone pages (independent stylesheets). */
.lang-switch {
  display: flex;
  gap: var(--s2);
  margin: var(--s3) 0;
}

.lang-opt {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font: inherit;
}

.lang-opt[aria-pressed="true"] {
  background: rgba(127, 127, 127, 0.25);
  font-weight: 600;
}

/* A1b product detail (web/js/pdp.js), shared with /product (app.css carries the same block). */
.pdp-gallery { position: relative; margin: 0 0 12px; }
.pdp-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 0; }
.pdp-track::-webkit-scrollbar { display: none; }
.pdp-slide { flex: 0 0 100%; scroll-snap-align: start; padding: 0; border: 0; background: var(--sand, #eee); cursor: zoom-in; }
.pdp-slide img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.pdp-count { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 2px; }
.pdp-thumbs { display: flex; gap: 6px; overflow-x: auto; margin-top: 6px; }
.pdp-thumb { flex: 0 0 52px; padding: 0; border: 1px solid transparent; background: none; }
.pdp-thumb[aria-selected="true"] { border-color: var(--charcoal, #222); }
.pdp-thumb img { display: block; width: 50px; height: 50px; object-fit: cover; }
.pdp-zoom { padding: 0; border: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: #000; }
.pdp-zoom img { width: 100%; height: 100%; object-fit: contain; touch-action: pinch-zoom; }
.pdp-zoom-close { position: absolute; top: 12px; right: 12px; z-index: 1; }
.pdp-full-title { margin: -4px 0 8px; line-height: 1.35; }
.pdp-variant-label { margin: 8px 0 4px; }
.chip.swatch { padding: 2px; }
.chip.swatch img { display: block; width: 44px; height: 44px; object-fit: cover; }
.pdp-sections { margin-top: 16px; border-top: 1px solid var(--taupe, #ccc); }
.pdp-sec { padding: 14px 0; border-bottom: 1px solid var(--taupe, #ddd); }
.pdp-h { font-size: 17px; margin: 0 0 8px; }
.pdp-bullets { margin: 0; padding-left: 18px; line-height: 1.45; }
.pdp-bullets li { margin: 4px 0; }
.pdp-desc { line-height: 1.5; overflow-wrap: anywhere; }
.pdp-desc img, .pdp-desc-img { max-width: 100%; height: auto; display: block; margin: 8px 0; }
.pdp-desc table, .pdp-specs { width: 100%; border-collapse: collapse; }
.pdp-specs th, .pdp-specs td { text-align: left; vertical-align: top; padding: 6px 8px; border-bottom: 1px solid var(--taupe, #e5e5e5); font-size: 14px; }
.pdp-specs th { width: 40%; font-weight: 500; background: var(--paper, #f7f5f0); }
.pdp-missing, .pdp-lang { font-size: 13px; }
.pdp-qa summary { cursor: pointer; padding: 6px 0; font-weight: 500; }
.pdp-clip { width: 100%; max-height: 60vh; background: #000; }
.pdp-related { display: flex; gap: 10px; overflow-x: auto; }
.pdp-rel { flex: 0 0 120px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
.pdp-rel img { width: 120px; height: 120px; object-fit: cover; }
/* The sheet itself scrolls (dialog.sheet, 92dvh); the gallery keeps the buy buttons near the first screen. */
#product-sheet .pdp-slide img { max-height: 46dvh; }
.pdp-gallery, .pdp-sections, .pdp-track, .pdp-thumbs, .pdp-related { min-width: 0; max-width: 100%; }
#product-sheet .sheet-body { min-width: 0; overflow-x: hidden; }
.pdp-clamp { max-height: 13em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.pdp-more { margin-top: 4px; }
.pdp-rel .small { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Disclosure stays with public short clips and chapter replays. */
.ai-video { position: relative; display: block; width: 100%; height: 100%; }
.ai-video-mark {
  position: absolute;
  inset-block-start: var(--s2);
  inset-inline-end: var(--s2);
  z-index: 6;
  max-width: calc(100% - 2 * var(--s2));
  padding: 4px 8px;
  background: var(--charcoal);
  color: var(--ivory);
  font-size: 14px;
  line-height: 1.4;
  pointer-events: none;
}

/* ROOM-SWITCH-FIX-1: the new room's loaded poster stays above empty decoders.
   Keep a neutral surface under both it and the previous decoded frame. */
.stage[data-loading="true"] { background-color: #211c18; }
.room-poster { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:3; pointer-events:none; opacity:1; transition:opacity 180ms ease-out; }
.room-poster.out { opacity:0; }
.room-loading { position:absolute; z-index:4; top:48%; left:50%; transform:translate(-50%,-50%); margin:0; padding:8px 14px; border-radius:12px; background:#211c18; color:#fff; font-size:14px; pointer-events:none; }
@media (prefers-reduced-motion: reduce) { .room-poster { transition:none; } }

/* MVP92: the decoded clip's product stays inside the video at every width. */
.current-product {position:absolute;right:12px;bottom:96px;width:min(232px,52%);z-index:6;background:var(--charcoal);color:var(--ivory);border:1px solid #ffffff66;border-radius:8px;padding:8px;}
.current-product[hidden] {display:none;}
.current-product-label {display:block;font-size:12px;line-height:1.4;margin-bottom:4px;}
.current-product .product-strip {display:flex;flex-wrap:wrap;gap:6px;background:none;padding:0;margin:0;}
.current-product .open {width:100%;min-width:0;gap:8px;}
.current-product .art {flex:0 0 44px;width:44px;height:52px;}
.current-product .meta {min-width:0;}
.current-product .t {font-size:12px;line-height:1.4;-webkit-line-clamp:2;}
.current-product .p {font-size:13px;}
.current-product .btn {min-height:44px;width:100%;font-size:12px;padding:6px 8px;}
.current-product .buy,.current-product .demo-tag,.current-product .recap {display:none;}
.current-product .product-strip > .btn:last-child:not(:first-of-type) {display:none;}
#unmute {min-width:44px;flex-shrink:0;}
@media (min-width:900px) {.current-product {bottom:20px;}}
@media (max-width:899px) {.feed {max-width:calc(48% - 20px);margin-right:0;}.side-actions {bottom:310px;}}

.current-product .actions{width:100%;}.current-product .actions .btn:not(.primary){display:none;}
.current-product .product-strip {color:var(--ivory);}
.current-product .product-strip .open {flex-direction:row;align-items:center;}
.current-product .product-strip .meta {flex:1;min-width:0;}
.current-product .product-strip .meta .t,.current-product .product-strip .meta .p {color:var(--ivory);}
@media(max-width:899px){#strip-slot{display:none;}}

/* Keep required viewer controls reachable above personal replay media. */
.stage-wrap > .top,.stage-wrap > .current-product {z-index:61;}

/* 97F: navigation stills stay readable while metadata/media is unavailable. */
.rail-item {background:var(--oat,#e8e9e4);}
.rail-item img[hidden] {display:none;}
.rail-item[data-cover-state="loading"] .rail-name,
.rail-item[data-cover-state="unavailable"] .rail-name {inset:0;display:grid;place-content:center;background:none;color:var(--espresso,#26372d);padding:8px;}

/* 106D: delivery feedback stays beside the composer, never behind the product. */
.chat-feedback {margin:4px 0 8px;font-size:14px;line-height:1.4;color:var(--ivory);background:var(--charcoal);padding:6px 8px;}
.chat-feedback[hidden] {display:none;}
.line.own {background:rgba(36,36,36,.8);padding:4px 6px;border-radius:8px;}
.line[data-delivery="failed"] button {display:block;min-height:44px;color:inherit;background:var(--charcoal);border:1px solid var(--ivory);padding:4px 8px;}
@media(min-width:900px) {.chat-feedback {color:var(--charcoal);background:var(--sand);}section.chat .line.own {background:var(--sand);}}
@media(max-width:899px) {
 .top {display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:4px;padding:8px 12px 24px;}
 .top .host-line {display:flex;flex-wrap:wrap;gap:4px;min-width:0;}
 .top .host-name {overflow:hidden;text-overflow:ellipsis;max-width:100%;font-size:20px;}
 .top .ai-tag {font-size:12px;padding:2px 4px;}
 .top .live-badge {grid-column:2;grid-row:2;justify-self:start;margin:0;}
 .top #unmute {grid-column:3;grid-row:1 / 3;margin:0;padding:0 8px;}
 .room-name {top:94px;max-width:calc(100% - 24px);}
 .ai-mark {top:122px;right:auto;left:12px;max-width:calc(100% - 24px);}
 .ai-disclosure {top:154px;}
 .ai-video-mark {inset-block-start:154px;inset-inline-end:12px;}
 .side-actions {bottom:320px;}
 section.chat {display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding-bottom:calc(env(safe-area-inset-bottom,0px) + 8px);}
 section.chat .feed {margin:0;max-height:22dvh;max-width:calc(44% - 8px);min-height:32px;mask-image:none;}
 #clip-requests-mobile {margin:0;padding:0;}
 #clip-requests-mobile button {min-height:44px;}
 .chat-feedback {margin:0;}
 .current-product {bottom:calc(var(--chat-controls-height,176px) + 12px);width:48%;}
}

/* 122C: answer overlays occupy the measured region between disclosure and commerce/chat. */
.answer-pin {top:var(--answer-top-safe,254px);right:16px;}
.answer-caption {bottom:var(--answer-bottom-safe,350px);width:auto;}
.answer-cover {padding:var(--answer-content-top,330px) 20px var(--answer-content-bottom,410px);gap:8px;}
.answer-cover .cover-art {flex:1 1 auto;min-height:0;height:auto;max-height:400px;}
.answer-cover .cover-art img {object-fit:contain;}
.answer-cover .cover-title {flex:none;max-width:100%;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;}
.answer-cover .cover-price {flex:none;}
.stage-wrap[data-answer-compact="true"] .answer-cover .cover-title,
.stage-wrap[data-answer-compact="true"] .answer-cover .cover-price {display:none;}
@media(max-width:899px) {
 .answer-pin,.answer-caption {right:88px;left:12px;font-size:14px;line-height:1.35;}
 .answer-pin {-webkit-line-clamp:2;}
 .answer-cover {padding-left:12px;padding-right:88px;}
}
/* Brand actions reuse the product strip / panel / on-screen card positions. */
.live-goal-form{display:grid;gap:8px}.live-goal-form label{display:grid;gap:6px;font-size:13px}.live-goal-form input{width:100%;min-width:0;min-height:44px;border:1px solid var(--taupe);border-radius:8px;padding:8px;font:inherit;color:var(--charcoal);background:var(--paper)}.live-goal-form p{margin:0;font-size:12px;line-height:1.5}.live-goal>a{display:flex;align-items:center;justify-content:center;text-decoration:none}.live-goal a[aria-disabled=true]{pointer-events:none;opacity:.5}.current-product .live-goal{margin:0;padding:0;background:transparent;color:inherit}.current-product .live-goal .btn{min-height:40px}.current-product .live-goal input{font-size:16px}.current-product .live-goal strong{font-size:13px}.live-goal-form input:focus-visible{outline:2px solid currentColor;outline-offset:2px}

/* ROOM-DESKTOP-147C-v2: the desktop room is a quiet three-column viewing surface. The stage owns
   the visual weight; product choice and questions stay available without covering the host. */
@media (min-width: 900px) {
  .watch {
    position: fixed;
    grid-template-columns: 232px minmax(0, 1fr) 352px;
    grid-template-rows: var(--head-h) minmax(0, 1fr);
    grid-template-areas: "head head head" "shop stage chat";
    gap: 16px;
    padding: 0 24px 16px;
    justify-content: stretch;
  }
  .stage-wrap { display: grid; grid-template-rows: minmax(0, 1fr) auto; max-width: none; aspect-ratio: auto; min-height: 0; border-radius: 8px; background: #101417; isolation: isolate; }
  .stage-wrap::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, #26333a 0%, #101417 72%); }
  .stage { inset: 0 0 78px; background: transparent; }
  .stage video.clip, .stage-carry video, .room-poster { object-fit: contain; background: #101417; }
  .stage-carry, .room-poster { inset: 0 0 78px; }
  .top { padding: 14px 16px 48px; align-items: center; background: linear-gradient(to bottom, rgba(8, 12, 15, .88), rgba(8, 12, 15, 0)); }
  .top .only-phone, .top .live-badge, .top .viewer-count, .top .test-badge, .top #unmute, .top #cc-desk, .top .ai-tag { display: none !important; }
  .host-line { gap: 8px; min-height: 40px; color: #fff; }
  .host-avatar { display: inline-grid; width: 32px; height: 32px; place-items: center; overflow: hidden; border-radius: 50%; background: #44515a; border: 1px solid rgba(255,255,255,.45); }
  .host-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .host-name { font-family: var(--font-ui); font-size: 15px; font-weight: 600; }
  .host-line::after { content: "· AI"; color: rgba(255,255,255,.65); font-size: 12px; }
  .desktop-host-tools { display: inline-flex; align-items: center; gap: 8px; margin-left: 4px; }
  .desktop-follow { min-height: 32px; padding: 0 12px; border: 1px solid rgba(255,255,255,.74); border-radius: 4px; background: transparent; color: #fff; font-size: 12px; cursor: pointer; }
  .desktop-follow[aria-pressed="true"] { background: rgba(255,255,255,.14); }
  .desktop-share { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.45); border-radius: 4px; background: rgba(7, 12, 15, .32); color: #fff; cursor: pointer; }
  .player-controls { position: absolute; z-index: 62; left: 0; right: 0; bottom: 78px; display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 20px 14px 10px; background: linear-gradient(to top, rgba(5,8,10,.78), transparent); opacity: 0; pointer-events: none; transition: opacity 160ms ease; }
  .player-controls.is-visible, .player-controls:focus-within { opacity: 1; pointer-events: auto; }
  .player-icon { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border: 1px solid rgba(255,255,255,.48); border-radius: 4px; background: rgba(7,12,15,.45); color: #fff; cursor: pointer; }
  .volume-control { display: flex; align-items: center; gap: 6px; }
  .volume-control input { width: 76px; accent-color: #fff; }
  .more-menu { position: relative; }
  .more-menu > summary { list-style: none; }
  .more-menu > summary::-webkit-details-marker { display: none; }
  .more-panel { position: absolute; right: 0; bottom: 42px; width: 230px; padding: 10px; border: 1px solid rgba(255,255,255,.28); border-radius: 6px; background: rgba(14,19,22,.96); color: #fff; box-shadow: 0 12px 28px rgba(0,0,0,.3); }
  .more-row { display: flex; justify-content: space-between; width: 100%; min-height: 36px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; text-align: left; }
  .more-state { color: rgba(255,255,255,.62); font-size: 12px; }
  .more-disclosure { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.7); font-size: 11px; line-height: 1.4; }
  .sound-hint { position: absolute; z-index: 62; top: 66px; right: 16px; margin: 0; padding: 6px 8px; border-radius: 4px; background: rgba(8,12,15,.76); color: #fff; font-size: 11px; }
  .stage-purchase { grid-row: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 78px; padding: 10px 14px; border-top: 1px solid rgba(255,255,255,.16); background: #141a1d; color: #fff; }
  .purchase-slot { min-width: 0; }
  .purchase-slot .product-strip { display: flex; flex-direction: row; align-items: center; gap: 12px; margin: 0; padding: 0; background: transparent; color: #fff; }
  .purchase-slot .product-strip .open { width: auto; flex: 1 1 auto; }
  .purchase-slot .product-strip .art { width: 42px; height: 52px; border-radius: 3px; }
  .purchase-slot .product-strip .meta .t { color: #fff; font-size: 13px; }
  .purchase-slot .product-strip .meta .p { color: rgba(255,255,255,.72); font-size: 12px; }
  .purchase-slot .product-strip .actions { width: auto; align-items: center; }
  .purchase-slot .product-strip .actions .btn { flex: none; min-height: 40px; padding-inline: 14px; font-size: 12px; }
  .purchase-slot .product-strip .actions .btn.primary { border-color: rgba(255,255,255,.64); background: transparent; color: #fff; }
  .purchase-slot .product-strip .actions .btn:last-child { border-color: #dce8df; background: #dce8df; color: #172126; }
  .interaction-slot { display: flex; align-items: center; }
  #clip-requests-desktop { padding: 0; gap: 6px; }
  #clip-requests-desktop button { min-height: 36px; padding: 0 10px; border: 1px solid rgba(255,255,255,.5); border-radius: 4px; background: transparent; color: #fff; font-size: 11px; }
  .shop { grid-area: shop; min-height: 0; overflow-y: auto; padding: 8px 4px 112px 0; }
  .shop-title { margin: 0 0 10px; font-family: var(--font-ui); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--espresso); }
  .shop .product-strip.panel { display: flex; flex-direction: row; align-items: center; gap: 8px; min-height: 68px; margin: 0 0 8px; padding: 8px; border: 1px solid var(--charcoal); border-radius: 6px; background: #fff; }
  .shop .product-strip.panel .open { flex-direction: row; align-items: center; gap: 8px; }
  .shop .product-strip.panel .art.big { width: 44px; height: 54px; aspect-ratio: auto; max-height: none; border-radius: 3px; }
  .shop .product-strip.panel .art.big .art-name { font-size: 9px; padding: 3px; }
  .shop .product-strip.panel .meta .t { font-family: var(--font-ui); font-size: 12px; line-height: 1.25; }
  .shop .product-strip.panel .meta .p { font-size: 12px; }
  .shop .product-strip.panel .actions { display: none; }
  .shop .also { display: block; }
  .shop .also h3 { margin: 14px 0 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
  .shop .also-item { min-height: 62px; gap: 8px; padding: 7px 4px; border-top: 1px solid var(--sand); }
  .shop .also-item .art { width: 42px; height: 52px; border-radius: 3px; }
  .shop .also-item .meta .t, .shop .also-item .meta .p { font-size: 12px; }
  .shop .bag-summary { min-height: 40px; margin-top: 10px; padding: 0 10px; font-size: 12px; }
  .shop .clip-requests { display: none; }
  .rail { position: absolute; left: 24px; bottom: 18px; z-index: 5; display: block; width: 232px; min-height: 46px; overflow: hidden; }
  .rail-title { display: none; }
  .rail ul { display: flex; gap: 6px; overflow-x: auto; }
  .rail-item { width: 42px; height: 42px; aspect-ratio: 1; border-radius: 50%; }
  .rail-item .rail-name, .rail-item .rail-test { display: none; }
  .rail-item video, .rail-item img { object-fit: cover; }
  section.chat { grid-area: chat; min-height: 0; padding: 14px; border: 1px solid var(--sand); border-radius: 8px; background: #fff; }
  .chat-head { padding-bottom: 10px; }
  .chat-head h2 { font-family: var(--font-ui); font-size: 17px; font-weight: 600; }
  .chat-ai-disclosure { margin: 4px 0 0; color: var(--espresso); font-size: 11px; }
  .chat-note { display: none; }
  section.chat .strip-slot { display: none; }
  section.chat .composer button { min-height: 44px; padding-inline: 12px; border: 1px solid var(--charcoal); background: transparent; color: var(--charcoal); }
  .current-product, .stage-wrap > .ai-disclosure-group, .stage-wrap > #ai-disclosure, .stage-wrap > #ai-mark, .stage-wrap > .room-name { display: none !important; }
  .purchase-slot .product-strip .recap { display: none; }
}
@media (min-width: 900px) {
  .shop .chapter { grid-template-columns: 42px minmax(0, 1fr) auto auto; min-height: 62px; padding: 6px 4px; border-top: 1px solid var(--sand); cursor: pointer; }
  .shop .chapter:hover, .shop .chapter:focus-visible { background: rgba(232,223,211,.45); }
  .shop .chapter .chapter-art { width: 42px; height: 52px; border-radius: 3px; }
  .shop .chapter .chapter-duration, .shop .chapter .chapter-watch, .shop .chapter .chapter-ask { display: none; }
  .shop .chapters-title { display: none; }
}
@media (min-width: 900px) {
  .shop .product-context { display: none; }
  .shop .product-strip.panel { min-height: 62px; }
}
@media (min-width: 900px) {
  .desktop-host-tools { position: relative; }
  .share-popover { position: absolute; top: 40px; right: 0; z-index: 70; min-width: 112px; padding: 6px; border: 1px solid rgba(255,255,255,.3); border-radius: 5px; background: rgba(14,19,22,.96); box-shadow: 0 8px 20px rgba(0,0,0,.28); }
  .share-copy { width: 100%; min-height: 34px; padding: 0 10px; border: 0; border-radius: 3px; background: transparent; color: #fff; text-align: left; cursor: pointer; font-size: 12px; }
  .share-copy:hover, .share-copy:focus-visible { background: rgba(255,255,255,.12); }
}
@media (min-width: 900px) {
  .shop .product-context { display: block; max-width: 120px; margin-bottom: 2px; overflow: hidden; color: var(--signal); font-size: 9px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 899px) {
  .desktop-host-tools, .player-controls, .stage-purchase, .sound-hint, .host-avatar { display: none !important; }
}
@media (min-width: 900px) {
  /* Keep the disclosure mark in the accessibility tree while moving its visual copy to chat/settings. */
  .stage-wrap > #ai-mark { display: block !important; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }
}
@media (min-width: 900px) {
  .watch { grid-template-columns: 220px minmax(0, 1fr) 352px; }
  .shop .bag-summary { display: none; }
  .shop .also h3 { display: none; }
  .shop .product-context { color: var(--signal); font-size: 9px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
  .purchase-slot .product-strip .product-context { color: rgba(255,255,255,.64); font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
  .purchase-slot .product-strip .actions .btn:last-child { min-height: 48px; padding-inline: 18px; border-color: #fff; background: #fff; color: #172126; font-size: 13px; font-weight: 700; }
  .purchase-slot .product-strip .actions .btn.primary { min-height: 40px; border-color: rgba(255,255,255,.55); background: transparent; color: #fff; }
  .interaction-slot #clip-requests-desktop button { min-height: 30px; padding-inline: 8px; border-color: rgba(255,255,255,.4); font-size: 10px; opacity: .72; }
  .room-loading { width: 24px; height: 24px; padding: 0; border: 2px solid rgba(255,255,255,.32); border-top-color: #fff; border-radius: 50%; background: transparent; color: transparent; font-size: 0; animation: room147-spin .8s linear infinite; }
  @keyframes room147-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
}
@media (min-width: 900px) {
  .stage-wrap > #ai-mark { left: -10000px; right: auto; top: 0; opacity: 1; color: transparent; background: transparent; }
}
@media (min-width: 900px) {
  .stage-wrap > #ai-mark { position: fixed; left: -10000px; top: 0; width: 2px; height: 2px; clip: auto; }
}
@media (min-width: 900px) {
  .stage-wrap #ai-mark { display: block !important; position: fixed; left: -10000px; top: 0; width: 2px; height: 2px; clip: auto; overflow: hidden; opacity: 1; color: transparent; background: transparent; }
}
@media (min-width: 900px) {
  .stage-wrap .ai-disclosure-group { display: block !important; position: fixed; left: -10000px; top: 0; width: 2px; height: 2px; overflow: hidden; }
  .stage-wrap .ai-disclosure-group > summary { display: block !important; width: 2px; height: 2px; overflow: hidden; }
  .stage-wrap .ai-disclosure-group #ai-mark { position: static; display: block !important; width: 2px; height: 2px; padding: 0; border: 0; clip: auto; overflow: hidden; opacity: 1; color: transparent; background: transparent; }
}


/* ROOM-CODE-148: stable spoken room number, kept secondary to the host name. */
.top-room-code, .room-code { color: rgba(247,245,240,.72); font-size: var(--fs-xs); letter-spacing: .04em; white-space: nowrap; }
@media (max-width: 899px) { .top-room-code { max-width: 86px; overflow: hidden; text-overflow: ellipsis; } }
