/* Starling's studio, the progress sheet's first view for the accounts that have it early (agent-studio.js). What stands
   in the room is drawn in the room's own pixels: the Ark Pixel face (apps/app/fonts/SOURCE.txt) at one and two room
   pixels to a font pixel, one-pixel ink frames with their corners left open, pixel tails and marks, in the room's five
   inks whatever the theme, because they are part of the drawing (DESIGN.md, UI defaults, Scope). The bag under it is
   the sheet's own: theme tokens, the app's icons. */
@font-face {
  font-family: "Ark Pixel";
  src: url("/static/fonts/ark-pixel-12px-proportional-latin.otf.woff2") format("woff2");
  font-display: block;
}
@font-face {
  font-family: "Ark Pixel SC";
  src: url("/static/fonts/ark-pixel-12px-proportional-zh_hans.otf.woff2") format("woff2");
  font-display: block;
}
@font-face {
  font-family: "Ark Pixel TC";
  src: url("/static/fonts/ark-pixel-12px-proportional-zh_tw.otf.woff2") format("woff2");
  font-display: block;
}
@font-face {
  font-family: "Ark Pixel JP";
  src: url("/static/fonts/ark-pixel-12px-proportional-ja.otf.woff2") format("woff2");
  font-display: block;
}

/* The studio's sheet is as wide as the whole room drawn two CSS pixels to a room pixel (384 × 2, with its padding),
   and so is the desk where the two can be had, so the sheet keeps its size. A phone's sheet stays the screen's width
   (agent-transcription.css). */
@media (min-width: 761px) {
  .agent-sheet[data-view="progress"]:has(.agent-view-switch) {
    width: min(816px, calc(100% - 48px));
  }
}

.agent-studio {
  /* One room pixel in CSS pixels (set from the drawn room), the room's inks, its paper, and the pixel face. */
  --studio-px: 2px;
  --studio-k: #0f0e12;
  --studio-d: #48474c;
  --studio-m: #97969a;
  --studio-l: #efefed;
  --studio-w: #ffffff;
  --studio-o: #e8501a;
  --studio-face: "Ark Pixel", "Ark Pixel SC", var(--sans);
  --studio-big: calc(12 * var(--studio-px));
  --studio-small: calc(6 * var(--studio-px));
  --studio-talk-over: 16px; /* how far Starling's words lie over the room's foot */
  /* A frame one room pixel wide with the corner pixels left out. Focus is a one-pixel orange ring a pixel clear of
     what it marks: --studio-ring outside a frame (after --studio-frame), --studio-ring-bare round what has none. */
  --studio-frame:
    0 calc(-1 * var(--studio-px)) 0 0 var(--studio-k), 0 var(--studio-px) 0 0 var(--studio-k),
    calc(-1 * var(--studio-px)) 0 0 0 var(--studio-k), var(--studio-px) 0 0 0 var(--studio-k);
  --studio-ring:
    0 calc(-2 * var(--studio-px)) 0 0 var(--studio-w), 0 calc(2 * var(--studio-px)) 0 0 var(--studio-w),
    calc(-2 * var(--studio-px)) 0 0 0 var(--studio-w), calc(2 * var(--studio-px)) 0 0 0 var(--studio-w),
    0 calc(-3 * var(--studio-px)) 0 0 var(--studio-o), 0 calc(3 * var(--studio-px)) 0 0 var(--studio-o),
    calc(-3 * var(--studio-px)) 0 0 0 var(--studio-o), calc(3 * var(--studio-px)) 0 0 0 var(--studio-o);
  --studio-ring-bare:
    0 calc(-1 * var(--studio-px)) 0 0 var(--studio-w), 0 var(--studio-px) 0 0 var(--studio-w),
    calc(-1 * var(--studio-px)) 0 0 0 var(--studio-w), var(--studio-px) 0 0 0 var(--studio-w),
    0 calc(-2 * var(--studio-px)) 0 0 var(--studio-o), 0 calc(2 * var(--studio-px)) 0 0 var(--studio-o),
    calc(-2 * var(--studio-px)) 0 0 0 var(--studio-o), calc(2 * var(--studio-px)) 0 0 0 var(--studio-o);
  --studio-tail-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 4' shape-rendering='crispEdges'%3E%3Cpath fill='%230f0e12' d='M3 0h1v1H3zM2 1h1v1H2zM4 1h1v1H4zM1 2h1v1H1zM5 2h1v1H5zM0 3h1v1H0zM6 3h1v1H6z'/%3E%3Cpath fill='%23fff' d='M3 1h1v1H3zM2 2h3v1H2zM1 3h5v1H1z'/%3E%3C/svg%3E");
  --studio-tail-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 4' shape-rendering='crispEdges'%3E%3Cpath fill='%230f0e12' d='M0 0h1v1H0zM6 0h1v1H6zM1 1h1v1H1zM5 1h1v1H5zM2 2h1v1H2zM4 2h1v1H4zM3 3h1v1H3z'/%3E%3Cpath fill='%23fff' d='M1 0h5v1H1zM2 1h3v1H2zM3 2h1v1H3z'/%3E%3C/svg%3E");
  --studio-tail-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 7' shape-rendering='crispEdges'%3E%3Cpath fill='%230f0e12' d='M0 3h1v1H0zM1 2h1v1H1zM1 4h1v1H1zM2 1h1v1H2zM2 5h1v1H2zM3 0h1v1H3zM3 6h1v1H3z'/%3E%3Cpath fill='%23fff' d='M1 3h1v1H1zM2 2h1v3H2zM3 1h1v5H3z'/%3E%3C/svg%3E");
  --studio-tail-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 7' shape-rendering='crispEdges'%3E%3Cpath fill='%230f0e12' d='M3 3h1v1H3zM2 2h1v1H2zM2 4h1v1H2zM1 1h1v1H1zM1 5h1v1H1zM0 0h1v1H0zM0 6h1v1H0z'/%3E%3Cpath fill='%23fff' d='M2 3h1v1H2zM1 2h1v3H1zM0 1h1v5H0z'/%3E%3C/svg%3E");
  --studio-caret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 3' shape-rendering='crispEdges'%3E%3Cpath fill='%23e8501a' d='M0 0h5v1H0zM1 1h3v1H1zM2 2h1v1H2z'/%3E%3C/svg%3E");
  --studio-cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7' shape-rendering='crispEdges'%3E%3Cpath fill='%230f0e12' d='M0 0h1v1H0zM1 1h1v1H1zM2 2h1v1H2zM3 3h1v1H3zM4 4h1v1H4zM5 5h1v1H5zM6 6h1v1H6zM6 0h1v1H6zM5 1h1v1H5zM4 2h1v1H4zM2 4h1v1H2zM1 5h1v1H1zM0 6h1v1H0z'/%3E%3C/svg%3E");
  --studio-sheet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 11' shape-rendering='crispEdges'%3E%3Cpath fill='%230f0e12' d='M0 0h6v1H0zM0 1h1v10H0zM8 3h1v8H8zM1 10h7v1H1zM6 1h1v1H6zM7 2h1v1H7zM5 1h1v3H5zM5 3h3v1H5z'/%3E%3Cpath fill='%2397969a' d='M2 5h5v1H2zM2 7h5v1H2zM2 9h3v1H2z'/%3E%3C/svg%3E");
  display: grid;
  gap: var(--space-5);
  min-width: 0;
}
/* Each edition reads its own forms of the face: Chinese and Japanese punctuation and characters as they write them.
   The face has no Hangul, so Korean keeps the page's face. */
.agent-studio:lang(zh-Hans) {
  --studio-face: "Ark Pixel SC", var(--sans);
}
.agent-studio:lang(zh-Hant) {
  --studio-face: "Ark Pixel TC", var(--sans);
}
.agent-studio:lang(ja) {
  --studio-face: "Ark Pixel JP", var(--sans);
}
.agent-studio:lang(ko) {
  --studio-face: var(--sans);
}

/* ── The room ── */
.studio-wrap {
  position: relative;
}
.studio-stage {
  position: relative;
  width: 100%;
  min-height: 120px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--studio-l);
}
.studio-stage .agent-scene {
  position: relative;
}
.studio-stage .agent-scene-canvas {
  position: relative;
  z-index: 1;
  display: block;
  image-rendering: pixelated;
  pointer-events: none;
}
.studio-stage .agent-scene-layer {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 2;
  pointer-events: none;
}
/* The room draws the newest draft on its board; this opens it, over the board. */
.studio-board {
  position: absolute;
  z-index: 2;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  visibility: hidden;
}
.studio-board[data-shown] {
  visibility: visible;
}
.studio-board:hover {
  box-shadow:
    0 calc(-1 * var(--studio-px)) 0 0 var(--studio-o),
    0 var(--studio-px) 0 0 var(--studio-o),
    calc(-1 * var(--studio-px)) 0 0 0 var(--studio-o),
    var(--studio-px) 0 0 0 var(--studio-o);
}
.studio-board:focus-visible {
  outline: none;
  box-shadow: var(--studio-ring-bare);
}
.studio-overlay {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  height: var(--studio-stage-h, 0);
  pointer-events: none;
}
.studio-overlay > * {
  pointer-events: auto;
}

/* ── What stands in the room: the pixel face, one-pixel frames with open corners ── */
.studio-timer {
  position: absolute;
  top: calc(5 * var(--studio-px));
  left: calc(5 * var(--studio-px));
  display: inline-flex;
  align-items: baseline;
  gap: calc(3 * var(--studio-px));
  padding: calc(2 * var(--studio-px)) calc(4 * var(--studio-px));
  background: var(--studio-w);
  box-shadow: var(--studio-frame);
  color: var(--studio-d);
  font: var(--studio-small) / calc(8 * var(--studio-px)) var(--studio-face);
  white-space: nowrap;
  pointer-events: none;
}
.studio-timer[hidden] {
  display: none;
}
.studio-timer b {
  color: var(--studio-k);
  font-weight: 400;
}

/* What it found, as the bird takes it: beside the bird, never over it, its tail toward the bird. */
.studio-find {
  position: absolute;
  width: 320px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: calc(2 * var(--studio-px)) calc(6 * var(--studio-px));
  align-items: center;
  padding: calc(5 * var(--studio-px));
  background: var(--studio-w);
  box-shadow: var(--studio-frame);
  color: var(--studio-k);
  font-family: var(--studio-face);
  text-decoration: none;
}
.studio-find::after {
  content: "";
  position: absolute;
  left: var(--studio-tail, 50%);
  bottom: calc(-4 * var(--studio-px));
  width: calc(7 * var(--studio-px));
  height: calc(4 * var(--studio-px));
  background: var(--studio-tail-down) 0 0 / 100% 100%;
  image-rendering: pixelated;
}
.studio-find[data-side="right"]::after,
.studio-find[data-side="left"]::after {
  top: var(--studio-tail-y, 50%);
  bottom: auto;
  width: calc(4 * var(--studio-px));
  height: calc(7 * var(--studio-px));
}
.studio-find[data-side="right"]::after {
  left: calc(-4 * var(--studio-px));
  background-image: var(--studio-tail-left);
}
.studio-find[data-side="left"]::after {
  left: auto;
  right: calc(-4 * var(--studio-px));
  background-image: var(--studio-tail-right);
}
.studio-find[data-side="top"]::after,
.studio-find[data-side="bottom"]::after,
.studio-find[data-side="dock"]::after {
  display: none;
}
.studio-find:focus-visible {
  outline: none;
  box-shadow: var(--studio-frame), var(--studio-ring);
}
.studio-find-picture {
  grid-row: span 2;
  width: 56px;
  height: 72px;
  object-fit: cover;
  object-position: top;
  background: var(--studio-w);
  box-shadow: 0 0 0 var(--studio-px) var(--studio-m);
}
.studio-find[data-shape="video"] .studio-find-picture {
  width: 96px;
  height: 54px;
  object-position: center;
}
.studio-sheet-mark {
  background:
    var(--studio-sheet) center / calc(9 * var(--studio-px)) calc(11 * var(--studio-px)) no-repeat var(--studio-l);
  image-rendering: pixelated;
}
.studio-find-title {
  display: -webkit-box;
  align-self: end;
  overflow: hidden;
  font-size: var(--studio-big);
  line-height: calc(16 * var(--studio-px));
  overflow-wrap: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
/* Its kind and site on one line; where the card is too narrow for Open beside them, Open goes under, right. */
.studio-find-where {
  display: flex;
  flex-wrap: wrap;
  align-self: start;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 calc(4 * var(--studio-px));
  color: var(--studio-d);
  font-size: var(--studio-small);
  line-height: calc(8 * var(--studio-px));
}
.studio-open-word {
  margin-left: auto;
  color: var(--studio-o);
  white-space: nowrap;
}
.studio-pop {
  position: absolute;
  width: 344px;
  padding: calc(5 * var(--studio-px));
  background: var(--studio-w);
  box-shadow: var(--studio-frame);
  font-family: var(--studio-face);
}
.studio-pop header,
.studio-viewer header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 calc(6 * var(--studio-px));
  margin-bottom: calc(4 * var(--studio-px));
  color: var(--studio-k);
}
.studio-pop header b,
.studio-viewer header b {
  font-size: var(--studio-big);
  font-weight: 400;
  line-height: calc(16 * var(--studio-px));
  white-space: nowrap;
}
.studio-pop header em,
.studio-viewer header em {
  color: var(--studio-d);
  font-size: var(--studio-small);
  font-style: normal;
  line-height: calc(8 * var(--studio-px));
  white-space: nowrap;
}
.studio-pop header em[data-changed],
.studio-viewer header em[data-changed] {
  color: var(--studio-o);
}
/* The page cropped to the rows that hold music, no taller than this. */
.studio-pop img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  object-position: top;
  background: var(--studio-w);
  box-shadow: 0 0 0 var(--studio-px) var(--studio-l);
}

/* ── Starling's words, under the room, as a game's dialogue box: the pixel face in a one-pixel frame, its tail toward
   Starling wherever it is ── */
.studio-talk {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: calc(6 * var(--studio-px));
  min-height: calc(32 * var(--studio-px));
  margin: calc(-1 * var(--studio-talk-over)) 16px 0;
  padding: calc(6 * var(--studio-px)) calc(8 * var(--studio-px)) calc(6 * var(--studio-px)) calc(10 * var(--studio-px));
  background: var(--studio-w);
  box-shadow: var(--studio-frame);
  font-family: var(--studio-face);
}
.studio-talk::before {
  content: "";
  position: absolute;
  top: calc(-4 * var(--studio-px));
  left: var(--studio-tail-x, 50%);
  width: calc(7 * var(--studio-px));
  height: calc(4 * var(--studio-px));
  background: var(--studio-tail-up) 0 0 / 100% 100%;
  image-rendering: pixelated;
  transition: left 0.5s steps(8, jump-none);
}
.studio-wrap[data-viewing] .studio-talk::before {
  visibility: hidden;
}
.studio-text {
  min-height: calc(16 * var(--studio-px));
  margin: 0;
  color: var(--studio-k);
  font-size: var(--studio-big);
  line-height: calc(16 * var(--studio-px));
  overflow-wrap: break-word;
  text-wrap: pretty;
}
/* Chinese breaks only at spaces and punctuation, so 小节 or 草稿 is never split across lines (agent-studio.js keeps
   a number with its words through no-break spaces). */
.studio-text:lang(zh) {
  word-break: keep-all;
}
/* New words come one at a time, as a game's dialogue types them; in pixels they appear whole, never blurred
   (DESIGN.md, UI defaults 4: the blur would soften the face). */
.studio-typed:not([data-shown]) {
  visibility: hidden;
}
.studio-caret {
  display: inline-block;
  width: calc(5 * var(--studio-px));
  height: calc(3 * var(--studio-px));
  margin-left: calc(4 * var(--studio-px));
  background: var(--studio-caret) 0 0 / 100% 100%;
  image-rendering: pixelated;
  vertical-align: calc(1 * var(--studio-px));
  animation: studio-caret 0.9s steps(1) infinite;
}
.studio-caret[hidden],
.studio-open[hidden],
.studio-go[hidden] {
  display: none;
}
@keyframes studio-caret {
  50% {
    opacity: 0;
  }
}
.studio-open {
  padding: var(--studio-px) calc(2 * var(--studio-px));
  color: var(--studio-o);
  font-size: var(--studio-big);
  line-height: calc(16 * var(--studio-px));
  text-decoration: none;
  white-space: nowrap;
}
.studio-open:focus-visible {
  outline: none;
  box-shadow: var(--studio-ring-bare);
}
/* The one ink button, in the room's pixels: ink with open corners, the pixel face in white. */
.studio-go {
  padding: calc(3 * var(--studio-px)) calc(7 * var(--studio-px));
  border: 0;
  border-radius: 0;
  color: var(--studio-w);
  background: var(--studio-k);
  box-shadow: var(--studio-frame);
  font: var(--studio-big) / calc(12 * var(--studio-px)) var(--studio-face);
  white-space: nowrap;
  cursor: pointer;
}
.studio-go:hover {
  background: var(--studio-d);
  box-shadow:
    0 calc(-1 * var(--studio-px)) 0 0 var(--studio-d),
    0 var(--studio-px) 0 0 var(--studio-d),
    calc(-1 * var(--studio-px)) 0 0 0 var(--studio-d),
    var(--studio-px) 0 0 0 var(--studio-d);
}
.studio-go:focus-visible {
  outline: none;
  box-shadow: var(--studio-frame), var(--studio-ring);
}

/* ── What it found and drafted, kept: the sheet's own look ── */
.studio-bag[hidden],
.studio-slots[hidden] {
  display: none;
}
.studio-bag {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  align-items: center;
  gap: 10px 14px;
}
.studio-bag-name {
  color: var(--muted);
  font: 500 11px / 1.2 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.studio-bag-name b {
  margin-left: 4px;
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.studio-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.studio-slot {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: var(--studio-w);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
.studio-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--hair);
  pointer-events: none;
}
.studio-slot[data-empty] {
  background: transparent;
  cursor: default;
}
.studio-slot[data-empty]::after {
  border: 1px dashed var(--line-strong);
  box-shadow: none;
}
.studio-slot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* A draft's page shown from where its music starts, close enough to read its first bars. */
.studio-slot-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 10px;
}
.studio-slot-face img {
  transform: scale(2.2);
  transform-origin: 4% 0;
}
/* Laid over the whole slot, so a tall page is cut to the slot instead of making its row taller. */
.studio-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  object-position: top;
}
.studio-slot.studio-tile {
  background: var(--layer-1);
}
.studio-slot.studio-tile svg {
  width: 22px;
  height: 22px;
}
.studio-slot-n {
  position: absolute;
  right: -5px;
  bottom: -5px;
  z-index: 1;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  color: var(--page-paper);
  background: var(--ink);
  font: 600 11px / 20px var(--mono);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
/* Above its slot, moved sideways to stay inside the studio (--studio-tip-shift). */
.studio-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 5;
  width: max-content;
  max-width: 260px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink);
  background: var(--white);
  box-shadow:
    var(--ring),
    0 12px 32px rgba(15, 14, 18, 0.18);
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  opacity: 0;
  transform: translateX(calc(-50% + var(--studio-tip-shift, 0px))) translateY(4px);
  transition:
    opacity 0.18s,
    transform 0.18s var(--ease-settle);
  pointer-events: none;
}
.studio-tip b {
  display: block;
  font-weight: 560;
  overflow-wrap: anywhere;
}
.studio-tip span {
  display: block;
  color: var(--muted);
}
@media (hover: hover) {
  .studio-slot:hover .studio-tip {
    opacity: 1;
    transform: translateX(calc(-50% + var(--studio-tip-shift, 0px)));
  }
}
.studio-slot:focus-visible .studio-tip {
  opacity: 1;
  transform: translateX(calc(-50% + var(--studio-tip-shift, 0px)));
}

/* ── A draft at reading size: a window in the room's pixels over the room, dimmed behind it in a checker of its own
   pixels, the close mark at the window's right ── */
.studio-overlay[data-viewing]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  background-image: repeating-conic-gradient(rgba(15, 14, 18, 0.28) 0 25%, transparent 0 50%);
  background-size: calc(2 * var(--studio-px)) calc(2 * var(--studio-px));
  pointer-events: auto;
}
.studio-viewer {
  position: absolute;
  inset: calc(8 * var(--studio-px)) calc(8 * var(--studio-px)) calc(var(--studio-talk-over) + 8 * var(--studio-px));
  z-index: 6;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: calc(4 * var(--studio-px));
  padding: calc(5 * var(--studio-px)) calc(5 * var(--studio-px)) calc(6 * var(--studio-px)) calc(8 * var(--studio-px));
  background: var(--studio-w);
  box-shadow: var(--studio-frame);
  font-family: var(--studio-face);
}
.studio-viewer[hidden] {
  display: none;
}
.studio-viewer header {
  flex-wrap: nowrap;
  align-items: center;
  margin: 0;
}
.studio-viewer header em {
  overflow: hidden;
  text-overflow: ellipsis;
}
.studio-shut {
  display: grid;
  flex: none;
  place-items: center;
  width: calc(14 * var(--studio-px));
  height: calc(14 * var(--studio-px));
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.studio-shut::before {
  content: "";
  width: calc(7 * var(--studio-px));
  height: calc(7 * var(--studio-px));
  background: var(--studio-cross) 0 0 / 100% 100%;
  image-rendering: pixelated;
}
.studio-shut:hover {
  background: var(--studio-l);
}
.studio-shut:focus-visible {
  outline: none;
  box-shadow: var(--studio-ring-bare);
}
.studio-viewer-paper {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.studio-viewer-paper img {
  display: block;
  width: 100%;
  object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
  .studio-caret {
    animation: none;
  }
  .studio-talk::before {
    transition: none;
  }
}
@media (max-width: 760px) {
  /* Edge to edge on a phone: the room the sheet's whole width, its words inset. */
  .agent-studio {
    --studio-talk-over: 12px;
  }
  .studio-wrap {
    margin-inline: calc(-1 * var(--space-4));
  }
  .studio-stage {
    border-radius: 0;
  }
  .studio-find {
    width: 260px;
  }
  .studio-pop {
    width: 280px;
  }
  .studio-talk {
    grid-template-columns: minmax(0, 1fr);
    gap: calc(3 * var(--studio-px));
    margin-inline: 10px;
  }
  .studio-open,
  .studio-go {
    justify-self: start;
  }
  .studio-open {
    padding-left: 0;
  }
  .studio-bag {
    grid-template-columns: auto 1fr;
  }
}
