:root{--ink:#17243a;--muted:#7c8799;--line:#e8edf3;--surface:#fff;--canvas:#f6f8fb;--blue:#4169e1;--blue2:#3155c8;--navy:#142849;--green:#169b72;--shadow:0 12px 35px rgba(23,43,77,.07)}*{box-sizing:border-box}body{margin:0;background:var(--canvas);color:var(--ink);font:14px 'DM Sans',sans-serif}button,input,select{font:inherit}a{color:inherit;text-decoration:none}button{cursor:pointer}.brand{display:flex;align-items:center;gap:10px;font:800 23px Manrope,sans-serif;letter-spacing:-1.1px;color:var(--ink)}.brand-mark{display:grid;place-items:center;width:36px;height:36px;background:#eaf0ff;color:var(--blue);border-radius:12px}.brand-mark svg{width:21px;height:21px;stroke-width:2.5}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.6px;color:var(--blue)}.muted{color:var(--muted)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:0;border-radius:10px;padding:11px 16px;font-weight:700;font-size:13px;transition:.18s}.btn svg{width:16px;height:16px}.btn.primary{background:var(--blue);color:#fff;box-shadow:0 5px 12px #4169e126}.btn.primary:hover{background:var(--blue2);transform:translateY(-1px)}.btn.outline{background:#fff;border:1px solid var(--line);color:#34445e}.btn.full{width:100%;margin-top:8px;padding:13px}.alert{padding:12px 14px;border-radius:10px;margin:14px 0;font-size:13px}.alert.success{background:#e9f8f1;color:#16734f}.alert.error{background:#fff0ef;color:#b83d37}
/* Login */.auth-wrap{min-height:100vh;display:grid;grid-template-columns:1.02fr .98fr;background:#fff}.auth-art{position:relative;overflow:hidden;padding:48px 7%;background:radial-gradient(circle at 80% 18%,#34588b 0,transparent 31%),linear-gradient(145deg,#142947,#101d34 72%);color:white;display:flex;flex-direction:column}.auth-art:after{content:'';position:absolute;width:540px;height:540px;border:1px solid #ffffff17;border-radius:50%;right:-180px;bottom:-260px;box-shadow:0 0 0 55px #ffffff08,0 0 0 110px #ffffff05}.brand.light{color:white}.brand.light .brand-mark{background:#ffffff1a;color:#c7d6ff}.art-copy{margin:auto 0;position:relative;z-index:1}.art-copy .eyebrow{color:#a9c1ff}.art-copy h1{font:800 clamp(38px,4.6vw,64px)/1.12 Manrope,sans-serif;letter-spacing:-2.8px;margin:22px 0}.art-copy h1 em{font-style:normal;color:#9fb8ff}.art-copy p{font-size:16px;color:#c1ccdc;max-width:400px;line-height:1.8}.art-foot{font-size:12px;color:#8e9eb5}.auth-panel{display:grid;place-items:center;padding:40px}.login-card{width:min(390px,100%)}.login-card h2{font:800 30px Manrope,sans-serif;letter-spacing:-1px;margin:10px 0 5px}.login-card>p{margin:0 0 32px}.login-card label,.modal-body label{display:block;font-weight:700;font-size:12px;margin:18px 0 8px}.field{height:48px;border:1px solid var(--line);border-radius:10px;display:flex;align-items:center;padding:0 13px;gap:10px;margin-bottom:4px}.field:focus-within{border-color:#8ba5f8;box-shadow:0 0 0 3px #4169e114}.field svg{width:17px;color:#9aa5b6}.field input{border:0;outline:0;flex:1;min-width:0}.secure-note{display:flex;align-items:center;justify-content:center;gap:7px;color:#9aa5b6;font-size:11px;margin-top:24px}.secure-note svg{width:15px}.mobile-brand{display:none}
/* App shell */.app-shell{min-height:100vh;display:flex}.sidebar{width:252px;background:#fff;border-right:1px solid var(--line);padding:27px 17px 18px;display:flex;flex-direction:column;flex-shrink:0}.sidebar>.brand{padding:0 12px 30px}.new-upload{height:46px;border-radius:11px;background:#edf2ff;color:#3159d5;display:flex;align-items:center;gap:11px;padding:0 16px;font-weight:700;margin:0 3px 25px;box-shadow:0 3px 10px #4169e10d}.new-upload svg{width:18px}.side-nav{display:flex;flex-direction:column;gap:5px}.side-nav>a{height:43px;display:flex;align-items:center;gap:13px;padding:0 14px;border-radius:9px;color:#738096;font-weight:600;font-size:13px}.side-nav>a svg{width:18px;height:18px;stroke-width:1.8}.side-nav>a:hover{background:#f6f8fc;color:var(--ink)}.side-nav>a.active{background:#edf2ff;color:#3159d5}.nav-label{font-size:10px;letter-spacing:1.2px;font-weight:700;color:#a1aaba;padding:22px 14px 7px}.storage{margin-top:auto;padding:17px 13px 22px}.storage-title{display:flex;align-items:center;gap:8px;font-weight:700;font-size:12px;margin-bottom:14px}.storage-title svg{width:16px;color:#7e8ba0}.progress{height:6px;border-radius:8px;background:#edf0f5;overflow:hidden;margin-bottom:9px}.progress span{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,#5a7bec,#83a1ff)}.storage small{font-size:10px;color:#929daf}.profile{border-top:1px solid var(--line);padding:17px 5px 0;display:flex;align-items:center;gap:10px}.avatar{width:35px;height:35px;border-radius:50%;background:#e8edff;color:#4265d4;display:grid;place-items:center;font-weight:800;font-size:13px;flex-shrink:0}.avatar.small{width:32px;height:32px}.avatar.tiny{width:28px;height:28px;font-size:11px}.profile-info{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}.profile-info b{font-size:12px}.profile-info small{font-size:10px;color:#929daf;overflow:hidden;text-overflow:ellipsis}.profile form{margin:0}.icon-btn{border:0;background:transparent;color:#8b97a9;padding:6px;border-radius:8px;display:grid;place-items:center}.icon-btn:hover{background:#f0f3f8;color:var(--ink)}.icon-btn svg{width:17px;height:17px}.main-area{min-width:0;flex:1}.topbar{height:78px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 4.1%;gap:25px}.search{height:42px;width:min(480px,55%);background:#f5f7fa;border:1px solid transparent;border-radius:10px;display:flex;align-items:center;padding:0 13px;gap:10px}.search:focus-within{border-color:#b8c7fa;background:#fff}.search svg{width:17px;color:#9aa5b6}.search input{border:0;outline:0;background:transparent;flex:1;min-width:0;font-size:12px}.search kbd{font-size:10px;color:#a1aaba;border:1px solid #e0e5ec;border-radius:4px;padding:2px 5px}.top-actions{display:flex;align-items:center;gap:13px}.role-chip{font-size:10px;font-weight:700;background:#f1f4fa;color:#6d7a91;border-radius:20px;padding:6px 10px}.content{padding:36px 4.1% 55px;max-width:1600px;margin:auto}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:30px}.crumb{display:flex;align-items:center;gap:7px;font-size:11px;color:#9aa5b6;margin-bottom:10px}.crumb svg{width:13px}.crumb a:hover{color:var(--blue)}.page-heading h1{font:800 27px Manrope,sans-serif;letter-spacing:-.8px;margin:0 0 5px}.page-heading p{font-size:12px;margin:0}.heading-actions{display:flex;gap:9px}.toolbar{display:flex;align-items:center;justify-content:space-between;color:#8a96a8;font-size:11px;margin-bottom:15px}.view-toggle{display:flex;gap:4px}.view-toggle button{border:0;background:transparent;color:#9ba6b6;padding:7px;border-radius:7px}.view-toggle button.selected{background:#eaf0ff;color:#4169e1}.view-toggle svg{width:16px;height:16px}.file-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px}.file-card{position:relative;min-width:0;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px;transition:.2s}.file-card:hover{border-color:#d3ddf7;box-shadow:var(--shadow);transform:translateY(-2px)}.file-preview{height:112px;border-radius:8px;display:flex;align-items:center;justify-content:center;position:relative;margin-bottom:11px}.folder-preview{background:#f1f5ff;color:#6484e6}.folder-preview svg{width:43px;height:43px;stroke-width:1.3}.file-preview-icon{background:#f7f8fb;color:#8392aa;flex-direction:column;gap:5px}.file-preview-icon svg{width:35px;height:35px;stroke-width:1.4}.file-preview-icon span{font-size:9px;font-weight:800;letter-spacing:1px;color:#98a3b4}.file-meta{display:flex;align-items:center;gap:5px}.file-name{min-width:0;flex:1;display:flex;flex-direction:column;gap:5px}.file-name b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-name small{font-size:10px;color:#9aa5b6}.item-actions{position:relative}.empty-state{min-height:330px;border:1px dashed #d9e0ea;border-radius:14px;background:#ffffff80;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:25px}.empty-icon{width:65px;height:65px;border-radius:20px;background:#edf2ff;color:#6380e0;display:grid;place-items:center;margin-bottom:14px}.empty-icon svg{width:29px;height:29px}.empty-state h3{font:700 16px Manrope;margin:0 0 7px}.empty-state p{font-size:12px;color:#929daf;margin:0 0 18px}.menu-dialog{position:absolute;right:0;top:30px;margin:0;border:1px solid var(--line);border-radius:10px;padding:7px;min-width:190px;box-shadow:var(--shadow);z-index:5;background:white}.menu-dialog a,.menu-dialog button{width:100%;display:flex;align-items:center;gap:9px;padding:9px;border:0;background:#fff;text-align:left;border-radius:6px;font-size:11px;color:#526078}.menu-dialog a:hover,.menu-dialog button:hover{background:#f5f7fb}.menu-dialog svg{width:15px;height:15px}.menu-dialog .danger{color:#d34e4e}.dialog-close{border:0;background:transparent;color:#8793a5;font-size:22px;line-height:1;padding:2px 6px}.modal{width:min(440px,calc(100% - 30px));border:0;border-radius:16px;padding:0;box-shadow:0 25px 80px #0b1b3533}.modal::backdrop{background:#14233c77;backdrop-filter:blur(3px)}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;padding:22px 24px 8px}.modal-head h3{font:700 19px Manrope;margin:7px 0}.modal-body{padding:10px 24px 24px}.modal-body input,.modal-body select{width:100%;height:43px;border:1px solid var(--line);border-radius:9px;padding:0 12px;outline:0;background:#fff}.modal-body input:focus,.modal-body select:focus{border-color:#8ba5f8}.modal-body input[type=file]{padding:10px;height:auto}.modal-body .muted{font-size:11px;display:block;margin-top:7px}.modal-body .btn{margin-top:20px}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:8px 0 22px}.stat-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:12px;padding:19px}.stat-card span{font-size:11px;color:#8793a5}.stat-card strong{display:block;font:800 28px Manrope;margin-top:8px}.stat-card>svg{position:absolute;right:18px;top:20px;width:21px;color:#8098e9}.section-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:20px;margin-bottom:17px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}.section-title h3{font:700 15px Manrope;margin:0 0 5px}.section-title p{font-size:11px;color:#929daf;margin:0}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{font-size:10px;color:#9aa5b6;font-weight:700;padding:11px;border-bottom:1px solid var(--line)}td{font-size:11px;color:#5c6980;padding:12px 11px;border-bottom:1px solid #f0f2f6}.user-cell{display:flex;align-items:center;gap:9px;color:#34435a}.status-dot{color:#16865d}.status-dot:before{content:'';display:inline-block;width:6px;height:6px;background:#22b47c;border-radius:50%;margin:0 7px 1px 0}.activity-list{display:flex;flex-direction:column}.activity-row{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid #f1f3f7}.activity-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:#f1f4ff;color:#6b83da}.activity-icon svg{width:15px}.activity-row>div{display:flex;flex-direction:column;gap:4px;flex:1}.activity-row b{font-size:11px}.activity-row small,.activity-row time{font-size:10px;color:#9aa5b6}.activity-row time{white-space:nowrap}
@media(max-width:850px){.sidebar{width:218px}.content{padding:27px 3%}.topbar{padding:0 3%}.file-grid{grid-template-columns:repeat(auto-fill,minmax(155px,1fr))}}@media(max-width:650px){.auth-wrap{grid-template-columns:1fr}.auth-art{display:none}.auth-panel{min-height:100vh;padding:25px}.mobile-brand{display:flex;margin-bottom:45px}.topbar{height:64px}.topbar>.mobile-brand{font-size:19px;margin:0}.topbar .brand-mark{width:31px;height:31px}.search{width:auto;flex:1}.search kbd,.role-chip{display:none}.app-shell{display:block}.sidebar{width:100%;height:auto;padding:10px 13px;border-right:0;border-bottom:1px solid var(--line);display:block}.sidebar>.brand,.storage,.profile,.nav-label,.side-nav>a[href*="admin"]{display:none}.new-upload{display:none}.side-nav{flex-direction:row;overflow-x:auto;gap:4px}.side-nav>a{height:38px;padding:0 10px;white-space:nowrap;font-size:11px}.side-nav>a svg{width:15px}.content{padding:24px 16px}.page-heading{align-items:flex-start;flex-direction:column;margin-bottom:22px}.heading-actions{width:100%}.heading-actions .btn{flex:1;padding:10px 8px;font-size:11px}.page-heading h1{font-size:24px}.file-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.file-card{padding:9px}.file-preview{height:90px}.stats-grid{grid-template-columns:1fr 1fr}.stat-card:last-child{grid-column:span 2}.section-card{padding:14px}.section-title{align-items:flex-start;flex-direction:column}.activity-row time{display:none}}

/* Drivqu public sharing, preview and per-file upload progress */
.upload-queue{display:grid;gap:12px;margin:16px 0;max-height:260px;overflow:auto}.upload-row{padding:12px;border:1px solid var(--line,#e5e7eb);border-radius:12px;background:var(--surface,#fff)}.upload-row-title{display:flex;justify-content:space-between;gap:12px;font-size:13px;margin-bottom:8px}.upload-row-title b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload-row small{display:block;margin-top:6px;color:var(--muted,#64748b)}.progress-track{height:7px;border-radius:99px;background:#e9edf5;overflow:hidden}.progress-track i{display:block;width:0;height:100%;border-radius:99px;background:#4f70e8;transition:width .12s linear}.upload-success{color:#16834a!important}.upload-error{color:#c0392b!important}.upload-row.failed .progress-track i{background:#dc5555}.revoke-form{margin-top:10px}.preview-modal{width:min(1100px,94vw);height:min(88vh,900px);max-width:none;max-height:none;padding:0;border:0;border-radius:16px;overflow:hidden;background:#101827;color:#fff}.preview-modal::backdrop{background:rgba(8,15,30,.78);backdrop-filter:blur(3px)}.preview-modal-head{height:58px;padding:10px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#172235}.preview-modal-head>div{display:flex;align-items:center;gap:8px}.preview-modal-head .btn{color:#fff;border-color:#536078}.preview-image-wrap{height:calc(100% - 58px);display:flex;align-items:center;justify-content:center;padding:20px;overflow:auto}.preview-image-wrap img{max-width:100%;max-height:100%;object-fit:contain}.preview-frame{display:block;width:100%;height:calc(100% - 58px);border:0;background:#fff}.public-page{min-height:100vh;background:#f3f6fb;display:flex;justify-content:center;align-items:flex-start;padding:48px 18px}.public-card{width:min(920px,100%);padding:28px;background:#fff;border:1px solid #e5eaf2;border-radius:20px;box-shadow:0 18px 55px rgba(20,39,74,.08)}.public-head{margin:34px 0 20px}.public-head h1{font-size:clamp(22px,4vw,32px);margin:8px 0}.public-preview{height:min(68vh,720px);display:flex;align-items:center;justify-content:center;background:#f2f5fa;border-radius:14px;overflow:hidden;margin-bottom:20px}.public-preview img{max-width:100%;max-height:100%;object-fit:contain}.public-preview iframe{width:100%;height:100%;border:0;background:#fff}.public-file-placeholder{padding:70px 20px;text-align:center;background:#f2f5fa;border-radius:14px;margin-bottom:20px;color:#64748b}.public-restricted{margin-top:16px}.public-card>.btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}

/* Drivqu V3 features */
.content.drag-active{outline:2px dashed #5878e8;outline-offset:-12px;background:#f4f7ff}.status-off{color:#c04c4c}.status-off:before{content:'';display:inline-block;width:6px;height:6px;background:#d45b5b;border-radius:50%;margin:0 7px 1px 0}.btn.small{padding:7px 10px;font-size:10px}.share-access-list{padding:0 24px 22px}.share-access-list>b{display:block;font-size:11px;margin:4px 0 10px;color:#53627a}.share-access-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 0;border-top:1px solid #edf0f5;font-size:11px}.share-access-row>span{display:flex;flex-direction:column;gap:3px;font-weight:700}.share-access-row small{font-size:10px;color:#929daf;font-weight:400}.share-access-row form{margin:0}.check-line{display:flex!important;align-items:center;gap:9px;margin-top:14px;font-size:12px}.check-line input{width:16px!important;height:16px!important}

/* Drivqu V4: thumbnails, list view, status markers and recycle bin */
.file-thumb-image{display:block;width:100%;height:100%;object-fit:cover;border-radius:8px;background:#f3f5f9}
.file-thumb-pdf{display:block;width:100%;height:100%;border:0;border-radius:8px;background:#f5f7fb;pointer-events:none;overflow:hidden}
.file-preview:has(.file-thumb-pdf){overflow:hidden;position:relative;background:#f5f7fb}
.file-preview .thumb-type{position:absolute;left:8px;bottom:7px;padding:3px 6px;border-radius:4px;background:#d84c4c;color:#fff;font-size:8px;font-weight:800;letter-spacing:.7px;box-shadow:0 1px 4px #0002}
.item-badges{display:flex;align-items:center;gap:5px;flex-shrink:0;margin:0 3px}
.item-badge{width:21px;height:21px;border-radius:6px;display:grid;place-items:center}
.item-badge svg{width:13px;height:13px;stroke-width:2.4}
.badge-star{color:#e5a500;background:#fff7d6}
.badge-star svg{fill:#ffcf45}
.badge-share-active{color:#159765;background:#e7f7ef}
.badge-share-inactive{color:#9aa3b2;background:#f0f2f5}
.view-toggle button{cursor:pointer}
.file-grid.view-list{display:flex;flex-direction:column;gap:0;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:visible}
.file-grid.view-list .file-card{display:flex;align-items:center;gap:14px;border:0;border-bottom:1px solid #edf0f5;border-radius:0;padding:10px 14px;box-shadow:none;transform:none;min-height:68px}
.file-grid.view-list .file-card:last-child{border-bottom:0}
.file-grid.view-list .file-card:hover{background:#f8faff;border-color:#edf0f5;box-shadow:none}
.file-grid.view-list .file-preview{width:54px;height:46px;flex:0 0 54px;margin:0;border-radius:7px;overflow:hidden}
.file-grid.view-list .file-preview-icon svg,.file-grid.view-list .folder-preview svg{width:23px;height:23px}
.file-grid.view-list .file-preview-icon span{font-size:7px}
.file-grid.view-list .file-meta{flex:1;min-width:0;gap:10px}
.file-grid.view-list .file-name{flex-direction:row;align-items:center;justify-content:space-between;gap:16px}
.file-grid.view-list .file-name b{font-size:12px}
.file-grid.view-list .file-name small{white-space:nowrap;min-width:145px;text-align:right}
.file-grid.view-list .item-actions{margin-left:8px}
.file-grid.view-list .file-thumb-image{object-fit:cover}
.file-grid.view-list .thumb-type{font-size:6px;left:3px;bottom:2px;padding:2px 3px}
.trash-actions{display:flex;align-items:center;gap:7px;margin-left:auto}
.trash-actions .btn{display:inline-flex;align-items:center;gap:5px}
.trash-actions svg{width:13px;height:13px}
.btn.danger-outline{color:#c43f4b;border:1px solid #f0c9cd;background:#fff}
.btn.danger-outline:hover{background:#fff4f5;border-color:#e7aeb4}
.trash-card .activity-row>div{min-width:0}
.trash-card .activity-row b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:650px){.file-grid.view-list .file-card{padding:9px;gap:9px}.file-grid.view-list .file-preview{width:42px;flex-basis:42px;height:40px}.file-grid.view-list .file-name{display:flex;flex-direction:column;align-items:flex-start;gap:3px}.file-grid.view-list .file-name small{min-width:0;text-align:left}.file-grid.view-list .item-badges{display:none}.trash-actions{gap:4px}.trash-actions .btn{padding:6px 7px;font-size:9px}.trash-actions .btn svg{display:none}}

/* Drivqu V5: refined upload dialog and folder breadcrumb */
.crumb{flex-wrap:wrap;row-gap:5px}.crumb-current{color:#52627b;font-weight:700}.crumb a{color:#8794a9;text-decoration:none}.crumb a:hover{text-decoration:underline;color:var(--blue)}
.upload-modal{width:min(620px,calc(100% - 28px));max-height:min(88vh,820px);border:1px solid #e8edf5;border-radius:22px;padding:0;overflow:auto;background:#fff;box-shadow:0 28px 90px rgba(19,37,68,.24)}
.upload-modal::backdrop{background:rgba(25,39,62,.56);backdrop-filter:blur(5px)}
.upload-modal-head{padding:26px 28px 12px;align-items:flex-start}.upload-modal-head .eyebrow{font-size:10px;letter-spacing:2px}.upload-modal-head h3{font:800 23px Manrope,sans-serif;letter-spacing:-.5px;margin:8px 0 5px;color:#18263d}.upload-modal-head p{margin:0;font-size:12px}.upload-modal-head .dialog-close{width:36px;height:36px;border:1px solid #e8edf5;border-radius:11px;display:grid;place-items:center;color:#728099}.upload-modal-head .dialog-close:hover{background:#f4f6fb;color:#315fe3}.upload-modal-head .dialog-close svg{width:18px;height:18px}
.upload-modal-body{padding:14px 28px 28px}.upload-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:5px 0 15px}.upload-choice{min-height:88px;border:1px solid #e4eaf3;border-radius:14px;padding:15px;display:flex;align-items:center;gap:12px;cursor:pointer;transition:.18s;background:#fff}.upload-choice:hover{border-color:#9db2f8;background:#f8faff;transform:translateY(-1px);box-shadow:0 8px 20px rgba(53,91,181,.08)}.upload-choice>span:nth-child(2){display:flex;flex-direction:column;gap:5px;min-width:0}.upload-choice b{font-size:13px;color:#24334b}.upload-choice small{font-size:10px;line-height:1.4;color:#8a97aa}.upload-choice-icon{width:39px;height:39px;flex:0 0 39px;border-radius:11px;background:#edf2ff;color:#4169e1;display:grid;place-items:center}.upload-choice-icon svg{width:19px;height:19px}.upload-choice-icon.folder-choice{background:#eef8f3;color:#19976a}.choice-arrow{width:15px;height:15px;margin-left:auto;color:#a4afbf;flex:0 0 15px}.visually-hidden-file{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.visually-hidden-file:focus-visible+*{outline:2px solid #4169e1}
.upload-drop-hint{min-height:54px;border:1px dashed #cbd5e4;border-radius:12px;background:#f8faff;display:flex;align-items:center;justify-content:center;gap:9px;padding:12px;text-align:center;color:#78879e;font-size:11px}.upload-drop-hint svg{width:17px;height:17px;color:#5275df}.upload-selection{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 2px 0;color:#34445d}.upload-selection b{font-size:11px}.upload-selection span{font-size:10px;color:#8996a9}.upload-note{display:flex;align-items:flex-start;gap:7px;color:#8794a8;font-size:10px;line-height:1.5;margin:14px 0 2px}.upload-note svg{width:14px;height:14px;flex:0 0 14px}.upload-start{height:48px;border-radius:12px;font-size:13px;margin-top:17px;box-shadow:0 8px 20px rgba(65,105,225,.17)}.upload-start:disabled{opacity:.65;cursor:wait}.upload-start.upload-finished{background:#19865e;box-shadow:0 8px 20px rgba(25,134,94,.14)}.upload-queue{max-height:230px;margin:13px 0 0}.upload-row{padding:10px 12px}.upload-row-title{font-size:11px}.upload-row small{font-size:10px}
@media(max-width:560px){.upload-modal{border-radius:18px}.upload-modal-head{padding:21px 19px 10px}.upload-modal-body{padding:12px 19px 20px}.upload-choice-grid{grid-template-columns:1fr}.upload-choice{min-height:75px}.upload-modal-head h3{font-size:20px}}

/* Drivqu V6: contextual menus, empty search/share states and mobile polish */
.item-actions{position:relative;z-index:4;flex:0 0 auto}
.menu-dialog{position:absolute;right:0;top:calc(100% + 5px);left:auto;bottom:auto;margin:0;z-index:80;min-width:205px;max-width:min(260px,calc(100vw - 28px));max-height:min(70vh,420px);overflow:auto;border:1px solid #e5eaf2;border-radius:12px;padding:7px;background:#fff;box-shadow:0 16px 42px rgba(21,38,68,.18)}
.menu-dialog[hidden]{display:none!important}
.menu-dialog>.dialog-close{display:flex;align-items:center;justify-content:flex-end;width:100%;height:24px;font-size:18px}
.menu-dialog form{margin:0}
.menu-dialog form button{width:100%}
.menu-dialog .danger{color:#c43f4b}
.empty-state{min-height:300px}
.empty-state p{max-width:460px;line-height:1.65}
.crumb{min-width:0;overflow-wrap:anywhere}
@media(max-width:650px){
 .topbar{padding:0 13px;gap:9px;justify-content:flex-start}
 .topbar>.mobile-brand{font-size:17px;gap:6px;flex:0 0 auto}
 .topbar .brand-mark{width:29px;height:29px}
 .search{height:39px;min-width:0;width:auto;flex:1;padding:0 9px;gap:7px}
 .search input{font-size:11px}
 .top-actions{gap:0;flex:0 0 auto}
 .top-actions .avatar{width:29px;height:29px}
 .content{padding:20px 13px 35px;overflow-x:hidden}
 .page-heading{gap:13px}
 .page-heading>div{min-width:0;width:100%}
 .page-heading h1{font-size:22px;overflow-wrap:anywhere}
 .heading-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}
 .heading-actions .btn{min-width:0;white-space:nowrap}
 .toolbar{margin:8px 0 12px}
 .file-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .file-card{padding:8px;min-width:0}
 .file-preview{height:88px;margin-bottom:8px}
 .file-meta{gap:3px;align-items:flex-start}
 .file-name b{font-size:11px}
 .file-name small{font-size:9px;line-height:1.4}
 .item-badges{gap:3px;margin:0}
 .item-badge{width:18px;height:18px}
 .item-badge svg{width:11px;height:11px}
 .item-actions .icon-btn{padding:4px}
 .file-grid.view-list .file-name{min-width:0}
 .file-grid.view-list .file-name b{max-width:100%;white-space:normal;overflow-wrap:anywhere}
 .file-grid.view-list .file-meta{min-width:0}
 .file-grid.view-list .item-badges{display:flex}
 .menu-dialog{position:absolute;right:0;top:calc(100% + 5px);left:auto;bottom:auto;max-width:calc(100vw - 24px);z-index:1000}
 .section-card{max-width:100%;overflow:hidden}
 .table-wrap{max-width:100%;overflow-x:auto}
 .trash-actions{flex-wrap:wrap;justify-content:flex-end}
 .trash-actions .btn{font-size:10px}
 .empty-state{min-height:250px;padding:22px 16px}
 .empty-state h3{font-size:15px;line-height:1.45}
 .empty-state p{font-size:11px}
 .preview-modal{width:calc(100vw - 16px);height:calc(100dvh - 24px);border-radius:12px}
 .preview-modal-head{padding:9px 11px}
 .preview-modal-head>b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
}

/* Drivqu V7 — Cloud workspace redesign */
:root{--ink:#182234;--muted:#7d8797;--line:#e8ebef;--surface:#fff;--canvas:#f5f6f8;--blue:#4169e1;--blue2:#3157cf;--folder:#ffc629;--shadow:0 10px 30px rgba(28,39,58,.055)}
body{background:var(--canvas);color:var(--ink);font-family:'DM Sans',sans-serif}
.app-shell{min-height:100vh;background:var(--canvas)}
.sidebar{width:248px;padding:25px 16px 18px;background:#fff;border-right:1px solid #e9edf2}
.sidebar>.brand{padding:0 10px 28px;font-size:24px;letter-spacing:-1.3px}
.brand-mark{width:37px;height:37px;border-radius:12px;background:#edf2ff;color:#4169e1}
.new-upload{height:48px;margin:0 3px 22px;border-radius:12px;background:#f0f3f8;color:#283347;box-shadow:none}
.new-upload:hover{background:#e8edf6}
.side-nav{gap:4px}
.side-nav>a{height:42px;border-radius:9px;padding:0 13px;color:#778296;font-size:12px;font-weight:600;transition:background .18s,color .18s}
.side-nav>a svg{width:17px;height:17px}
.side-nav>a.active{background:#303236;color:#fff}.side-nav>a.active svg{color:#fff}
.side-nav>a:hover:not(.active){background:#f4f5f7;color:#202b3c}
.nav-label{padding-top:20px}.storage{padding:16px 12px 19px}.storage-title{font-size:11px}
.progress{height:7px;background:#edf0f4}.progress span{background:linear-gradient(90deg,#ffb52c,#f8ca42,#4e79e8)}
.profile{padding-top:14px}.main-area{min-width:0;background:#f7f8fa}
.topbar{height:76px;padding:0 clamp(22px,4vw,58px);background:#fff;border-bottom:1px solid #eaedf1;position:sticky;top:0;z-index:20}
.search{width:min(560px,60%);height:43px;background:#f4f5f7;border-radius:9px;border-color:#f0f1f3}
.search:focus-within{background:#fff;border-color:#c9d5f9;box-shadow:0 0 0 3px #4169e10c}
.search input{font-size:12px}.top-actions{gap:12px}
.theme-toggle{width:36px;height:36px;border:1px solid #eceff3;background:#fff;color:#68758a}.theme-toggle svg{width:16px;height:16px}
.role-chip{background:#f3f5f8;color:#647087}
.content{padding:31px clamp(22px,4vw,58px) 58px;max-width:1680px}
.page-heading{align-items:flex-end;margin-bottom:23px;gap:22px}.crumb{font-size:11px;color:#9aa3b1;margin-bottom:12px}.crumb-current{color:#526078}
.page-heading h1{font-size:clamp(24px,2.1vw,31px);letter-spacing:-1.05px;margin-bottom:7px}.page-heading p{font-size:12px;color:#8791a1}
.heading-actions{gap:9px}.heading-actions .btn{height:42px;border-radius:9px;font-size:12px}
.btn.primary{background:#4169e1;box-shadow:0 5px 13px #4169e11e}.btn.outline{background:#fff;border-color:#e5e9ef;color:#354258}
.toolbar{margin:20px 0 13px;color:#8b95a4}.view-toggle{padding:3px;background:#eef1f5;border-radius:9px}
.view-toggle button{padding:7px 8px}.view-toggle button.selected{background:#fff;color:#4169e1;box-shadow:0 1px 4px #17243a12}
.drive-overview{display:grid;grid-template-columns:minmax(220px,1fr) minmax(420px,1.35fr);gap:20px;align-items:stretch;margin:22px 0 27px}
.overview-copy{padding:19px 22px;border-radius:15px;background:linear-gradient(125deg,#202b3d,#34465f);color:#fff;position:relative;overflow:hidden;min-height:132px}
.overview-copy:after{content:"";position:absolute;width:180px;height:180px;border:1px solid #ffffff20;border-radius:50%;right:-45px;top:-65px;box-shadow:0 0 0 25px #ffffff08,0 0 0 50px #ffffff05}
.overview-copy .eyebrow{color:#a9c0ff;font-size:9px;letter-spacing:1.8px}
.overview-copy h2{position:relative;z-index:1;font:800 clamp(18px,2vw,24px)/1.2 Manrope,sans-serif;letter-spacing:-.7px;margin:11px 0 6px}
.overview-copy p{position:relative;z-index:1;color:#c2ccda;font-size:11px;margin:0;line-height:1.6;max-width:350px}
.overview-metrics{display:grid;grid-template-columns:.8fr .8fr 1.4fr;gap:10px}
.overview-metric{background:#fff;border:1px solid #e9edf2;border-radius:14px;padding:15px;display:flex;flex-direction:column;align-items:flex-start;min-width:0;box-shadow:0 3px 10px #24334a05}
.metric-icon{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;margin-bottom:12px}.metric-icon svg{width:15px;height:15px}
.metric-blue{background:#edf2ff;color:#4269df}.metric-orange{background:#fff4df;color:#d18a12}.metric-green{background:#e9f7f0;color:#1b986a}
.overview-metric small{font-size:10px;color:#8c96a5}.overview-metric b{font:800 19px Manrope,sans-serif;letter-spacing:-.5px;margin-top:4px;color:#1d293b}
.storage-metric b{font-size:16px}.metric-track{height:5px;background:#edf0f4;border-radius:10px;overflow:hidden;width:100%;margin-top:10px}
.metric-track i{display:block;height:100%;border-radius:10px;background:linear-gradient(90deg,#ffbd36,#4169e1)}
.overview-metric em{font-style:normal;color:#9aa3b1;font-size:9px;margin-top:5px}
.file-grid{grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:13px}
.file-card{padding:10px;border:1px solid #e8ebef;border-radius:13px;background:#fff;box-shadow:0 2px 7px #24334a04;transition:transform .2s,border-color .2s,box-shadow .2s}
.file-card:hover{transform:translateY(-3px);border-color:#d5def1;box-shadow:0 12px 28px rgba(29,44,69,.09)}
.file-preview{height:132px;margin-bottom:10px;border-radius:9px;overflow:hidden}
.folder-preview{background:linear-gradient(145deg,#fff8e5,#fff1c5);color:#bd8613}
.folder-preview:before{content:"";position:absolute;width:75px;height:54px;left:50%;top:50%;transform:translate(-50%,-36%);background:linear-gradient(180deg,#ffd34a,#ffbd1f);border-radius:7px 9px 10px 10px;box-shadow:0 8px 13px #d99d2d28}
.folder-preview:after{content:"";position:absolute;width:33px;height:12px;left:calc(50% - 37px);top:calc(50% - 34px);background:#ffd34a;border-radius:6px 6px 0 0}
.folder-preview svg{position:relative;z-index:1;width:25px;height:25px;stroke:#a96d00;stroke-width:1.8;opacity:.8;transform:translateY(8px)}
.file-preview-icon{background:#f5f7fa;color:#8795aa}.file-preview-icon svg{width:38px;height:38px}.file-preview-icon span{font-size:9px;letter-spacing:1.2px}
.file-thumb-image{border-radius:8px}.file-meta{padding:2px 2px 3px;min-height:34px}
.file-name b{font-size:12px;color:#202c3e}.file-name small{font-size:10px;color:#929bab}
.item-badges{gap:4px}.item-badge{border-radius:7px}.item-actions .icon-btn{width:28px;height:28px}
.empty-state{background:#fff;border-color:#e4e9f0;border-radius:15px}.section-card{border-radius:14px;box-shadow:0 3px 12px #24334a05}
.activity-row{padding:13px 0}.menu-dialog{box-shadow:0 16px 45px rgba(22,35,55,.16);border-radius:11px}
.file-grid.view-list{border-radius:13px;border-color:#e7ebf0;box-shadow:0 3px 12px #24334a05}
.file-grid.view-list .file-card{padding:9px 14px;min-height:66px}.file-grid.view-list .file-card:hover{background:#f8f9fb}
.file-grid.view-list .file-preview{height:44px;width:52px;flex-basis:52px}
.file-grid.view-list .folder-preview:before{width:30px;height:22px;transform:translate(-50%,-30%)}
.file-grid.view-list .folder-preview:after{width:14px;height:5px;left:calc(50% - 15px);top:calc(50% - 14px)}
.file-grid.view-list .folder-preview svg{width:17px;height:17px;transform:translateY(3px)}
body.theme-dark{--ink:#edf2fa;--muted:#9aa8bb;--line:#2a3544;--surface:#18212c;--canvas:#111821;--shadow:0 12px 35px rgba(0,0,0,.22);background:#111821;color:#edf2fa}
.theme-dark .app-shell,.theme-dark .main-area{background:#111821}
.theme-dark .sidebar,.theme-dark .topbar,.theme-dark .overview-metric,.theme-dark .file-card,.theme-dark .section-card,.theme-dark .file-grid.view-list,.theme-dark .empty-state{background:#18212c;border-color:#2a3544;color:#edf2fa}
.theme-dark .sidebar{border-right-color:#2a3544}.theme-dark .side-nav>a{color:#aab5c5}
.theme-dark .side-nav>a.active{background:#303b49;color:#fff}.theme-dark .side-nav>a:hover:not(.active){background:#202c39;color:#fff}
.theme-dark .search,.theme-dark .view-toggle{background:#202b38;border-color:#2b3746}.theme-dark .search input{color:#edf2fa}
.theme-dark .search:focus-within{background:#18212c}.theme-dark .role-chip{background:#263241;color:#c1cbd8}
.theme-dark .theme-toggle,.theme-dark .btn.outline{background:#202b38;border-color:#354253;color:#dce5f1}
.theme-dark .page-heading p,.theme-dark .crumb,.theme-dark .file-name small,.theme-dark .overview-metric small,.theme-dark .storage small{color:#95a4b7}
.theme-dark .file-name b,.theme-dark .overview-metric b{color:#edf2fa}.theme-dark .file-preview-icon{background:#202b38;color:#a9b8cd}
.theme-dark .folder-preview{background:linear-gradient(145deg,#40371f,#302a1b)}
.theme-dark .file-grid.view-list .file-card{border-bottom-color:#293646}.theme-dark .file-grid.view-list .file-card:hover{background:#202c39}
.theme-dark .menu-dialog{background:#202b38;border-color:#354253}
.theme-dark .menu-dialog a,.theme-dark .menu-dialog button{background:#202b38;color:#dce5f1}
.theme-dark .menu-dialog a:hover,.theme-dark .menu-dialog button:hover{background:#2b394a}
.theme-dark .profile{border-top-color:#2a3544}.theme-dark .progress,.theme-dark .metric-track{background:#303b49}
.theme-dark .empty-icon{background:#26364d}.theme-dark td{color:#c4cfdd;border-bottom-color:#2a3544}
.theme-dark th{color:#98a8bb;border-bottom-color:#2a3544}
.theme-dark .upload-modal,.theme-dark .modal{background:#18212c;color:#edf2fa;border-color:#2a3544}
.theme-dark .upload-choice{background:#202b38;border-color:#354253}.theme-dark .upload-choice b{color:#edf2fa}
.theme-dark .upload-drop-hint{background:#202b38;border-color:#42516a}
.theme-dark .modal-body input,.theme-dark .modal-body select{background:#202b38;border-color:#354253;color:#edf2fa}
.theme-dark .dialog-close{color:#aab5c5}
@media(max-width:1050px){.sidebar{width:220px}.content{padding-left:26px;padding-right:26px}.drive-overview{grid-template-columns:1fr}.overview-metrics{grid-template-columns:1fr 1fr 1.5fr}}
@media(max-width:650px){
 .topbar{height:62px;padding:0 13px;gap:9px}.topbar>.mobile-brand{font-size:17px}.top-actions{gap:5px}.theme-toggle{width:31px;height:31px;padding:6px}.role-chip{display:none}
 .content{padding:20px 13px 38px}.drive-overview{display:block;margin:15px 0 20px}.overview-copy{min-height:118px;padding:17px}
 .overview-metrics{grid-template-columns:1fr 1fr 1.3fr;gap:7px;margin-top:9px}.overview-metric{padding:10px;border-radius:11px}
 .metric-icon{width:26px;height:26px;margin-bottom:8px}.overview-metric small{font-size:9px;line-height:1.3}.overview-metric b{font-size:16px;overflow-wrap:anywhere}
 .storage-metric b{font-size:13px}.overview-metric em{font-size:8px}.page-heading{margin-bottom:15px}.page-heading h1{font-size:22px}
 .heading-actions{display:flex;gap:7px}.heading-actions .btn{height:39px;font-size:10px;padding:8px}
 .file-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.file-card{padding:8px;border-radius:11px}.file-preview{height:100px}
 .folder-preview:before{width:65px;height:46px}.folder-preview:after{width:29px;left:calc(50% - 32px)}
 .file-name b{font-size:10px}.file-name small{font-size:9px}.file-grid.view-list .file-card{padding:8px}
 .file-grid.view-list .file-preview{height:40px;width:42px;flex-basis:42px}.overview-copy h2{font-size:19px}
}
@media(max-width:390px){.overview-metrics{grid-template-columns:1fr 1fr}.storage-metric{grid-column:span 2}.heading-actions .btn{font-size:9px}}


/* Drivqu V8 refinements: complete dark theme, login theme and preview viewer */
.brand-mark img{width:100%;height:100%;object-fit:contain;border-radius:inherit;padding:3px}
.login-brand-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}
.login-brand-row .mobile-brand{display:flex;align-items:center;gap:9px;font-weight:800;color:var(--ink)}
.login-brand-row .theme-toggle{flex:0 0 auto}
.branding-card{margin-bottom:18px}
.branding-form{display:grid;grid-template-columns:minmax(170px,.7fr) minmax(250px,1.3fr);gap:24px;padding:5px 22px 22px}
.branding-current{display:flex;align-items:center;gap:12px;min-width:0}
.branding-current>img,.branding-current>.brand-mark{width:58px;height:58px;object-fit:contain;border-radius:13px;background:#f1f4fa;padding:7px}
.branding-current b,.branding-current small{display:block}
.branding-current small{font-size:11px;color:#8c96a5;margin-top:4px}
.branding-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:end}
.branding-fields label{display:block;font-size:11px;font-weight:700;color:var(--ink)}
.branding-fields label small{display:block;font-weight:400;color:#8c96a5;margin:3px 0}
.branding-fields input{display:block;width:100%;height:42px;margin-top:7px;border:1px solid var(--line);border-radius:9px;padding:8px 10px;background:var(--surface);color:var(--ink);font:inherit}
.branding-fields input[type=file]{font-size:10px;padding:9px}
.branding-fields .btn{grid-column:1/-1;justify-self:start}

/* Preview is a true centered viewer, not a browser-default dialog */
.preview-modal{position:fixed;inset:0;margin:auto;width:min(1180px,calc(100vw - 48px));height:min(900px,calc(100dvh - 48px));max-width:none;max-height:none;min-width:0;min-height:0;border:1px solid #344258;border-radius:17px;padding:0;overflow:hidden;background:#111a27;color:#f5f7fb;box-shadow:0 28px 100px rgba(0,0,0,.42)}
.preview-modal[open]{display:flex;flex-direction:column}
.preview-modal::backdrop{background:rgba(5,12,24,.76);backdrop-filter:blur(7px)}
.preview-modal-head{height:68px;min-height:68px;padding:10px 17px;background:#182538;border-bottom:1px solid #2d3b50;display:flex;align-items:center;justify-content:space-between;gap:15px}
.preview-title{display:flex;align-items:center;gap:11px;min-width:0}
.preview-title>div{display:flex;flex-direction:column;min-width:0;gap:4px}
.preview-title b{font-size:13px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:min(58vw,650px)}
.preview-title small{font-size:10px;color:#9cabc0}
.preview-file-icon{width:37px;height:37px;flex:0 0 37px;display:grid;place-items:center;border-radius:10px;background:#263a57;color:#a9c4ff}
.preview-file-icon svg{width:18px;height:18px}
.preview-modal-head>div:last-child{display:flex;align-items:center;gap:9px;flex:0 0 auto}
.preview-modal-head .btn{height:37px;display:inline-flex;align-items:center;gap:7px;border:1px solid #45556d;border-radius:9px;color:#edf3ff;background:#24344b;font-size:11px}
.preview-modal-head .btn svg{width:14px;height:14px}
.preview-close{width:37px;height:37px;border:1px solid #45556d;border-radius:9px;background:#24344b;color:#edf3ff;display:grid;place-items:center;cursor:pointer}
.preview-close:hover,.preview-modal-head .btn:hover{background:#31445f}
.preview-close svg{width:17px;height:17px}
.preview-image-wrap{flex:1;min-height:0;height:auto;display:flex;align-items:center;justify-content:center;padding:22px;overflow:auto;background:#0d1521}
.preview-image-wrap img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:4px;box-shadow:0 12px 35px rgba(0,0,0,.2)}
.preview-frame{display:block;flex:1;min-height:0;width:100%;height:auto;border:0;background:#fff}
body.preview-open{overflow:hidden}

/* Ensure every text-bearing surface switches with the dark theme */
.theme-dark .content,.theme-dark .page-heading,.theme-dark .toolbar,.theme-dark .section-title,
.theme-dark .section-title h3,.theme-dark .section-title p,.theme-dark .activity-row,
.theme-dark .activity-row b,.theme-dark .activity-row small,.theme-dark .activity-row time,
.theme-dark .stat-card,.theme-dark .stat-card span,.theme-dark .stat-card strong,
.theme-dark .user-cell,.theme-dark .quota-caption,.theme-dark .table-wrap,
.theme-dark .empty-state h3,.theme-dark .empty-state p,.theme-dark .trash-card,
.theme-dark .file-meta,.theme-dark .file-name,.theme-dark .file-name b,
.theme-dark .menu-dialog,.theme-dark .menu-dialog button,.theme-dark .menu-dialog a,
.theme-dark .modal,.theme-dark .modal-head,.theme-dark .modal-body,
.theme-dark .modal-body label,.theme-dark .share-access-list,
.theme-dark .share-access-row,.theme-dark .branding-current,
.theme-dark .branding-fields label{color:#e6edf7}
.theme-dark .section-title p,.theme-dark .activity-row small,.theme-dark .activity-row time,
.theme-dark .stat-card span,.theme-dark .quota-caption,.theme-dark .empty-state p,
.theme-dark .branding-current small,.theme-dark .branding-fields label small,
.theme-dark .modal .muted,.theme-dark .share-access-row small{color:#9aa9bd}
.theme-dark .section-card,.theme-dark .stats-grid .stat-card,.theme-dark .trash-card,
.theme-dark .modal,.theme-dark .menu-dialog{background:#18212c;border-color:#2b394a}
.theme-dark .table-wrap table,.theme-dark table{background:#18212c;color:#e6edf7}
.theme-dark th{background:#202c3a;color:#b8c6d8}
.theme-dark td{background:transparent;color:#dce5f1;border-color:#2b394a}
.theme-dark tr:hover td{background:#202c3a}
.theme-dark .modal-head{border-color:#2b394a}
.theme-dark .modal-body input,.theme-dark .modal-body select,
.theme-dark .branding-fields input{background:#202c3a!important;border-color:#3a4a60!important;color:#edf3fa!important}
.theme-dark .modal-body input::placeholder{color:#8999ae}
.theme-dark .btn.outline,.theme-dark .icon-btn{background:#202c3a;border-color:#3a4a60;color:#dce6f3}
.theme-dark .empty-state{background:#18212c}
.theme-dark .empty-icon{background:#26364d;color:#a9c4ff}
.theme-dark .alert.success{background:#15382e;color:#8ce0bd}
.theme-dark .alert.error{background:#442626;color:#ffb4ae}
.theme-dark .role-chip{background:#26364a;color:#c5d2e3}
.theme-dark .crumb a,.theme-dark .crumb-current{color:#a9bbd2}
.theme-dark .view-toggle button{color:#aab9cb}
.theme-dark .view-toggle button.selected{background:#34445a;color:#fff}
.theme-dark .file-preview-icon{background:#202c3a;color:#aabbd1}
.theme-dark .file-card{background:#18212c}
.theme-dark .file-card:hover{background:#202c3a}
.theme-dark .profile,.theme-dark .storage{border-color:#2b394a}
.theme-dark .progress{background:#303d4e}
.theme-dark .upload-row,.theme-dark .upload-selection{background:#202c3a;border-color:#394a60;color:#e6edf7}

/* Login dark theme */
.theme-dark .auth-wrap{background:#111821}
.theme-dark .auth-panel{background:#111821;color:#edf2fa}
.theme-dark .login-card{color:#edf2fa}
.theme-dark .login-card h2,.theme-dark .login-card label{color:#edf2fa}
.theme-dark .login-card>p,.theme-dark .secure-note{color:#9eacc0}
.theme-dark .login-card .field{background:#1b2735;border-color:#354458;color:#e9f0fa}
.theme-dark .login-card .field input{background:transparent;color:#edf2fa}
.theme-dark .login-card .field input::placeholder{color:#8191a7}
.theme-dark .login-card .field:focus-within{border-color:#6f91f4;box-shadow:0 0 0 3px #4169e122}
.theme-dark .login-brand-row .mobile-brand{color:#edf2fa}
.theme-dark .auth-art{background:radial-gradient(circle at 80% 18%,#273f65 0,transparent 31%),linear-gradient(145deg,#0b1422,#101b2d 72%)}
.theme-dark .auth-art .brand-mark{background:#263a5b;color:#a9c4ff}
.theme-dark .login-card .alert.success{background:#15382e;color:#8ce0bd}
.theme-dark .login-card .alert.error{background:#442626;color:#ffb4ae}
@media(max-width:760px){
 .branding-form{grid-template-columns:1fr;gap:15px;padding:5px 16px 18px}
 .branding-fields{grid-template-columns:1fr}
 .branding-fields .btn{grid-column:auto;width:100%}
 .preview-modal{width:calc(100vw - 14px);height:calc(100dvh - 18px);border-radius:12px}
 .preview-modal-head{height:58px;min-height:58px;padding:8px 10px}
 .preview-title b{max-width:42vw;font-size:11px}
 .preview-title small{font-size:9px}
 .preview-modal-head .btn{font-size:0;width:36px;justify-content:center;padding:0}
 .preview-modal-head .btn svg{width:16px;height:16px}
 .preview-image-wrap{padding:8px}
}


/* Drivqu V9 performance, public viewer and recent pagination */
.file-thumb-image{display:block;width:100%;height:100%;object-fit:cover;background:#f2f4f8}
.file-preview-icon:has(.file-thumb-image){padding:0;overflow:hidden}
.file-preview-icon:has(.file-thumb-image) .file-thumb-image{border-radius:8px}
.file-preview-icon span{font-size:9px;font-weight:800;letter-spacing:1px}
.pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 8px;padding:13px 15px;border:1px solid #e7ebf0;border-radius:12px;background:#fff;color:#8792a3;font-size:11px}
.pagination>div{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.pagination a{display:inline-flex;align-items:center;justify-content:center;min-width:31px;height:31px;padding:0 9px;border:1px solid #e7ebf0;border-radius:8px;text-decoration:none;color:#52627a;background:#fff}
.pagination a.current{background:#4169e1;border-color:#4169e1;color:#fff}
.pagination a:hover:not(.current){background:#f2f5fa}
.public-page{min-height:100vh;width:100%;margin:0;padding:0!important;display:block!important;background:#f4f6fa}
.public-card{width:100%!important;max-width:none!important;min-height:100vh;margin:0;padding:20px clamp(16px,3vw,44px) 18px!important;border:0!important;border-radius:0!important;box-shadow:none!important;display:flex;flex-direction:column;gap:10px}
.public-card>.brand{flex:0 0 auto}
.public-head{margin:8px 0 5px!important;flex:0 0 auto}
.public-head h1{overflow-wrap:anywhere}
.public-preview{flex:1 1 auto;width:100%;height:auto!important;min-height:60vh;max-height:none!important;margin:0 0 10px!important;border-radius:12px;background:#e9edf3}
.public-preview img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.public-preview iframe{display:block;width:100%;height:100%;min-height:60vh;border:0;background:#fff}
.public-card>.btn{align-self:flex-start;flex:0 0 auto}
.public-file-placeholder{width:100%;min-height:45vh;display:grid;place-items:center}
@media(max-width:650px){
 .pagination{align-items:flex-start;flex-direction:column;padding:11px}
 .pagination>div{width:100%}
 .pagination a{min-width:29px;height:29px;padding:0 7px;font-size:10px}
 .public-card{padding:13px 12px 14px!important;gap:8px}
 .public-head{margin:5px 0!important}
 .public-preview{min-height:68vh;border-radius:8px}
 .public-preview iframe{min-height:68vh}
}


/* Drivqu V10 native audio/video preview players */
.preview-media-wrap{width:100%;height:calc(100% - 66px);min-height:260px;display:flex;align-items:center;justify-content:center;padding:16px;background:#101827}
.preview-media-wrap video{display:block;max-width:100%;max-height:100%;width:100%;height:auto;object-fit:contain;background:#000;border-radius:10px}
.preview-audio-wrap{min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:34px;background:var(--surface,#fff);color:var(--text,#182235)}
.preview-audio-wrap .audio-art{width:112px;height:112px;border-radius:28px;display:grid;place-items:center;background:linear-gradient(135deg,#e8efff,#dce7ff);color:#4169e1}
.preview-audio-wrap .audio-art svg{width:48px;height:48px}
.preview-audio-wrap>b{max-width:90%;overflow-wrap:anywhere;text-align:center}
.preview-audio-wrap audio,.public-media-audio audio{width:min(560px,100%);max-width:100%}
.public-preview video{display:block;width:100%;height:100%;max-height:78vh;object-fit:contain;background:#080d16}
.public-media-audio{width:100%;min-height:45vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;padding:28px}
.public-media-audio>svg{width:64px;height:64px;color:#4169e1}
.public-media-audio>b{max-width:90%;overflow-wrap:anywhere;text-align:center}
@media(max-width:650px){
 .preview-media-wrap{min-height:220px;padding:8px}
 .preview-audio-wrap{min-height:260px;padding:20px}
 .public-preview video{max-height:70vh}
 .public-media-audio{min-height:40vh;padding:18px}
}
