:root {
  color-scheme: light;
  --ink: #101820;
  --muted: #53616c;
  --soft: #edf3f1;
  --paper: #f8faf9;
  --panel: #ffffff;
  --line: #d7e0dc;
  --teal: #08746d;
  --teal-strong: #045a55;
  --coral: #c84f35;
  --blue: #2f5f98;
  --gold: #d9a624;
  --ok: #126b3a;
  --bad: #aa2d2d;
  --shadow: 0 18px 60px rgba(16, 24, 32, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
}

html:has(body.clips-page) {
  background: #030504;
}

body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body::-webkit-scrollbar-track {
  background: #030504;
}

body::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, rgba(19, 208, 191, 0.42), rgba(255, 202, 82, 0.46));
  border: 2px solid #030504;
  border-radius: 999px;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #050706;
  line-height: 1.5;
}

a {
  color: inherit;
}

code,
pre,
kbd {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

button,
input,
select,
textarea {
  font: inherit;
}

.cinema-hero {
  --cinema-rail: 260px;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #070c0f;
  isolation: isolate;
}

#cinema-canvas,
.cinema-video,
.cinema-video-empty,
#cinema-spatial-canvas,
.cinema-stage-chrome {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
}

#cinema-canvas {
  display: block;
  z-index: 0;
  opacity: 1;
  transition: opacity 220ms ease;
}

.cinema-video {
  z-index: 1;
  object-fit: cover;
  pointer-events: none;
  background: transparent;
  opacity: 0;
  transition: opacity 520ms ease;
}

.cinema-video.is-active {
  z-index: 2;
}

.cinema-video.is-ready {
  opacity: 1;
}

.cinema-video-empty {
  z-index: 3;
  pointer-events: none;
  background: transparent;
  box-shadow: none;
  transition: opacity 700ms ease;
}

#cinema-spatial-canvas {
  z-index: 3;
  display: block;
  opacity: 0;
  outline: none;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.cinema-hero.has-spatial-model #cinema-spatial-canvas {
  opacity: 1;
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
}

.cinema-hero.has-spatial-model #cinema-spatial-canvas.is-looking {
  cursor: grabbing;
}

.cinema-hero.has-spatial-model.is-editing-model #cinema-spatial-canvas {
  cursor: default;
}

.cinema-hero.has-spatial-model .cinema-video-empty {
  opacity: 0;
}

.cinema-video-empty::before,
.cinema-video-empty::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.cinema-video-empty::before {
  inset: 9% 6% 14%;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}

.cinema-video-empty::after {
  left: 10%;
  right: 10%;
  bottom: 14%;
  height: 1px;
  background: transparent;
}

.cinema-hero.has-generated-video .cinema-video-empty {
  opacity: 0;
}

.cinema-hero.is-restoring-video #cinema-canvas,
.cinema-hero.is-restoring-video .cinema-video-empty {
  opacity: 0;
}

.cinema-sidebar {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 6;
  isolation: isolate;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: var(--cinema-rail);
  padding: 16px 12px;
  background: transparent;
  border-right: 0;
  box-shadow: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.72);
}

.cinema-sidebar > * {
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.cinema-side-head,
.cinema-channel,
.cinema-top-actions {
  display: flex;
  align-items: center;
}

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

.cinema-side-head {
  gap: 9px;
  justify-content: space-between;
  height: 42px;
}

.cinema-brand-logo {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  object-fit: contain;
  filter: drop-shadow(0 7px 16px rgba(15, 220, 202, 0.2));
}

.cinema-fold-glyph {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0;
  background: transparent;
  box-shadow: inset 4px 0 rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.cinema-brand-word {
  flex: 1;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
}

.cinema-channel-stack {
  display: grid;
  gap: 8px;
  max-height: 300px;
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: none;
}

.cinema-channel-stack::-webkit-scrollbar {
  width: 0;
}

.cinema-channel {
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 8px;
  border: 0;
  border-radius: 5px;
  color: inherit;
  background: transparent;
  text-align: left;
}

.cinema-channel.is-active {
  background: transparent;
}

.cinema-thumb {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 0 18px rgba(0, 0, 0, 0.18);
}

.thumb-one {
  background: conic-gradient(from 10deg, #f42e75, #a367ff, #14e8ff, #ffd45d, #f42e75);
}

.thumb-two {
  background: radial-gradient(circle, #797d82, #202226 62%, #0f1011);
}

.thumb-three {
  background: conic-gradient(from 160deg, #ff3558, #6d35ff, #1ff6d8, #ff3558);
}

.thumb-four {
  background: conic-gradient(from 220deg, #f0422f, #f4dc3a, #2464ff, #f0422f);
}

.thumb-five {
  background: radial-gradient(circle at 40% 38%, #ffffff, #565b61 18%, #191b1d 70%);
}

.thumb-six {
  background: conic-gradient(from 40deg, #ffd45d, #fa5c43, #42156a, #13e6d1, #ffd45d);
}

.channel-tone-empty {
  background: radial-gradient(circle at 42% 40%, rgba(255, 255, 255, 0.72), rgba(34, 42, 48, 0.48) 22%, rgba(11, 13, 15, 0.95) 72%);
}

.channel-tone-0 {
  background: conic-gradient(from 10deg, #20c9bd, #f0c95a, #d65b3f, #20c9bd);
}

.channel-tone-1 {
  background: conic-gradient(from 150deg, #315f96, #20c9bd, #f0c95a, #315f96);
}

.channel-tone-2 {
  background: conic-gradient(from 220deg, #d65b3f, #f0c95a, #21a99d, #d65b3f);
}

.channel-tone-3 {
  background: radial-gradient(circle at 35% 30%, #f8faf9, #20c9bd 24%, #315f96 68%);
}

.channel-tone-4 {
  background: conic-gradient(from 80deg, #f0c95a, #8b2fff, #20c9bd, #f0c95a);
}

.channel-tone-5 {
  background: linear-gradient(135deg, #101820, #08746d 48%, #d65b3f);
}

.cinema-channel-lines {
  display: grid;
  flex: 1;
  gap: 4px;
  min-width: 0;
}

.cinema-channel-lines i,
.cinema-side-footer span,
.cinema-top-actions span,
.choice i {
  display: block;
  border-radius: 999px;
  font-style: normal;
  letter-spacing: 0;
}

.cinema-channel-lines i {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.94);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cinema-channel-lines i + i {
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  font-weight: 640;
}

.cinema-side-popover {
  position: fixed;
  z-index: 9;
  width: 292px;
  padding: 0;
  border: 1px solid rgba(156, 246, 0, 0.22);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(9, 13, 16, 0.5);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.26), 0 0 36px rgba(32, 201, 189, 0.1);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  pointer-events: auto;
}

.cinema-side-popover[hidden] {
  display: none;
}

.cinema-channel-form {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.cinema-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cinema-dialog-head h2 {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  line-height: 1.2;
}

.cinema-dialog-head button {
  height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  font-weight: 760;
}

.cinema-channel-form label {
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 760;
  text-transform: uppercase;
}

.cinema-channel-form input,
.cinema-channel-form textarea {
  min-width: 0;
  width: 100%;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.18);
  outline: none;
}

.cinema-channel-form input {
  height: 32px;
}

.cinema-channel-form textarea {
  min-height: 72px;
  padding-top: 8px;
  resize: vertical;
}

.cinema-channel-form input:focus,
.cinema-channel-form textarea:focus {
  border-color: rgba(32, 201, 189, 0.72);
  box-shadow: 0 0 0 3px rgba(32, 201, 189, 0.14);
}

.cinema-channel-form button,
.cinema-mini-action,
.cinema-top-actions button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.cinema-channel-form > button {
  height: 34px;
  border-radius: 5px;
  color: #101820;
  background: #9cf600;
  font-size: 12px;
  font-weight: 860;
  cursor: pointer;
}

.cinema-channel-form p {
  min-height: 14px;
  margin: 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 10px;
  line-height: 1.35;
}

.cinema-side-footer {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 4px 8px 2px;
}

.cinema-side-footer span:first-child {
  width: auto;
  height: auto;
  color: rgba(255, 255, 255, 0.44);
  background: none;
  font-size: 10px;
  font-weight: 760;
  text-transform: uppercase;
}

.cinema-side-footer a {
  width: max-content;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  text-decoration: underline;
}

.cinema-mini-list {
  display: grid;
  gap: 10px;
}

.cinema-mini-list div,
.cinema-mini-action {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: repeat(2, auto);
  column-gap: 10px;
  align-items: center;
  min-height: 40px;
  padding: 0;
  color: inherit;
  background: none;
  text-align: left;
  text-decoration: none;
}

.cinema-mini-list span {
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
  opacity: 0.58;
}

.cinema-clips-action span {
  clip-path: polygon(24% 12%, 80% 50%, 24% 88%);
  background: rgba(255, 255, 255, 0.3);
}

.cinema-mini-action span {
  position: relative;
}

.cinema-mini-action span::before,
.cinema-mini-action span::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.38);
  border-radius: 999px;
}

.cinema-mini-action span::before {
  left: 16px;
  top: 8px;
  width: 2px;
  height: 18px;
}

.cinema-mini-action span::after {
  left: 8px;
  top: 16px;
  width: 18px;
  height: 2px;
}

.cinema-mini-list strong,
.cinema-mini-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cinema-mini-list strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.1;
}

.cinema-mini-list small {
  color: rgba(255, 255, 255, 0.34);
  font-size: 10px;
}

.cinema-stage-chrome {
  z-index: 4;
  pointer-events: none;
}

.cinema-top-actions,
.cinema-player-hud,
.cinema-chat-panel {
  pointer-events: auto;
}

.cinema-top-actions {
  position: absolute;
  top: 17px;
  right: 16px;
  gap: 6px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.cinema-top-actions span,
.cinema-top-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(20, 15, 31, 0.2);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.08);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.68);
  font-size: 12px;
  font-weight: 760;
}

#model-edit-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  width: 38px;
  height: 34px;
  padding: 0;
  border: 1px solid #35524c;
  border-radius: 6px;
  background: #162324;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
#model-edit-toggle:hover { background: #30433f; }
#model-edit-toggle:focus-visible { outline: 2px solid #79e0c4; outline-offset: 2px; }
#model-edit-toggle[aria-pressed="true"] { background: #126b5d; }
#model-edit-toggle img, .model-editor button img { filter: invert(1); pointer-events: none; }
.model-editor {
  display: flex;
  flex-direction: column;
  position: absolute;
  left: 0;
  top: 210px;
  z-index: 8;
  width: 280px;
  max-width: calc(100% - 16px);
  max-height: calc(100% - 410px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  color: #ecf3f0;
  pointer-events: auto;
  font-size: 12px;
  letter-spacing: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.72);
}
.model-editor[hidden], .chat-edit-selection[hidden] { display: none; }
.model-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-shrink: 0; }
.model-editor h2 { margin: 0; font-size: 14px; line-height: 20px; letter-spacing: 0; }
.model-editor h2 a { color: inherit; text-decoration: none; }
.model-editor h2 a:hover { text-decoration: underline; }
.model-physics-joint { margin-top: 8px; }
.model-editor button {
  display: inline-flex; justify-content: center; align-items: center;
  width: 36px; height: 34px; min-width: 0; flex: 0 0 36px; padding: 0;
  border: 1px solid #344646; border-radius: 4px;
  background: #172627; color: #f6fffb;
}
.model-editor button:hover:not(:disabled) { background: #304747; }
.model-editor button[aria-pressed="true"] { background: #146858; border-color: #53bea3; }
.model-editor button:disabled, .model-editor fieldset:disabled { opacity: 0.5; }
.model-editor button:focus-visible, .model-editor input:focus-visible, .model-editor select:focus-visible { outline: 2px solid #7bdbc2; outline-offset: 2px; }
#model-edit-selection { margin: 8px 0 12px; color: #bdcec8; line-height: 18px; overflow-wrap: anywhere; flex-shrink: 0; }
.model-editor-body { flex: 1 1 auto; min-width: 0; min-height: 0; overflow-x: hidden; overflow-y: auto; }
.model-editor fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.model-editor input, .model-editor select { min-height: 0; }
.model-editor label { font-weight: 500; }
.model-editor-scope { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.model-editor .model-editor-scope { color: #c9d5d0; }
.model-editor select { width: 130px; min-width: 0; height: 30px; padding: 0 6px; background: #142223; color: #fff; border: 1px solid #425452; border-radius: 4px; font-size: 12px; }
.model-editor-toolbar, .model-editor-footer { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-shrink: 0; }
.model-editor-color { width: 36px; height: 34px; margin: 0; flex: 0 0 36px; }
.model-editor-color input { width: 36px; height: 34px; padding: 3px; border: 1px solid #425452; border-radius: 4px; background: #142223; cursor: pointer; }
.model-editor-field-title { margin-top: 12px; margin-bottom: 6px; color: #bdcec8; }
.model-editor-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.model-editor-fields label { display: grid; min-width: 0; gap: 4px; color: #c9d5d0; }
.model-editor-fields input { width: 100%; min-width: 0; height: 32px; padding: 0 5px; background: #0b1517; color: #fff; border: 1px solid #425452; border-radius: 4px; font-size: 12px; }
.model-editor-fields input[type="number"] { appearance: textfield; font-variant-numeric: tabular-nums; }
.model-editor-fields input::-webkit-inner-spin-button, .model-editor-fields input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.three-editor-toolbar { display: contents; }
.model-editor .three-editor-properties { padding: 0 !important; border: 0; }
.model-editor .three-editor-properties .model-editor-fields[hidden] { display: none; }
.model-editor .three-editor-properties input { width: 100% !important; font-variant-numeric: tabular-nums; }
.model-editor .three-editor-section { margin: 8px 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.three-editor-section summary { cursor: pointer; color: #d2dfda; line-height: 22px; font-weight: 500; }
.three-editor-section .Outliner { position: relative; max-height: 88px; overflow-x: hidden; overflow-y: auto; margin-top: 4px; outline-offset: 2px; }
.three-editor-section .option { padding: 5px 7px; min-height: 28px; border-left: 2px solid transparent; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.three-editor-section .option:hover { background: #253b3b; }
.three-editor-section .option.active { background: #1c5148; border-color: #79d1b6; color: white; }
.three-editor-section .Outliner:focus-visible { outline: 2px solid #7bdbc2; }
.three-editor-section .Outliner[aria-disabled="true"] { opacity: 0.5; }
.model-editor-footer #model-edit-cancel { margin-left: auto; }
.model-editor-footer #model-edit-save { background: #147c65; }
.model-editor-physics { margin-top: 12px; padding-top: 12px; border-top: 1px solid #425452; }
.model-physics-force { display: grid; flex: 1; min-width: 0; gap: 4px; color: #c9d5d0; font-size: 11px; }
.model-physics-force input { display: block; width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; accent-color: #53bea3; }
.model-editor #model-editor-status { margin: 10px 0 0; font-size: 12px; line-height: 17px; overflow-wrap: anywhere; color: #a7d8c8; flex-shrink: 0; max-height: 68px; overflow: auto; }
.model-editor #model-editor-status[data-error="true"] { color: #ffc4b4; }
.chat-edit-selection { grid-column: 1 / -1; margin: 0; color: #83d9c0; font-size: 12px; }
@media (max-width: 820px) {
  .model-editor { top: 132px; width: 280px; padding: 10px; max-height: calc(100% - 460px); }
  .model-editor-toolbar, .model-editor-footer { gap: 6px; }
  .is-editing-model .cinema-chat-panel { max-height: 284px; }
  .is-editing-model .cinema-chat-feed { max-height: 90px; }
}

.cinema-top-actions .recording {
  gap: 5px;
  width: auto;
  color: #ffffff;
  background: transparent;
  box-shadow: none;
  padding-inline: 4px;
}

.cinema-top-actions .recording::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff4733;
  box-shadow: 0 0 10px rgba(255, 71, 51, 0.78);
}

.cinema-top-actions #viewer-count {
  width: 112px;
}

.cinema-player-hud {
  position: absolute;
  left: 78px;
  bottom: 88px;
  z-index: 8;
  display: grid;
  gap: 0;
  justify-items: center;
  width: 94px;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.72);
}

.cinema-chat-panel {
  position: absolute;
  top: 132px;
  right: 24px;
  bottom: 52px;
  z-index: 3;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  width: min(400px, 28vw);
  min-width: 320px;
  overflow: hidden;
  padding: 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.cinema-chat-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 24px;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.cinema-chat-feed::-webkit-scrollbar {
  width: 5px;
}

.cinema-chat-feed::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.cinema-chat-empty,
.cinema-chat-message {
  margin: 0;
  border-radius: 8px;
  line-height: 1.3;
}

.cinema-chat-empty {
  padding: 12px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font-size: 12px;
}

.cinema-chat-message {
  display: grid;
  gap: 4px;
  align-self: stretch;
  padding: 9px 11px;
  color: rgba(255, 255, 255, 0.96);
  background: rgba(194, 244, 199, 0.08);
  box-shadow: none;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.86);
}

.cinema-chat-message:nth-child(2n) {
  background: rgba(239, 180, 195, 0.08);
}

.cinema-chat-message:nth-child(3n) {
  background: rgba(225, 232, 179, 0.08);
}

.cinema-chat-message b {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  line-height: 1;
}

.cinema-chat-message time {
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  font-weight: 650;
}

.cinema-chat-message span {
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  font-weight: 590;
}

.cinema-chat-message,
.cinema-chat-status {
  user-select: text;
  -webkit-user-select: text;
  cursor: text;
}

.cinema-chat-form {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 80px;
  gap: 7px;
  position: relative;
  z-index: 2;
}

.cinema-chat-form input,
.cinema-chat-form button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
}

.cinema-chat-form input {
  min-width: 0;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(13, 13, 17, 0.1);
  box-shadow: inset 0 0 0 1px rgba(151, 255, 229, 0.22), 0 0 18px rgba(0, 0, 0, 0.08);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.72);
}

.cinema-chat-form input::placeholder {
  color: rgba(255, 255, 255, 0.24);
  font-size: 13px;
}

.cinema-chat-form button {
  color: #ffffff;
  background: rgba(255, 71, 51, 0.82);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.cinema-chat-status {
  min-height: 14px;
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  line-height: 1.25;
}

.cinema-chat-form .chat-icon-button {
  display: grid;
  place-items: center;
  padding: 0;
  background: #182625;
  border: 1px solid #35524c;
}

#chat-submit {
  min-width: 0;
  width: 100%;
  padding: 0 8px;
  font-size: 12px;
  letter-spacing: 0;
  white-space: nowrap;
}

.chat-icon-button img { filter: invert(1); }
.cinema-chat-form button:disabled { cursor: default; opacity: 0.5; }
.chat-icon-button:hover:not(:disabled) { background: #30433f; }
.chat-icon-button:focus-visible { outline: 2px solid #79e0c4; outline-offset: 2px; }
.chat-image-previews:not([hidden]) { display: flex; gap: 8px; grid-column: 1 / -1; }
.chat-image-preview { position: relative; width: 64px; height: 64px; flex: 0 0 64px; border-radius: 4px; background: #182625; }
.chat-image-preview > img { width: 100%; height: 100%; object-fit: contain; border-radius: 4px; }
.chat-image-preview > span { display: grid; height: 100%; place-items: center; font-size: 10px; }
.chat-image-preview[aria-busy="true"] > img { opacity: 0.5; }
.cinema-chat-form .chat-image-preview button { position: absolute; top: -4px; right: -4px; width: 24px; height: 24px; min-height: 24px; border-radius: 50%; }
.chat-message-images { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chat-message-images a { display: block; width: 76px; height: 76px; }
.chat-message-images img { width: 100%; height: 100%; object-fit: contain; border-radius: 4px; background: #182625; }

.cinema-chat-status[data-status="error"] {
  color: #ffb9b0;
}

.cinema-chat-status[data-status="success"] {
  color: rgba(140, 255, 0, 0.9);
}

.cinema-quota-dialog {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 20;
  width: min(360px, calc(100vw - 32px));
  transform: translate(-50%, -50%);
  pointer-events: auto;
  color: #ffffff;
  border: 1px solid rgba(126, 90, 255, 0.62);
  border-radius: 8px;
  background: rgba(10, 8, 22, 0.88);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42), 0 0 36px rgba(100, 42, 255, 0.26);
  backdrop-filter: blur(14px);
}

.cinema-quota-dialog[hidden] {
  display: none;
}

.cinema-quota-card {
  display: grid;
  gap: 13px;
  padding: 14px;
}

.cinema-quota-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cinema-quota-head h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.15;
  letter-spacing: 0;
}

.cinema-quota-head button {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.cinema-quota-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  line-height: 1.42;
}

.cinema-quota-primary {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(126, 55, 255, 0.96), rgba(84, 24, 185, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.cinema-vignette,
.cinema-shutter {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cinema-vignette {
  z-index: 2;
  background: transparent;
}

.cinema-shutter {
  z-index: 7;
  background: transparent;
  mix-blend-mode: normal;
}

.cinema-hero button:focus-visible,
.cinema-hero a:focus-visible,
.cinema-hero input:focus-visible {
  outline: 0;
}

.clips-page {
  color: #f4fbf8;
  background: #030504;
  min-height: 100vh;
  overflow-x: hidden;
}

.clips-page::before,
.clips-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.clips-page::before {
  z-index: -2;
  background:
    radial-gradient(circle at 50% 40%, rgba(32, 201, 189, 0.34), transparent 27%),
    radial-gradient(circle at 70% 18%, rgba(255, 169, 66, 0.2), transparent 30%),
    radial-gradient(circle at 18% 70%, rgba(123, 41, 255, 0.18), transparent 32%),
    #030504;
}

.clips-page::after {
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 201, 189, 0.08) 1px, transparent 1px);
  background-size: 100% 5px, 76px 76px;
  opacity: 0.36;
}

.clips-page .site-header {
  position: static;
  color: #f4fbf8;
  background: rgba(3, 5, 4, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.clips-page .brand-logo {
  box-shadow: 0 0 22px rgba(32, 201, 189, 0.34);
}

.clips-page .nav-links a {
  color: rgba(244, 251, 248, 0.68);
}

.clips-page .nav-links a:hover {
  color: #ffffff;
}

.clips-page-main {
  display: grid;
  place-items: start center;
  min-height: calc(100vh - 72px);
  padding: 40px 20px 80px;
  background:
    radial-gradient(circle at 52% 36%, rgba(32, 201, 189, 0.26), transparent 30%),
    radial-gradient(circle at 78% 12%, rgba(255, 169, 66, 0.16), transparent 28%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 201, 189, 0.065) 1px, transparent 1px),
    #030504;
  background-size: auto, auto, 100% 5px, 76px 76px, auto;
}

.clips-page-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: min(1320px, calc(100% - 32px));
}

.clips-page-hero {
  min-width: 0;
  border: 1px solid rgba(32, 201, 189, 0.26);
  border-radius: 8px;
  background: rgba(5, 8, 9, 0.54);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(8px);
}

.clips-page-hero {
  display: grid;
  grid-template-columns: auto minmax(190px, 0.34fr) minmax(280px, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
}

.clips-page-hero .eyebrow {
  margin: 0;
  color: #9cf600;
}

.clips-page-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: 28px;
  line-height: 1.1;
}

.clips-page-hero p:not(.eyebrow) {
  margin: 0;
  color: rgba(244, 251, 248, 0.72);
  font-size: 14px;
}

.clips-page .secondary-button {
  justify-self: start;
  margin-top: 0;
  border-color: rgba(190, 146, 255, 0.5);
  color: rgba(255, 255, 255, 0.94);
  background: linear-gradient(90deg, rgba(123, 41, 255, 0.74), rgba(139, 47, 255, 0.68));
}

.clips-history-card {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
}

.clips-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.clips-history-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: 20px;
}

.clips-history-actions,
.share-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.clips-page-refresh,
.clips-share-selected,
.clips-card-share,
.clips-share-bar button,
.clips-share-result button,
.share-actions button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(156, 246, 0, 0.34);
  border-radius: 6px;
  color: #dfffc2;
  background: rgba(156, 246, 0, 0.1);
  cursor: pointer;
  font-size: 12px;
  font-weight: 820;
}

.clips-share-selected,
.clips-card-share,
.clips-share-result button,
.share-actions button {
  border-color: rgba(122, 83, 255, 0.44);
  color: #ffffff;
  background: linear-gradient(135deg, rgba(122, 83, 255, 0.82), rgba(13, 160, 148, 0.56));
}

.clips-page-refresh:disabled,
.clips-share-selected:disabled,
.clips-card-share:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.clips-share-bar,
.clips-share-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(5, 8, 9, 0.68);
  color: rgba(244, 251, 248, 0.74);
  font-size: 12px;
  font-weight: 760;
}

.clips-share-result input {
  flex: 1 1 260px;
  min-width: 0;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 0 10px;
  color: #f4fbf8;
  background: rgba(255, 255, 255, 0.06);
}

.clips-share-result a,
.share-actions a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 0 13px;
  color: #9cf600;
  text-decoration: none;
  font-size: 12px;
  font-weight: 820;
}

.clips-page-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.clips-page-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: rgba(244, 251, 248, 0.62);
  background: rgba(255, 255, 255, 0.035);
  font-size: 14px;
}

.clips-video-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(5, 8, 9, 0.62);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.clips-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(32, 201, 189, 0.18), transparent 42%),
    radial-gradient(circle at 72% 22%, rgba(156, 246, 0, 0.16), transparent 30%),
    #020403;
}

.clips-video,
.clips-video-empty {
  display: block;
  width: 100%;
  height: 100%;
}

.clips-video {
  object-fit: cover;
  background: #020403;
}

.clips-video-empty {
  display: grid;
  place-items: center;
  color: rgba(244, 251, 248, 0.62);
  font-size: 12px;
  font-weight: 800;
}

.clips-spatial-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

model-preview { display: block; width: 100%; aspect-ratio: 16 / 9; }
.model-preview-status { position: absolute; inset: 40% 16px auto; text-align: center; font-size: 13px; color: #e3eeed; }

.clips-spatial-video,
.clips-spatial-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.clips-spatial-video {
  z-index: 0;
}

.clips-spatial-canvas {
  z-index: 1;
  pointer-events: none;
}

.clips-spatial-hud {
  position: absolute;
  top: 9px;
  left: 9px;
  right: 9px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: auto;
}

.clips-spatial-hud span,
.clips-spatial-hud a {
  min-height: 26px;
  overflow: hidden;
  border: 1px solid rgba(32, 201, 189, 0.22);
  border-radius: 999px;
  padding: 5px 8px;
  color: rgba(244, 251, 248, 0.88);
  background: rgba(3, 8, 9, 0.58);
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 820;
}

.clips-spatial-hud a {
  flex: 0 0 auto;
  color: #9cf600;
}

.clips-spatial-joystick {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(32, 201, 189, 0.38);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(32, 201, 189, 0.16), rgba(3, 8, 9, 0.78));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 12px 26px rgba(0, 0, 0, 0.24);
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
}

.clips-spatial-joystick:focus-visible {
  outline: 3px solid rgba(32, 201, 189, 0.42);
  outline-offset: 3px;
}

.clips-spatial-joystick::before,
.clips-spatial-joystick::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(232, 255, 249, 0.22);
  transform: translate(-50%, -50%);
}

.clips-spatial-joystick::before {
  width: 48px;
  height: 1px;
}

.clips-spatial-joystick::after {
  width: 1px;
  height: 48px;
}

.clips-spatial-joystick span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(232, 255, 249, 0.72);
  border-radius: 999px;
  background: radial-gradient(circle at 35% 28%, #ffffff, #20c9bd 34%, #08746d 100%);
  box-shadow: 0 0 22px rgba(32, 201, 189, 0.46);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.clips-card-body {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 13px;
}

.clips-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.clips-card-head span {
  flex: 0 0 auto;
  border: 1px solid rgba(156, 246, 0, 0.24);
  border-radius: 999px;
  padding: 4px 8px;
  color: #dfffc2;
  background: rgba(156, 246, 0, 0.08);
  font-size: 10px;
  font-weight: 820;
  text-transform: uppercase;
}

.clips-video-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.25;
}

.clips-video-card p {
  margin: 0;
  color: rgba(244, 251, 248, 0.68);
  font-size: 13px;
  line-height: 1.45;
}

.clips-spatial-info {
  display: grid;
  gap: 10px;
}

.clips-spatial-summary {
  color: rgba(244, 251, 248, 0.72);
}

.clips-spatial-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.clips-spatial-metrics div {
  min-width: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 7px;
}

.clips-spatial-metrics dt {
  color: rgba(244, 251, 248, 0.48);
  font-size: 10px;
  font-weight: 820;
  text-transform: uppercase;
}

.clips-spatial-metrics dd {
  margin: 2px 0 0;
  overflow: hidden;
  color: rgba(244, 251, 248, 0.86);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 760;
}

.clips-linked-renders {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 9px;
}

.clips-linked-renders strong,
.clips-render-link-note span {
  color: rgba(244, 251, 248, 0.88);
  font-size: 11px;
  font-weight: 840;
  text-transform: uppercase;
}

.clips-linked-renders > span {
  color: rgba(244, 251, 248, 0.54);
  font-size: 12px;
  font-weight: 720;
}

.clips-linked-render-list {
  display: grid;
  gap: 8px;
}

.clips-linked-render {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.clips-linked-render-video {
  width: 112px;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  object-fit: cover;
  background: #020403;
}

.clips-linked-render-meta {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.clips-linked-render-meta b,
.clips-linked-render-meta span,
.clips-linked-render-meta a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clips-linked-render-meta b {
  color: rgba(244, 251, 248, 0.9);
  font-size: 12px;
}

.clips-linked-render-meta span {
  color: rgba(244, 251, 248, 0.52);
  font-size: 11px;
  font-weight: 720;
}

.clips-linked-render-meta a,
.clips-render-link-note a {
  color: #9cf600;
  text-decoration: none;
  font-size: 11px;
  font-weight: 820;
}

.clips-render-link-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 9px;
}

.clips-video-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  color: rgba(244, 251, 248, 0.54);
  font-size: 11px;
  font-weight: 720;
}

.clips-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 2px;
}

.clips-select {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  color: rgba(244, 251, 248, 0.72);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.clips-select-input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #9cf600;
}

.clips-card-link {
  color: #9cf600;
  text-decoration: none;
}

.share-page {
  min-height: 100vh;
  color: #f4fbf8;
  background:
    linear-gradient(90deg, rgba(14, 212, 197, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(156, 246, 0, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 72% 14%, rgba(217, 166, 36, 0.18), transparent 32%),
    #030504;
  background-size: 76px 76px, 24px 24px, auto, auto;
}

.share-page .site-header {
  color: #f4fbf8;
  background: rgba(3, 5, 4, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.share-page-main {
  min-height: calc(100vh - 70px);
  padding: 64px 24px;
  background: transparent;
}

.share-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.9fr);
  gap: 22px;
  align-items: start;
}

.share-player-panel,
.share-detail-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(5, 8, 9, 0.74);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.share-player-panel {
  overflow: hidden;
  display: grid;
}

.share-player-stage {
  position: relative;
  background: #020403;
}

.share-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020403;
}

.share-player-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 24px);
  border: 1px solid rgba(156, 246, 0, 0.24);
  border-radius: 8px;
  padding: 7px 10px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.62);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.share-player-badge span,
.share-player-badge strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-player-badge span {
  color: #9cf600;
  font-size: 11px;
  font-weight: 860;
  text-transform: uppercase;
}

.share-player-badge strong {
  color: rgba(244, 251, 248, 0.82);
  font-size: 12px;
}

.share-render-status {
  position: absolute;
  inset: 50% auto auto 50%;
  display: none;
  align-items: center;
  gap: 8px;
  max-width: min(320px, calc(100% - 36px));
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 10px 12px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.68);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
  text-align: center;
  font-size: 13px;
  font-weight: 820;
  pointer-events: none;
}

.share-render-status.is-visible {
  display: inline-flex;
}

.share-render-status.is-waiting::before {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: #9cf600;
  border-radius: 999px;
  content: "";
  animation: share-render-status-spin 0.78s linear infinite;
}

@keyframes share-render-status-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .share-render-status.is-waiting::before {
    animation-duration: 1.6s;
  }
}

.share-merge-strip {
  display: flex;
  gap: 6px;
  min-height: 82px;
  overflow-x: auto;
  padding: 12px 14px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(8, 18, 17, 0.94), rgba(3, 6, 6, 0.98));
  scrollbar-width: none;
}

.share-merge-strip::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.share-merge-segment {
  position: relative;
  flex: var(--share-segment-weight) 1 104px;
  min-width: 104px;
  max-width: 240px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 2px 8px;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px;
  color: #f4fbf8;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  text-align: left;
}

.share-merge-segment::before {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  border-radius: 8px 8px 0 0;
  background: rgba(156, 246, 0, 0.68);
  content: "";
  opacity: 0.28;
}

.share-merge-segment.is-active {
  border-color: rgba(156, 246, 0, 0.44);
  background: rgba(156, 246, 0, 0.09);
}

.share-merge-segment.is-active::before {
  opacity: 1;
}

.share-merge-segment span {
  grid-row: span 2;
  color: #9cf600;
  font-weight: 860;
}

.share-merge-segment strong,
.share-merge-segment small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-merge-segment strong {
  font-size: 12px;
  line-height: 1.2;
}

.share-merge-segment small {
  color: rgba(244, 251, 248, 0.52);
  font-size: 11px;
  font-weight: 760;
}

.share-merge-empty {
  margin: auto;
  color: rgba(244, 251, 248, 0.56);
  font-size: 12px;
  font-weight: 760;
}

.share-player-editor {
  display: grid;
  gap: 12px;
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #171719;
}

.share-range-head,
.share-range-values {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.share-range-head div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.share-range-head span,
.share-range-values span {
  color: rgba(244, 251, 248, 0.42);
  font-size: 10px;
  font-weight: 820;
  text-transform: uppercase;
}

.share-range-head p {
  margin: 0;
  color: rgba(244, 251, 248, 0.58);
  font-size: 13px;
}

.share-range-head strong {
  color: #ffffff;
  font-size: 15px;
  font-weight: 860;
  text-transform: uppercase;
}

.share-range-track {
  position: relative;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 12.5%),
    #101012;
  cursor: grab;
  touch-action: none;
}

.share-range-track::before {
  position: absolute;
  inset: 27px 0 auto;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  content: "";
}

.share-range-selection {
  position: absolute;
  top: -2px;
  bottom: -2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 34px;
  border: 1px solid #ff3f2e;
  border-radius: 4px;
  background: rgba(255, 63, 46, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  cursor: grab;
}

.share-range-selection strong {
  color: rgba(244, 251, 248, 0.44);
  font-size: 16px;
  font-weight: 760;
  pointer-events: none;
}

.share-range-handle {
  width: 12px;
  height: calc(100% - 8px);
  margin: 4px;
  border: 1px solid #ff3f2e;
  border-radius: 3px;
  background: #1b1b1d;
  cursor: ew-resize;
}

.share-range-values {
  align-items: stretch;
}

.share-range-values div {
  flex: 1 1 0;
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.035);
}

.share-range-values strong {
  color: #ffffff;
  font-size: 15px;
  line-height: 1.15;
}

.share-range-values div:nth-child(2) strong {
  color: #ff5a45;
}

.share-render-save {
  align-self: end;
  min-width: 116px;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  color: #171719;
  background: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 860;
}

.share-render-save:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.share-detail-panel {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.share-detail-panel h1 {
  margin: 0;
  color: #ffffff;
  font-size: 28px;
  line-height: 1.12;
}

.share-detail-panel p:not(.eyebrow) {
  margin: 0;
  color: rgba(244, 251, 248, 0.68);
  font-size: 14px;
}

.share-playlist {
  display: grid;
  gap: 8px;
}

.share-playlist-item {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 4px 10px;
  align-items: center;
  min-height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 9px 10px;
  color: #f4fbf8;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  text-align: left;
}

.share-playlist-item.is-active {
  border-color: rgba(156, 246, 0, 0.38);
  background: rgba(156, 246, 0, 0.08);
}

.share-playlist-item span {
  grid-row: span 2;
  color: #9cf600;
  font-weight: 860;
}

.share-playlist-item strong,
.share-playlist-item small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-playlist-item strong {
  font-size: 13px;
}

.share-playlist-item small {
  color: rgba(244, 251, 248, 0.52);
  font-size: 11px;
  font-weight: 760;
}

.share-editor {
  display: grid;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2px;
}

.share-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.share-editor-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.2;
}

.share-editor-head button,
.share-editor-controls button {
  min-height: 30px;
  border: 1px solid rgba(156, 246, 0, 0.28);
  border-radius: 6px;
  padding: 0 10px;
  color: #dfffc2;
  background: rgba(156, 246, 0, 0.08);
  cursor: pointer;
  font-size: 11px;
  font-weight: 820;
}

.share-editor-head .share-save {
  border-color: rgba(122, 83, 255, 0.44);
  color: #ffffff;
  background: linear-gradient(135deg, rgba(122, 83, 255, 0.82), rgba(13, 160, 148, 0.56));
}

.share-editor-head button:disabled,
.share-editor-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.share-editor-list,
.share-library-list {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: none;
}

.share-editor-list::-webkit-scrollbar,
.share-library-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.share-editor-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.share-editor-item.is-active {
  border-color: rgba(156, 246, 0, 0.36);
  background: rgba(156, 246, 0, 0.07);
}

.share-editor-item > div:first-child {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 2px 8px;
  min-width: 0;
}

.share-editor-item span {
  grid-row: span 2;
  color: #9cf600;
  font-weight: 860;
}

.share-editor-item strong,
.share-editor-item small,
.share-library-item strong,
.share-library-item small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-editor-item strong,
.share-library-item strong {
  color: #ffffff;
  font-size: 12px;
  line-height: 1.2;
}

.share-editor-item small,
.share-library-item small {
  color: rgba(244, 251, 248, 0.52);
  font-size: 11px;
  font-weight: 760;
}

.share-editor-controls {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-library-item {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 2px 10px;
  align-items: center;
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 10px;
  color: #f4fbf8;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  text-align: left;
}

.share-library-item span {
  grid-row: span 2;
  color: #9cf600;
  font-size: 11px;
  font-weight: 860;
}

.share-library-item:hover,
.share-editor-controls button:hover,
.share-editor-head button:hover {
  border-color: rgba(156, 246, 0, 0.4);
}

.share-editor-empty,
.share-editor-status {
  margin: 0;
  color: rgba(244, 251, 248, 0.58);
  font-size: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px 32px;
  background: rgba(248, 250, 249, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.site-header.compact {
  position: static;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 144px;
  font-weight: 800;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 10px 24px rgba(16, 24, 32, 0.14);
}

.nav-links,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a,
.site-footer a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--ink);
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 0 28px;
  scroll-margin-top: 92px;
}

.workbench-heading {
  grid-column: 1 / -1;
  max-width: 840px;
}

.workbench-heading h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.04;
}

.hero-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 230px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.eyebrow,
.panel-kicker {
  margin: 0 0 8px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: 46px;
  line-height: 1.04;
}

h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.18;
}

h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.25;
}

.hero-lede {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-lede.narrow {
  max-width: 820px;
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.status-strip span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 10px;
  color: var(--teal-strong);
  background: #e7f5f2;
  border: 1px solid #b7dbd5;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.visual-rail {
  display: flex;
  align-items: stretch;
  min-height: 230px;
  padding: 14px;
  background: #101820;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.visual-rail img {
  width: 100%;
  min-height: 210px;
  object-fit: cover;
  border-radius: 6px;
}

.model-shell {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  padding: 20px;
  background: #101820;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.model-intro {
  display: grid;
  gap: 9px;
  color: #f4fbf8;
}

.model-intro p {
  max-width: 820px;
  margin: 0;
  color: rgba(244, 251, 248, 0.72);
}

.model-intro .eyebrow {
  margin: 4px 0 0;
  color: #8feadf;
}

.back-link {
  width: fit-content;
  color: rgba(244, 251, 248, 0.68);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.back-link:hover {
  color: #ffffff;
}

.model-badges,
.model-tabs,
.form-actions,
.preview-heading,
.check-row {
  display: flex;
  align-items: center;
}

.model-badges {
  flex-wrap: wrap;
  gap: 8px;
}

.model-badges span {
  min-height: 28px;
  padding: 5px 10px;
  color: #dffaf6;
  background: rgba(143, 234, 223, 0.12);
  border: 1px solid rgba(143, 234, 223, 0.24);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 780;
}

.model-tabs {
  gap: 8px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
}

.model-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 10px;
  color: rgba(244, 251, 248, 0.72);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 820;
  text-decoration: none;
  white-space: nowrap;
}

.model-tab.is-active,
.model-tab:hover {
  color: #101820;
  background: #f4fbf8;
}

.workbench-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(340px, 1.1fr) minmax(290px, 0.95fr) minmax(330px, 1.1fr);
  gap: 18px;
  align-items: stretch;
  scroll-margin-top: 92px;
}

.tool-panel {
  min-width: 0;
  min-height: 420px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(16, 24, 32, 0.06);
}

.panel-heading {
  display: flex;
  flex-direction: column;
  min-height: 66px;
}

.stacked-form,
.generation-form,
.spatial-form {
  display: grid;
  gap: 10px;
}

label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  color: var(--ink);
  background: #fbfdfc;
  border: 1px solid #c9d5d1;
  border-radius: 8px;
  outline: none;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 116, 109, 0.14);
}

.additional-settings {
  margin-top: 2px;
  padding: 12px;
  background: #f6faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.additional-settings summary {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.additional-settings p {
  margin: 8px 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.check-row {
  gap: 8px;
  width: fit-content;
}

.check-row input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--teal);
}

.estimate-box {
  padding: 10px 12px;
  color: #6f5200;
  background: #fff9e8;
  border: 1px solid #f0dc97;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 760;
}

.rate-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.form-actions {
  gap: 8px;
}

.form-actions .secondary-button,
.form-actions .primary-button {
  flex: 1;
}

.spatial-panel {
  grid-column: span 2;
}

.spatial-panel .preview-heading {
  flex-wrap: wrap;
}

.spatial-preview-heading {
  align-items: center;
}

.spatial-position {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  white-space: nowrap;
}

.spatial-stage {
  position: relative;
  min-height: 286px;
  margin-top: 12px;
  overflow: hidden;
  background: #101820;
  border: 1px solid #283742;
  border-radius: 8px;
}

#spatial-canvas {
  display: block;
  width: 100%;
  height: 286px;
  outline: none;
  background: #101820;
}

#spatial-canvas:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(32, 201, 189, 0.44);
}

.spatial-joystick,
.cinema-joystick {
  position: absolute;
  width: 94px;
  height: 94px;
  border: 1px solid rgba(32, 201, 189, 0.36);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(32, 201, 189, 0.14), rgba(16, 24, 32, 0.78));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 12px 30px rgba(0, 0, 0, 0.22);
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.spatial-joystick.is-dragging,
.cinema-joystick.is-dragging {
  cursor: grabbing;
  border-color: rgba(32, 201, 189, 0.85);
}

.spatial-joystick {
  left: 14px;
  bottom: 14px;
}

.cinema-joystick {
  position: relative;
  left: auto;
  bottom: auto;
}

.spatial-joystick:focus-visible,
.cinema-joystick:focus-visible {
  outline: 3px solid rgba(32, 201, 189, 0.4);
  outline-offset: 3px;
}

.spatial-joystick::before,
.spatial-joystick::after,
.cinema-joystick::before,
.cinema-joystick::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(232, 255, 249, 0.22);
  transform: translate(-50%, -50%);
}

.spatial-joystick::before,
.cinema-joystick::before {
  width: 58px;
  height: 1px;
}

.spatial-joystick::after,
.cinema-joystick::after {
  width: 1px;
  height: 58px;
}

#spatial-joystick-knob,
#cinema-joystick-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(232, 255, 249, 0.72);
  border-radius: 999px;
  background: radial-gradient(circle at 35% 28%, #ffffff, #20c9bd 34%, #08746d 100%);
  box-shadow: 0 0 24px rgba(32, 201, 189, 0.46);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.spatial-state {
  margin-top: 14px;
}

.spatial-linked-renders {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8faf9;
}

.spatial-linked-renders strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.spatial-linked-renders > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.spatial-linked-renders div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spatial-linked-renders a {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid #cfe0dc;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--teal-strong);
  background: #ffffff;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}

.spatial-linked-renders a span {
  color: var(--muted);
  font-weight: 700;
}

.spatial-json {
  min-height: 240px;
}

.spatial-prompt {
  min-height: 128px;
  max-height: 210px;
}

.inline-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 8px;
}

.form-grid {
  display: grid;
  gap: 10px;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid label {
  display: grid;
  gap: 6px;
}

.primary-button,
.secondary-button,
.icon-button,
.tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 13px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.primary-button {
  color: #ffffff;
  background: var(--teal);
}

.primary-button:hover {
  background: var(--teal-strong);
}

.secondary-button {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
}

.secondary-button:hover {
  border-color: var(--teal);
}

.icon-button {
  min-width: 62px;
  color: var(--teal-strong);
  background: #e7f5f2;
  border-color: #b7dbd5;
}

.danger-button {
  color: var(--bad);
  background: #fff1ef;
  border-color: #f1c3bb;
}

.wide {
  width: 100%;
}

.inline-link {
  margin-top: 16px;
  width: fit-content;
}

.notice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px;
  gap: 8px;
  align-items: start;
  margin-top: 12px;
  padding: 12px;
  background: #fff9e8;
  border: 1px solid #f0dc97;
  border-radius: 8px;
}

.notice-label {
  grid-column: 1 / -1;
  color: #7b5b00;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.notice code {
  min-width: 0;
  overflow: hidden;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #f0dc97;
  border-radius: 6px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.table-wrap {
  width: 100%;
  margin-top: 16px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 13px;
}

.key-panel table {
  table-layout: auto;
}

.key-panel th:nth-child(1),
.key-panel td:nth-child(1) {
  width: 22%;
}

.key-panel th:nth-child(2),
.key-panel td:nth-child(2) {
  width: 25%;
}

.key-panel th:nth-child(3),
.key-panel td:nth-child(3) {
  width: 14%;
}

.key-panel th:nth-child(4),
.key-panel td:nth-child(4),
.key-panel th:nth-child(5),
.key-panel td:nth-child(5) {
  width: 19%;
}

.key-panel td code {
  white-space: nowrap;
}

th,
td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  overflow-wrap: anywhere;
}

th {
  color: var(--muted);
  background: #f1f6f4;
  font-size: 12px;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.mini-button {
  width: 100%;
  min-height: 32px;
  padding: 6px 9px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 750;
  white-space: normal;
}

.mini-button:hover {
  border-color: var(--teal);
}

.mini-button[disabled],
button[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

.result-state {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 12px;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.result-state strong {
  color: var(--ink);
}

.preview-heading {
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.next-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.next-actions span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.next-actions .secondary-button {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 12px;
}

.download-link.is-disabled {
  pointer-events: none;
  opacity: 0.48;
}

.preview-heading span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.preview-heading .primary-button,
.preview-heading .secondary-button {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 12px;
}

#result-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 12px 0;
  background: #000000;
  border-radius: 8px;
}

.code-box {
  min-height: 210px;
  max-height: 360px;
  margin: 14px 0 0;
  padding: 14px;
  overflow-y: auto;
  overflow-x: hidden;
  color: #e8fff9;
  background: #101820;
  border: 1px solid #283742;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.preview-box {
  min-height: 150px;
}

.code-sample {
  min-height: 302px;
}

.tab-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tab-button {
  color: var(--muted);
  background: #ffffff;
  border-color: var(--line);
}

.tab-button.is-active {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
}

.content-band {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 24px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  gap: 6px;
  max-width: 760px;
  margin-bottom: 18px;
}

.section-copy,
.prose p,
.source-cta p {
  color: var(--muted);
  font-size: 16px;
}

.prose {
  max-width: 920px;
}

.prose h2 {
  margin-top: 22px;
  font-size: 22px;
}

.prose p {
  margin: 12px 0;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 32px;
  align-items: start;
}

.route-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.route-list code {
  display: block;
  min-height: 42px;
  padding: 11px;
  color: #f7fffb;
  background: #101820;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  overflow-wrap: anywhere;
}

.flow-figure {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(16, 24, 32, 0.05);
}

.flow-figure img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 6px;
  background: #101820;
}

.facts-grid,
.fit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.fit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.facts-grid article,
.fit-grid article,
details {
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.facts-grid p,
.fit-grid p,
details p {
  margin: 0;
  color: var(--muted);
}

details {
  margin: 10px 0;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

details p {
  margin-top: 10px;
}

.source-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}

main,
.site-footer {
  background: var(--paper);
}

.page-main {
  min-height: calc(100vh - 150px);
}

.creator-main {
  background:
    linear-gradient(180deg, #f8faf9 0%, #ffffff 54%, #f4f8f6 100%);
}

.creator-hero,
.creator-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.creator-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.65fr);
  gap: 24px;
  align-items: stretch;
  padding: 54px 0 26px;
}

.creator-hero-copy {
  display: grid;
  align-content: center;
  min-height: 390px;
  padding: 40px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(91, 25, 204, 0.98), rgba(121, 45, 230, 0.96)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, rgba(255, 255, 255, 0) 1px 18px);
  border-radius: 8px;
  overflow: hidden;
}

.creator-hero-copy .eyebrow {
  color: #c5ff36;
}

.creator-hero-copy p:not(.eyebrow) {
  max-width: 690px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
}

.creator-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.creator-hero-actions .primary-button {
  color: #101820;
  background: #c5ff36;
}

.creator-hero-actions .secondary-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

.creator-preview {
  display: grid;
  place-items: center;
  min-height: 390px;
  padding: 24px;
  background:
    linear-gradient(155deg, #101820, #162432 55%, #241a42),
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 0 1px, rgba(255, 255, 255, 0) 1px 6px);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.creator-preview-frame {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(100%, 330px);
  padding: 36px 24px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 35%, rgba(32, 201, 189, 0.25), rgba(32, 201, 189, 0) 38%),
    rgba(255, 255, 255, 0.045);
}

.creator-preview-frame img {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  filter: drop-shadow(0 18px 34px rgba(32, 201, 189, 0.28));
}

.creator-preview-frame span,
.creator-step-grid span {
  color: #c5ff36;
  font-size: 12px;
  font-weight: 850;
}

.creator-preview-frame strong {
  font-size: 24px;
  line-height: 1.12;
  text-align: center;
}

.creator-preview-frame small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 720;
}

.creator-section {
  padding: 32px 0;
}

.creator-step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.creator-step-grid article {
  display: grid;
  gap: 10px;
  min-height: 210px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(16, 24, 32, 0.05);
}

.creator-step-grid span {
  color: var(--coral);
}

.creator-step-grid p {
  margin: 0;
  color: var(--muted);
}

.creator-form-panel {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(520px, 1fr);
  gap: 34px;
  align-items: start;
  padding: 48px 52px 50px;
  color: #ffffff;
  background: linear-gradient(135deg, #5b19cc, #641ed5);
  border-radius: 8px;
  overflow: hidden;
}

.creator-apply-copy {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
  padding-top: 4px;
}

.creator-apply-copy .eyebrow {
  color: #c5ff36;
}

.creator-apply-copy h2 {
  max-width: 460px;
  font-size: 38px;
  line-height: 1.04;
}

.creator-apply-copy p {
  max-width: 430px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.creator-application-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  color: var(--ink);
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(16, 24, 32, 0.24);
}

.creator-application-card label {
  display: grid;
  gap: 7px;
}

.creator-application-card label small {
  color: #8b949c;
  font-size: 11px;
  font-weight: 650;
}

.creator-channel-fieldset {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid #d4ddd9;
  border-radius: 8px;
}

.creator-channel-fieldset legend {
  padding: 0 8px;
  font-size: 13px;
  font-weight: 850;
}

.creator-channel-fieldset small {
  margin-left: 8px;
  color: #8b949c;
  font-size: 11px;
  font-weight: 650;
}

.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-hint {
  margin: -8px 0 0;
  color: #6e7a82;
  font-size: 12px;
}

.creator-submit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.creator-submit-row p {
  margin: 0;
  color: #6e7a82;
  font-size: 13px;
}

.creator-submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 26px;
  border: 0;
  border-radius: 4px;
  color: #ffffff;
  background: #986ad8;
  cursor: pointer;
  font-size: 18px;
  font-weight: 850;
  white-space: nowrap;
}

.creator-submit-button:hover {
  background: #8252cc;
}

.creator-submit-button[disabled] {
  opacity: 0.64;
}

.creator-application-status {
  min-height: 22px;
  margin: 0;
  color: #66737b;
  font-size: 13px;
  font-weight: 720;
}

.creator-application-status[data-status="success"] {
  color: var(--ok);
}

.creator-application-status[data-status="error"] {
  color: var(--bad);
}

.creator-faq {
  padding-bottom: 50px;
}

.source-list ul {
  display: grid;
  gap: 12px;
  padding-left: 20px;
}

.source-list li {
  color: var(--muted);
}

.source-list a {
  color: var(--blue);
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.hidden {
  display: none !important;
}

.inner-page {
  background: var(--paper);
}

.inner-main {
  padding-bottom: 18px;
}

.inner-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 26px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 24px;
  padding: 48px 0 36px;
  align-items: stretch;
}

.inner-hero-copy {
  display: grid;
  align-content: center;
  min-height: 360px;
  padding: 34px;
  color: #f8faf9;
  background:
    linear-gradient(130deg, #101820 0%, #163740 58%, #4e3b1d 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, rgba(255, 255, 255, 0) 1px 18px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.inner-hero-copy .eyebrow {
  color: #ffd45d;
}

.inner-hero-copy h1 {
  max-width: 820px;
}

.inner-hero-copy .hero-lede {
  color: rgba(248, 250, 249, 0.76);
}

.intent-line {
  width: fit-content;
  max-width: 100%;
  margin: 2px 0 0;
  padding: 7px 10px;
  color: #f8faf9;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 720;
}

.intent-line strong {
  color: #ffd45d;
}

.source-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.source-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 30px;
  padding: 5px 9px;
  color: #23413d;
  background: #e7f5f2;
  border: 1px solid #b7dbd5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.source-strip .source-pill {
  color: #eafffb;
  background: rgba(143, 234, 223, 0.12);
  border-color: rgba(143, 234, 223, 0.28);
}

.source-pill a,
.source-inline a,
.media-source a,
.table-source a,
.source-map a {
  color: inherit;
  font-weight: 850;
}

.inner-hero-stats {
  display: grid;
  gap: 12px;
}

.inner-hero-stats article {
  display: grid;
  align-content: center;
  min-height: 112px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(16, 24, 32, 0.06);
}

.inner-hero-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.inner-hero-stats strong {
  display: block;
  margin: 7px 0 10px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.1;
}

.inner-section {
  margin-bottom: 24px;
}

.inner-prose {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: none;
}

.inner-prose p {
  margin: 0;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.source-inline {
  display: inline;
  color: #40535d;
  font-size: 14px;
  font-weight: 740;
}

.inner-card-grid,
.media-grid,
.source-map-grid,
.related-grid,
.page-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.inner-card-grid article,
.source-map-grid article,
.page-link-grid a,
.related-grid a {
  display: grid;
  gap: 10px;
  min-height: 180px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(16, 24, 32, 0.05);
}

.inner-card-grid p,
.source-map-grid p,
.page-link-grid p,
.related-grid span {
  margin: 0;
  color: var(--muted);
}

.card-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.inner-table-wrap table {
  min-width: 780px;
}

.inner-table-wrap th:last-child,
.inner-table-wrap td:last-child {
  width: 170px;
}

.table-source {
  color: var(--blue);
  font-size: 12px;
  font-weight: 780;
}

.media-section {
  width: min(1260px, calc(100% - 48px));
}

.media-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-grid:has(.media-card:nth-child(3)) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.media-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  background: #101820;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.media-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050706;
}

.media-card div {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.media-card h3 {
  color: #f8faf9;
}

.media-card p {
  margin: 0;
  color: rgba(248, 250, 249, 0.72);
  font-size: 13px;
}

.media-source {
  color: #b7f3eb !important;
}

.calculator-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.7fr) minmax(300px, 1fr);
  gap: 16px;
  align-items: stretch;
}

.calculator-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.calculator-panel label {
  display: grid;
  gap: 7px;
}

.calculator-result {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 14px;
  align-content: center;
  padding: 20px;
  color: #ffffff;
  background:
    linear-gradient(130deg, #0e1c23, #0b514c 54%, #704b15),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, rgba(255, 255, 255, 0) 1px 10px);
  border-radius: 8px;
}

.calculator-result strong {
  font-size: 32px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.calc-label {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.calculator-result p {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.pricing-plans-section {
  width: min(1260px, calc(100% - 48px));
}

.pricing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0 16px;
}

.pricing-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 24, 32, 0.06);
}

.pricing-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 112px;
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  color: #40535d;
  background: transparent;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.pricing-toggle button[data-pricing-billing="annual"] {
  min-width: 174px;
}

.annual-savings {
  color: #d9412b;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.pricing-toggle button.is-active {
  color: #ffffff;
  background: #101820;
}

.pricing-toggle button.is-active .annual-savings {
  color: #ff7a66;
}

.pricing-status {
  min-height: 22px;
  margin: 0;
  color: #40535d;
  font-size: 13px;
  font-weight: 720;
  text-align: right;
}

.pricing-status.is-error {
  color: var(--bad);
}

.pricing-status.is-ok {
  color: var(--ok);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.pricing-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 470px;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(16, 24, 32, 0.06);
}

.pricing-card.is-popular {
  border-color: rgba(8, 116, 109, 0.42);
  box-shadow: 0 18px 42px rgba(8, 116, 109, 0.13);
}

.pricing-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 24px;
  padding: 4px 8px;
  color: #ffffff;
  background: var(--teal);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 880;
  text-transform: uppercase;
}

.pricing-card .plan-kicker {
  margin: 0;
  padding-right: 116px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.pricing-card:not(.is-popular) .plan-kicker {
  padding-right: 0;
}

.pricing-card h3 {
  margin: 0;
  color: #101820;
  font-size: 30px;
  line-height: 1.05;
}

.plan-summary {
  margin: 0;
  min-height: 64px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.plan-price {
  margin-top: 4px;
  color: #101820;
  font-size: 36px;
  font-weight: 850;
  line-height: 1;
}

.plan-price small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.plan-due {
  min-height: 20px;
  margin: 0;
  color: #64736f;
  font-size: 13px;
  font-weight: 720;
}

.plan-features {
  display: grid;
  gap: 8px;
  margin: 2px 0 16px;
  padding: 0;
  color: #33443f;
  font-size: 13px;
  list-style: none;
}

.plan-features li {
  position: relative;
  padding-left: 18px;
}

.plan-features li::before {
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 900;
  content: "✓";
}

.pricing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: auto;
  border: 1px solid #9ab1aa;
  border-radius: 8px;
  color: #101820;
  background: #ffffff;
  font-weight: 850;
  cursor: pointer;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.pricing-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(16, 24, 32, 0.12);
}

.pricing-button.primary {
  color: #ffffff;
  background: #101820;
  border-color: #101820;
}

.pricing-button.trial-button {
  border-color: rgba(8, 116, 109, 0.36);
  color: var(--teal-strong);
  background: #edf8f5;
}

.pricing-button.is-loading {
  pointer-events: none;
  opacity: 0.72;
}

.pricing-footnote {
  margin: 14px 0 0;
  padding: 13px 15px;
  color: #40535d;
  background: #ffffff;
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
}

.success-main {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
}

.success-panel {
  width: min(720px, calc(100% - 48px));
  margin: 42px auto;
  padding: 34px;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.success-panel h1 {
  margin: 0 0 10px;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.related-grid a {
  min-height: 112px;
  color: var(--ink);
}

.related-grid span,
.page-link-grid span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.source-map-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.source-map-grid article span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.research-hub {
  border-top: 1px solid var(--line);
}

.page-link-grid a {
  min-height: 150px;
  color: var(--ink);
}

.page-link-grid a:hover,
.related-grid a:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
}

@media (max-width: 1280px) {
  .hero-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .cinema-chat-panel {
    width: 340px;
    min-width: 0;
  }

  .visual-rail {
    min-height: 210px;
  }

  .workbench-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-grid:has(.media-card:nth-child(3)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 821px) and (max-width: 1500px) {
  .workbench-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .cinema-hero {
    --cinema-rail: 74px;
  }

  .cinema-sidebar {
    gap: 11px;
    padding: 11px 8px;
  }

  .cinema-side-head {
    justify-content: center;
  }

  .cinema-brand-logo {
    width: 42px;
    height: 42px;
  }

  .cinema-fold-glyph,
  .cinema-brand-word,
  .cinema-channel-lines,
  .cinema-mini-list strong,
  .cinema-mini-list small,
  .cinema-side-footer {
    display: none;
  }

  .cinema-mini-list div,
  .cinema-mini-action {
    display: flex;
    justify-content: center;
    min-height: 34px;
  }

  .cinema-mini-list span {
    grid-row: auto;
  }

  .cinema-side-popover {
    width: min(260px, calc(100vw - var(--cinema-rail) - 18px));
  }

  .cinema-channel {
    justify-content: center;
    min-height: 42px;
    padding: 5px;
  }

  .cinema-thumb {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .cinema-side-footer {
    justify-content: center;
    padding: 0;
  }

  .cinema-side-footer span:last-child {
    margin-left: 0;
  }

  .cinema-top-actions {
    top: 11px;
    right: 8px;
    gap: 4px;
  }

  .cinema-top-actions .recording,
  .cinema-top-actions #viewer-count {
    width: 24px;
    height: 22px;
    overflow: hidden;
    padding: 0;
    color: transparent;
    font-size: 0;
  }

  .cinema-chat-panel {
    top: auto;
    right: 10px;
    bottom: 34px;
    width: calc(100% - var(--cinema-rail) - 94px);
    min-width: 0;
    max-height: 318px;
    padding: 9px;
  }

  .cinema-player-hud {
    top: auto;
    left: 14px;
    bottom: 90px;
    width: 78px;
  }

  .cinema-joystick {
    width: 78px;
    height: 78px;
  }

  .cinema-chat-message {
    padding: 8px 10px;
  }

  .cinema-chat-message span {
    font-size: 13px;
  }

  .cinema-chat-form {
    grid-template-columns: 34px minmax(0, 1fr) 80px;
  }

  .cinema-chat-form input,
  .cinema-chat-form button {
    min-height: 34px;
  }

  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  .clips-page-main {
    min-height: auto;
    padding: 28px 14px 48px;
  }

  .clips-page-shell {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .clips-page-hero {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }

  .clips-history-card {
    padding: 0;
  }

  .clips-history-head,
  .clips-history-actions,
  .clips-share-bar,
  .clips-share-result {
    align-items: stretch;
    flex-direction: column;
  }

  .clips-share-result input,
  .clips-share-result button,
  .clips-share-result a {
    width: 100%;
  }

  .clips-page-hero h1 {
    font-size: 30px;
  }

  .share-page-main {
    min-height: auto;
    padding: 28px 14px 48px;
  }

  .share-shell {
    grid-template-columns: 1fr;
  }

  .share-detail-panel {
    padding: 16px;
  }

  .share-player-badge {
    top: 8px;
    left: 8px;
    max-width: calc(100% - 16px);
  }

  .share-merge-strip {
    min-height: 74px;
    padding: 10px;
  }

  .share-player-editor {
    padding: 14px;
  }

  .share-range-head,
  .share-range-values {
    align-items: stretch;
    flex-direction: column;
  }

  .share-range-track {
    height: 52px;
  }

  .share-render-save {
    width: 100%;
  }

  .share-editor-head,
  .share-editor-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .share-editor-item,
  .share-library-item {
    grid-template-columns: 1fr;
  }

  .share-library-item span {
    grid-row: auto;
  }

  .share-detail-panel h1 {
    font-size: 24px;
  }

  .hero-shell,
  .content-band {
    width: min(100% - 28px, 1180px);
  }

  .hero-copy {
    min-height: 0;
    padding: 20px;
  }

  .workbench-heading h1 {
    font-size: 32px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 24px;
  }

  .hero-lede {
    font-size: 16px;
  }

  .workbench-grid,
  .split-band,
  .source-cta,
  .facts-grid,
  .fit-grid,
  .inner-hero,
  .inner-prose,
  .inner-card-grid,
  .media-grid,
  .media-grid:has(.media-card:nth-child(3)),
  .source-map-grid,
  .related-grid,
  .page-link-grid,
  .calculator-grid,
  .calculator-panel,
  .pricing-grid,
  .creator-hero,
  .creator-form-panel,
  .creator-step-grid,
  .route-list {
    grid-template-columns: 1fr;
  }

  .inner-hero,
  .media-section {
    width: min(100% - 28px, 1180px);
    padding-top: 24px;
  }

  .pricing-plans-section {
    width: min(100% - 28px, 1180px);
  }

  .pricing-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .pricing-toggle,
  .pricing-toggle button {
    width: 100%;
  }

  .pricing-status {
    text-align: left;
  }

  .pricing-card {
    min-height: 0;
  }

  .inner-hero-copy {
    min-height: 0;
    padding: 24px;
  }

  .inner-hero-stats strong,
  .calculator-result strong {
    font-size: 26px;
  }

  .inner-card-grid article,
  .source-map-grid article,
  .page-link-grid a,
  .related-grid a {
    min-height: 0;
  }

  .creator-hero,
  .creator-section {
    width: min(100% - 28px, 1180px);
  }

  .creator-hero {
    padding-top: 24px;
  }

  .creator-hero-copy,
  .creator-preview,
  .creator-form-panel {
    min-height: 0;
  }

  .creator-hero-copy,
  .creator-form-panel {
    padding: 24px;
  }

  .creator-apply-copy {
    position: static;
  }

  .creator-apply-copy h2 {
    font-size: 29px;
  }

  .form-grid.three {
    grid-template-columns: 1fr;
  }

  .creator-submit-row {
    grid-template-columns: 1fr;
  }

  .creator-submit-button {
    width: 100%;
  }

  .tool-panel {
    min-height: 0;
  }

  .spatial-panel {
    grid-column: auto;
  }

  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 18px;
  }

  .key-panel .table-wrap {
    overflow: visible;
    border: 0;
  }

  .key-panel table,
  .key-panel thead,
  .key-panel tbody,
  .key-panel tr,
  .key-panel th,
  .key-panel td {
    display: block;
    width: auto;
  }

  .key-panel th:nth-child(1),
  .key-panel td:nth-child(1),
  .key-panel th:nth-child(2),
  .key-panel td:nth-child(2),
  .key-panel th:nth-child(3),
  .key-panel td:nth-child(3),
  .key-panel th:nth-child(4),
  .key-panel td:nth-child(4),
  .key-panel th:nth-child(5),
  .key-panel td:nth-child(5) {
    width: auto;
  }

  .key-panel thead {
    display: none;
  }

  .key-panel tbody {
    display: grid;
    gap: 10px;
  }

  .key-panel tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    background: #f8fbfa;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .key-panel td {
    padding: 0;
    border-bottom: 0;
  }

  .key-panel td:nth-child(1),
  .key-panel td:nth-child(2),
  .key-panel td:nth-child(3),
  .key-panel td[colspan] {
    grid-column: 1 / -1;
  }

  .key-panel td:nth-child(1) {
    font-weight: 750;
  }

  .key-panel td:nth-child(2) code {
    display: block;
    padding: 8px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .key-panel td:nth-child(3) {
    color: var(--teal-strong);
    font-weight: 800;
  }

  .key-panel td:nth-child(4),
  .key-panel td:nth-child(5) {
    grid-column: auto;
  }

  .key-panel td:nth-child(4) .mini-button,
  .key-panel td:nth-child(5) .mini-button {
    min-height: 42px;
    white-space: nowrap;
  }

  .next-actions {
    grid-template-columns: 1fr;
  }

  .next-actions .secondary-button {
    width: 100%;
  }

  .inner-table-wrap {
    overflow: visible;
    border: 0;
  }

  .inner-table-wrap table,
  .inner-table-wrap thead,
  .inner-table-wrap tbody,
  .inner-table-wrap tr,
  .inner-table-wrap th,
  .inner-table-wrap td {
    display: block;
    width: auto;
    min-width: 0;
  }

  .inner-table-wrap table {
    min-width: 0;
  }

  .inner-table-wrap thead {
    display: none;
  }

  .inner-table-wrap tbody {
    display: grid;
    gap: 10px;
  }

  .inner-table-wrap tr {
    display: grid;
    gap: 8px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .inner-table-wrap td {
    padding: 0;
    border-bottom: 0;
  }

  .inner-table-wrap td:first-child {
    color: var(--ink);
    font-weight: 850;
  }

  .inner-table-wrap td:last-child {
    width: auto;
  }
}

@media (max-width: 460px) {
  .cinema-hero {
    --cinema-rail: 64px;
  }

  .cinema-sidebar {
    padding-inline: 7px;
  }

  .cinema-channel {
    min-height: 38px;
  }

  .cinema-thumb {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }

  .cinema-chat-panel {
    max-height: 284px;
    width: calc(100% - 106px);
  }

  .cinema-chat-form {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .cinema-chat-form input {
    padding-inline: 9px;
  }

  #chat-submit { grid-column: 1 / -1; }

  .cinema-chat-form button {
    min-height: 32px;
  }

  .nav-links {
    gap: 12px;
  }

  .inline-control {
    grid-template-columns: 1fr;
  }

  .notice {
    grid-template-columns: 1fr;
  }

  .clips-linked-render {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .clips-linked-render-video {
    width: 96px;
  }

  .primary-button,
  .secondary-button,
  .icon-button,
  .tab-button {
    white-space: normal;
  }
}
