/* AITBELLA Drive v11 — stable full app + single-block upload refinements */
#app.card{max-width:980px!important;width:min(980px,calc(100% - 28px))!important;margin:0 auto 56px!important;}
.upload-panel-v8{padding:18px!important;}
.upload-layout-v8{display:block!important;}
.upload-workspace-v8{display:grid!important;gap:14px!important;}
.upload-section-v8{width:100%!important;}
.upload-section-v8 #fileInput{width:100%!important;background:var(--card2)!important;border:1px solid var(--border)!important;border-radius:14px!important;padding:10px!important;}
.upload-selection-summary{display:block;}
.selected-files-details{display:block!important;}
.selected-files-details summary{user-select:none;}
.upload-file-pills.compact-file-pills-v8{display:grid!important;gap:8px!important;}
.upload-file-pill{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;align-items:center!important;}
.upload-file-pill span{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;min-width:0!important;}
.upload-queue-grid-v8{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;}
.upload-queue-tile{min-height:74px!important;}
.upload-queue-tile.is-done{border-color:rgba(17,182,122,.35)!important;}
#app.upload-result-active{max-width:min(980px,calc(100vw - 28px))!important;}
#app.upload-result-active .upload-workspace-v8{display:block!important;}
#app.upload-result-active .file-section-v8,
#app.upload-result-active .security-section-v8,
#app.upload-result-active .options-section-v8,
#app.upload-result-active .action-section-v8>.cta-row,
#app.upload-result-active .action-section-v8>#status,
#app.upload-result-active .action-section-v8>.upload-progress-head,
#app.upload-result-active .action-section-v8>.progress-wrap,
#app.upload-result-active .action-section-v8>#uploadStats,
#app.upload-result-active .action-section-v8>#uploadQueue,
#app.upload-result-active .action-section-v8>#uploadDiagnostics{display:none!important;}
#app.upload-result-active .action-section-v8{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;}
#app.upload-result-active #result{display:block!important;width:100%!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;white-space:normal!important;word-break:normal!important;}
html[data-drive-theme="dark"] .upload-section-v8 #fileInput{background:rgba(9,22,38,.74)!important;border-color:rgba(191,214,241,.18)!important;color:#e7f2ff!important;}
html[data-drive-theme="dark"] .upload-result-pro,html[data-drive-theme="dark"] .upload-result-hero,html[data-drive-theme="dark"] .result-share-card,html[data-drive-theme="dark"] .result-next-steps{background:linear-gradient(180deg,rgba(23,38,61,.98),rgba(15,28,47,.98))!important;border-color:rgba(191,214,241,.18)!important;color:#f5faff!important;}
html[data-drive-theme="dark"] .upload-result-hero p,html[data-drive-theme="dark"] .result-share-card p,html[data-drive-theme="dark"] .result-next-steps ul{color:#b7c8df!important;}
html[data-drive-theme="dark"] .link-ready-url,html[data-drive-theme="dark"] .result-qr{background:rgba(9,22,38,.74)!important;border-color:rgba(191,214,241,.18)!important;}
html[data-drive-theme="dark"] .result-safety-strip span{background:rgba(9,22,38,.74)!important;border-color:rgba(191,214,241,.18)!important;color:#74ddff!important;}
@media(max-width:900px){.upload-queue-grid-v8{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(max-width:560px){.upload-queue-grid-v8{grid-template-columns:1fr!important;}#app.card{width:min(100% - 18px,980px)!important}.upload-panel-v8{padding:12px!important;}}
