:root {
  --tb-bg: #f4f6f5;
  --tb-surface: #ffffff;
  --tb-surface-2: #edf1ee;
  --tb-ink: #202923;
  --tb-muted: #616b64;
  --tb-accent: #245c40;
  --tb-on-accent: #ffffff;
  --tb-border: #dfe5e0;
  --radius: 8px;
  --font-body: 'Be Vietnam Pro', sans-serif;
  --font-display: 'Manrope', 'Be Vietnam Pro', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--tb-bg); color: var(--tb-ink); font-family: var(--font-body); font-size: 13px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
button, textarea, select, input { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
button, a { transition: transform .18s ease, background-color .18s ease, border-color .18s ease, opacity .18s ease; }
button:hover, .button:hover { transform: translateY(-2px); }
button:active, .button:active { transform: scale(.96); }
button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #8bb89a; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; letter-spacing: 0; }
img { display: block; width: 100%; object-fit: cover; }
svg { width: 18px; height: 18px; flex-shrink: 0; stroke-width: 1.75; }
[hidden] { display: none !important; }
.sidebar { width: 225px; position: fixed; inset: 0 auto 0 0; background: #fff; border-right: 1px solid var(--tb-border); padding: 32px 18px 18px; display: flex; flex-direction: column; z-index: 20; }
.brand { display: inline-flex; align-items: center; font: 800 23px var(--font-display); padding: 0 10px; gap: 0; }
.brand-number { color: var(--tb-accent); }
.brand-icon { width: 31px; height: 33px; background: var(--tb-accent); color: white; margin-right: 10px; display: inline-flex; justify-content: center; align-items: center; border-radius: 5px; font-size: 24px; position: relative; }
.brand-icon span { position: absolute; width: 8px; height: 8px; background: #b7dd8f; right: -3px; bottom: -3px; border: 2px solid #fff; border-radius: 2px; }
.workspace-label { color: #707a72; font-size: 9px; font-weight: 600; line-height: 1.5; margin: 45px 12px 13px; }
nav { display: grid; gap: 6px; }
.nav-item { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 12px; border: 0; background: transparent; border-radius: 6px; text-align: left; width: 100%; color: var(--tb-muted); font-size: 12px; white-space: nowrap; }
.nav-item.is-active { background: #e9f1eb; color: #22583b; font-weight: 600; }
.nav-item span:last-child { margin-left: auto; }
.new-badge { font-size: 8px; padding: 2px 5px; background: #d6e7da; border-radius: 3px; color: #24563a; line-height: 1.5; }
#project-count { color: #657168; font-variant-numeric: tabular-nums; }
.sidebar-guide { margin: auto 10px 35px; padding-top: 60px; }
.sidebar-guide > svg { color: var(--tb-accent); width: 30px; height: 30px; margin-bottom: 14px; }
.sidebar-guide strong { display: block; font: 700 19px/1.5 var(--font-display); }
.sidebar-guide p { font-size: 11px; color: var(--tb-muted); margin: 10px 0; }
.text-button { background: transparent; border: 0; padding: 0; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--tb-accent); font-size: 11px; font-weight: 600; white-space: nowrap; }
.text-button svg { width: 14px; }
.sidebar-bottom { border-top: 1px solid var(--tb-border); padding-top: 19px; display: flex; align-items: center; gap: 6px; font-size: 9px; color: var(--tb-muted); }
.sidebar-bottom a { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; min-width: 30px; min-height: 44px; }
.local-dot { width: 5px; height: 5px; border-radius: 50%; background: #3c8955; }
.app-shell { margin-left: 225px; }
.topbar { height: 73px; background: #ffffffb3; border-bottom: 1px solid var(--tb-border); display: flex; align-items: center; justify-content: space-between; padding: 0 38px; gap: 16px; }
.breadcrumb { display: flex; align-items: center; gap: 14px; color: var(--tb-muted); font-size: 11px; }
.breadcrumb svg { width: 12px; color: #929a94; }
.breadcrumb strong { color: #354039; font-weight: 500; }
.topbar-actions { display: flex; align-items: center; gap: 20px; }
.prototype-label { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: var(--tb-muted); }
.prototype-label > span { width: 6px; height: 6px; border-radius: 50%; background: #d19836; }
.avatar { width: 34px; height: 34px; border: 1px solid #d4dfd6; background: #e6eee8; border-radius: 50%; color: var(--tb-accent); font-size: 12px; font-weight: 600; }
main { max-width: 1500px; padding: 33px 38px 0; margin: auto; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 29px; }
.heading-kicker { display: flex; align-items: center; gap: 7px; font-size: 9px; font-weight: 600; color: var(--tb-accent); line-height: 1.5; margin-bottom: 9px; }
.heading-kicker > span { width: 5px; height: 5px; background: var(--tb-accent); }
h1 { font-size: 31px; font-weight: 800; line-height: 1.4; }
h1 > span { color: var(--tb-accent); }
.page-heading p { font-size: 11px; color: var(--tb-muted); margin-top: 7px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 17px; font-size: 11px; font-weight: 600; border-radius: 6px; border: 1px solid transparent; white-space: nowrap; }
.button svg { width: 16px; }
.button-white { background: #fff; border-color: var(--tb-border); }
.button-primary { background: var(--tb-accent); color: var(--tb-on-accent); }
.button-primary:hover { background: #1c4b33; }
.studio-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.editor-column, .preview-column { min-width: 0; }
.editor-panel, .settings-panel, .storyboard-panel { background: var(--tb-surface); border: 1px solid var(--tb-border); border-radius: var(--radius); padding: 23px; margin-bottom: 19px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 21px; }
.section-heading h2 { font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.step-number { font: 700 10px var(--font-display); border: 1px solid var(--tb-border); background: #f7f9f7; border-radius: 4px; width: 25px; height: 25px; display: inline-flex; align-items: center; justify-content: center; color: #65746a; font-variant-numeric: tabular-nums; }
.small-label { font-size: 8px; color: #727c74; line-height: 1.5; }
.input-mode { display: inline-flex; gap: 5px; background: #f1f4f1; padding: 4px; border-radius: 6px; margin-bottom: 15px; }
.mode-button { border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font-size: 10px; padding: 0 13px; border-radius: 4px; color: var(--tb-muted); white-space: nowrap; }
.mode-button svg { width: 14px; }
.mode-button.is-active { background: #fff; color: var(--tb-accent); box-shadow: 0 1px 4px #203e2412; }
.prompt-box { border: 1px solid #d7dfd8; border-radius: 6px; overflow: hidden; background: #fdfefd; }
.prompt-box:focus-within { border-color: #678c72; box-shadow: 0 0 0 3px #e5efe6; }
textarea { resize: vertical; }
#idea { width: 100%; min-height: 126px; padding: 15px; border: 0; outline: none; background: transparent; font-size: 12px; line-height: 1.9; color: var(--tb-ink); display: block; }
#idea::placeholder { color: #7a847d; }
.prompt-footer { padding: 7px 13px 12px; display: flex; justify-content: space-between; gap: 8px; color: #727b73; font-size: 8px; }
.prompt-footer > span:first-child { display: inline-flex; align-items: center; gap: 5px; }
.prompt-footer svg { width: 12px; height: 12px; }
#character-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.suggestion-row { display: flex; align-items: center; gap: 7px; margin-top: 10px; flex-wrap: wrap; }
.suggestion-row > span { font-size: 9px; color: var(--tb-muted); margin-right: 2px; }
.suggestion-row button { border: 1px solid #e3e8e3; background: #fff; border-radius: 4px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 9px; font-size: 9px; white-space: nowrap; }
.suggestion-row button:hover { border-color: #95b59e; background: #f5f9f5; }
.duration-label { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; white-space: nowrap; color: var(--tb-muted); font-variant-numeric: tabular-nums; }
.duration-label svg { width: 13px; height: 13px; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { font-size: 10px; font-weight: 600; margin-bottom: 11px; padding: 0; }
.setting-columns { display: grid; grid-template-columns: .95fr 1.2fr; gap: 20px; }
.ratio-options { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.ratio-button { background: #fff; border: 1px solid var(--tb-border); border-radius: 6px; min-height: 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; position: relative; padding: 10px 4px; }
.ratio-button > span:nth-child(2) { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ratio-button strong { font-size: 11px; line-height: 1; font-variant-numeric: tabular-nums; }
.ratio-button small { font-size: 7px; color: var(--tb-muted); white-space: nowrap; }
.ratio-shape { border: 1.5px solid currentColor; display: block; border-radius: 2px; }
.portrait { width: 17px; height: 26px; }
.landscape { width: 29px; height: 18px; margin: 4px 0; }
.ratio-button > svg { width: 12px; height: 12px; position: absolute; top: 7px; right: 7px; opacity: 0; }
.ratio-button.is-active { color: var(--tb-accent); background: #f0f6f0; border-color: #739b7e; }
.ratio-button.is-active > svg { opacity: 1; }
.style-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.style-button { position: relative; padding: 3px; background: #fff; border: 1px solid var(--tb-border); border-radius: 6px; min-width: 0; overflow: hidden; }
.style-button img { aspect-ratio: 1 / .96; border-radius: 3px; }
.style-button span { min-height: 27px; display: flex; align-items: center; justify-content: center; font-size: 8px; white-space: nowrap; }
.style-button > svg { position: absolute; top: 8px; right: 7px; width: 15px; height: 15px; background: var(--tb-accent); color: #fff; border-radius: 50%; padding: 2px; opacity: 0; }
.style-button.is-active { border-color: #739b7e; background: #f0f6f0; color: var(--tb-accent); }
.style-button.is-active > svg { opacity: 1; }
.audio-settings { display: grid; grid-template-columns: 1fr 1fr .9fr; gap: 12px; border-top: 1px solid #edf0ed; margin-top: 21px; padding-top: 18px; }
.audio-settings > div > label { display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 500; margin-bottom: 8px; }
.audio-settings label svg { width: 13px; height: 13px; color: var(--tb-muted); }
select { width: 100%; background: #fff; color: #455249; border: 1px solid var(--tb-border); border-radius: 4px; min-height: 44px; font-size: 9px; padding: 0 8px; }
.subtitle-setting { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: relative; min-height: 64px; }
.subtitle-setting > span:first-child { font-size: 10px; }
.subtitle-setting > span:first-child > svg { vertical-align: middle; margin-right: 3px; }
.subtitle-setting small { display: block; font-size: 7px; color: var(--tb-muted); margin-top: 9px; }
.subtitle-setting input { position: absolute; right: 0; opacity: 0; width: 36px; height: 44px; cursor: pointer; z-index: 1; }
.toggle-track { width: 29px; height: 17px; border-radius: 20px; background: #a3aaa5; flex-shrink: 0; }
.toggle-track::after { content: ''; display: block; width: 11px; height: 11px; border-radius: 50%; background: white; margin: 3px; transition: transform .18s ease; }
.subtitle-setting input:checked + .toggle-track { background: var(--tb-accent); }
.subtitle-setting input:checked + .toggle-track::after { transform: translateX(12px); }
.subtitle-setting input:focus-visible + .toggle-track { outline: 3px solid #8bb89a; outline-offset: 3px; }
.generate-section { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #e7efe7; border: 1px solid #d6e3d8; padding: 17px; border-radius: var(--radius); }
.generation-summary { display: flex; align-items: center; gap: 11px; }
.sparkle-box { display: inline-flex; align-items: center; justify-content: center; width: 35px; height: 35px; background: #fff; border: 1px solid #dae5da; border-radius: 6px; color: var(--tb-accent); flex-shrink: 0; }
.generation-summary strong { display: block; font-size: 10px; font-weight: 600; }
.generation-summary div > span { font-size: 8px; color: var(--tb-muted); display: block; margin-top: 3px; }
.generate-section .button { padding: 0 13px; font-size: 10px; }
.service-note { font-size: 8px; display: flex; align-items: flex-start; gap: 5px; color: var(--tb-muted); margin: 11px 0 24px; }
.service-note svg { width: 12px; height: 12px; margin-top: 1px; }
.storyboard-panel .section-heading > span, .storyboard-actions > span { font-size: 9px; color: var(--tb-muted); font-variant-numeric: tabular-nums; }
.storyboard-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.small-action { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 10px; border: 1px solid var(--tb-border); background: var(--tb-surface); border-radius: 4px; font-size: 10px; white-space: nowrap; }
.small-action svg { width: 14px; height: 14px; }
.scene-content .visual-prompt { min-height: 54px; font-size: 9px; background: var(--tb-bg); margin-top: 5px; }
.scene-media-status { display: block; font-size: 8px; color: var(--tb-muted); padding-top: 4px; }
.prototype-label[data-state="ready"] { color: var(--tb-accent); }
.prototype-label[data-state="missing"] { color: #8b4422; }
.apimaster-panel { background: var(--tb-surface); border: 1px solid var(--tb-border); border-left: 3px solid var(--tb-accent); border-radius: var(--radius); padding: 23px; margin-bottom: 19px; }
.apimaster-panel .section-heading { flex-wrap: wrap; margin-bottom: 14px; }
.provider-state { color: var(--tb-muted); font-size: 9px; line-height: 1.6; }
.provider-model { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; font-size: 10px; padding-block: 10px; border-block: 1px solid var(--tb-border); }
.provider-model > span { color: var(--tb-muted); }
.provider-model code { font-size: 11px; overflow-wrap: anywhere; white-space: normal; }
.provider-description { color: var(--tb-muted); font-size: 10px; line-height: 1.9; margin-block: 13px; }
.provider-options { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-bottom: 15px; }
.provider-options label, .provider-options > div > span { font-size: 10px; display: block; }
.provider-options select { margin-top: 7px; }
.provider-options strong { display: block; margin-top: 8px; font-variant-numeric: tabular-nums; font-size: 14px; }
.provider-options small { display: block; font-size: 8px; color: var(--tb-muted); margin-top: 1px; }
.provider-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.provider-note { font-size: 9px; color: var(--tb-muted); margin-top: 13px; line-height: 1.9; overflow-wrap: anywhere; }
.clip-job { border-top: 1px solid var(--tb-border); margin-top: 16px; padding-top: 15px; }
.clip-job-heading { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; font-variant-numeric: tabular-nums; }
.clip-job-heading > span { color: var(--tb-muted); }
.clip-job > small { display: block; margin-block: 6px 12px; color: var(--tb-muted); font-size: 8px; overflow-wrap: anywhere; }
.clip-job video { display: block; width: 100%; max-height: 430px; aspect-ratio: 16/9; object-fit: contain; background: #18221c; margin-block: 15px 10px; border-radius: 4px; }
.clip-job > a { margin-top: 10px; }
@media (max-width: 768px) {
  .apimaster-panel { padding: 17px; margin-bottom: 16px; }
  .provider-options { grid-template-columns: 1fr; gap: 13px; }
  .provider-actions > button, .clip-job > a { width: 100%; }
  .provider-model { flex-direction: column; }
  .provider-note { font-size: 10px; }
}
.storyboard-empty { display: flex; align-items: center; gap: 15px; padding: 23px 12px; border: 1px dashed #dce3dd; border-radius: 5px; background: #fafcf9; }
.empty-icon { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; color: #829087; }
.empty-icon svg { width: 27px; height: 27px; }
.storyboard-empty strong { font-size: 10px; font-weight: 500; }
.storyboard-empty p { font-size: 8px; color: var(--tb-muted); margin-top: 5px; }
.empty-time { margin-left: auto; font-size: 15px; color: #829087; font-variant-numeric: tabular-nums; }
.scene-list { display: grid; gap: 10px; }
.scene-row { display: flex; gap: 13px; padding: 10px 0; border-bottom: 1px solid var(--tb-border); }
.scene-row:last-child { border-bottom: 0; }
.scene-thumb { width: 75px; height: 76px; border: 2px solid transparent; border-radius: 5px; padding: 0; overflow: hidden; flex-shrink: 0; background: var(--tb-surface-2); }
.scene-thumb img { height: 100%; aspect-ratio: 1; }
.current-scene .scene-thumb { border-color: var(--tb-accent); }
.scene-content { min-width: 0; width: 100%; }
.scene-header { display: flex; justify-content: space-between; gap: 10px; font-size: 10px; margin-bottom: 5px; }
.scene-header span { color: var(--tb-muted); font-size: 9px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.scene-content textarea { width: 100%; min-height: 54px; font-size: 10px; border: 1px solid #e2e7e2; border-radius: 4px; padding: 6px; line-height: 1.6; }
.help-section { margin: 29px 0; }
.help-section h2 { font-size: 13px; margin-bottom: 10px; }
details { border-bottom: 1px solid var(--tb-border); padding: 4px 0; }
summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; font-size: 10px; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary svg { width: 14px; }
details[open] summary svg { transform: rotate(45deg); }
details p { font-size: 10px; color: var(--tb-muted); padding: 0 22px 13px 0; line-height: 1.9; }
.preview-panel { background: #fff; border: 1px solid var(--tb-border); padding: 18px; border-radius: var(--radius); }
.preview-panel .section-heading { margin-bottom: 15px; }
.preview-panel h2 { font-size: 12px; }
.live-label { color: #6a756c; font-size: 8px; display: inline-flex; align-items: center; gap: 5px; line-height: 1.5; }
.live-label > span { width: 5px; height: 5px; border-radius: 50%; background: #6e9674; }
.preview-stage { background: #edf0ec; border: 1px solid #e0e5df; border-radius: 5px; min-height: 364px; display: flex; align-items: center; justify-content: center; padding: 13px 20px; overflow: hidden; }
.video-frame { position: relative; aspect-ratio: 9/16; width: 190px; flex-shrink: 0; background: #26382a; overflow: hidden; border-radius: 3px; color: #fff; }
.video-frame > img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; filter: saturate(.6); }
.frame-shade { position: absolute; inset: 0; background: linear-gradient(96deg, rgba(8,13,17,.94) 0%, rgba(8,13,17,.78) 46%, rgba(8,13,17,.28) 100%); }
.frame-topline { position: absolute; top: 17px; left: 15px; right: 15px; display: flex; justify-content: space-between; font: 700 7px var(--font-display); }
.frame-topline span:last-child { color: #d8dfdb; font-weight: 400; font-variant-numeric: tabular-nums; }
.preview-play { width: 42px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #ffffff20; border: 1px solid #ffffff65; color: #fff; position: absolute; top: 29%; left: calc(50% - 21px); backdrop-filter: blur(4px); z-index: 2; }
.preview-play svg { width: 16px; fill: #fff; }
.preview-caption { position: absolute; left: 16px; right: 15px; bottom: 52px; }
.preview-caption > span { color: #dce6dc; font-size: 6px; line-height: 1.6; display: block; margin-bottom: 8px; }
.preview-caption strong { font: 700 23px/1.4 var(--font-display); display: block; overflow-wrap: anywhere; }
.generated-caption { bottom: 40px; }
.generated-caption strong { font-size: 14px; line-height: 1.6; }
.frame-bottom { font-size: 5px; color: #ced8d1; position: absolute; bottom: 17px; left: 16px; line-height: 1.5; }
.is-playing .preview-play { opacity: 0; pointer-events: none; }
.video-frame.is-landscape { aspect-ratio: 16/9; width: 100%; }
.is-landscape .preview-caption { bottom: 26px; }
.is-landscape .preview-caption strong { font-size: 12px; }
.is-landscape .preview-play { top: 26%; }
.is-landscape .frame-topline { top: 9px; }
.is-landscape .frame-bottom { bottom: 9px; }
.playback-controls { display: flex; align-items: center; gap: 6px; padding-top: 9px; }
.icon-button { border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; min-width: 30px; min-height: 44px; padding: 4px; border-radius: 4px; }
.icon-button svg { width: 15px; height: 15px; }
.time-code { font-size: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.time-code span { color: var(--tb-muted); }
#seek { width: 100%; min-width: 25px; height: 4px; accent-color: var(--tb-accent); cursor: pointer; }
.preview-specs { display: flex; justify-content: space-between; border-top: 1px solid #eef1ed; padding-top: 10px; font-size: 8px; color: var(--tb-muted); gap: 7px; font-variant-numeric: tabular-nums; }
.preview-specs span { display: inline-flex; align-items: center; gap: 4px; }
.preview-specs svg { width: 11px; height: 11px; }
.project-overview { margin-top: 18px; padding: 0 3px; }
.project-overview h3 { font-size: 11px; margin-bottom: 12px; }
.project-overview > div { display: flex; justify-content: space-between; gap: 10px; margin: 12px 0; font-size: 9px; }
.project-overview > div > span { color: var(--tb-muted); display: inline-flex; gap: 8px; align-items: center; }
.project-overview > div svg { width: 13px; height: 13px; }
.project-overview strong { font-size: 9px; font-weight: 500; font-variant-numeric: tabular-nums; }
.download-button { width: 100%; margin-top: 6px; border: 1px solid var(--tb-border); background: #fff; color: var(--tb-ink); }
.download-button span { background: #edf1ec; font-size: 8px; padding: 2px 5px; border-radius: 3px; margin-left: auto; }
.project-overview > p { color: var(--tb-muted); font-size: 8px; display: flex; justify-content: center; align-items: center; gap: 5px; margin-top: 8px; }
.project-overview > p svg { width: 10px; height: 10px; }
.mini-tip { margin-top: 23px; padding: 14px 0; border-top: 1px solid var(--tb-border); display: flex; align-items: flex-start; gap: 10px; }
.tip-icon { color: #96732d; margin-top: 2px; }
.tip-icon svg { width: 16px; height: 16px; }
.mini-tip p { color: var(--tb-muted); font-size: 9px; line-height: 1.9; }
.mini-tip strong { display: block; color: #445049; font-size: 10px; margin-bottom: 3px; }
.app-footer { padding: 20px 0; border-top: 1px solid var(--tb-border); display: flex; justify-content: space-between; gap: 20px; color: #707a73; font-size: 8px; }
dialog { max-width: 560px; width: calc(100% - 32px); border: 1px solid var(--tb-border); border-radius: 8px; padding: 24px; color: var(--tb-ink); background: #fff; }
dialog::backdrop { background: #14251c77; backdrop-filter: blur(3px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dialog-heading h2 { font-size: 19px; }
.saved-project { display: flex; gap: 8px; border-bottom: 1px solid var(--tb-border); padding: 10px 0; }
.project-open { flex: 1; text-align: left; border: 0; background: transparent; padding: 8px; min-width: 0; }
.project-open strong { display: block; font-size: 12px; overflow-wrap: anywhere; }
.project-open small { color: var(--tb-muted); display: block; margin-top: 6px; }
.toast { position: fixed; bottom: 26px; left: calc(50% + 100px); transform: translate(-50%, 12px); background: #213d2c; color: #fff; box-shadow: 0 8px 30px #10211722; border-radius: 6px; padding: 13px 19px; font-size: 12px; max-width: min(550px, calc(100% - 32px)); width: max-content; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (min-width: 1500px) { main { padding-top: 44px; } .studio-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 30px; } .preview-stage { min-height: 415px; } .video-frame { width: 217px; } #idea { min-height: 150px; } }
@media (max-width: 1200px) { .sidebar { width: 198px; padding-inline: 12px; } .app-shell { margin-left: 198px; } main { padding: 26px 24px 0; } .topbar { padding-inline: 24px; } .studio-layout { grid-template-columns: minmax(0, 1fr) 295px; gap: 18px; } .editor-panel, .settings-panel, .storyboard-panel { padding: 18px; } .setting-columns { gap: 12px; } .generate-section { flex-wrap: wrap; } .generate-section .button { width: 100%; } .small-label { display: none; } h1 { font-size: 27px; } .style-button span { font-size: 7px; } .audio-settings { gap: 8px; } .subtitle-setting small { font-size: 6px; } }
@media (max-width: 1000px) and (min-width: 769px) { .sidebar { width: 180px; } .app-shell { margin-left: 180px; } .brand { font-size: 20px; } main { padding-inline: 20px; } .studio-layout { grid-template-columns: minmax(0, 1fr) 255px; gap: 14px; } .setting-columns { grid-template-columns: 1fr; gap: 18px; } .audio-settings { grid-template-columns: 1fr 1fr; } .subtitle-setting { grid-column: 1 / -1; min-height: 44px; } .style-button img { aspect-ratio: 1.6; } .page-heading { align-items: flex-start; } .page-heading .button { padding-inline: 10px; font-size: 9px; } h1 { font-size: 24px; } .page-heading p { font-size: 10px; } .preview-panel { padding: 13px; } .preview-stage { padding-inline: 10px; } .preview-specs { font-size: 7px; } .duration-label { font-size: 8px; } .settings-panel .section-heading { flex-wrap: wrap; } }
@media (max-width: 768px) {
  .sidebar { position: static; width: 100%; height: auto; padding: 15px 18px 0; border-right: 0; border-bottom: 1px solid var(--tb-border); }
  .brand { font-size: 21px; padding: 0; }
  .brand-icon { width: 29px; height: 30px; }
  .workspace-label, .sidebar-guide, .sidebar-bottom { display: none; }
  nav { display: flex; gap: 2px; margin-top: 15px; }
  .nav-item { width: auto; flex: 1; padding: 0 8px; font-size: 9px; justify-content: center; border-radius: 5px 5px 0 0; gap: 6px; }
  .nav-item svg { width: 15px; height: 15px; }
  .nav-item span:last-child { margin-left: 0; }
  .new-badge { display: none; }
  .app-shell { margin-left: 0; }
  .topbar { height: 49px; padding-inline: 18px; }
  .breadcrumb { font-size: 9px; gap: 7px; }
  .topbar-actions { gap: 9px; }
  .prototype-label { font-size: 8px; gap: 4px; }
  .avatar { display: none; }
  main { padding: 25px 16px 0; }
  .page-heading { align-items: flex-start; margin-bottom: 23px; gap: 13px; flex-direction: column; }
  h1 { font-size: 27px; max-width: 340px; line-height: 1.45; }
  .heading-kicker { font-size: 8px; margin-bottom: 8px; }
  .page-heading p { font-size: 10px; line-height: 1.9; max-width: 300px; }
  .page-heading .button { min-height: 44px; font-size: 10px; padding-inline: 13px; }
  .studio-layout, .setting-columns, .ratio-options, .style-options, .audio-settings { grid-template-columns: 1fr; }
  .studio-layout { gap: 8px; }
  .setting-columns { gap: 21px; }
  .editor-panel, .settings-panel, .storyboard-panel { padding: 17px; margin-bottom: 16px; }
  .section-heading { gap: 8px; margin-bottom: 17px; flex-wrap: wrap; }
  .section-heading h2 { font-size: 13px; gap: 8px; }
  .duration-label { font-size: 8px; margin-left: 33px; }
  .prompt-footer { font-size: 7px; align-items: flex-start; }
  .prompt-footer > span:first-child { max-width: 190px; }
  #idea { min-height: 149px; font-size: 11px; padding: 12px; }
  .input-mode { width: 100%; }
  .mode-button { flex: 1; padding-inline: 7px; font-size: 9px; }
  .suggestion-row { gap: 5px; }
  .suggestion-row > span { width: 100%; margin-bottom: 1px; }
  .suggestion-row button { font-size: 8px; padding-inline: 8px; }
  .ratio-button { flex-direction: row; justify-content: flex-start; gap: 16px; padding: 12px 20px; min-height: 70px; }
  .ratio-button > span:nth-child(2) { align-items: flex-start; gap: 5px; }
  .ratio-button small { font-size: 9px; }
  .ratio-button > svg { top: 28px; right: 16px; }
  .landscape { margin: 4px 0; }
  .style-button { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 4px; }
  .style-button img { width: 80px; aspect-ratio: 1.6; }
  .style-button span { font-size: 10px; }
  .style-button > svg { top: 24px; right: 15px; }
  .audio-settings { gap: 16px; }
  .audio-settings > div > label { font-size: 11px; }
  select { font-size: 11px; }
  .subtitle-setting { grid-column: span 1; min-height: 44px; }
  .subtitle-setting small { font-size: 9px; }
  .generate-section { padding: 15px; gap: 16px; }
  .generation-summary strong { font-size: 10px; }
  .generation-summary div > span { font-size: 8px; }
  .generate-section .button { min-height: 48px; font-size: 11px; }
  .service-note { font-size: 8px; line-height: 1.9; }
  .storyboard-empty { gap: 8px; padding: 15px 6px; flex-wrap: wrap; }
  .empty-icon { width: 25px; }
  .empty-icon svg { width: 22px; }
  .empty-time { display: none; }
  .storyboard-empty strong { font-size: 9px; }
  .storyboard-empty p { font-size: 7px; }
  .scene-thumb { width: 59px; height: 73px; }
  .scene-header { font-size: 9px; }
  .scene-header span { font-size: 8px; }
  .help-section { margin: 23px 0; }
  .preview-column { padding-bottom: 20px; }
  .preview-panel { padding: 19px; }
  .preview-stage { min-height: 390px; }
  .video-frame { width: 203px; }
  .project-overview { padding: 0 8px; margin-top: 23px; }
  .project-overview h3 { font-size: 13px; }
  .project-overview > div, .project-overview strong { font-size: 11px; }
  .project-overview > div { margin: 15px 0; }
  .project-overview > p { font-size: 9px; }
  .download-button { font-size: 11px; }
  .mini-tip { padding-inline: 8px; }
  .mini-tip p { font-size: 10px; }
  .app-footer { flex-direction: column; gap: 6px; font-size: 8px; padding: 18px 0; }
  .toast { left: 50%; bottom: 20px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
