:root { color-scheme: light; font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; background: #f1f3f6; color: #1a1e27; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; background: #f1f3f6; }
body { min-width: 320px; min-height: 100vh; margin: 0; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }

.studio-app { display: grid; grid-template-columns: 62px 248px minmax(0, 1fr); width: 100%; min-height: 100vh; background: #f1f3f6; }
.app-rail { display: flex; position: sticky; top: 0; height: 100vh; flex-direction: column; align-items: center; gap: 18px; overflow-y: auto; border-right: 1px solid #edf0f3; background: #fff; padding: 18px 8px; scrollbar-width: none; }
.app-rail::-webkit-scrollbar { display: none; }
.app-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 11px; text-decoration: none; }
.app-mark img { display: block; width: 40px; height: 37px; object-fit: contain; }
.rail-button { display: grid; width: 46px; justify-items: center; gap: 4px; border: 0; border-radius: 10px; padding: 7px 3px; color: #5b6370; background: transparent; font-size: 10px; text-decoration: none; }
.rail-button .ti { font-size: 17px; }
.rail-button:hover, .rail-button.selected { color: #141820; background: #f0f2f5; }
.rail-divider { width: 30px; height: 1px; margin: -4px 0; background: #edf0f3; }
.studio-app.tool-mode { grid-template-columns: 62px minmax(0, 1fr); }
.studio-app.single-column-mode { grid-template-columns: 62px minmax(0, 1fr); }
.studio-app.assets-mode .workspace-header { display: none; }

.conversation-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 1px solid #e9edf1; background: #fff; padding: 21px 13px; }
.conversation-sidebar-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 3px 12px; color: #2a303b; font-size: 14px; }
.icon-button { display: inline-grid; width: 31px; height: 31px; place-items: center; border: 0; border-radius: 8px; color: #4f5762; background: transparent; }
.icon-button:hover { background: #f1f3f5; }
.new-conversation-button { display: flex; width: 100%; align-items: center; gap: 8px; border: 0; border-radius: 9px; padding: 9px 10px; color: #343a45; background: #f4f5f7; font-size: 13px; text-align: left; }
.new-conversation-button:hover { background: #e9edf2; }
.conversation-label { margin: 22px 8px 8px; color: #9aa1ab; font-size: 11px; font-weight: 700; }
.conversation-list { display: grid; gap: 4px; }
.conversation-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px; min-width: 0; }
.conversation-row.history-row { margin-top: 10px; padding-top: 10px; border-top: 1px solid #edf0f3; }
.conversation-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 7px; width: 100%; min-width: 0; border: 0; border-radius: 9px; padding: 7px; color: #515965; background: transparent; text-align: left; }
button.conversation-item:hover, .conversation-row.selected .conversation-item { color: #202632; background: #eef1f4; }
.conversation-item.editing { padding-right: 4px; background: #f4f6f8; }
.conversation-item-icon { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 7px; color: #5a6472; background: #fff; box-shadow: inset 0 0 0 1px #e7eaee; }
.conversation-item-title { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.conversation-item-count { display: inline-flex; align-items: center; justify-content: center; min-width: 31px; border: 1px solid #e5e8ec; border-radius: 99px; padding: 3px 5px; color: #7d8793; background: #fff; font-size: 10px; font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; }
.conversation-row.selected .conversation-item-count { border-color: #d7dde4; color: #3f4956; }
.conversation-actions { display: flex; align-items: center; gap: 1px; }
.conversation-action { display: grid; width: 25px; height: 25px; place-items: center; border: 0; border-radius: 7px; padding: 0; color: #77808c; background: transparent; font-size: 14px; }
.conversation-action:hover { color: #38414d; background: #eef1f4; }
.conversation-action.danger:hover { color: #b64051; background: #fff0f2; }
.conversation-rename-input { width: 100%; min-width: 0; border: 1px solid #b9c9d9; border-radius: 6px; padding: 4px 6px; outline: 0; color: #303946; background: #fff; font-size: 12px; }
.conversation-rename-input:focus { border-color: #7195bb; box-shadow: 0 0 0 2px rgba(112, 148, 184, .15); }
.conversation-empty { margin: 8px; color: #9aa1aa; font-size: 12px; }

.workspace { position: relative; isolation: isolate; min-width: 0; min-height: 100vh; padding: 22px 40px 38px; background: #f1f3f6; }
.workspace::before { position: absolute; z-index: -1; top: 0; right: 0; left: 0; height: 900px; background: linear-gradient(to bottom, rgba(241, 243, 246, 0) 68%, rgba(241, 243, 246, .82) 88%, #f1f3f6 96%), url('/assets/workbench-dreamscape-composite-v3.webp') center top / cover no-repeat; content: ''; pointer-events: none; }
.workspace-header { display: flex; align-items: center; justify-content: space-between; max-width: 1280px; margin: 0 auto 36px; }
.workspace-heading { display: flex; min-width: 0; align-items: center; gap: 15px; }
.workspace-brand { display: flex; flex: 0 0 auto; align-items: center; color: #171a2b; text-decoration: none; }
.workspace-brand > img { display: block; width: 210px; height: auto; }
.workspace-brand-divider { width: 1px; height: 42px; background: rgba(83, 91, 109, .18); }
.workspace-heading h1 { overflow: hidden; color: #4f5767; font-size: 17px; font-weight: 720; letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }
.eyebrow { margin: 0 0 5px; color: #96a0ad; font-size: 11px; font-weight: 750; letter-spacing: .12em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; color: #1b202a; font-size: 22px; letter-spacing: -.03em; }
h2 { margin-bottom: 0; font-size: 17px; }
h3 { margin-bottom: 0; font-size: 14px; }
.status { display: inline-flex; align-items: center; border: 1px solid #e2e5ea; border-radius: 99px; padding: 5px 9px; color: #7e8490; background: #fff; font-size: 12px; white-space: nowrap; }
.status.success { color: #16824b; border-color: #b7e6cb; background: #f5fffa; }
.status.error { color: #ba3048; border-color: #f2c1ca; background: #fff8f8; }
.status.muted { color: #8d929d; }

.ai-tool-workspace { max-width: 1180px; margin: 8vh auto 70px; }
.ai-tool-heading { display: grid; justify-items: center; margin-bottom: 24px; text-align: center; }
.ai-tool-kicker, .ai-tool-heading p { display: none; }
.ai-tool-tabs { --ai-tool-tab-index: 0; position: relative; isolation: isolate; display: grid; width: min(340px, 100%); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; margin: -4px auto 20px; padding: 4px; border: 1px solid rgba(255,255,255,.62); border-radius: 999px; background: rgba(255,255,255,.32); box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 10px 28px rgba(46, 70, 120, .12); backdrop-filter: blur(16px) saturate(145%); -webkit-backdrop-filter: blur(16px) saturate(145%); }
.ai-tool-tabs::before { content: ""; position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 2); border: 1px solid rgba(255,255,255,.42); border-radius: 999px; background: linear-gradient(135deg, rgba(40,100,232,.92), rgba(29,88,211,.84)); box-shadow: 0 7px 18px rgba(40,100,232,.22), inset 0 1px 0 rgba(255,255,255,.24); transform: translateX(calc(var(--ai-tool-tab-index) * 100%)); transition: transform .26s cubic-bezier(.22, 1, .36, 1); pointer-events: none; }
.ai-tool-heading h2 { color: #202631; font-size: 28px; letter-spacing: -.035em; }
.workbench-title-image { display: block; width: 270px; max-width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 7px 18px rgba(31, 59, 121, .08)); }
.ai-tool-tab { position: relative; z-index: 1; display: inline-flex; min-width: 0; min-height: 48px; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 9px 14px; color: #3a4a6e; background: transparent; box-shadow: none; font-size: 14px; font-weight: 700; white-space: nowrap; transition: color .2s ease, background .2s ease; }
.ai-tool-tab:hover { color: #183b80; background: rgba(255,255,255,.2); }
.ai-tool-tab.selected { color: #fff; background: transparent; box-shadow: none; }
.ai-tool-tab:focus-visible { outline: 3px solid rgba(40, 100, 232, .3); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .ai-tool-tabs::before { transition: none; } }
@media (prefers-reduced-transparency: reduce) { .ai-tool-tabs { background: #edf3fb; backdrop-filter: none; -webkit-backdrop-filter: none; } .ai-tool-tabs::before { background: #2864e8; } .ai-tool-card, .ai-character-card, .creator-tool-card { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; } .ai-character-settings, .creator-tool-settings { background: #fafbfd; } }
.ai-tool-card { display: grid; grid-template-columns: minmax(360px, .95fr) minmax(440px, 1.05fr); gap: 32px; border: 1px solid rgba(255,255,255,.76); border-radius: 20px; padding: 28px; background: linear-gradient(135deg, rgba(255,255,255,.66), rgba(245,249,255,.48)); box-shadow: inset 0 1px 0 rgba(255,255,255,.66), 0 22px 58px rgba(46, 68, 108, .13); backdrop-filter: blur(24px) saturate(135%); -webkit-backdrop-filter: blur(24px) saturate(135%); }
.ai-tool-workspace[data-tool-suite="watermark"] { max-width: 1240px; }
.ai-tool-workspace[data-tool-suite="watermark"] .ai-tool-card { min-height: 430px; grid-template-columns: minmax(400px, 1fr) minmax(440px, 1fr); }
.ai-tool-source-column, .ai-tool-settings-column { min-width: 0; }
.ai-tool-source-column { display: flex; flex-direction: column; }
.ai-tool-upload { display: grid; width: 100%; min-height: 286px; place-items: center; align-content: center; gap: 9px; border: 1px dashed #cfd6e0; border-radius: 16px; color: #44505f; background: linear-gradient(145deg, #fafbfd, #f5f7fa); }
.ai-tool-upload:hover { border-color: #88b8e8; background: #f5faff; }
.ai-tool-upload-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 15px; color: #2f7ed8; background: #eaf4ff; font-size: 22px; }
.ai-tool-upload strong { font-size: 15px; }
.ai-tool-upload small { color: #8a929e; font-size: 11px; }
.ai-tool-preview { overflow: hidden; border: 1px solid #e6e9ee; border-radius: 16px; background: #f4f6f8; }
.ai-tool-preview > img, .ai-tool-preview > video { display: block; width: 100%; height: 250px; object-fit: contain; background: #20242c; }
.ai-tool-preview > video[hidden], .ai-tool-preview > img[hidden] { display: none; }
.ai-tool-source-meta { display: grid; gap: 3px; padding: 11px 13px 5px; color: #3d4652; font-size: 12px; }
.ai-tool-source-meta span:last-child { color: #8a929d; font-size: 11px; }
.ai-tool-source-actions { display: flex; gap: 7px; padding: 7px 11px 12px; }
.ai-tool-source-actions button { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #e1e5ea; border-radius: 8px; padding: 6px 8px; color: #57616e; background: #fff; font-size: 12px; }
.ai-tool-source-actions button.danger { color: #b53e51; border-color: #f0d7dc; background: #fff8f9; }
.ai-tool-settings-column { display: flex; min-height: 286px; flex-direction: column; }
.ai-tool-model-line { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding-bottom: 16px; border-bottom: 1px solid #edf0f3; }
.ai-tool-model-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: #2f7ed8; background: #eef6ff; font-size: 20px; }
.ai-tool-model-line > span:nth-child(2) { display: grid; gap: 4px; }
.ai-tool-model-line strong { color: #2a313d; font-size: 14px; }
.ai-tool-model-line small { color: #858e9a; font-size: 11px; line-height: 1.45; }
.ai-tool-settings-toggle { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; gap: 6px; border: 1px solid #d9e1ea; border-radius: 9px; padding: 8px 10px; color: #4c5969; background: #fff; font-size: 12px; white-space: nowrap; transition: border-color .16s ease, color .16s ease, background .16s ease, box-shadow .16s ease; }
.ai-tool-settings-toggle:hover, .ai-tool-settings-toggle:focus-visible { border-color: #9fc2eb; color: #1d6ec1; background: #f6faff; outline: none; box-shadow: 0 0 0 3px rgba(47, 126, 216, .09); }
.ai-tool-settings-summary { margin: 22px 0; color: #737e8d; font-size: 12px; line-height: 1.7; }
.ai-tool-settings-summary[hidden], .ai-tool-settings-toggle[hidden] { display: none; }
.ai-tool-settings-inline { min-width: 0; }
.ai-tool-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 17px 0; }
.ai-tool-field { display: grid; gap: 6px; color: #646d79; font-size: 11px; }
.ai-tool-field.wide { grid-column: 1 / -1; }
.ai-tool-field-label { display: flex; min-height: 18px; align-items: center; gap: 5px; color: #596270; font-weight: 650; }
.ai-tool-field-label label { cursor: pointer; }
.ai-tool-help { position: relative; display: inline-grid; width: 17px; height: 17px; flex: 0 0 17px; place-items: center; border: 0; padding: 0; color: #8c96a3; background: transparent; font-size: 13px; line-height: 1; }
.ai-tool-help:hover, .ai-tool-help:focus-visible, .ai-tool-help.open { color: #2f7ed8; outline: none; }
.ai-tool-help::after { position: absolute; z-index: 30; right: calc(100% + 9px); bottom: 50%; width: min(270px, 62vw); border-radius: 7px; padding: 9px 11px; color: #fff; background: #252a31; box-shadow: 0 8px 24px rgba(20, 26, 34, .22); content: attr(data-tooltip); font-size: 11px; font-weight: 500; line-height: 1.55; text-align: left; white-space: normal; opacity: 0; pointer-events: none; transform: translate(4px, 50%); transition: opacity .15s ease, transform .15s ease; }
.ai-tool-help::before { position: absolute; z-index: 31; right: calc(100% + 3px); bottom: 50%; border: 5px solid transparent; border-left-color: #252a31; content: ''; opacity: 0; pointer-events: none; transform: translateY(50%); transition: opacity .15s ease; }
.ai-tool-help:hover::after, .ai-tool-help:hover::before, .ai-tool-help:focus-visible::after, .ai-tool-help:focus-visible::before, .ai-tool-help.open::after, .ai-tool-help.open::before { opacity: 1; }
.ai-tool-help:hover::after, .ai-tool-help:focus-visible::after, .ai-tool-help.open::after { transform: translate(0, 50%); }
.ai-tool-field select, .ai-tool-field input, .ai-tool-field textarea { width: 100%; border: 1px solid #e0e4e9; border-radius: 9px; padding: 9px 10px; color: #303844; background: #fff; font: inherit; font-size: 12px; }
.ai-tool-field textarea { min-height: 72px; resize: vertical; line-height: 1.55; }
.ai-tool-scene-field { gap: 8px; }
.ai-tool-scene-field > select.sr-only { position: absolute; }
.ai-tool-scene-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.ai-tool-scene-option { position: relative; display: grid; min-width: 0; gap: 6px; overflow: hidden; border: 1px solid #e0e5eb; border-radius: 11px; padding: 5px 5px 7px; color: #5f6875; background: #fff; text-align: center; transition: border-color .16s ease, color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease; }
.ai-tool-scene-option:hover { border-color: #a9c8ea; color: #2c679e; background: #f7fbff; transform: translateY(-1px); }
.ai-tool-scene-option:focus-visible { border-color: #78ace2; outline: none; box-shadow: 0 0 0 3px rgba(47, 126, 216, .12); }
.ai-tool-scene-option.selected { color: #1d63a5; border-color: #72aae1; background: #f1f8ff; box-shadow: 0 0 0 2px rgba(47, 126, 216, .1); }
.ai-tool-scene-option img { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 7px; object-fit: cover; background: #eef1f4; }
.ai-tool-scene-option strong { overflow: hidden; font-size: 10px; font-weight: 720; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.ai-tool-scene-option .ti { position: absolute; top: 9px; right: 9px; display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; color: transparent; background: transparent; font-size: 12px; transition: color .16s ease, background .16s ease; }
.ai-tool-scene-option.selected .ti { color: #fff; background: #2f7ed8; box-shadow: 0 2px 7px rgba(28, 92, 157, .3); }
.ai-tool-range-line { display: grid; grid-template-columns: minmax(0, 1fr) 48px; align-items: center; gap: 8px; }
.ai-tool-range-line output { color: #2f6faa; font-size: 12px; text-align: right; }
.ai-tool-check { display: flex; align-items: center; gap: 7px; min-height: 38px; color: #4e5865; font-size: 12px; }
.ai-tool-check label { cursor: pointer; }
.ai-tool-check input { width: auto; }
.ai-tool-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 14px; border-top: 1px solid #edf0f3; }
.ai-tool-price { color: #6d7682; font-size: 12px; line-height: 1.5; }
.ai-tool-submit-row .create-button:disabled { cursor: not-allowed; color: #9ca3ad; background: #e8eaee; box-shadow: none; }
.ai-tool-status { margin: 10px 0 0; color: #8a929d; font-size: 12px; line-height: 1.55; }
.ai-tool-status.success { color: #177d4b; }
.ai-tool-status.error { color: #b63f52; }
.ai-tool-settings-dialog { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: hidden; border: 0; border-radius: 20px; padding: 0; color: #29313c; background: #fff; box-shadow: 0 24px 70px rgba(21, 30, 43, .22); }
.ai-tool-settings-dialog::backdrop { background: rgba(31, 40, 53, .42); backdrop-filter: blur(3px); }
.ai-tool-settings-dialog-shell { display: flex; max-height: calc(100vh - 32px); flex-direction: column; }
.ai-tool-settings-dialog-header { display: grid; grid-template-columns: 42px minmax(0, 1fr) 34px; align-items: center; gap: 12px; padding: 21px 24px 18px; border-bottom: 1px solid #edf0f3; }
.ai-tool-settings-dialog-header > div { min-width: 0; }
.ai-tool-settings-dialog-header strong { display: block; color: #252d39; font-size: 16px; }
.ai-tool-settings-dialog-header p { margin: 5px 0 0; color: #858e9a; font-size: 11px; line-height: 1.55; }
.ai-tool-settings-dialog-close { display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 9px; padding: 0; color: #7b8592; background: #f4f6f8; font-size: 18px; }
.ai-tool-settings-dialog-close:hover, .ai-tool-settings-dialog-close:focus-visible { color: #26303e; background: #e9edf2; outline: none; }
.ai-tool-settings-dialog-body { min-height: 0; flex: 1 1 auto; overflow: auto; padding: 2px 24px 0; }
.ai-tool-settings-dialog .ai-tool-settings { padding: 20px 0 22px; }
@media (min-width: 901px) {
  .ai-tool-settings-dialog .ai-tool-field.wide .ai-tool-help::after,
  .ai-tool-settings-dialog .ai-tool-settings > :nth-child(odd) .ai-tool-help::after { right: auto; left: calc(100% + 9px); transform: translate(-4px, 50%); }
  .ai-tool-settings-dialog .ai-tool-field.wide .ai-tool-help::before,
  .ai-tool-settings-dialog .ai-tool-settings > :nth-child(odd) .ai-tool-help::before { right: auto; left: calc(100% + 3px); border-right-color: #252a31; border-left-color: transparent; }
  .ai-tool-settings-dialog .ai-tool-field.wide .ai-tool-help:hover::after,
  .ai-tool-settings-dialog .ai-tool-field.wide .ai-tool-help:focus-visible::after,
  .ai-tool-settings-dialog .ai-tool-field.wide .ai-tool-help.open::after,
  .ai-tool-settings-dialog .ai-tool-settings > :nth-child(odd) .ai-tool-help:hover::after,
  .ai-tool-settings-dialog .ai-tool-settings > :nth-child(odd) .ai-tool-help:focus-visible::after,
  .ai-tool-settings-dialog .ai-tool-settings > :nth-child(odd) .ai-tool-help.open::after { transform: translate(0, 50%); }
}
.ai-tool-settings-dialog-footer { display: flex; flex: 0 0 auto; justify-content: flex-end; gap: 9px; border-top: 1px solid #edf0f3; padding: 15px 24px; background: #fbfcfd; }
.ai-tool-settings-dialog-secondary, .ai-tool-settings-dialog-primary { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; padding: 8px 17px; font-size: 12px; font-weight: 720; }
.ai-tool-settings-dialog-secondary { border: 1px solid #dfe4ea; color: #596473; background: #fff; }
.ai-tool-settings-dialog-primary { border: 1px solid #171b25; color: #fff; background: #171b25; }
.ai-tool-settings-dialog-secondary:hover { border-color: #bcc8d5; color: #273243; }
.ai-tool-settings-dialog-primary:hover { background: #303642; }
.ai-tool-result { overflow: hidden; max-width: 1180px; margin: 18px auto 0; border: 1px solid #e2e7ed; border-radius: 18px; padding: 18px; background: #fff; box-shadow: 0 14px 34px rgba(31, 39, 51, .07); }
.ai-tool-result-heading { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.ai-tool-result-heading > div { min-width: 0; }
.ai-tool-result-heading strong { display: block; color: #29313c; font-size: 14px; }
.ai-tool-result-heading p { margin: 4px 0 0; color: #7c8693; font-size: 11px; line-height: 1.55; }
.ai-tool-result-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: #2f7ed8; background: #edf6ff; font-size: 20px; }
.ai-tool-result-icon.processing .ti { animation: ai-tool-result-spin .9s linear infinite; }
.ai-tool-result-icon.success { color: #17804c; background: #ecfaf3; }
.ai-tool-result-icon.error { color: #bc3b51; background: #fff0f2; }
.ai-tool-result-progress { overflow: hidden; height: 5px; margin-top: 15px; border-radius: 99px; background: #edf0f4; }
.ai-tool-result-progress > span { display: block; width: 0; height: 100%; border-radius: inherit; background: #2f7ed8; transition: width .28s ease; }
.ai-tool-result-progress.indeterminate > span { width: 38% !important; animation: commercial-progress 1.35s ease-in-out infinite; }
.ai-tool-result-progress.failed > span { background: #c34b5d; }
.ai-tool-result-media { overflow: hidden; margin-top: 16px; border: 1px solid #e7eaee; border-radius: 14px; background: #20242c; }
.ai-tool-result-output { display: block; width: 100%; max-height: 560px; object-fit: contain; background: #20242c; }
.ai-tool-result-media audio.ai-tool-result-output { min-height: 54px; padding: 14px; background: #f6f8fa; }
.ai-tool-result-error { margin: 13px 0 0; border-radius: 10px; padding: 10px 12px; color: #a92f45; background: #fff3f5; font-size: 12px; line-height: 1.55; }
.ai-tool-result-error.warning { color: #966611; background: #fff9e9; }
.ai-tool-result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ai-tool-result-actions:empty { display: none; }
@keyframes ai-tool-result-spin { to { transform: rotate(360deg); } }
.ai-tool-history { max-width: 1180px; margin: 18px auto 0; border: 1px solid #e4e8ed; border-radius: 18px; padding: 18px; background: #fff; box-shadow: 0 12px 30px rgba(31, 39, 51, .055); }
.ai-tool-history-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.ai-tool-history-heading > div { min-width: 0; }
.ai-tool-history-kicker { display: block; margin-bottom: 4px; color: #2e7ed8; font-size: 10px; font-weight: 780; letter-spacing: .12em; }
.ai-tool-history-heading h3 { color: #29313c; font-size: 15px; }
.ai-tool-history-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 10px; }
.ai-tool-history-card { min-width: 0; overflow: hidden; border: 1px solid #e5e9ee; border-radius: 12px; background: #f8fafc; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.ai-tool-history-card:hover { border-color: #c8d5e4; box-shadow: 0 8px 20px rgba(32, 44, 60, .09); transform: translateY(-1px); }
.ai-tool-history-preview { position: relative; display: block; width: 100%; overflow: hidden; border: 0; padding: 0; background: #e9edf2; }
.ai-tool-history-preview > img, .ai-tool-history-preview > video { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .2s ease, opacity .2s ease; }
.ai-tool-history-card.video .ai-tool-history-preview > video { background: #20252d; }
.ai-tool-history-preview:hover > img, .ai-tool-history-preview:hover > video, .ai-tool-history-preview:focus-visible > img, .ai-tool-history-preview:focus-visible > video { opacity: .94; transform: scale(1.035); }
.ai-tool-history-media { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 4px 7px; color: #fff; background: rgba(25, 31, 40, .76); font-size: 10px; backdrop-filter: blur(6px); }
.ai-tool-history-card footer { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 9px; }
.ai-tool-history-card footer > span { overflow: hidden; color: #7e8895; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ai-tool-history-delete { display: inline-flex; min-height: 27px; flex: 0 0 auto; align-items: center; gap: 4px; border: 0; border-radius: 7px; padding: 5px 7px; color: #b54457; background: #fff0f2; font-size: 10px; }
.ai-tool-history-delete:hover, .ai-tool-history-delete:focus-visible { color: #9f2f43; background: #ffe3e8; outline: none; }
.ai-tool-history-delete:disabled { cursor: wait; opacity: .55; }
.ai-tool-history-empty { grid-column: 1 / -1; display: flex; min-height: 92px; align-items: center; justify-content: center; gap: 9px; border: 1px dashed #dce2e9; border-radius: 12px; color: #8a939f; background: #fafbfd; font-size: 12px; text-align: center; }
.ai-tool-history-empty .ti { color: #9ca9b7; font-size: 20px; }
.ai-tool-guide { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; max-width: none; margin: 18px 0 0; border-top: 1px solid #edf0f3; padding-top: 16px; color: #75808d; }
.ai-tool-guide > .ti { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: #2582ed; background: #edf6ff; }
.ai-tool-guide strong { color: #46505d; font-size: 12px; }
.ai-tool-guide p { margin: 4px 0 0; font-size: 11px; line-height: 1.6; }

.ai-character-workspace { width: min(1240px, 100%); margin: 5vh auto 70px; }
.ai-character-heading { display: grid; justify-items: center; margin-bottom: 24px; text-align: center; }
.ai-character-kicker, .ai-character-heading p { display: none; }
.ai-character-heading h2 { color: #202631; font-size: 27px; letter-spacing: -.035em; }
.ai-character-card { display: grid; grid-template-columns: minmax(0, 1.52fr) minmax(340px, .78fr); overflow: hidden; border: 1px solid rgba(255,255,255,.76); border-radius: 20px; background: linear-gradient(135deg, rgba(255,255,255,.66), rgba(245,249,255,.48)); box-shadow: inset 0 1px 0 rgba(255,255,255,.66), 0 22px 58px rgba(46, 68, 108, .13); backdrop-filter: blur(24px) saturate(135%); -webkit-backdrop-filter: blur(24px) saturate(135%); }
.ai-character-brief { min-width: 0; padding: 26px 28px 28px; }
.ai-character-settings { display: flex; min-width: 0; flex-direction: column; border-left: 1px solid rgba(255,255,255,.58); padding: 26px 24px; background: rgba(247,250,255,.28); }
.ai-character-section-heading { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: start; gap: 11px; margin-bottom: 19px; }
.ai-character-section-heading.compact { margin-bottom: 20px; }
.ai-character-step { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: #2f7ed8; background: #edf6ff; font-size: 10px; font-weight: 780; letter-spacing: .05em; }
.ai-character-section-heading h3 { margin: 0; color: #29313c; font-size: 15px; }
.ai-character-section-heading p { margin: 5px 0 0; color: #89919c; font-size: 11px; line-height: 1.5; }
.ai-character-prompt-field { position: relative; display: grid; gap: 7px; }
.ai-character-prompt-field > span, .ai-character-style-field legend, .ai-character-type-field legend, .ai-character-reference-copy > span, .ai-character-field > span { color: #596270; font-size: 11px; font-weight: 680; }
.ai-character-prompt-field textarea { width: 100%; min-height: 150px; resize: vertical; border: 1px solid #dfe4ea; border-radius: 13px; outline: 0; padding: 13px 14px 30px; color: #2e3743; background: #fff; font-size: 13px; line-height: 1.7; transition: border-color .16s ease, box-shadow .16s ease; }
.ai-character-prompt-field textarea:focus { border-color: #91b9e5; box-shadow: 0 0 0 3px rgba(47, 126, 216, .08); }
.ai-character-prompt-field > small { position: absolute; right: 12px; bottom: 9px; color: #a0a7b0; font-size: 10px; }
.ai-character-style-field { margin: 19px 0 0; border: 0; padding: 0; }
.ai-character-style-field legend { margin-bottom: 8px; padding: 0; }
.ai-character-style-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.ai-character-style-options button, .ai-character-type-options button { position: relative; display: grid; min-width: 0; overflow: hidden; grid-template-rows: auto auto; border: 1px solid #e2e6eb; border-radius: 11px; padding: 0; color: #637080; background: #fff; text-align: left; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.ai-character-style-options button:hover, .ai-character-type-options button:hover { border-color: #afc8e1; box-shadow: 0 7px 18px rgba(34, 66, 102, .09); transform: translateY(-1px); }
.ai-character-style-options button:focus-visible, .ai-character-type-options button:focus-visible { outline: 3px solid rgba(47, 126, 216, .2); outline-offset: 2px; }
.ai-character-style-options button.selected, .ai-character-type-options button.selected { border-color: #6fa9e2; background: #f4f9ff; box-shadow: 0 0 0 2px rgba(47, 126, 216, .1), 0 7px 18px rgba(47, 126, 216, .1); }
.ai-character-option-media { display: block; overflow: hidden; border-bottom: 1px solid #edf0f3; background: #eef1f4; }
.ai-character-option-media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .22s ease; }
.ai-character-style-options button:hover .ai-character-option-media img { transform: scale(1.025); }
.ai-character-option-copy { display: grid; min-width: 0; gap: 2px; padding: 9px 10px 10px; }
.ai-character-option-copy strong { overflow: hidden; color: #384250; font-size: 11px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.ai-character-option-copy small { overflow: hidden; color: #969eaa; font-size: 9px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.ai-character-style-options button.selected strong, .ai-character-type-options button.selected strong { color: #1f6fbe; }
.ai-character-style-options button > .ti-check, .ai-character-type-options button > .ti-check { position: absolute; top: 7px; right: 7px; display: grid; width: 20px; height: 20px; place-items: center; border: 2px solid rgba(255, 255, 255, .92); border-radius: 99px; color: #fff; background: #2f7ed8; box-shadow: 0 3px 9px rgba(22, 60, 102, .26); font-size: 11px; opacity: 0; transform: scale(.76); transition: opacity .16s ease, transform .16s ease; }
.ai-character-style-options button.selected > .ti-check, .ai-character-type-options button.selected > .ti-check { opacity: 1; transform: scale(1); }
.ai-character-style-options .ai-character-style-launcher { grid-column: 1 / -1; grid-template-columns: 132px minmax(0, 1fr) 34px; grid-template-rows: 1fr; align-items: stretch; }
.ai-character-style-launcher .ai-character-option-media { border-right: 1px solid #edf0f3; border-bottom: 0; }
.ai-character-style-launcher .ai-character-option-media img { height: 100%; min-height: 82px; aspect-ratio: 16 / 9; }
.ai-character-style-launcher .ai-character-option-copy { align-content: center; padding: 14px; }
.ai-character-style-launcher > .ti-chevron-right { align-self: center; color: #8390a0; font-size: 18px; }

.style-preset-dialog { width: min(1060px, calc(100vw - 32px)); height: min(780px, calc(100vh - 32px)); max-width: none; max-height: none; overflow: hidden; border: 0; border-radius: 20px; padding: 0; color: #29313c; background: #fff; box-shadow: 0 30px 90px rgba(19, 27, 39, .28); }
.style-preset-dialog::backdrop { background: rgba(24, 31, 43, .62); }
.style-preset-dialog-shell { display: flex; height: 100%; min-height: 0; flex-direction: column; }
.style-preset-dialog-header { display: flex; flex: 0 0 auto; align-items: flex-start; justify-content: space-between; gap: 24px; border-bottom: 1px solid #e9edf2; padding: 20px 22px 16px; }
.style-preset-dialog-header span { color: #3375c8; font-size: 9px; font-weight: 820; letter-spacing: .14em; }
.style-preset-dialog-header h2 { margin: 4px 0 5px; color: #1c2532; font-size: 21px; letter-spacing: -.025em; }
.style-preset-dialog-header p { margin: 0; color: #87919e; font-size: 11px; line-height: 1.5; }
.style-preset-dialog-header button { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border: 1px solid #e1e6ec; border-radius: 10px; padding: 0; color: #677383; background: #fff; font-size: 19px; }
.style-preset-dialog-header button:hover { color: #202b39; background: #f3f5f8; }
.style-preset-dialog-toolbar { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; padding: 14px 22px 10px; }
.style-preset-dialog-toolbar label { display: flex; min-width: 0; flex: 1 1 auto; align-items: center; gap: 8px; border: 1px solid #dfe5ec; border-radius: 11px; padding: 0 11px; background: #fafbfc; }
.style-preset-dialog-toolbar label:focus-within { border-color: #8eb8e1; box-shadow: 0 0 0 3px rgba(47, 126, 216, .1); }
.style-preset-dialog-toolbar label i { color: #8d97a4; }
.style-preset-dialog-toolbar input { width: 100%; min-height: 38px; border: 0; outline: 0; color: #2a3441; background: transparent; font-size: 12px; }
.style-preset-dialog-toolbar > span { flex: 0 0 auto; color: #8a94a1; font-size: 11px; }
.style-preset-categories { display: flex; flex: 0 0 auto; gap: 6px; overflow-x: auto; padding: 0 22px 12px; scrollbar-width: thin; }
.style-preset-categories button { flex: 0 0 auto; border: 1px solid #e1e6eb; border-radius: 999px; padding: 6px 10px; color: #6f7b89; background: #fff; font-size: 10px; }
.style-preset-categories button:hover { border-color: #b9cee3; color: #2e6fac; }
.style-preset-categories button.selected { border-color: #367fc7; color: #fff; background: #367fc7; }
.style-preset-grid { display: grid; min-height: 0; flex: 1 1 auto; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: max-content; align-content: start; gap: 12px; overflow: auto; padding: 0 22px 22px; scrollbar-color: #c7ced7 transparent; scrollbar-width: thin; scrollbar-gutter: stable; overscroll-behavior: contain; touch-action: pan-y; }
.style-preset-card { position: relative; display: grid; min-width: 0; height: max-content; align-self: start; overflow: hidden; grid-template-rows: max-content minmax(62px, auto); contain: layout paint style; content-visibility: auto; contain-intrinsic-size: auto 352px; border: 1px solid #e2e7ed; border-radius: 12px; padding: 0; color: #3b4654; background: #fff; text-align: left; transition: border-color .12s ease, background .12s ease; }
.style-preset-card:hover { border-color: #9fc0df; background: #fbfdff; }
.style-preset-card.selected { border-color: #4b92d5; box-shadow: 0 0 0 2px rgba(55, 133, 204, .12); }
.style-preset-card-media { display: block; width: 100%; min-height: 220px; aspect-ratio: 16 / 9; overflow: hidden; background: #eef1f4; }
.style-preset-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.style-preset-card-copy { display: grid; min-width: 0; align-content: center; gap: 3px; padding: 10px 11px; }
.style-preset-card-copy strong { overflow: hidden; color: #34404e; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.style-preset-card-copy small { overflow: hidden; color: #929ba7; font-size: 10px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.style-preset-card > .ti-check { position: absolute; top: 7px; right: 7px; display: none; width: 23px; height: 23px; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; background: #367fc7; box-shadow: 0 3px 9px rgba(23, 66, 108, .25); font-size: 12px; }
.style-preset-card.selected > .ti-check { display: grid; }
.style-preset-empty { grid-column: 1 / -1; display: grid; min-height: 260px; place-items: center; color: #8c96a2; font-size: 12px; }
.style-preset-load-state { grid-column: 1 / -1; display: grid; min-height: 44px; place-items: center; color: #8c96a2; font-size: 11px; }
.ai-character-reference-block { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 19px; border-top: 1px solid #edf0f3; padding-top: 17px; }
.ai-character-reference-copy p { margin: 4px 0 0; color: #9098a3; font-size: 10px; line-height: 1.5; }
.ai-character-reference-copy small { color: #9aa2ad; font-weight: 500; }
.ai-character-reference-add { display: inline-flex; min-height: 35px; align-items: center; justify-content: center; gap: 5px; border: 1px solid #dce3eb; border-radius: 9px; padding: 7px 10px; color: #4f5c6d; background: #fff; font-size: 11px; white-space: nowrap; }
.ai-character-reference-add:hover { border-color: #a9c6e5; color: #1e70c2; background: #f6faff; }
.ai-character-reference-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 7px; }
.ai-character-reference-item { position: relative; min-width: 0; overflow: hidden; border: 1px solid #e2e6eb; border-radius: 10px; background: #eef1f5; }
.ai-character-reference-item img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.ai-character-reference-item button { position: absolute; top: 5px; right: 5px; display: grid; width: 23px; height: 23px; place-items: center; border: 0; border-radius: 99px; padding: 0; color: #fff; background: rgba(26, 31, 39, .72); font-size: 13px; backdrop-filter: blur(4px); }
.ai-character-reference-item button:hover { background: #bd3d52; }
.ai-character-field { display: grid; gap: 7px; margin-bottom: 14px; }
.ai-character-field select { width: 100%; min-height: 39px; border: 1px solid #dfe4ea; border-radius: 10px; outline: 0; padding: 8px 30px 8px 10px; color: #303844; background: #fff; font-size: 12px; }
.ai-character-field select:focus { border-color: #91b9e5; box-shadow: 0 0 0 3px rgba(47, 126, 216, .08); }
.ai-character-model-note { min-height: 44px; margin: -5px 0 15px; border-left: 2px solid #b8d5f2; padding: 3px 0 3px 9px; color: #7c8794; font-size: 10px; line-height: 1.6; }
.ai-character-type-field { min-width: 0; margin: 0 0 15px; border: 0; padding: 0; }
.ai-character-type-field legend { margin-bottom: 8px; padding: 0; }
.ai-character-type-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ai-character-type-options .ai-character-option-media { background: #ebe9e6; }
.ai-character-type-options .ai-character-option-media img { object-fit: contain; }
.ai-character-type-options .ai-character-option-copy { padding: 7px 8px 8px; }
.ai-character-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.ai-character-summary { display: grid; gap: 10px; margin-top: auto; border-top: 1px solid #e5e9ee; padding-top: 17px; }
.ai-character-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ai-character-summary span { color: #8a939f; font-size: 10px; }
.ai-character-summary strong { color: #46505d; font-size: 11px; text-align: right; }
.ai-character-summary > div:last-child strong { color: #1d6ec1; font-size: 13px; }
.ai-character-submit { display: inline-flex; width: 100%; min-height: 43px; align-items: center; justify-content: center; gap: 7px; margin-top: 15px; border: 0; border-radius: 11px; color: #fff; background: #171b25; font-size: 13px; font-weight: 720; box-shadow: 0 8px 18px rgba(23, 27, 37, .14); }
.ai-character-submit:hover { background: #303642; }
.ai-character-submit:disabled { cursor: not-allowed; color: #9da4ad; background: #e6e9ed; box-shadow: none; }
.ai-character-status { margin: 9px 0 0; color: #8a929d; font-size: 10px; line-height: 1.5; text-align: center; }
.ai-character-status.success { color: #177d4b; }
.ai-character-status.error { color: #b63f52; }
.ai-character-result { overflow: hidden; margin-top: 18px; border: 1px solid #e2e7ed; border-radius: 18px; padding: 18px; background: #fff; box-shadow: 0 14px 34px rgba(31, 39, 51, .07); }
.ai-character-result-heading { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.ai-character-result-heading > div { min-width: 0; }
.ai-character-result-heading strong { display: block; color: #29313c; font-size: 14px; }
.ai-character-result-heading p { margin: 4px 0 0; color: #7c8693; font-size: 11px; line-height: 1.55; }
.ai-character-result-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: #2f7ed8; background: #edf6ff; font-size: 20px; }
.ai-character-result-icon.processing .ti { animation: ai-tool-result-spin .9s linear infinite; }
.ai-character-result-icon.success { color: #17804c; background: #ecfaf3; }
.ai-character-result-icon.error { color: #bc3b51; background: #fff0f2; }
.ai-character-result-progress { overflow: hidden; height: 5px; margin-top: 15px; border-radius: 99px; background: #edf0f4; }
.ai-character-result-progress > span { display: block; width: 0; height: 100%; border-radius: inherit; background: #2f7ed8; transition: width .28s ease; }
.ai-character-result-progress.indeterminate > span { width: 38% !important; animation: commercial-progress 1.35s ease-in-out infinite; }
.ai-character-result-progress.failed > span { background: #c34b5d; }
.ai-character-result-media { display: grid; margin-top: 16px; place-items: center; overflow: hidden; border: 1px solid #e7eaee; border-radius: 14px; background: #20242c; }
.ai-character-result-media img { display: block; width: 100%; max-height: 680px; object-fit: contain; }
.ai-character-result-error { margin: 13px 0 0; border-radius: 10px; padding: 10px 12px; color: #a92f45; background: #fff3f5; font-size: 12px; line-height: 1.55; }
.ai-character-result-error.warning { color: #966611; background: #fff9e9; }
.ai-character-result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ai-character-result-actions:empty { display: none; }
.ai-character-guide { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; max-width: none; margin: 18px 0 0; border-top: 1px solid #edf0f3; padding-top: 16px; color: #75808d; }
.ai-character-guide > .ti { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: #2582ed; background: #edf6ff; }
.ai-character-guide strong { color: #46505d; font-size: 12px; }
.ai-character-guide p { margin: 4px 0 0; font-size: 11px; line-height: 1.6; }

.creator-tool-workspace { width: min(1240px, 100%); margin: 5vh auto 70px; }
.creator-tool-heading { display: grid; justify-items: center; margin-bottom: 24px; text-align: center; }
.creator-tool-kicker, .creator-tool-heading p { display: none; }
.creator-tool-heading h2 { color: #202631; font-size: 27px; letter-spacing: -.035em; }
.creator-tool-card { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(350px, .78fr); overflow: hidden; border: 1px solid rgba(255,255,255,.76); border-radius: 20px; background: linear-gradient(135deg, rgba(255,255,255,.66), rgba(245,249,255,.48)); box-shadow: inset 0 1px 0 rgba(255,255,255,.66), 0 22px 58px rgba(46, 68, 108, .13); backdrop-filter: blur(24px) saturate(135%); -webkit-backdrop-filter: blur(24px) saturate(135%); }
.creator-tool-sources { min-width: 0; padding: 26px 28px 28px; }
.creator-tool-settings { display: flex; min-width: 0; flex-direction: column; border-left: 1px solid rgba(255,255,255,.58); padding: 26px 24px; background: rgba(247,250,255,.28); }
.creator-tool-section-heading { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: start; gap: 11px; margin-bottom: 19px; }
.creator-tool-section-heading.compact { margin-bottom: 20px; }
.creator-tool-step { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: #2f7ed8; background: #edf6ff; font-size: 10px; font-weight: 780; letter-spacing: .05em; }
.creator-tool-section-heading h3 { margin: 0; color: #29313c; font-size: 15px; }
.creator-tool-section-heading p { margin: 5px 0 0; color: #89919c; font-size: 11px; line-height: 1.5; }
.creator-tool-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.creator-tool-upload-slot { position: relative; display: grid; min-height: 250px; cursor: pointer; place-items: center; overflow: hidden; border: 1px dashed #cbd7e5; border-radius: 15px; color: #617084; background: #f8fbff; text-align: center; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.creator-tool-upload-slot:hover, .creator-tool-upload-slot:focus-within { border-color: #81b2e9; background: #f2f8ff; box-shadow: 0 0 0 3px rgba(47, 126, 216, .07); }
.creator-tool-upload-slot.filled { border-style: solid; border-color: #c9d8e8; background: #eef3f8; }
.creator-tool-upload-empty { display: grid; max-width: 190px; justify-items: center; gap: 7px; padding: 22px; }
.creator-tool-upload-empty > .ti { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 14px; color: #2f7ed8; background: #e7f2ff; font-size: 22px; }
.creator-tool-upload-empty strong { color: #465263; font-size: 13px; }
.creator-tool-upload-empty small { color: #929daa; font-size: 10px; line-height: 1.5; }
.creator-tool-upload-preview { position: absolute; inset: 0; display: grid; place-items: center; background: #202631; }
.creator-tool-upload-preview img, .creator-tool-upload-preview video { display: block; width: 100%; height: 100%; object-fit: cover; }
.creator-tool-upload-preview audio { width: calc(100% - 28px); }
.creator-tool-upload-preview.audio { align-content: center; gap: 12px; padding: 18px; color: #fff; background: linear-gradient(150deg, #263247, #172033); }
.creator-tool-upload-preview.audio > .ti { font-size: 38px; }
.creator-tool-upload-preview.audio strong { max-width: 90%; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.creator-tool-upload-meta { position: absolute; right: 8px; bottom: 8px; left: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-radius: 9px; padding: 7px 9px; color: #fff; background: rgba(20, 27, 38, .72); backdrop-filter: blur(8px); font-size: 9px; text-align: left; }
.creator-tool-upload-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creator-tool-upload-meta button { display: grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 7px; padding: 0; color: #fff; background: rgba(255, 255, 255, .13); }
.creator-tool-upload-meta button:hover { background: #bd3d52; }
.creator-tool-field { display: grid; gap: 7px; margin-bottom: 14px; }
.creator-tool-field > span, .creator-tool-prompt-field > span { color: #596270; font-size: 11px; font-weight: 680; }
.creator-tool-field select { width: 100%; min-height: 39px; border: 1px solid #dfe4ea; border-radius: 10px; outline: 0; padding: 8px 30px 8px 10px; color: #303844; background: #fff; font-size: 12px; }
.creator-tool-field select:focus, .creator-tool-prompt-field textarea:focus { border-color: #91b9e5; box-shadow: 0 0 0 3px rgba(47, 126, 216, .08); }
.creator-tool-model-note { min-height: 44px; margin: -5px 0 15px; border-left: 2px solid #b8d5f2; padding: 3px 0 3px 9px; color: #7c8794; font-size: 10px; line-height: 1.6; }
.creator-tool-prompt-field { position: relative; display: grid; gap: 7px; margin-bottom: 14px; }
.creator-tool-prompt-field textarea { width: 100%; min-height: 104px; resize: vertical; border: 1px solid #dfe4ea; border-radius: 11px; outline: 0; padding: 11px 12px 27px; color: #2e3743; background: #fff; font-size: 12px; line-height: 1.6; }
.creator-tool-prompt-field > small { position: absolute; right: 10px; bottom: 8px; color: #a0a7b0; font-size: 9px; }
.creator-tool-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.creator-tool-field-row > .creator-tool-field:only-child { grid-column: 1 / -1; }
.creator-tool-checkbox { display: flex; align-items: center; gap: 8px; margin: -2px 0 15px; color: #657181; font-size: 11px; }
.creator-tool-checkbox input { width: 14px; height: 14px; accent-color: #2f7ed8; }
.creator-tool-summary { display: grid; gap: 10px; margin-top: auto; border-top: 1px solid #e5e9ee; padding-top: 17px; }
.creator-tool-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.creator-tool-summary span { color: #8a939f; font-size: 10px; }
.creator-tool-summary strong { color: #46505d; font-size: 11px; text-align: right; }
.creator-tool-summary > div:last-child strong { color: #1d6ec1; font-size: 13px; }
.creator-tool-submit { display: inline-flex; width: 100%; min-height: 43px; align-items: center; justify-content: center; gap: 7px; margin-top: 15px; border: 0; border-radius: 11px; color: #fff; background: #171b25; font-size: 13px; font-weight: 720; box-shadow: 0 8px 18px rgba(23, 27, 37, .14); }
.creator-tool-submit:hover { background: #303642; }
.creator-tool-submit:disabled { cursor: not-allowed; color: #9da4ad; background: #e6e9ed; box-shadow: none; }
.creator-tool-status { margin: 9px 0 0; color: #8a929d; font-size: 10px; line-height: 1.5; text-align: center; }
.creator-tool-status.success { color: #177d4b; }
.creator-tool-status.error { color: #b63f52; }
.creator-tool-guide { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; max-width: none; margin: 18px 0 0; border-top: 1px solid #edf0f3; padding-top: 16px; color: #75808d; }
.creator-tool-guide > .ti { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: #2582ed; background: #edf6ff; }
.creator-tool-guide strong { color: #46505d; font-size: 12px; }
.creator-tool-guide p { margin: 4px 0 0; font-size: 11px; line-height: 1.6; }

.video-enhancer-content[hidden] { display: none !important; }
.video-enhancer-content { width: min(1200px, calc(100vw - 120px)); margin: 104px 50% 0; padding-top: 70px; transform: translateX(-50%); color: #172033; background: transparent; }
.video-enhancer-content h2, .video-enhancer-content h3 { color: #101827; letter-spacing: -.035em; }
.video-enhancer-content p { color: #536078; line-height: 1.8; }
.video-enhancer-hero { text-align: center; }
.video-enhancer-hero > h2 { margin: 0 auto; color: #2864e8; font-size: clamp(32px, 3.1vw, 40px); font-weight: 780; line-height: 1.2; }
.video-enhancer-hero > p { max-width: 900px; margin: 16px auto 0; font-size: 16px; }
.video-enhancer-primary { display: inline-flex; min-width: 260px; min-height: 60px; align-items: center; justify-content: center; gap: 12px; margin-top: 32px; border: 0; border-radius: 15px; color: #fff; background: #2864e8; box-shadow: 0 12px 24px rgba(40, 100, 232, .18); font-size: 17px; font-weight: 740; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.video-enhancer-primary:hover { background: #1d58d3; box-shadow: 0 16px 30px rgba(40, 100, 232, .25); transform: translateY(-2px); }
.video-enhancer-primary .ti { font-size: 20px; }
.video-enhancer-media { position: relative; overflow: hidden; margin: 0; border-radius: 12px; background: #f4f7fc; box-shadow: 0 24px 54px rgba(57, 91, 174, .16); }
.video-enhancer-media video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #eef2f7; }
.video-enhancer-hero-media { max-width: 1024px; margin: 46px auto 0; border-radius: 16px; box-shadow: 0 2px 4px rgba(30, 48, 76, .12); }
.video-enhancer-sound { position: absolute; top: 16px; right: 16px; display: grid; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 999px; color: #151a24; background: rgba(255, 255, 255, .75); box-shadow: 0 4px 12px rgba(16, 24, 40, .12); backdrop-filter: blur(8px); font-size: 20px; }
.video-enhancer-sound:hover { background: rgba(255, 255, 255, .95); }
.video-enhancer-comparison { margin-top: 72px; text-align: center; }
.video-enhancer-comparison > h2, .video-enhancer-audience > h2, .video-enhancer-faq > h2 { font-size: 30px; line-height: 1.35; }
.video-enhancer-comparison > p { max-width: 900px; margin: 48px auto 0; font-size: 16px; line-height: 1.5; }
.video-enhancer-table-wrap { overflow: hidden; margin-top: 48px; border: 1px solid #e6ebf4; border-radius: 12px; background: #fff; text-align: left; }
.video-enhancer-table-wrap table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.video-enhancer-table-wrap th, .video-enhancer-table-wrap td { border-right: 1px solid #e6ebf4; border-bottom: 1px solid #e6ebf4; padding: 16px 24px; color: #536078; font-size: 16px; font-weight: 430; line-height: 24px; vertical-align: middle; }
.video-enhancer-table-wrap thead th { color: #2b3a58; background: #eaf1ff; font-weight: 700; }
.video-enhancer-table-wrap thead th { padding-top: 20px; padding-bottom: 20px; }
.video-enhancer-table-wrap th:first-child { width: 9%; color: #3d4c68; font-weight: 650; }
.video-enhancer-table-wrap th:last-child, .video-enhancer-table-wrap td:last-child { border-right: 0; }
.video-enhancer-table-wrap tbody tr:last-child th, .video-enhancer-table-wrap tbody tr:last-child td { border-bottom: 0; }
.video-enhancer-features { display: grid; gap: 119px; margin-top: 112px; }
.video-enhancer-feature { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 76px; }
.video-enhancer-feature.reverse { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.video-enhancer-feature h2 { margin-bottom: 18px; font-size: 24px; line-height: 1.38; }
.video-enhancer-feature p { margin: 0; font-size: 16px; line-height: 1.75; }
.video-enhancer-feature .video-enhancer-media { border-radius: 10px; box-shadow: 0 24px 52px rgba(52, 103, 224, .22); }
.video-enhancer-feature.reverse .video-enhancer-media { box-shadow: 0 24px 52px rgba(148, 73, 224, .2); }
.video-enhancer-audience { max-width: 960px; margin: 183px auto 0; text-align: center; }
.video-enhancer-audience > p { max-width: 800px; margin: 17px auto 0; font-size: 14px; }
.video-enhancer-audience-tabs { display: flex; justify-content: center; gap: 10px; margin-top: 48px; }
.video-enhancer-audience-tabs button { border: 0; border-radius: 999px; padding: 10px 22px; color: #6880b5; background: #edf3ff; font-size: 13px; font-weight: 650; transition: color .2s ease, background .2s ease, transform .2s ease; }
.video-enhancer-audience-tabs button:hover { transform: translateY(-1px); }
.video-enhancer-audience-tabs button.selected { color: #fff; background: #2864e8; box-shadow: 0 8px 18px rgba(40, 100, 232, .2); }
.video-enhancer-audience-panels { margin-top: 69px; }
.video-enhancer-audience-panel { display: grid; grid-template-columns: 380px minmax(0, 1fr); align-items: center; gap: 52px; text-align: left; }
.video-enhancer-audience-panel[hidden] { display: none; }
.video-enhancer-audience-panel img { display: block; width: 380px; aspect-ratio: 380 / 217; border-radius: 12px; object-fit: cover; box-shadow: 0 12px 28px rgba(30, 48, 76, .12); }
.video-enhancer-audience-panel h3 { margin-bottom: 18px; font-size: 26px; line-height: 1.3; }
.video-enhancer-audience-panel p { margin: 0; font-size: 14px; }
.video-enhancer-faq { max-width: 920px; margin: 235px auto 0; padding-bottom: 98px; }
.video-enhancer-faq > h2 { margin-bottom: 60px; text-align: center; }
.video-enhancer-faq-list { border-top: 1px solid #d2dce8; }
.video-enhancer-faq-list details { border-bottom: 1px solid #d2dce8; }
.video-enhancer-faq-list summary { display: flex; min-height: 76px; cursor: pointer; list-style: none; align-items: center; justify-content: space-between; gap: 24px; color: #202a3d; font-size: 15px; font-weight: 590; }
.video-enhancer-faq-list summary::-webkit-details-marker { display: none; }
.video-enhancer-faq-list summary .ti { flex: 0 0 auto; color: #7b8798; transition: transform .2s ease; }
.video-enhancer-faq-list details[open] summary .ti { transform: rotate(180deg); }
.video-enhancer-faq-list details p { max-width: 850px; margin: -2px 0 26px; color: #647087; font-size: 13px; line-height: 1.85; }

.tool-marketing-content[hidden] { display: none !important; }
.tool-marketing-content { width: min(1200px, calc(100vw - 120px)); margin: 104px 50% 0; padding-top: 70px; transform: translateX(-50%); color: #172033; background: transparent; font-family: Poppins, Helvetica, "PingFang SC", Arial, sans-serif; }
.tool-marketing-content h2, .tool-marketing-content h3 { margin-top: 0; color: #101827; letter-spacing: -.035em; }
.tool-marketing-content p { color: rgba(75, 85, 99, .9); line-height: 1.8; }
.tool-marketing-hero { text-align: center; }
.tool-marketing-hero > h2 { margin: 0 auto; color: #2864e8; font-size: clamp(32px, 3.1vw, 40px); font-weight: 780; line-height: 1.2; }
.tool-marketing-hero > p { max-width: 900px; margin: 16px auto 0; font-size: 16px; }
.tool-marketing-primary { display: inline-flex; min-width: 260px; min-height: 60px; align-items: center; justify-content: center; gap: 12px; margin-top: 32px; border: 0; border-radius: 15px; color: #fff; background: #2864e8; box-shadow: 0 12px 24px rgba(40, 100, 232, .18); font-size: 17px; font-weight: 740; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.tool-marketing-primary:hover { background: #1d58d3; box-shadow: 0 16px 30px rgba(40, 100, 232, .25); transform: translateY(-2px); }
.tool-marketing-primary .ti { font-size: 20px; }
.tool-marketing-media { position: relative; overflow: hidden; margin: 0; border-radius: 10px; background: #f4f7fc; box-shadow: 0 24px 52px rgba(52, 103, 224, .22); }
.tool-marketing-media video, .tool-marketing-media img { display: block; width: 100%; aspect-ratio: var(--tool-media-ratio, 16 / 9); object-fit: cover; background: #eef2f7; }
.tool-marketing-hero-media { max-width: 1024px; margin: 46px auto 0; border-radius: 16px; box-shadow: 0 2px 4px rgba(30, 48, 76, .12); }
.tool-marketing-sound { position: absolute; top: 16px; right: 16px; display: grid; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 999px; color: #151a24; background: rgba(255, 255, 255, .75); box-shadow: 0 4px 12px rgba(16, 24, 40, .12); backdrop-filter: blur(8px); font-size: 20px; }
.tool-marketing-sound:hover { background: rgba(255, 255, 255, .95); }
.tool-marketing-comparison { margin-top: 72px; text-align: center; }
.tool-marketing-comparison > h2, .tool-marketing-audience > h2, .tool-marketing-faq > h2 { margin-bottom: 0; font-size: 30px; line-height: 1.35; }
.tool-marketing-comparison > p { max-width: 900px; margin: 48px auto 0; font-size: 16px; line-height: 1.5; }
.tool-marketing-table-wrap { overflow: hidden; margin-top: 48px; border: 1px solid #e6ebf4; border-radius: 12px; background: #fff; text-align: left; }
.tool-marketing-table-wrap table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.tool-marketing-table-wrap th, .tool-marketing-table-wrap td { border-right: 1px solid #e6ebf4; border-bottom: 1px solid #e6ebf4; padding: 16px 24px; color: rgba(75, 85, 99, .9); font-size: 16px; font-weight: 400; line-height: 24px; vertical-align: middle; }
.tool-marketing-table-wrap thead th { padding-top: 20px; padding-bottom: 20px; color: #2b3a58; background: #eaf1ff; font-weight: 700; }
.tool-marketing-table-wrap tbody th { color: #3d4c68; font-weight: 600; }
.tool-marketing-table-wrap th:last-child, .tool-marketing-table-wrap td:last-child { border-right: 0; }
.tool-marketing-table-wrap tbody tr:last-child th, .tool-marketing-table-wrap tbody tr:last-child td { border-bottom: 0; }
.tool-marketing-features { display: grid; gap: 119px; margin-top: 112px; }
.tool-marketing-feature { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 76px; }
.tool-marketing-feature.reverse > .tool-marketing-media { order: 2; box-shadow: 0 24px 52px rgba(148, 73, 224, .2); }
.tool-marketing-feature.reverse > div { order: 1; }
.tool-marketing-feature h2 { margin-bottom: 18px; font-size: 24px; line-height: 1.38; }
.tool-marketing-feature p { margin: 0; font-size: 16px; line-height: 1.75; }
.tool-marketing-audience { max-width: 960px; margin: 183px auto 0; text-align: center; }
.tool-marketing-audience > p { max-width: 800px; margin: 17px auto 0; font-size: 14px; }
.tool-marketing-audience-tabs { display: flex; justify-content: center; gap: 10px; margin-top: 48px; }
.tool-marketing-audience-tabs button { border: 1px solid transparent; border-radius: 16px; padding: 10px 22px; color: #6880b5; background: #edf3ff; font-size: 13px; font-weight: 650; transition: color .2s ease, background .2s ease, transform .2s ease; }
.tool-marketing-audience-tabs button:hover { transform: translateY(-1px); }
.tool-marketing-audience-tabs button.selected { border-color: #2864e8; color: #fff; background: #2864e8; box-shadow: 0 8px 18px rgba(40, 100, 232, .2); }
.tool-marketing-audience-panels { margin-top: 69px; }
.tool-marketing-audience-panel { display: grid; grid-template-columns: 380px minmax(0, 1fr); align-items: center; gap: 52px; text-align: left; }
.tool-marketing-audience-panel[hidden] { display: none; }
.tool-marketing-audience-panel img { display: block; width: 380px; aspect-ratio: var(--tool-media-ratio, 16 / 9); border-radius: 12px; object-fit: cover; box-shadow: 0 12px 28px rgba(30, 48, 76, .12); }
.tool-marketing-audience-panel h3 { margin-bottom: 18px; font-size: 26px; line-height: 1.3; }
.tool-marketing-audience-panel p { margin: 0; font-size: 14px; }
.tool-marketing-faq { max-width: 920px; margin: 235px auto 0; padding-bottom: 98px; }
.tool-marketing-faq > h2 { margin-bottom: 60px; text-align: center; }
.tool-marketing-faq-list { border-top: 1px solid #d2dce8; }
.tool-marketing-faq-list details { border-bottom: 1px solid #d2dce8; }
.tool-marketing-faq-list summary { display: flex; min-height: 76px; cursor: pointer; list-style: none; align-items: center; justify-content: space-between; gap: 24px; color: #202a3d; font-size: 15px; font-weight: 590; }
.tool-marketing-faq-list summary::-webkit-details-marker { display: none; }
.tool-marketing-faq-list summary .ti { flex: 0 0 auto; color: #5f7188; transition: color .2s ease, transform .2s ease; }
.tool-marketing-faq-list summary:hover .ti { color: #2f6fae; }
.tool-marketing-faq-list details[open] summary .ti { transform: rotate(180deg); }
.tool-marketing-faq-list details p { max-width: 850px; margin: -2px 0 26px; color: #647087; font-size: 13px; line-height: 1.85; }
.tool-marketing-content[data-marketing-page="watermark-remover"] .tool-marketing-audience { margin-top: 64px; }
.tool-marketing-content[data-marketing-page="watermark-remover"] .tool-marketing-features { margin-top: 176px; }
.tool-marketing-content[data-marketing-page="watermark-remover"] .tool-marketing-comparison { margin-top: 183px; }
.tool-marketing-content[data-marketing-page="watermark-remover"] .tool-marketing-faq { margin-top: 148px; }
.tool-marketing-models { margin-top: 112px; text-align: center; }
.tool-marketing-models > h2 { margin-bottom: 0; font-size: 30px; line-height: 1.35; }
.tool-marketing-models > p { max-width: 860px; margin: 17px auto 0; font-size: 15px; }
.tool-marketing-model-grid { display: grid; grid-template-columns: repeat(var(--tool-model-columns, 4), minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.tool-marketing-model-card { min-width: 0; overflow: hidden; border: 1px solid #e6ebf4; border-radius: 16px; background: #f7f9fd; text-align: left; box-shadow: 0 12px 30px rgba(43, 71, 121, .06); }
.tool-marketing-model-card > img.tool-marketing-model-preview { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tool-marketing-model-card-copy { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding: 18px; }
.tool-marketing-model-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: #fff; box-shadow: 0 5px 14px rgba(30, 48, 76, .09); }
.tool-marketing-model-icon img { display: block; width: 26px; height: 26px; object-fit: contain; }
.tool-marketing-model-card h3 { margin: 0; font-size: 15px; line-height: 1.4; }
.tool-marketing-model-card p { margin: 5px 0 0; font-size: 12px; line-height: 1.6; }
.tool-marketing-content[data-marketing-page="motion-control"] .tool-marketing-comparison { margin-top: 112px; }
.tool-marketing-content[data-marketing-page="motion-control"] .tool-marketing-faq { margin-top: 140px; }
.tool-marketing-content[data-marketing-page="digital-human"] .tool-marketing-model-grid { --tool-model-columns: 2; max-width: 920px; margin-right: auto; margin-left: auto; }
.tool-marketing-content[data-marketing-page="digital-human"] .tool-marketing-model-card > img.tool-marketing-model-preview { aspect-ratio: 16 / 8; }
.tool-marketing-content[data-marketing-page="ai-character"] .tool-marketing-model-grid { --tool-model-columns: 5; }
.tool-marketing-content[data-marketing-page="ai-character"] .tool-marketing-model-card-copy { grid-template-columns: 38px minmax(0, 1fr); gap: 9px; padding: 15px 12px; }
.tool-marketing-content[data-marketing-page="ai-character"] .tool-marketing-model-icon { width: 38px; height: 38px; }
.tool-marketing-content[data-marketing-page="ai-character"] .tool-marketing-model-card h3 { font-size: 13px; }
.tool-marketing-content[data-marketing-page="ai-character"] .tool-marketing-model-card p { font-size: 10px; }
.tool-marketing-content[data-marketing-page="ai-character"] .tool-marketing-comparison { margin-top: 136px; }
.tool-marketing-content[data-marketing-page="ai-character"] .tool-marketing-audience { margin-top: 112px; }
.tool-marketing-content[data-marketing-page="ai-character"] .tool-marketing-faq { margin-top: 136px; }

.asset-workspace { width: min(100%, 1460px); margin: 0 auto 70px; }
.asset-library-header { margin-bottom: 30px; border: 1px solid rgba(255,255,255,.88); border-radius: 20px; padding: 22px 24px 18px; background: rgba(255,255,255,.76); box-shadow: 0 16px 42px rgba(48,67,96,.11), inset 0 0 0 1px rgba(202,211,224,.18); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.asset-workspace-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.asset-workspace-heading .eyebrow { margin-bottom: 6px; color: #55739e; font-size: 10px; font-weight: 820; letter-spacing: .14em; }
.asset-workspace-heading h2 { color: #171d29; font-size: 28px; font-weight: 780; letter-spacing: -.035em; }
.asset-workspace-heading > div > p:last-child { margin: 7px 0 0; color: #596679; font-size: 12px; font-weight: 520; line-height: 1.6; }
.asset-count { display: inline-flex; border: 1px solid #d6e3f2; border-radius: 999px; padding: 6px 10px; color: #315e98; background: rgba(247,251,255,.94); font-size: 11px; font-weight: 700; white-space: nowrap; }
.asset-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 15px; border-top: 1px solid rgba(185,198,215,.48); }
.asset-type-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.asset-type-filter { border: 0; border-radius: 999px; padding: 8px 12px; color: #465367; background: transparent; font-size: 12px; font-weight: 600; }
.asset-type-filter:hover { color: #245b9e; background: rgba(225,236,250,.82); }
.asset-type-filter.selected { color: #fff; background: #3478d4; font-weight: 740; box-shadow: 0 5px 14px rgba(52,120,212,.2); }
.asset-toolbar-actions { display: flex; align-items: center; gap: 9px; }
.asset-search { display: flex; width: 250px; align-items: center; gap: 7px; border: 1px solid #d8e0ea; border-radius: 10px; padding: 0 10px; color: #647288; background: rgba(255,255,255,.96); }
.asset-search:focus-within { border-color: #9ebfe2; box-shadow: 0 0 0 3px rgba(53, 126, 205, .08); }
.asset-search input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 8px 0; color: #283444; background: transparent; font-size: 12px; }
.asset-search input::placeholder { color: #718096; opacity: 1; }
.asset-sort select { border: 1px solid #d8e0ea; border-radius: 10px; outline: 0; padding: 8px 28px 8px 10px; color: #344154; background: rgba(255,255,255,.96); font-size: 12px; }
.asset-groups { display: grid; gap: 32px; }
.asset-date-group { display: grid; gap: 12px; }
.asset-date-group h3 { color: #252b34; font-size: 20px; letter-spacing: -.02em; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 3px; align-items: start; }
.asset-card { position: relative; min-width: 0; overflow: hidden; border-radius: 2px; background: #e9edf1; }
.asset-card-preview { position: relative; display: block; width: 100%; min-height: 150px; overflow: hidden; border: 0; padding: 0; background: #e8ecf0; }
.asset-card-preview > img, .asset-card-preview > video { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .18s ease, opacity .18s ease; }
.asset-card.video .asset-card-preview > video { background: #1e232b; }
.asset-card-preview:hover > img, .asset-card-preview:hover > video { opacity: .94; transform: scale(1.025); }
.asset-card-type { position: absolute; right: 7px; bottom: 7px; display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 4px 7px; color: #fff; background: rgba(24, 29, 37, .72); font-size: 10px; opacity: 0; transform: translateY(3px); transition: opacity .15s ease, transform .15s ease; }
.asset-card-preview:hover .asset-card-type, .asset-card-preview:focus-visible .asset-card-type { opacity: 1; transform: none; }
.asset-card-delete { position: absolute; z-index: 3; top: 7px; right: 7px; display: grid; width: 29px; height: 29px; place-items: center; border: 0; border-radius: 8px; padding: 0; color: #fff; background: rgba(143, 38, 55, .82); box-shadow: 0 4px 12px rgba(25, 29, 36, .18); opacity: .9; backdrop-filter: blur(7px); transition: opacity .15s ease, transform .15s ease, background .15s ease; }
.asset-card-delete:hover, .asset-card-delete:focus-visible { background: rgba(176, 39, 60, .94); opacity: 1; outline: none; transform: scale(1.04); }
.asset-card-delete:disabled { cursor: wait; opacity: .5; }
.asset-audio-thumbnail { display: grid; width: 100%; aspect-ratio: 1 / 1; place-items: center; align-content: center; gap: 13px; padding: 18px; color: #4a637d; background: #eaf1f8; }
.asset-audio-thumbnail .ti { font-size: 34px; }
.asset-audio-thumbnail span { overflow: hidden; max-width: 100%; color: #5d6875; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.asset-empty { display: grid; min-height: 360px; place-items: center; align-content: center; gap: 8px; color: #8c95a1; text-align: center; }
.asset-empty .ti { margin-bottom: 4px; font-size: 38px; }
.asset-empty strong { color: #4d5662; font-size: 15px; }
.asset-empty span { font-size: 12px; }
.asset-preview-dialog { width: min(920px, calc(100vw - 48px)); max-height: calc(100vh - 44px); overflow: auto; border: 0; border-radius: 18px; padding: 0; background: #fff; box-shadow: 0 28px 80px rgba(19, 25, 34, .28); }
.asset-preview-dialog::backdrop { background: rgba(22, 27, 34, .58); backdrop-filter: blur(3px); }
.asset-preview-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 18px 20px 14px; border-bottom: 1px solid #eceff2; }
.asset-preview-header h2 { max-width: 720px; overflow: hidden; color: #282f39; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.asset-preview-header p { margin: 5px 0 0; color: #8a939f; font-size: 11px; }
.asset-preview-media { display: grid; min-height: 420px; place-items: center; padding: 18px; background: #20252d; }
.asset-preview-output { display: block; width: 100%; max-height: 66vh; object-fit: contain; }
.asset-preview-output.chat-inline-image { max-width: 100%; }
.asset-preview-output.chat-inline-audio { min-height: 54px; background: transparent; }
.asset-preview-prompt { max-height: 120px; overflow: auto; margin: 0; padding: 15px 20px 0; color: #515b68; font-size: 12px; line-height: 1.65; white-space: pre-wrap; }
.asset-preview-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 15px 20px 20px; }
.asset-preview-action { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e0e5ea; border-radius: 8px; padding: 7px 10px; color: #4f5b68; background: #fff; font-size: 12px; text-decoration: none; }
.asset-preview-action:hover { border-color: #b8c9db; background: #f8fafc; }

.chat-empty { display: grid; max-width: 900px; justify-items: center; gap: 0; margin: clamp(72px, 10vh, 128px) auto -30px; color: #667588; text-align: center; }
.chat-empty .ti { color: #4f6580; font-size: 36px; filter: drop-shadow(0 2px 8px rgba(255,255,255,.7)); }
.chat-empty h2 { color: #253247; font-size: 22px; text-shadow: 0 1px 10px rgba(255,255,255,.82); }
.chat-timeline { display: grid; max-width: 1120px; gap: 18px; margin: 0 auto; padding: 0 0 252px; }
.chat-timeline:empty { display: none; }
.chat-day-label { margin: 2px 0 5px; color: #7f8792; font-size: 13px; font-weight: 720; }
.chat-message { display: grid; gap: 9px; }
.chat-message.user-message { grid-template-columns: 30px minmax(0, 1fr); align-items: start; }
.chat-avatar { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 8px; color: #fff; background: #2f7ed8; font-size: 14px; }
.chat-prompt { margin: 4px 0 0; color: #353c47; font-size: 13px; line-height: 1.6; white-space: pre-wrap; }
.chat-job-card { overflow: hidden; border: 1px solid #e8ebef; border-radius: 14px; background: #fff; box-shadow: 0 8px 25px rgba(31, 39, 51, .05); }
.chat-job-card.image-output { --image-result-card-width: 442px; width: min(var(--image-result-card-width), 100%); max-width: 100%; justify-self: start; }
.chat-job-card.image-output[data-image-count="single"][data-image-orientation="landscape"] { --image-result-card-width: 522px; }
.chat-job-card.image-output[data-image-count="single"][data-image-orientation="square"] { --image-result-card-width: 422px; }
.chat-job-card.image-output[data-image-count="single"][data-image-orientation="portrait"] { --image-result-card-width: 322px; }
.chat-job-card.image-output[data-image-count="multiple"] { --image-result-card-width: 522px; }
.chat-job-card.image-output[data-image-count="multiple"][data-image-orientation="landscape"] { --image-result-card-width: 522px; }
.chat-job-card.image-output[data-image-count="multiple"][data-image-orientation="portrait"] { --image-result-card-width: 502px; }
.chat-job-card.image-output .chat-job-actions { gap: 4px; padding: 9px 8px 10px; }
.chat-job-card.image-output .chat-inline-action { gap: 4px; padding: 5px 6px; font-size: 11px; }
.chat-inline-video, .history-inline-video { display: block; width: 100%; max-height: 480px; background: #20242c; object-fit: contain; }
.history-inline-video { max-height: 260px; border-radius: 10px; }
.chat-job-content { padding: 12px 13px 13px; }
.chat-job-state { margin-bottom: 6px; color: #1e814d; font-size: 13px; font-weight: 750; }
.chat-job-card.failed .chat-job-state { color: #b83f54; }
.chat-job-card.active .chat-job-state { color: #2f7ed8; }
.chat-job-meta, .chat-job-error { margin-bottom: 0; color: #7f8792; font-size: 12px; line-height: 1.55; }
.chat-job-error { margin-top: 7px; color: #a34958; }
.chat-job-progress { display: grid; gap: 7px; margin-top: 12px; }
.chat-job-progress-copy { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #727c89; font-size: 12px; }
.chat-job-progress-copy strong { color: #2f7ed8; font-size: 12px; font-variant-numeric: tabular-nums; }
.chat-job-progress-track { position: relative; overflow: hidden; height: 6px; border-radius: 99px; background: #edf2f7; }
.chat-job-progress-track > span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2478de, #67aaf4); transition: width .35s ease; }
.chat-job-progress-track.indeterminate > span { width: 38%; animation: commercial-progress 1.35s ease-in-out infinite; }
.chat-job-actions { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px 13px 13px; }
.chat-inline-action { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #e3e6eb; border-radius: 8px; padding: 6px 8px; color: #4d5663; background: #fff; font-size: 12px; text-decoration: none; }
.chat-inline-action:hover { background: #f4f6f8; }
.chat-inline-action.danger { color: #b63f52; border-color: #f1d8dc; background: #fff8f8; }
.chat-prompt-body { min-width: 0; }
.chat-prompt { margin: 4px 0 0; color: #303844; font-size: 13px; line-height: 1.65; white-space: pre-wrap; }
.chat-prompt-expand { border: 0; margin: 5px 0 0; padding: 0; color: #397fce; background: transparent; font-size: 12px; }
.chat-prompt-expand:hover { color: #216ab7; text-decoration: underline; }
.chat-prompt-meta { margin: 5px 0 0; color: #89919d; font-size: 12px; line-height: 1.5; }
.chat-empty-conversation { margin: 10vh auto 0; color: #929aa5; font-size: 13px; text-align: center; }

.creation-stage { position: sticky; z-index: 8; bottom: 18px; width: min(1120px, 100%); max-width: none; margin: 18px auto 0; }
.creation-shell { position: relative; min-height: 204px; padding: 24px 22px 15px 44px; border: 1px solid rgba(255,255,255,.78); border-radius: 24px; background: #fff; box-shadow: 0 28px 72px rgba(54, 67, 86, .18); }
.reference-add-button { position: absolute; z-index: 3; top: 10px; left: -154px; display: grid; width: 136px; height: 184px; justify-items: center; align-content: center; gap: 9px; overflow: hidden; border: 1px solid rgba(255,255,255,.84); border-radius: 20px; color: #33445a; background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(248,251,255,.34) 52%, rgba(246,249,253,.88)), url('/assets/reference-upload-dreamscape-v1.webp') center / cover no-repeat; box-shadow: 0 18px 38px rgba(41, 55, 76, .16); transform: rotate(-2.5deg); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.reference-add-button:hover { border-color: rgba(255,255,255,.98); box-shadow: 0 22px 46px rgba(41, 55, 76, .21); transform: rotate(-1deg) translateY(-3px); }
.reference-add-button:focus-visible { outline: 3px solid rgba(47, 126, 216, .3); outline-offset: 3px; transform: rotate(-1deg); }
.reference-add-button .ti { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(255,255,255,.74); border-radius: 15px; background: rgba(255,255,255,.58); box-shadow: 0 8px 24px rgba(49, 65, 88, .11); font-size: 26px; }
.reference-add-button span { font-size: 14px; font-weight: 760; letter-spacing: .02em; }
.reference-add-button small { max-width: 108px; color: #65748a; font-size: 11px; font-weight: 600; line-height: 1.45; text-align: center; }
.reference-preview { position: absolute; z-index: 4; top: 10px; left: -154px; width: 136px; height: 184px; border: 1px solid rgba(255,255,255,.86); border-radius: 20px; object-fit: cover; background: #fff; box-shadow: 0 18px 38px rgba(41, 55, 76, .17); transform: rotate(-2.5deg); }
.legacy-reference-controls { position: absolute; z-index: 5; top: 154px; left: -143px; display: flex; gap: 6px; }
.legacy-reference-control { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid rgba(255,255,255,.8); border-radius: 9px; color: #fff; background: rgba(27, 31, 39, .82); box-shadow: 0 3px 10px rgba(22, 25, 32, .22); font-size: 15px; }
.legacy-reference-control:hover { background: #171a24; }
.legacy-reference-control.danger:hover { color: #fff; background: #b64050; }
.inline-reference-assets { position: absolute; z-index: 4; top: 27px; left: 20px; display: flex; align-items: center; gap: 6px; max-width: calc(100% - 142px); overflow: hidden; }
.inline-reference-asset { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; min-width: 0; border: 1px solid #e3e4e9; border-radius: 9px; padding: 3px; color: #464c56; background: #fff; box-shadow: 0 4px 12px rgba(29, 32, 41, .08); text-align: left; }
.inline-reference-asset:hover { border-color: #babdc7; background: #fbfbfc; }
.inline-reference-asset.is-visual { position: relative; width: 52px; height: 62px; padding: 0; overflow: hidden; }
.inline-reference-asset:disabled { cursor: wait; opacity: .88; }
.inline-reference-asset.review-failed:disabled, .inline-reference-asset.review-error:disabled { cursor: not-allowed; border-color: #efb5bd; }
.inline-review-state { position: absolute; top: 3px; left: 3px; right: 3px; display: inline-flex; min-height: 18px; align-items: center; justify-content: center; gap: 2px; border-radius: 999px; padding: 1px 3px; color: #fff; background: rgba(54, 62, 74, .9); font-size: 9px; font-weight: 750; line-height: 1; box-shadow: 0 2px 6px rgba(24, 30, 40, .22); }
.inline-review-state .ti { font-size: 10px; }
.inline-review-state.is-approved { background: #15865a; }
.inline-review-state.is-rejected { background: #c63f54; }
.inline-review-state.is-reviewing { background: #3478c5; }
.inline-review-state.is-reviewing .ti { animation: seedance-review-spin 1s linear infinite; }
.inline-reference-preview { display: block; width: 100%; height: 100%; border-radius: 8px; object-fit: cover; background: #f0f1f4; }
.inline-reference-token { position: absolute; right: 3px; bottom: 3px; border-radius: 5px; padding: 2px 4px; color: #fff; background: rgba(20, 22, 29, .75); font-size: 9px; font-weight: 700; }
.inline-reference-asset.is-audio { width: 148px; min-height: 45px; padding: 8px 9px; }
.inline-reference-asset.is-audio .inline-reference-preview { width: auto; height: auto; color: #525864; background: none; font-size: 20px; }
.inline-reference-asset.is-selected-template { width: 140px; height: 62px; overflow: hidden; border-color: #ccd9ec; padding: 3px; background: linear-gradient(135deg, #f7faff, #fff); cursor: default; }
.inline-reference-template-cover { width: 48px; height: 56px; flex: 0 0 48px; border-radius: 7px; object-fit: cover; background: linear-gradient(135deg, #2d5fae, #bcd4f5); }
.inline-reference-template-cover.is-fallback { display: none; }
.inline-reference-template-copy { display: grid; min-width: 0; gap: 3px; padding-right: 2px; }
.inline-reference-template-copy small { color: #3478c5; font-size: 10px; font-weight: 750; }
.inline-reference-template-copy strong { overflow: hidden; color: #3a4554; font-size: 11px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.inline-reference-audio-name { overflow: hidden; color: #59606b; font-size: 11px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.inline-reference-more { flex: 0 0 auto; width: 31px; height: 31px; border: 1px solid #e0e1e6; border-radius: 50%; color: #5d626c; background: #fff; font-size: 11px; font-weight: 700; }
.inline-reference-more:hover { background: #f5f5f7; }
.inline-reference-more.is-manage { display: inline-grid; place-items: center; color: #656b76; font-size: 16px; }

.composer-topline { display: flex; align-items: center; gap: 7px; min-width: 0; min-height: 16px; margin-right: 110px; color: #8a8f9a; font-size: 12px; }
.creation-shell.has-inline-assets .composer-topline, .creation-shell.has-inline-assets .prompt-editor { margin-left: var(--inline-reference-offset, 66px); }
.composer-topline > span:not(.composer-description) { flex: 0 0 auto; color: #5d626c; font-weight: 650; white-space: nowrap; }
.composer-description { min-width: 0; flex: 1 1 auto; overflow: hidden; color: #9a9ea7; text-overflow: ellipsis; white-space: nowrap; }
.prompt-editor { position: relative; display: block; margin: 7px 108px 4px 0; }
.prompt-input { display: block; width: 100%; min-height: 84px; max-height: 180px; overflow-y: auto; padding: 6px 0; border: 0; outline: 0; background: transparent; color: #262a34; font-size: 14px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.prompt-input:empty::before { content: attr(data-placeholder); color: #999ea8; pointer-events: none; }
.prompt-input:focus::before { color: #a6aab3; }
.prompt-mention-chip { display: inline-flex; align-items: center; margin: 0 2px; border-radius: 4px; padding: 0 5px; color: #fff; background: #2478de; font-weight: 700; line-height: 1.55; vertical-align: baseline; user-select: all; }
.prompt-mention-chip::selection { color: #fff; background: #175fb7; }
.composer-actions { position: absolute; top: 14px; right: 14px; }
.action-mode { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #e0e1e7; border-radius: 10px; padding: 8px 10px; color: #3c424e; background: #fff; font-size: 13px; font-weight: 650; }
.action-mode.selected { box-shadow: inset 0 0 0 1px #f5f5f7; }
.composer-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px; min-height: 52px; padding-top: 10px; border-top: 1px solid #f1f1f4; }
.setting-pills, .create-actions { display: flex; align-items: center; gap: 8px; }
.setting-pills { flex-wrap: nowrap; min-width: 0; }
.create-actions { flex-wrap: nowrap; justify-content: flex-end; }
.setting-pill { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; min-height: 34px; border: 1px solid #e3e4e9; border-radius: 10px; padding: 6px 9px; color: #555b66; background: #fff; font-size: 13px; white-space: nowrap; }
.setting-pill:hover, .setting-pill[aria-expanded="true"] { border-color: #cfd1da; background: #f7f7f9; }
.setting-pill .ti-chevron-down { color: #9a9ea7; font-size: 13px; }
.cost-note { max-width: 168px; color: #90959e; font-size: 11px; line-height: 1.35; }
.creation-feedback { display: flex; min-height: 40px; align-items: center; gap: 8px; margin-top: 9px; border: 1px solid #f0c2c7; border-radius: 10px; padding: 8px 10px; color: #9d2634; background: #fff3f4; font-size: 12px; line-height: 1.45; }
.creation-feedback[hidden], .creation-feedback-toast[hidden] { display: none !important; }
.creation-feedback > i { flex: 0 0 auto; font-size: 17px; }
.creation-feedback > span { min-width: 0; flex: 1 1 auto; }
.creation-feedback > button { flex: 0 0 auto; border: 0; border-radius: 8px; padding: 6px 10px; color: #fff; background: #c93849; font-size: 11px; font-weight: 750; }
.creation-feedback.is-loading { border-color: #cbd8ea; color: #35618f; background: #f2f7fd; }
.creation-feedback.is-loading > i { animation: creation-feedback-spin .8s linear infinite; }
.creation-feedback.is-success { border-color: #b9dfc9; color: #217044; background: #f0faf4; }
.creation-feedback-toast { position: fixed; z-index: 140; top: 72px; left: 50%; display: flex; max-width: min(520px, calc(100vw - 32px)); min-height: 44px; align-items: center; gap: 9px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 10px 14px; color: #fff; background: #b92e40; box-shadow: 0 14px 36px rgba(44,22,28,.24); font-size: 13px; font-weight: 680; line-height: 1.45; transform: translateX(-50%); animation: creation-feedback-toast-in .18s ease-out; }
.creation-feedback-toast.is-loading { background: #315f91; }
.creation-feedback-toast.is-loading > i { animation: creation-feedback-spin .8s linear infinite; }
.creation-feedback-toast.is-success { background: #267149; }
@keyframes creation-feedback-spin { to { transform: rotate(360deg); } }
@keyframes creation-feedback-toast-in { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.real-person-confirm input { accent-color: #161923; }
.create-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 110px; min-height: 40px; border: 0; border-radius: 13px; padding: 9px 15px; color: #fff; background: #171a24; font-weight: 760; }
.create-button:hover { background: #303440; }
.create-button:disabled { cursor: not-allowed; }
.create-button.is-incomplete:disabled { border: 1px solid #e1e4e9; color: #9aa1ab; background: #eef0f3; box-shadow: none; opacity: 1; }
.create-button.is-incomplete:disabled:hover { background: #eef0f3; }
.create-button.is-submitting:disabled { color: #fff; background: #4a4f5b; opacity: .72; }
.create-button.is-auth-required:not(:disabled) { box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
.setting-popover { position: absolute; z-index: 12; border: 1px solid #e9e9ee; border-radius: 16px; background: #fff; box-shadow: 0 15px 32px rgba(30, 32, 42, .16); }

select.lineai-select-source { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; margin: -1px !important; border: 0 !important; padding: 0 !important; opacity: 0 !important; pointer-events: none !important; clip-path: inset(50%) !important; }
.lineai-select { display: block; width: 100%; min-width: 0; }
.lineai-select-trigger { display: flex; width: 100%; min-height: 39px; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #dfe4ea; border-radius: 10px; padding: 8px 10px; color: #303844; background: #fff; font-size: 12px; line-height: 1.35; text-align: left; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.lineai-select-trigger:hover, .lineai-select-trigger.open { border-color: #c6d8ea; background: #f8fbff; }
.lineai-select-trigger:focus-visible { border-color: #91b9e5; outline: 0; box-shadow: 0 0 0 3px rgba(47, 126, 216, .09); }
.lineai-select-trigger:disabled { cursor: not-allowed; color: #a0a7b0; background: #f3f5f7; opacity: .74; }
.lineai-select-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lineai-select-trigger > .ti { flex: 0 0 auto; color: #929aa5; font-size: 13px; transition: transform .16s ease; }
.lineai-select-trigger.open > .ti { color: #4c75a1; transform: rotate(180deg); }
.lineai-select-menu { position: fixed; z-index: 80; box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain; border-radius: 14px; padding: 8px; }
.lineai-select-option { display: grid; width: 100%; min-height: 38px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px; border: 0; border-radius: 10px; padding: 8px 9px; color: #343b46; background: transparent; text-align: left; }
.lineai-select-option:hover, .lineai-select-option:focus-visible { outline: 0; background: #f3f4f6; }
.lineai-select-option.selected { color: #202631; background: #f1f1f3; }
.lineai-select-option:disabled { cursor: not-allowed; opacity: .42; }
.lineai-select-option > span { display: grid; min-width: 0; gap: 2px; }
.lineai-select-option strong { overflow: hidden; font-size: 12px; font-weight: 720; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.lineai-select-option small { overflow: hidden; color: #89919c; font-size: 10px; font-weight: 500; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.lineai-select-option .menu-check { color: transparent; font-size: 15px; }
.lineai-select-option.selected .menu-check { color: #1d222b; }
.lineai-select-option.model-option { min-height: 58px; grid-template-columns: 34px minmax(0, 1fr) auto; }
.lineai-select-option > .model-brand-mark, .lineai-select-option > .ti:first-child { display: grid; width: 32px; height: 32px; place-items: center; overflow: hidden; border: 1px solid #e3e6ea; border-radius: 9px; color: #3d7fbd; background: #fff; font-size: 17px; }
.lineai-select-option > .model-brand-mark img { display: block; width: 20px; height: 20px; object-fit: contain; }
.asset-sort .lineai-select { width: 118px; }
.asset-sort .lineai-select-trigger { min-height: 34px; border-color: #d8e0ea; padding: 7px 9px; color: #344154; background: rgba(255,255,255,.96); }

@keyframes commercial-progress {
  0% { transform: translateX(-115%); }
  55% { transform: translateX(85%); }
  100% { transform: translateX(285%); }
}

@media (prefers-reduced-motion: reduce) {
  .ai-tool-result-progress.indeterminate > span,
  .chat-job-progress-track.indeterminate > span { animation-duration: 2.8s; }
}
.creation-type-menu { bottom: 50px; left: 14px; width: 188px; padding: 10px; }
.model-menu { position: fixed; z-index: 30; width: min(378px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; padding: 12px; box-sizing: border-box; }
.reference-mode-menu { bottom: 50px; left: 220px; width: 228px; padding: 12px; }
.output-settings-menu { position: fixed; z-index: 30; top: 12px; left: 12px; right: auto; bottom: auto; width: min(360px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; padding: 13px; }
.reference-upload-menu { top: 24px; left: 18px; width: 240px; padding: 10px; }
.multimodal-assets-menu { top: 24px; left: 18px; width: min(465px, calc(100vw - 40px)); padding: 13px; }
.menu-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 2px 2px 10px; color: #373b45; font-size: 15px; font-weight: 720; }
.menu-heading small { color: #a0a4ad; font-size: 12px; font-weight: 500; }
.menu-heading b { color: #747983; font-weight: 650; }
.popover-title { margin: 2px 4px 8px; color: #464b55; font-size: 13px; font-weight: 720; }
.popover-hint { margin: 8px 4px 2px; color: #90959f; font-size: 12px; line-height: 1.55; }
.popover-option, .model-menu-option, .creation-type-option { display: flex; width: 100%; align-items: center; gap: 10px; border: 0; border-radius: 10px; padding: 9px; color: #313640; background: transparent; text-align: left; }
.popover-option:hover, .model-menu-option:hover, .model-menu-option.selected, .creation-type-option:hover, .creation-type-option.selected { background: #f4f4f6; }
.popover-option > .ti, .model-menu-option > .ti:first-child, .creation-type-option > .ti:first-child { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #e6e6ea; border-radius: 9px; color: #595f6b; background: #fff; font-size: 17px; }
.model-menu-option > .model-brand-mark { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; overflow: hidden; border: 1px solid #e6e6ea; border-radius: 9px; background: #fff; }
.model-menu-option > .model-brand-mark--happyhorse { border-color: #009944; background: #009944; }
.model-brand-mark img { display: block; width: 19px; height: 19px; object-fit: contain; }
.model-brand-mark .ti { display: grid; place-items: center; color: #595f6b; font-size: 17px; }
.popover-option span, .model-menu-option span, .creation-type-option span { display: grid; gap: 2px; min-width: 0; }
.popover-option strong, .model-menu-option strong { font-size: 13px; font-weight: 700; }
.creation-type-option span { font-size: 13px; font-weight: 700; }
.popover-option small, .model-menu-option small { color: #858b96; font-size: 11px; line-height: 1.3; }
.menu-check { margin-left: auto; color: transparent; font-size: 17px; }
.model-menu-option.selected .menu-check { color: #1d222b; }
  .parameter-section + .parameter-section { margin-top: 13px; }
.model-specific-parameters { margin-top: 13px; }
.model-specific-parameters .parameter-section + .parameter-section { margin-top: 13px; }
.effect-template-specification { overflow: hidden; border: 1px solid #dce6f4; border-radius: 12px; background: #f8fbff; }
.effect-template-specification-heading { display: flex; align-items: center; gap: 7px; padding: 10px 11px 8px; color: #2c5f99; font-size: 13px; }
.effect-template-specification-heading .ti { color: #417dca; font-size: 15px; }
.effect-template-specification-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border-block: 1px solid #e3eaf5; background: #e3eaf5; }
.effect-template-specification-items p { display: grid; gap: 3px; min-width: 0; margin: 0; padding: 8px 10px; background: #fff; }
.effect-template-specification-items span { color: #8c96a5; font-size: 11px; }
.effect-template-specification-items b { overflow: hidden; color: #3e4652; font-size: 12px; font-weight: 600; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.effect-template-specification-note { margin: 0; padding: 9px 10px; color: #758295; font-size: 11px; line-height: 1.55; }
  .model-choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .parameter-label { margin: 0 0 7px; color: #858a94; font-size: 12px; }
.parameter-help { margin: 7px 1px 0; color: #a0a5ae; font-size: 11px; line-height: 1.4; }
.choice-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 10px; background: #f4f4f6; }
.ratio-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.duration-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.choice-button { min-height: 34px; border: 0; border-radius: 7px; padding: 5px 4px; color: #747984; background: transparent; font-size: 12px; white-space: nowrap; }
.choice-button:hover { color: #343943; background: #ebebee; }
.choice-button.selected { color: #151923; background: #fff; font-weight: 750; box-shadow: 0 1px 3px rgba(26, 28, 36, .06); }
.choice-button:focus-visible { outline: 2px solid #9ebce1; outline-offset: 1px; }
.choice-button:disabled { cursor: not-allowed; opacity: .34; }
.ratio-choice-button { display: flex; min-width: 0; min-height: 54px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 6px 3px 5px; }
.ratio-choice-visual { display: grid; width: 24px; height: 18px; place-items: center; }
.ratio-choice-frame { width: var(--ratio-shape-width, 16px); height: var(--ratio-shape-height, 16px); box-sizing: border-box; border: 1.5px solid currentColor; border-radius: 3px; background: transparent; transition: border-color .16s ease, background-color .16s ease; }
.ratio-choice-button.selected .ratio-choice-frame { background: #f5f6f8; }
.ratio-choice-auto-icon { font-size: 17px; line-height: 1; }
.ratio-choice-label { line-height: 1; }
.duration-slider { display: grid; gap: 7px; padding: 3px 4px 1px; border: 1px solid #ececf0; border-radius: 10px; background: #fafafb; }
.duration-slider-top, .duration-slider-labels { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #858b96; font-size: 11px; }
.duration-slider-top { padding: 4px 4px 0; }
.duration-slider-top output { color: #1d222c; font-size: 13px; font-weight: 750; }
.duration-slider-labels { padding: 0 4px 3px; }
.settings-duration-range { width: 100%; height: 18px; margin: 0; accent-color: #1b1e28; cursor: pointer; }
.settings-duration-range:focus-visible { outline: 2px solid #9ebce1; outline-offset: 2px; }
.real-person-confirm { display: flex; align-items: center; gap: 7px; margin: 13px 1px 0; color: #5d626c; font-size: 12px; }
.seedance-mention-menu { position: absolute; z-index: 13; top: calc(100% + 7px); left: 0; right: 0; max-height: 220px; overflow: auto; border: 1px solid #e5e5ea; border-radius: 12px; padding: 6px; background: #fff; box-shadow: 0 14px 30px rgba(30, 32, 42, .14); }
.mention-menu-title { margin: 5px 7px 6px; color: #9297a1; font-size: 11px; }
.seedance-mention-option { display: grid; width: 100%; grid-template-columns: 35px minmax(0, 1fr); align-items: center; gap: 9px; border: 0; border-radius: 8px; padding: 7px; color: #363b45; background: #fff; text-align: left; }
.seedance-mention-option:hover, .seedance-mention-option:focus, .seedance-mention-option.is-active { background: #eaf3ff; outline: 0; }
.seedance-mention-option.is-active { box-shadow: inset 0 0 0 1px #bfdbff; }
.seedance-mention-preview { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 7px; object-fit: cover; color: #565c68; background: #f1f2f4; font-size: 18px; }
.seedance-mention-label { display: grid; min-width: 0; gap: 2px; }
.seedance-mention-label strong { color: #3a404a; font-size: 12px; }
.seedance-mention-detail { overflow: hidden; color: #9297a1; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.seedance-reference-assets { display: grid; gap: 7px; }
.seedance-empty-assets { margin: 4px 2px; color: #9398a1; font-size: 12px; }
.seedance-asset { display: grid; grid-template-columns: 38px auto minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 8px; border: 1px solid #ededf1; border-radius: 10px; background: #fcfcfd; }
.seedance-asset.review-uploading, .seedance-asset.review-processing { border-color: #c9dcfa; background: #f7faff; }
.seedance-asset.review-active { border-color: #bfe6d3; background: #f8fdf9; }
.seedance-asset.review-failed, .seedance-asset.review-error { border-color: #f1c3ca; background: #fff9fa; }
.seedance-asset-preview { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 8px; object-fit: cover; color: #59606c; background: #eff0f3; font-size: 20px; }
.seedance-asset-call { border: 1px solid #e2e3e8; border-radius: 7px; padding: 5px 7px; color: #444a55; background: #fff; font-size: 12px; }
.seedance-asset-call:hover { background: #f3f3f5; }
.seedance-asset-call:disabled { cursor: not-allowed; color: #a1a6af; background: #f1f2f4; }
.seedance-asset-name { overflow: hidden; color: #747a85; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.asset-review-state { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 4px 7px; color: #8a641e; background: #fff3d5; font-size: 11px; font-weight: 700; white-space: nowrap; }
.asset-review-state.is-approved { color: #14764f; background: #e7f7ee; }
.asset-review-state.is-rejected { color: #b6384c; background: #fdecef; }
.asset-review-state.is-reviewing .ti { animation: seedance-review-spin 1s linear infinite; }
.seedance-asset-remove { border: 0; border-radius: 7px; padding: 5px 7px; color: #b8485a; background: #fff1f3; font-size: 12px; }
.seedance-asset-remove:hover { background: #ffe5e9; }
.seedance-asset-remove:disabled { cursor: wait; color: #a3a8b0; background: #f0f1f3; }
@keyframes seedance-review-spin { to { transform: rotate(360deg); } }
.chat-inline-image { display: block; max-width: min(100%, 760px); max-height: 680px; object-fit: contain; border-radius: 14px; background: #f1f2f5; }
.chat-image-gallery { display: grid; width: 100%; max-width: 100%; overflow: hidden; gap: 2px; border-radius: 13px 13px 0 0; background: #eef1f5; }
.chat-image-gallery[data-count="multiple"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chat-image-gallery > .chat-inline-image { width: 100%; max-width: none; height: auto; max-height: none; cursor: zoom-in; border-radius: 0; background: #eef1f5; }
.chat-image-gallery[data-count="multiple"] > .chat-inline-image { height: 100%; object-fit: cover; }
.chat-image-gallery > .chat-inline-image:focus-visible { position: relative; z-index: 1; outline: 3px solid rgba(47, 126, 216, .38); outline-offset: -3px; }
.chat-inline-audio { display: block; width: min(100%, 620px); margin: 12px 0 3px; }

@property --effect-template-reveal-stop {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}

.legacy-task-panel { display: none; }
.effect-template-market { max-width: 1280px; margin: 44px auto 78px; }
.effect-template-market[hidden] { display: none; }
.effect-template-market.is-reveal-ready { --effect-template-reveal-stop: 0%; opacity: .68; transform: translateY(14px); -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 var(--effect-template-reveal-stop), transparent calc(var(--effect-template-reveal-stop) + 16%)); mask-image: linear-gradient(to bottom, #000 0%, #000 var(--effect-template-reveal-stop), transparent calc(var(--effect-template-reveal-stop) + 16%)); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; transition: --effect-template-reveal-stop 1.55s cubic-bezier(.4,0,.6,1), opacity 1.35s cubic-bezier(.4,0,.6,1), transform 1.35s cubic-bezier(.4,0,.6,1); }
.effect-template-market.is-reveal-ready:not(.is-revealed) { will-change: opacity, transform; }
.effect-template-market.is-reveal-ready.is-revealed { --effect-template-reveal-stop: 100%; opacity: 1; transform: translateY(0); }
.effect-template-banner { position: relative; display: block; width: 100%; height: 240px; overflow: hidden; border-radius: 16px; color: #fff; background: #291114; }
.effect-template-banner-content { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border: 0; padding: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.effect-template-banner-content > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: opacity .32s ease, transform .8s ease; }
.effect-template-banner-content:hover > img { transform: scale(1.015); }
.effect-template-banner-content::after { position: absolute; z-index: 1; inset: 0; content: ''; background: linear-gradient(90deg, rgba(16, 4, 5, .42) 0%, rgba(16, 4, 5, .08) 52%, rgba(16, 4, 5, .05) 100%); pointer-events: none; }
.effect-template-banner-copy { position: absolute; z-index: 1; top: 50%; left: 80px; display: grid; gap: 10px; transform: translateY(-50%); }
.effect-template-banner-copy strong { font-size: 29px; letter-spacing: -.03em; }
.effect-template-banner-copy small { color: rgba(255,255,255,.92); font-size: 15px; }
.effect-banner-arrow { position: absolute; z-index: 3; top: 50%; display: grid; width: 46px; height: 46px; place-items: center; border: 0; border-radius: 50%; color: #fff; background: rgba(4, 8, 14, .48); font-size: 30px; transform: translateY(-50%); backdrop-filter: blur(5px); }
.effect-banner-arrow:hover { background: rgba(4, 8, 14, .66); }
.effect-banner-arrow-left { left: 10px; }.effect-banner-arrow-right { right: 10px; }
.effect-banner-dots { position: absolute; z-index: 3; bottom: 19px; left: 50%; display: flex; align-items: center; gap: 7px; transform: translateX(-50%); }
.effect-banner-dot { width: 8px; height: 8px; border: 0; border-radius: 999px; padding: 0; background: rgba(255,255,255,.54); transition: width .2s ease, background .2s ease; }
.effect-banner-dot.selected { width: 25px; background: #fff; }
.effect-template-market-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 24px 0 14px; }
.effect-template-market-heading h2 { color: #20252e; font-size: 18px; }
.effect-template-market-heading p { margin: 6px 0 0; color: #8b93a0; font-size: 12px; }
.template-reload-button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e1e5eb; border-radius: 8px; padding: 7px 10px; color: #566276; background: #fff; font-size: 12px; white-space: nowrap; }
.template-reload-button:hover { border-color: #a9bdd4; color: #2369ae; }
.effect-template-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
.effect-template-filters { display: flex; flex: 1; flex-wrap: wrap; gap: 7px; }
.effect-template-filter { border: 0; border-radius: 4px; padding: 6px 10px; color: #58687d; background: #f0f2f5; font-size: 12px; }
.effect-template-filter:hover, .effect-template-filter.selected { color: #175d9c; background: #d9eaff; }
.effect-template-search { display: flex; width: 242px; align-items: center; gap: 7px; border: 1px solid #dfe4ea; border-radius: 7px; padding: 0 10px; color: #98a1ae; background: #f8fafc; }
.effect-template-search:focus-within { border-color: #9fc5ed; background: #fff; }
.effect-template-search input { width: 100%; border: 0; outline: 0; padding: 8px 0; color: #344054; background: transparent; font-size: 12px; }
.effect-template-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; min-height: 120px; }
.effect-template-loading, .effect-template-error { grid-column: 1 / -1; margin: 28px 0; color: #7d8793; font-size: 13px; text-align: center; }
.effect-template-error { color: #b34b4b; }
.effect-template-card { position: relative; min-width: 0; overflow: hidden; border: 2px solid transparent; border-radius: 12px; padding: 0; color: inherit; background: #1f242d; text-align: left; box-shadow: 0 1px 3px rgba(22, 28, 37, .12); aspect-ratio: 9 / 16; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.effect-template-card.is-revealing { animation: effect-template-card-reveal .78s cubic-bezier(.22,.61,.36,1) both; animation-delay: var(--effect-template-reveal-delay, 0ms); pointer-events: none; will-change: opacity, transform; }
.effect-template-card:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(22, 28, 37, .16); }
.effect-template-card:focus-visible { outline: 3px solid rgba(59, 140, 240, .38); outline-offset: 2px; }
.effect-template-card.selected { border-color: #3b8cf0; box-shadow: 0 0 0 3px rgba(59, 140, 240, .16), 0 8px 18px rgba(22, 28, 37, .16); }
.effect-template-cover, .effect-template-preview { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: .97; transition: transform .62s cubic-bezier(.16,1,.3,1), opacity .62s ease; }
.effect-template-cover.is-loading { opacity: 0; transform: scale(1.018); }
.effect-template-preview { z-index: 1; opacity: 0; }
.effect-template-card.previewing .effect-template-preview { opacity: 1; }
.effect-template-card:hover .effect-template-cover, .effect-template-card:hover .effect-template-preview { transform: scale(1.04); }
.effect-template-shade { position: absolute; z-index: 2; inset: 0; background: linear-gradient(180deg, rgba(13,18,25,.05) 33%, rgba(13,18,25,.9) 100%); pointer-events: none; }
.effect-template-card-copy { position: absolute; z-index: 3; right: 0; bottom: 0; left: 0; padding: 12px; color: #fff; transition: transform .2s ease, opacity .2s ease; }
.effect-template-card:hover .effect-template-card-copy { transform: translateY(-2px); }
.effect-template-card-copy strong { display: block; overflow: hidden; font-size: 15px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.effect-template-card-copy small { display: block; margin-top: 6px; color: rgba(255,255,255,.94); font-size: 11px; font-weight: 600; line-height: 1.45; }
.effect-template-tag { position: absolute; z-index: 3; top: 8px; right: 8px; max-width: calc(100% - 56px); overflow: hidden; border-radius: 999px; padding: 4px 7px; color: #f0a8ff; background: rgba(11, 11, 17, .76); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; backdrop-filter: blur(8px); }
.effect-template-play { position: absolute; z-index: 3; top: 8px; left: 8px; display: grid; width: 33px; height: 33px; place-items: center; border-radius: 50%; color: #fff; background: rgba(24, 30, 39, .64); box-shadow: 0 1px 4px rgba(0,0,0,.22); transition: opacity .18s ease; pointer-events: none; }
.effect-template-play .ti { font-size: 16px; transform: translateX(1px); }
.effect-template-card.previewing .effect-template-play { opacity: 0; }
.effect-template-expand { position: absolute; z-index: 4; top: 48px; right: 8px; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; padding: 0; color: #fff; background: rgba(20, 26, 34, .68); box-shadow: 0 2px 8px rgba(0,0,0,.2); font-size: 17px; opacity: .86; backdrop-filter: blur(8px); transition: opacity .18s ease, background .18s ease, transform .18s ease; }
.effect-template-expand:hover, .effect-template-expand:focus-visible { outline: none; opacity: 1; background: rgba(20, 26, 34, .9); transform: scale(1.06); }
.effect-template-sentinel { display: grid; min-height: 48px; place-items: center; color: #8993a0; font-size: 12px; }

@keyframes effect-template-card-reveal {
  from { opacity: 0; transform: translateY(14px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .effect-template-market.is-reveal-ready,
  .effect-template-card.is-revealing { opacity: 1; animation: none; transform: none; transition: none; will-change: auto; }
  .effect-template-market.is-reveal-ready { -webkit-mask-image: none; mask-image: none; }
  .effect-template-cover.is-loading { opacity: .97; transform: none; }
}

.effect-template-preview-dialog { width: min(1320px, calc(100vw - 24px)); height: calc(100vh - 24px); max-width: none; max-height: none; overflow: hidden; border: 0; border-radius: 18px; padding: 0; color: #fff; background: #11151b; box-shadow: 0 32px 100px rgba(4, 8, 14, .45); }
.effect-template-preview-dialog::backdrop { background: rgba(8, 12, 18, .78); backdrop-filter: blur(6px); }
.effect-template-preview-shell { display: grid; height: 100%; grid-template-columns: minmax(0, 1fr) minmax(300px, 355px); }
.effect-template-preview-stage { position: relative; display: grid; min-width: 0; min-height: 0; place-items: center; overflow: hidden; background: #07090d; }
.effect-template-preview-stage video { display: block; width: auto; max-width: 100%; height: 100%; max-height: 100%; object-fit: contain; background: #07090d; }
.effect-template-preview-player-status { position: absolute; right: 18px; bottom: 54px; margin: 0; border-radius: 999px; padding: 6px 10px; color: rgba(255,255,255,.82); background: rgba(13,17,23,.62); font-size: 11px; pointer-events: none; backdrop-filter: blur(7px); }
.effect-template-preview-panel { display: flex; min-width: 0; flex-direction: column; color: #2f3743; background: #fff; }
.effect-template-preview-header { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px 14px; border-bottom: 1px solid #eceff3; }
.effect-template-preview-dialog-tag { max-width: calc(100% - 54px); overflow: hidden; border-radius: 999px; padding: 5px 9px; color: #7a3d8a; background: #f8ebfb; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.effect-template-preview-close { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border: 1px solid #e0e5eb; border-radius: 10px; padding: 0; color: #56616f; background: #fff; font-size: 19px; }
.effect-template-preview-close:hover, .effect-template-preview-close:focus-visible { outline: none; color: #202834; background: #f2f4f7; }
.effect-template-preview-copy { flex: 1; overflow: auto; padding: 26px 22px; }
.effect-template-preview-copy h2 { margin: 0; color: #202731; font-size: 25px; line-height: 1.25; letter-spacing: -.03em; }
.effect-template-preview-copy > p { margin: 12px 0 24px; color: #7a8492; font-size: 12px; line-height: 1.7; }
.effect-template-preview-parameters { display: grid; gap: 0; margin: 0; border-top: 1px solid #e7ebef; }
.effect-template-preview-parameters > div { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid #edf0f3; }
.effect-template-preview-parameters dt { color: #8a939f; font-size: 11px; }
.effect-template-preview-parameters dd { margin: 0; color: #38414d; font-size: 12px; font-weight: 650; line-height: 1.55; }
.effect-template-preview-footer { padding: 18px 22px; border-top: 1px solid #eceff3; }
.effect-template-preview-footer button { display: inline-flex; width: 100%; min-height: 42px; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 10px; color: #fff; background: #202630; font-size: 13px; font-weight: 700; }
.effect-template-preview-footer button:hover, .effect-template-preview-footer button:focus-visible { outline: none; background: #111720; }

/* Account and operator surfaces */
.workspace-header-actions { position: relative; display: flex; align-items: center; gap: 9px; }
.account-login-button, .account-header-chip, .account-recharge-button, .account-header-icon, .account-profile-button { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 999px; padding: 6px 10px; color: #4c5665; background: transparent; font-size: 12px; box-shadow: none; }
.account-login-button { border: 1px solid rgba(255,255,255,.88); background: rgba(255,255,255,.82); box-shadow: 0 8px 24px rgba(49, 67, 94, .09), inset 0 0 0 1px rgba(202, 211, 224, .28); backdrop-filter: blur(14px); }
.account-login-button:hover { color: #1f2937; background: rgba(255,255,255,.96); }
.account-header-chip:hover, .account-header-icon:hover, .account-profile-button:hover { color: #1f2937; background: rgba(227, 236, 248, .72); }
.account-login-button:focus-visible, .account-header-chip:focus-visible, .account-recharge-button:focus-visible, .account-header-icon:focus-visible, .account-profile-button:focus-visible { outline: 2px solid rgba(52,120,212,.34); outline-offset: 2px; }
.account-header { position: relative; display: flex; align-items: center; gap: 3px; border: 1px solid rgba(255,255,255,.9); border-radius: 999px; padding: 4px; background: rgba(255,255,255,.78); box-shadow: 0 9px 28px rgba(48, 67, 96, .10), inset 0 0 0 1px rgba(202, 211, 224, .25); backdrop-filter: blur(16px); }
.account-header[hidden] { display: none; }
.account-header-chip strong { color: #172033; font-size: 13px; font-variant-numeric: tabular-nums; }
.account-header-chip span { color: #87909d; }
.account-recharge-button { color: #fff; background: #3478d4; font-weight: 720; box-shadow: 0 5px 14px rgba(52, 120, 212, .24); }
.account-recharge-button:hover, .account-recharge-button:focus-visible { color: #fff; background: #2868bf; }
.account-header-icon { position: relative; width: 34px; padding: 0; font-size: 16px; }
.account-header-icon > span { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; border: 2px solid #f7f8fa; border-radius: 999px; padding: 0 4px; color: #fff; background: #ee4f68; font-size: 9px; font-weight: 760; line-height: 13px; text-align: center; }
.account-profile-button { padding: 4px 8px 4px 5px; }
.account-profile-button > span:first-child { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; color: #fff; background: #3f7fe3; font-size: 11px; font-weight: 800; }
.account-profile-button > span:nth-child(2) { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-profile-menu { position: absolute; z-index: 50; top: calc(100% + 8px); right: 0; display: grid; width: 166px; gap: 3px; border: 1px solid #e5e8ed; border-radius: 13px; padding: 6px; background: #fff; box-shadow: 0 14px 36px rgba(25, 33, 45, .15); }
.account-profile-menu[hidden] { display: none; }
.account-profile-menu button, .account-profile-menu a { display: flex; min-height: 36px; align-items: center; gap: 8px; border: 0; border-radius: 8px; padding: 8px 9px; color: #475161; background: transparent; font-size: 12px; text-decoration: none; }
.account-profile-menu button:hover, .account-profile-menu a:hover { color: #182131; background: #f3f5f7; }
.account-profile-menu .danger { color: #c6485b; }

.account-dialog { width: min(570px, calc(100vw - 30px)); max-height: calc(100vh - 32px); overflow: hidden; border: 0; border-radius: 20px; padding: 0; color: #202632; background: #fff; box-shadow: 0 24px 70px rgba(21, 30, 43, .2); }
.account-dialog::backdrop { background: rgba(31, 40, 53, .42); backdrop-filter: blur(3px); }
.account-center-dialog { width: min(880px, calc(100vw - 30px)); }
.account-dialog-shell { max-height: calc(100vh - 32px); overflow: auto; padding: 25px; box-sizing: border-box; }
.account-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.account-dialog-header h2 { margin: 4px 0 5px; color: #171d28; font-size: 22px; letter-spacing: -.03em; }
.account-dialog-header p { margin: 0; color: #89919d; font-size: 12px; line-height: 1.55; }
.account-kicker { color: #3475d7; font-size: 10px; font-weight: 820; letter-spacing: .14em; }
.auth-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; margin: 23px 0 16px; padding: 4px; border-radius: 11px; background: #f2f4f7; }
.auth-tab { min-height: 35px; border: 0; border-radius: 8px; color: #7d8591; background: transparent; font-size: 13px; }
.auth-tab.selected { color: #1c2431; background: #fff; font-weight: 720; box-shadow: 0 1px 3px rgba(28, 37, 49, .08); }
.account-form { display: grid; gap: 13px; }
.account-form label { display: grid; gap: 6px; color: #4f5967; font-size: 12px; font-weight: 650; }
.account-form label span { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.account-form label span small, .account-form label > small { color: #a0a7b1; font-size: 10px; font-weight: 500; line-height: 1.45; }
.account-form input, .account-form textarea, .admin-field input, .admin-field textarea, .admin-field select { width: 100%; border: 1px solid #dfe4ea; border-radius: 10px; outline: 0; padding: 10px 11px; color: #242c39; background: #fbfcfd; font: inherit; font-size: 13px; box-sizing: border-box; resize: vertical; }
.account-form input:focus, .account-form textarea:focus, .admin-field input:focus, .admin-field textarea:focus, .admin-field select:focus { border-color: #76a5e9; background: #fff; box-shadow: 0 0 0 3px rgba(65, 124, 210, .1); }
.account-primary-button, .account-secondary-button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 11px; padding: 9px 14px; font-weight: 740; }
.account-primary-button { color: #fff; background: #171b25; }
.account-primary-button:hover { background: #303642; }
.account-primary-button:disabled { cursor: wait; opacity: .55; }
.account-secondary-button { min-height: 34px; border: 1px solid #dfe4ea; color: #5e6876; background: #fff; font-size: 11px; }
.account-secondary-button:hover { border-color: #b7c3d1; color: #273243; }
.account-form-message { min-height: 17px; margin: -2px 0 0; color: #c14459; font-size: 11px; line-height: 1.5; }
.account-form-message.success { color: #16824b; }
.account-dialog-footnote { display: flex; align-items: center; gap: 7px; margin: 16px 0 0; color: #939aa5; font-size: 10px; }

.account-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.account-summary > div { display: grid; gap: 5px; border: 1px solid #e6e9ee; border-radius: 13px; padding: 15px; background: #fafbfc; }
.account-summary span { color: #7e8794; font-size: 11px; }
.account-summary strong { color: #172033; font-size: 26px; font-variant-numeric: tabular-nums; line-height: 1; }
.account-summary small { color: #a0a7b1; font-size: 10px; }
.account-center-tabs { display: flex; gap: 4px; margin: 20px 0 0; border-bottom: 1px solid #e8ebef; }
.account-center-tab { border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; color: #858d98; background: transparent; font-size: 12px; }
.account-center-tab.selected { border-color: #3475d7; color: #2565c0; font-weight: 740; }
.account-panel { padding-top: 16px; }
.account-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 12px; }
.account-panel-heading.compact { margin-top: 22px; }
.account-panel-heading h3, .account-subcard h3 { margin: 0; color: #26303e; font-size: 14px; }
.account-panel-heading p, .account-subcard p { margin: 4px 0 0; color: #939ba6; font-size: 11px; line-height: 1.5; }
.account-list { display: grid; gap: 7px; }
.account-list-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; border: 1px solid #e8ebef; border-radius: 11px; padding: 11px 13px; background: #fff; }
.account-list-item.unread { border-color: #cce0fb; background: #f7fbff; }
.account-list-copy { min-width: 0; }
.account-list-copy strong { display: block; overflow: hidden; color: #333c49; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.account-list-copy p { margin: 4px 0 0; color: #7c8592; font-size: 11px; line-height: 1.5; }
.account-list-copy small { display: block; margin-top: 4px; color: #a1a8b2; font-size: 10px; }
.account-list-value { text-align: right; }
.account-list-value strong { display: block; color: #26303e; font-size: 13px; font-variant-numeric: tabular-nums; }
.account-list-value strong.positive { color: #14814b; }
.account-list-value strong.negative { color: #c24859; }
.account-list-value small { color: #969ea8; font-size: 10px; }
.account-list-action { border: 1px solid #dfe5ec; border-radius: 8px; padding: 6px 9px; color: #4d647e; background: #fff; font-size: 10px; }
.account-empty { margin: 18px 0; color: #9ca3ad; font-size: 12px; text-align: center; }
.recharge-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 12px; }
.account-subcard { align-content: start; border: 1px solid #e6e9ee; border-radius: 13px; padding: 15px; background: #fafbfc; }
.wechat-package-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wechat-package-option { position: relative; display: grid; min-height: 72px; gap: 4px; border: 1px solid #dfe4ea; border-radius: 11px; padding: 11px; color: #4f5967; background: #fff; text-align: left; }
.wechat-package-option:hover { border-color: #9fc0ec; }
.wechat-package-option.selected { border-color: #3d86e5; background: #f6faff; box-shadow: inset 0 0 0 1px #3d86e5; }
.wechat-package-option:disabled { cursor: not-allowed; opacity: .68; }
.wechat-package-option:disabled:hover { border-color: #dfe4ea; }
.wechat-package-option strong { color: #1f2937; font-size: 14px; }
.wechat-package-option span { color: #75808e; font-size: 11px; }
.wechat-package-option b { color: #16814a; font-size: 12px; font-weight: 760; }
.wechat-package-option em { position: absolute; top: 7px; right: 7px; border-radius: 999px; padding: 3px 6px; color: #2670cf; background: #e8f2ff; font-size: 9px; font-style: normal; }
.wechat-pay-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 11px; color: #fff; background: #07c160; font-weight: 760; }
.wechat-pay-button:hover { background: #06ad56; }
.wechat-pay-button:disabled { cursor: not-allowed; background: #b6d8c4; }
.wechat-payment-box { display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: center; gap: 14px; border: 1px solid #bee7d0; border-radius: 12px; padding: 12px; background: #f6fffa; }
.wechat-payment-box[hidden] { display: none; }
.wechat-payment-box img { display: block; width: 132px; height: 132px; border: 1px solid #e3e7eb; border-radius: 8px; background: #fff; }
.wechat-payment-box strong { color: #24312a; font-size: 13px; }
.wechat-payment-box p { margin: 6px 0 9px; color: #77837b; font-size: 11px; line-height: 1.55; }
.recharge-status { display: inline-flex; border-radius: 999px; padding: 4px 7px; color: #7b8490; background: #eef1f4; font-size: 10px; }
.recharge-status.completed { color: #167c4a; background: #eaf8f0; }
.recharge-status.pending { color: #a36713; background: #fff5df; }

@media (max-width: 700px) {
  .workspace-header-actions { align-items: flex-end; flex-direction: column; }
  .account-header { gap: 4px; }
  .account-profile-button > span:nth-child(2), .account-header-chip span, .account-recharge-button i { display: none; }
  .account-dialog-shell { padding: 19px; }
  .account-summary { grid-template-columns: 1fr; }
  .recharge-grid { grid-template-columns: 1fr; }
  .wechat-package-list { grid-template-columns: 1fr; }
  .wechat-payment-box { grid-template-columns: 104px minmax(0, 1fr); }
  .wechat-payment-box img { width: 104px; height: 104px; }
  .account-center-tabs { overflow-x: auto; }
  .account-list-item { align-items: start; }
}

@media (min-width: 901px) {
  .chat-empty { transform: translateY(-24px); }
  .creation-stage { width: min(1120px, calc(100% - 172px)); transform: translateX(77px); }
}

@media (max-width: 900px) {
  .studio-app { grid-template-columns: 54px minmax(190px, 220px) minmax(0, 1fr); }
  .workspace { padding: 20px 24px 30px; }
  .effect-template-market { margin: 34px auto 56px; }
  .effect-template-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
  .reference-add-button { left: -76px; }
  .reference-preview { left: -74px; }
  .studio-app.tool-mode { grid-template-columns: 54px minmax(0, 1fr); }
  .studio-app.single-column-mode { grid-template-columns: 54px minmax(0, 1fr); }
  .asset-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
  .ai-tool-card { grid-template-columns: 1fr; }
  .ai-tool-workspace[data-tool-suite="watermark"] .ai-tool-card { min-height: 0; grid-template-columns: 1fr; }
  .ai-tool-upload { min-height: 220px; }
  .ai-tool-result { padding: 15px; }
  .creator-tool-card { grid-template-columns: 1fr; }
  .creator-tool-settings { border-top: 1px solid rgba(255,255,255,.58); border-left: 0; }
  .ai-tool-help::after { right: auto; bottom: auto; left: 50%; top: calc(100% + 9px); transform: translate(-50%, -4px); }
  .ai-tool-help::before { right: auto; bottom: auto; left: 50%; top: calc(100% + 3px); border-left-color: transparent; border-bottom-color: #252a31; transform: translateX(-50%); }
  .ai-tool-help:hover::after, .ai-tool-help:focus-visible::after, .ai-tool-help.open::after { transform: translate(-50%, 0); }
  .video-enhancer-content { width: 100%; margin: 80px 0 0; transform: none; }
  .tool-marketing-content { width: 100%; margin: 80px 0 0; transform: none; }
  .video-enhancer-feature, .video-enhancer-feature.reverse { grid-template-columns: 1fr; gap: 30px; }
  .tool-marketing-feature { grid-template-columns: 1fr; gap: 30px; }
  .tool-marketing-feature.reverse > .tool-marketing-media, .tool-marketing-feature.reverse > div { order: initial; }
  .tool-marketing-model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-marketing-content[data-marketing-page="ai-character"] .tool-marketing-model-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .video-enhancer-feature { padding: 0 12px; }
  .tool-marketing-feature { padding: 0 12px; }
  .video-enhancer-audience-panel { grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: 30px; }
  .tool-marketing-audience-panel { grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: 30px; }
  .video-enhancer-audience-panel img { width: 100%; }
  .tool-marketing-audience-panel img { width: 100%; }
}
@media (max-width: 700px) {
  .studio-app { display: block; }
  .app-rail, .conversation-sidebar { display: none; }
  .workspace { padding: 16px 14px 22px; }
  .workspace-header { margin-bottom: 20px; }
  .workspace-header h1 { font-size: 19px; }
  .ai-tool-tabs { width: 100%; }
  .ai-tool-tab { min-height: 48px; padding: 9px 8px; font-size: 13px; }
  .workspace-heading { gap: 9px; }
  .workspace-brand > img { width: 160px; height: auto; }
  .workspace-brand-divider, .workspace-heading h1 { display: none; }
  .ai-tool-settings-dialog { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
  .ai-tool-settings-dialog-shell { max-height: calc(100vh - 20px); }
  .ai-tool-settings-dialog-header { padding: 18px; }
  .ai-tool-settings-dialog-body { padding: 2px 18px 0; }
  .ai-tool-settings-dialog .ai-tool-settings { grid-template-columns: 1fr; }
  .ai-tool-settings-dialog .ai-tool-field.wide { grid-column: auto; }
  .ai-tool-settings-dialog-footer { padding: 14px 18px; }
  .ai-tool-scene-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ai-tool-result-heading { grid-template-columns: 38px minmax(0, 1fr); }
  .ai-tool-result-heading > .status { grid-column: 2; justify-self: start; }
  .ai-tool-history { padding: 14px; }
  .ai-tool-history-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .ai-character-workspace { margin-top: 28px; }
  .creator-tool-workspace { margin-top: 28px; }
  .creator-tool-inputs { grid-template-columns: 1fr; }
  .creator-tool-upload-slot { min-height: 230px; }
  .ai-character-card { grid-template-columns: 1fr; }
  .ai-character-settings { border-top: 1px solid rgba(255,255,255,.58); border-left: 0; }
  .ai-character-style-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .style-preset-dialog { width: calc(100vw - 16px); height: calc(100vh - 16px); border-radius: 15px; }
  .style-preset-dialog-header { padding: 16px; }
  .style-preset-dialog-toolbar { padding: 12px 16px 9px; }
  .style-preset-categories { padding: 0 16px 10px; }
  .style-preset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 16px 16px; }
  .ai-character-result-heading { grid-template-columns: 42px minmax(0, 1fr); }
  .ai-character-result-heading > .status { grid-column: 2; justify-self: start; }
  .effect-template-banner { height: 190px; border-radius: 13px; }
  .effect-template-banner-copy { left: 42px; gap: 7px; }
  .effect-template-banner-copy strong { font-size: 23px; }
  .effect-template-banner-copy small { font-size: 12px; }
  .effect-template-toolbar { display: grid; }
  .effect-template-search { width: 100%; }
  .effect-template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .effect-template-preview-dialog { width: calc(100vw - 12px); height: calc(100vh - 12px); border-radius: 14px; }
  .effect-template-preview-shell { grid-template-columns: 1fr; grid-template-rows: minmax(42vh, 1fr) auto; }
  .effect-template-preview-panel { max-height: 46vh; }
  .effect-template-preview-header { min-height: 58px; padding: 11px 14px; }
  .effect-template-preview-copy { padding: 16px 16px 12px; }
  .effect-template-preview-copy h2 { font-size: 20px; }
  .effect-template-preview-copy > p { margin: 8px 0 14px; }
  .effect-template-preview-parameters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .effect-template-preview-parameters > div { display: block; padding: 10px 8px 10px 0; }
  .effect-template-preview-parameters dd { margin-top: 4px; font-size: 11px; }
  .effect-template-preview-footer { padding: 12px 16px 14px; }
  .effect-template-preview-player-status { right: 10px; bottom: 48px; max-width: calc(100% - 20px); }
  .asset-library-header { padding: 18px 16px 15px; }
  .asset-workspace-heading, .asset-toolbar { align-items: stretch; flex-direction: column; }
  .asset-type-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  .asset-type-filter { flex: 0 0 auto; }
  .asset-toolbar-actions { align-items: stretch; flex-direction: column; }
  .asset-search { width: 100%; }
  .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .asset-preview-dialog { width: calc(100vw - 20px); }
  .asset-preview-media { min-height: 260px; padding: 10px; }
  .chat-timeline { padding-bottom: 246px; }
  .creation-stage { bottom: 10px; }
  .creation-shell { padding-left: 17px; }
  .reference-add-button { top: -54px; left: -3px; transform: rotate(-4deg) scale(.83); transform-origin: bottom left; }
  .reference-preview { top: -50px; left: 0; transform: scale(.83); transform-origin: bottom left; }
  .legacy-reference-controls { top: 2px; left: 5px; transform: scale(.83); transform-origin: bottom left; }
  .composer-topline { margin-right: 0; margin-left: 62px; }
  .inline-reference-assets { left: 15px; max-width: calc(100% - 34px); }
  .creation-shell.has-inline-assets .composer-topline, .creation-shell.has-inline-assets .prompt-editor { margin-left: min(var(--inline-reference-offset, 66px), 180px); }
  .prompt-editor { margin-right: 0; }
  .composer-actions { display: none; }
  .composer-footer { grid-template-columns: 1fr; align-items: stretch; }
  .setting-pills { flex-wrap: wrap; }
  .create-actions { justify-content: space-between; }
  .cost-note { display: none; }
  .reference-mode-menu { left: 18px; }
  .creation-type-menu, .model-menu { left: 8px; width: min(320px, calc(100vw - 32px)); }
  .multimodal-assets-menu { left: 8px; }
  .ratio-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .duration-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .video-enhancer-content { margin-top: 64px; }
  .tool-marketing-content { width: calc(100% - 4px); margin: 64px 2px 0; }
  .video-enhancer-hero > h2 { font-size: 30px; }
  .tool-marketing-hero > h2 { font-size: 36px; line-height: 40px; }
  .video-enhancer-hero > p { font-size: 14px; }
  .tool-marketing-hero > p { font-size: 18px; line-height: 28px; }
  .video-enhancer-primary { min-width: 210px; min-height: 52px; margin-top: 25px; border-radius: 13px; font-size: 15px; }
  .tool-marketing-primary { width: 100%; min-height: 52px; margin-top: 40px; border-radius: 13px; font-size: 16px; }
  .video-enhancer-hero-media { margin-top: 34px; border-radius: 12px; }
  .tool-marketing-hero-media { margin-top: 48px; border-radius: 12px; }
  .video-enhancer-comparison { margin-top: 70px; }
  .tool-marketing-comparison { margin-top: 70px; }
  .video-enhancer-comparison > h2, .video-enhancer-audience > h2, .video-enhancer-faq > h2 { font-size: 24px; }
  .tool-marketing-comparison > h2 { font-size: 36px; line-height: 40px; }
  .tool-marketing-audience > h2, .tool-marketing-faq > h2 { font-size: 30px; line-height: 36px; }
  .tool-marketing-comparison > p { margin-top: 48px; padding: 0; font-size: 18px; line-height: 28px; }
  .video-enhancer-table-wrap { overflow-x: auto; border-radius: 10px; }
  .tool-marketing-table-wrap { margin-top: 40px; border-radius: 10px; }
  .video-enhancer-table-wrap table { min-width: 760px; }
  .video-enhancer-table-wrap th, .video-enhancer-table-wrap td { padding: 12px 14px; font-size: 12px; }
  .tool-marketing-table-wrap th, .tool-marketing-table-wrap td { overflow-wrap: anywhere; padding: 16px 24px; font-size: 16px; line-height: 24px; }
  .tool-marketing-table-wrap thead th { padding-top: 20px; padding-bottom: 20px; }
  .video-enhancer-features { gap: 58px; margin-top: 76px; }
  .tool-marketing-features { gap: 119px; margin-top: 112px; }
  .video-enhancer-feature { padding: 0; }
  .tool-marketing-feature { gap: 18px; padding: 0; }
  .video-enhancer-feature h2 { font-size: 21px; }
  .tool-marketing-feature h2 { margin-bottom: 0; font-size: 24px; line-height: 32px; }
  .video-enhancer-feature p { font-size: 13px; }
  .tool-marketing-feature p { font-size: 16px; line-height: 32px; }
  .video-enhancer-audience { margin-top: 82px; }
  .tool-marketing-audience { margin-top: 183px; }
  .tool-marketing-audience > p { margin-top: 16px; font-size: 18px; line-height: 28px; }
  .video-enhancer-audience-tabs { overflow-x: auto; justify-content: flex-start; padding-bottom: 4px; }
  .tool-marketing-audience-tabs { overflow-x: auto; justify-content: center; padding: 0 4px 4px; }
  .video-enhancer-audience-tabs button { flex: 0 0 auto; padding: 9px 17px; }
  .tool-marketing-audience-tabs button { flex: 0 0 auto; padding: 9px 15px; font-size: 13px; }
  .video-enhancer-audience-panel { grid-template-columns: 1fr; gap: 26px; }
  .tool-marketing-audience-panel { grid-template-columns: 1fr; gap: 40px; padding: 0 24px; }
  .video-enhancer-audience-panel h3 { font-size: 22px; }
  .tool-marketing-audience-panel h3 { margin-bottom: 10px; font-size: 24px; line-height: 32px; }
  .tool-marketing-audience-panel p { font-size: 18px; line-height: 29.25px; }
  .video-enhancer-faq { margin-top: 86px; }
  .tool-marketing-faq { margin-top: 127px; padding: 0 12px 80px; }
  .video-enhancer-faq > h2 { margin-bottom: 26px; }
  .tool-marketing-faq > h2 { margin-bottom: 26px; }
  .video-enhancer-faq-list summary { min-height: 66px; font-size: 14px; }
  .tool-marketing-faq-list summary { min-height: 76px; font-size: 18px; line-height: 28px; }
  .tool-marketing-faq-list details p { margin-bottom: 28px; font-size: 16px; line-height: 28px; }
  .video-enhancer-sound { top: 10px; right: 10px; width: 36px; height: 36px; font-size: 18px; }
  .tool-marketing-sound { top: 10px; right: 10px; width: 36px; height: 36px; font-size: 18px; }
  .tool-marketing-content[data-marketing-page="watermark-remover"] .tool-marketing-audience { margin-top: 64px; }
  .tool-marketing-content[data-marketing-page="watermark-remover"] .tool-marketing-features { margin-top: 176px; }
  .tool-marketing-content[data-marketing-page="watermark-remover"] .tool-marketing-comparison { margin-top: 183px; }
  .tool-marketing-content[data-marketing-page="watermark-remover"] .tool-marketing-faq { margin-top: 72px; }
  .tool-marketing-models { margin-top: 96px; }
  .tool-marketing-models > h2 { font-size: 30px; line-height: 36px; }
  .tool-marketing-models > p { font-size: 16px; line-height: 28px; }
  .tool-marketing-model-grid, .tool-marketing-content[data-marketing-page="digital-human"] .tool-marketing-model-grid { grid-template-columns: 1fr; }
  .tool-marketing-content[data-marketing-page="ai-character"] .tool-marketing-model-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .ai-character-style-options .ai-character-style-launcher { grid-template-columns: 104px minmax(0, 1fr) 28px; }
  .style-preset-dialog-header p { display: none; }
  .style-preset-dialog-toolbar { align-items: stretch; flex-direction: column; }
  .style-preset-dialog-toolbar > span { align-self: flex-end; }
  .style-preset-grid { grid-template-columns: 1fr; }
}
