
/* Cloud drive owns a consistent light surface; never inherit host dark form colors. */
.cloud-drive-root{--cd-text:#25354b;--cd-muted:#52657c;--cd-border:#d9e2ef;--cd-blue:#245eb8;color:var(--cd-text)!important;background:#fff!important;color-scheme:light;font-size:13px;line-height:1.5}
.cloud-drive-root :is(button,input,select,textarea){font-family:inherit!important;font-size:12px!important;line-height:1.5!important;color:var(--cd-text)!important;text-shadow:none!important}
.cloud-drive-root :is(input,select,textarea){background:#fff!important;border-color:var(--cd-border)!important;box-shadow:none!important;min-height:30px}
.cloud-drive-root input::placeholder{color:#63748a!important;opacity:1!important}
.cloud-drive-root :is(button,button span){color:inherit}
.cloud-drive-root button{opacity:1;background:transparent!important;box-shadow:none!important;text-transform:none!important}
.cloud-drive-root button:disabled{opacity:1!important;color:#65758b!important;background:transparent!important;cursor:not-allowed}
.cloud-drive-root button:disabled svg{opacity:.5}
.cloud-drive-root button:hover:not(:disabled){background:#e8effa!important}
.cloud-drive-root .side-item.active{background:#dce9fc!important;color:#204f99!important}
.cloud-drive-root :is(.directory-tree button,.account-card small,.side-heading,.sidebar-bottom strong,.sidebar-bottom small,.detail-subtitle,.details dt,.folder-heading p,.statusbar,.file-kind){color:var(--cd-muted)!important}
.cloud-drive-root .sidebar{background:#f2f5fb!important;border-right:1px solid var(--cd-border);overflow:hidden;padding-top:18px}
.cloud-drive-root .directory-tree{overflow:auto;min-height:0;flex:1}.cloud-drive-root .directory-tree button{flex-shrink:0;min-height:32px;font-size:12px!important}.cloud-drive-root .directory-tree .tree-child span{display:block;min-width:0;opacity:1!important;color:var(--cd-muted)!important}
.cloud-drive-root .account-card strong{color:var(--cd-text)!important}.cloud-drive-root .account-avatar{color:#fff!important}
.cloud-drive-root .navigation{gap:8px;padding:8px 14px;min-height:54px;height:auto}.cloud-drive-root .search{width:220px;max-width:38%;background:#fff!important}.cloud-drive-root .search input{font-size:12px!important;min-height:26px;width:100%;padding:0!important;border:0!important}.cloud-drive-root .address button{color:#304a6b!important}
.cloud-drive-root .commandbar{height:auto;min-height:48px;padding:7px 14px;flex-wrap:wrap;gap:8px}.cloud-drive-root .commandbar>div{display:flex;align-items:center;flex-wrap:wrap;gap:4px}.cloud-drive-root .commandbar button{min-height:30px;min-width:30px}.cloud-drive-root .commandbar select{max-width:132px;padding:3px 7px!important;border:1px solid var(--cd-border)!important;border-radius:5px}
.cloud-drive-root .file-area{padding:18px;min-width:0}.cloud-drive-root .files.grid{grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:12px}.cloud-drive-root .file-item{min-width:0}.cloud-drive-root .file-name{color:var(--cd-text)!important;font-size:12px!important;line-height:1.5;overflow-wrap:anywhere}.cloud-drive-root .file-item.selected{background:#e7f0ff!important;border-color:#8cacdf!important}
.cloud-drive-root .details{background:#fff!important;color:var(--cd-text)!important;border-color:var(--cd-border)}.cloud-drive-root .details h2{overflow-wrap:anywhere}.cloud-drive-root .details dd{color:#334a67!important;overflow-wrap:anywhere}.cloud-drive-root .statusbar{min-height:30px;height:auto;flex-wrap:wrap;gap:6px;font-size:11px}
.cloud-drive-root .notice{color:#225e48!important;background:#eaf6ef!important}.cloud-drive-root .notice.error{color:#8f2839!important;background:#fff0f2!important}.cloud-drive-root .modal{color:var(--cd-text)!important;background:#fff!important;max-height:calc(100% - 24px);overflow:auto}.cloud-drive-root .modal p{color:var(--cd-muted)!important}.cloud-drive-root .modal input{width:100%;padding:8px!important;border:1px solid var(--cd-border)!important}
.cloud-drive-root button.primary{color:#fff!important;background:#245eb8!important}.cloud-drive-root button.danger-primary{color:#fff!important;background:#a82d40!important}.cloud-drive-root .context-menu{background:#fff!important;color:var(--cd-text)!important;border:1px solid var(--cd-border)}.cloud-drive-root .context-menu button{width:100%;justify-content:flex-start}.cloud-drive-root .text-preview{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--cd-text)!important;background:#f4f7fb!important}
@container(max-width:800px){.cloud-drive-root .details{display:none!important}.cloud-drive-root .sidebar{width:168px}.cloud-drive-root .navigation{flex-wrap:wrap}.cloud-drive-root .search{width:100%;max-width:none;flex-basis:100%}.cloud-drive-root .address{flex:1}.cloud-drive-root .commandbar>div{max-width:100%}}
@container(max-width:520px){.cloud-drive-root .sidebar{display:none!important}.cloud-drive-root .file-area{padding:12px}.cloud-drive-root .files.grid{grid-template-columns:repeat(auto-fill,minmax(98px,1fr));gap:8px}.cloud-drive-root .file-main{width:100%}.cloud-drive-root .commandbar{padding:6px 10px}.cloud-drive-root .navigation{padding:8px 10px}.cloud-drive-root .file-kind,.cloud-drive-root .file-size{font-size:11px!important}.cloud-drive-root .files.list .file-item{grid-template-columns:minmax(0,1fr) 64px}.cloud-drive-root .files.list .file-kind{display:none}.cloud-drive-root .statusbar{padding:6px 10px}.cloud-drive-root .modal{width:calc(100% - 24px)}}

.cloud-drive-root .commandbar button{white-space:nowrap}
@media(max-width:1200px){[data-window-app="cloud-drive"] .workspace-window{position:fixed!important;left:8px!important;top:8px!important;width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;min-width:0!important;height:calc(100dvh - 64px)!important;max-height:calc(100dvh - 64px)!important;transform:none!important}[data-window-app="cloud-drive"] .workspace-custom-content{min-width:0!important}}
