@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Chivo:wght@500;600;700&display=swap');

/* One scoped editor, not another override layer across every legacy tab. */
#animatorStudio, #soHome {
  --so-base: oklch(0.19 0.009 150); --so-surface: oklch(0.22 0.009 150);
  --so-raised: oklch(0.265 0.009 150); --so-stage: oklch(0.16 0.006 150); --so-grid: oklch(0.18 0.006 150);
  --so-text: oklch(0.94 0.012 110); --so-muted: oklch(0.72 0.015 145); --so-line: oklch(0.34 0.009 150);
  --so-accent: oklch(0.83 0.085 145); --so-accent-ink: oklch(0.22 0.04 145);
  --so-selected: oklch(0.81 0.105 90); --so-error: oklch(0.79 0.1 30);
  color: var(--so-text); font: 400 14px/1.5 'Barlow', 'Helvetica Neue', sans-serif;
  min-width: 0; width: 100%; max-width: 1480px; margin-inline: auto; isolation: isolate; color-scheme: dark; outline: none;
}
body[data-theme="light"] :is(#animatorStudio, #soHome) {
  --so-base: oklch(0.97 0.009 145); --so-surface: oklch(0.945 0.011 145); --so-raised: oklch(0.91 0.013 145);
  --so-text: oklch(0.25 0.015 145); --so-muted: oklch(0.49 0.02 145); --so-line: oklch(0.82 0.012 145);
  --so-accent: oklch(0.4 0.085 145); --so-accent-ink: oklch(0.98 0.012 145); --so-error: oklch(0.45 0.13 30); color-scheme: light;
}
#animatorStudio *, #animatorStudio *::before, #animatorStudio *::after { box-sizing: border-box; }
#animatorStudio [hidden], #soHome [hidden] { display: none !important; }
#animatorStudio :is(section, aside, header, footer, nav, form, div) { min-width: 0; }
#animatorStudio :is(h2, h3, h4, p, fieldset) { margin: 0; }
#animatorStudio :is(h2, h3) { font-family: 'Chivo', 'Helvetica Neue', sans-serif; font-weight: 600; }
#animatorStudio button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-width: 36px; min-height: 36px; max-width: 100%; padding: 7px 11px;
  border: 1px solid var(--so-line); border-radius: 5px; background: transparent; color: var(--so-text);
  font: 500 13px/1.2 'Barlow', 'Helvetica Neue', sans-serif;
  cursor: pointer; touch-action: manipulation; box-shadow: none; white-space: normal;
  transition: background-color 120ms ease-out, border-color 120ms ease-out;
}
#animatorStudio button:hover:not(:disabled) { background: var(--so-raised); border-color: var(--so-muted); }
#animatorStudio button:disabled { opacity: 0.42; cursor: not-allowed; }
#animatorStudio button.so-primary { color: var(--so-accent-ink); background: var(--so-accent); border-color: var(--so-accent); font-weight: 600; }
#animatorStudio button.so-primary:hover:not(:disabled) { background: color-mix(in oklch, var(--so-accent), var(--so-text) 12%); }
#animatorStudio :is(button, input, select, textarea, summary, a, canvas):focus-visible { outline: 2px solid var(--so-selected); outline-offset: 3px; }
#animatorStudio :is(input, select, textarea) { min-width: 0; width: 100%; min-height: 36px; padding: 7px 9px; border: 1px solid var(--so-line); border-radius: 4px; color: var(--so-text); background: var(--so-base); font: 400 14px/1.4 'Barlow', 'Helvetica Neue', sans-serif; }
#animatorStudio input[type="checkbox"] { width: 16px; height: 16px; min-height: 16px; margin: 0; flex: 0 0 16px; accent-color: var(--so-accent); }
#animatorStudio input[type="range"] { padding: 0; min-height: 28px; accent-color: var(--so-accent); background: transparent; border: 0; }
#animatorStudio input[type="color"] { width: 40px; padding: 3px; }
#animatorStudio input[type="number"] { font-variant-numeric: tabular-nums; }
#animatorStudio textarea { resize: vertical; min-height: 110px; }
#animatorStudio ::placeholder { color: var(--so-muted); opacity: 0.8; }
#animatorStudio label { display: grid; gap: 6px; color: var(--so-muted); font-size: 12px; font-weight: 500; }
#animatorStudio a { color: var(--so-accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
#animatorStudio .so-note { color: var(--so-muted); font-size: 12px; line-height: 1.55; }
#animatorStudio .so-error { color: var(--so-error); font-size: 12px; overflow-wrap: anywhere; }
#animatorStudio .so-warning { color: var(--so-selected); font-size: 12px; line-height: 1.5; }
#animatorStudio .so-numbers { color: var(--so-muted); font-variant-numeric: tabular-nums; font-size: 12px; }
#animatorStudio .so-kicker { color: var(--so-muted); font-size: 10px; font-weight: 600; letter-spacing: 0.12em; }
#animatorStudio .so-editor { border: 1px solid var(--so-line); background: var(--so-base); border-radius: 10px; overflow: clip; }
#animatorStudio .so-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px 16px; }
#animatorStudio .so-project-heading { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
#animatorStudio #soName { font: 600 21px/1.25 'Chivo', sans-serif; color: var(--so-text); min-height: 30px; padding: 2px 0; border-color: transparent; background: transparent; text-overflow: ellipsis; }
#animatorStudio #soName:hover { border-bottom-color: var(--so-line); }
#animatorStudio .so-save-state { color: var(--so-muted); font-size: 11px; }
#animatorStudio .so-heading-actions, #animatorStudio .so-history { display: flex; gap: 8px; align-items: center; }
#animatorStudio .so-heading-actions { flex: 0 0 auto; }
#animatorStudio .so-heading-actions button { min-height: 40px; }
#animatorStudio .so-taskbar { display: flex; justify-content: space-between; gap: 8px; padding: 0 24px; border-bottom: 1px solid var(--so-line); align-items: center; }
#animatorStudio .so-modes { display: flex; gap: 22px; }
#animatorStudio .so-modes button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--so-muted); min-height: 48px; padding: 10px 0; font-weight: 500; }
#animatorStudio .so-modes button[aria-pressed="true"] { border-bottom-color: var(--so-accent); color: var(--so-text); }
#animatorStudio .so-modes button:hover { background: transparent; }
#animatorStudio .so-history button { border: 0; min-width: 30px; padding-inline: 5px; }
#animatorStudio .so-history svg { width: 17px; height: 17px; }
#animatorStudio .so-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 292px; }
#animatorStudio[data-ready="false"][data-mode="animate"] .so-workspace { grid-template-columns: minmax(0, 1fr); }
#animatorStudio[data-ready="false"][data-mode="animate"] .so-inspector,
#animatorStudio[data-ready="false"] .so-transport,
#animatorStudio[data-ready="false"] .so-view-options { display: none; }
#animatorStudio .so-surface { display: flex; flex-direction: column; min-height: 0; }
#animatorStudio .so-viewbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px; min-height: 54px; gap: 10px; color: var(--so-muted); font-size: 12px; }
#animatorStudio .so-view-options { display: flex; align-items: center; gap: 3px; }
#animatorStudio .so-view-options button { border: 0; padding: 5px 8px; min-height: 30px; min-width: 28px; font-size: 12px; }
#animatorStudio .so-view-options #soShowSheet { margin-right: 8px; }
#animatorStudio button[aria-pressed="true"]:not(.so-frame):not([data-mode]) { background: var(--so-raised); color: var(--so-text); }
#animatorStudio .so-stage { position: relative; height: clamp(320px, 48svh, 600px); min-height: 320px; flex: 1 0 auto; overflow: hidden; background-color: var(--so-stage); background-image: conic-gradient(var(--so-grid) 25%, transparent 0 50%, var(--so-grid) 0 75%, transparent 0); background-size: 20px 20px; }
#animatorStudio #soCanvas { display: block; width: 100%; height: 100%; position: absolute; inset: 0; image-rendering: pixelated; }
#animatorStudio[data-mode="scene"] #soCanvas { touch-action: none; cursor: grab; }
#animatorStudio[data-mode="clean"] #soCanvas { cursor: crosshair; }
#animatorStudio .so-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; background: color-mix(in oklch, var(--so-stage), transparent 10%); color: oklch(0.94 0.012 110); gap: 16px; }
#animatorStudio .so-empty img { display: block; width: 112px; height: 96px; object-fit: contain; image-rendering: pixelated; }
#animatorStudio .so-empty h2 { font-size: 26px; line-height: 1.15; letter-spacing: -0.03em; }
#animatorStudio .so-empty p { font-size: 14px; color: oklch(0.72 0.015 145); }
#animatorStudio .so-empty > div { display: flex; gap: 8px; }
#animatorStudio .so-empty > div button:not(.so-primary) { color: oklch(0.94 0.012 110); border-color: oklch(0.4 0.012 145); }
#animatorStudio .so-empty small { font-size: 11px; color: oklch(0.67 0.015 145); }
#animatorStudio .so-canvas-note { position: absolute; pointer-events: none; left: 14px; bottom: 12px; color: #c1cdc2; background: #182019e8; border-radius: 3px; padding: 3px 7px; font-size: 10px; font-variant-numeric: tabular-nums; }
#animatorStudio .so-drop-cover { display: none; position: absolute; inset: 10px; border: 1px dashed var(--so-accent); background: #18291cf0; color: #d9f0d6; place-items: center; font-size: 16px; font-weight: 500; pointer-events: none; }
#animatorStudio .so-stage.so-drag-over .so-drop-cover { display: grid; }
#animatorStudio .so-compare { position: absolute; display: flex; gap: 2px; top: 12px; left: 12px; padding: 3px; background: var(--so-base); border: 1px solid var(--so-line); border-radius: 5px; }
#animatorStudio .so-compare button { border: 0; min-height: 32px; font-size: 12px; }
#animatorStudio .so-transport { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--so-line); }
#animatorStudio .so-transport > div { display: flex; align-items: center; gap: 8px; }
#animatorStudio .so-transport button { border: 0; }
#animatorStudio .so-transport .so-play { border: 1px solid var(--so-line); background: var(--so-raised); min-width: 40px; }
#animatorStudio .so-transport .so-speed { display: flex; align-items: center; gap: 6px; font-weight: 400; }
#animatorStudio .so-speed input { width: 50px; padding-inline: 6px; }
#animatorStudio .so-inspector { border-left: 1px solid var(--so-line); background: var(--so-surface); padding: 22px 20px; min-width: 0; }
#animatorStudio .so-inspector > section { display: flex; flex-direction: column; gap: 16px; }
#animatorStudio .so-inspector-title { display: grid; gap: 10px; }
#animatorStudio .so-inspector-title > span { color: var(--so-muted); font-size: 10px; letter-spacing: 0.09em; font-weight: 600; }
#animatorStudio .so-inspector-title h3 { font-size: 18px; letter-spacing: -0.025em; line-height: 1.2; }
#animatorStudio .so-inspector-title p { font-size: 13px; line-height: 1.6; color: var(--so-muted); }
#animatorStudio .so-source-tile { border: 1px solid var(--so-line); border-radius: 5px; background: var(--so-base); }
#animatorStudio #soSourceMap { width: 100%; height: 110px; display: block; image-rendering: pixelated; cursor: crosshair; }
#animatorStudio #soSourceLabel { display: block; padding: 8px 10px; border-top: 1px solid var(--so-line); color: var(--so-muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#animatorStudio details { border-top: 1px solid var(--so-line); padding-top: 12px; }
#animatorStudio summary { cursor: pointer; list-style-position: outside; margin-left: 12px; font-size: 13px; color: var(--so-text); min-height: 28px; padding-right: 4px; }
#animatorStudio summary > span { float: right; color: var(--so-muted); font-size: 11px; }
#animatorStudio details[open] > :not(summary) { margin-top: 12px; }
#animatorStudio .so-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#animatorStudio .so-button-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
#animatorStudio .so-check { display: flex; gap: 8px; align-items: center; color: var(--so-text); font-size: 12px; font-weight: 400; cursor: pointer; }
#animatorStudio fieldset { border: 0; padding: 0; display: grid; gap: 12px; min-width: 0; }
#animatorStudio fieldset:disabled { opacity: 0.45; }
#animatorStudio legend, #animatorStudio fieldset h4 { color: var(--so-text); font-size: 13px; font-weight: 600; padding: 0 0 8px; }
#animatorStudio .so-range-label { display: grid; grid-template-columns: 1fr auto; }
#animatorStudio .so-range-label input { grid-column: 1 / -1; }
#animatorStudio output { color: var(--so-text); font-variant-numeric: tabular-nums; }
#animatorStudio .so-color-label { display: inline-flex; align-items: center; gap: 4px; }
#animatorStudio hr { border: 0; border-top: 1px solid var(--so-line); width: 100%; margin-block: 8px; }
#animatorStudio .so-cleanup-decision { padding-top: 16px; border-top: 1px solid var(--so-accent); display: grid; gap: 10px; }
#animatorStudio .so-cleanup-decision strong { font-size: 13px; }
#animatorStudio .so-upload-tile { padding: 12px; border: 1px dashed var(--so-line); border-radius: 5px; display: grid; gap: 10px; justify-items: stretch; background: var(--so-base); }
#animatorStudio .so-upload-tile > img { max-width: 100%; height: 100px; width: 100%; object-fit: contain; image-rendering: pixelated; }
#animatorStudio .so-upload-tile .so-note { overflow-wrap: anywhere; }
#animatorStudio .so-upload-tile.so-drag-over, #animatorStudio .so-source-tile.so-drag-over { border-color: var(--so-accent); background: color-mix(in oklch, var(--so-base), var(--so-accent) 10%); }
#animatorStudio .so-text-button { border: 0; min-height: 28px; padding: 0; color: var(--so-muted); justify-self: start; font-size: 12px; }
#animatorStudio .so-character-chip { display: flex; width: 100%; padding: 6px; gap: 10px; justify-content: start; text-align: left; cursor: grab; }
#animatorStudio .so-character-chip canvas { width: 48px; height: 48px; flex: 0 0 auto; }
#animatorStudio .so-character-chip span { display: grid; gap: 4px; }
#animatorStudio .so-character-chip small { color: var(--so-muted); font-size: 11px; font-weight: 400; }
#animatorStudio #soGenerateForm { display: grid; gap: 14px; }
#animatorStudio #soGenerate { width: 100%; }
#animatorStudio .so-timeline-section { border-top: 1px solid var(--so-line); padding: 14px 20px 16px; }
#animatorStudio .so-timeline-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
#animatorStudio .so-timeline-heading > div:first-child { display: flex; align-items: center; gap: 10px; }
#animatorStudio .so-timeline-heading strong { font-size: 13px; font-weight: 500; }
#animatorStudio .so-frame-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
#animatorStudio .so-frame-actions button { min-height: 30px; min-width: 28px; padding: 5px 8px; font-size: 12px; }
#animatorStudio .so-frame-actions > span { margin-right: 6px; }
#animatorStudio .so-frame-actions label { display: flex; align-items: center; gap: 5px; margin-left: 6px; }
#animatorStudio .so-frame-actions input { width: 48px; min-height: 30px; padding: 4px; font-size: 12px; }
#animatorStudio .so-timeline { display: flex; gap: 6px; overflow-x: auto; padding: 3px 3px 8px; min-width: 0; max-width: 100%; scrollbar-width: thin; scrollbar-color: var(--so-line) transparent; overscroll-behavior-x: contain; }
#animatorStudio .so-frame { display: flex; flex-direction: column; padding: 4px 4px 6px; border: 1px solid var(--so-line); gap: 3px; min-width: 78px; width: 78px; background: var(--so-surface); color: var(--so-muted); cursor: grab; flex: 0 0 78px; }
#animatorStudio .so-frame canvas { width: 64px; height: 58px; image-rendering: pixelated; }
#animatorStudio .so-frame span { font-size: 10px; font-variant-numeric: tabular-nums; }
#animatorStudio .so-frame[aria-pressed="true"] { border-color: var(--so-selected); outline: 1px solid var(--so-selected); outline-offset: -1px; background: color-mix(in oklch, var(--so-surface), var(--so-selected) 8%); color: var(--so-text); }
#animatorStudio .so-takes-section { padding: 16px 20px; border-top: 1px solid var(--so-line); }
#animatorStudio .so-takes-section > header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
#animatorStudio .so-takes-section > header > div { display: flex; gap: 10px; align-items: center; }
#animatorStudio .so-takes { display: flex; overflow-x: auto; gap: 12px; padding-bottom: 10px; overscroll-behavior-x: contain; }
#animatorStudio .so-take { min-width: 168px; width: 168px; flex: 0 0 168px; border: 1px solid var(--so-line); border-radius: 5px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
#animatorStudio .so-take > button { width: 100%; padding: 0; min-height: 112px; border: 0; background: var(--so-stage); }
#animatorStudio .so-take canvas { width: 100%; height: auto; }
#animatorStudio .so-take strong { font-size: 12px; }
#animatorStudio .so-take-actions { display: flex; gap: 4px; margin-top: auto; }
#animatorStudio .so-take-actions button { padding-inline: 7px; font-size: 12px; min-width: 32px; }
#animatorStudio .so-statusbar { border-top: 1px solid var(--so-line); padding: 10px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#animatorStudio .so-statusbar p { color: var(--so-muted); font-size: 11px; flex: 1 1 280px; overflow-wrap: anywhere; }
#animatorStudio .so-statusbar p[data-error="true"] { color: var(--so-error); }
#animatorStudio .so-statusbar > button { border: 0; color: var(--so-muted); font-size: 11px; min-height: 28px; padding: 4px; }
#animatorStudio #soShortcutHint { color: var(--so-muted); font-size: 11px; flex-basis: 100%; }
#animatorStudio .so-export-panel { border-top: 1px solid var(--so-accent); padding: 24px; background: var(--so-surface); display: grid; gap: 18px; }
#animatorStudio .so-export-panel > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#animatorStudio .so-export-panel h3 { margin-top: 6px; font-size: 20px; }
#animatorStudio .so-export-settings { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(200px, 1.4fr) repeat(3, minmax(76px, 0.5fr)); gap: 12px; }
#animatorStudio #soExportResult { display: flex; align-items: center; gap: 16px; }
#animatorStudio #soExportPreview { width: 100px; height: 90px; object-fit: contain; image-rendering: pixelated; }
#animatorStudio #soProjectMenu > button { width: 100%; justify-content: start; }

/* Boundary to the existing shell. Its other tabs remain unchanged. */
body:is([data-active-tab="canvas"], [data-active-tab="landing"]) { background-image: none; }
body[data-active-tab="canvas"] .workspace { padding: 20px; }
body[data-active-tab="canvas"] .workspace-topbar .topbar-title strong { display: none; }
body[data-active-tab="canvas"] .workspace-topbar { min-height: 56px; padding-block: 10px; }
body[data-active-tab="canvas"] .workspace-topbar .topbar-actions > [data-tab-jump="billing"],
body[data-active-tab="canvas"] .workspace-topbar .topbar-actions > .menu-wrap { display: none; }
.so-legacy-board { max-width: 1480px; margin: 18px auto 0; border-top: 1px solid #65736244; padding-top: 14px; }
.so-legacy-board > summary { cursor: pointer; color: #99a397; font: 400 12px/1.5 'Barlow', sans-serif; padding: 8px 4px; }
.so-legacy-board:not([open]) > .canvas-shell { display: none !important; }
.sa-pain-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-block: 24px; }
.sa-pain-strip article { padding-block: 12px; border-top: 1px solid var(--line); }
.sa-pain-strip strong { display: block; margin-block: 8px; }
.sa-pain-strip p { font-size: 14px; color: var(--muted); line-height: 1.6; }
@media (max-width: 1100px) {
  #animatorStudio .so-workspace { grid-template-columns: minmax(0, 1fr) 258px; }
  #animatorStudio .so-inspector { padding: 18px 14px; }
  #animatorStudio .so-heading { padding-inline: 18px; }
  #animatorStudio .so-export-settings { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  body[data-active-tab="canvas"] .workspace-topbar { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: space-between; min-height: 52px; padding: 8px 12px; }
  body[data-active-tab="canvas"] .workspace { padding: 8px 8px calc(92px + env(safe-area-inset-bottom)); }
  #animatorStudio .so-editor { border-radius: 7px; }
  #animatorStudio .so-heading { padding: 14px 14px 10px; gap: 10px; }
  #animatorStudio .so-heading-actions { gap: 6px; }
  #animatorStudio .so-heading-actions button { padding-inline: 10px; }
  #animatorStudio .so-heading-actions [data-upload] span { display: none; }
  #animatorStudio #soName { font-size: 17px; }
  #animatorStudio .so-kicker { font-size: 9px; }
  #animatorStudio .so-save-state { font-size: 10px; }
  #animatorStudio .so-taskbar { padding-inline: 12px; gap: 4px; }
  #animatorStudio .so-modes { gap: 16px; flex: 1; }
  #animatorStudio .so-modes button { font-size: 13px; min-height: 44px; }
  #animatorStudio .so-history { gap: 0; }
  #animatorStudio .so-history button { min-width: 28px; }
  #animatorStudio .so-workspace { display: flex; flex-direction: column; }
  #animatorStudio .so-stage { height: clamp(290px, 43svh, 420px); min-height: 290px; flex-basis: auto; }
  #animatorStudio .so-viewbar { padding: 8px 12px; min-height: 46px; }
  #animatorStudio .so-empty { gap: 12px; padding: 18px; }
  #animatorStudio .so-empty img { width: 88px; height: 70px; }
  #animatorStudio .so-empty h2 { font-size: 22px; }
  #animatorStudio .so-empty p { font-size: 13px; }
  #animatorStudio .so-empty small { font-size: 10px; }
  #animatorStudio .so-transport { padding: 8px 12px; gap: 8px; }
  #animatorStudio .so-transport > div { gap: 3px; }
  #animatorStudio .so-inspector { border-left: 0; border-top: 1px solid var(--so-line); padding: 18px 16px; }
  #animatorStudio .so-inspector-title > span { display: none; }
  #animatorStudio .so-inspector-title { gap: 6px; }
  #animatorStudio .so-inspector-title h3 { font-size: 17px; }
  #animatorStudio .so-timeline-section, #animatorStudio .so-takes-section { padding: 14px 12px; }
  #animatorStudio .so-timeline-heading { align-items: start; }
  #animatorStudio .so-frame-actions { gap: 5px; }
  #animatorStudio .so-frame-actions > span { display: none; }
  #animatorStudio .so-export-panel { padding: 18px 14px; }
  #animatorStudio .so-export-settings { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  #animatorStudio .so-export-settings label:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
  #animatorStudio .so-statusbar { padding: 10px 12px; }
  body[data-active-tab="canvas"] .mobile-tabbar { background: #202921; border-color: #39483b; box-shadow: none; backdrop-filter: none; padding-bottom: max(6px, env(safe-area-inset-bottom)); }
  body[data-active-tab="canvas"] .mobile-tabbar button { color: #aeb9ad; }
  body[data-active-tab="canvas"] .mobile-tabbar button[data-tab-jump="canvas"] { background: #a7c79d; color: #1a301d; box-shadow: none; }
  .sa-pain-strip { grid-template-columns: 1fr; }
}
@media (pointer: coarse) {
  #animatorStudio button, #animatorStudio summary, #animatorStudio .so-frame-actions button { min-height: 44px; }
  #animatorStudio :is(input:not([type="checkbox"]):not([type="range"]), select, textarea) { font-size: 16px; min-height: 40px; }
  #animatorStudio .so-frame-actions input { width: 52px; }
  #animatorStudio .so-view-options button { min-width: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  #animatorStudio button { transition: none; }
  #animatorStudio .so-empty img { display: none; }
}

/* Home is a workbench introduction, not a wall of old GIF cards. */
#soHome { max-width: 1320px; padding: 10px 4px 24px; }
#soHome :is(h1, h2, p) { margin: 0; }
#soHome :is(h1, h2) { font-family: 'Chivo', 'Helvetica Neue', sans-serif; }
#soHome :is(a, button):focus-visible { outline: 2px solid var(--so-selected); outline-offset: 3px; }
#soHome a { color: var(--so-muted); text-underline-offset: 3px; }
#soHome button {
  font: 500 14px/1.3 'Barlow', 'Helvetica Neue', sans-serif;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  color: var(--so-text); background: var(--so-base); border: 1px solid var(--so-line); border-radius: 5px;
  min-width: 36px; min-height: 40px; padding: 9px 13px; max-width: 100%; cursor: pointer;
  box-shadow: none; touch-action: manipulation; transition: background-color 120ms ease-out;
}
#soHome button:hover:not(:disabled) { background: var(--so-raised); }
#soHome button:disabled { opacity: 0.45; cursor: default; }
#soHome .so-home-primary { background: var(--so-accent); color: var(--so-accent-ink); border-color: var(--so-accent); }
#soHome .so-home-primary:hover { background: color-mix(in oklch, var(--so-accent), var(--so-text) 8%); }
.so-home-lead { display: grid; grid-template-columns: minmax(270px, 0.76fr) minmax(0, 1.24fr); align-items: center; gap: clamp(24px, 3vw, 48px); padding: 24px 0 36px; }
.so-home-copy { display: grid; gap: 22px; align-content: center; min-width: 0; }
.so-home-eyebrow { font-size: 10px; letter-spacing: 0.12em; font-weight: 600; color: var(--so-accent); }
#soHome .so-home-copy h1 { font-size: clamp(30px, 2.8vw, 42px); font-weight: 600; line-height: 1.12; letter-spacing: -0.045em; color: var(--so-text); }
#soHome .so-home-copy h1 > span { display: inline-block; max-width: 100%; }
#soHome .so-home-copy > p { color: var(--so-muted); font-size: 15px; line-height: 1.65; max-width: 36ch; }
.so-home-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#soHome .so-home-copy .so-home-local { font-size: 12px; }
.so-home-proof { min-width: 0; }
.so-home-proof-title { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; font-size: 10px; color: var(--so-muted); letter-spacing: 0.08em; }
#soHome .so-home-credit { color: var(--so-muted); font-size: 10px; line-height: 1.4; padding-top: 10px; }
#soHomeResume { display: grid; gap: 5px; padding-top: 20px; border-top: 1px solid var(--so-line); }
#soHomeResume > span { font-size: 9px; letter-spacing: 0.1em; color: var(--so-muted); }
#soHomeResume > strong { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
#soHomeResume button { justify-self: start; margin-top: 6px; }
.so-home-workflow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; border-top: 1px solid var(--so-line); padding: 28px 0 34px; }
.so-home-workflow article { display: flex; flex-direction: column; gap: 12px; }
.so-home-workflow article > span { color: var(--so-selected); font-size: 11px; font-variant-numeric: tabular-nums; }
#soHome .so-home-workflow h2 { font-size: 17px; line-height: 1.25; font-weight: 500; letter-spacing: -0.02em; }
#soHome .so-home-workflow p { font-size: 13px; color: var(--so-muted); line-height: 1.65; max-width: 40ch; }
#soHome .so-home-workflow button { align-self: start; min-height: 32px; padding: 4px 0; margin-top: auto; border-color: transparent; background: transparent; font-size: 12px; color: var(--so-accent); text-align: left; justify-content: start; }
.so-home-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; border-top: 1px solid var(--so-line); padding-top: 18px; color: var(--so-muted); font-size: 11px; }
.so-home-footer > span { margin-right: auto; }
#soHome .so-home-footer button { padding: 3px 0; border: 0; background: transparent; min-height: 30px; color: var(--so-muted); font-size: 11px; }
#soHome.home-drag-over { outline: 2px dashed var(--so-accent); outline-offset: -2px; }
body[data-active-tab="landing"] .workspace { padding: 20px 24px; }
body[data-active-tab="landing"] .workspace-topbar .topbar-title strong,
body[data-active-tab="landing"] .workspace-topbar .topbar-actions > [data-tab-jump="billing"],
body[data-active-tab="landing"] .workspace-topbar .topbar-actions > .menu-wrap { display: none; }

/* Shared live demo: identical clips in Home and the editor's starting surface. */
:is(#soHomeDemo, #soEmptyDemo) { min-width: 0; }
:is(#soHomeDemo, #soEmptyDemo) .sd-demo { border: 1px solid var(--so-line); border-radius: 7px; overflow: hidden; background: var(--so-base); }
:is(#soHomeDemo, #soEmptyDemo) .sd-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 12px; }
:is(#soHomeDemo, #soEmptyDemo) .sd-clips { display: flex; gap: 5px; }
:is(#soHomeDemo, #soEmptyDemo) .sd-toolbar button { min-height: 32px; padding: 5px 9px; border: 0; background: transparent; font-size: 12px; color: var(--so-muted); }
:is(#soHomeDemo, #soEmptyDemo) .sd-toolbar button[aria-pressed="true"] { background: var(--so-raised); color: var(--so-text); }
:is(#soHomeDemo, #soEmptyDemo) .sd-picture { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #18221b; }
:is(#soHomeDemo, #soEmptyDemo) .sd-picture :is(img, canvas) { display: block; width: 100%; height: 100%; image-rendering: pixelated; object-fit: contain; }
:is(#soHomeDemo, #soEmptyDemo) .sd-example-label { position: absolute; top: 12px; left: 12px; color: #f1f6ec; background: #263c32d9; padding: 4px 6px; font-size: 8px; font-weight: 600; letter-spacing: 0.09em; border-radius: 2px; }
:is(#soHomeDemo, #soEmptyDemo) .sd-controls { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 11px; color: var(--so-muted); border-bottom: 1px solid var(--so-line); }
:is(#soHomeDemo, #soEmptyDemo) .sd-controls button { min-height: 30px; padding: 5px 10px; font-size: 12px; }
:is(#soHomeDemo, #soEmptyDemo) .sd-controls output { margin-left: auto; font-variant-numeric: tabular-nums; font-size: 10px; }
:is(#soHomeDemo, #soEmptyDemo) .sd-frames { display: flex; gap: 4px; padding: 8px 12px; overflow-x: auto; min-height: 73px; }
:is(#soHomeDemo, #soEmptyDemo) .sd-frames button { flex: 0 0 50px; min-width: 50px; padding: 3px 2px; border: 1px solid transparent; display: flex; flex-direction: column; gap: 1px; background: var(--so-surface); }
:is(#soHomeDemo, #soEmptyDemo) .sd-frames button[aria-pressed="true"] { border-color: var(--so-selected); background: color-mix(in oklch, var(--so-surface), var(--so-selected) 10%); }
:is(#soHomeDemo, #soEmptyDemo) .sd-frames canvas { width: 40px; height: 38px; image-rendering: pixelated; }
:is(#soHomeDemo, #soEmptyDemo) .sd-frames span { color: var(--so-muted); font-size: 9px; font-variant-numeric: tabular-nums; }
:is(#soHomeDemo, #soEmptyDemo) .sd-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--so-line); }
:is(#soHomeDemo, #soEmptyDemo) .sd-bottom > span { font-size: 10px; color: var(--so-muted); }
:is(#soHomeDemo, #soEmptyDemo) .sd-bottom button { color: var(--so-accent); border-color: transparent; background: transparent; font-size: 12px; min-height: 32px; padding: 5px 0; }
#animatorStudio[data-ready="false"][data-mode="animate"] .so-stage { height: auto; min-height: 0; flex: 0 0 auto; background: var(--so-base); }
#animatorStudio[data-ready="false"] .so-stage:has(> .so-onboarding:not([hidden])) { height: auto; min-height: 0; flex: 0 0 auto; }
#animatorStudio[data-ready="false"][data-mode="animate"] .so-viewbar { display: none; }
#animatorStudio .so-onboarding { position: relative; padding: 22px; display: grid; gap: 16px; background: var(--so-base); }
#animatorStudio .so-onboarding-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
#animatorStudio .so-onboarding-heading strong { font-weight: 500; font-size: 16px; }
#animatorStudio .so-onboarding-heading p { font-size: 12px; color: var(--so-muted); margin-top: 5px; }
#animatorStudio #soEmptyDemo { width: 100%; max-width: 790px; margin-inline: auto; }
#animatorStudio .so-demo-credit { color: var(--so-muted); font-size: 10px; text-align: center; }

@media (max-width: 1100px) {
  .so-home-lead { grid-template-columns: minmax(0, 1fr); padding-top: 12px; gap: 28px; }
  .so-home-copy { gap: 16px; }
  #soHome .so-home-copy > p { max-width: 56ch; }
  #soHome .so-home-copy h1 br { display: none; }
  #soHome .so-home-copy h1 { max-width: 22ch; }
  .so-home-proof { max-width: 790px; width: 100%; }
}
@media (max-width: 820px) {
  body[data-active-tab="landing"] .workspace { padding: 16px 16px calc(92px + env(safe-area-inset-bottom)); }
  body[data-active-tab="landing"] .workspace-topbar { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: space-between; min-height: 52px; padding: 8px 12px; }
  body:is([data-active-tab="landing"], [data-active-tab="canvas"]) .workspace-topbar .topbar-title { text-align: left; }
  body:is([data-active-tab="landing"], [data-active-tab="canvas"]) .workspace-topbar .topbar-title { flex: 1 1 auto; min-width: 0; }
  body:is([data-active-tab="landing"], [data-active-tab="canvas"]) .workspace-topbar .topbar-actions { flex: 0 0 auto; width: auto; flex-wrap: nowrap; margin-left: auto; }
  body[data-active-tab="landing"] .mobile-tabbar { background: #202921; border-color: #39483b; box-shadow: none; backdrop-filter: none; padding-bottom: max(6px, env(safe-area-inset-bottom)); }
  body[data-active-tab="landing"] .mobile-tabbar button { color: #aeb9ad; }
  body[data-active-tab="landing"] .mobile-tabbar [data-tab-jump="landing"] { background: #a7c79d; color: #1a301d; box-shadow: none; }
  .so-home-lead { padding-block: 6px 24px; gap: 26px; }
  #soHome .so-home-copy h1 { font-size: 32px; }
  #soHome .so-home-copy > p { font-size: 14px; }
  .so-home-workflow { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-block: 24px; }
  .so-home-workflow article { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; }
  #soHome .so-home-workflow article > :not(span) { grid-column: 2; }
  #soHome .so-home-workflow p { max-width: none; }
  #soHome .so-home-workflow button { justify-self: start; }
  .so-home-footer { gap: 8px 16px; }
  .so-home-footer > span { flex-basis: 100%; }
  #animatorStudio .so-onboarding { padding: 14px 12px; gap: 12px; }
  #animatorStudio .so-onboarding-heading strong { font-size: 14px; }
  #animatorStudio .so-onboarding-heading p { font-size: 11px; }
  :is(#soHomeDemo, #soEmptyDemo) .sd-toolbar { padding-inline: 8px; }
  :is(#soHomeDemo, #soEmptyDemo) .sd-frames { padding-inline: 8px; }
  :is(#soHomeDemo, #soEmptyDemo) .sd-controls { gap: 8px; padding-inline: 8px; }
  :is(#soHomeDemo, #soEmptyDemo) .sd-timing { font-size: 10px; }
  :is(#soHomeDemo, #soEmptyDemo) .sd-bottom { padding: 8px; }
  :is(#soHomeDemo, #soEmptyDemo) .sd-bottom > span { display: none; }
  :is(#soHomeDemo, #soEmptyDemo) .sd-bottom button { width: 100%; }
}
@media (pointer: coarse) {
  #soHome button, :is(#soHomeDemo, #soEmptyDemo) button { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  #soHome button { transition: none; }
}

/* Landing is separate from the fullscreen canvas application. */
body[data-active-tab="landing"] { overflow: auto; }
body[data-active-tab="landing"] .app-shell { display: block; height: auto; min-height: 100svh; overflow: visible; }
body[data-active-tab="landing"] .main-shell { display: block; height: auto; min-height: 100svh; margin: 0; }
body[data-active-tab="landing"] .workspace { overflow: visible; height: auto; padding: 0 28px 36px; }
body[data-active-tab="landing"] :is(.product-sidebar, .workspace-topbar, .mobile-tabbar),
body[data-active-tab="landing"] .app-shell::after { display: none !important; }
body[data-studio-surface="board"][data-active-tab="canvas"] :is(.product-sidebar, .workspace-topbar, .mobile-tabbar) { display: none !important; }
.so-workspace-error { padding: 24px; color: #eccab9; font: 16px 'Barlow', sans-serif; }
.so-site-nav { display: flex; align-items: center; gap: 24px; min-height: 84px; border-bottom: 1px solid var(--so-line); margin-bottom: 18px; }
#soHome .so-site-brand { font-family: 'Chivo', sans-serif; font-size: 22px; color: var(--so-text); text-decoration: none; font-weight: 600; margin-right: auto; }
.so-site-brand span { display: block; font: 400 10px 'Barlow', sans-serif; letter-spacing: .08em; color: var(--so-muted); text-transform: uppercase; margin-top: 3px; }
.so-site-nav nav { display: flex; gap: 24px; }
#soHome .so-site-nav nav a { font-size: 13px; text-decoration: none; }
#soHome .so-site-nav > button { border-color: var(--so-accent); color: var(--so-accent); }
.so-workflow-path { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 0; }
.so-workflow-path li { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--so-text); }
.so-workflow-path span { font-size: 10px; color: var(--so-selected); }
#soHome .so-home-lead { padding-top: 30px; }
#soHome .so-home-copy h1 { font-size: clamp(32px, 3vw, 46px); }
#soHome .so-home-actions #soHomeEnter { min-width: 150px; }
.so-examples { border-top: 1px solid var(--so-line); padding: 40px 0; scroll-margin-top: 20px; }
.so-examples > header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
#soHome .so-examples h2, #soHome .so-studio-showcase h2, #soHome .so-codex-section h2 { font: 500 clamp(24px, 2.4vw, 32px)/1.2 'Chivo', sans-serif; letter-spacing: -.035em; margin: 10px 0; }
#soHome .so-examples header p, #soHome .so-studio-showcase p, #soHome .so-codex-section p { font-size: 14px; line-height: 1.7; color: var(--so-muted); max-width: 70ch; }
.so-examples header label { display: grid; gap: 6px; color: var(--so-muted); font-size: 11px; flex: 0 0 230px; }
#soExampleSearch { width: 100%; min-height: 40px; padding: 8px 12px; font: 14px 'Barlow', sans-serif; color: var(--so-text); background: var(--so-base); border: 1px solid var(--so-line); border-radius: 4px; }
.so-example-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.so-example-card { min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 10px; border: 1px solid var(--so-line); border-radius: 6px; background: var(--so-surface); }
.so-example-card > img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; image-rendering: pixelated; border-radius: 3px; }
#soHome .so-example-card h3 { margin: 0; font: 500 16px/1.25 'Chivo', sans-serif; color: var(--so-text); letter-spacing: -.025em; }
.so-example-meta { color: var(--so-muted); font-size: 9px; }
.so-example-card details { font-size: 12px; color: var(--so-muted); }
.so-example-card summary { cursor: pointer; min-height: 24px; }
.so-example-card ol { padding-left: 16px; line-height: 1.6; }
.so-example-controls { display: flex; gap: 6px; margin-top: auto; }
#soHome .so-example-controls button { min-height: 34px; padding: 5px 8px; font-size: 11px; flex: 1; }
#soHome .so-example-controls button:last-child { color: var(--so-accent); }
.sd-workflow-title { font-size: 12px; color: var(--so-text); font-weight: 500; }
.so-studio-showcase { padding: 40px 0; border-top: 1px solid var(--so-line); text-align: center; }
.so-studio-showcase header { display: grid; justify-items: center; }
.so-studio-shots { display: grid; grid-template-columns: minmax(0, 3fr) minmax(160px, 1fr); gap: 20px; align-items: center; margin: 28px 0 22px; }
.so-studio-shots figure { margin: 0; min-width: 0; }
.so-studio-shots img { width: 100%; height: auto; display: block; border: 1px solid var(--so-line); border-radius: 7px; }
.so-studio-shots figure:last-child img { max-height: 520px; width: auto; max-width: 100%; margin: auto; }
.so-studio-shots figcaption { padding-top: 10px; color: var(--so-muted); font-size: 11px; }
.so-codex-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .5fr); gap: 30px; align-items: center; border-top: 1px solid var(--so-line); padding: 40px 0; }
.so-codex-section > div:last-child { display: grid; gap: 14px; }
#soHome .so-codex-section a { color: var(--so-accent); font-size: 14px; }
#soPricing { border-top: 1px solid var(--so-line); padding: 38px 0; }
#soHome .so-billing h2 { font-size: clamp(24px, 2.4vw, 32px); }
@media (max-width: 1100px) {
  .so-example-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .so-studio-shots { grid-template-columns: minmax(0, 2.5fr) minmax(130px, 1fr); }
}

/* Export is a bounded dialog, not a section below the canvas. */
#animatorStudio .so-export-scrim { position: fixed; inset: 0; z-index: 199; background: #050907a8; }
#animatorStudio .so-export-panel { position: fixed; z-index: 200; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(600px, calc(100vw - 24px)); max-height: min(700px, calc(100dvh - 32px)); display: flex; flex-direction: column; gap: 0; overflow: hidden; border: 1px solid var(--so-line); border-radius: 10px; padding: 0; box-shadow: 0 20px 64px #0008; }
#animatorStudio .so-export-panel > header { flex: none; padding: 16px 18px; border-bottom: 1px solid var(--so-line); }
#animatorStudio .so-export-panel h3 { font-size: 18px; }
#animatorStudio .so-export-body { min-height: 0; overflow: auto; padding: 16px 18px; display: grid; gap: 14px; }
#animatorStudio .so-export-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#animatorStudio .so-export-settings label:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
#animatorStudio #soExportMessage { padding: 0 18px 10px; min-height: 16px; flex: none; }
#animatorStudio .so-export-actions { flex: none; padding: 12px 18px; border-top: 1px solid var(--so-line); background: var(--so-surface); }
#animatorStudio #soExportPreview { width: 80px; height: 64px; }

/* Source editing is viewport-bound inside the board; only properties scroll. */
#studioWorkspace .sb-editor-mount { overflow: hidden; }
#studioWorkspace .sb-editor-mount > #animatorStudio { height: 100% !important; min-height: 0 !important; }
.sb-editor-mount #animatorStudio .so-editor { display: flex; flex-direction: column; height: 100%; min-height: 0; border: 0; border-radius: 0; overflow: hidden; }
.sb-editor-mount #animatorStudio :is(.so-heading, .so-taskbar, .so-timeline-section, .so-statusbar) { flex: none; }
.sb-editor-mount #animatorStudio .so-heading { padding: 8px 16px; }
.sb-editor-mount #animatorStudio .so-heading .so-kicker { display: none; }
.sb-editor-mount #animatorStudio #soName { font-size: 17px; }
.sb-editor-mount #animatorStudio .so-taskbar { padding-inline: 16px; }
.sb-editor-mount #animatorStudio .so-modes button { min-height: 38px; }
.sb-editor-mount #animatorStudio .so-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 274px; flex: 1; min-height: 0; overflow: hidden; }
.sb-editor-mount #animatorStudio .so-surface { min-height: 0; overflow: hidden; }
.sb-editor-mount #animatorStudio .so-viewbar { flex: none; min-height: 38px; padding: 5px 12px; }
.sb-editor-mount #animatorStudio .so-stage { flex: 1; height: auto; min-height: 60px; }
.sb-editor-mount #animatorStudio .so-inspector { min-height: 0; height: 100%; overflow: auto; padding: 14px; }
.sb-editor-mount #animatorStudio .so-inspector-title { gap: 6px; }
.sb-editor-mount #animatorStudio .so-inspector-title > span { display: none; }
.sb-editor-mount #animatorStudio .so-inspector-title h3 { font-size: 16px; }
.sb-editor-mount #animatorStudio .so-transport { flex: none; padding: 6px 12px; }
.sb-editor-mount #animatorStudio .so-timeline-section { padding: 6px 12px; max-height: 142px; overflow: auto; }
.sb-editor-mount #animatorStudio .so-timeline-heading { margin-bottom: 4px; gap: 6px; }
.sb-editor-mount #animatorStudio .so-frame { flex-basis: 58px; min-width: 58px; width: 58px; padding: 2px; }
.sb-editor-mount #animatorStudio .so-frame canvas { width: 46px; height: 40px; }
.sb-editor-mount #animatorStudio .so-timeline { padding-bottom: 4px; }
.sb-editor-mount #animatorStudio .so-takes-section { flex: 0 1 150px; min-height: 90px; overflow: auto; padding: 8px 12px; }
.sb-editor-mount #animatorStudio .so-statusbar { padding: 4px 12px; }
.sb-editor-mount #animatorStudio .so-statusbar p { font-size: 10px; }
@media (max-width: 760px) {
  .sb-editor-mount #animatorStudio .so-workspace { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(170px, 1fr) minmax(110px, .55fr); }
  .sb-editor-mount #animatorStudio .so-inspector { border-left: 0; border-top: 1px solid var(--so-line); }
  .sb-editor-mount #animatorStudio .so-heading { padding: 6px 10px; }
  .sb-editor-mount #animatorStudio .so-timeline-section { max-height: 140px; padding: 4px 8px; }
  .sb-editor-mount #animatorStudio .so-frame-actions { flex-wrap: nowrap; }
  .sb-editor-mount #animatorStudio .so-frame-actions button { padding: 4px 6px; font-size: 11px; }
  .sb-editor-mount #animatorStudio .so-frame-actions input { width: 42px; }
  .sb-editor-mount #animatorStudio .so-timeline-heading > div:first-child { display: none; }
  .sb-editor-mount #animatorStudio .so-transport .so-speed { font-size: 11px; }
  #animatorStudio .so-export-panel { max-height: calc(100dvh - 16px); }
  #animatorStudio .so-export-panel > header { padding: 10px 12px; }
  #animatorStudio .so-export-body { padding: 12px; }
  #animatorStudio .so-export-actions { padding: 10px 12px; }
}

.so-example-filters { display: grid; gap: 10px; min-width: 220px; }
.so-example-filters select { width: 100%; min-height: 36px; padding: 6px 10px; border: 1px solid var(--so-line); border-radius: 4px; color: var(--so-text); background: var(--so-base); font: 14px 'Barlow', sans-serif; }
.tp-kind { color: var(--so-muted); font-size: 10px; white-space: nowrap; }
#soHomeDemo[data-preview-kind="storyboard"] .sd-frames canvas, #soHomeDemo[data-preview-kind="loop"] .sd-frames canvas { width: 72px; height: 41px; }
#soHomeDemo[data-preview-kind] .sd-frames button { flex-basis: 80px; }
@media (max-width: 700px) { .so-example-filters { grid-template-columns: 1fr 1fr; min-width: 0; } }
@media (max-width: 700px) {
  body[data-active-tab="landing"] .workspace { padding: 0 16px 24px; }
  .so-site-nav { gap: 12px; min-height: 74px; margin-bottom: 0; }
  .so-site-nav nav { display: none; }
  #soHome .so-home-lead { padding-top: 24px; }
  #soHome .so-home-copy h1 { font-size: 32px; }
  .so-examples > header { flex-direction: column; align-items: stretch; gap: 16px; }
  .so-examples header label { flex-basis: auto; }
  .so-example-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .so-example-card { padding: 8px; gap: 8px; }
  #soHome .so-example-card h3 { font-size: 14px; }
  .so-example-controls { flex-direction: column; }
  #soHome .so-example-controls button { min-height: 40px; font-size: 12px; }
  .so-studio-shots { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .so-studio-shots figure:last-child img { max-height: 440px; }
  .so-codex-section { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
