.animation-page {
  --bg: #ffffff;
  --panel: #ffffff;
  --panel2: #f9f9f9;
  --line: #e7e5e2;
  --text: #20201f;
  --muted: #75716c;
  --accent: #bd5704;
  --accent-bright: #f97316;
  --accent-soft: #fff3e8;
  --green: #198362;
  --red: #dc4040;
  color-scheme: light;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.animation-page *,
.animation-page *::before,
.animation-page *::after {
  box-sizing: border-box;
}

.animation-page [hidden] {
  display: none !important;
}

.animation-page a {
  color: inherit;
  text-decoration: none;
}

.animation-page button,
.animation-page input,
.animation-page select,
.animation-page textarea {
  font: inherit;
}

.animation-page button,
.animation-page a,
.animation-page input,
.animation-page textarea,
.animation-page select,
.animation-page summary {
  -webkit-tap-highlight-color: transparent;
}

.animation-page button {
  cursor: pointer;
}

.animation-page button,
.animation-page a,
.animation-page input,
.animation-page textarea,
.animation-page select {
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

.animation-page :focus-visible {
  outline: 3px solid #f3a970;
  outline-offset: 4px;
}

.animation-page button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.animation-page .icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.animation-page i {
  font-size: 15px;
}

.animation-page .icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.animation-page .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.animation-page .skip-link {
  position: fixed;
  top: -60px;
  left: 90px;
  padding: 10px 18px;
  z-index: 100;
  background: white;
  border: 1px solid var(--accent);
  border-radius: 8px;
}

.animation-page .skip-link:focus {
  top: 10px;
}

/* Quiet navigation, with the same warm accents as Mathix's video page. */
.animation-page .side-rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 76px;
  background: #f9f9f9;
  border-right: 1px solid #eeedeb;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 23px 9px;
  z-index: 20;
}

.animation-page .rail-logo {
  display: flex;
  padding: 1px;
}

.animation-page .rail-logo img {
  display: block;
  border-radius: 9px;
}

.animation-page .rail-links {
  display: flex;
  flex-direction: column;
  gap: 13px;
  width: 100%;
  margin-top: 49px;
}

.animation-page .rail-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 58px;
  border-radius: 12px;
  color: #81766c;
  font-size: 10px;
  font-weight: 550;
}

.animation-page .rail-link .icon {
  width: 21px;
  height: 21px;
}

.animation-page .rail-link:hover {
  color: var(--accent);
  background: #f2eeea;
}

.animation-page .rail-link.is-active {
  color: #a64b05;
  background: #ffead8;
}

.animation-page .rail-bottom {
  margin-top: auto;
  width: 32px;
  height: 32px;
  /* border: 1px solid #e8e2dc;
  border-radius: 50%; */
  display: grid;
  place-items: center;
  color: #aa9a8c;
  font-weight: 700;
  font-size: 15px;
}

.animation-page .app-shell {
  margin-left: 76px;
}

.animation-page .topbar {
  min-height: 78px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid #efeeec;
}

.animation-page .brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.animation-page .wordmark {
  color: #111;
  font-size: 26px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: -.9px;
}

.animation-page .mobile-logo {
  display: none;
  border-radius: 7px;
}

.animation-page .header-divider {
  width: 1px;
  height: 19px;
  background: var(--line);
}

.animation-page .product-name {
  color: #7b7772;
  font-size: 13px;
}

.animation-page .back-to-video {
  margin-left: auto;
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
  color: #625e59;
}

.animation-page .back-to-video .icon {
  width: 15px;
  height: 15px;
}

.animation-page .back-to-video:hover {
  color: var(--accent);
}

.animation-page .page {
  max-width: 1440px;
  margin: auto;
  padding: 36px 40px 20px;
}

.animation-page .page-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 30px;
}

.animation-page .eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8a7563;
  letter-spacing: 1.35px;
  font-size: 9px;
  font-weight: 650;
  margin-bottom: 10px;
}

/* .animation-page .eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-bright);
} */

.animation-page h1 {
  margin: 0;
  font-size: clamp(30px, 3vw, 43px);
  font-weight: 620;
  letter-spacing: -1.7px;
  line-height: 1.18;
}

.animation-page h1 span {
  color: var(--accent);
}

.animation-page .page-intro p {
  color: var(--muted);
  margin: 11px 0 0;
  font-size: 13px;
}

.animation-page .status-pill {
  max-width: 250px;
  flex-shrink: 0;
  font-size: 11px;
  line-height: 1.5;
  padding: 6px 10px;
  border: 1px solid #e8e6e3;
  border-radius: 7px;
  background: #fcfbfa;
  color: #77716b;
  overflow-wrap: anywhere;
  margin-bottom: 1px;
}

.animation-page .workspace {
  display: grid;
  grid-template-columns: minmax(340px, 390px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.animation-page .workspace:focus {
  outline: none;
}

.animation-page .card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 3px 12px rgba(50, 36, 20, .025);
  min-width: 0;
}

.animation-page .composer {
  padding: 23px;
}

.animation-page .section-heading,
.animation-page .preview-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.animation-page h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -.15px;
}

.animation-page .section-number {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  /* border: 1px solid #efe4da; */
  border-radius: 7px;
  color: #b17745;
  /* background: #fcf8f4; */
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.animation-page .field-label {
  display: block;
  color: #514d48;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.animation-page .field-label span {
  font-size: 10px;
  font-weight: 400;
  color: #938c85;
  margin-left: 4px;
}

.animation-page .prompt-label {
  margin-top: 23px;
}

.animation-page .prompt-box {
  border: 1px solid #dfd9d2;
  background: #fff;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(46, 30, 10, .025);
}

.animation-page .prompt-box:focus-within {
  border-color: #d9945f;
  box-shadow: 0 0 0 3px #fdf0e5;
}

.animation-page textarea,
.animation-page input[type="text"],
.animation-page select {
  width: 100%;
  min-width: 0;
  border: 1px solid #e5e1dc;
  border-radius: 9px;
  background: #fff;
  color: #34312d;
  padding: 10px 11px;
  outline: none;
}

.animation-page textarea::placeholder,
.animation-page input::placeholder {
  color: #8c8680;
  opacity: 1;
}

.animation-page textarea:focus,
.animation-page input[type="text"]:focus,
.animation-page select:focus {
  border-color: #ce8b53;
  box-shadow: 0 0 0 3px #fff1e5;
}

.animation-page #prompt {
  display: block;
  min-height: 138px;
  padding: 13px 13px 6px;
  resize: vertical;
  font-size: 13px;
  line-height: 1.7;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.animation-page .prompt-footer {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 11px 11px;
  color: #989088;
  font-size: 9px;
}

.animation-page .prompt-footer .icon {
  width: 12px;
  height: 12px;
  color: #b78c66;
}

.animation-page kbd {
  font: inherit;
  margin-left: auto;
  font-size: 8px;
  color: #9c958d;
  white-space: nowrap;
}

.animation-page .inspiration {
  margin: 12px 0 19px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.animation-page .inspiration>span {
  width: 100%;
  color: #92897f;
  font-size: 20px;
  margin-bottom: 2px;
}

.animation-page .idea-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 8px;
  border: 1px solid #ede5dd;
  background: #fdfbf8;
  color: #80664f;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 400;
  min-height: 29px;
}

.animation-page .idea-chip:hover {
  background: #fff0e2;
  border-color: #e4bf9c;
}

.animation-page .idea-chip span {
  color: #b28e70;
}

.animation-page .options-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.animation-page .field {
  min-width: 0;
}

.animation-page input[type="text"],
.animation-page select {
  min-height: 42px;
  font-size: 11px;
}

.animation-page .select-wrap {
  position: relative;
}

.animation-page select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 30px;
  cursor: pointer;
}

.animation-page .select-chevron {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 13px;
  height: 13px;
  pointer-events: none;
  color: #877e74;
}

.animation-page .narration-settings {
  margin-top: 13px;
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 12px;
  align-items: center;
}

.animation-page .tts-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 43px;
  padding: 8px 10px;
  border: 1px solid #e5e1dc;
  border-radius: 9px;
  cursor: pointer;
}

.animation-page .voice-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #655c53;
}

.animation-page .voice-label .icon {
  width: 15px;
  height: 15px;
  color: #a38870;
}

.animation-page .switch {
  display: inline-flex;
  position: relative;
  width: 30px;
  height: 18px;
  flex-shrink: 0;
}

.animation-page .switch input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 1;
}

.animation-page .switch-track {
  width: 30px;
  height: 18px;
  border-radius: 20px;
  background: #d1ccc6;
  transition: background 150ms ease;
}

.animation-page .switch-track::after {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  margin: 3px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 2px #0002;
  transition: transform 150ms ease;
}

.animation-page .switch input:checked+.switch-track {
  background: var(--accent);
}

.animation-page .switch input:checked+.switch-track::after {
  transform: translateX(12px);
}

.animation-page .switch input:focus-visible+.switch-track {
  outline: 3px solid #f3a970;
  outline-offset: 3px;
}

.animation-page select:disabled {
  background: #f7f6f4;
  color: #a7a19a;
  cursor: not-allowed;
}

.animation-page .notes-panel {
  margin-top: 14px;
}

.animation-page .notes-panel>summary {
  padding: 7px 0;
  color: #6e6256;
  font-size: 11px;
  font-weight: 550;
}

.animation-page .notes-panel small {
  color: #a09285;
  font-size: 10px;
  font-weight: 400;
}

.animation-page .notes-panel>summary>.icon {
  width: 13px;
  height: 13px;
}

.animation-page .notes-panel[open]>summary>.icon {
  transform: rotate(180deg);
}

.animation-page .notes-panel .notes {
  margin-top: 7px;
}

.animation-page .notes {
  display: block;
  min-height: 67px;
  resize: vertical;
  font-size: 11px;
  line-height: 1.6;
  background: #fdfcfb;
}

.animation-page .actions {
  margin-top: 18px;
}

.animation-page .actions button,
.animation-page .mini-head button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #e4ded7;
  border-radius: 9px;
  min-height: 38px;
  padding: 8px 10px;
  background: white;
  color: #6d645b;
  font-size: 11px;
  font-weight: 550;
}

.animation-page .actions button:hover:not(:disabled),
.animation-page .mini-head button:hover:not(:disabled) {
  background: #fcf6ef;
  border-color: #d9b89b;
  color: #a54b05;
}

.animation-page .actions .primary {
  display: flex;
  gap: 8px;
  width: 100%;
  min-height: 45px;
  padding: 11px 15px;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-size: 18px;
  box-shadow: 0 3px 6px #bd570416;
}

.animation-page .actions .primary:hover:not(:disabled) {
  background: #a74b00;
  border-color: #a74b00;
  color: #fff;
}

.animation-page .primary>.icon {
  width: 16px;
  height: 16px;
}

.animation-page .action-arrow {
  margin-left: auto;
}

.animation-page .secondary-actions {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 7px;
  margin-top: 9px;
}

.animation-page .secondary-actions .icon {
  width: 13px;
  height: 13px;
}

.animation-page .record-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e06b4e;
  box-shadow: 0 0 0 2px #fcede7;
  margin-right: 2px;
}

/* Only the empty preview gets decorative styling. The frame stays untouched. */
.animation-page .preview-column {
  min-width: 0;
}

.animation-page .preview-card {
  overflow: hidden;
}

.animation-page .card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 70px;
  padding: 19px 21px;
  border-bottom: 1px solid #efede9;
}

.animation-page #previewStatus {
  color: #8b837a;
  background: #f5f3f0;
  border-radius: 5px;
  font-size: 9px;
  padding: 3px 7px;
  overflow-wrap: anywhere;
  max-width: 210px;
}

.animation-page .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  flex-shrink: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8f857b;
}

.animation-page .icon-button:hover {
  background: #f7f1eb;
  color: var(--accent);
}

.animation-page .icon-button .icon {
  width: 16px;
  height: 16px;
}

.animation-page .preview-stage {
  padding: 16px;
  background: #fcfbf9;
}

.animation-page .preview-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: auto;
  border: 1px solid #eee8e0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  isolation: isolate;
}

.animation-page .preview-wrap.ratio-16-9 {
  aspect-ratio: 16 / 9;
}

.animation-page .preview-wrap.ratio-9-16 {
  aspect-ratio: 9 / 16;
  max-width: 360px;
}

.animation-page .preview-wrap.ratio-1-1 {
  aspect-ratio: 1 / 1;
  max-width: 620px;
}

.animation-page .preview-wrap.ratio-4-3 {
  aspect-ratio: 4 / 3;
  max-width: 820px;
}

.animation-page #frame {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: block;
  border: 0;
  background: white;
}

.animation-page .preview-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
  pointer-events: none;
  background-color: #fdfcf9;
  background-image: radial-gradient(#dcd3c6 0.65px, transparent .65px);
  background-size: 19px 19px;
  text-align: center;
}

.animation-page .scene-art {
  width: clamp(90px, 12vw, 175px);
  margin: -7px 0 10px;
}

.animation-page .scene-art svg {
  display: block;
  width: 100%;
  height: auto;
}

.animation-page .preview-empty h3 {
  font-size: 16px;
  font-weight: 570;
  letter-spacing: -.25px;
  color: #65503d;
  margin: 0 0 8px;
}

.animation-page .preview-empty p {
  font-size: 11px;
  line-height: 1.7;
  color: #9b8b7b;
  margin: 0;
}

.animation-page .preview-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: #ae957f;
  padding: 5px 9px;
  border: 1px solid #eee1d4;
  background: #fffdf9;
  border-radius: 5px;
  margin-top: 17px;
}

.animation-page .preview-hint .icon {
  width: 10px;
  height: 10px;
}

.animation-page .preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 21px;
  border-top: 1px solid #efede9;
  min-height: 48px;
}

.animation-page .auto-fix {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-size: 10px;
  color: #8a7a6b;
  cursor: pointer;
}

.animation-page .auto-fix input {
  accent-color: var(--accent);
  width: 12px;
  height: 12px;
  margin: 0;
}

.animation-page .format-label {
  color: #958779;
  font-size: 9px;
  padding: 2px 6px;
  border: 1px solid #ece6df;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
}

.animation-page #narrationPlayer {
  display: block;
  width: calc(100% - 32px);
  margin: 0 16px 16px;
  height: 38px;
}

.animation-page .creative-note {
  display: flex;
  gap: 11px;
  padding: 19px 18px;
  margin-top: 17px;
  border: 1px solid #ede6dd;
  border-radius: 11px;
  background: #fdfaf5;
}

.animation-page .note-icon {
  color: #be8b53;
  padding-top: 1px;
}

.animation-page .note-icon .icon {
  width: 17px;
  height: 17px;
}

.animation-page .creative-note strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #786146;
}

.animation-page .creative-note p {
  font-size: 11px;
  line-height: 1.65;
  color: #9b8976;
  margin: 6px 0 0;
  max-width: 530px;
}

.animation-page .workflow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 24px 8px;
  color: #988c80;
  font-size: 20px;
}

.animation-page .workflow>span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.animation-page .workflow b {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  font-weight: 450;
  color: #ab917a;
  /* background: #f8f5f1; */
  /* border: 1px solid #eee7df; */
  /* border-radius: 50%; */
}



.animation-page .workflow>.icon {
  width: 13px;
  height: 13px;
  color: #d2c5b8;
}

.animation-page .preview-wrap:fullscreen {
  max-width: none;
  width: 100vw;
  height: 100vh;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.animation-page .advanced {
  grid-column: 1 / -1;
  box-shadow: none;
  border-radius: 11px;
}

.animation-page summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 19px;
  cursor: pointer;
  list-style: none;
  color: #756b61;
  font-size: 11px;
}

.animation-page summary::-webkit-details-marker {
  display: none;
}

.animation-page summary>span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.animation-page summary .icon {
  width: 15px;
  height: 15px;
  color: #ab9784;
}

.animation-page .advanced-hint {
  color: #a99b8f;
  font-size: 10px;
}

.animation-page .advanced-hint .icon {
  width: 13px;
  height: 13px;
  transition: transform 150ms ease;
}

.animation-page details[open] .advanced-hint .icon {
  transform: rotate(180deg);
}

.animation-page .advanced-grid {
  padding: 2px 19px 19px;
  display: grid;
  /* grid-template-columns: 1.4fr 1fr; */
  gap: 15px;
}

.animation-page .advanced-grid>div {
  min-width: 0;
}

.animation-page .mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  margin-bottom: 8px;
  font-size: 11px;
  color: #76675a;
}

.animation-page .mini-head label,
.animation-page .mini-head strong {
  font-weight: 550;
}

.animation-page .mini-head button {
  min-height: 29px;
  padding: 4px 9px;
  font-size: 10px;
}

.animation-page .mini-head button .icon {
  width: 12px;
  height: 12px;
}

.animation-page .advanced textarea,
.animation-page .advanced pre {
  width: 100%;
  min-height: 320px;
  margin: 0;
  padding: 14px;
  border: 1px solid #e8e1d9;
  border-radius: 9px;
  background: #fcfbf9;
  color: #615344;
  font-size: 11px;
  line-height: 1.7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  tab-size: 2;
}

.animation-page .advanced textarea {
  resize: vertical;
  white-space: pre;
}

.animation-page .advanced pre {
  max-height: 520px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.animation-page .advanced pre:empty::before {
  content: "No errors to show.";
  color: #aaa097;
}

.animation-page .page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 21px 1px 0;
  color: #a19488;
  font-size: 10px;
}

.animation-page .page-footer nav {
  display: flex;
  gap: 19px;
}

.animation-page .page-footer a:hover {
  color: var(--accent);
}

@media (min-width: 1550px) {
  .animation-page .page {
    padding-top: 45px;
  }

  .animation-page .workspace {
    grid-template-columns: 410px minmax(0, 1fr);
    gap: 26px;
  }

  .animation-page .composer {
    padding: 25px;
  }

  .animation-page #prompt {
    min-height: 159px;
  }
}

@media (max-width: 1150px) {
  .animation-page .page {
    padding: 29px 24px 20px;
  }

  .animation-page .topbar {
    padding: 0 24px;
  }

  .animation-page .workspace {
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 17px;
  }

  .animation-page .composer {
    padding: 19px;
  }

  .animation-page .card-head {
    padding: 17px;
  }

  .animation-page .scene-art {
    width: 105px;
    margin-bottom: 4px;
  }

  .animation-page .preview-empty h3 {
    font-size: 13px;
  }

  .animation-page .preview-hint {
    margin-top: 10px;
  }

  .animation-page .workflow {
    gap: 8px;
    font-size: 9px;
  }

  .animation-page .workflow>span {
    gap: 4px;
  }
}

@media (max-width: 980px) and (min-width: 821px) {
  .animation-page .preview-empty p {
    display: none;
  }

  .animation-page .scene-art {
    width: 94px;
  }

  .animation-page .preview-hint {
    margin-top: 7px;
  }

  .animation-page .workflow {
    flex-wrap: wrap;
  }
}

@media (max-width: 820px) {
  .animation-page .workspace {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .animation-page .page {
    max-width: 750px;
  }

  .animation-page .page-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 23px;
  }

  .animation-page .composer {
    padding: 23px;
  }

  .animation-page .scene-art {
    width: 150px;
    margin-bottom: 9px;
  }

  .animation-page .preview-empty h3 {
    font-size: 17px;
  }

  .animation-page .preview-empty p {
    font-size: 12px;
  }

  .animation-page .preview-hint {
    margin-top: 15px;
  }

  .animation-page .advanced-grid {
    grid-template-columns: 1fr;
  }

  .animation-page .workflow {
    padding: 20px 8px 0;
    font-size: 10px;
    gap: 14px;
  }
}

@media (max-width: 600px) {
  .animation-page .side-rail {
    position: static;
    width: 100%;
    padding: 8px 18px;
    border: 0;
    border-bottom: 1px solid #eeedeb;
    background: #fff;
  }

  .animation-page .rail-logo,
  .animation-page .rail-bottom {
    display: none;
  }

  .animation-page .rail-links {
    margin: 0;
    flex-direction: row;
    gap: 8px;
    justify-content: center;
  }

  .animation-page .rail-link {
    min-height: 42px;
    padding: 8px 9px;
    flex-direction: row;
    gap: 7px;
    font-size: 11px;
    flex: 1;
    border-radius: 8px;
  }

  .animation-page .rail-link .icon {
    width: 17px;
    height: 17px;
  }

  .animation-page .app-shell {
    margin-left: 0;
  }

  .animation-page .topbar {
    min-height: 66px;
    padding: 0 19px;
    gap: 12px;
  }

  .animation-page .mobile-logo {
    display: block;
  }

  .animation-page .wordmark {
    font-size: 25px;
  }

  .animation-page .product-name {
    font-size: 11px;
  }

  .animation-page .back-to-video {
    display: none;
  }

  .animation-page .page {
    padding: 26px 17px 22px;
  }

  .animation-page .eyebrow {
    font-size: 8px;
    letter-spacing: .8px;
  }

  .animation-page h1 {
    font-size: 34px;
    letter-spacing: -1.3px;
  }

  .animation-page .page-intro p {
    font-size: 12px;
    max-width: 300px;
    line-height: 1.7;
  }

  .animation-page .status-pill {
    font-size: 10px;
    padding: 5px 8px;
  }

  .animation-page .composer {
    padding: 19px;
  }

  .animation-page h2 {
    font-size: 14px;
  }

  .animation-page .field-label {
    font-size: 12px;
  }

  .animation-page #prompt,
  .animation-page .notes,
  .animation-page input[type="text"],
  .animation-page select {
    font-size: 16px;
  }

  .animation-page #prompt {
    min-height: 160px;
  }

  .animation-page input[type="text"],
  .animation-page select {
    min-height: 46px;
  }

  .animation-page #aspect {
    padding-left: 8px;
    padding-right: 24px;
    font-size: 16px;
  }

  .animation-page .options-row {
    gap: 9px;
  }

  .animation-page .tts-toggle {
    min-height: 46px;
  }

  .animation-page .voice-label {
    font-size: 12px;
  }

  .animation-page .idea-chip {
    min-height: 36px;
    padding: 6px 9px;
    font-size: 11px;
  }

  .animation-page .prompt-footer {
    font-size: 9px;
  }

  .animation-page kbd {
    display: none;
  }

  .animation-page .notes {
    min-height: 84px;
  }

  .animation-page .actions .primary {
    min-height: 49px;
    font-size: 13px;
  }

  .animation-page .secondary-actions button {
    min-height: 43px;
    font-size: 12px;
  }

  .animation-page .card-head {
    padding: 15px;
    min-height: 62px;
  }

  .animation-page #previewStatus {
    max-width: 120px;
  }

  .animation-page .preview-stage {
    padding: 10px;
  }

  .animation-page .scene-art {
    width: 87px;
    margin: -5px 0 4px;
  }

  .animation-page .preview-empty {
    padding: 10px;
  }

  .animation-page .preview-empty h3 {
    font-size: 13px;
    margin-bottom: 4px;
  }

  .animation-page .preview-empty p {
    font-size: 10px;
    line-height: 1.6;
  }

  .animation-page .preview-hint {
    display: none;
  }

  .animation-page .preview-toolbar {
    padding: 14px;
  }

  .animation-page .auto-fix {
    font-size: 11px;
  }

  .animation-page .auto-fix input {
    width: 15px;
    height: 15px;
  }

  .animation-page .creative-note {
    padding: 16px;
  }

  .animation-page .creative-note p {
    font-size: 12px;
  }

  .animation-page .workflow {
    gap: 10px;
    font-size: 10px;
  }

  .animation-page .workflow>.icon {
    width: 10px;
  }

  .animation-page .advanced-hint {
    font-size: 0;
  }

  .animation-page .advanced textarea {
    font-size: 16px;
  }

  .animation-page .mini-head button {
    min-height: 38px;
    padding: 7px 10px;
  }

  .animation-page .page-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    font-size: 10px;
  }

  .animation-page .page-footer nav {
    gap: 17px;
    flex-wrap: wrap;
  }

  .animation-page .skip-link {
    left: 20px;
  }
}

@media (max-width: 370px) {
  .animation-page .rail-link {
    padding: 7px;
    font-size: 10px;
    gap: 5px;
  }

  .animation-page .rail-links {
    gap: 3px;
  }

  .animation-page .topbar {
    gap: 9px;
  }

  .animation-page .product-name {
    font-size: 10px;
  }

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

  .animation-page .composer {
    padding: 16px;
  }

  .animation-page .options-row {
    grid-template-columns: 1fr;
  }

  .animation-page .workflow {
    flex-wrap: wrap;
    gap: 7px;
  }

  .animation-page .preview-empty p {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  .animation-page *,
  .animation-page *::before,
  .animation-page *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}