/* The dummy Beancat Studio UI the landing demos are staged in.
   Rebuilt from the shipped web app's dark theme (apps/web tokens, PR #45 byline and
   Backstage), simplified and set a little larger so it reads at demo size.
   Everything is laid out on a fixed logical stage and scaled to fit (see studio.js). */

.demo {
  --st-bg: #0b1017;
  --st-s1: #141a23;
  --st-s2: #202a37;
  --st-s3: #2a3544;
  --st-text: #eff2f7;
  --st-soft: #d8dde6;
  --st-muted: #9ca7b7;
  --st-faint: #6f7b8c;
  --st-border: rgb(205 212 223 / 0.14);
  --st-border-strong: rgb(156 167 183 / 0.36);
  --st-primary: #8db5ff;
  --st-look: #06b6d4;
  --st-ready: #94a3b8;
  --st-make: #d946ef;
  --st-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --st-brand: "Unbounded", "DM Sans", system-ui, sans-serif;
  --st-mono: ui-monospace, "SF Mono", Menlo, monospace;

  position: relative;
  overflow: hidden;
  background: var(--st-bg);
  border: 0.25rem solid var(--ink, #15161b);
  box-shadow: 0.625rem 0.625rem 0 var(--blue, #0554f4);
  isolation: isolate;
  contain: layout paint;
}
.demo--hero {
  aspect-ratio: 860 / 592;
}
.demo--org {
  aspect-ratio: 860 / 620;
}
.demo--dir {
  aspect-ratio: 860 / 646;
}
/* Without JS the demos further down show a still. It sits in <noscript>, so with JS it never
   downloads: the demo replaces it as it starts (startAfterHero in studio.js). */
.demo__still {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.demo__stage {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
}
.demo__cam {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform-origin: 0 0;
}
.demo__curtain {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #0b1017;
  pointer-events: none;
}
/* The hero's opening frame (T.poster) as a still: shown before the demo mounts and over it until its first play. */
.demo--hero:empty,
.demo__poster {
  background: #0b1017 url("../assets/media/hero/poster.webp") center / cover no-repeat;
}
.demo__poster {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

/* ---------- The app ---------- */
.studio {
  position: absolute;
  inset: 0;
  font: 400 14px / 1.4 var(--st-sans);
  color: var(--st-text);
  background: var(--st-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
}
.studio .pi {
  font-size: 12px;
  line-height: 1;
}
.st-caps {
  font: 500 10px / 1 var(--st-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--st-muted);
}

/* Sidebar: balance, project, Files */
.st-side {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
}
.st-top {
  position: absolute;
  left: 14px;
  top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.st-top > img {
  width: 30px;
  height: 30px;
  margin-left: -2px;
}
.st-balance {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 4px 0 12px;
  border-radius: 999px;
  background: #232d3d;
  border: 1px solid rgb(141 181 255 / 0.36);
}
.st-balance b {
  font: 700 14px / 1 var(--st-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.st-balance span {
  font: 600 11.5px / 1 var(--st-sans);
  color: #0b1017;
  background: var(--st-primary);
  border-radius: 999px;
  padding: 6px 10px;
}
.st-side .st-caps {
  position: absolute;
  left: 16px;
}
.st-pick {
  position: absolute;
  left: 14px;
  display: flex;
  gap: 8px;
}
.st-pick__name {
  width: 150px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 11px;
  border: 1px solid var(--st-border-strong);
  border-radius: 8px;
  font-size: 14px;
}
.st-pick__name .pi {
  color: var(--st-muted);
  font-size: 11px;
}
.st-pick__add {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--st-border-strong);
  border-radius: 8px;
  color: var(--st-muted);
}
.st-files-tools {
  position: absolute;
  right: 12px;
  display: flex;
  gap: 12px;
  color: var(--st-muted);
}
.st-files-tools .pi {
  font-size: 11px;
}

.st-tree {
  position: absolute;
  left: 8px;
  right: 8px;
}
.st-row {
  position: absolute;
  left: 0;
  right: 0;
  height: var(--row, 22px);
  display: flex;
  align-items: center;
  gap: 7px;
  padding-right: 8px;
  border-radius: 5px;
  font-size: var(--row-font, 12.5px);
  color: var(--st-soft);
  white-space: nowrap;
}
.st-row__wash {
  position: absolute;
  inset: 0;
  border-radius: 5px;
  transform-origin: 0 50%;
  transform: scaleX(0);
  opacity: 0;
}
.st-row__wash::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 2px;
  border-radius: 2px;
  background: currentColor;
}
.st-row > :not(.st-row__wash) {
  position: relative;
}
.st-row .chev {
  width: 10px;
  flex: none;
  color: var(--st-faint);
  font-size: 8.5px;
  text-align: center;
}
.st-row .ico {
  width: 14px;
  flex: none;
  color: var(--st-muted);
  text-align: center;
}
.st-row .name {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.st-row.is-look {
  padding-right: 26px;
}
.st-row.is-make {
  padding-right: 34px;
}
.st-row > .mark {
  position: absolute;
  right: 6px;
  top: 50%;
  translate: 0 -50%;
  display: inline-flex;
  align-items: center;
  font: 600 10px / 1 var(--st-sans);
  opacity: 0;
}
.st-row > .mark .pi {
  font-size: 11px;
}
.st-row.is-look .st-row__wash {
  color: var(--st-look);
  background: color-mix(in srgb, var(--st-look) 15%, transparent);
}
.st-row.is-make .st-row__wash {
  color: var(--st-make);
  background: color-mix(in srgb, var(--st-make) 15%, transparent);
}
.st-row .mark--look {
  color: var(--st-look);
}
.st-row .mark--new {
  color: var(--st-make);
}

/* Main panel: the chat */
.st-main {
  position: absolute;
  overflow: hidden;
  background: var(--st-s1);
  border: 1px solid var(--st-border);
  border-radius: 14px;
}
.st-scroll {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 22px,
    #000 calc(100% - 8px),
    transparent
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 22px,
    #000 calc(100% - 8px),
    transparent
  );
}
.st-feed {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
}
.st-block {
  position: absolute;
  left: 20px;
  right: 20px;
}

/* Composer */
.st-composer {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  height: 76px;
  border: 1px solid var(--st-border-strong);
  border-radius: 14px;
  background: #10161f;
}
.st-composer__text {
  position: absolute;
  left: 15px;
  right: 56px;
  top: 12px;
  font-size: 15px;
  line-height: 1.35;
  white-space: nowrap;
}
.st-composer__ph {
  color: var(--st-faint);
}
.st-composer__typed {
  color: var(--st-text);
}
.st-caret {
  display: inline-block;
  width: 1.5px;
  height: 1.1em;
  margin-left: 1px;
  vertical-align: -0.18em;
  background: var(--st-primary);
}
.st-composer__tools {
  position: absolute;
  left: 14px;
  bottom: 11px;
  display: flex;
  gap: 14px;
  color: var(--st-muted);
}
.st-composer__tools .pi {
  font-size: 13px;
}
.st-send {
  position: absolute;
  right: 10px;
  bottom: 9px;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #3a4a63;
  color: #b9c8df;
}
.st-send .pi {
  font-size: 13px;
}

/* A request */
.st-ask {
  position: absolute;
  right: 20px;
  max-width: 440px;
  background: var(--st-s2);
  border-radius: 14px 14px 4px 14px;
  padding: 10px 14px;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--st-text);
}

/* The byline: "{cat} beancat is looking at [tag] [tag] +2 ——— Backstage US$1.43" */
.st-byline {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.st-cat {
  position: relative;
  flex: none;
  width: 46px;
  height: 46px;
  margin: -6px -6px -6px -10px;
  translate: 0 -12%;
}
.st-cat svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.st-wordmark {
  flex: none;
  font: 900 17px / 1 var(--st-brand);
  letter-spacing: -0.065em;
  color: var(--st-text);
}
.st-phrases {
  position: relative;
  flex: 1 1 auto;
  align-self: stretch;
  min-width: 0;
}
.st-phrase {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.st-phrase .is {
  color: var(--st-muted);
}
.st-phrase .verb {
  font-weight: 600;
  background: linear-gradient(
    100deg,
    var(--st-text) 0 38%,
    color-mix(in srgb, var(--st-primary) 70%, var(--st-text)) 50%,
    var(--st-text) 62% 100%
  );
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: st-shimmer 2.4s linear infinite;
}
.st-phrase .rule {
  flex: 1 1 24px;
  min-width: 10px;
  height: 1px;
  background: color-mix(in srgb, var(--st-text) 14%, transparent);
}
.st-tag {
  position: relative;
  flex: none;
  background: var(--st-s2);
  border: 1px solid var(--st-border);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11.5px;
  line-height: 1.35;
  color: color-mix(in srgb, var(--st-text) 84%, var(--st-muted));
}
.st-tag--more {
  color: var(--st-muted);
}
.st-tag--more .alt {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.st-trail {
  flex: none;
  display: flex;
  align-items: center;
  gap: 9px;
}
.st-bs {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--st-border);
  border-radius: 999px;
  padding: 4px 11px 4px 9px;
  font-size: 11.5px;
  font-weight: 600;
  color: color-mix(in srgb, var(--st-text) 82%, var(--st-muted));
}
.st-bs .pi {
  font-size: 10px;
}
.st-bs__live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--st-primary);
  animation: st-live 1.2s ease-in-out infinite;
}
.st-bs__icons {
  position: relative;
  width: 10px;
  height: 10px;
  display: grid;
  place-items: center;
}
.st-bs__icons > * {
  position: absolute;
}
.st-cost {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 400 11.5px / 1 var(--st-mono);
  font-variant-numeric: tabular-nums;
  color: var(--st-muted);
  white-space: nowrap;
}
.st-cost .pi {
  font-size: 9px;
  opacity: 0.75;
}

/* A result card: one shot */
.st-card__title {
  height: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}
.st-card__title .pi {
  color: var(--st-muted);
  font-size: 12px;
}
.st-card__title b {
  font-weight: 600;
}
.st-card__title .meta {
  color: var(--st-muted);
  font-size: 12px;
}
.st-card__media {
  position: absolute;
  left: 0;
  top: 32px;
  overflow: hidden;
  border-radius: 10px;
  background: #070a0f;
  box-shadow: 0 0 0 1px rgb(205 212 223 / 0.08);
}
.st-card__media video,
.st-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.st-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 30%,
    rgb(141 181 255 / 0.16) 50%,
    transparent 70%
  );
  background-size: 250% 100%;
  animation: st-sheen 1.3s linear infinite;
}
.st-progress {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 3px;
  border-radius: 3px;
  background: rgb(255 255 255 / 0.12);
  overflow: hidden;
}
.st-progress i {
  position: absolute;
  inset: 0;
  background: var(--st-primary);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.st-chip-model {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--st-text);
  background: rgb(11 16 23 / 0.72);
  border: 1px solid var(--st-border);
  border-radius: 999px;
  padding: 4px 10px 4px 8px;
}
.st-chip-model .pi {
  font-size: 10px;
  color: var(--st-make);
}

.st-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

/* Focus: dims what the camera isn't about */
.st-dim {
  position: absolute;
  z-index: 3;
  border-radius: 14px;
  background: rgb(11 16 23 / 0.66);
  pointer-events: none;
}

/* Flying references */
.st-fly {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  pointer-events: none;
}
.st-thumb {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #070a0f;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.16),
    0 14px 30px rgb(0 0 0 / 0.5);
  transform-origin: 50% 50%;
  opacity: 0;
}
.st-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- The Files tree as the app draws it (fileRowHTML) ---------- */
.st-ftree {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 6px,
    #000 calc(100% - 10px),
    transparent
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 6px,
    #000 calc(100% - 10px),
    transparent
  );
}
.st-ftree__rows {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
}
.st-frow {
  position: absolute;
  left: 0;
  right: 0;
  height: var(--row, 26px);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px 0 calc(4px + var(--depth) * var(--indent, 16px));
  border-radius: 4px;
  font-size: var(--row-font, 14px);
  color: var(--st-text);
  white-space: nowrap;
}
.st-frow > :not(.st-frow__wash):not(.st-spark):not(.mark) {
  position: relative;
}
.st-frow__wash {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  opacity: 0;
  transform-origin: 0 50%;
}
.st-frow__wash::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 2px;
  border-radius: 2px;
  background: currentColor;
}
.st-frow__chev {
  width: 18px;
  height: 18px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--st-muted);
}
.st-frow__chev .pi {
  font-size: 10px;
}
/* The app's folder: a filled folder with a tab (project-sidebar.css .row-icon). */
.st-fold {
  flex: none;
  position: relative;
  top: 1px;
  width: 16.5px;
  height: 13px;
  margin: 0 1px;
  background: color-mix(in srgb, #9ca7b7 18%, #141a23);
  border: 1px solid color-mix(in srgb, #9ca7b7 52%, transparent);
  border-radius: 2px;
}
.st-fold::before {
  content: "";
  position: absolute;
  left: 0.8px;
  top: -4.6px;
  width: 8px;
  height: 4.6px;
  background: color-mix(in srgb, #9ca7b7 34%, #141a23);
  border: 1px solid color-mix(in srgb, #9ca7b7 52%, transparent);
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
}
.st-ficon {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--st-muted);
}
.st-ficon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0% 50%;
  display: block;
}
.st-ficon .pi {
  font-size: 12.5px;
}
.st-frow .name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.st-badge {
  flex: none;
  font: 600 10.5px / 1.4 var(--st-sans);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--st-muted);
  background: var(--st-s2);
  border: 1px solid var(--st-border);
  border-radius: 4px;
  padding: 0 4px;
}
/* The sparkle the app puts on the corner of a changed file's icon. */
.st-spark {
  position: absolute;
  width: 10px;
  height: 10px;
  opacity: 0;
  overflow: visible;
  pointer-events: none;
  left: calc(4px + var(--depth) * var(--indent, 16px) + 18px + 5px + 18px - 6px);
  top: calc(50% - 13px);
}
.st-spark path {
  paint-order: stroke;
  stroke: var(--st-bg);
  stroke-width: 3;
  stroke-linejoin: round;
}
.st-frow .mark {
  position: absolute;
  right: 8px;
  top: 50%;
  translate: 0 -50%;
  display: inline-flex;
  opacity: 0;
}
.st-frow:has(.st-badge) .mark {
  right: 46px;
}
.st-frow .mark .pi {
  font-size: 12px;
}

/* ---------- "Updated in your project" (FileChanges) ---------- */
.st-changes {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: var(--st-s1);
  border: 1px solid var(--st-border);
  border-radius: 8px;
}
.st-changes header {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 12.5px / 1.35 var(--st-sans);
  color: var(--st-muted);
}
.st-changes header .pi {
  color: #22c55e;
  font-size: 15px;
}
.st-changes ul {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.st-changes li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 8px;
  border-radius: 6px;
  background: var(--st-s2);
  font-size: 13.5px;
  line-height: 1.35;
}
.st-changes li .pi {
  color: var(--st-muted);
  font-size: 12px;
}
.st-changes em {
  font: 400 11.5px / 1.35 var(--st-mono);
  font-style: normal;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--st-primary);
}
.st-reply {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--st-soft);
}

/* ---------- Dialogs: the asset viewer and the markdown editor ---------- */
.st-backdrop {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: rgb(5 8 12 / 0.64);
  opacity: 0;
  pointer-events: none;
}
.st-dialog {
  position: absolute;
  z-index: 4;
  background: var(--st-s1);
  border: 1px solid #354151;
  border-radius: 12px;
  box-shadow:
    0 20px 25px -5px rgb(0 0 0 / 0.38),
    0 8px 10px -6px rgb(0 0 0 / 0.32);
  font-family: var(--st-sans);
  color: var(--st-text);
}
.st-dialog__x {
  position: absolute;
  right: 14px;
  top: 14px;
  color: var(--st-muted);
}
.st-dialog__x .pi {
  font-size: 13px;
}
.st-viewer__stage {
  position: absolute;
  overflow: hidden;
  border-radius: 8px;
  background: #070a0f;
}
.st-viewer__stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.st-viewer__side {
  position: absolute;
  display: grid;
  align-content: start;
  gap: 10px;
}
.st-viewer__title {
  font: 600 21px / 1.25 var(--st-sans);
  letter-spacing: -0.01em;
}
.st-viewer__caption {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: #c3cbd7;
}
.st-viewer__caption .w {
  display: inline-block;
}
/* One pass of light across the title as it lands (the byline verb's shimmer, once). */
.st-viewer__title {
  background: linear-gradient(100deg, var(--st-text) 0 40%, #b9d0ff 50%, var(--st-text) 60% 100%);
  background-size: 280% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.st-md__head {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.st-md__label {
  font: 600 11px / 1 var(--st-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--st-muted);
}
.st-md__name {
  width: 290px;
  height: 32px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--st-border);
  border-radius: 6px;
  font: 600 15px / 1 var(--st-sans);
}
.st-md__bar {
  position: absolute;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.st-md__mode {
  display: flex;
  padding: 2px;
  background: var(--st-s2);
  border: 1px solid var(--st-border);
  border-radius: 6px;
}
.st-md__mode span {
  padding: 7px 12px;
  border-radius: 4px;
  font: 600 13px / 1.2 var(--st-sans);
  color: var(--st-muted);
}
.st-md__mode span.on {
  background: var(--st-bg);
  color: var(--st-text);
}
.st-md__save {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 6px;
  background: var(--st-primary);
  color: var(--st-bg);
  font: 600 13.5px / 1.2 var(--st-sans);
}
.st-md__save .pi {
  font-size: 12px;
}
.st-md__panel {
  position: absolute;
  left: 20px;
  right: 20px;
  overflow: hidden;
  background: var(--st-bg);
  border: 1px solid var(--st-border);
  border-radius: 6px;
  font: 400 13.5px / 22px var(--st-mono);
}
.st-md__gutter {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 44px;
  background: var(--st-s1);
}
.st-md__lines {
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
}
.st-md__line {
  position: relative;
  height: 22px;
  display: flex;
  white-space: pre;
}
.st-md__no {
  position: relative;
  width: 44px;
  flex: none;
  padding-right: 10px;
  text-align: right;
  color: var(--st-faint);
}
.st-md__txt {
  position: relative;
  padding-left: 14px;
  color: var(--st-text);
}
.st-md__txt .m {
  color: #8f9aab;
}
.st-md__txt .h {
  font-weight: 700;
}
.st-md__add {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform-origin: 0 50%;
  background: rgb(34 197 94 / 0.17);
  box-shadow: inset 2px 0 0 #22c55e;
}
.st-md__foot {
  position: absolute;
  right: 20px;
  bottom: 14px;
  font: 600 14px / 1 var(--st-sans);
  color: var(--st-muted);
  padding: 8px 12px;
}

/* ---------- Backstage (AgentBackstage.vue), set a little larger than the app ---------- */
.st-bk {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 22px 18px 20px;
  background: var(--st-s1);
  border-left: 1px solid #354151;
  box-shadow: -14px 0 32px rgb(11 16 23 / 0.22);
  font: 400 14px / 1.4 var(--st-sans);
  color: var(--st-text);
  -webkit-font-smoothing: antialiased;
}
.st-bk > * {
  flex-shrink: 0;
}
.st-bk__head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.st-bk__head .st-cat {
  width: 46px;
  height: 46px;
  margin: -8px -4px -8px -8px;
  translate: none;
}
.st-bk__title {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}
.st-bk__title strong {
  font-size: 17.5px;
  font-weight: 600;
  line-height: 1.25;
}
.st-bk__title span {
  font-size: 12.5px;
  color: var(--st-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.st-bk__x {
  flex: none;
  align-self: flex-start;
  margin-top: 3px;
  color: var(--st-muted);
  font-size: 13px;
}
.st-bk__sheet {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--st-border);
  border-radius: 8px;
}
.st-bk__sheet > div {
  display: grid;
  gap: 2px;
  padding: 8px 12px;
}
.st-bk__sheet > div + div {
  border-left: 1px solid var(--st-border);
}
.st-bk__sheet dt {
  font: 400 10.5px / 1.5 var(--st-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--st-muted);
}
.st-bk__sheet dd {
  margin: 0;
  font: 600 18px / 1.45 var(--st-sans);
  font-variant-numeric: tabular-nums;
}
.st-bk__sec {
  display: grid;
  gap: 8px;
}
.st-bk__sec h3 {
  margin: 0;
  font: 500 10.5px / 1.25 var(--st-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--st-muted);
}
.st-bk__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.st-bk__chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 11px 4px 8px;
  border-radius: 6px;
  background: var(--st-s2);
  font-size: 13px;
  line-height: 1.5;
}
.st-bk__chips .pi {
  color: var(--tint);
  font-size: 11.5px;
}
.st-bk__rows {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.st-bk__row {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 0 -8px;
  padding: 3px 8px;
  border-radius: 6px;
}
.st-bk__row + .st-bk__row::before {
  content: "";
  position: absolute;
  left: 20px;
  top: -3px;
  width: 1px;
  height: 6px;
  background: var(--st-border-strong);
}
.st-bk__icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--tint);
  background: color-mix(in srgb, var(--tint) 16%, transparent);
}
.st-bk__icon .pi {
  font-size: 11.5px;
}
.st-bk__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  min-height: 24px;
  min-width: 0;
}
.st-bk__main strong {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.st-bk__main strong.is-live {
  color: var(--st-primary);
}
.st-bk__tag {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 7px;
  border: 1px solid var(--st-border);
  border-radius: 999px;
  background: var(--st-s2);
  font-size: 11.5px;
  line-height: 1.35;
  color: #e1e6ee;
}

/* ---------- "You say / Beancat does": the Directing panel, set on a stage ---------- */
.st-dir {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: var(--say-w, 380px) minmax(0, 1fr);
  grid-template-rows: 46px repeat(3, minmax(0, 1fr));
  background: #fff;
}
.st-dir__head {
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 3px solid #15161b;
  font: 400 13px / 1 var(--label, "DotGothic16", ui-monospace, monospace);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.st-dir__head--say {
  color: #0554f4;
  background: #fff;
}
.st-dir__head--does {
  color: var(--st-muted);
  background: var(--st-bg);
  padding-left: 22px;
}
.st-dir__say {
  position: relative;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 18px 26px 18px 26px;
  background: #fff;
  color: #15161b;
  font: 700 20px / 1.28 var(--display, "Unbounded", system-ui, sans-serif);
  letter-spacing: -0.03em;
}
.st-dir__does {
  display: flex;
  align-items: center;
  padding: 0 20px 0 22px;
  background: var(--st-bg);
}
.st-dir__say.is-next {
  border-top: 2px solid #d8cfbf;
}
.st-dir__does.is-next {
  border-top: 1px solid var(--st-border);
}
.st-dir__does {
  position: relative;
}
.st-dir__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgb(255 255 255 / 0.7);
}
.st-dir__does .st-dir__veil {
  background: rgb(11 16 23 / 0.72);
}
.st-dir__bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: #0554f4;
  transform-origin: 50% 0;
  transform: scaleY(0);
}
.st-dir__file {
  display: grid;
  gap: 7px;
  justify-items: start;
}
.st-dir__file img {
  display: block;
  width: 100%;
  max-width: 312px;
  height: auto;
}
.st-dir__file span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 12.5px / 1 var(--body, "Onest", system-ui, sans-serif);
  letter-spacing: 0;
  color: #636261;
}
.st-dir__file .pi {
  font-size: 11px;
}
/* One request: the quote and its storyboard on the left, the byline level with the quote. */
.st-dir--one {
  grid-template-rows: 46px minmax(0, 1fr);
}
.st-dir--one .st-dir__say {
  align-content: start;
  gap: 22px;
  padding: 30px 30px 26px;
  font-size: 25px;
  line-height: 1.2;
}
.st-dir--one .st-dir__file {
  gap: 9px;
}
.st-dir--one .st-dir__file img {
  width: 200px;
  max-width: none;
}
.st-dir--one .st-dir__does {
  align-items: flex-start;
  padding-top: 30px;
}
.st-dir__does .st-byline {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  gap: 7px;
}
.st-dir__does .st-wordmark {
  font-size: 16px;
}
.st-dir__does .st-phrase {
  gap: 5px;
  font-size: 13.5px;
}
.st-dir__does .st-tag {
  font-size: 11.5px;
  padding: 3px 8px;
}
.st-dir__does .st-bs {
  font-size: 11px;
  padding: 4px 10px 4px 8px;
}

@keyframes st-shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -160% 0;
  }
}
@keyframes st-live {
  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}
@keyframes st-sheen {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -120% 0;
  }
}

/* Pause control (WCAG 2.2.2) */
.demo__pause {
  position: absolute;
  right: 0.625rem;
  bottom: 0.625rem;
  z-index: 6;
  width: 1.875rem;
  height: 1.875rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgb(11 16 23 / 0.62);
  color: #eff2f7;
  opacity: 0;
  transition: opacity 160ms ease;
}
.demo:hover .demo__pause,
.demo__pause:focus-visible,
.demo.is-paused .demo__pause {
  opacity: 1;
}
.demo__pause .pi {
  font-size: 0.6875rem;
}

@media (prefers-reduced-motion: reduce) {
  .st-phrase .verb {
    animation: none;
    background: none;
    color: var(--st-text);
  }
  .st-bs__live,
  .st-sheen {
    animation: none;
  }
  .demo__pause {
    display: none;
  }
}
