/* Customer workspace uses the main video workspace's sizes and layout. */
html[data-theme=mono],html[data-theme=dark]{--bg:#141414;--panel:#191919;--soft:#222;--line:#3d3d3d;--strong:#606060;--text:#f4f4f4;--muted:#aaa}
.subsite-customer{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",Arial,sans-serif}
.subsite-customer .site-header{min-height:54px;gap:12px;padding:6px 16px;border:0;background:var(--bg);flex-wrap:wrap}
.subsite-customer .brand{gap:8px}.subsite-customer .brand img{width:52px;height:42px}.subsite-customer .brand strong{font-size:14px}.subsite-customer .brand small{display:none}
.subsite-customer .subsite-home-navigation{height:auto;min-height:0;padding:0;display:contents}
.subsite-customer .workspace-return{width:auto;min-height:34px;padding:0 10px}
.subsite-customer .site-header>.actions{margin-left:auto;gap:8px;width:auto}
.subsite-customer .site-header button{height:38px;min-height:38px;border-radius:10px;padding:5px 14px}
.subsite-customer .creative-tabs{gap:5px}.subsite-customer .creative-tabs button{border-color:transparent;background:transparent;padding:5px 10px;font-weight:650}
.subsite-customer .creative-tabs [aria-pressed=true]{color:var(--text);background:var(--soft);border-color:var(--strong)}
.subsite-customer .wallet-summary{display:grid;grid-template-columns:22px auto;grid-template-rows:auto auto;gap:0 7px;min-width:96px;min-height:38px;height:38px;padding:4px 9px;border-color:var(--strong);background:var(--soft)}
.subsite-customer .wallet-summary:before{content:"";grid-column:1;grid-row:1/3;width:22px;height:22px;background:currentColor;transform:rotate(-12deg);mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='4.5' cy='9' rx='2.3' ry='3' transform='rotate(-25 4.5 9)'/%3E%3Cellipse cx='9.2' cy='5.8' rx='2.3' ry='3'/%3E%3Cellipse cx='14.8' cy='5.8' rx='2.3' ry='3'/%3E%3Cellipse cx='19.5' cy='9' rx='2.3' ry='3' transform='rotate(25 19.5 9)'/%3E%3Cpath d='M12 11c-3 0-7 4.5-7 7.1 0 3.6 4 3.2 7 2.2 3 1 7 1.4 7-2.2C19 15.5 15 11 12 11Z'/%3E%3C/svg%3E") center/contain no-repeat}
.subsite-customer .wallet-summary small{grid-column:2;font-size:9px;line-height:12px}.subsite-customer #balance{grid-column:2;font-size:13px;font-weight:750;line-height:15px}
.subsite-customer .customer-name:before{content:"";width:16px;height:16px;margin-right:8px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.5'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21v-2a8 8 0 0 1 16 0v2'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat}
.subsite-customer #themeToggle{width:38px;padding:0;font-size:19px}
.subsite-customer:has(#workspace[hidden]) .creative-tabs,.subsite-customer:has(#workspace[hidden]) #themeToggle{display:none}
.subsite-customer .customer-main{padding:0 16px 12px}
.subsite-customer #workspace>.section-title{display:none}
.subsite-customer .video-only-workspace{gap:14px;min-height:0}
.subsite-customer .video-editor{padding:12px 18px;overflow:hidden}
.subsite-customer .subsite-editor-content{gap:8px;padding:0}
.subsite-customer .reference-tools button{font-weight:650;background:var(--soft)}
.subsite-customer .reference-tools svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;margin-right:6px}
.subsite-customer .reference-shelf{border:1px dashed var(--strong);border-radius:10px;padding:8px;background:var(--bg);flex-shrink:0}
.subsite-customer .reference-shelf .reference-drop{display:flex;flex-direction:column;align-items:stretch;min-height:54px;padding:0;border:0;gap:6px}
.subsite-customer .reference-drop strong{display:flex;align-items:center;justify-content:space-between;font-size:14px}
.subsite-customer .reference-drop strong small{font-size:10px;font-weight:400}
.subsite-customer .reference-drop>span{text-align:center;font-weight:600;font-size:12px}
.subsite-customer .reference-upload-hint{display:flex;align-items:center;justify-content:center;gap:8px;min-height:24px}
.subsite-customer .reference-upload-hint svg{width:16px;height:16px;flex:0 0 16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.subsite-customer .reference-shelf:has(.reference-card) .reference-drop{min-height:20px}
.subsite-customer .reference-shelf:has(.reference-card) .reference-drop>span{display:none}
.subsite-customer #referenceDrop{padding:0;flex-wrap:nowrap;align-items:stretch}
.subsite-customer #referenceDrop strong{width:100%;text-align:left}
.subsite-customer .reference-list{height:114px;max-height:114px;overflow-x:auto;overflow-y:hidden;gap:7px;padding:0 0 5px;margin-top:6px}
.subsite-customer .reference-card{display:flex;flex-direction:column;flex:0 0 88px;width:88px;height:104px;padding:4px;gap:3px;border-radius:7px;position:relative}
.subsite-customer .reference-card-heading{display:contents}.subsite-customer .reference-card-heading strong{display:none}
.subsite-customer .reference-card .reference-remove{position:absolute;right:3px;top:3px;width:18px;height:18px;min-height:18px;font-size:14px;z-index:1}
.subsite-customer .reference-card .reference-card-preview{width:78px;height:48px;min-height:48px;flex-shrink:0}
.subsite-customer .reference-file-name{font-size:10px;height:18px;min-height:18px;padding:1px 3px;border-color:transparent;background:transparent}
.subsite-customer .reference-file-name:focus{border-color:var(--strong)}
.subsite-customer .reference-insert{font-size:10px;min-height:22px;height:22px;padding:2px}
.subsite-customer .reference-card[data-reference-type=reference_voice],.subsite-customer .reference-card[data-reference-type=reference_video]{flex-basis:180px;width:180px}
.subsite-customer #generateForm .prompt-field{min-height:150px;flex:1 0 150px}
.subsite-customer .editor{background:var(--bg);resize:vertical;min-height:100px}
.subsite-customer .fixed-prompt-wrap{padding:0;margin:0;flex-shrink:0}
.subsite-customer .fixed-prompt-wrap summary{display:grid;grid-template-columns:auto minmax(0,1fr) 12px;gap:12px;align-items:center;min-height:54px;padding:13px 16px;list-style:none;border:1px solid var(--strong);border-radius:12px;background:var(--soft);font-size:14px;font-weight:650;cursor:pointer}
.subsite-customer .fixed-prompt-wrap summary::-webkit-details-marker{display:none}
.subsite-customer .fixed-prompt-wrap summary small{font-size:12px;text-align:right;margin:0;font-weight:400}
.subsite-customer .fixed-prompt-wrap summary:after{content:"";width:8px;height:8px;border-right:2px solid;border-bottom:2px solid;transform:rotate(45deg)}
.subsite-customer .fixed-prompt-wrap[open] summary:after{transform:rotate(225deg)}
.subsite-customer .generation-actions{border:0;padding-top:10px;gap:8px}
.subsite-customer .video-options{grid-template-columns:minmax(0,2fr) repeat(3,minmax(0,1fr))}
.subsite-customer .model-picker-row{display:flex;gap:4px;min-width:0}.subsite-customer .model-picker-row select{flex:1;min-width:0}
.subsite-customer #refreshModels{font-size:10px;min-height:32px;padding:4px;flex-shrink:0}
.subsite-customer #selectedModelPrice{display:flex;align-items:center;min-height:32px;padding:0 8px;border:1px solid var(--strong);border-radius:10px;background:var(--soft);font-size:12px;color:var(--text)}
.subsite-customer .video-options select{background:var(--soft)}
.subsite-customer .generation-second-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:end}
.subsite-customer .video-batch-options{grid-template-columns:1fr 1fr}
.subsite-customer .generation-price{display:block;text-align:right;border:0;border-radius:0;background:none;padding:0 0 3px}
.subsite-customer .generation-price .price-note{display:block;font-size:11px;line-height:1.6}
.subsite-customer .generation-price .price-note strong{font-size:13px;letter-spacing:0;margin-left:5px}.subsite-customer .generation-price .price-note small{font-size:10px;display:block}
.subsite-customer .cost-balance{display:none}
.subsite-customer .video-editor .primary{height:40px;min-height:40px;border-radius:14px;font-weight:650;background:linear-gradient(105deg,#f4f4f4,#d4d4d4);color:#111;border-color:#eee}
html[data-theme=light] .subsite-customer .video-editor .primary{background:#202020;color:#fff;border-color:#202020}
.subsite-customer .video-results{padding:12px}
.subsite-customer .video-results>header{align-items:center;flex-wrap:wrap;gap:8px;margin:0}
.subsite-customer .video-results h2{font-size:20px}.subsite-customer .task-filters{margin:0;gap:5px}.subsite-customer .task-filters button{min-height:26px;padding:3px 8px}
.subsite-customer .video-results>.results-note{font-size:11px;margin:2px 0 5px}
.subsite-customer .task-toolbar{justify-content:space-between;margin:0 0 12px}.subsite-customer .task-toolbar button{min-height:26px;padding:3px 8px;border-radius:14px;font-size:11px}
.subsite-customer .task-card{padding:10px 12px;gap:12px;background:var(--panel);border-radius:12px}
.subsite-customer .task-head{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.subsite-customer .task-head small{font-size:10px}
.subsite-customer .task-state{border:1px solid var(--strong);padding:2px 7px;border-radius:12px;font-size:11px}
.subsite-customer .task-prompt{margin:8px 0;line-height:1.65}.subsite-customer .task-error{padding:0;border:0;background:none;margin:6px 0}
.subsite-customer .task-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:10px}.subsite-customer .task-bottom small{font-size:10px}
.subsite-customer .task-bottom .actions{margin:0;gap:6px}.subsite-customer .task-bottom button{min-height:28px;padding:3px 8px;font-size:11px}
.subsite-customer .task-selection{justify-content:flex-end;font-size:10px}
.subsite-customer .task-head .task-selection{margin-left:auto;display:flex;align-items:center;gap:5px;cursor:pointer}
.subsite-customer .task-selection input{width:16px;height:16px;min-height:16px;margin:0;accent-color:var(--text)}
.subsite-customer .task-card.task-selected{border-color:var(--text);box-shadow:inset 0 0 0 1px var(--text);background:var(--soft)}
.subsite-customer .task-card:focus-visible{outline:2px solid var(--text);outline-offset:2px}
.subsite-customer .task-title-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.subsite-customer .task-preview-button{position:relative;width:88px;height:88px;padding:0;overflow:hidden;border-radius:12px;background:var(--bg)}
.subsite-customer .task-preview-button video{display:block;width:100%;height:100%;object-fit:contain;margin:0;border:0;pointer-events:none}
.subsite-customer .task-preview-button:after{content:"▶";position:absolute;display:grid;place-items:center;inset:0;color:white;font-size:18px;text-shadow:0 1px 5px black;background:#0002;opacity:0;transition:opacity .15s}
.subsite-customer .task-preview-button:hover:after,.subsite-customer .task-preview-button:focus-visible:after{opacity:1}
.subsite-customer .task-preview-button.is-unavailable:after{content:"点击预览";opacity:1;font-size:11px}
.subsite-customer dialog.video-player-dialog{width:min(920px,96vw);height:min(980px,92vh);max-width:none;padding:18px;border-radius:16px;background:var(--panel);overflow:visible}
.subsite-customer dialog.video-player-dialog[open]{display:flex;flex-direction:column;gap:12px;align-items:center}
.subsite-customer .video-player-dialog .video-frame{flex:1;min-height:0;width:100%;position:relative;display:flex;align-items:center;justify-content:center;background:#080808;border-radius:12px;overflow:hidden}
.subsite-customer #previewVideo{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.subsite-customer .video-player-close{position:absolute;right:10px;top:10px;width:34px;height:34px;border-radius:8px;font-size:24px;padding:0;z-index:2;background:#333c;color:white}
.subsite-customer #videoDownloadBtn{position:static;min-height:34px;flex-shrink:0}
.subsite-customer #videoPreviewNotice{position:absolute;top:40%;left:10%;right:10%;text-align:center;padding:12px;background:#171717e8;color:#fff;border-radius:10px}
.subsite-customer .account-dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:959px){.subsite-customer .video-editor{min-height:640px}.subsite-customer .video-only-workspace{min-height:0}.subsite-customer .site-header{gap:6px}.subsite-customer .site-header>.actions{flex-wrap:wrap}.subsite-customer .brand strong{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
@media(max-width:480px){.subsite-customer .video-options{grid-template-columns:repeat(2,minmax(0,1fr))}.subsite-customer .video-options>label:first-child{grid-column:1/-1}.subsite-customer .video-batch-options>label:first-child{grid-column:auto}.subsite-customer .generation-second-row{grid-template-columns:1fr}.subsite-customer .video-batch-options{grid-template-columns:1fr 1fr}.subsite-customer .site-header>.actions{width:100%;justify-content:flex-end}.subsite-customer .video-results h2{font-size:18px}.subsite-customer .task-card{flex-direction:row}.subsite-customer .task-bottom{display:block}.subsite-customer .task-bottom .actions{margin-top:8px}.subsite-customer .fixed-prompt-wrap summary{gap:6px;padding:12px}.subsite-customer .fixed-prompt-wrap summary small{font-size:10px}}
.task-card:is([data-queue-state="saving"],[data-queue-state="queued"],[data-queue-state="preparing"],[data-queue-state="submitting"]) .task-state::before{content:"";display:inline-block;width:9px;height:9px;margin-right:5px;border:1.5px solid currentColor;border-right-color:transparent;border-radius:50%;vertical-align:-1px;animation:subsite-task-spin .8s linear infinite}
@keyframes subsite-task-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.task-card .task-state::before{animation:none!important}}
