#drive-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); background: var(--panel-bg); color: var(--text-primary); border-color: var(--panel-border); }
#drive-dialog .dialog-header { position: sticky; top: 0; background: var(--panel-bg); z-index: 1; }
.drive-body { color: var(--text-secondary); }
.drive-status { min-height: 2.8em; color: var(--text-primary); overflow-wrap: anywhere; }
.drive-status.drive-error { color: #ba5147; }
[data-theme="dark"] .drive-status.drive-error { color: #ff9a8c; }
.drive-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.drive-actions button, .drive-preview button { height: auto; min-height: 36px; white-space: normal; text-align: left; }
.drive-projects { display: grid; gap: 8px; }
.drive-file { display: grid; gap: 3px; width: 100%; padding: 11px 12px; border: 1px solid var(--panel-border); border-radius: 8px; background: var(--surface-hover); color: var(--text-primary); text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.drive-file:hover { background: var(--surface-active); }
.drive-file strong { font-size: 12px; font-weight: 550; }
.drive-file span { font-size: 11px; color: var(--text-secondary); }
.drive-more { margin-top: 12px; }
.drive-preview { margin-top: 16px; padding: 12px; border: 1px solid var(--accent-primary); border-radius: 8px; }
.drive-note { margin-top: 18px; font-size: 11px; }
#drive-dialog button:disabled { opacity: .5; cursor: wait; }
#drive-dialog [hidden] { display: none !important; }
#drive-dialog button:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 3px; }
#project-recovery[hidden] { display: none !important; }
