/* Hallmark · shape: app screen · genre: modern-minimal · theme: brand · redesign: full
 * paper: Kachi light green-neutral · accent: retained deep green · display: system Chinese sans · body: system Chinese sans
 * nav: kept four-destination shell, compact labels · signature: creative brief beside production settings
 * states: existing loading, empty, error, full · axes: light/grotesk-sans/cool · posture: Restrained · contrast: checked in sweep · v2.0.0 */
/* Hallmark · finish-review: subagent · fix · 1 finding resolved (control spacing) · gap: none */
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R5 V4 · weakest: E, removed conflicting legacy span rules and consolidated all form states. */
/* Hallmark · waive 39b · app scope, job-card buttons contain real asset previews and metadata · the workbench opens each full thumbnail while ordinary settings controls retain their compact 40px size. */
/* Hallmark · answered F4 · only primary actions use the green fill; selected filters, upload removal and preview switches are independent states on neutral surfaces. */
/* Hallmark · answered F6 · numerical metadata inherits tabular-nums from body; stat values and table cells also declare it explicitly. */
/* Hallmark · answered F25 · phone account tables scroll internally while both identity and action columns remain pinned and focusable. */
/* Hallmark · reworded "视频与图片工具↻" to "视频与图片工具" · 63 removes a decorative arrow without changing the tool destination. */
@import url("./tokens.css");
@import url("./base.css");

html { font-size: 16px; }
body { min-width: 0; font-variant-numeric: tabular-nums; }
button, input, select, textarea { font-family: var(--font-body); }
button, a, summary, input, select, textarea, [contenteditable], [tabindex] { -webkit-tap-highlight-color: transparent; }
button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: var(--control-height); padding: var(--space-xs) var(--space-sm); border: 1px solid transparent; border-radius: var(--radius-input); background: transparent; color: var(--color-ink-2); font-size: var(--text-sm); line-height: 1.4; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
button:hover:not(:disabled), .text-button:hover, summary:hover { background-color: var(--color-paper-2); color: var(--color-ink); }
button:active:not(:disabled), .primary:active:not(:disabled) { transform: translateY(1px); }
button:disabled, input:disabled, select:disabled, textarea:disabled, [aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
button[aria-busy="true"], [aria-busy="true"] button { cursor: progress; }
:where(button,a,input,select,textarea,summary,[contenteditable],[tabindex]):focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
input, select, textarea { min-width: 0; max-width: 100%; min-height: var(--control-height); border: 1px solid var(--color-field-edge); border-radius: var(--radius-input); padding: var(--space-xs) var(--space-sm); color: var(--color-ink); background: var(--color-surface); font-size: var(--text-sm); line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--color-muted); opacity: 1; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 2px; }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; min-height: 0; padding: 0; margin: 0; accent-color: var(--color-accent); flex-shrink: 0; cursor: pointer; }
input[type="file"] { width: 100%; padding: var(--space-xs); }
input[type="file"]::file-selector-button { padding: var(--space-xs) var(--space-sm); margin-right: var(--space-sm); background: var(--color-paper-2); color: var(--color-ink); border: 0; border-radius: var(--radius-input); font: inherit; cursor: pointer; }
input[type="color"] { width: 64px; height: var(--control-height); padding: var(--space-2xs); }
label { color: var(--color-ink-2); font-size: var(--text-sm); }
fieldset { min-width: 0; border: 0; margin: 0; padding: 0; }
legend { padding: 0; font-size: var(--text-sm); font-weight: 600; color: var(--color-ink); }
summary { cursor: pointer; font-size: var(--text-sm); color: var(--color-ink-2); padding-block: var(--space-sm); border-radius: var(--radius-input); }
p { max-width: 65ch; line-height: 1.6; }
h1, h2, h3, h4 { overflow-wrap: break-word; min-width: 0; font-family: var(--font-display); font-weight: 600; color: var(--color-ink); line-height: 1.4; letter-spacing: 0; }
h4 { font-size: var(--text-sm); margin: var(--space-lg) 0 var(--space-sm); }
.primary { min-height: 44px; padding: var(--space-sm) var(--space-lg); color: var(--color-accent-ink); background: var(--color-accent); border: 1px solid var(--color-accent); border-radius: var(--radius-input); font-size: var(--text-sm); font-weight: 500; text-align: center; text-decoration: none; white-space: nowrap; }
.primary:hover:not(:disabled) { color: var(--color-accent-ink); background: var(--color-accent-hover); }
.wide { width: 100%; display: flex; justify-content: center; }
.text-button { font-size: var(--text-sm); color: var(--color-accent); padding-inline: var(--space-xs); }
.muted, .field-hint, .review-note, .delivery-note, .media-report, .model-credit-note, .svga-status { color: var(--color-muted); font-size: var(--text-sm); line-height: 1.65; }
.error, .creation-error { color: var(--color-error); font-size: var(--text-sm); line-height: 1.65; }
.status-done { color: var(--color-success); }
.status-error { color: var(--color-error); }
.badge { display: inline-flex; align-items: center; font-size: var(--text-xs); color: var(--color-muted); white-space: nowrap; }
.noscript-note { max-width: none; padding: var(--space-md) var(--gutter); background: var(--color-warning-soft); color: var(--color-warning); }

.workspace { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100dvh; }
.workspace > main { min-width: 0; }
.sidebar { position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; height: 100dvh; padding: var(--space-lg) var(--space-md); background: var(--color-paper-2); border-right: 1px solid var(--color-rule); }
.wordmark { display: inline-flex; align-items: center; gap: var(--space-xs); color: var(--color-ink); font-size: 30px; font-weight: 600; line-height: 1; letter-spacing: -.06em; white-space: nowrap; }
.brand-mark { display: block; width: 24px; height: 24px; flex-shrink: 0; }
.sidebar .wordmark { padding-inline: var(--space-sm); }
.sidebar-sub { padding-inline: var(--space-sm); margin-top: var(--space-sm); font-size: var(--text-xs); color: var(--color-muted); }
.sidebar nav { display: grid; gap: var(--space-2xs); margin-top: var(--space-xl); }
.sidebar .nav-item { width: 100%; justify-content: flex-start; gap: var(--space-sm); min-height: 44px; padding: var(--space-sm); color: var(--color-muted); font-size: var(--text-sm); font-weight: 500; text-align: left; }
.nav-icon { display: inline-flex; flex-shrink: 0; }
.nav-icon svg { width: 20px; height: 20px; }
.nav-full { min-width: 0; font-size: var(--text-sm); line-height: 1.4; white-space: nowrap; }
.nav-short { display: none; }
.sidebar .nav-item.active { color: var(--color-accent); background: var(--color-accent-soft); }
.sidebar .nav-item b { margin-left: auto; font-size: var(--text-xs); font-weight: 500; font-variant-numeric: tabular-nums; }
.user-panel { display: flex; align-items: center; gap: var(--space-xs); margin-top: auto; padding: var(--space-md) var(--space-2xs) 0; border-top: 1px solid var(--color-rule); min-width: 0; }
.user-avatar { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: var(--radius-pill); color: var(--color-accent); background: var(--color-paper-3); font-size: var(--text-sm); }
.user-panel > div:nth-child(2) { min-width: 0; flex: 1; }
.user-panel b, .user-panel small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-panel b { font-size: var(--text-xs); font-weight: 500; }
.user-panel small { font-size: var(--text-xs); color: var(--color-muted); margin-top: var(--space-2xs); }
#logout { min-width: 32px; padding-inline: var(--space-2xs); font-size: var(--text-lg); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 64px; max-width: calc(var(--container) + var(--gutter)*2); margin-inline: auto; padding: var(--space-sm) var(--gutter); font-size: var(--text-xs); color: var(--color-muted); }
.topbar > div:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-sm); }
.topbar b { font-weight: 500; color: var(--color-ink-2); }
.server-chip { display: flex; align-items: center; flex-shrink: 0; color: var(--color-muted); font-size: var(--text-xs); }
.page { width: 100%; max-width: calc(var(--container) + var(--gutter)*2); margin-inline: auto; padding: var(--space-lg) var(--gutter) var(--space-xl); min-width: 0; }
.page-heading { margin-bottom: var(--space-lg); }
.page-heading h1 { font-size: var(--text-display); }
.page-heading p { font-size: var(--text-sm); color: var(--color-muted); margin-top: var(--space-xs); }
footer { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); max-width: calc(var(--container) + var(--gutter)*2); margin-inline: auto; padding: var(--space-lg) var(--gutter); font-size: var(--text-xs); color: var(--color-muted); }

.mode-tabs { display: flex; gap: var(--space-lg); overflow-x: auto; border-bottom: 1px solid var(--color-rule); margin-bottom: var(--space-lg); scrollbar-width: thin; }
.mode-tabs button { flex-shrink: 0; min-height: 48px; padding: var(--space-sm) 0; border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--color-muted); font-weight: 500; }
.mode-tabs button.selected { color: var(--color-accent); border-bottom-color: var(--color-accent); }
.creation-layout { display: block; }
.panel { min-width: 0; }
.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: var(--space-md); padding-bottom: var(--space-lg); }
.panel-heading h2 { font-size: var(--text-section); }
.panel-heading p { font-size: var(--text-sm); color: var(--color-muted); margin-top: var(--space-xs); }
.composer { position: relative; }
.composer-body { display: grid; grid-template-columns: minmax(0, 1fr) var(--settings-width); align-items: start; gap: var(--gap-columns); }
.brief-column, .settings-column { min-width: 0; }
.settings-column { background: var(--color-paper-2); padding: var(--space-lg); border-radius: var(--radius-card); }
.editor-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-xs); margin-bottom: var(--space-sm); }
.editor-toolbar button { min-height: 36px; padding: var(--space-xs); }
.editor-toolbar #bold { min-width: 36px; }
.editor-toolbar #imageCounter { color: var(--color-muted); font-size: var(--text-xs); }
.editor-toolbar #example { margin-left: auto; font-size: var(--text-xs); }
.composer-input { background: var(--color-surface); border: 1px solid var(--color-field-edge); border-radius: var(--radius-input); }
.composer-input:focus-within { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.editor { min-height: 240px; max-height: 480px; overflow-y: auto; padding: var(--space-md); font-size: var(--text-md); line-height: 1.75; overflow-wrap: anywhere; white-space: pre-wrap; }
.editor:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.editor:empty::before { content: attr(data-placeholder); color: var(--color-muted); pointer-events: none; }
.editor-hint { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); margin-top: var(--space-sm); color: var(--color-muted); font-size: var(--text-xs); line-height: 1.6; }
.reference-strip { display: flex; gap: var(--space-sm); padding: var(--space-sm); overflow-x: auto; border-bottom: 1px solid var(--color-rule); }
.image-block { display: flex; position: relative; flex: none; flex-direction: column; gap: var(--space-2xs); width: 120px; max-width: 100%; padding: var(--space-xs); border-radius: var(--radius-input); background: var(--color-paper-2); }
.image-block img { display: block; width: 100%; height: 88px; object-fit: contain; }
.image-block small { font-size: var(--text-xs); color: var(--color-muted); text-align: center; }
.image-block button { position: absolute; top: 0; right: 0; min-width: 32px; min-height: 32px; padding: var(--space-2xs); background: var(--color-surface); color: var(--color-ink); }
.image-block[data-upload-state="uploading"] { outline: 2px solid var(--color-focus); }
.image-block[data-upload-state="failed"] { outline: 2px solid var(--color-error); }
.image-block .retry-image { position: static; font-size: var(--text-xs); background: var(--color-error-soft); color: var(--color-error); }
.frame-presets { margin-top: var(--space-lg); }
.frame-presets > div, #staticFrameThemeChoices { display: flex; gap: var(--space-xs); flex-wrap: wrap; }
.frame-preset-tab { font-size: var(--text-xs); min-height: 36px; padding-inline: var(--space-sm); color: var(--color-ink-2); background: var(--color-paper-2); }
.static-frame-layouts, .recent-frame-picker { margin-top: var(--space-md); }
.static-frame-layouts summary > span, .motion-options summary > span { display: inline; margin-left: var(--space-xs); font-size: var(--text-xs); color: var(--color-muted); }
.layout-picker-heading { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); margin-top: var(--space-sm); }
.layout-picker-heading h3 { font-size: var(--text-sm); }
.static-frame-layouts > p { color: var(--color-muted); font-size: var(--text-sm); }
.static-frame-layout-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--space-xs); margin-block: var(--space-md); }
.static-frame-layout-card { display: flex; flex-direction: column; align-items: center; gap: var(--space-xs); padding: var(--space-sm) var(--space-xs); min-width: 0; border: 1px solid transparent; border-radius: var(--radius-input); background: var(--color-paper-2); white-space: normal; }
.static-frame-layout-card.selected { background: var(--color-accent-soft); border-color: var(--color-accent); color: var(--color-accent); }
.static-frame-layout-card b { font-size: var(--text-xs); font-weight: 500; white-space: nowrap; }
.static-frame-layout-card small { display: block; font-size: var(--text-xs); color: var(--color-muted); }
.static-layout-preview { width: 64px; height: 64px; object-fit: contain; }
.layout-picker-footer { display: flex; flex-wrap: wrap; align-items: end; gap: var(--space-md); margin-block: var(--space-md); }
.layout-picker-footer label { display: grid; gap: var(--space-xs); min-width: 0; flex: 1; }
.layout-picker-footer input, .layout-picker-footer select { width: 100%; }
.recent-frame-picker > h3 { margin-block: var(--space-sm); font-size: var(--text-sm); }
#recentFrameChoices { display: flex; gap: var(--space-sm); overflow-x: auto; padding-block: var(--space-xs); }
.recent-frame-option { display: flex; align-items: center; gap: var(--space-xs); min-width: 160px; padding: var(--space-xs); color: var(--color-ink-2); font-size: var(--text-xs); cursor: pointer; }
.recent-frame-option img { width: 56px; height: 56px; object-fit: contain; }
.recent-frame-option span { line-height: 1.5; }
.recent-frame-option:has(input:checked) { background: var(--color-accent-soft); }
.route-section legend { display: block; width: 100%; margin-bottom: var(--space-sm); }
.route-choices { display: flex; align-items: stretch; gap: var(--space-xs); }
.route-choices > label { display: flex; align-items: start; gap: var(--space-xs); flex: 1; min-width: 0; padding: var(--space-sm) var(--space-xs); border-bottom: 2px solid var(--color-field-edge); cursor: pointer; }
.route-choices > label:has(input:checked) { border-bottom-color: var(--color-accent); color: var(--color-accent); background: var(--color-accent-soft); }
.route-choices > label:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.route-choices > label:focus-within { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.route-choices input { margin-top: var(--space-2xs); }
.route-choices b { font-size: var(--text-sm); font-weight: 600; white-space: nowrap; }
.route-choices small { display: block; margin-top: var(--space-2xs); font-size: var(--text-xs); color: var(--color-muted); line-height: 1.5; }
.field-hint { margin-top: var(--space-sm); }
.route-parameters { padding-top: var(--space-lg); }
.parameter-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: var(--space-md); }
.parameter-grid > label, .model-label { display: grid; gap: var(--space-xs); min-width: 0; }
.parameter-grid select, .parameter-grid input:not([type="checkbox"]), .model-label select { width: 100%; }
.parameter-grid input[type="color"] { width: 64px; }
.parameter-grid .check-label { display: flex; align-items: center; gap: var(--space-xs); min-height: var(--control-height); }
.model-actions { display: flex; align-items: start; justify-content: space-between; gap: var(--space-sm); margin-top: var(--space-sm); }
.model-actions .field-hint { margin: 0; font-size: var(--text-xs); }
.model-actions .text-button { padding: 0; min-height: 32px; font-size: var(--text-xs); }
.output-options { border-top: 1px solid var(--color-rule); padding-top: var(--space-md); margin-top: var(--space-lg); }
.output-options legend { float: left; width: 100%; margin-bottom: var(--space-sm); }
.output-options > .parameter-grid { clear: both; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-sm); }
#videoDeliveryOptions > .parameter-grid { grid-template-columns: minmax(0,1fr); }
.color-picker-field { display: grid; gap: var(--space-xs); }
.color-picker-row { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-xs); }
.color-picker-row input[type='color'] { flex: 0 0 44px; }
.color-picker-row .text-button { margin-left: auto; }
.motion-options { border-top: 1px solid var(--color-rule); padding-top: var(--space-2xs); margin-top: var(--space-md); }
.motion-options .parameter-grid { margin-top: var(--space-md); }
.local-animation-effects { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-block: var(--space-md); }
.local-animation-effects label { display: flex; align-items: center; gap: var(--space-xs); }
.local-layer-choice { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); padding-block: var(--space-sm); border-top: 1px solid var(--color-rule); }
.local-layer-choice select { max-width: 160px; }
.composer-bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); border-top: 1px solid var(--color-rule); margin-top: var(--space-lg); padding-top: var(--space-md); }
.composer-bottom > span { color: var(--color-muted); font-size: var(--text-xs); }
.composer-bottom .primary { min-width: 144px; }
.spec-notes { margin-top: var(--space-md); color: var(--color-muted); font-size: var(--text-xs); }
.service-notice, .admin-authorization { margin-block: var(--space-md); padding: var(--space-md); border-radius: var(--radius-input); background: var(--color-warning-soft); color: var(--color-warning); font-size: var(--text-sm); line-height: 1.65; }
.service-notice h3, .admin-authorization h3 { color: inherit; margin-bottom: var(--space-xs); }
.creation-error { margin-top: var(--space-md); }
.recent { margin-top: var(--space-xl); }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); margin-bottom: var(--space-md); }
.section-heading h2 { font-size: var(--text-section); }
.section-heading p { font-size: var(--text-sm); color: var(--color-muted); margin-top: var(--space-2xs); }
.job-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--gap-columns); }
.job-card { position: relative; display: block; width: 100%; min-width: 0; padding: 0; overflow: hidden; text-align: left; border-radius: var(--radius-card); background: var(--color-surface); border: 1px solid var(--color-rule); color: var(--color-ink); }
.job-card { cursor: pointer; }
.job-card:hover { border-color: var(--color-field-edge); }
.job-card:has(.job-open:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.job-open { display: block; width: 100%; min-height: 0; padding: 0; border: 0; border-radius: 0; color: inherit; text-align: left; font: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-open:hover { background: none; color: var(--color-accent); }
.job-open:focus-visible { outline: none; }
.task-id { position: relative; z-index: 1; max-width: 100%; min-height: 32px; padding: var(--space-xs) 0; color: var(--color-muted); font-size: var(--text-xs); overflow-wrap: anywhere; text-align: left; }
.job-meta .task-id { margin-top: var(--space-xs); }
#jobDetail > .task-id { margin-top: calc(-1 * var(--space-sm)); margin-bottom: var(--space-md); }
.model-advice { margin-top: var(--space-sm); color: var(--color-ink-2); font-size: var(--text-xs); }
.job-preview { position: relative; display: grid; place-items: center; min-height: 190px; background: var(--color-paper-2); }
.job-preview > img { width: 80%; height: 160px; object-fit: contain; }
.job-preview > .avatar-preview { width: 160px; height: 160px; }
.job-preview .badge { position: absolute; left: var(--space-sm); top: var(--space-sm); background: var(--color-surface); padding: var(--space-2xs) var(--space-xs); color: var(--color-ink-2); border-radius: var(--radius-input); }
.job-icon { color: var(--color-muted); font-size: var(--text-2xl); }
.job-meta { padding: var(--space-md); }
.job-meta h3 { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: var(--text-sm); max-width: none; }
.job-meta p { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-xs); color: var(--color-muted); font-size: var(--text-xs); }
.empty-state { grid-column: 1/-1; padding: var(--space-xl) var(--space-lg); border-block: 1px solid var(--color-rule); color: var(--color-muted); text-align: center; }
.empty-state > span { display: none; }
.empty-state b { display: block; color: var(--color-ink); font-size: var(--text-md); font-weight: 500; }
.empty-state p { margin-top: var(--space-xs); margin-inline: auto; font-size: var(--text-sm); }

.media-tool { max-width: 880px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-lg); background: var(--color-surface); padding: var(--space-lg); border-radius: var(--radius-card); }
.media-tool > label { display: grid; gap: var(--space-xs); min-width: 0; align-content: start; }
.media-tool > p, .media-tool > fieldset { grid-column: 1/-1; }
.media-tool > button { justify-self: start; }
.media-tool > fieldset { display: grid; gap: var(--space-md); padding-top: var(--space-md); border-top: 1px solid var(--color-rule); }
.media-tool fieldset > label { display: grid; gap: var(--space-xs); }
.media-tool p { font-size: var(--text-sm); color: var(--color-muted); }
#mediaToolStatus { min-height: 1lh; }
.filter-bar { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-md); margin-bottom: var(--space-lg); }
#historyFilters { display: flex; flex: 1; min-width: 0; gap: var(--space-2xs); overflow-x: auto; }
.filter-bar button { flex-shrink: 0; }
.filter-bar button.selected { color: var(--color-accent); background: var(--color-accent-soft); }
.filter-bar input { flex: 0 1 180px; }
.stats-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: var(--space-lg); }
.stat { min-width: 0; padding: var(--space-md) var(--space-lg); border-right: 1px solid var(--color-rule); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat p { color: var(--color-muted); font-size: var(--text-sm); white-space: nowrap; }
.stat b { display: block; font-size: var(--text-2xl); font-weight: 500; margin-top: var(--space-xs); font-variant-numeric: tabular-nums; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); margin-bottom: var(--space-lg); }
.admin-tabs { display: flex; min-width: 0; gap: var(--space-xs); overflow-x: auto; border-bottom: 1px solid var(--color-rule); }
.admin-tabs button { flex-shrink: 0; border-radius: 0; border: 0; border-bottom: 2px solid transparent; padding-block: var(--space-sm); }
.admin-tabs button[aria-selected="true"] { color: var(--color-accent); border-bottom-color: var(--color-accent); }
.account-panel .panel-heading { padding-block: var(--space-md); }
.account-panel .panel-heading p { max-width: 65ch; }
.feishu-requests, .image-service-settings { padding-block: var(--space-lg); border-top: 1px solid var(--color-rule); }
.feishu-requests > p, .image-service-settings > p, #imageServiceForm > p { margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
#imageServiceForm { display: grid; gap: var(--space-md); margin-top: var(--space-lg); max-width: 720px; }
#imageServiceForm label { display: grid; gap: var(--space-xs); }
#imageServiceForm input, #imageServiceForm select { width: 100%; }
.image-service-actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-sm); }
#imageModelStatus, #imageServiceStatus { font-size: var(--text-sm); color: var(--color-muted); line-height: 1.65; }
.feishu-request { display: flex; align-items: start; flex-wrap: wrap; gap: var(--space-md); padding-block: var(--space-md); border-bottom: 1px solid var(--color-rule); }
.feishu-request > div { min-width: 0; flex: 1; }
.feishu-request p { font-size: var(--text-sm); overflow-wrap: anywhere; }
.feishu-grant-form { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-xs); }
.create-user-form { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; align-items: end; gap: var(--space-md); margin-block: var(--space-lg); }
.create-user-form label { display: grid; gap: var(--space-xs); }
.create-user-form input { width: 100%; }
.table-scroll { width: 100%; min-width: 0; overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--text-sm); }
th { text-align: left; font-weight: 500; color: var(--color-muted); background: var(--color-paper-2); white-space: nowrap; }
th, td { padding: var(--space-md) var(--space-sm); border-bottom: 1px solid var(--color-rule); vertical-align: top; }
td { color: var(--color-ink-2); font-variant-numeric: tabular-nums; }
td b { font-weight: 500; }
td small { display: block; color: var(--color-muted); font-size: var(--text-xs); margin-top: var(--space-2xs); }
td button { min-height: 36px; padding: var(--space-xs); font-size: var(--text-xs); }
.audit-row { display: flex; align-items: start; justify-content: space-between; gap: var(--space-md); padding-block: var(--space-md); border-bottom: 1px solid var(--color-rule); font-size: var(--text-sm); color: var(--color-muted); }
.audit-row > span:first-child { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.audit-row > .text-button { flex-shrink: 0; }
.admin-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-md); padding-block: var(--space-md); font-size: var(--text-xs); color: var(--color-muted); }
.pagination-controls { display: flex; align-items: center; gap: var(--space-xs); }
.pagination-status { font-variant-numeric: tabular-nums; }

.toast { position: fixed; bottom: var(--space-lg); left: 50%; transform: translateX(-50%); z-index: var(--z-toast); max-width: min(560px,90%); padding: var(--space-sm) var(--space-lg); border: 1px solid var(--color-rule); border-radius: var(--radius-input); background: var(--color-surface); color: var(--color-ink); box-shadow: var(--shadow-card); font-size: var(--text-sm); line-height: 1.6; }
dialog { width: min(960px, calc(100% - var(--space-lg)*2)); max-width: none; max-height: 88dvh; overflow: auto; padding: var(--space-lg); color: var(--color-ink); background: var(--color-surface); border: 1px solid var(--color-rule); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
dialog::backdrop { background: var(--color-overlay); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); margin-bottom: var(--space-lg); }
.dialog-head h2 { font-size: var(--text-section); }
.dialog-head button { min-width: 40px; font-size: var(--text-xl); }
#jobDialog { padding: 0; overflow: hidden; }
#jobDialog .dialog-head { padding: var(--space-md) var(--space-lg); margin: 0; border-bottom: 1px solid var(--color-rule); }
#jobDetail { max-height: calc(88dvh - 73px); overflow-y: auto; padding: var(--space-lg); }
.detail-meta { color: var(--color-muted); font-size: var(--text-xs); margin-bottom: var(--space-md); }
.detail-prompt { padding: var(--space-md); border-radius: var(--radius-input); background: var(--color-paper-2); color: var(--color-ink-2); font-size: var(--text-sm); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 160px; overflow-y: auto; max-width: none; }
.detail-prompt img { display: inline-block; width: 64px; height: 64px; object-fit: contain; vertical-align: middle; margin-right: var(--space-sm); }
.branch-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-lg); margin-top: var(--space-lg); }
.branch-grid.single { grid-template-columns: minmax(0,1fr); }
.branch { min-width: 0; }
.branch + .branch { border-left: 1px solid var(--color-rule); padding-left: var(--space-lg); }
.branch h3 { font-size: var(--text-lg); margin-bottom: var(--space-xs); }
.branch > p { font-size: var(--text-sm); margin-block: var(--space-xs); }
.completed-steps { margin-block: var(--space-sm); }
.completed-steps summary { color: var(--color-muted); font-size: var(--text-xs); }
.progress-steps { padding: 0; margin-block: var(--space-md); list-style: none; }
.progress-step { display: flex; align-items: center; gap: var(--space-sm); min-height: 36px; color: var(--color-muted); font-size: var(--text-sm); }
.step-icon { display: inline-grid; place-items: center; flex-shrink: 0; width: 20px; height: 20px; font-size: var(--text-xs); }
.progress-step.done { color: var(--color-success); }
.progress-step.error { color: var(--color-error); }
.progress-step.active { color: var(--color-accent); font-weight: 500; }
.progress-step small { margin-left: auto; font-size: var(--text-xs); font-weight: 400; }
.progress-step.active .step-icon::before, .progress-step.waiting .step-icon::before { content: ""; display: block; width: 16px; height: 16px; border: 2px solid var(--color-rule); border-top-color: var(--color-accent); border-radius: var(--radius-pill); animation: progress-spin 1s linear infinite; }
@keyframes progress-spin { to { transform: rotate(360deg); } }
.artifact-preview { margin-top: var(--space-md); padding: var(--space-md); border-radius: var(--radius-input); text-align: center; overflow: hidden; }
.artifact-preview > img { max-width: 100%; max-height: 328px; width: auto; margin-inline: auto; object-fit: contain; }
.artifact-preview video { width: 100%; max-height: 450px; margin-inline: auto; object-fit: contain; }
.checker { background-color: var(--color-surface); background-image: conic-gradient(var(--color-checker) 25%, transparent 0 50%, var(--color-checker) 0 75%, transparent 0); background-size: 16px 16px; }
.download { display: inline-flex; align-items: center; min-height: 40px; margin-top: var(--space-sm); padding: var(--space-xs) var(--space-md); color: var(--color-accent); background: var(--color-paper-2); border-radius: var(--radius-input); font-size: var(--text-sm); text-decoration: none; white-space: nowrap; }
.download:hover { background: var(--color-accent-soft); }
.download-status { margin-top: var(--space-xs); color: var(--color-muted); font-size: var(--text-xs); }
.download-status.error { color: var(--color-error); }
.preview-toggle { font-size: var(--text-xs); color: var(--color-accent); margin-top: var(--space-sm); }
.media-reprocess, .branch form { display: grid; gap: var(--space-sm); margin-top: var(--space-lg); padding-top: var(--space-md); border-top: 1px solid var(--color-rule); }
.media-reprocess label, .branch form label { display: grid; gap: var(--space-xs); min-width: 0; }
.branch textarea { width: 100%; min-height: 112px; resize: vertical; }
.branch form p { font-size: var(--text-sm); color: var(--color-muted); }
.delivery-note { padding-top: var(--space-lg); margin-top: var(--space-lg); border-top: 1px solid var(--color-rule); }
.wear-preview-group { display: grid; justify-items: center; gap: var(--space-sm); width: 100%; }
.avatar-preview { position: relative; isolation: isolate; width: 328px; height: 328px; max-width: 100%; }
.avatar-preview > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.avatar-preview > .wear-frame { z-index: 1; }
.avatar-preview > .wear-portrait { inset: 11.58536585%; width: 76.8292683%; height: 76.8292683%; border-radius: 50%; object-fit: cover; }
.wear-preview-mini { width: 80px; height: 80px; overflow: hidden; }
.wear-preview-mini .avatar-preview { width: 328px; height: 328px; max-width: none; transform: scale(.243902439); transform-origin: top left; }
.wear-preview-group > p { font-size: var(--text-xs); color: var(--color-muted); }
.svga-preview { min-height: 380px; padding: var(--space-md); }
.svga-preview > canvas { display: block; width: min(100%,328px); height: auto; margin-inline: auto; }
.svga-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-xs); margin-top: var(--space-md); }
.svga-controls button { background: var(--color-surface); color: var(--color-ink); font-size: var(--text-xs); }
.svga-controls button[aria-pressed="true"] { background: var(--color-accent-soft); color: var(--color-accent); }
.svga-status { font-size: var(--text-xs); margin-top: var(--space-sm); }
.svga-preview.light { background: var(--color-preview-light); color: var(--color-ink); }
.svga-preview.dark { background: var(--color-preview-dark); color: var(--color-paper); }
.svga-preview.dark .svga-status { color: var(--color-paper); }
.svga-preview.portrait { background: var(--color-paper-2); }
.svga-preview > .svga-mini { width: 80px; height: 80px; margin-top: var(--space-md); }
#passwordDialog, #setupDialog, #confirmDialog { width: min(480px, calc(100% - var(--space-lg)*2)); }
#passwordDialog > p, .setup-description, #confirmDialog > p { color: var(--color-muted); font-size: var(--text-sm); line-height: 1.65; margin-bottom: var(--space-md); }
#setupForm, #loginForm { display: grid; gap: var(--space-md); }
#setupForm label, #loginForm label { display: grid; gap: var(--space-xs); }
#credentialText { padding: var(--space-md); background: var(--color-paper-2); border-radius: var(--radius-input); white-space: pre-wrap; overflow-wrap: anywhere; font: var(--text-sm)/1.7 var(--font-body); }
.confirm-actions { display: flex; justify-content: end; gap: var(--space-sm); margin-top: var(--space-lg); }

.login-shell { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); min-height: 100dvh; background: var(--color-surface); }
.login-story { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-xl); padding: var(--space-2xl); background: var(--color-ink); color: var(--color-paper); }
.login-story .wordmark, .login-story h1 { color: var(--color-paper); }
.login-story .wordmark { font-size: 36px; }
.story-copy { margin-block: auto; padding-block: var(--space-xl); }
.story-copy h1 { font-size: 36px; line-height: 1.5; max-width: 20ch; }
.story-copy p { font-size: var(--text-md); margin-top: var(--space-lg); color: var(--color-paper-3); }
.story-foot { font-size: var(--text-sm); color: var(--color-paper-3); }
.orb { display: none; }
.login-panel { display: flex; flex-direction: column; justify-content: center; padding: var(--space-xl); }
.login-form { width: 100%; max-width: 360px; margin-inline: auto; }
.login-form h2 { font-size: var(--text-2xl); margin-bottom: var(--space-sm); }
.login-form > .muted { margin-bottom: var(--space-lg); font-size: var(--text-sm); }
#feishuLogin { margin-bottom: var(--space-lg); }
.sso-note { margin-top: var(--space-sm); font-size: var(--text-xs); text-align: center; color: var(--color-muted); }
#passwordLogin { border-top: 1px solid var(--color-rule); padding-top: var(--space-xs); }
#passwordLogin > summary { font-size: var(--text-sm); }
#loginForm { padding-top: var(--space-md); }
.password-input { display: flex; position: relative; }
.password-input input { width: 100%; padding-right: var(--space-xl); }
.password-input button { position: absolute; right: 0; top: 0; width: 40px; min-height: 40px; }
.setup-link { font-size: var(--text-sm); color: var(--color-accent); }
.login-note { border-top: 1px solid var(--color-rule); padding-top: var(--space-lg); margin-top: var(--space-lg); color: var(--color-muted); font-size: var(--text-xs); }
.login-note i { display: none; }
.login-bottom { width: 100%; max-width: 360px; margin: var(--space-lg) auto 0; color: var(--color-muted); font-size: var(--text-xs); line-height: 1.7; }
.sso-message { margin-bottom: var(--space-md); color: var(--color-warning); font-size: var(--text-sm); line-height: 1.65; }

@media (max-width: 75rem) {
  :root { --gutter: 24px; --settings-width: 304px; }
  .composer-body { gap: var(--space-lg); }
  .settings-column { padding: var(--space-md); }
  .static-frame-layout-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 60rem) {
  :root { --gutter: 24px; }
  .workspace { grid-template-columns: minmax(0,1fr); }
  .sidebar { z-index: var(--z-sticky-nav); display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: var(--space-md); width: 100%; height: auto; min-height: 64px; padding: var(--space-xs) var(--gutter); border-right: 0; border-bottom: 1px solid var(--color-rule); }
  .sidebar .wordmark { padding: 0; font-size: 26px; }
  .sidebar-sub { display: none; }
  .sidebar nav { display: flex; align-items: center; justify-content: end; gap: var(--space-2xs); margin: 0; }
  .sidebar .nav-item { width: auto; min-height: 44px; padding: var(--space-xs) var(--space-sm); }
  .sidebar .nav-item b { display: none; }
  .sidebar .user-panel { margin: 0; padding: 0; border: 0; }
  .sidebar .user-panel > div { display: none; }
  .topbar { min-height: 48px; }
  .composer-body { grid-template-columns: minmax(0,1fr) 304px; }
  .branch-grid { grid-template-columns: minmax(0,1fr); }
  .branch + .branch { border-left: 0; border-top: 1px solid var(--color-rule); padding: var(--space-lg) 0 0; }
  .login-story { padding: var(--space-xl); }
  .story-copy h1 { font-size: var(--text-3xl); }
}
@media (max-width: 48rem) {
  .composer-body { grid-template-columns: minmax(0,1fr); }
  .settings-column { padding: var(--space-lg); }
  .parameter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #gptOptions .parameter-grid > label:first-child, #gptMotionModelLabel { grid-column: 1/-1; }
  .job-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sidebar .nav-full { display: none; }
  .sidebar .nav-short { display: block; font-size: var(--text-xs); }
  .sidebar .nav-item { flex-direction: column; justify-content: center; gap: var(--space-2xs); padding: var(--space-xs); }
  .sidebar .nav-icon svg { width: 20px; height: 20px; }
  .admin-toolbar { align-items: start; }
  .create-user-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .create-user-form button { justify-self: start; }
  .table-scroll table { min-width: 760px; }
  .table-scroll th:first-child, .table-scroll td:first-child { position: sticky; left: 0; z-index: var(--z-raised); width: 140px; max-width: 140px; background: var(--color-paper); }
  .table-scroll th:last-child, .table-scroll td:last-child { position: sticky; right: 0; z-index: var(--z-raised); width: 128px; max-width: 128px; background: var(--color-paper); }
  .table-scroll th { background: var(--color-paper-2); }
  .table-scroll td:first-child small { max-width: 116px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .table-scroll td:last-child button { display: block; width: 100%; text-align: left; justify-content: start; }
  .filter-bar { align-items: stretch; gap: var(--space-sm); }
  #historyFilters { flex-basis: 100%; }
  .filter-bar input { flex: 1; width: 0; }
  .login-shell { grid-template-columns: minmax(0,1fr); }
  .login-story { min-height: 220px; padding: var(--space-lg); gap: var(--space-lg); }
  .story-copy { margin: 0; padding: 0; }
  .story-copy h1 { font-size: var(--text-2xl); line-height: 1.5; }
  .story-copy p, .story-foot { display: none; }
  .login-panel { padding: var(--space-xl) var(--space-lg); }
}
@media (max-width: 34rem) {
  :root { --gutter: 16px; --gap-columns: 16px; }
  input, select, textarea { font-size: var(--text-md); }
  .sidebar { gap: var(--space-xs); padding-inline: var(--space-sm); }
  .sidebar .wordmark { font-size: 24px; gap: var(--space-2xs); }
  .sidebar .brand-mark { display: none; }
  .sidebar nav { gap: 0; }
  .sidebar .nav-item { min-width: 44px; padding: var(--space-2xs) var(--space-xs); }
  .sidebar #logout { min-width: 28px; width: 28px; }
  .topbar { gap: var(--space-xs); font-size: var(--text-xs); }
  .topbar > div:first-child { gap: var(--space-xs); }
  .topbar > div:first-child > span { display: none; }
  .topbar b { display: none; }
  .page { padding-top: var(--space-md); }
  .page-heading h1 { font-size: var(--text-2xl); }
  .mode-tabs { gap: var(--space-md); }
  .mode-tabs button { font-size: var(--text-sm); }
  .panel-heading { flex-direction: column; gap: var(--space-xs); }
  .panel-heading h2 { font-size: var(--text-lg); }
  .editor { min-height: 200px; }
  .editor-toolbar #imageCounter { display: none; }
  .editor-hint { font-size: var(--text-xs); }
  .settings-column { padding: var(--space-md); }
  .parameter-grid { grid-template-columns: minmax(0,1fr); }
  .output-options > .parameter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .route-choices small { font-size: var(--text-xs); }
  .route-choices > label { gap: var(--space-2xs); padding-inline: var(--space-2xs); }
  .model-actions { flex-direction: column; }
  .composer-bottom { align-items: center; }
  .composer-bottom > span { max-width: 120px; }
  .composer-bottom .primary { min-width: 120px; padding-inline: var(--space-md); }
  .job-preview { min-height: 144px; }
  .job-preview > img { height: 120px; }
  .job-preview > .avatar-preview { width: 120px; height: 120px; }
  .job-meta { padding: var(--space-sm); }
  .job-meta p { display: block; }
  .job-meta p > span { display: block; }
  .section-heading { align-items: start; }
  .section-heading p { display: none; }
  .media-tool { grid-template-columns: minmax(0,1fr); padding: var(--space-md); gap: var(--space-md); }
  .media-tool > p, .media-tool > fieldset { grid-column: auto; }
  .stat { padding-inline: var(--space-sm); }
  .stat p { font-size: var(--text-xs); }
  .stat b { font-size: var(--text-xl); }
  .admin-toolbar { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: var(--space-xs); }
  .admin-tabs { gap: var(--space-2xs); }
  .admin-tabs button { font-size: var(--text-xs); padding-inline: var(--space-xs); }
  .create-user-form { grid-template-columns: minmax(0,1fr); }
  .audit-row { flex-wrap: wrap; gap: var(--space-xs); }
  .audit-row > span:first-child { flex-basis: 100%; }
  .admin-pagination { justify-content: center; }
  .pagination-controls { gap: var(--space-2xs); }
  .pagination-controls button { padding-inline: var(--space-xs); }
  dialog { width: calc(100% - var(--space-md)*2); max-height: 92dvh; padding: var(--space-md); }
  #jobDialog .dialog-head { padding: var(--space-sm) var(--space-md); }
  #jobDetail { padding: var(--space-md); max-height: calc(92dvh - 65px); }
  .artifact-preview { padding: var(--space-xs); }
  .wear-preview-group > .avatar-preview { width: 100%; max-width: 328px; height: auto; aspect-ratio: 1; }
  .svga-controls { gap: var(--space-2xs); }
  .svga-controls button { padding-inline: var(--space-xs); }
  footer { align-items: start; flex-direction: column; gap: var(--space-xs); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.delivery-notice { margin-block: var(--space-lg); padding-block: var(--space-md); border-block: 1px solid var(--color-rule); }
.delivery-notice h4 { margin: 0 0 var(--space-xs); font-size: var(--text-sm); }
.delivery-notice p { margin-block: var(--space-xs); font-size: var(--text-sm); line-height: 1.55; }
.delivery-notice small { color: var(--color-muted); font-size: var(--text-xs); }
.detail-brief { margin: var(--space-sm) 0 var(--space-lg); padding-bottom: var(--space-md); border-bottom: 1px solid var(--color-rule); }
.detail-brief > summary { color: var(--color-muted); font-size: var(--text-sm); cursor: pointer; }
.detail-brief .detail-prompt { margin-top: var(--space-sm); }

/* Keep native selection and keyboard behavior, with a consistent inset arrow. */
select:not([multiple]) { appearance: none; padding-inline-end: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--color-ink-2) 50%), linear-gradient(135deg, var(--color-ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
select:disabled { background-image: none; }
.static-layout-preview { position: relative; flex: 0 0 72px; width: 72px; height: 72px; isolation: isolate; }
.static-layout-preview > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.static-layout-preview > .static-layout-portrait { inset: 11.58536585%; width: 76.8292683%; height: 76.8292683%; border-radius: 50%; object-fit: cover; }
.static-frame-layout-card small { text-align: center; line-height: 1.4; }

.prompt-optimize-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); margin-top: var(--space-xs); }
.prompt-optimize-preview { display: grid; gap: var(--space-xs); margin-top: var(--space-sm); padding-block: var(--space-md); border-block: 1px solid var(--color-rule); }
.prompt-optimize-preview textarea { width: 100%; resize: vertical; min-height: 180px; }
.version-count { display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: center; margin-block: var(--space-md); color: var(--color-ink-2); font-size: var(--text-sm); }
.version-count select { width: 96px; }
#providerModeSettings, #providerVideoSettings { margin-bottom: var(--space-md); }
#providerVideoSettings .check-label { margin-top: var(--space-sm); }

.room-preview-options { margin-top: var(--space-lg); padding-block: var(--space-md); border-top: 1px solid var(--color-rule); }
.room-preview-section { display: grid; gap: var(--space-sm); margin-top: var(--space-md); justify-items: center; }
.voice-room-stage { position: relative; isolation: isolate; width: min(100%,300px); aspect-ratio: 375 / 812; overflow: clip; border-radius: var(--radius-card); background: var(--color-preview-dark); }
.voice-room-stage > img, .voice-room-stage > video, .voice-room-stage > canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.voice-room-stage > video, .voice-room-stage > canvas { z-index: 3; object-position: center bottom; }
.voice-room-stage > canvas { max-height: none; max-width: none; margin: 0; }
.voice-room-stage > .voice-room-interface { z-index: 2; pointer-events: none; }

.video-enhancements { padding-top: var(--space-md); margin-top: var(--space-lg); border-top: 1px solid var(--color-rule); }
.enhancement-content { margin-top: var(--space-md); }
.enhancement-form, .enhancement-form label { display: grid; gap: var(--space-xs); }
.enhancement-form { gap: var(--space-md); }
.enhancement-form .check-label { display: flex; }
.enhancement-form textarea { width: 100%; resize: vertical; min-height: 110px; }

.video-remake { margin-top: var(--space-md); padding-top: var(--space-md); border-top: 1px solid var(--color-rule); }
#klingModelLabel { margin-bottom: var(--space-md); }

.alpha-video-canvas { display:block; max-width:100%; max-height:560px; width:auto; height:auto; margin-inline:auto; object-fit:contain; }

.feishu-login[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
