/* owner-studio.css: the AI Studio tab of the owner page (S4, 2026-11-17; live/views/25-studio.html,
   live/js/18-live-studio-tab.js). Hand-written, not Tailwind: build_live.py copies it as is to
   server/portal/static/owner-studio.css and links it after owner.css. Every colour is a token of owner.css
   (rgb(var(--c-x) / alpha)), so light and dark follow the page's own theme (prefers-color-scheme, or
   data-theme on the html element). Motion only under prefers-reduced-motion: no-preference, and every loop is bounded. */

:root { --st-raise: var(--c-surface); --st-display: "Instrument Sans", "Helvetica Neue", Arial, system-ui, sans-serif; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --st-raise: 36 64 94; } }
:root[data-theme="dark"] { --st-raise: 36 64 94; }

/* ---------- page ---------- */
#st-wrap { position: relative; }
.st-home { position: relative; isolation: isolate; max-width: 760px; margin: 0 auto; padding-top: 4px; }
@media (min-width: 600px) { .st-home { padding-top: 28px; } }
@media (min-width: 1200px) { .st-home { padding-top: 52px; } }
.st-glow { position: absolute; z-index: -1; left: 0; right: 0; top: -24px; height: 360px; pointer-events: none;
  background: radial-gradient(52% 62% at 50% 36%, rgb(var(--c-accent) / .15), rgb(var(--c-accent) / 0) 100%),
              radial-gradient(30% 42% at 78% 18%, rgb(var(--c-mint) / .07), rgb(var(--c-mint) / 0) 100%); }
@media (forced-colors: active) { .st-glow { display: none; } }

.st-hero { max-width: 640px; margin: 0 auto 20px; text-align: center; }
.st-eyebrow { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 3px 12px 3px 10px; border: 1px solid rgb(var(--c-line)); border-radius: 999px;
  background: rgb(var(--c-surface) / .75); color: rgb(var(--c-fg)); font-size: 13px; line-height: 20px; font-weight: 600; letter-spacing: .01em; box-shadow: 0 1px 2px rgb(var(--c-shadow) / .06); }
.st-eyebrow .ico { color: rgb(var(--c-accent)); }
.st-title { margin-top: 14px; font-family: var(--st-display); font-weight: 700; font-size: 30px; line-height: 36px; letter-spacing: -0.025em; color: rgb(var(--c-fg)); }
.st-title:focus { outline: none; }
.st-title:focus-visible { outline: 2px solid rgb(var(--c-accent)); outline-offset: 4px; border-radius: 6px; }
@media (min-width: 600px) { .st-title { font-size: 40px; line-height: 46px; } }
@media (min-width: 1200px) { .st-title { font-size: 46px; line-height: 52px; } }
.st-lead { max-width: 50ch; margin: 10px auto 0; color: rgb(var(--c-muted)); font-size: 15px; line-height: 22px; }
@media (min-width: 600px) { .st-lead { font-size: 17px; line-height: 26px; } }
.st-banner { margin: 0 auto 12px; padding: 10px 14px; border-radius: 14px; background: rgb(var(--c-warn-soft)); color: rgb(var(--c-fg)); font-size: 14px; line-height: 20px; text-align: center; }

/* ---------- the prompt box ---------- */
.st-composer { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 12px; border: 1px solid rgb(var(--c-line)); border-radius: 24px;
  background: rgb(var(--c-surface)); box-shadow: 0 1px 2px rgb(var(--c-shadow) / .06), 0 22px 44px -22px rgb(var(--c-shadow) / .34);
  transition: border-color 150ms cubic-bezier(.2,0,0,1), box-shadow 150ms cubic-bezier(.2,0,0,1); }
.st-composer:focus-within { border-color: rgb(var(--c-accent) / .6); box-shadow: 0 0 0 4px rgb(var(--c-accent) / .13), 0 22px 44px -22px rgb(var(--c-shadow) / .34); }
.st-composer[data-drag="true"] { border-style: dashed; border-color: rgb(var(--c-accent)); }
.st-input { display: block; width: 100%; min-height: 60px; max-height: 280px; padding: 4px 6px 0; border: 0; background: transparent; color: rgb(var(--c-fg)); font-size: 18px; line-height: 28px; resize: none; }
.st-input:focus, .st-input:focus-visible { outline: none; }
.st-input::placeholder { color: rgb(var(--c-muted)); opacity: .85; }
.st-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.st-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.st-tool { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 10px; border: 1px solid rgb(var(--c-line)); border-radius: 999px;
  background: rgb(var(--c-surface)); color: rgb(var(--c-fg)); font-size: 14px; line-height: 20px; font-weight: 600; transition: background-color 150ms; }
.st-tool .ico { color: rgb(var(--c-accent)); }
.st-tool:disabled { opacity: .5; cursor: not-allowed; }
@media (hover: hover) { .st-tool:not(:disabled):hover { background: rgb(var(--c-fg) / .05); } }
.st-tool-round { justify-content: center; width: 44px; height: 44px; padding: 0; flex: none; }
.st-mode { display: inline-flex; min-width: 0; margin: 0; padding: 3px; border: 0; border-radius: 999px; background: rgb(var(--c-sunken)); }
.st-mode-opt { position: relative; display: inline-flex; }
.st-mode-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.st-mode-face { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; color: rgb(var(--c-muted)); font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap;
  transition: background-color 150ms, color 150ms, box-shadow 150ms; }
.st-mode-opt input:checked + .st-mode-face { background: rgb(var(--st-raise)); color: rgb(var(--c-fg)); box-shadow: 0 1px 2px rgb(var(--c-shadow) / .14), 0 0 0 1px rgb(var(--c-line)); }
.st-mode-opt input:checked + .st-mode-face .ico { color: rgb(var(--c-accent)); }
.st-mode-opt input:focus-visible + .st-mode-face { outline: 2px solid rgb(var(--c-accent)); outline-offset: 1px; }
.st-narrow { display: none; }
.st-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px 0 16px; border: 0; border-radius: 999px;
  background: rgb(var(--c-accent)); color: rgb(var(--c-accent-fg)); font-size: 16px; line-height: 24px; font-weight: 700; box-shadow: 0 8px 18px -8px rgb(var(--c-accent) / .6);
  transition: transform 150ms cubic-bezier(.2,0,0,1), background-color 150ms, box-shadow 150ms; }
.st-go:disabled { background: rgb(var(--c-fg) / .12); color: rgb(var(--c-fg) / .45); box-shadow: none; cursor: not-allowed; }
.st-go[aria-busy="true"] { cursor: progress; }
.st-go .spinner { width: 18px; height: 18px; }
@media (hover: hover) { .st-go:not(:disabled):hover { background: rgb(var(--c-accent-strong)); transform: translateY(-1px); box-shadow: 0 12px 22px -10px rgb(var(--c-accent) / .65); } }
@media (max-width: 479.98px) {
  .st-wide { display: none; } .st-narrow { display: inline; }
  .st-go { flex: 1 1 100%; height: 48px; }
  .st-composer { padding: 12px 12px 12px; border-radius: 22px; }
}
.st-attached { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 4px 4px 0; list-style: none; }
.st-att { position: relative; flex: none; width: 64px; height: 64px; }
.st-att-media { display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; border-radius: 14px; background: rgb(var(--c-sunken)); color: rgb(var(--c-muted)); box-shadow: inset 0 0 0 1px rgb(var(--c-line)); }
.st-att-media img, .st-att-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.st-att-tag { position: absolute; left: 4px; bottom: 4px; padding: 0 5px; border-radius: 6px; background: rgb(0 0 0 / .62); color: #fff; font-size: 11px; line-height: 16px; font-weight: 600; }
.st-att-x { position: absolute; top: -7px; right: -7px; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 2px solid rgb(var(--c-surface)); border-radius: 999px; background: rgb(var(--c-fg)); color: rgb(var(--c-bg)); }
.st-att-x::after { content: ""; position: absolute; inset: -10px; }
.st-att.is-err .st-att-media { box-shadow: inset 0 0 0 2px rgb(var(--c-danger)); }
.st-att-bar { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 4px; overflow: hidden; border-radius: 999px; background: rgb(255 255 255 / .55); }
.st-att-fill { display: block; height: 100%; background: rgb(var(--c-accent)); transition: width 200ms linear; }
.st-attached-sm .st-att { width: 52px; height: 52px; }
.st-quota { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 12px auto 0; color: rgb(var(--c-muted)); font-size: 13px; line-height: 20px; text-align: center; }
.st-quota:empty { display: none; }
.st-dots-quota { display: inline-flex; gap: 4px; }
.st-qdot { width: 8px; height: 8px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgb(var(--c-line-strong)); }
.st-qdot.is-left { background: rgb(var(--c-accent)); box-shadow: none; }
.st-err { margin: 10px auto 0; color: rgb(var(--c-danger)); font-size: 14px; line-height: 20px; text-align: center; }
.st-resume { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 8px; width: fit-content; max-width: 100%; margin: 14px auto 0; padding: 6px 6px 6px 14px; border-radius: 999px;
  background: rgb(var(--c-accent-soft)); color: rgb(var(--c-fg)); font-size: 14px; line-height: 20px; }
.st-resume .ico { color: rgb(var(--c-accent)); }
.st-resume-link { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: rgb(var(--c-surface)); color: rgb(var(--c-accent)); font-weight: 700; text-decoration: none; }
@media (hover: hover) { .st-resume-link:hover { text-decoration: underline; text-underline-offset: 3px; } }

/* ---------- idea chips ---------- */
.st-ideas { margin-top: 28px; text-align: center; }
.st-ideas-h { margin-bottom: 10px; color: rgb(var(--c-muted)); font-size: 13px; line-height: 20px; font-weight: 600; letter-spacing: .02em; }
.st-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.st-chips > li { display: flex; max-width: 100%; }
.st-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 40px; padding: 8px 14px 8px 12px; border: 1px solid rgb(var(--c-line)); border-radius: 999px;
  background: rgb(var(--c-surface)); color: rgb(var(--c-fg)); font-size: 14px; line-height: 20px; font-weight: 500; text-align: left; box-shadow: 0 1px 2px rgb(var(--c-shadow) / .05);
  transition: border-color 150ms, transform 150ms cubic-bezier(.2,0,0,1), box-shadow 150ms; }
.st-chip .ico { color: rgb(var(--c-accent)); }
.st-chip-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-chip[aria-busy="true"] { cursor: progress; }
@media (hover: hover) { .st-chip:hover { border-color: rgb(var(--c-accent) / .6); transform: translateY(-1px); box-shadow: 0 8px 16px -10px rgb(var(--c-shadow) / .4); } }
.st-chip-skel { width: 150px; height: 40px; border-radius: 999px; }

/* ---------- What AdNova knows about your venue ---------- */
.st-know { container-type: inline-size; margin-top: 28px; border: 1px solid rgb(var(--c-line)); border-radius: 18px; background: rgb(var(--c-surface) / .72); }
.st-know-btn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 16px; border: 0; border-radius: 18px; background: none; color: rgb(var(--c-fg)); text-align: left; }
.st-know-btn:focus-visible { outline-offset: -2px; }
.st-know-ico { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 12px; background: rgb(var(--c-accent-soft)); color: rgb(var(--c-accent)); }
.st-know-spin { width: 16px; height: 16px; }
.st-know-text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.st-know-title { font-size: 16px; line-height: 22px; font-weight: 600; }
.st-know-sub { color: rgb(var(--c-muted)); font-size: 13px; line-height: 18px; }
.st-know-chev { color: rgb(var(--c-muted)); transition: transform 200ms cubic-bezier(.2,0,0,1); }
.st-know-btn[aria-expanded="true"] .st-know-chev { transform: rotate(180deg); }
.st-know-body { display: grid; gap: 16px; padding: 4px 16px 18px; }
.st-sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
@container (min-width: 620px) { .st-sources { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.st-source { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; column-gap: 8px; row-gap: 2px; padding: 10px 12px; border-radius: 12px; background: rgb(var(--c-sunken)); font-size: 13px; line-height: 18px; }
.st-source > .ico:first-child { color: rgb(var(--c-muted)); }
.st-source-name { font-weight: 600; }
.st-source-state { grid-column: 2 / -1; color: rgb(var(--c-muted)); overflow-wrap: anywhere; }
.st-source-ok { grid-row: 1; grid-column: 3; color: rgb(var(--c-ok)); }
.st-source.is-ok > .ico:first-child { color: rgb(var(--c-accent)); }
.st-source.is-off { opacity: .72; }
.st-facts { display: grid; gap: 8px; margin: 0; font-size: 14px; line-height: 20px; }
.st-fact { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
.st-fact dt { color: rgb(var(--c-muted)); font-weight: 600; }
.st-fact dd { margin: 0; overflow-wrap: anywhere; }
.st-fact-line { display: block; }
.st-fact-link { color: rgb(var(--c-accent)); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.st-said { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.st-said-h { margin-bottom: 4px; color: rgb(var(--c-muted)); font-size: 13px; line-height: 18px; font-weight: 700; }
.st-said-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 20px; }
.st-said-list li { position: relative; padding-left: 13px; }
.st-said-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 999px; background: rgb(var(--c-accent)); }
.st-know-h { margin-top: 4px; font-family: var(--st-display); font-size: 16px; line-height: 22px; font-weight: 600; }
.st-know-hint { margin-top: -10px; color: rgb(var(--c-muted)); font-size: 13px; line-height: 18px; }
.st-pics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
@container (min-width: 560px) { .st-pics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.st-pic { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; }
.st-pic-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 12px; background: rgb(var(--c-sunken)); }
.st-pic-media img, .st-pic-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-pics-ideas .st-pic-media img { filter: saturate(.8); }
.st-pic-cap { display: flex; flex-direction: column; min-width: 0; font-size: 12px; line-height: 16px; }
.st-pic-src { color: rgb(var(--c-fg)); font-weight: 600; }
.st-pic-by, .st-pic-text { overflow: hidden; color: rgb(var(--c-muted)); text-overflow: ellipsis; white-space: nowrap; }
.st-pic-idea { padding: 4px 0; color: rgb(var(--c-muted)); font-size: 12px; line-height: 16px; }
/* (2026-11-17) the venue's own pictures are in its ads by default: a quiet state and a small "Don't use" */
.st-pic-act { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 8px; min-width: 0; margin-top: auto; }
.st-pic-state { color: rgb(var(--c-muted)); font-size: 12px; line-height: 16px; }
.st-dont { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; margin-right: -6px; padding: 0 8px 0 6px; border-radius: 999px;
  color: rgb(var(--c-muted)); font-size: 12px; line-height: 16px; font-weight: 600; transition: background-color 150ms, color 150ms; }
.st-dont:hover { background: rgb(var(--c-sunken)); color: rgb(var(--c-fg)); }
.st-dont:focus-visible { outline: 2px solid rgb(var(--c-accent)); outline-offset: 1px; }
.st-dont[aria-busy="true"] { opacity: .7; cursor: progress; }
.st-pic.is-out .st-pic-media img, .st-pic.is-out .st-pic-media video { opacity: .45; filter: grayscale(.6); }
.st-pic.is-out .st-dont { color: rgb(var(--c-accent)); }

/* ---------- Your creations ---------- */
.st-gallery { margin-top: 40px; }
.st-sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.st-sechead-title { font-family: var(--st-display); font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -0.01em; }
.st-sechead-meta { color: rgb(var(--c-muted)); font-size: 13px; line-height: 20px; }
.st-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.st-grid:empty { display: none; }
@media (min-width: 600px) { .st-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.st-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid rgb(var(--c-line)); border-radius: 16px; background: rgb(var(--c-surface));
  box-shadow: 0 1px 2px rgb(var(--c-shadow) / .05); transition: transform 200ms cubic-bezier(.2,0,0,1), box-shadow 200ms; }
@media (hover: hover) { .st-card:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -18px rgb(var(--c-shadow) / .42); } }
.st-card-media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: rgb(var(--c-boards)); }
.st-card-img, .st-card-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-card-video { object-fit: contain; background: #000; }
.st-card-ph { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; color: rgb(var(--c-mint));
  background: radial-gradient(120% 100% at 18% 0%, rgb(var(--c-boards-sel)), rgb(var(--c-boards)) 62%); }
.st-card-ph-ico { width: 28px; height: 28px; opacity: .85; }
.st-card-ph.is-busy::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgb(var(--c-mint) / .16) 50%, transparent 70%); transform: translateX(-100%); }
.st-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 48px; height: 48px; margin: -24px 0 0 -24px; padding: 0; border: 0; border-radius: 999px;
  background: rgb(255 255 255 / .94); color: #0f2b46; box-shadow: 0 6px 18px rgb(0 0 0 / .32); transition: transform 150ms cubic-bezier(.2,0,0,1); }
.st-play .ico { margin-left: 2px; }
.st-play:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (hover: hover) { .st-play:hover { transform: scale(1.07); } }
.st-status { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; min-height: 22px; padding: 1px 8px; border-radius: 999px;
  background: rgb(7 18 31 / .66); color: #fff; font-size: 12px; line-height: 18px; font-weight: 700; pointer-events: none; }
.st-status-ok { background: rgb(74 222 128); color: #0f2b46; }
.st-status-warn { background: rgb(180 83 9 / .94); }
.st-card-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgb(255 255 255 / .16); }
.st-card-fill { display: block; height: 100%; background: rgb(var(--c-mint)); transition: width 400ms linear; }
.st-card-body { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px 12px; }
.st-card-title { overflow: hidden; font-size: 14px; line-height: 20px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.st-card-meta { color: rgb(var(--c-muted)); font-size: 12px; line-height: 16px; }
.st-card-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; margin-top: auto; padding-top: 8px; }
.st-link { display: inline-flex; align-items: center; min-height: 32px; color: rgb(var(--c-accent)); font-size: 13px; line-height: 18px; font-weight: 600; text-decoration: none; }
@media (hover: hover) { .st-link:hover { text-decoration: underline; text-underline-offset: 3px; } }
.st-on { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px 0 14px; border: 0; border-radius: 999px;
  background: rgb(var(--c-accent)); color: rgb(var(--c-accent-fg)); font-size: 15px; line-height: 20px; font-weight: 700; box-shadow: 0 8px 18px -10px rgb(var(--c-accent) / .7); transition: background-color 150ms; }
.st-on:disabled { opacity: .6; cursor: progress; }
@media (hover: hover) { .st-on:not(:disabled):hover { background: rgb(var(--c-accent-strong)); } }
.st-on-sm { width: 100%; min-height: 36px; padding: 0 12px 0 10px; font-size: 13px; box-shadow: none; }
.st-on-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px 0 10px; border-radius: 999px; background: rgb(var(--c-ok-soft)); color: rgb(var(--c-ok)); font-size: 14px; line-height: 20px; font-weight: 700; }
.st-gal-empty { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px dashed rgb(var(--c-line-strong)); border-radius: 16px; color: rgb(var(--c-muted)); font-size: 14px; line-height: 20px; }
.st-gal-empty-tv { display: grid; place-items: center; flex: none; width: 56px; height: 40px; border-radius: 10px; background: rgb(var(--c-boards)); color: rgb(var(--c-mint)); }

/* ---------- a chat ---------- */
.st-chat { container-type: inline-size; display: flex; flex-direction: column; max-width: 840px; margin: 0 auto;
  min-height: calc(100vh - var(--sticky-top) - var(--sticky-bottom) - 48px); min-height: calc(100dvh - var(--sticky-top) - var(--sticky-bottom) - 48px); }
.st-chathead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 18px; }
.st-back { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px 0 8px; border-radius: 999px; color: rgb(var(--c-fg)); font-weight: 600; text-decoration: none; }
@media (hover: hover) { .st-back:hover { background: rgb(var(--c-fg) / .06); } }
@media (max-width: 599.98px) { .st-back { display: none; } }
.st-chathead-main { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; }
.st-chat-title { font-family: var(--st-display); font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -0.01em; }
.st-chat-title:focus { outline: none; }
.st-chat-title:focus-visible { outline: 2px solid rgb(var(--c-accent)); outline-offset: 4px; border-radius: 6px; }
.st-pill { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 10px; border-radius: 999px; background: rgb(var(--c-accent-soft)); color: rgb(var(--c-accent)); font-size: 12px; line-height: 18px; font-weight: 700; white-space: nowrap; }
.st-pill:empty { display: none; }
.st-chat-new { flex: none; margin-left: auto; }
.st-chat-title { min-width: 0; overflow-wrap: anywhere; }
.st-pill { flex: none; }
/* phones: the heading over its mode pill, two lines at most, New chat beside them */
@media (max-width: 599.98px) {
  .st-chathead { flex-wrap: nowrap; align-items: flex-start; }
  .st-chathead-main { flex-direction: column; align-items: flex-start; gap: 4px; }
  .st-chat-title { display: -webkit-box; overflow: hidden; font-size: 19px; line-height: 25px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .st-chat-new { padding: 0 8px; }
}
.st-log { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
/* scrolled to from the page (a new message, the scripts, the result): clear of the sticky reply box */
.st-log > li, .st-job, .st-typing { scroll-margin-bottom: 104px; }
.st-msg { display: flex; align-items: flex-end; gap: 10px; max-width: 100%; }
.st-msg-me { flex-direction: column; align-items: flex-end; align-self: flex-end; gap: 6px; max-width: min(86%, 560px); }
.st-msg-ai { align-self: flex-start; max-width: min(94%, 640px); }
.st-avatar { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 999px; color: rgb(var(--c-accent-fg));
  background: linear-gradient(135deg, rgb(var(--c-accent)), rgb(var(--c-band))); box-shadow: 0 3px 8px -3px rgb(var(--c-accent) / .55); }
.st-bubble { padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 22px; overflow-wrap: anywhere; }
.st-bubble p + p { margin-top: 8px; }
.st-msg-ai .st-bubble { border: 1px solid rgb(var(--c-line)); border-bottom-left-radius: 6px; background: rgb(var(--c-surface)); color: rgb(var(--c-fg)); }
.st-msg-me .st-bubble { border-bottom-right-radius: 6px; background: rgb(var(--c-accent)); color: rgb(var(--c-accent-fg)); }
.st-msg-me.is-pending .st-bubble { opacity: .78; }
.st-msg-files { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin: 0; padding: 0; list-style: none; }
.st-msg-file { display: grid; place-items: center; width: 56px; height: 56px; overflow: hidden; border-radius: 12px; background: rgb(var(--c-sunken)); color: rgb(var(--c-muted)); }
.st-msg-file img { display: block; width: 100%; height: 100%; object-fit: cover; }
.st-msg-files .st-att { width: 56px; height: 56px; }
.st-pending-line { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 8px; color: rgb(var(--c-muted)); font-size: 13px; line-height: 18px; }
.st-pending-spin { width: 14px; height: 14px; }
.st-pending-err { color: rgb(var(--c-danger)); }
.st-sys { display: flex; align-items: flex-start; gap: 8px; align-self: center; max-width: min(100%, 560px); padding: 7px 14px 7px 10px; border-radius: 14px;
  background: rgb(var(--c-sunken)); color: rgb(var(--c-muted)); font-size: 13px; line-height: 18px; text-align: left; }
.st-sys > .ico { flex: none; margin-top: 1px; color: rgb(var(--c-accent)); }
.st-sys > span { min-width: 0; }
.st-sys-err { border-radius: 14px; background: rgb(var(--c-danger-soft)); color: rgb(var(--c-fg)); }
.st-sys-err > .ico { color: rgb(var(--c-danger)); }
.st-sys-err { flex-wrap: wrap; align-items: center; }
.st-sys-btn { min-height: 32px; padding: 0 10px; }
.st-typing { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: rgb(var(--c-muted)); font-size: 13px; line-height: 18px; }
.st-dots { display: inline-flex; gap: 4px; padding: 12px 14px; border: 1px solid rgb(var(--c-line)); border-radius: 18px 18px 18px 6px; background: rgb(var(--c-surface)); }
.st-dots > span { width: 6px; height: 6px; border-radius: 999px; background: rgb(var(--c-muted)); opacity: .4; }

/* scripts */
.st-scripts { display: grid; gap: 10px; }
#se-body + .st-log { margin-top: 18px; }   /* the editor: the strip and Earlier versions, then the requests (2026-11-26) */
.st-scripts-h { margin-top: 4px; font-family: var(--st-display); font-size: 18px; line-height: 24px; font-weight: 700; }
.st-scripts-note { margin-top: -6px; color: rgb(var(--c-muted)); font-size: 14px; line-height: 20px; }
.st-cards { display: grid; gap: 12px; }
@container (min-width: 760px) { .st-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.st-script { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px; border: 1px solid rgb(var(--c-line)); border-radius: 18px; background: rgb(var(--c-surface));
  box-shadow: 0 1px 2px rgb(var(--c-shadow) / .05), 0 16px 32px -22px rgb(var(--c-shadow) / .4); }
.st-scripts[data-old="true"] .st-script { opacity: .62; box-shadow: none; }
.st-script-head { display: flex; align-items: center; gap: 10px; }
.st-num { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 9px; background: rgb(var(--c-boards)); color: rgb(var(--c-gold)); font-family: var(--st-display); font-size: 14px; font-weight: 700; }
.st-script-title { min-width: 0; font-family: var(--st-display); font-size: 16px; line-height: 22px; font-weight: 700; }
.st-script-idea { color: rgb(var(--c-muted)); font-size: 14px; line-height: 20px; }
.st-shots { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.st-shot { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 10px; }
.st-shot-pic { display: grid; place-items: center; width: 40px; height: 40px; overflow: hidden; border-radius: 10px; background: rgb(var(--c-sunken)); color: rgb(var(--c-accent)); }
.st-shot-pic img, .st-shot-pic video, .st-msg-file video { display: block; width: 100%; height: 100%; object-fit: cover; }
.st-shot-end .st-shot-pic { background: rgb(var(--c-boards)); color: rgb(var(--c-gold)); }
.st-shot-body { display: flex; flex-direction: column; min-width: 0; }
.st-shot-sec { color: rgb(var(--c-muted)); font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.st-shot-txt { font-size: 14px; line-height: 19px; overflow-wrap: anywhere; }
.st-script-vo { color: rgb(var(--c-muted)); font-size: 13px; line-height: 18px; font-style: italic; }
.st-script-foot { display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin-top: auto; padding-top: 4px; text-align: center; }
.st-make { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px;
  background: rgb(var(--c-accent)); color: rgb(var(--c-accent-fg)); font-size: 15px; line-height: 20px; font-weight: 700; transition: background-color 150ms; }
.st-make:disabled { background: rgb(var(--c-fg) / .1); color: rgb(var(--c-fg) / .42); cursor: not-allowed; }
.st-make[aria-busy="true"] { cursor: progress; }
@media (hover: hover) { .st-make:not(:disabled):hover { background: rgb(var(--c-accent-strong)); } }
.st-script-cost { color: rgb(var(--c-muted)); font-size: 12px; line-height: 16px; }
.st-script-confirm:empty { display: none; }

/* the make */
.st-job:empty { display: none; }
.st-job { margin-top: 14px; }
.st-making { display: grid; gap: 14px; padding: 16px; border-radius: 20px; background: rgb(var(--c-boards)); color: rgb(var(--c-on-boards));
  box-shadow: 0 0 0 1px rgb(var(--c-boards-edge)), 0 20px 40px -22px rgb(var(--c-shadow) / .55); }
.st-making-top { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.st-making-tv { position: relative; width: 64px; height: 40px; overflow: hidden; border-radius: 8px; background: rgb(var(--c-boards-cell)); box-shadow: inset 0 0 0 2px rgb(var(--c-boards-sel)); }
.st-making-scan { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgb(var(--c-mint) / .55), transparent); transform: translateX(-100%); }
.st-making-words { min-width: 0; }
.st-eyebrow-sm { color: rgb(var(--c-accent)); font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.st-making .st-eyebrow-sm { color: rgb(var(--c-mint)); }
.st-making-title { overflow: hidden; font-family: var(--st-display); font-size: 17px; line-height: 22px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.st-making-stage { color: rgb(var(--c-on-boards-muted)); font-size: 13px; line-height: 18px; }
.st-making-pct { color: rgb(var(--c-gold)); font-family: var(--st-display); font-size: 22px; line-height: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.st-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.st-step { position: relative; padding-top: 10px; color: rgb(var(--c-on-boards-muted)); font-size: 12px; line-height: 16px; }
.st-step::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 999px; background: rgb(var(--c-boards-cell)); transition: background-color 300ms; }
.st-step.is-done::before { background: rgb(var(--c-mint)); }
.st-step.is-now { color: rgb(var(--c-on-boards)); font-weight: 600; }
.st-step.is-now::before { background: linear-gradient(90deg, rgb(var(--c-mint)), rgb(var(--c-mint) / .25)); }
.st-track { height: 3px; overflow: hidden; border-radius: 999px; background: rgb(var(--c-boards-cell)); }
.st-track-fill { height: 100%; border-radius: 999px; background: rgb(var(--c-gold)); transition: width 600ms linear; }
.st-making-note { color: rgb(var(--c-on-boards-muted)); font-size: 12px; line-height: 17px; }

/* the result */
.st-result { display: grid; overflow: hidden; border: 1px solid rgb(var(--c-line)); border-radius: 20px; background: rgb(var(--c-surface)); box-shadow: 0 20px 44px -24px rgb(var(--c-shadow) / .5); }
@container (min-width: 620px) { .st-result { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.st-result-tv { position: relative; aspect-ratio: 16 / 9; background: rgb(var(--c-boards)); }
.st-result-video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.st-tv-wait { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 12px; color: rgb(var(--c-on-boards-muted)); font-size: 13px; line-height: 18px; text-align: center; }
.st-tv-wait .spinner, .st-tv-wait .ico { color: rgb(var(--c-mint)); }
.st-result-body { display: flex; flex-direction: column; gap: 6px; padding: 16px; }
.st-result-title { font-family: var(--st-display); font-size: 18px; line-height: 24px; font-weight: 700; }
.st-result-text { color: rgb(var(--c-muted)); font-size: 14px; line-height: 20px; }
.st-result-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }

/* the reply box: sticks to the bottom of the window while the chat scrolls */
.st-reply { position: sticky; bottom: var(--sticky-bottom); z-index: 5; margin-top: auto; padding: 20px 0 12px;
  background: linear-gradient(to top, rgb(var(--c-bg)) 0, rgb(var(--c-bg)) 72%, rgb(var(--c-bg) / 0) 100%); }
.st-reply .st-attached { margin-bottom: 8px; padding: 6px 8px 0; }
.st-reply .st-err { margin: 0 0 8px 12px; text-align: left; }
.st-reply-row { display: flex; align-items: flex-end; gap: 6px; padding: 6px; border: 1px solid rgb(var(--c-line)); border-radius: 26px; background: rgb(var(--c-surface));
  box-shadow: 0 12px 30px -16px rgb(var(--c-shadow) / .4); transition: border-color 150ms, box-shadow 150ms; }
.st-reply-row:focus-within { border-color: rgb(var(--c-accent) / .6); box-shadow: 0 0 0 4px rgb(var(--c-accent) / .13), 0 12px 30px -16px rgb(var(--c-shadow) / .4); }
.st-reply[data-drag="true"] .st-reply-row { border-style: dashed; border-color: rgb(var(--c-accent)); }
.st-reply-row .st-tool-round { border: 0; background: rgb(var(--c-sunken)); }
.st-reply-input { flex: 1; min-width: 0; min-height: 44px; max-height: 168px; padding: 10px 6px; border: 0; background: transparent; color: rgb(var(--c-fg)); font-size: 16px; line-height: 24px; resize: none; }
.st-reply-input:focus, .st-reply-input:focus-visible { outline: none; }
.st-reply-input:disabled { opacity: .6; }
.st-reply-input::placeholder { color: rgb(var(--c-muted)); }
.st-send { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; background: rgb(var(--c-accent)); color: rgb(var(--c-accent-fg)); transition: background-color 150ms; }
.st-send:disabled { background: rgb(var(--c-fg) / .1); color: rgb(var(--c-fg) / .4); cursor: not-allowed; }
.st-send[aria-busy="true"] { cursor: progress; }
.st-send .spinner { width: 18px; height: 18px; }
@media (hover: hover) { .st-send:not(:disabled):hover { background: rgb(var(--c-accent-strong)); } }

/* ---------- loading ---------- */
.st-skel { display: grid; justify-items: center; gap: 14px; max-width: 760px; margin: 28px auto 0; }
.st-skel-eyebrow { width: 150px; height: 28px; border-radius: 999px; }
.st-skel-title { width: min(520px, 90%); height: 40px; }
.st-skel-composer { width: 100%; height: 150px; border-radius: 24px; }
.st-skel-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.st-skel-chips .skel { width: 140px; height: 40px; border-radius: 999px; }

/* ---------- motion (subtle; none when the person asks for less) ---------- */
@keyframes st-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes st-dot { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes st-sweep { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: no-preference) {
  .st-hero { animation: st-rise 420ms cubic-bezier(.2,0,0,1) both; }
  .st-composer { animation: st-rise 420ms cubic-bezier(.2,0,0,1) 70ms both; }
  .st-chips > li { animation: st-rise 360ms cubic-bezier(.2,0,0,1) both; }
  .st-chips > li:nth-child(2) { animation-delay: 50ms; } .st-chips > li:nth-child(3) { animation-delay: 100ms; } .st-chips > li:nth-child(4) { animation-delay: 150ms; }
  .st-in { animation: st-rise 300ms cubic-bezier(.2,0,0,1) both; }
  .st-in .st-script { animation: st-rise 360ms cubic-bezier(.2,0,0,1) both; }
  .st-in .st-script:nth-child(2) { animation-delay: 80ms; } .st-in .st-script:nth-child(3) { animation-delay: 160ms; }
  .st-dots > span { animation: st-dot 1.2s ease-in-out 12; }
  .st-dots > span:nth-child(2) { animation-delay: 150ms; } .st-dots > span:nth-child(3) { animation-delay: 300ms; }
  .st-making-scan { animation: st-sweep 1.8s ease-in-out 40; }
  .st-card-ph.is-busy::after { animation: st-sweep 1.6s ease-in-out 40; }
}
html.is-hidden .st-dots > span, html.is-hidden .st-making-scan, html.is-hidden .st-card-ph.is-busy::after { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .st-view *, .st-view *::before, .st-view *::after { transition: none !important; } }

/* ---------- the ad preview (Ads > an ad, 2026-11-23) ----------
   With a real video the preview uses the video's own controls (pause, scrub, time, full screen); the
   Stop button sits top-right so it never covers them. Plain CSS (no Tailwind binary on mypc). */
.tvframe-screen > .ads-preview-top { top: 0; right: 0; bottom: auto; left: auto; padding: 10px; pointer-events: none; }
.ads-preview-top > .btn { pointer-events: auto; min-height: 44px; }

/* ---------- the portal assistant (2026-11-23): "Ask about your ads" and the changes card ---------- */
.st-ask { margin-top: 18px; }
.st-change { align-self: center; display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: min(100%, 560px); padding: 12px 14px; border: 1px solid rgb(var(--c-line)); border-radius: 16px; background: rgb(var(--c-surface)); }
.st-change-h { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.st-change-h > .ico { flex: none; color: rgb(var(--c-accent)); }
.st-change-list { display: grid; gap: 6px; }
.st-change-item { display: grid; gap: 2px; padding-left: 24px; }
.st-change-name { font-weight: 600; color: rgb(var(--c-fg)); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgb(var(--c-line)); }
.st-change-text { color: rgb(var(--c-muted)); font-size: 14px; line-height: 20px; }
.st-change-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-left: 14px; }
.st-change-note { color: rgb(var(--c-muted)); font-size: 13px; line-height: 18px; }
.st-change.is-undone .st-change-text { text-decoration: line-through; }
.st-change.is-undone .st-change-h > .ico { color: rgb(var(--c-muted)); }

/* (2026-11-28, "Edit an ad" on every ad) a shot of the strip can be picked: it highlights, and
   the request goes with it */
.st-shot[data-se-pick] { cursor: pointer; border-radius: 12px; padding: 4px; margin: -4px; }
.st-shot[data-se-pick]:hover { background: rgb(var(--c-sunken)); }
.st-shot[data-se-pick]:focus-visible { outline: 2px solid rgb(var(--c-accent)); outline-offset: 2px; }
.st-shot[aria-pressed="true"] { background: rgb(var(--c-sunken)); box-shadow: inset 0 0 0 2px rgb(var(--c-accent)); }

/* (2026-11-28, "make the by-hand way simpler") the photo ad forms' closed "More options" */
.an-more { border-top: 1px solid rgb(var(--c-line)); padding-top: 12px; }
.an-more-sum { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.an-more-body { display: grid; gap: 1.5rem; margin-top: 12px; }

/* (2026-11-29, the founder never saw the proposal at the end of the chat) the proposal waits in
   a bar pinned just above the box: what will be made, Redo with AI, what it uses, No thanks */
.st-prop { display: grid; gap: 8px; margin: 0 0 10px; padding: 12px 14px; border-radius: 16px;
  background: rgb(var(--c-surface)); box-shadow: inset 0 0 0 2px rgb(var(--c-accent)), 0 6px 20px rgb(0 0 0 / 0.12); }
.st-prop[hidden] { display: none; }
.st-prop-words { display: flex; align-items: center; gap: 8px; font-weight: 600; color: rgb(var(--c-fg)); }
.st-prop-words .ico { color: rgb(var(--c-accent)); flex: none; }
.st-prop-note { margin: 0; color: rgb(var(--c-muted)); font-size: 0.9375rem; }
.st-prop-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
