/* Colors only: preserve the existing sidebar, sizing, typography and layout. */
:root {
  color-scheme: light;
  --bg: #faf9ff; --paper: #fff; --ink: #252131; --muted: #766c85;
  --line: #e7dff0; --accent: #833dec; --soft: #eee5fc; --dark: #462467; --lime: #f1e4ff;
  --theme-input: #fdfbff; --theme-secondary: #756381; --theme-faint: #8b7999;
  --theme-pink: #b969dd;
  --theme-gradient: linear-gradient(110deg,#a046ed,#8641ed 55%,#6b4bf5);
}
body { color: var(--ink); background: radial-gradient(ellipse 780px 460px at 80% 0,#eee1ff85,transparent 80%),var(--bg); scrollbar-color: #cbb8df #faf9ff; }
::selection { background: #e5d0ff; color: #4f197e; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, .dropzone:focus-visible { outline-color: #a66dea; }
.sidebar { background: linear-gradient(165deg,#f8f2ff,#fdfbff 45%); border-color: #e7dcef; }
.brand { color: #242030; }.brand small { color: #8d789d; }
.workspace-label { color: #94819f; }.workspace-label span { background: #eee4f8; color: #8a609f; }
.nav-item { color: #8a759a; }.nav-item:hover { background: #f0e6fb; color: #7436a3; }
.nav-item.active { background: #eee2fc; color: #7a36b3; box-shadow: inset 0 0 0 1px #decbf0; }
.nav-item #nav-count { background: #e6d5f6; color: #8851ac; }
.sidebar-note { background: linear-gradient(140deg,#f1e6fc,#f8f3fd); border-color: #e6d6f2; }
.sidebar-note:after { border-color: #d7b9ed70; }.mini-play { background: #e9d7f8; color: #a067c0; }
.sidebar-note h3 { color: #735384; }.sidebar-note p { color: #92759e; }.mini-tag { color: #ac8dbb; }
.sidebar-bottom { border-color: #e4d8ed; color: #654d73; }.sidebar-bottom small { color: #9a7ca8; }
.avatar { background: #eddef8; color: #965fb6; }.icon-button { color: #a67eb9; }.icon-button:hover { color: #7c3c99; background: #efe2f9; }
.topbar { background: #ffffffad; border-color: #e8ddf1; }.breadcrumb { color: #9e87ad; }.breadcrumb span { color: #c7b4d3; }.breadcrumb strong { color: #7c5e8d; }
.provider-badge { color: #8e739e; }.provider-badge i { background: #c5a15c; }.provider-badge i.ready { background: #64aa98; }
.help-button, .language-select, .compact-logout, .compact-account { background: #fcf9ff; border-color: #e4d5ef; color: #9271a7; }
.help-button:hover, .compact-logout:hover { background: #eee0fa; color: #7d43a0; }.language-select option { background: #fff; color: #624777; }
.page-heading .eyebrow { color: #af86c5; }.page-heading h1 { color: #2a2334; background: none; -webkit-text-fill-color: currentColor; }
.page-heading h1 span { color: #9852c3; -webkit-text-fill-color: #9852c3; }.page-heading p { color: #92779f; }
.heading-mark span { border-color: #dcc3ed; background: #f5eafd; }.heading-mark span:nth-child(2) { border-color: #d4b4e9; background: #edddfa; }
.notice { background: linear-gradient(110deg,#f3e8fc,#faf5fe); border-color: #e4cdee; color: #9a6bb0; }
.notice strong { color: #87559c; }.notice p { color: #a07aad; }.notice button { color: #a36bc1; }
.retention-notice { background: #f1e9fc; border-color: #e7d7f4; color: #9474a6; }
.card, .job-card { background: #fff; border-color: #e7dcf1; box-shadow: 0 6px 24px #9365b00a,inset 0 1px 0 #fff; }
.card-heading h2, .history-heading h2 { color: #3c2c4c; }.subtle-tag { background: #f7f0fd; border-color: #e7d5f2; color: #a17fb5; }
.mode-tabs { background: #f9f5fe; border-color: #ece2f7; }.mode-tabs button { color: #9e88ad; }.mode-tabs button:hover { color: #914bb9; }
.mode-tabs button.active { background: #eee0fc; box-shadow: inset 0 0 0 1px #decaee; color: #8844b2; }
.field-heading label, .field label { color: #71547f; }.field-heading > span { color: #ad8fbd; }
.dropzone { background: #fdfaff; border-color: #d3b2eb; }.dropzone:hover, .dropzone.dragover { background: #f5eafa; border-color: #b17ada; }
.upload-icon { background: #f0e0fb; color: #ae79cf; }.dropzone strong { color: #92709f; }.dropzone > span:not(.upload-icon), .dropzone small { color: #a58bb3; }
.field-tip { color: #a68ab5; }.asset-item { background: #f4eafc; border-color: #e2cdee; }.asset-item .asset-label { background: #694080ce; color: #fff; }
.asset-remove { background: #fff; color: #a66cbb; }.asset-remove:hover { background: #eddbfa; }.upload-progress { color: #aa73c9; }.upload-progress progress { accent-color: #b379dc; }
.required { color: #b87bd6; }.text-button { color: #a576bd; }.text-button:hover { color: #8949aa; }
.textarea-wrap, .field select, .login-card input { background: #fdfaff; border-color: #e7d6f1; color: #805e90; }
.textarea-wrap:focus-within { border-color: #bc90d7; box-shadow: 0 0 0 3px #e7d2f54d; }
textarea { background: transparent; color: #765282; caret-color: #a56aca; }textarea::placeholder, .login-card input::placeholder { color: #ac8cbb; }
.textarea-footer { color: #b293c0; }.field select option { background: #fff; color: #79548b; }
.audio-row { border-color: #ede0f5; }.audio-symbol { color: #b183cc; }.audio-row strong { color: #9670a8; }.audio-row small { color: #b08fbe; }
.switch span { background: #e4d6ee; }.switch span:after { background: #fff; }.switch input:checked + span { background: linear-gradient(100deg,#b67ddb,#c993e4); }.switch input:focus-visible + span { outline-color: #b27cd1; }
.primary-button { background: var(--theme-gradient); color: #fff; box-shadow: inset 0 1px 0 #e6baff99,0 5px 22px #a853d626; }
.primary-button:hover:not(:disabled) { background: linear-gradient(110deg,#9235e2,#7b32e3 55%,#613de9); box-shadow: 0 6px 26px #a24be633; }
.generate-area > p:not(.form-error) { color: #ae8dbd; }.form-error, .login-card .form-error { color: #b94567; }
.preview-stage { background-color: #f7f4fc; background-image: radial-gradient(ellipse at 50% 38%,#e9dcf666,transparent 68%),radial-gradient(#ddc9ec66 .7px,transparent .7px); border-color: #eadcf3; }
.film-layer { border-color: #d2afe9; }.layer-back { background: #ead6fa; box-shadow: 0 10px 40px #c390de19; }
.layer-front { background: linear-gradient(145deg,#fcf7ff,#ead8f7); box-shadow: 0 12px 35px #b393c12a; border-color: #d5b0e9; }
.layer-front > span { border-color: #cc9fe5; color: #bf8bd8; background: #f4e6fc; }.layer-front i { border-color: #cca5e0; }.art-spark { color: #cf98e6; text-shadow: 0 0 22px #d1a3e74a; }
.empty-preview h3 { color: #a27bb8; }.empty-preview p { color: #b092c1; }.preview-stage video { background: #f1eaf7; }
.preview-caption > span { color: #af8fbe; }.preview-caption i { color: #d1b9de; }
.download-button, .secondary-button { background: #f0e0fb; border-color: #d8b9e9; color: #a16abe; }.download-button:hover, .secondary-button:hover { background: #e8d2f7; }
.tip-icon { color: #ba86d2; }.tip-card h3 { color: #ac7dc2; }.tip-card p, .storage-note { color: #b08fbe; }
.video-expiry { background: #f3e8fc; color: #ad84bc; }.job-details > .job-expiry { color: #b18ac0; }
.working-preview h3, .error-preview h3 { color: #9f76b4; }.working-preview > p, .working-preview .working-footnote { color: #b496c4; }
.orbit { border-color: #d2ace7; }.orbit:after { background: #c28fda; }.orbit > span, .elapsed { color: #b685ce; }.stage-track span { background: #c392db; }
.error-preview > span { color: #c794b0; }.error-preview p { color: #b17d9e; }
.history-heading h2 span { background: #eee0f8; color: #b18ac4; }.history-heading p { color: #b299c0; }.history-empty { border-color: #e5cfee; background: #fdfaff; color: #ba9bcb; }
.job-thumbnail { background: #f1e7fb; }.job-placeholder { color: #c09bd5; }.job-chip { background: #fffffff0; color: #ac87c0; }
.job-details h3 { color: #8e669f; }.job-details > p { color: #bb9dc8; }.job-actions, .job-actions button { color: #b07ac9; }.job-actions .delete-job { color: #be96ab; }
footer { border-color: #e9dcee; color: #b18ac1; }footer > span, footer small { color: #bea4cc; }
.toast { background: #f5e9ff; border-color: #d6afea; color: #9d6cb5; box-shadow: 0 12px 40px #9976ab26; }
dialog { background: #fff; border-color: #ddc2ed; color: #7e5a8f; box-shadow: 0 25px 90px #7c588b38; }
dialog::backdrop { background: #73568166; }dialog .eyebrow { color: #bc92ce; }dialog li, dialog li p { color: #a986ba; }dialog li strong { color: #9861b1; }.help-note { background: #f3e4fc; color: #ae83c1; }.small-note { color: #b894c8; }
#prompt-dialog .prompt-dialog-actions button:last-child { color: #fff; }
.login-overlay { background: radial-gradient(ellipse 650px 490px at 24% 6%,#eed5fc99,transparent 80%),radial-gradient(ellipse 600px 480px at 63% 5%,#e7dafb88,transparent 82%),#faf7fff7; }
.login-card { background: #fff; border-color: #ddc2ed; box-shadow: 0 25px 90px #b399c12b,inset 0 1px 0 #fff; }
.auth-card h1, .login-card h2 { color: #6d4d7c; }.auth-card .auth-slogan, .login-card > p { color: #ac87ba; }
.auth-tabs { background: #faf4fd; border-color: #e8d8f1; }.auth-tabs a { color: #b08ac1; }.auth-tabs a[aria-current="page"] { background: #f0ddfb; color: #a06cb8; box-shadow: inset 0 0 0 1px #dec0ee; }
.auth-card form label, #account-dialog form label, .login-card label { color: #a37db4; }.auth-card input, #account-dialog input { background: #fffaff; border-color: #e4cfef; color: #8c649b; }
.auth-card input:focus, #account-dialog input:focus { border-color: #bc8fd7; }.password-toggle { color: #b88bcb; }.password-toggle:hover { background: #f3e4fb; }
.auth-hint, .auth-card .auth-footnote, .auth-admin-link { color: #b596c4; }
#account-dialog .dialog-close, #admin-users-dialog .dialog-close { background: #f1e1fa; color: #b285c9; }.auth-account-email { color: #b18bc2; }
#password-form { border-color: #ead8f3; }#password-form h3 { color: #ab7dbe; }#account-message, #admin-users-message { color: #b180c7; }
.admin-user { border-color: #e7d2f0; }.admin-user strong { color: #a376b4; }.admin-user small { color: #b997ca; }.admin-user button { background: #f1e1fa; border-color: #d7b4e7; color: #ac7bc0; }
.login-card input:-webkit-autofill { -webkit-text-fill-color: #8c649b; -webkit-box-shadow: 0 0 0 1000px #fffaff inset; caret-color: #a66cc5; }
/* Use only the supplied left-hand mark; keep all original brand box dimensions. */
.brand-icon { position: relative; overflow: hidden; background: transparent; box-shadow: none; padding: 0; }
.brand-icon .brand-mark { position: absolute; width: 420%; max-width: none; height: auto; left: -55%; top: -47.5%; clip-path: inset(30% 64% 30% 14%); mix-blend-mode: multiply; }
/* Keep small text readable on white while retaining lavender for surfaces. */
.card-heading h2, .history-heading h2, .job-details h3, .auth-card h1, .login-card h2 { color: #3b2b49; }
.field-heading label, .field label, .audio-row strong, .login-card label, .auth-card form label, #account-dialog form label { color: #695275; }
.nav-item, .breadcrumb, .provider-badge, .page-heading p, .field-heading > span, .dropzone > span:not(.upload-icon), .dropzone small,
.field-tip, .textarea-footer, .audio-row small, .generate-area > p:not(.form-error), .preview-caption > span,
.empty-preview p, .tip-card p, .storage-note, .job-details > p, .history-heading p, .history-empty, .history-empty p,
.small-note, .auth-hint, .auth-card .auth-footnote, .auth-admin-link, .auth-card .auth-slogan, footer, footer > span, footer small { color: #806c8c; }
.dropzone strong, .tip-card h3, .empty-preview h3, .working-preview h3, .error-preview h3 { color: #82608f; }
textarea, .field select, .auth-card input, #account-dialog input { color: #674d77; }
textarea::placeholder, .login-card input::placeholder { color: #8a7397; }
.text-button, .job-actions, .job-actions button, .download-button, .secondary-button { color: #9256ae; }
.retention-notice, .video-expiry, .job-details > .job-expiry, dialog li, dialog li p, .help-note { color: #8a639d; }
/* Scoped account-page polish; preserve the existing logo, fields and workbench. */
#login-button, #register-button { justify-content: center; }
.auth-card h1.auth-slogan {
  margin: 0 0 26px;
  color: #654280;
  font-size: 23px;
  font-weight: 650;
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
}
@media (max-width: 650px) {
  .auth-card h1.auth-slogan { font-size: 21px; }
}
/* Customer credit estimate only; keep the surrounding studio layout unchanged. */
.credit-estimate { margin-top: 12px; padding: 13px 10px; border: 1px solid #e9ddf5; border-radius: 9px; background: #faf6ff; text-align: center; }
.credit-estimate #cost-hint { margin: 0; color: #7840a2; font-size: 14px; font-weight: 650; line-height: 1.6; }
.credit-estimate #cost-breakdown { margin: 4px 0 0; color: #806c8c; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
#cost-warning { margin: 9px 0 0; color: #806c8c; text-align: center; line-height: 1.7; }
