/* Creation hub uses the shared public layout and functional color tokens. */
.creation-intro{max-width:850px;padding:72px 0 42px}.creation-intro h1{font-size:clamp(30px,3.7vw,50px);line-height:1.2;letter-spacing:-1.7px;margin:14px 0 20px}.creation-intro>p:last-child{font-size:17px;line-height:1.9;color:var(--ui-secondary);max-width:720px}
.creation-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0;align-items:stretch;padding-bottom:48px}.creation-workspace{border:0;border-radius:0;background:transparent;color:var(--ui-text);min-width:0;padding:0 36px 0 0}.creation-workspace+.creation-workspace{border-left:1px solid var(--ui-border);padding:0 0 0 36px}.creation-workspace-head{padding:0 0 34px;border:0}.creation-number{font-size:11px;letter-spacing:1.5px;color:var(--ui-accent);font-weight:650}.creation-workspace h2{font-size:32px;line-height:1.3;letter-spacing:-.7px;margin:14px 0}.creation-workspace-head>p{font-size:14px;line-height:1.85;color:var(--ui-secondary);margin:0;min-height:52px}.creation-features{list-style:none;padding:0;margin:24px 0;display:grid;gap:13px}.creation-features li{font-size:13px;line-height:1.8;padding-left:20px;position:relative}.creation-features li:before{content:'✓';position:absolute;left:0;color:var(--ui-accent)}.creation-primary{width:auto;display:inline-flex;justify-content:center;gap:18px;min-height:54px;padding:14px 20px;font-size:15px;font-weight:700}.creation-primary>span{font-size:21px;line-height:1}.creation-primary:focus-visible{outline:2px solid var(--ui-accent);outline-offset:4px}
.creation-templates,.creation-video-content{padding:12px 0 0}.creation-section-heading h3{font-size:18px;line-height:1.5;margin:0 0 7px}.creation-section-heading>p{font-size:12px;color:var(--ui-secondary);margin:0 0 20px;line-height:1.7}.creation-template-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 24px}.creation-template{display:flex;flex-direction:column;position:relative;min-width:0;padding:22px 0;border:0;border-bottom:1px solid var(--ui-border);background:transparent;border-radius:0;transition:color .15s}.creation-template:hover{background:transparent;color:var(--ui-accent)}.creation-template:hover .creation-template-link{text-decoration:underline;text-underline-offset:4px}.creation-template:focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}.creation-template-index{font-size:10px;letter-spacing:1px;color:var(--ui-secondary)}.creation-template h4{font-size:14px;line-height:1.5;margin:9px 0 7px}.creation-template p{font-size:12px;line-height:1.8;color:var(--ui-secondary);margin:0 0 15px}.creation-template-link{font-size:11px;font-weight:600;color:var(--ui-accent);margin-top:auto}
.creation-steps{list-style:none;margin:24px 0 32px;padding:0;display:grid;gap:0}.creation-steps li{display:flex;gap:16px;padding:20px 0;border-bottom:1px solid var(--ui-border)}.creation-steps li:first-child{padding-top:0}.creation-steps li>span{display:grid;place-items:center;width:34px;height:34px;flex:none;border-radius:50%;background:var(--ui-selected);color:var(--ui-accent);font-size:11px;font-weight:650}.creation-steps h4,.creation-usecases h4{font-size:14px;margin:2px 0 6px}.creation-steps p,.creation-usecases p{font-size:12px;line-height:1.85;color:var(--ui-secondary);margin:0}.creation-usecases{display:grid;grid-template-columns:1fr 1fr;gap:0 24px;margin-top:18px}.creation-usecases article{padding:20px 0;background:transparent;border-radius:0;border-bottom:1px solid var(--ui-border)}.creation-note{font-size:11px;line-height:1.9;color:var(--ui-secondary);margin:26px 0 0}.creation-bottom{display:flex;align-items:center;justify-content:space-between;gap:24px;border-top:1px solid var(--ui-border);padding:32px 0 64px}.creation-bottom h2{font-size:22px;margin:0 0 10px}.creation-bottom p{font-size:14px;color:var(--ui-secondary);margin:0}.creation-bottom>a{flex:none}
@media(max-width:1000px){.creation-workspace{padding-right:24px}.creation-workspace+.creation-workspace{padding-left:24px}.creation-template-grid,.creation-usecases{column-gap:18px}}
@media(max-width:760px){.creation-intro{padding:40px 0 24px}.creation-intro h1{letter-spacing:-1px}.creation-intro>p:last-child{font-size:15px}.creation-columns{grid-template-columns:minmax(0,1fr)}.creation-workspace{padding:0 0 36px}.creation-workspace+.creation-workspace{border-left:0;border-top:1px solid var(--ui-border);padding:36px 0 0}.creation-workspace-head>p{min-height:0}.creation-bottom{align-items:flex-start;flex-direction:column}.creation-workspace h2{font-size:28px}}
@media(max-width:380px){.creation-template-grid,.creation-usecases{grid-template-columns:minmax(0,1fr)}}

.creation-project-page{padding:52px 0 90px;min-height:65vh}.creation-back{font-size:13px;color:var(--ui-secondary)}.creation-project-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:32px 0 48px}.creation-project-heading h1{font-size:38px;line-height:1.3;margin:12px 0 16px;letter-spacing:-1px}.creation-project-heading p{color:var(--ui-secondary);max-width:700px}.creation-project-heading>button{flex:none}.creation-project-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.creation-project-toolbar h2{font-size:20px}.creation-project-toolbar button{font-size:12px;min-height:36px;padding:8px 12px}#creation-project-status{font-size:14px;color:var(--ui-secondary)}#creation-project-status:empty{display:none}#creation-project-list{display:grid;gap:12px}.creation-project-row{display:flex;align-items:center;justify-content:space-between;gap:24px;border:1px solid var(--ui-border);border-radius:12px;padding:22px 24px;background:var(--ui-workspace);color:var(--ui-text)}.creation-project-info{min-width:0}.creation-project-info h3{font-size:16px;margin:0 0 7px;overflow-wrap:anywhere}.creation-project-info p{font-size:12px;color:var(--ui-secondary);margin:0;line-height:1.8}.creation-project-actions{display:flex;gap:10px;flex:none}.creation-project-actions .global-button{min-height:38px;padding:8px 15px;font-size:13px}.creation-project-delete{color:var(--ui-danger)!important}.creation-project-tip{font-size:12px;color:var(--ui-secondary);margin-top:24px;line-height:1.9}.creation-project-empty{padding:40px 24px;border:1px dashed var(--ui-border);border-radius:12px;text-align:center}.creation-project-empty h3{font-size:17px}.creation-project-empty p{font-size:14px;color:var(--ui-secondary)}@media(max-width:600px){.creation-project-page{padding-top:30px}.creation-project-heading{align-items:flex-start;flex-direction:column;margin-bottom:28px}.creation-project-heading h1{font-size:30px}.creation-project-row{padding:18px;align-items:flex-start;flex-direction:column;gap:16px}.creation-project-actions{align-self:flex-end}}

.creation-site #content{width:calc(100% - 56px);max-width:1280px;margin:0 auto;padding:0;box-sizing:border-box}@media(max-width:600px){.creation-site #content{width:calc(100% - 36px);padding:0}}

.creation-choice-heading{font-size:clamp(22px,2.2vw,28px);line-height:1.4;font-weight:650;letter-spacing:-.4px;margin:0 0 28px;color:var(--ui-text)}

.creation-workspace-head>.creation-keywords{min-height:0;margin-top:16px;font-size:12px;line-height:2;color:var(--ui-accent);font-weight:500}

/* Project actions share functional theme colors instead of browser button defaults. */
.creation-project-page .global-button{background:var(--ui-subtle);border:1px solid var(--ui-field-border);color:var(--ui-text);font-family:inherit;cursor:pointer;box-shadow:none}
.creation-project-page #creation-new-project{background:var(--ui-selected);border-color:var(--ui-accent);color:var(--ui-accent);font-weight:700}
.creation-project-page .global-button:hover:not(:disabled){background:var(--ui-selected);border-color:var(--ui-accent);color:var(--ui-accent)}
.creation-project-page .creation-project-delete{background:var(--ui-danger-surface);border-color:var(--ui-danger-surface);color:var(--ui-danger)!important}
.creation-project-page .creation-project-delete:hover:not(:disabled){background:var(--ui-danger-surface);border-color:var(--ui-danger);color:var(--ui-danger)}
.creation-project-page .global-button:focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}
.creation-project-page .global-button:disabled{opacity:.55;cursor:wait}

.creation-project-templates{margin:0 0 48px;padding:0 0 32px;border-bottom:1px solid var(--ui-border)}.creation-project-templates .creation-template-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.creation-project-templates h3{font-size:18px;margin:12px 0}.creation-project-templates .creation-section-heading h2{font-size:24px;margin:0 0 10px}@media(max-width:800px){.creation-project-templates .creation-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.creation-project-templates .creation-template-grid{grid-template-columns:1fr}}

.creation-project-toolbar-actions{display:flex;align-items:center;gap:10px;flex:none}.creation-project-page .creation-project-toolbar #creation-new-project{min-height:36px;padding:8px 12px;font-size:12px;line-height:1.4}@media(max-width:380px){.creation-project-toolbar{gap:12px}.creation-project-toolbar-actions{gap:7px}.creation-project-toolbar h2{font-size:18px}}

.creation-video-scenes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:0 0 48px}.creation-video-scene{margin:0;min-width:0;aspect-ratio:16/9;border-radius:16px;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;background:var(--ui-workspace);color:var(--ui-accent);position:relative}.creation-video-scene:nth-child(2){background:var(--ui-subtle)}.creation-video-art{display:flex;flex-direction:column;align-items:center;gap:20px;position:relative}.creation-video-art>svg{width:56px;height:56px;z-index:1}.creation-scene-orbit{position:absolute;width:146px;height:146px;border-radius:50%;background:var(--ui-selected);opacity:.45;top:-32px}.creation-scene-wave{display:flex;align-items:center;justify-content:center;gap:4px;height:38px;z-index:1}.creation-scene-wave i{display:block;width:3px;height:var(--bar);border-radius:3px;background:currentColor;opacity:.45}.creation-video-scene figcaption{font-size:17px;font-weight:500;letter-spacing:1px;color:var(--ui-text);z-index:1}@media(max-width:650px){.creation-video-scenes{grid-template-columns:1fr;gap:16px;margin-bottom:32px}.creation-video-scene figcaption{font-size:16px}}
.creation-video-guide{margin-bottom:44px}.creation-video-guide .creation-video-scenes{margin-bottom:18px;align-items:start}.creation-video-stage{min-width:0}.creation-video-stage-heading{margin:0 0 20px}.creation-video-stage-heading h2{font-size:24px;line-height:1.4;margin:10px 0}.creation-video-stage-heading p{font-size:14px;line-height:1.8;color:var(--ui-secondary);margin:0}.creation-video-stage .creation-video-scene{width:100%;text-align:center;padding:20px;box-sizing:border-box}.creation-video-stage:nth-child(2) .creation-video-scene{background:var(--ui-subtle)}.creation-video-scene figcaption{width:100%;text-align:center;text-wrap:balance;line-height:1.6}.creation-video-guide-steps{list-style:none;display:grid;gap:20px;padding:0;margin:26px 0 0}.creation-video-guide-steps li{display:flex;align-items:flex-start;gap:13px}.creation-video-step-number{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:50%;background:var(--ui-selected);color:var(--ui-accent);font-size:11px;font-weight:650}.creation-video-guide-steps h3{font-size:15px;line-height:1.5;margin:2px 0 6px}.creation-video-guide-steps p,.creation-video-guide-note{font-size:13px;line-height:1.8;color:var(--ui-secondary);margin:0}.creation-video-guide-note{padding-top:20px;text-align:center}@media(max-width:650px){.creation-video-guide .creation-video-scenes{gap:34px}.creation-video-stage-heading h2{font-size:21px}.creation-video-guide{margin-bottom:32px}}

.creation-video-guide .creation-video-stage .creation-video-scene{background:transparent}.creation-video-guide .creation-scene-orbit{background:transparent}

.creation-list-enter{opacity:0;transform:translateY(12px);transition:opacity .32s ease,transform .32s ease}.creation-list-enter.is-visible{opacity:1;transform:translateY(0)}
@media(prefers-reduced-motion:reduce){.creation-list-enter{opacity:1;transform:none;transition:none}}
.creation-project-search{margin:16px 0;max-width:360px}.creation-project-search input{box-sizing:border-box;width:100%;min-height:40px;padding:9px 13px;border:1px solid var(--ui-field-border);border-radius:9px;background:var(--ui-field);color:var(--ui-ink);font:inherit;font-size:14px}.creation-project-search input:focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}.creation-project-loading{min-height:130px;display:grid;place-items:center;color:var(--ui-secondary)}#creation-project-status{min-height:24px}.creation-project-pagination{display:flex;justify-content:center;align-items:center;gap:16px;margin-top:20px;flex-wrap:wrap;color:var(--ui-secondary);font-size:13px}.creation-project-pagination[hidden]{display:none}.creation-project-pagination button{min-height:36px;padding:7px 12px;font-size:13px}.creation-project-pagination button:disabled{opacity:.45;cursor:default}.creation-project-toolbar{scroll-margin-top:100px}

/* Shared project storage panels use the public-page stylesheet. */
.project-storage-dialog{width:620px}.project-storage-rows{display:grid;gap:12px;margin-top:18px}.project-storage-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--ui-border)}.project-storage-row>span{min-width:0;overflow-wrap:anywhere}.project-storage-row>button{flex:none;color:var(--ui-danger)!important}.project-storage-dialog .small{font-size:12px;line-height:1.7;color:var(--ui-secondary)}

.project-storage-summary{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:12px 0 20px;color:var(--ui-secondary);font-size:12px}.project-storage-summary progress{width:160px;height:6px;accent-color:var(--ui-accent)}html[data-theme] body .project-storage-link{padding:0;border:0;background:transparent;min-height:28px;color:var(--ui-accent);font-size:12px}.project-audio-row{border-bottom:1px solid var(--ui-border);padding:12px 0}.project-audio-row>p{overflow-wrap:anywhere}.project-audio-refs{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}.project-audio-refs a{color:var(--ui-accent)}.project-audio-row>.is-destructive{color:var(--ui-danger)!important}

html[data-theme] .creation-project-page .project-storage-summary{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:4px 0 18px;padding:16px 0;border-bottom:1px solid var(--ui-border);font-size:12px;color:var(--ui-secondary)}
.project-storage-summary>span{font-variant-numeric:tabular-nums;white-space:nowrap}
html[data-theme] .project-storage-summary>progress{appearance:none;-webkit-appearance:none;width:180px;height:5px;border:0;border-radius:99px;overflow:hidden;background:var(--ui-subtle)}
.project-storage-summary>progress::-webkit-progress-bar{background:var(--ui-subtle);border-radius:99px}
.project-storage-summary>progress::-webkit-progress-value{background:var(--ui-accent);border-radius:99px}
.project-storage-summary>progress::-moz-progress-bar{background:var(--ui-accent);border-radius:99px}
html[data-theme] body .creation-project-page .project-storage-link{appearance:none;display:inline-flex;align-items:center;gap:6px;width:auto;min-height:24px;margin:0;padding:2px 0;border:0;border-radius:0;box-shadow:none;background:transparent;color:var(--ui-accent);font-family:inherit;font-size:12px;font-weight:500;line-height:20px;cursor:pointer}
html[data-theme] body .creation-project-page .project-storage-link:hover{color:var(--ui-text);text-decoration:underline;text-underline-offset:4px}
.project-storage-link+ .project-storage-link{border-left:1px solid var(--ui-border)!important;padding-left:16px!important}
.project-storage-link:focus-visible{outline:2px solid var(--ui-accent);outline-offset:4px}
@media(max-width:600px){html[data-theme] .creation-project-page .project-storage-summary{gap:10px 14px}.project-storage-summary>progress{flex:1;min-width:80px}.project-storage-summary>.project-storage-link{font-size:12px}}
.project-storage-summary>span{max-width:100%;white-space:normal;overflow-wrap:anywhere;min-width:0}.project-storage-summary>progress[hidden]{display:none!important}
/* Compact audio cache browser; all surfaces follow the shared theme tokens. */
html body dialog.audio-cache-dialog{width:760px;max-width:calc(100vw - 28px);max-height:86dvh;box-sizing:border-box;padding:0;overflow:hidden;border:1px solid var(--ui-border);border-radius:14px;background:var(--ui-workspace);color:var(--ui-text)}
html body dialog.audio-cache-dialog[open]{display:flex;flex-direction:column}
.audio-cache-header{position:relative;padding:22px 24px 16px;border-bottom:1px solid var(--ui-border);flex:none}
html body .audio-cache-dialog h2{font-size:20px;font-weight:600;line-height:1.4;color:var(--ui-text);margin:0 36px 8px 0}
html body .audio-cache-dialog .ui-dismiss{top:17px;right:18px;width:32px;height:32px;padding:0;display:grid;place-items:center;border-radius:8px;background:var(--ui-subtle);color:var(--ui-text)}
html body .audio-cache-dialog :is(.audio-cache-description,.audio-cache-summary){font-size:12px;line-height:1.7;margin:0;color:var(--ui-secondary)}
html body .audio-cache-dialog .audio-cache-summary{margin-top:8px;color:var(--ui-accent);font-variant-numeric:tabular-nums}
.audio-cache-controls{display:grid;grid-template-columns:minmax(0,1fr) 132px 144px;gap:10px;padding:16px 24px 0;flex:none}
html body .audio-cache-dialog .audio-cache-search{width:100%;min-width:0;min-height:38px;box-sizing:border-box;padding:8px 11px;border:1px solid var(--ui-field-border);border-radius:8px;background:var(--ui-field);color:var(--ui-text);font:inherit;font-size:13px}
.audio-cache-controls :is(select,.ui-select){width:100%;min-width:0;max-width:100%;box-sizing:border-box}
html body .audio-cache-dialog .audio-cache-controls :is(select,.ui-select-trigger){min-height:38px;padding:8px 10px;font-size:12px;border-radius:8px;border:1px solid var(--ui-field-border);background:var(--ui-field);color:var(--ui-text)}
html body .audio-cache-dialog .audio-cache-status{flex:none;margin:10px 24px;font-size:12px;line-height:1.5;color:var(--ui-secondary);overflow-wrap:anywhere}
.audio-cache-list{padding:0 24px 16px;min-height:0;overflow:auto;overscroll-behavior:contain;display:grid;gap:10px}
.audio-cache-row{padding:14px 16px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-field);min-width:0}
.audio-cache-row-top{display:flex;align-items:center;gap:10px;min-width:0}
.audio-cache-kind-badge{font-size:11px;line-height:1.5;color:var(--ui-secondary)}
.audio-cache-kind-badge.is-expiring{color:var(--ui-danger)}
.audio-cache-size{margin-left:auto;font-size:12px;font-variant-numeric:tabular-nums;color:var(--ui-secondary);white-space:nowrap}
html body .audio-cache-dialog button.audio-cache-clear{min-height:28px;width:auto;padding:3px 10px;font:inherit;font-size:12px;line-height:20px;border:1px solid var(--ui-border);border-radius:7px;color:var(--ui-danger);background:transparent;cursor:pointer;white-space:nowrap}
html body .audio-cache-dialog button.audio-cache-clear:hover{background:var(--ui-subtle);border-color:var(--ui-danger)}
html body .audio-cache-dialog button.audio-cache-clear:disabled{opacity:.5;cursor:wait}
html body .audio-cache-dialog .audio-cache-text{font-size:14px;line-height:1.7;font-weight:500;color:var(--ui-text);margin:7px 0 8px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.audio-cache-meta{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:11px;line-height:1.6;color:var(--ui-secondary)}
.audio-cache-refs{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 8px;margin-top:9px;font-size:11px;line-height:1.6;min-width:0}
.audio-cache-ref-label,.audio-cache-unreferenced{color:var(--ui-secondary)}
.audio-cache-project{max-width:100%;color:var(--ui-accent);background:var(--ui-subtle);border-radius:5px;padding:2px 7px;text-decoration:none;overflow-wrap:anywhere}
.audio-cache-project:hover{text-decoration:underline}
.audio-cache-footer{flex:none;display:flex;align-items:center;justify-content:center;gap:16px;padding:12px 24px;border-top:1px solid var(--ui-border);background:var(--ui-workspace)}
.audio-cache-footer[hidden]{display:none!important}
html body .audio-cache-dialog .audio-cache-footer button{padding:7px 12px;min-height:34px;border:1px solid var(--ui-border);border-radius:7px;background:var(--ui-field);color:var(--ui-text);font-size:12px}
.audio-cache-footer button:disabled{opacity:.45;cursor:default}
.audio-cache-page{font-size:12px;color:var(--ui-secondary)}
.audio-cache-empty{padding:34px 12px;text-align:center;color:var(--ui-secondary)}
html body .audio-cache-dialog .audio-cache-empty p{font-size:12px;line-height:1.7;margin:8px 0 0}
.audio-cache-dialog :is(button,input,select,a):focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}
@media(max-width:600px){.audio-cache-header{padding:18px 16px 14px}.audio-cache-controls{padding:12px 16px 0;grid-template-columns:1fr 1fr}.audio-cache-search{grid-column:1/-1}html body .audio-cache-dialog .audio-cache-status{margin:10px 16px}.audio-cache-list{padding:0 16px 14px}.audio-cache-row{padding:12px}.audio-cache-meta{gap:4px 10px}.audio-cache-footer{padding:10px 16px}}
/* Storage management follows shared modal and field surfaces. */
html[data-theme] body .project-storage-dialog{box-sizing:border-box;width:580px;max-width:calc(100vw - 32px);max-height:85vh;overflow:auto;padding:26px;border:1px solid var(--ui-border);border-radius:16px;background:var(--ui-workspace);color:var(--ui-text)}
.project-storage-dialog h2{font-size:22px;line-height:1.4;margin:0 36px 20px 0}
html[data-theme] body .project-storage-dialog .ui-dismiss{position:absolute;top:18px;right:18px;display:grid;place-items:center;width:32px;height:32px;min-height:0;padding:0;border:0;border-radius:8px;background:transparent;color:var(--ui-secondary)}
html[data-theme] body .project-storage-dialog .ui-dismiss:hover{background:var(--ui-subtle);color:var(--ui-text);transform:none}
.project-storage-usage{padding:16px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-field)}
.project-storage-usage .ui-dialog-description{margin:0 0 12px;font-size:13px;line-height:1.5;color:var(--ui-text)}
.project-storage-meter{height:6px;border-radius:99px;background:var(--ui-subtle);overflow:hidden}
.project-storage-meter>span{display:block;height:100%;border-radius:inherit;background:var(--ui-accent)}
.project-storage-dialog>.small{margin:14px 0 18px;font-size:12px;line-height:1.7;color:var(--ui-secondary)}
.project-storage-dialog .project-storage-rows{gap:8px;margin-top:0}
.project-storage-dialog .project-storage-row{padding:12px 14px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-field)}
.project-storage-dialog .project-storage-row>span{font-size:14px;font-weight:600;line-height:1.5}
html[data-theme] body .project-storage-dialog .project-storage-row>button{appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 11px;border:1px solid var(--ui-field-border);border-radius:7px;background:transparent;color:var(--ui-danger)!important;font:inherit;font-size:12px;line-height:1.5;white-space:nowrap;box-shadow:none}
html[data-theme] body .project-storage-dialog .project-storage-row>button:hover:not(:disabled){border-color:var(--ui-danger);background:var(--ui-subtle);transform:none}
.project-storage-dialog .project-storage-row>button:disabled{opacity:.45}
@media(max-width:480px){html[data-theme] body .project-storage-dialog{padding:20px}.project-storage-dialog .project-storage-row{gap:10px;flex-wrap:wrap}}
.audio-cache-dialog .audio-cache-tabs{display:flex;gap:20px;flex:none;margin:0 24px;padding:0;border-bottom:1px solid var(--ui-border)}
html[data-theme] body .audio-cache-dialog .audio-cache-tabs>.audio-cache-tab{appearance:none;min-height:40px;margin:0 0 -1px;padding:9px 0;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--ui-secondary);font:inherit;font-size:13px;box-shadow:none;transform:none}
html[data-theme] body .audio-cache-dialog .audio-cache-tabs>.audio-cache-tab:hover{color:var(--ui-accent)}
html[data-theme] body .audio-cache-dialog .audio-cache-tabs>.audio-cache-tab[aria-selected=true]{color:var(--ui-accent);border-bottom-color:var(--ui-accent);font-weight:600}
.audio-cache-dialog .audio-cache-tabs>.audio-cache-tab:focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}
/* Keep cache browsing stable when a tab has fewer rows or no matches. */
html body dialog.audio-cache-dialog{width:900px;min-width:min(620px,calc(100vw - 28px));max-width:calc(100vw - 28px);height:min(760px,86dvh);min-height:min(600px,86dvh);max-height:86dvh}
.audio-cache-dialog .audio-cache-list{flex:1 1 0;min-height:0;align-content:start;scrollbar-gutter:stable;overflow-y:auto}
.audio-cache-dialog .audio-cache-empty{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:180px;padding:24px;text-align:center}
.audio-cache-dialog .audio-cache-status{min-height:18px}
html body .audio-cache-dialog .audio-cache-footer[hidden]{display:flex!important;visibility:hidden;pointer-events:none}
@media(max-width:600px){html body dialog.audio-cache-dialog{width:calc(100vw - 24px);min-width:0;max-width:calc(100vw - 24px);height:90dvh;min-height:0;max-height:90dvh}.audio-cache-dialog .audio-cache-header{padding:18px}.audio-cache-dialog .audio-cache-controls{padding:12px 18px 0}.audio-cache-dialog .audio-cache-list{padding-left:18px;padding-right:18px}}
html[data-theme] body dialog.ui-dialog.audio-cache-dialog{width:900px!important;min-width:min(620px,calc(100vw - 28px));max-width:calc(100vw - 28px)!important}
@media(max-width:600px){html[data-theme] body dialog.ui-dialog.audio-cache-dialog{width:calc(100vw - 24px)!important;min-width:0;max-width:calc(100vw - 24px)!important}}
/* Keep the project count alongside storage, shared by Theater and video lists. */
.project-storage-summary>#creation-project-status{margin:0 0 0 auto;text-align:right;flex:0 1 auto;line-height:1.5}
@media(max-width:600px){.project-storage-summary>#creation-project-status{flex-basis:100%;margin:0;text-align:right}}

.project-trash-dialog{width:min(680px,calc(100vw - 32px));max-height:80dvh;overflow:auto}.project-trash-rows{display:grid;gap:10px;margin:18px 0}.project-trash-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-field)}.project-trash-actions{display:flex;gap:8px;flex-wrap:wrap}.project-trash-row p{margin:6px 0 0}.project-trash-actions button{font-size:12px;min-height:32px;padding:6px 10px}@media(max-width:600px){.project-trash-row{align-items:flex-start;flex-direction:column}}

html[data-theme] .project-trash-dialog button{appearance:none;-webkit-appearance:none;font:inherit;font-size:12px;line-height:1.5;min-height:34px;padding:7px 12px;border:1px solid var(--ui-field-border);border-radius:8px;background:var(--ui-field);color:var(--ui-text);box-shadow:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px}
html[data-theme] .project-trash-dialog button:hover:not(:disabled){background:var(--ui-selected);border-color:var(--ui-accent)}
html[data-theme] .project-trash-dialog button.is-destructive{color:var(--ui-danger)}
html[data-theme] .project-trash-dialog button:disabled{opacity:.45;cursor:not-allowed}
html[data-theme] .project-trash-dialog button:focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}
.project-trash-dialog .project-trash-close{margin-top:6px;float:right}
.project-trash-dialog>h2{margin:0 0 12px;font-size:20px}.project-trash-dialog>.small{font-size:12px;line-height:1.7;color:var(--ui-secondary)}

html[data-theme] .project-trash-dialog>.project-trash-close{position:absolute;top:18px;right:18px;width:32px;height:32px;min-height:32px;margin:0;padding:6px;float:none}
.project-trash-dialog>h2{padding-right:42px}
.project-trash-row>div:first-child{flex:1;min-width:0;overflow-wrap:anywhere}
.project-trash-row>.project-trash-actions{margin-left:auto;justify-content:flex-end;flex:0 0 auto;align-self:center;flex-wrap:nowrap}
@media(max-width:600px){.project-trash-row>.project-trash-actions{align-self:flex-end;flex-wrap:wrap}}
