/* Ordinary-account workspace. Admin screens retain their existing presentation. */
.member-workspace{--member-muted:#aaa;--member-line:#3b3b3b}
.member-workspace button:focus-visible,.member-workspace summary:focus-visible,.member-workspace select:focus-visible{outline:2px solid #bcbcbc;outline-offset:4px}
.member-workspace .topbar{gap:10px;min-height:72px}
.member-project-context{display:flex;align-items:center;gap:12px;min-width:0}
.member-project-context>span{font-size:11px;color:#a3a3a3;white-space:nowrap}
.member-project-context select{width:auto;max-width:260px;min-width:120px;height:36px;background:#232323;border:1px solid #3f3f3f;font-size:13px}
.member-project-context small{color:#aeaeae;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}
.member-home{max-width:1340px;margin:0 auto;padding:38px 34px 56px;font-family:inherit}
.member-home-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}
.member-eyebrow{font-size:10px;letter-spacing:1.4px;color:#aeaeae;font-weight:600}
.member-home h1{font-size:30px;line-height:1.4;margin:9px 0;color:#ececec;letter-spacing:.5px}
.member-home-heading p,.member-continue p{font-size:13px;line-height:1.8;color:var(--member-muted);margin:0}
.member-routes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:24px}
.member-route{display:flex;align-items:flex-start;text-align:left;gap:18px;padding:28px;min-height:178px;height:auto;background:#232323;border:1px solid #404040;border-radius:12px;color:#e6e6e6;white-space:normal;transition:background .15s,border-color .15s}
.member-route:hover{background:#292929;border-color:#a1a1a1}
.member-route-main{background:#222;color:#eee;border-color:#626262}
.member-route-main:hover{background:#2b2b2b;border-color:#777}
.member-route-icon{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;border:1px solid #525252;border-radius:12px}
.member-route-main .member-route-icon{border-color:#484848}
.member-home .member-route .icon{color:#eee;stroke:currentColor}.member-home .member-continue>.primary .icon{color:#171717;stroke:currentColor}
.member-route-icon .icon{width:23px;height:23px}
.member-route-copy{display:flex;flex:1;flex-direction:column;gap:12px;min-width:0}
.member-route-copy strong{font-size:20px;line-height:1.4;font-weight:700}
.member-route-copy>span{font-size:12px;font-weight:500;color:#bdbdbd;line-height:1.7}
.member-route-copy small{font-size:11px;font-weight:400;color:#a2a2a2;line-height:1.7}

.member-route-arrow{font-size:24px;line-height:1.4}
.member-continue{display:flex;gap:26px;align-items:center;padding:25px 26px;border:1px solid var(--member-line);border-radius:12px;background:#1b1b1b;margin-bottom:26px}
.member-continue>div:first-child{flex:1;min-width:0}.member-continue h2{font-size:19px;margin:9px 0;overflow-wrap:anywhere}.member-continue p{font-size:11px}
.member-project-facts{display:flex;gap:28px;margin:0}.member-project-facts dt{font-size:11px;color:#a7a7a7;margin-bottom:10px}.member-project-facts dd{margin:0;font-size:24px;color:#e6e6e6;font-variant-numeric:tabular-nums}.member-project-facts dd small{font-size:12px;color:#929292}
.member-continue>.primary{white-space:nowrap;min-height:42px;background:#ededed;color:#171717;border-color:#ededed}
.member-workflow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:35px}
.member-step{display:flex;align-items:center;text-align:left;gap:13px;min-height:82px;background:#171717;border:1px solid #323232;border-radius:12px;padding:16px;white-space:normal}
.member-step:hover{background:#212121}.member-step>span:nth-child(2){flex:1;min-width:0}.member-step strong{display:block;font-size:13px;margin-bottom:7px}.member-step small{display:block;font-size:11px;color:#a4a4a4;font-weight:400;line-height:1.7}.member-step-number{font-size:12px;font-weight:500;color:#aeaeae;align-self:flex-start;padding-top:2px}.member-step>.icon{width:14px;height:14px;color:#868686}
.member-project-list>header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.member-project-list h2{font-size:17px;margin:0}.member-project-list>header>span{color:#a2a2a2;font-size:11px}
.member-project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.member-project-card{display:flex;align-items:center;gap:12px;padding:17px;text-align:left;background:#202020;border:1px solid #323232;border-radius:12px;min-height:88px;white-space:normal}
.member-project-card>span:nth-child(2){flex:1;min-width:0}.member-project-card strong{display:block;font-size:13px;overflow-wrap:anywhere;line-height:1.6}.member-project-card small{display:block;font-size:10px;color:#9f9f9f;margin-top:7px;font-weight:400}.member-project-symbol{padding:11px;border-radius:9px;background:#2f2f2f;color:#b4b4b4}.member-project-card>.icon{width:14px;height:14px;color:#868686}
.member-more{position:relative;display:inline-block;flex-shrink:0}.member-more>summary{display:flex;align-items:center;justify-content:center;border:1px solid #454545;border-radius:8px;min-height:38px;padding:0 14px;cursor:pointer;list-style:none;font-size:12px;color:#cbcbcb;background:#252525}.member-more>summary::-webkit-details-marker{display:none}
.member-more[open]{z-index:12}.member-more>div{position:absolute;right:0;top:calc(100% + 8px);width:285px;padding:12px;border:1px solid #494949;border-radius:12px;background:#222222;box-shadow:0 14px 40px #0009;display:flex;flex-direction:column;gap:8px}.member-more>div>button{width:100%;text-align:left;justify-content:flex-start;white-space:normal;min-height:38px}.member-more small{color:#a2a2a2;font-size:11px;line-height:1.7}
.member-selection-toolbar{gap:10px!important;min-height:64px;align-items:center}.member-selection-toolbar>span,.member-selection-toolbar>strong{font-size:12px;color:#bcbcbc}.member-selection-toolbar>strong{color:#dbdbdb}.member-selection-toolbar .asset-batch-actions{margin-left:auto}
.member-workspace .assets-page .asset-list-tools .tabs>small{font-size:12px;color:#a3a3a3}.member-workspace .assets-page .asset-utilities{gap:10px}.member-workspace .asset-center-heading>div>p{color:#b0b0b0}
.member-workspace .asset-extraction{border-color:#404040}.member-workspace .assets-page>.empty{min-height:190px}.member-workspace .asset-extraction-status:empty{display:none}
.member-workspace .assets-page .asset-extraction{grid-template-columns:minmax(0,1fr);gap:12px;padding:22px}
.member-workspace .assets-page .asset-extraction:has(.asset-supplement)>.row{min-height:135px;padding-right:clamp(30px,12vw,180px)}
.member-workspace .assets-page .asset-extraction>.asset-supplement{grid-column:1;grid-row:auto;padding-top:14px}
.member-workspace .member-supplement>summary{color:#bfbfbf;margin:0;padding:2px 0;font-size:12px;line-height:1.6}
.member-workspace .member-supplement[open]>summary{margin-bottom:14px}
.member-workspace .member-supplement textarea{min-height:85px}
.member-workspace .assets-page .empty{min-height:190px;padding:32px 18px}
@media(max-width:1250px){.member-continue{flex-wrap:wrap}.member-project-facts{gap:22px}.member-project-context small{display:none}.member-routes{grid-template-columns:1fr 1fr}.member-route{padding:22px;gap:12px}.member-route-copy strong{font-size:19px}.member-workflow{gap:9px}.member-step{padding:14px;gap:10px}.member-project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.member-home{padding:24px 20px 40px}.member-routes{grid-template-columns:1fr}.member-route{min-height:145px}.member-workflow{grid-template-columns:1fr}.member-project-context>span{display:none}.member-project-context select{min-width:90px;max-width:160px}.member-continue{gap:20px}.member-continue>div:first-child{flex-basis:100%}.member-project-grid{grid-template-columns:1fr}.member-selection-toolbar .asset-batch-actions{margin-left:0}.member-project-context{gap:6px}.member-workspace .topbar{flex-wrap:wrap;padding-top:9px;padding-bottom:9px;height:auto}.member-workspace .member-home h1{font-size:25px}}
@media(prefers-reduced-motion:reduce){.member-route{transition:none}}

.member-route-icon,.member-project-symbol{border-radius:10px}
.member-project-card:hover,.member-step:hover{background:#2b2b2b;border-color:#626262}
.member-more>div{max-width:calc(100vw - 36px)}
/* Override the legacy global white-icon rule only inside light primary buttons. */
.member-workspace .member-continue>.primary .icon{color:#171717!important;stroke:currentColor}

/* Project-owned text receipts sit in the workspace, with no global dialog. */
.project-text-region{margin:0 0 18px;min-width:0;flex-shrink:0}
.project-text-results{background:#202020;border:1px solid #3b3b3b;border-radius:10px;color:#eee;font-size:13px}
.project-text-results>summary{padding:13px 16px;cursor:pointer;font-weight:600;list-style-position:inside}
.project-text-results>summary>span{font-weight:400;color:#aaa;margin-left:12px}
.project-text-list{padding:0 16px 16px;max-height:440px;overflow:auto;overscroll-behavior:contain}
.project-text-job{border-top:1px solid #383838;padding:12px 0}
.project-text-job>summary{display:flex;gap:12px;align-items:center;cursor:pointer;flex-wrap:wrap}
.project-text-job>summary:before{content:'›';color:#aaa}.project-text-job[open]>summary:before{content:'⌄'}
.project-text-job summary strong{flex:1}.project-text-job time{color:#999;font-size:12px}
.project-text-job p,.project-text-list>p{margin:12px 0;line-height:1.7}
.project-text-job pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:280px;overflow:auto;background:#181818;border:1px solid #383838;border-radius:6px;padding:14px;font-family:inherit;line-height:1.8;user-select:text}
.canvas-workspace .main>.project-text-region{margin:0;position:absolute;top:64px;left:12px;width:min(560px,calc(100% - 24px));z-index:25}
.project-text-results summary:focus-visible{outline:2px solid #8bafcf;outline-offset:2px}

/* Task feedback lives beside the operation or in its node, never in a sync banner. */
.task-state{display:grid;gap:7px;padding:10px 12px;margin:10px 0;border:1px solid #404040;border-radius:8px;background:#252525;color:#d7d7d7;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.task-state strong{font-weight:600}.task-state small{color:#aaa;white-space:pre-wrap}
.task-state progress{width:100%;height:5px;accent-color:#8eb4d3}
.task-state.running strong{color:#a7c9e4}.task-state.complete strong{color:#98c9ab}.task-state.failed strong{color:#e7a09c}.task-state.waiting strong,.task-state.partial strong{color:#d5bc83}
.task-state.compact{display:inline-flex;white-space:nowrap;border:0;background:transparent;margin:0;padding:0 6px;gap:0;font-size:11px}
.node-head [data-node-task-status]{flex-shrink:0}.node-head .task-state.compact{font-size:10px}
.node-generation-state progress{width:80%;height:5px;accent-color:#8eb4d3}.asset-card-progress .task-state{margin:0;border:0}
[data-local-task]:empty,[data-operation-status]:empty{display:none}

/* Compact task indicators share one baseline; reasons expand only on demand. */
.task-state{display:flex;align-items:center;gap:8px;min-height:22px;padding:2px 0;margin:4px 0;border:0;border-radius:0;background:transparent;font-size:11px;line-height:18px;min-width:0;position:relative}
.task-state strong{flex-shrink:0;font-weight:500}.task-state progress{flex:0 0 64px;width:64px;height:3px;margin:0}
.task-state-caption{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap!important;color:#969696;max-width:360px}
.task-state-detail{position:relative;min-width:0;font-size:11px}.task-state-detail>summary{cursor:pointer;color:#aaa;white-space:nowrap;list-style:none}.task-state-detail>summary:after{content:' ⌄'}
.task-state-detail[open]>small{display:block;position:absolute;top:24px;left:0;width:min(280px,65vw);max-height:180px;overflow:auto;white-space:pre-wrap;padding:10px 12px;border:1px solid #444;border-radius:7px;background:#252525;color:#ddd;box-shadow:0 5px 16px #0005;z-index:60}
.task-state-detail>summary:focus-visible{outline:1px solid #8eb4d3;outline-offset:3px}
.task-state.compact{margin:0;padding:0 4px;min-height:18px;font-size:10px}
.asset-card-progress{display:block;padding:2px 0;margin:4px 12px 0;border:0;background:transparent;border-radius:0}
.asset-card-progress .task-state{margin:0;padding:0}
.reference-video .node-preview .node-generation-state,.unified-node .node-preview .node-generation-state{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;width:fit-content;max-width:90%;overflow:visible;padding:2px 8px;margin:auto;font-size:11px;line-height:18px}
.node-generation-state .task-state{margin:0}.node-generation-state>small{font-size:10px;color:#999}

.node-generation-state .task-state-detail[open]>small{max-height:90px}

/* One primary generation action; bulk replacement stays in the secondary menu. */
.split-action-panel{overflow:visible;position:relative;z-index:5;padding:16px 18px;margin-bottom:16px}.split-action-panel h3{margin:0 0 4px}.split-action-panel small,.split-selection-summary{color:#aaa;font-size:12px;line-height:1.6}.split-selection-summary{margin:10px 0 0}
.split-action-panel>.row>.row{flex-shrink:0}.split-more{position:relative}.split-more>summary{cursor:pointer;list-style:none;padding:8px 12px;border:1px solid #444;border-radius:7px;font-size:12px;white-space:nowrap}.split-more>summary:after{content:' ⌄'}
.split-more-menu{position:absolute;right:0;top:calc(100% + 6px);min-width:240px;padding:5px;border:1px solid #444;border-radius:8px;background:#262626;box-shadow:0 6px 20px #0006;z-index:45;display:grid;gap:3px}.split-more-menu button{text-align:left;justify-content:flex-start;white-space:nowrap;background:transparent;border:0;font-size:12px;padding:9px 10px}.split-more-menu button:hover{background:#343434}
.split-selection-fields{border:0;padding:0;margin:0;min-width:0}.split-more>summary:focus-visible{outline:2px solid #8eb4d3;outline-offset:2px}
.member-selection-toolbar{overflow:visible}.member-selection-toolbar>.member-more{margin-left:0}.member-selection-toolbar .member-more>div{left:0;right:auto}

.member-selection-toolbar>button,.member-selection-toolbar>.member-more>summary,.member-selection-toolbar .asset-batch-actions>button{box-sizing:border-box;height:34px;min-height:34px;padding:0 12px;border-radius:7px;font-size:12px;font-weight:500;line-height:1;white-space:nowrap}.member-selection-toolbar>.member-more>summary{border-color:var(--line,#454545);background:#252525;color:var(--text,#ddd)}

.member-selection-toolbar .asset-batch-actions{margin-left:auto;display:flex;gap:10px;align-items:center}
.script-import-studio{max-width:920px;margin:8px auto 42px}
.script-import-title{text-align:center;margin-bottom:26px}
.script-import-title>small{letter-spacing:3px;color:#999;font-size:11px}
.script-import-title h2{font-size:26px;line-height:1.5;margin:10px 0}
.script-import-title p{font-size:13px;color:#aaa;margin:0}
.script-import-card{border:1px solid #414141;border-radius:22px;background:linear-gradient(135deg,#222,#191919);overflow:hidden}
.script-upload-empty{text-align:center;padding:38px 24px;display:flex;flex-direction:column;align-items:center;gap:12px}
.script-upload-symbol{width:68px;height:68px;display:grid;place-items:center;border:1px solid #555;border-radius:20px;background:#303030;color:#eee}
.script-upload-symbol svg{width:30px;height:30px}
.script-upload-empty h3{font-size:21px;margin:4px 0 0}
.script-upload-empty p{color:#bbb;margin:0;font-size:13px}
.script-upload-empty>small{color:#999;font-size:12px}
.script-upload-empty .file{display:inline-flex;align-items:center;gap:8px;margin:12px 0 0;padding:11px 22px;border-radius:24px;cursor:pointer}
.script-file-receipt{display:flex;align-items:center;gap:14px;padding:20px 24px;border-bottom:1px solid #3a3a3a;background:#242424}
.script-file-receipt strong{display:block;font-size:14px;overflow-wrap:anywhere}
.script-file-receipt small{display:block;margin-top:6px;color:#aaa;font-size:12px}
.script-file-symbol{display:grid;place-items:center;width:40px;height:48px;color:#ddd;background:#333;border-radius:8px;flex-shrink:0}
.script-file-receipt .file{white-space:nowrap;cursor:pointer;font-size:12px}
.script-import-parameters{padding:24px}
.assets-page .script-import-parameters .asset-art{margin:0 0 20px;padding:0;max-width:none;background:transparent;border:0}
.script-import-parameters .asset-art-heading{margin-bottom:16px}
.script-import-parameters .asset-art .styles{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:0}
.script-import-parameters .asset-art .choice{min-height:78px;text-align:left}
.script-import-parameters .asset-supplement{padding-top:16px}
.script-import-status{padding:0 24px 16px}
.script-import-status:empty{display:none}
.asset-library-actions{justify-content:flex-end;gap:10px}
.asset-library-actions button{white-space:nowrap}
@media(max-width:760px){.script-import-title h2{font-size:21px}.script-import-parameters{padding:18px}.script-file-receipt{padding:18px}.script-import-parameters .asset-art .styles{grid-template-columns:1fr}.asset-list-tools .asset-library-actions{width:100%;justify-content:flex-start}}

.asset-project-cards{margin:18px 0 26px}.asset-project-cards .member-project-card.active{border-color:#999;background:#303030;box-shadow:inset 0 0 0 1px #9993}
.asset-project-picker{margin:18px 0 26px}.asset-project-picker> .row input{width:220px;max-width:100%}.asset-project-picker .asset-project-cards{margin:14px 0}.asset-project-pagination{justify-content:flex-end;flex-wrap:wrap;gap:8px}.asset-project-pagination small{margin-left:8px}.asset-episode-filter{display:flex;flex-direction:row;align-items:center;gap:8px;font-size:12px;white-space:nowrap;margin:0}.asset-episode-filter select{width:140px}.member-selection-toolbar .asset-batch-actions{flex-wrap:wrap}

.recent-project-item{position:relative;min-width:0}.recent-project-item>.member-project-card{width:100%;height:100%;padding-right:52px}.recent-project-delete{position:absolute;right:10px;top:12px;padding:7px;min-height:30px;background:transparent;border-color:transparent;color:#999}.recent-project-delete:hover:not(:disabled){color:#ffaaaa;background:#502727;border-color:#744}.recent-project-delete svg{width:15px;height:15px}

.script-import-parameters>label{margin-bottom:18px}.script-parameter-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:20px}.script-parameter-row label{display:flex;flex-direction:column;gap:9px}.script-parameter-row button{height:40px;text-align:left}.script-project-submit{justify-content:flex-end;margin-top:20px}@media(max-width:760px){.script-parameter-row{grid-template-columns:1fr}}

.member-home>.home-create{align-items:center;justify-content:center;margin-bottom:30px}.member-home-functions{display:grid;grid-template-columns:repeat(2,minmax(0,380px));justify-content:space-between;gap:32px;width:100%;margin:0 auto 38px;max-width:960px}.member-project-list>header>.subtle{font-size:12px;display:flex;align-items:center;gap:5px}.member-project-list>header>.subtle svg{width:14px;height:14px}
.member-home-functions button{box-sizing:border-box;width:100%;min-width:0;height:140px;padding:16px;gap:14px;font-size:16px;align-items:center;justify-content:center;border-radius:20px;background:linear-gradient(#242424,#2a2a2a)}
.member-home-functions button>span{box-sizing:border-box;width:auto;max-width:none;height:48px;flex:0 0 48px;border-radius:0;background:none}
.member-home-functions button:hover{background:#363636}
.member-home-functions button:hover>span{background:none}
.member-home-functions .icon{width:40px;height:40px;stroke-width:1.6}
@media(max-width:600px){.member-home-functions{gap:16px}.member-home-functions button{height:140px;padding:16px 12px;font-size:15px;gap:12px}.member-home-functions .icon{width:34px;height:34px}}
@media(max-width:480px){.member-home-functions{grid-template-columns:1fr;max-width:380px;gap:16px}}
.manual-asset-project-form{max-width:900px;margin:30px auto;padding:30px}
.manual-asset-project-form>label{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin-top:22px;min-width:0}
.manual-asset-project-form>label>input,.manual-asset-project-form>label>select,.manual-asset-project-form>label>textarea{width:100%;min-height:44px;margin-top:0;box-sizing:border-box}
.manual-asset-project-form>small{display:block;margin-top:10px}
.free-workspace-summary .workspace-menu-chevron{width:14px;height:14px;transform:rotate(90deg);color:#aaa}
.free-workspace-menu[open]>.free-workspace-summary .workspace-menu-chevron{transform:rotate(-90deg)}
@media(max-width:600px){.manual-asset-project-form{padding:22px}}
.primary-sidebar-nav button{height:38px;padding:8px 12px;gap:10px;border-radius:8px}
.primary-sidebar-nav button strong{font-size:13px}
.account-generation-history .history-page-tabs{margin:22px 0 28px;gap:10px}
.account-generation-history .history-page-tabs button{border-radius:20px;padding:5px 14px}
.account-generation-history .history-empty{min-height:300px}
.account-generation-history .history-grid{--history-card-size:240px}
.credit-cost-badge{font-size:10px;line-height:1.3;color:#c7c7c7;white-space:nowrap;margin-left:4px}
.credits-admin{display:flex;flex-direction:column;gap:20px}
.credits-admin form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:18px;border:1px solid var(--line);border-radius:12px}
.credits-admin form label{display:flex;flex-direction:column;gap:8px;min-width:0}
.credits-admin form select,.credits-admin form input{width:100%}
.credits-admin .error{grid-column:1/-1}
.credits-admin .list-row small{display:block}
@media(max-width:600px){.credits-admin form{grid-template-columns:1fr}}
.manual-rule-edit{align-self:flex-end}
.manual-rule-edit[hidden]{display:none}
.unified-node .video-settings-strip .node-price,.reference-video .video-settings-strip .node-price{flex:0 0 auto;width:max-content;min-width:64px;max-width:none;margin-left:auto;margin-right:8px}
.node-price>.credit-cost-badge{font-size:11px;line-height:1.4;margin-left:0;color:var(--muted)}
.node-generate>.credit-cost-badge{display:none}
.unified-node .node-price>span,.reference-video .node-price>span{flex:0 0 auto;max-width:none;overflow:visible;text-overflow:clip;white-space:nowrap}
.unified-node .video-settings-strip .node-parameters,.reference-video .video-settings-strip .node-parameters{flex-wrap:wrap;row-gap:6px}
.extraction-progress{padding:18px 20px;margin:16px 0;border:1px solid var(--line);border-radius:12px;background:var(--panel,#222);display:grid;gap:12px}
.extraction-progress-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.extraction-progress-head small{margin-left:auto;font-variant-numeric:tabular-nums;color:var(--muted)}
.extraction-progress-detail{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:13px;color:var(--muted)}
.extraction-progress progress{display:block;appearance:none;width:100%;height:6px;border:0;border-radius:6px;overflow:hidden;background:#3b3b3b;accent-color:#e7e7e7}
.extraction-progress progress::-webkit-progress-bar{background:#3b3b3b;border-radius:6px}
.extraction-progress progress::-webkit-progress-value{background:#e7e7e7;border-radius:6px;transition:width .25s ease}
.extraction-progress progress::-moz-progress-bar{background:#e7e7e7;border-radius:6px}
.extraction-progress>small{color:var(--muted);font-variant-numeric:tabular-nums}
.extraction-spinner{width:16px;height:16px;flex:0 0 16px;box-sizing:border-box;border:2px solid #555;border-top-color:#f2f2f2;border-radius:50%;animation:extraction-spin .85s linear infinite}
.extraction-status-dot{width:8px;height:8px;margin:4px;border-radius:50%;background:#8dbeab}
.extraction-progress.is-failed .extraction-status-dot{background:#d7a270}
@keyframes extraction-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.extraction-spinner{animation:none;border-color:#bbb}.extraction-progress progress::-webkit-progress-value{transition:none}}
.modal.team-modal{width:min(1160px,95vw);max-width:1160px}
.team-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:18px;border:1px solid var(--line);border-radius:12px;margin:20px 0}
.team-form h3,.team-form>.error{grid-column:1/-1;margin:0}
.team-form label{display:flex;flex-direction:column;gap:8px;min-width:0}
.team-form input,.team-form select{width:100%;box-sizing:border-box}
.team-table-scroll{overflow:auto}
.team-table-scroll table{width:100%;border-collapse:collapse;min-width:700px}
.team-table-scroll th,.team-table-scroll td{text-align:left;border-bottom:1px solid var(--line);padding:12px 8px;vertical-align:middle}
.team-table-scroll td button{margin:6px 0 0 6px;font-size:12px}
.team-project-list,.team-preview-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px;margin:20px 0}
.team-project-list>button{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:12px;min-height:130px;padding:20px;white-space:normal}
.team-preview-grid>article{padding:16px;border:1px solid var(--line);border-radius:12px;min-width:0}
.team-preview-grid img,.team-preview-grid video,.team-preview-grid audio{width:100%;max-height:280px;object-fit:contain;border-radius:8px}
.team-readonly-text{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.7;max-height:50vh;overflow:auto;background:#191919;padding:16px;border-radius:8px}
.team-project-view .tabs{margin-top:20px;flex-wrap:wrap}
.team-project-body details{padding:12px 0}
@media(max-width:650px){.team-form{grid-template-columns:1fr}.team-preview-grid,.team-project-list{grid-template-columns:1fr}}
.account-generation-history [data-history-preview]{cursor:zoom-in}
.account-generation-history .history-result-actions{flex-wrap:wrap;gap:8px;margin-top:8px}
.account-generation-history .history-result-actions button{flex:1;white-space:nowrap}

/* Asset card actions must fit narrow cards, including the complete fee label. */
.assets-grid>.asset-selectable{align-self:stretch;display:flex;flex-direction:column}
.assets-grid .asset-meta{display:flex;flex-direction:column;flex:1;min-width:0}
.assets-grid .asset-card-title{align-items:flex-start;gap:8px;min-height:42px}
.assets-grid .asset-card-title h3{flex:1;min-width:0;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;line-height:1.5;margin:0}
.assets-grid .asset-card-title .badge{flex-shrink:0;max-width:45%;overflow-wrap:anywhere}
.assets-grid .asset-description-preview{min-height:0;height:3.3em;line-height:1.65!important;margin:8px 0}
.assets-grid .asset-info-trigger{align-self:flex-start;min-height:30px;padding:3px 0;margin:0 0 10px;border:0;background:transparent;color:var(--muted);text-align:left}
.assets-grid .asset-info-trigger:hover{color:var(--text);text-decoration:underline}
.assets-grid .asset-card-footer{display:flex;flex-direction:column;gap:8px;margin-top:auto;min-width:0}
.assets-grid .asset-card-footer>small{display:block;min-height:18px;overflow-wrap:anywhere}
.assets-grid .asset-card-actions{display:grid;grid-template-columns:32px 32px minmax(0,1fr);gap:8px;width:100%;min-width:0;margin-left:0;align-items:center}
.assets-grid .asset-card-actions>.asset-action-icon{width:32px;min-width:0;padding:6px;grid-row:1}
.assets-grid .asset-card-actions>[data-action="generate-asset"]{grid-row:2;grid-column:1/-1;display:flex;justify-content:space-between;gap:8px;width:100%;min-width:0;max-width:100%;height:auto;min-height:36px;padding:7px 10px;white-space:normal;overflow-wrap:anywhere}
.assets-grid .asset-card-actions>[data-action="generate-asset"] .credit-cost-badge{flex:0 0 auto;margin-left:0;white-space:nowrap}
.assets-grid .asset-card-actions>.asset-more-menu{grid-column:3;grid-row:1;justify-self:end}
.asset-details-modal{width:min(760px,94vw);max-height:90vh;display:flex;flex-direction:column}
.asset-details-modal .modal-content{min-height:0;overflow:auto;overscroll-behavior:contain}
.asset-details-readonly{min-width:0;font-size:13px;overflow-wrap:anywhere}
.asset-details-overview{display:flex;align-items:center;gap:12px;color:var(--muted);margin-bottom:16px}
.asset-details-readonly h3{font-size:14px;margin:22px 0 10px}
.asset-details-description{white-space:pre-wrap;line-height:1.8;overflow-wrap:anywhere}
.asset-details-readonly p{white-space:pre-wrap;line-height:1.8;overflow-wrap:anywhere;margin:10px 0}
.asset-details-table{display:grid;gap:10px;margin:0}
.asset-details-table>div{display:grid;grid-template-columns:minmax(75px,120px) minmax(0,1fr);gap:12px;padding:9px 0;border-bottom:1px solid var(--line)}
.asset-details-table dt{color:var(--muted)}
.asset-details-table dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:480px){.asset-details-table>div{grid-template-columns:minmax(0,1fr);gap:4px}}
.asset-details-modal>header{flex-shrink:0;gap:12px;align-items:flex-start}
.asset-details-modal>header h2{min-width:0;overflow-wrap:anywhere}
.asset-details-modal>header>button{flex-shrink:0}
