:root{color-scheme:light;--bg:#f7f8f8;--panel:#fff;--panel-2:#fafafa;--panel-3:#f5f5f5;--line:#e6e6e6;--line-soft:#ededed;--text:#232323;--muted:#858585;--muted-2:#999;--blue:#ff612b;--blue-soft:#fff2eb;--brand:#ff612b}
body{background:#f7f8f8;color:#232323;font-family:'Microsoft YaHei','PingFang SC',sans-serif}.app-shell{grid-template-columns:208px minmax(0,1fr)}.primary-sidebar{background:white;border-color:#eee;padding:24px 16px;z-index:3}.sidebar-brand{padding:0 10px}.sidebar-brand img{object-fit:contain}.sidebar-item,.admin-link.sidebar-item{color:#666;border-color:transparent;background:transparent}.sidebar-item.active,.sidebar-item:hover{background:#fff2eb;color:#ff612b;border-color:transparent}.sidebar-label{color:#999}.sidebar-foot{border-color:#eee;color:#999}.sidebar-foot small{color:#aaa}.sidebar-nav{margin-top:27px}.guide-entry{margin-top:auto;background:linear-gradient(130deg,#fff8f2,#fff0e4);border-radius:10px;padding:14px;margin-bottom:18px}.guide-entry strong{font-size:13px}.guide-entry p{font-size:10px;color:#a1816f;margin:7px 0 12px}.guide-entry button,.gift-entry button{padding:7px 12px;background:white;border:1px solid #f1d6c5;color:#a75c37;border-radius:5px;font-size:12px}.guide-entry+.sidebar-foot{margin-top:0}.app-header{background:#fff;border-bottom:1px solid #eee;padding:23px 32px;max-width:none;margin:0}.app-header h1{font-size:20px;color:#232323}.app-header p{color:#999}.header-actions .version-pill,.user-pill{background:#fff7f2;border-color:#ffe1d1;color:#9e795f}.user-pill button{color:#9e795f}.workspace{padding:28px 32px;grid-template-columns:minmax(0,1fr) 290px;gap:22px}.card,.records-page,.credits-page{background:white;border-color:#e9e9e9;color:#232323;box-shadow:none;border-radius:12px}.create-card{background:transparent;border:0;padding:0}.create-title h2{font-size:25px;letter-spacing:-.5px;color:#232323}.create-title p{color:#999}.create-title{margin-bottom:25px}.form-section{background:#fff;border:1px solid #e9e9e9;border-radius:12px;padding:23px;--section-accent:#ff612b}.form-section-head p,.hint,.dim{color:#8b8b8b}.section-label{color:#232323;font-size:16px}.step-number{color:#ff612b;background:#fff3ed;border:0;width:27px;height:27px}.section-title h2{color:#232323}#create-card{--mode-accent:#ff612b;--mode-accent-soft:#fff3ed;--mode-accent-line:#ffcfbc}#mode-switch{gap:10px}.mode-option span{background:white;border:1px solid #e8e8e8;border-radius:9px;min-height:120px;padding:14px;box-shadow:none}.mode-option span:hover{background:#fffaf7;border-color:#ffb89e}.mode-option strong{color:#232323;font-size:13px}.mode-option em{color:#9c806e;background:none;font-size:11px}.mode-option .mode-icon{background:#fff5ef;color:#ff612b;border:0;filter:grayscale(.7)}.mode-option input:checked+span,.mode-option.mode-concat input:checked+span,.mode-option.mode-plot input:checked+span,.mode-option.mode-narration input:checked+span,.mode-option.mode-beat input:checked+span{background:#fff8f4;border-color:#ff612b;box-shadow:none}.mode-option input:checked+span em{color:#b87450}.mode-connector{background:#fff9f5;border-color:#ffe4d7;color:#777}.mode-summary strong{color:#555}.mode-summary small{color:#999}.mode-summary-tags span{background:#fff;border-color:#f0e0d5;color:#a57d65}.mode-summary #mode-summary-kicker{color:#a57d65}.primary-media-upload{background:#fffcfa;border:1px dashed #dfd3ca;border-radius:9px;min-height:172px}.primary-media-upload strong{color:#4c4c4c}.primary-media-upload small{color:#999;line-height:1.9}.primary-media-upload-icon{background:#fff0e5;color:#ff612b}.outro-upload{background:#fafafa;border-color:#e2e2e2;color:#666}.outro-upload strong{color:#666}label{color:#555}input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{background:#fff;color:#444;border-color:#dedede;border-radius:6px}input[type=range],input[type=checkbox],input[type=radio]{accent-color:#ff612b}.audio-settings-panel,.bgm-picker,.narration-settings-block,.sub-panel{background:#fff;border-color:#e5e5e5;border-radius:8px}.audio-settings-head strong,.bgm-picker-head>div>span,.feature-block-head strong,.sub-panel h3{color:#333}.audio-settings-head span,.bgm-picker-head small,.feature-block-head small{color:#999}.feature-toggle-list{background:white;border-color:#e6e6e6}.feature-toggle-row{background:#fafafa;border-color:#e6e6e6}.feature-toggle-row:hover{background:#fff7f1}.feature-toggle-row.is-enabled{background:#fff7f1;box-shadow:inset 3px 0 #ff612b}.feature-toggle-row strong{color:#444}.feature-toggle-row small{color:#888}.feature-toggle-row>input[type=checkbox]{background:#eee;border-color:#ddd}.feature-toggle-row>input[type=checkbox]:checked{background:#ff612b;border-color:#ff612b}.feature-toggle-item+#mask-params,.feature-toggle-item+#dedupe-params{border-color:#eee}.bgm-source-tabs label{background:white;border-color:#eee;color:#777}.bgm-source-tabs label:has(input:checked){background:#fff3ed;color:#ff612b;border-color:#ffcbb5}.bgm-track-card{background:#fafafa;border-color:#eee}.bgm-track-card strong{color:#555}.bgm-track-card small,.bgm-track-card em{color:#999}.bgm-track-card.is-selected{background:#fff4ed;border-color:#ffb394}.bgm-library-summary{background:#fafafa;border-color:#eee}.bgm-library-summary strong{color:#555}.mode-required-badge{color:#bd764e;background:#fff5ed;border-color:#f9decb}.subtitle-preview-head strong,.preview-head h3{color:#444}.subtitle-preview-head span,.preview-head p{color:#999}.safety-audit-card{background:#fff;border-color:#eee}.safety-audit-card h3{color:#333}.safety-audit-tags span{color:#957863;border-color:#efdfd2;background:#fff8f2}.switch-control b{color:#777}.switch-track{background:#ddd;border-color:#ddd}.switch-control input:checked+.switch-track{background:#ff612b;border-color:#ff612b}.side-stack{position:sticky;top:20px;align-self:start;gap:18px;padding-top:72px}.side-stack #launch-card{order:0;position:static;max-height:none;background:white;border:1px solid #e9e9e9;border-radius:12px;padding:22px}.launch-head{border-color:#eee}.launch-head span{color:#999}.launch-head strong{color:#333}.launch-ready{background:#fff6f0!important;color:#b58161!important;border-color:#f4ddcc!important}.launch-preview{display:none}.launch-summary{margin-top:20px}.launch-summary dt{color:#999}.launch-summary dd{color:#555}.launch-check{background:#fafafa;border-color:#eee}.launch-check strong{color:#666}.launch-check li,.launch-check span{color:#999}.billing-preview,.billing-preview.insufficient{background:#fff8f3;border-color:#ffe4d4}.billing-preview strong{color:#ff612b}.billing-preview span,.billing-preview small{color:#a0806c}#submit-btn{background:#ff612b;border-color:#ff612b;color:white}#submit-btn:disabled{background:#ffb399;color:white;border-color:#ffb399}.launch-note,.launch-draft-note{color:#999}.launch-draft-note{border-color:#eee}.launch-draft-note button{color:#a2795f}.gift-entry{order:3;background:linear-gradient(130deg,#fff9ed,#ffe9d9);border:1px solid #f3e3d6;border-radius:11px;padding:20px}.gift-entry strong{font-size:16px}.gift-entry p{font-size:11px;color:#ad866d;margin:6px 0 15px}.gift-entry small{display:block;font-size:10px;color:#b9957f;margin-top:10px}.records-page h2,.credits-page h2,.credits-page h3{color:#333}.records-toolbar,.records-tabs,.records-table-head,.credit-summary>div,.credits-notice,.plan-card,.credits-section-head,.ledger-section{background:white;color:#666;border-color:#eee}.plan-card strong,.plan-price,.credit-summary strong{color:#444}.plan-card small,.plan-card em{color:#999}.records-search input{background:white}.auth-card{background:white}.auth-card h2{color:#333}.auth-tabs button{background:#fafafa;color:#777}.auth-tabs .active{color:#ff612b;background:#fff3ed}.auth-close{color:#777}dialog{max-width:min(600px,92vw);border:1px solid #eee;border-radius:14px;padding:30px;color:#333;margin:auto;line-height:1.9}dialog::backdrop{background:#0005}dialog p{color:#888;font-size:13px}dialog ol{margin:20px 0;padding-left:20px;font-size:13px}dialog table{border-collapse:collapse;width:100%;margin:20px 0;font-size:13px}dialog th,dialog td{padding:10px;border-bottom:1px solid #eee;text-align:left}dialog button{background:#ff612b;color:white;border:0;border-radius:6px;padding:8px 20px;cursor:pointer}#design-message{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:15px;background:#333;color:white;z-index:99;border-radius:8px;font-size:13px}.video-order-item{background:#fafafa;border-color:#eee}.video-order-item strong{color:#555}
@media(max-width:1150px){.app-shell{grid-template-columns:180px minmax(0,1fr)}.workspace{grid-template-columns:minmax(0,1fr) 255px;padding:24px 20px}.mode-option strong{font-size:12px}#mode-switch{grid-template-columns:repeat(2,1fr)}.narration-settings-block>.row{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.app-shell{display:block}.primary-sidebar{position:static;height:auto;width:100%;padding:14px}.sidebar-brand{display:none}.sidebar-nav{display:flex;margin:0;gap:6px}.sidebar-label,.sidebar-foot,.guide-entry{display:none}.sidebar-item{flex:1;justify-content:center;padding:10px 5px}.sidebar-item span{font-size:12px}.app-content{padding:0}.app-header{padding:18px;flex-wrap:wrap}.app-header h1{font-size:18px}.header-actions{gap:5px}.user-pill{font-size:10px}.workspace{grid-template-columns:1fr;padding:20px 14px}.side-stack{position:static;padding:0}.form-section{padding:16px}.create-title h2{font-size:22px}.narration-settings-block>.row{grid-template-columns:1fr}.bgm-source-tabs{flex-wrap:wrap}.feature-toggle-row{gap:8px}.feature-toggle-row>select{max-width:50%}.mode-summary-tags{display:none}.records-workspace,.credits-workspace{padding:20px 14px}.gift-entry{display:block}.row{min-width:0}input,select{min-width:0}.user-pill #user-email{display:none}}
.app-header::after{display:none}.launch-card .billing-preview{background:#fff8f3;border-color:#ffe4d4}.launch-card .billing-preview strong{color:#ff612b;font-size:28px}.launch-actions{background:white;position:static;margin:0;padding:8px 0 0}.launch-summary{display:block;border:0}.launch-summary div{border:0!important;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:9px 0}.launch-summary dd{margin:0;white-space:normal;text-align:right;overflow:visible;max-width:65%;font-weight:500}.launch-summary dt{font-size:12px;flex-shrink:0}.feature-toggle-item+.feature-toggle-item,.feature-toggle-list>.feature-toggle-row+.feature-toggle-item{border-color:#e9e9e9}.audio-level-row input[type=range]{accent-color:#ff612b}.audio-level-row output{color:#777}.pill-action,#logout-btn{background:white!important;color:#aa7251!important;border-color:#f1ddcd!important}.form-section-head p,#plot-hint{color:#888}.safety-audit-card-head p{color:#777}.mode-icon{font-style:normal}.mode-option span{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:9px}.mode-option span em{margin:0}.mode-option strong{white-space:nowrap}.feature-toggle-row>input[type=checkbox]:checked{background:#ff612b}.bgm-library-summary span,.bgm-library-summary small{color:#888}
@media(min-width:1250px){#mode-switch{grid-template-columns:repeat(4,minmax(0,1fr))}.mode-option span{min-height:140px}.mode-option strong{font-size:13px}}
@media(max-width:800px){#mode-switch{grid-template-columns:repeat(2,minmax(0,1fr))}.launch-summary div{display:flex}}
#narration-options{background:white;border-color:#e5e5e5}#narration-options .feature-block-head strong{color:#333}.launch-draft-note button{background:#fff8f2;border-color:#f1dccc;color:#a67c62}.preview-meta span{color:#6c8775;background:#f2f8f3;border-color:#dde9e0}.mode-option strong{align-self:flex-start}.mode-option em{align-self:flex-start}.mode-option span{position:relative}.subtitle-preview-panel{border-color:#e9e9e9}.subtitle-preview-head{border-color:#eee}.audio-level-row output{font-weight:500}#launch-card{overflow:visible}.bgm-preview-row button{background:#fff2e9;border:1px solid #ffcfb5;color:#d47040}.bgm-track-meta em{background:#fff4ed;color:#a87c62}

.mode-option .mode-icon{filter:none;background:transparent!important;color:#777}.mode-option .mode-icon svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.mode-option input:checked+span .mode-icon{color:#ff612b}
/* Improve contrast in the selected-mode summary. */
.mode-connector{background:#fff5ed;border-color:#ffd5bf}
.mode-summary strong{color:#262626}
.mode-summary small{color:#595959}
.mode-summary #mode-summary-kicker{color:#a1441f}
.mode-summary-tags span{background:#fff;border-color:#ffc6aa;color:#a43d17}
/* Brand range controls: pale track, orange progress and thumb. */
input[type="range"]{appearance:none;-webkit-appearance:none;height:6px!important;min-height:6px!important;padding:0!important;border:0!important;border-radius:999px;background:linear-gradient(to right,#ff612b 0%,#ff612b var(--range-progress,50%),#ece9e6 var(--range-progress,50%),#ece9e6 100%)!important;cursor:pointer;box-shadow:none}
input[type="range"]::-webkit-slider-runnable-track{height:6px;border-radius:999px;background:transparent;border:0}
input[type="range"]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:16px;height:16px;margin-top:-5px;border:3px solid white;border-radius:50%;background:#ff612b;box-shadow:0 1px 5px #b74e2933}
input[type="range"]::-moz-range-track{height:6px;background:#ece9e6;border:0;border-radius:999px}
input[type="range"]::-moz-range-progress{height:6px;background:#ff612b;border-radius:999px}
input[type="range"]::-moz-range-thumb{width:11px;height:11px;border:3px solid white;border-radius:50%;background:#ff612b;box-shadow:0 1px 5px #b74e2933}
input[type="range"]:focus-visible{outline:2px solid #ffbda0;outline-offset:5px}
/* V3: restore the first draft's spacing and hierarchy on the complete form. */
:root{--design-orange:#ff612b;--design-ink:#292724;--design-secondary:#706d69;--design-border:#ebe7e3}
body{color:var(--design-ink);-webkit-font-smoothing:antialiased}
.app-header{min-height:78px;border-bottom:1px solid #eeeae6;backdrop-filter:none}
.workspace{padding-top:32px;gap:24px}
.create-title{margin-bottom:24px}.create-title h2{font-weight:700;line-height:1.4}.create-title p{margin-top:7px;color:#797570}
#job-form{gap:20px}.form-section{padding:24px;border-color:var(--design-border);border-radius:12px;gap:20px}
.form-section-head{gap:11px}.form-section-head p{color:#807b75;font-size:12px;line-height:1.7}.section-label{font-size:16px;font-weight:600}
.mode-select-section{padding-bottom:20px}#mode-switch{gap:12px}
.mode-option span{padding:18px 14px;align-items:flex-start;justify-content:flex-start;gap:0;min-height:154px;transition:border-color .15s,background-color .15s,box-shadow .15s}
.mode-option .mode-icon{width:30px;height:30px;display:grid;place-items:center;margin:0 0 15px;padding:0;border-radius:0}
.mode-option strong{line-height:1.5;font-size:13px;font-weight:600}
.mode-option .mode-description{display:block;color:#807b76;font-size:10px;font-weight:400;line-height:1.65;margin:5px 0 12px;white-space:normal}
.mode-option em{font-style:normal;font-weight:400;font-size:11px;line-height:1.5;color:#9d7057;margin-top:auto!important;padding:0;background:transparent}
.mode-option input:checked+span::after{content:'✓';position:absolute;right:10px;top:9px;left:auto;bottom:auto;width:auto;height:auto;background:transparent!important;color:#ff612b;font-size:12px;border:0;border-radius:0;transform:none}
.mode-option input:checked+span{box-shadow:0 2px 8px #ff612b08!important}
.mode-option span:hover{box-shadow:0 3px 12px #55432e08}
#plot-hint{line-height:1.8;font-size:12px;padding:0;margin-top:1px;color:#716d68}
.mode-connector{padding:17px 20px;border-radius:10px;background:#fff8f2;border-color:#f9ddca;gap:14px}
.mode-summary{gap:5px}.mode-summary strong{font-size:16px}.mode-summary small{font-size:12px;line-height:1.8;color:#625b55}.mode-summary-tags{gap:6px}.mode-summary-tags span{border-radius:5px;font-weight:400;color:#a4562b;font-size:10px;padding:5px 8px;border-color:#f3d7c4}
.primary-media-upload{padding:25px 18px;min-height:185px;border-color:#decec2;background:#fffcf9}
.primary-media-upload-icon{width:44px;height:44px;border-radius:11px;font-size:23px}.primary-media-upload small{color:#837d76;font-size:11px}
.audio-settings-panel{padding:18px;background:#fffcfa;border-color:#eee4dc;gap:18px}.audio-settings-head{border-color:#eee6df}.audio-settings-head strong{font-size:14px}.audio-settings-head span{color:#857c73;font-size:11px}
.audio-settings-panel .feature-toggle-row{border-radius:7px;background:white;border:1px solid #eee6df;padding:13px;box-shadow:none}
.bgm-picker{padding:16px;border-color:#eee6df;gap:16px}.bgm-picker-head{gap:15px}.bgm-picker-head small{color:#857e76}
.bgm-source-tabs label{padding:8px 11px;border-radius:6px;font-size:12px}.bgm-source-tabs input[type=radio]{appearance:auto;width:13px;height:13px;min-height:0;padding:0;border:0;background:white;box-shadow:none;margin:0;accent-color:#ff612b}
.check input[type=checkbox]{appearance:auto;width:15px;height:15px;min-height:0;padding:0;margin:0;border:0;background:white;accent-color:#ff612b;box-shadow:none}
input[type=file]::file-selector-button{font:inherit;font-size:12px;padding:7px 12px;margin-right:10px;border:1px solid #e9dacf;border-radius:5px;color:#926349;background:#fff7f0;cursor:pointer}
input[type=file]::file-selector-button:hover{background:#ffeddf;border-color:#efbf9c}
input:not([type=checkbox]):not([type=radio]):not([type=range]):focus,select:focus,textarea:focus{border-color:#ffac89;outline:2px solid #ff612b12;box-shadow:none}
input::placeholder,textarea::placeholder{color:#aaa29a}
.bgm-track-card{border-radius:7px;transition:background .15s,border-color .15s}.bgm-track-card:hover{background:#fff8f2;border-color:#edc8ad}.bgm-track-card.is-selected{background:#fff4eb;border-color:#ffa67e}.bgm-track-main strong{color:#49443e}.bgm-track-main small,.bgm-track-meta small{color:#837c74}.bgm-library-summary{border-radius:7px;background:#faf8f5}.bgm-track-list{scrollbar-width:thin;scrollbar-color:#ddc5b3 #faf7f3}
.audio-level-row label{gap:12px}.audio-level-row output{color:#8e6d56;background:#fff5eb;border:1px solid #f4e2d4;padding:2px 7px;border-radius:4px;min-width:32px;width:max-content;font-size:11px;line-height:1.5}
#video-order-list li{background:white;border-color:#e8e1db;border-radius:8px}#video-order-list li.drag-over{border-color:#ffad87;background:#fff5ed}.order-head span{color:#4b4540}.order-head small{color:#827b73}.video-order-panel{border-color:#eee5dc;background:#fffcf8}.video-order-name,.video-order-info strong{color:#514b45}.order-btn{background:#fff9f4;color:#8c684d;border-color:#eedccd}.order-btn:hover{background:#ffecdf;border-color:#eac5a6}.order-btn:disabled{background:#faf8f5;color:#bcb2a8;border-color:#eee9e3}
.feature-toggle-list{border-radius:9px;overflow:hidden}.feature-toggle-row{padding:15px 16px;min-height:70px;background:#fff}.feature-toggle-row strong{font-weight:600;font-size:13px}.feature-toggle-row small{line-height:1.7;color:#817a72}.feature-toggle-row.is-enabled{background:#fff8f2}.feature-toggle-row>input[type=checkbox]{border:1px solid #ddd5cc;background:#eee9e2}.feature-toggle-row>input[type=checkbox]::after{background:white;box-shadow:0 1px 3px #5e422115}.feature-toggle-row>input[type=checkbox]:checked{background:#ff612b;border-color:#ff612b}
.feature-toggle-item>#mask-params,.feature-toggle-item>#dedupe-params{border-color:#eee5dd;padding-top:18px;margin-bottom:18px}.sub-panel{padding:17px;border-color:#eee7df;background:#fffefd;border-radius:8px}.sub-panel h3{font-size:13px;font-weight:600}.preview-head p{color:#847c73}.preview-meta span{background:#f1f6f0;color:#6b8164;border-color:#dfe8db}
#narration-options{border-radius:9px;padding:18px;border-color:#eee5dd;background:#fffdfb}.feature-block-head{margin-bottom:8px}.feature-block-head strong{font-size:14px}.feature-block-head small{color:#847b71}.subtitle-preview-panel{background:#faf8f5;border-color:#eee6de;border-radius:9px;padding:16px}.subtitle-preview-head strong{font-size:12px}.subtitle-preview-head span{font-size:10px;color:#81776c}
/* Preview canvases retain dark video contrast; their controls use the light theme. */
.subtitle-preview-frame{border-color:#dcd3ca;border-radius:8px;background:linear-gradient(145deg,#494746,#242323)}
#mask-stage,#dedupe-stage{border-color:#e8ddd3;border-radius:8px;background:#f4f0eb}
.safety-audit-card{padding:20px 24px;gap:14px}.safety-audit-card h3{font-size:16px}.safety-audit-card-head p{color:#756d65;line-height:1.8}.safety-audit-tags span{font-size:10px;background:#fff8f0;border-color:#f1dfcd;color:#976c4b}.safety-audit-card .hint{color:#7e746b;line-height:1.8}
.side-stack{padding-top:80px;gap:20px}.side-stack #launch-card{padding:23px;border-color:var(--design-border)}.launch-head strong{font-weight:600;font-size:15px}.launch-summary{margin-top:15px}.launch-summary div{padding:10px 0}.launch-summary dt{color:#8b8278}.launch-summary dd{color:#4d4741;font-size:12px;line-height:1.7}.launch-check{border-radius:7px;background:#faf9f6;border-color:#eee9e2;padding:12px}.launch-check strong{color:#6b6259}.launch-check li,.launch-check span{color:#8b8075;line-height:1.7}.launch-card .billing-preview{background:transparent;border:0;border-top:1px dashed #e8ded4;padding:20px 0 0;gap:9px;border-radius:0}.billing-preview>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.launch-card .billing-preview strong{font-size:26px;font-weight:600;white-space:nowrap}.launch-card .billing-preview small{color:#8c7e70;font-size:10px;line-height:1.8}.billing-preview span{color:#796e63;font-size:12px}.launch-actions{padding-top:14px;gap:10px}#submit-btn{min-height:46px;border-radius:7px;font-weight:500}#submit-btn:not(:disabled):hover{background:#ed5422}#submit-btn:disabled{background:#ffb79b;color:white}.launch-draft-note{font-size:10px;gap:8px;padding-top:14px}.launch-draft-note button{font-size:10px;background:#fffaf5;color:#966a4a;padding:5px 8px;border-radius:4px}.gift-entry{padding:22px;border-color:#f0dfd1}.gift-entry button{border-radius:5px}.guide-entry{padding:16px}.guide-entry p{line-height:1.8;color:#9b7c64}.gift-entry small{color:#9e7c62}
.records-tabs button{background:#faf8f5;color:#83786d}.records-tabs button.active{background:#fff0e4;color:#b75322;border-color:#ffd5b8}.records-tabs span{background:#eee9e1;color:#857665}.records-empty{color:#8c8176}.plan-card{border-color:#ebe1d7;border-radius:9px}.plan-card.featured{background:#fff8f1;border-color:#ffba8c}.plan-card button{background:#faf6f0;color:#a89787;border-color:#e8ddd0}.plan-badge{background:#ff612b;color:white}.credit-summary>div{border-radius:9px;background:#fffbf7}.credits-notice{color:#9a7c62;background:#fff6eb;border-color:#f5dfc8}.credit-ledger li{border-color:#eee4d9}.records-refresh{background:white;border-color:#e6d9cc;color:#8b684a}
button:focus-visible,a:focus-visible{outline:2px solid #ffa57c;outline-offset:3px}audio{border-radius:7px}dialog button:hover{background:#ed5422}
@media(min-width:1500px){.workspace{padding-left:44px;padding-right:44px;grid-template-columns:minmax(0,1fr) 310px;gap:26px}.mode-option span{padding:20px 16px}}
@media(max-width:1100px) and (min-width:801px){.workspace{grid-template-columns:minmax(0,1fr) 245px;padding:26px 18px;gap:18px}.form-section{padding:20px}.mode-connector{grid-template-columns:1fr}.mode-summary-tags{justify-content:flex-start}.side-stack #launch-card{padding:18px}.bgm-picker-head{flex-wrap:wrap}}
@media(max-width:800px){.workspace{padding:22px 14px;gap:20px}.form-section{padding:19px 16px;gap:17px}.mode-option span{min-height:153px;padding:16px 13px}.mode-description{font-size:10px}.mode-connector{padding:15px 17px}.side-stack{padding:0}.app-header{position:static;gap:10px}.header-actions{justify-content:flex-start;flex-wrap:wrap}.safety-audit-card{padding:18px 16px}.audio-settings-panel,.bgm-picker{padding:13px}.audio-settings-head{align-items:flex-start;flex-direction:column;gap:5px}.bgm-picker-head{flex-wrap:wrap}.bgm-source-tabs{width:100%;display:flex;gap:5px}.bgm-source-tabs label{flex:1;justify-content:center;padding:9px 5px;font-size:11px}.feature-toggle-row{padding:14px 12px}.mode-summary-tags{display:flex;flex-wrap:wrap;justify-content:flex-start}.gift-entry{padding:20px}.subtitle-preview-head{flex-wrap:wrap;gap:6px}.preview-head{flex-wrap:wrap}.primary-media-upload small{font-size:10px}.launch-actions{position:static}.sidebar-nav{width:100%}.sidebar-item{min-width:0}.records-tabs button{font-size:12px}}
.records-page-head{border-color:#eee6de}.records-refresh:hover{background:#fff3e8;color:#9d5d30}.credits-page,.records-page{padding:24px}.plan-card strong{font-weight:600}.credit-summary strong{font-weight:600}.credits-section-head{padding-top:6px}.records-tabs button:hover{background:#fff3e8}.auth-tabs button:hover{background:#fff3e8;color:#af5b2c}
@media(max-width:800px){.credits-page,.records-page{padding:16px}}
/* Light-theme hover states, including upload zones inherited from the old UI. */
.primary-media-upload:hover,.primary-media-upload:focus-within{background:#fff1e6;border-color:#ffac82}
.outro-upload:hover,.outro-upload:focus-within{background:#fff3e9;border-color:#efb48f}
.primary-media-upload:hover strong,.outro-upload:hover strong{color:#9e4d24}
button:hover{background:#fff0e4;color:#9d522b}
.guide-entry button:hover,.gift-entry button:hover{background:#ffeddf;border-color:#efbf9c;color:#984c26}
.launch-draft-note button:hover,.secondary-btn:hover,.auth-close:hover{background:#fff0e4;border-color:#efc6a9;color:#9d522b}
.order-btn.remove:hover{background:#fff0ec;border-color:#f0c6b9;color:#b84e32}
#job-list li:hover,.record-row:hover,.record-row:focus-visible{background:#fff8f2;border-color:#efc5a6}
.record-row{background:white;border-color:#e9e1d9}.record-task strong,.record-usage{color:#51483f}
.record-open{background:#faf5ef;color:#8b6648}.record-open:hover{background:#ffeddd;color:#9c5128}
#submit-btn:disabled:hover{background:#ffb79b;color:white}
dialog button:hover{background:#ed5422;color:white}
/* V5: deliberate type scale and a compact, readable creation summary. */
.create-title h2{font-size:28px;line-height:1.4;font-weight:700;letter-spacing:-.6px}
.create-title p{font-size:14px;line-height:1.8}
.section-label{font-size:18px;font-weight:650;line-height:1.5}
.form-section-head p{font-size:12px;line-height:1.8}
.mode-option strong{font-size:15px!important;font-weight:650;line-height:1.5}
.mode-option .mode-description{font-size:11px;line-height:1.7}
.mode-option em{font-size:12px}
.mode-summary strong{font-size:18px;font-weight:650}.mode-summary small{font-size:13px}
label{font-size:14px;line-height:1.6}
input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{font-size:14px}
.audio-settings-head strong,.bgm-picker-head>div>span,.feature-block-head strong{font-size:15px;font-weight:600}
.feature-toggle-row strong,.sub-panel h3{font-size:14px;font-weight:600}
.feature-toggle-row small,.audio-settings-head span,.bgm-picker-head small,.feature-block-head small{font-size:12px;line-height:1.75}
.hint{font-size:12px;line-height:1.8}.safety-audit-card h3{font-size:18px}.safety-audit-card-head p{font-size:12px}
.side-stack #launch-card{gap:0;padding:24px;border-radius:13px;border-color:#e8e2dc;box-shadow:0 3px 14px #523a1d03}
.launch-head{padding-bottom:18px;border-bottom:1px solid #f0eae4;gap:10px}
.launch-head>div{gap:5px}.launch-head>div>span{font-size:12px;line-height:1.5;color:#95897d}
.launch-head #launch-mode-title{font-size:19px;font-weight:650;line-height:1.5;color:#29241f;letter-spacing:-.3px}
.launch-head .launch-ready{font-size:10px;line-height:1.6;padding:4px 7px;border:0;background:#fff3e7!important;color:#aa6634!important;font-weight:500;white-space:nowrap;margin-top:3px}
.launch-summary{margin:12px 0 16px;display:grid;gap:0}
.launch-summary>div{padding:7px 0;align-items:baseline;gap:12px}
.launch-summary dt{font-size:13px;color:#8b8177;line-height:1.75}
.launch-summary dd{font-size:13px;line-height:1.75;font-weight:500;color:#40382f;max-width:65%}
.launch-summary>div:has(#launch-enhancements){padding-top:10px;margin-top:5px;border-top:1px solid #f3eee8!important}
.launch-summary>div:has(#launch-credits){display:none}
.launch-check{padding:12px 13px;gap:7px;background:#faf8f5;border:1px solid #eee8e0;border-radius:7px;margin:0 0 18px}
.launch-check>div{align-items:center}.launch-check strong{font-size:12px;font-weight:600;color:#695c4f}
.launch-check span{font-size:11px;color:#a18d7a}.launch-check li{font-size:12px;line-height:1.7;color:#82705d}
.launch-card .billing-preview{display:grid;gap:9px;margin:0;padding:18px 0 0;border-top:1px solid #eee7df;border-radius:0;background:transparent}
.billing-preview>div{display:flex;justify-content:space-between;align-items:baseline}
.billing-preview span{font-size:13px;color:#665a4e}
.launch-card .billing-preview strong{font-size:32px;line-height:1.2;font-weight:700;letter-spacing:-1px;color:#ff612b}
.launch-card .billing-preview small{font-size:11px;line-height:1.8;color:#9a8978}
.launch-actions{gap:10px;padding-top:18px}
#submit-btn{min-height:46px;font-size:15px;font-weight:600;letter-spacing:.5px}
.launch-note{font-size:10px;line-height:1.75;color:#a39485}
.launch-draft-note{margin-top:4px;padding-top:14px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
.launch-draft-note>span{font-size:10px;line-height:1.8;color:#9b8c7d}
.launch-draft-note button{font-size:11px;padding:5px 8px;border-radius:5px}
.gift-entry strong{font-size:17px;font-weight:650}.gift-entry p{font-size:12px;line-height:1.7}.guide-entry strong{font-size:14px}.guide-entry p{font-size:11px}
@media(max-width:1150px) and (min-width:801px){.launch-head{flex-direction:column;gap:6px}.launch-head #launch-mode-title{font-size:18px}.launch-head .launch-ready{margin:0}.side-stack #launch-card{padding:19px}.launch-summary dd{max-width:60%}.launch-draft-note{display:flex;flex-wrap:wrap}}
@media(max-width:800px){.create-title h2{font-size:25px}.section-label{font-size:17px}.mode-option strong{font-size:14px!important}.mode-description{font-size:11px}.side-stack #launch-card{padding:22px}.launch-head #launch-mode-title{font-size:20px}}
.launch-summary{grid-template-columns:minmax(0,1fr)}
.launch-summary>div{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px}
.launch-summary dd{max-width:none;min-width:0;text-align:right;overflow-wrap:anywhere}
.launch-summary dt{white-space:nowrap}
@media(max-width:1150px) and (min-width:801px){.launch-summary>div{grid-template-columns:62px minmax(0,1fr);gap:8px}.launch-summary dd{max-width:none}}
.launch-summary>div:has(#launch-enhancements){grid-template-columns:minmax(0,1fr);gap:8px;padding-top:12px;margin-top:7px}
#launch-enhancements{display:flex;flex-wrap:wrap;gap:6px;text-align:left;justify-content:flex-start}
.design-enhancement-tag{display:inline-block;white-space:nowrap;padding:3px 7px;color:#806449;background:#faf5ee;border:1px solid #ede1d3;border-radius:4px;font-size:11px;line-height:1.6;font-weight:400}
.launch-summary>div{padding-top:6px;padding-bottom:6px}
/* One consistent split-pane breakpoint: reset legacy fixed navigation before it can leave an empty grid column. */
@media(max-width:1100px){
 .app-shell{display:block;grid-template-columns:none;width:100%;min-width:0}
 .primary-sidebar{position:static;inset:auto;display:block;width:100%;height:auto;min-height:0;padding:10px 18px;border:0;border-bottom:1px solid #eee6df;background:#fff;backdrop-filter:none;z-index:auto}
 .sidebar-brand,.sidebar-label,.sidebar-foot,.guide-entry{display:none}
 .sidebar-nav{display:flex;align-items:stretch;width:100%;height:auto;gap:8px;margin:0}
 .sidebar-item,.admin-link.sidebar-item{display:flex;flex:1 1 0;flex-direction:row;justify-content:center;align-items:center;min-width:0;min-height:44px;padding:10px 12px;gap:9px;font-size:13px;text-align:center;grid-template-columns:none;grid-template-rows:none}
 .sidebar-item.active{box-shadow:none}.nav-icon{width:20px;height:20px;font-size:18px}.sidebar-item .nav-count{position:static}
 .app-content{width:100%;min-width:0;padding-bottom:0}
 .app-header{position:static;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px;width:100%;min-width:0;min-height:0}
 .header-page-title{flex:1 1 220px;min-width:0}.app-header h1{font-size:20px;line-height:1.4;white-space:nowrap}.app-header p{font-size:12px;line-height:1.6}.mobile-brand{display:none}
 .header-actions{flex:0 1 auto;min-width:0;max-width:100%;margin:0;display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-start}.version-pill{display:none}.user-pill{max-width:100%;gap:7px}.user-pill #user-email{display:none}
 .workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;width:100%;max-width:850px;padding:26px 22px;margin:0 auto}
 .create-card{width:100%;min-width:0}.side-stack{position:static;inset:auto;grid-row:auto;width:100%;min-width:0;align-self:auto;padding-top:0;gap:18px}
 .side-stack #launch-card,.side-stack #progress-card{position:static;top:auto;width:100%;max-height:none;overflow:visible}
 .side-stack #launch-card{padding:24px}.launch-head{flex-direction:row;align-items:flex-start}.launch-head .launch-ready{margin-top:3px}.launch-head #launch-mode-title{font-size:20px}
 .launch-summary>div{grid-template-columns:100px minmax(0,1fr)}.launch-summary dd{max-width:none}.launch-draft-note{display:grid;grid-template-columns:minmax(0,1fr) auto}
 .records-workspace,.credits-workspace{width:100%;min-width:0;max-width:850px;margin:0 auto;padding:24px 22px}
 #mode-switch{grid-template-columns:repeat(2,minmax(0,1fr))}.narration-settings-block>.row{grid-template-columns:repeat(2,minmax(0,1fr))}
 .mode-connector{grid-template-columns:minmax(0,1fr)}.mode-summary-tags{display:flex;flex-wrap:wrap;justify-content:flex-start}
}
@media(max-width:560px){
 .primary-sidebar{padding:8px 12px}.sidebar-item,.admin-link.sidebar-item{padding:9px 5px;gap:6px;font-size:12px;min-height:42px}
 .app-header{padding:17px 16px;gap:12px}.header-page-title{flex:1 1 100%;width:100%}.header-actions{width:100%}.app-header h1{font-size:20px}
 .workspace,.records-workspace,.credits-workspace{padding:22px 14px}.narration-settings-block>.row{grid-template-columns:minmax(0,1fr)}
 .side-stack #launch-card{padding:22px}.launch-summary>div{grid-template-columns:80px minmax(0,1fr)}
 .mode-option strong{font-size:14px!important}.mode-option .mode-description{font-size:10px}
}
/* Show the starter pack before the task overview in the shared summary stack. */
.side-stack .gift-entry{order:-1}
/* Mode cards: emphasize the choice, keep description and billing secondary. */
#mode-switch{gap:14px}
.mode-option>span{min-height:200px!important;padding:20px 18px!important;position:relative;border:1px solid #e7e1dc;border-radius:10px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:0;background:#fff;box-shadow:none}
.mode-option .mode-icon{width:40px;height:40px;margin:0 0 16px;border-radius:10px;background:#fff0e5!important;color:#d86935;display:grid;place-items:center}
.mode-option .mode-icon svg{width:25px;height:25px}
.mode-option strong{font-size:18px!important;font-weight:700;line-height:1.4;letter-spacing:-.3px;color:#292522;white-space:normal}
.mode-option .mode-description{font-size:12px;line-height:1.75;color:#8a7d72;margin:8px 0 18px;font-weight:400}
.mode-option em{align-self:stretch;margin-top:auto!important;padding-top:12px!important;border-top:1px solid #f0e9e2;font-size:12px;line-height:1.5;color:#a57b60;font-weight:400;width:100%}
.mode-option input:checked+span{border:2px solid #ff612b!important;padding:19px 17px!important;background:#fff7f0!important;box-shadow:0 4px 14px #ff612b0a!important}
.mode-option input:checked+span .mode-icon{background:#ff612b!important;color:white}
.mode-option input:checked+span strong{color:#2c241e}
.mode-option input:checked+span em{border-color:#ffdcc8;color:#bc582a}
.mode-option input:checked+span::after{content:'✓ 已选择';position:absolute;top:18px;right:13px;font-size:10px;font-weight:500;color:#ce5827;background:#ffeadb!important;padding:3px 6px;border-radius:4px;line-height:1.6;width:auto;height:auto;left:auto;bottom:auto;transform:none}
.mode-option>span:hover{border-color:#f3b28d;background:#fffcf8;box-shadow:0 4px 12px #6d47240a}
@media(min-width:1101px) and (max-width:1399px){#mode-switch{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){#mode-switch{gap:10px}.mode-option>span{min-height:199px!important;padding:16px 12px!important}.mode-option input:checked+span{padding:15px 11px!important}.mode-option strong{font-size:16px!important}.mode-option .mode-description{font-size:11px;margin-top:7px}.mode-option .mode-icon{width:35px;height:35px;margin-bottom:15px}.mode-option input:checked+span::after{top:13px;right:8px;font-size:9px;padding:3px 4px}.mode-option em{font-size:11px}}
.mode-option input:checked+span::after{display:block}
.mode-option em{border-radius:0;box-shadow:none}
/* Navigation typography: quieter than section headings, consistent across states. */
.sidebar-item,.admin-link.sidebar-item{font-size:14px;font-weight:500;line-height:1.5;letter-spacing:0}
.sidebar-item>span:not(.nav-icon):not(.nav-count){font-size:inherit;font-weight:inherit;line-height:inherit}
.sidebar-item.active{font-weight:500}
.sidebar-label{font-size:11px;font-weight:400;line-height:1.5;letter-spacing:.5px;color:#a3978b}
@media(min-width:1101px){
 .sidebar-item,.admin-link.sidebar-item{grid-template-columns:20px minmax(0,1fr);gap:12px;min-height:46px;padding:11px 14px}
 .sidebar-item:has(.nav-count){grid-template-columns:20px minmax(0,1fr) auto}
 .sidebar-item .nav-icon{width:20px;height:20px;font-size:16px;line-height:20px;font-weight:400}
 .sidebar-label{padding:18px 14px 7px}
}
@media(max-width:1100px){.sidebar-item,.admin-link.sidebar-item{font-size:13px;font-weight:500}}
@media(max-width:560px){.sidebar-item,.admin-link.sidebar-item{font-size:12px}}
/* Sidebar hierarchy: distinguish the current destination without making every item heavy. */
@media(min-width:1101px){
 .sidebar-nav{gap:6px;margin-top:27px}
 .sidebar-item,.admin-link.sidebar-item{font-size:15px;font-weight:500;line-height:1.5;color:#5c534b;min-height:48px;padding:12px 14px;grid-template-columns:22px minmax(0,1fr);gap:12px}
 .sidebar-item:has(.nav-count){grid-template-columns:22px minmax(0,1fr) auto}
 .sidebar-item.active{font-size:16px;font-weight:600;color:#ed5a27;background:#fff0e6;box-shadow:inset 3px 0 #ff612b}
 .sidebar-item:hover{color:#d85c2b;background:#fff6ef}
 .sidebar-item.active:hover{color:#ed5a27;background:#ffede0}
 .sidebar-item .nav-icon{width:22px;height:22px;line-height:22px;font-size:18px;font-weight:400;color:#8a796a}
 .sidebar-item.active .nav-icon{color:#ff612b}
 .sidebar-label{font-size:11px;font-weight:500;color:#a29487;letter-spacing:.5px;padding:15px 14px 4px;line-height:1.5}
 .sidebar-label:not(:first-child){padding-top:22px}
}
/* Task center empty state and count chip in the light palette. */
#job-list li.records-empty,#job-list li.dim{background:#faf8f5;border:1px dashed #e7ddd2;color:#998978;border-radius:8px;padding:24px 16px;text-align:center;font-size:13px}
#job-list li.records-empty:hover,#job-list li.dim:hover{background:#faf8f5;border-color:#e7ddd2;color:#998978}
#job-list li.record-row{background:white;border-color:#e9e1d9}
#job-list li.record-row:hover{background:#fff8f2;border-color:#efc5a6}
.records-count{background:#fff3e8;border:1px solid #f1dfcb;color:#a16b3d;border-radius:5px;font-size:11px;font-weight:500}
/* Readable rate card below the total, driven by the existing billing rule. */
#billing-rule{display:none}
.design-rate-card{padding:13px 14px;background:#fff8f1;border:1px solid #f1dfce;border-radius:8px;margin-top:3px;min-width:0}
.design-rate-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:5px 8px;padding-bottom:10px;border-bottom:1px solid #f1e3d5}
.design-rate-head strong{color:#76543a;font-size:12px;font-weight:600;line-height:1.7;letter-spacing:0}
.design-rate-head span{color:#b0957e;font-size:10px;line-height:1.7}
.design-rate-lines{display:grid;gap:9px;margin:11px 0 0}
.design-rate-lines>div{display:grid;grid-template-columns:52px minmax(0,1fr);align-items:baseline;gap:8px}
.design-rate-lines dt{color:#a28c77;font-size:11px;line-height:1.8;white-space:nowrap}
.design-rate-lines dd{margin:0;color:#8e5934;font-size:12px;line-height:1.8;text-align:right;font-weight:500;overflow-wrap:anywhere}
@media(max-width:1100px){.design-rate-lines>div{grid-template-columns:76px minmax(0,1fr)}}
.launch-card .billing-preview .design-rate-head strong{font-size:12px;font-weight:600;line-height:1.7;color:#76543a;letter-spacing:0;white-space:normal}
.launch-card .billing-preview{grid-template-columns:minmax(0,1fr);justify-content:stretch;align-items:stretch}
.design-rate-card .design-rate-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:5px 8px}
/* Summary subcards share a quiet neutral surface; reserve orange for the total and primary action. */
#launch-card .launch-check,#launch-card .design-rate-card{background:#f8f7f5;border:1px solid #e9e5df;border-radius:8px}
#launch-card .design-rate-head{border-bottom-color:#e6e1da}
#launch-card .design-rate-head strong,#launch-card .launch-check strong{color:#61564b}
#launch-card .design-rate-head span,#launch-card .launch-check-count{color:#a09283}
#launch-card .design-rate-lines dt{color:#968879}
#launch-card .design-rate-lines dd{color:#6e5d4c}
/* Live states not present in the static design: authentication, uploads and task progress. */
.auth-entry-btn,#auth-submit-btn{background:#ff612b;border-color:#ff612b;color:white}
.auth-entry-btn:hover,#auth-submit-btn:hover{background:#ed5422;color:white}
.auth-card .auth-actions{border-color:#eee5dc}.auth-card input{background:white;border-color:#e4d9cd;color:#453d35}
#auth-message{color:#a56743}.auth-card .auth-mode-hint{color:#857668}
#video-order-list .video-file-info strong{color:#4e443a}#video-order-list .video-file-info small{color:#8c7c6c}.drag-handle{color:#b7a18c}.media-status{background:#fff4e6;color:#a17142;border-color:#efdfc9}
.media-status.ready,.video-file-card.ready .media-status{background:#eef6ed;color:#5c8553;border-color:#d7e6d2}
.side-stack #progress-card{background:white;border-color:#e9e1d9;border-radius:12px;padding:22px}
#progress-card .section-title{background:white;border-color:#ece3d9}#progress-card .mono{color:#9a8773}
#progress-card .job-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.job-summary div{background:#faf7f2;border-color:#eee3d6}.job-summary strong{color:#5b4836}.job-summary span{color:#9c8773}
#stage-list li{background:#fcfaf7;border-color:#e9e0d6}.stage-main strong{color:#4d4033}.stage-main small,.stage-side small{color:#958370}
#stage-list .stage-running{background:#fff6e9;border-color:#f1ca91}.stage-running .stage-index{background:#ff8a45;box-shadow:0 0 0 3px #ffecd9;color:white}
.stage-index{background:#eee7df;color:#99836c}.stage-done .stage-index{background:#6e9c68;color:white}.stage-failed .stage-index{background:#d46b53;color:white}
.stage-progress{background:#eee2d4}.stage-progress i{background:#ff8a45}
.badge.pending,.badge.skipped,.badge.queued{background:#eee8df;color:#93806d}.badge.running{background:#fff0db;color:#c47a26}.badge.done{background:#eaf4e7;color:#648c58}.badge.failed{background:#fbeae5;color:#bd6652}
#result-area .error-box{background:#fff4ef;border-color:#edc6b7;color:#a9644f}.error-box strong{color:#a94f35}.error-box p,.error-box small{color:#a46c57;line-height:1.8}
.error-box .draft-retry-btn{background:white;border-color:#e8b8a3;color:#a65a38}.error-box .draft-retry-btn:hover:not(:disabled){background:#ffe9db;color:#9b4f2d}
#result-area a.dl{background:#fff7ec;border-color:#eddbc1;color:#aa7843}#result-area a.dl.primary{background:#ff612b;color:white;border-color:#ff612b}
#job-list .record-task strong,.record-usage{color:#5c4735}.job-mode{background:#fff2e4;color:#a67c50;border-color:#eddbc4}
@media(max-width:560px){.auth-card{padding:22px 18px;width:calc(100vw - 28px);min-width:0}.auth-tabs button{font-size:12px;padding:8px}.side-stack #progress-card{padding:18px}}

/* Account actions must override the old dark theme, including the numeric balance. */
.header-actions .user-pill{min-width:0;max-width:100%}
.user-pill #user-email{min-width:0;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.user-pill .pill-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex-shrink:0;min-height:32px;white-space:nowrap}
.user-pill .pill-action strong{display:inline-block;min-width:1ch;color:#d95120;font-size:14px;font-weight:700;line-height:1.2;font-variant-numeric:tabular-nums}
.user-pill .pill-action:hover strong,.user-pill .pill-action:focus-visible strong{color:#ba4319}
.user-pill #logout-btn{flex-shrink:0;white-space:nowrap}
.credit-plus{color:#39805b}.credit-minus{color:#c85641}
#credit-ledger strong{color:#4f463e;font-size:14px;font-weight:600}
#credit-ledger li>span{font-weight:600;font-variant-numeric:tabular-nums}
.auth-close{background:transparent;color:#a58c78}
.concat-trim-panel{border:1px solid #e9e1d9;border-radius:9px;background:#fff;overflow:hidden;min-width:0}
.concat-trim-panel .feature-toggle-row{border:0;border-radius:0;background:#fff;min-width:0}
.concat-trim-panel.is-enabled .feature-toggle-row{background:#fff6ef;box-shadow:inset 3px 0 #ff612b}
.concat-trim-controls{grid-template-columns:minmax(0,230px) minmax(0,1fr);align-items:end;gap:14px;padding:16px 18px 0}
.concat-trim-controls label{font-size:12px;gap:8px;min-width:0}.concat-trim-controls input{width:100%;min-height:40px}
.concat-trim-controls .hint{font-size:11px;line-height:1.8;margin:0 0 2px}.concat-trim-note{font-size:11px;color:#9d8978;line-height:1.8;margin:0;padding:12px 18px 15px}
@media(max-width:560px){.concat-trim-controls{grid-template-columns:minmax(0,1fr);gap:9px;padding:14px 14px 0}.concat-trim-note{padding:11px 14px 14px}}
.design-rate-lines>div{grid-template-columns:64px minmax(0,1fr);align-items:start}
.design-rate-lines dd b{display:block;font-size:13px;font-weight:600;color:#76543a}
.design-rate-lines dd small{display:block;font-size:10px;line-height:1.7;font-weight:400;color:#9a8c7d;white-space:normal;margin-top:3px}
.design-rate-total{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e6e1da;margin-top:13px;padding-top:12px}
.design-rate-total span{font-size:12px;color:#8f7c6b}
#launch-card .billing-preview .design-rate-total strong{font-size:20px;line-height:1.5;color:#e75d28;white-space:nowrap}
.design-rate-note{font-size:10px;line-height:1.8;color:#9a8c7d;margin:11px 0 0;overflow-wrap:anywhere}
.plan-usability{padding:12px 0 0;border-top:1px solid #f0e6dd;margin-top:4px;min-width:0}
.plan-usability>span{font-size:11px;font-weight:600;color:#85634c}.plan-usability p{font-size:11px;line-height:1.8;color:#927b68;margin-top:5px}.plan-usability small,.plan-usage-note{font-size:10px;line-height:1.8;color:#a49485}
#gift-dialog{max-width:min(860px,92vw);width:860px}.gift-plans-table{max-width:100%;overflow:auto}.gift-plans-table table{min-width:540px}.gift-plans-table th:last-child,.gift-plans-table td:last-child{max-width:330px;font-size:11px;line-height:1.8}
.auth-close:hover{background:#fff0e4;color:#ae6338}
/* Match link and button navigation states, overriding the legacy admin-link hover. */
.primary-sidebar .sidebar-item:is(:hover,:focus-visible){background:#fff6ef;color:#d85c2b}
.primary-sidebar .sidebar-item.active:is(:hover,:focus-visible){background:#ffede0;color:#ed5a27}
.primary-sidebar .sidebar-item:is(:hover,:focus-visible) .nav-icon{color:inherit}
/* Registration is an application until an administrator approves it. */
.auth-review-notice{padding:14px 16px;margin:0 0 18px;background:#fff5eb;border:1px solid #f2d7bf;border-radius:8px;color:#795238;line-height:1.7}
.auth-review-notice[hidden],#auth-fields[hidden]{display:none}
.auth-review-notice strong{display:block;font-size:14px;color:#b15b2d;margin-bottom:4px}
.auth-review-notice p{font-size:13px;margin:0;overflow-wrap:anywhere}
#auth-form .auth-actions{align-items:flex-start;flex-wrap:wrap}
#auth-message{overflow-wrap:anywhere;flex:1 1 190px;line-height:1.7}
#auth-submit-btn:disabled,.auth-tabs button:disabled{opacity:.65;cursor:wait}
.design-rate-rules{margin-top:9px;color:#8b7461;font-size:11px;line-height:1.8}
.design-rate-rules summary{cursor:pointer;color:#a06943;font-size:11px}
.design-rate-rules p{margin-top:7px;color:#95816d;font-size:11px;line-height:1.8}
