.drive-storage-panel{position:fixed;inset:0;z-index:12010;background:rgba(10,12,16,.43);display:flex;align-items:flex-end;justify-content:center;padding:12px;backdrop-filter:blur(5px)}
.drive-storage-panel[hidden],.drive-preview[hidden]{display:none!important}
.drive-storage-card{width:min(760px,100%);max-height:94dvh;overflow:auto;background:#f6f6f8;border-radius:27px;padding:18px;box-shadow:0 20px 80px #0003}
.drive-storage-head{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:12px}.drive-storage-head h2{font-size:23px;letter-spacing:-.04em;margin:0}.drive-storage-head p{font-size:12px;color:#68686e;margin:4px 0 0}.drive-storage-close{border:0;border-radius:50%;width:42px;height:42px;background:#e9e9ed;font-size:24px}
.drive-storage-note{border-radius:17px;background:#fff;padding:13px;color:#606068;font-size:12px;line-height:1.5;margin:9px 0}.drive-storage-note b{color:#222}.drive-storage-note.warning{background:#fff6e5;color:#725114}.drive-storage-note.error{background:#fff0ef;color:#922c23}
.drive-storage-connection{display:flex;justify-content:space-between;gap:12px;align-items:center;background:#fff;border-radius:18px;padding:14px;margin:10px 0}.drive-storage-connection b{display:block;font-size:14px}.drive-storage-connection small{display:block;color:#6b6b73;font-size:11px;margin-top:3px}.drive-storage-pill{border-radius:999px;background:#f2f2f4;padding:7px 10px;font-size:10px;font-weight:850;white-space:nowrap}.drive-storage-pill.ok{background:#e8f6ed;color:#217344}.drive-storage-pill.warning{background:#fff1d5;color:#895e00}.drive-storage-pill.high{background:#fff0e1;color:#a65000}.drive-storage-pill.critical{background:#ffe8e7;color:#ad2820}
.drive-storage-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}.drive-storage-actions button,.drive-storage-upload button{border:0;border-radius:14px;min-height:46px;padding:10px;font-weight:800}.drive-storage-actions .primary-action,.drive-storage-upload button{background:#111;color:#fff}.drive-storage-actions button:disabled{opacity:.45;cursor:not-allowed}
.drive-storage-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.drive-storage-metric{background:#fff;border-radius:16px;padding:12px}.drive-storage-metric small{display:block;color:#707078;font-size:10px}.drive-storage-metric b{display:block;font-size:16px;margin-top:5px;overflow-wrap:anywhere}.drive-storage-bar{height:8px;border-radius:999px;background:#e3e3e8;margin:7px 0 3px;overflow:hidden}.drive-storage-bar span{height:100%;display:block;border-radius:inherit;background:#36a269}.drive-storage-bar.warning span{background:#e9b52e}.drive-storage-bar.high span{background:#ec8a24}.drive-storage-bar.critical span{background:#de3d37}
.drive-storage-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;margin:14px 0 8px}.drive-storage-search input,.drive-storage-upload select,.drive-storage-upload input[type=file]{width:100%;min-width:0;border:1px solid #dedee4;background:#fff;border-radius:13px;padding:12px}.drive-storage-search button{border:0;border-radius:13px;padding:0 16px;background:#e8e8ec;font-weight:800}.drive-storage-upload{background:#fff;border-radius:17px;padding:12px;margin:10px 0}.drive-storage-upload label{display:block;font-size:11px;color:#666;margin:6px 0}.drive-storage-upload button{width:100%;margin-top:9px}.drive-storage-progress{color:#62626a;font-size:11px;margin:7px 2px;min-height:16px}
.drive-patient-stl-details{display:flex;align-items:center;gap:12px;min-width:0}.drive-patient-stl-info{min-width:0;overflow-wrap:anywhere}.drive-patient-stl-preview{position:relative;display:grid;place-items:center;flex:0 0 96px;width:96px;height:96px;overflow:hidden;border:1px solid #e0e3e8;border-radius:12px;background:#eef2f7;color:#617080;font-size:11px;font-weight:800;letter-spacing:.05em}.drive-patient-stl-canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.drive-patient-photo-preview{flex-basis:112px;width:112px;height:112px;border-radius:14px;background:#eef2f7}.drive-patient-photo-preview img{display:block;width:100%;height:100%;object-fit:contain;background:#eef2f7}.drive-patient-photo-preview[data-loading="true"]{color:#718096}.drive-patient-photo-preview[data-thumbnail-error="true"]{font-size:10px;letter-spacing:0;text-align:center;padding:6px;box-sizing:border-box}
.drive-file-drop{box-sizing:border-box;width:100%;min-height:104px;margin:8px 0;border:1.5px dashed #82aef8;border-radius:17px;background:#f4f8ff;color:#1857b8;padding:16px 12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center;cursor:pointer;transition:background .16s,border-color .16s,transform .16s}.drive-file-drop>span{font-size:24px;line-height:1}.drive-file-drop>b{font-size:13px}.drive-file-drop>small{font-size:11px;color:#66758e}.drive-file-drop:hover,.drive-file-drop.is-dragging{background:#e6f0ff;border-color:#1769e8;border-style:solid}.drive-file-drop.is-dragging{transform:scale(1.01)}.drive-file-drop:focus-visible{outline:3px solid #80b1ff;outline-offset:2px}.drive-file-drop:disabled{opacity:.5;cursor:not-allowed;transform:none}.drive-file-drop-lab{margin:10px 0}
.drive-storage-restore{background:#fff;border-radius:17px;padding:14px;margin:12px 0}.drive-storage-restore h3{font-size:16px;margin:0 0 12px}.drive-storage-restore label{display:block;font-size:14px;color:#555;margin:10px 0 6px}.drive-storage-restore input[type=file],.drive-storage-restore select{box-sizing:border-box;width:100%;min-height:46px;padding:10px;border:1px solid #dedee4;border-radius:13px;background:#fff;font-size:14px}.drive-storage-restore .drive-storage-actions{grid-template-columns:1fr 1fr}.drive-storage-restore button{border:0;border-radius:13px;min-height:44px;padding:9px 12px;background:#111;color:#fff;font-weight:800}.drive-storage-restore button:disabled{opacity:.45}.drive-storage-restore .drive-storage-note{overflow-wrap:anywhere}
.drive-storage-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:9px}.drive-storage-categories div{display:flex;justify-content:space-between;background:#fff;border-radius:12px;padding:9px 11px;font-size:10px;color:#65656d}.drive-storage-categories b{color:#222}.drive-preview{position:fixed;inset:0;z-index:12030;background:rgba(4,5,8,.92);display:grid;place-items:center;padding:14px}.drive-preview-card{width:min(960px,100%);height:min(92dvh,900px);background:#fff;border-radius:18px;overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr)}.drive-preview-head{display:flex;align-items:center;gap:8px;padding:9px 12px;border-bottom:1px solid #e5e5e8}.drive-preview-head b{min-width:0;overflow-wrap:anywhere;flex:1;font-size:12px}.drive-preview-head a,.drive-preview-head button{border:0;border-radius:10px;background:#efeff2;padding:9px 10px;color:#111;text-decoration:none;font-size:11px;font-weight:800}.drive-preview-body{min-height:0;overflow:auto;background:#edeef1;display:grid;place-items:center}.drive-preview-body img{max-width:100%;max-height:100%;object-fit:contain}.drive-preview-body iframe{width:100%;height:100%;border:0;background:#fff}.drive-preview-body video{max-width:100%;max-height:100%}
#galleryUploadLaunchV61.drive-upload-primary,.drive-storage-upload{--clinic-upload-background:#005cff;--clinic-upload-hover:#0049cc;--clinic-upload-foreground:#fff}
#galleryUploadLaunchV61.drive-upload-primary,.drive-storage-upload [data-drive="upload"]{background:var(--clinic-upload-background)!important;color:var(--clinic-upload-foreground)!important;border:1px solid var(--clinic-upload-background)!important;min-height:44px;font-size:14px;font-weight:750;cursor:pointer}
#galleryUploadLaunchV61.drive-upload-primary:hover,.drive-storage-upload [data-drive="upload"]:hover{background:var(--clinic-upload-hover)!important}
#galleryUploadLaunchV61.drive-upload-primary:focus-visible,.drive-storage-upload [data-drive="upload"]:focus-visible{outline:3px solid #80b1ff;outline-offset:3px}
#galleryUploadLaunchV61.drive-upload-primary:disabled,.drive-storage-upload [data-drive="upload"]:disabled{opacity:.5;cursor:not-allowed}
#drivePatientUpload::file-selector-button{background:var(--clinic-upload-background);color:var(--clinic-upload-foreground);border:0;border-radius:10px;min-height:44px;padding:10px 14px;margin-right:10px;font:inherit;font-weight:750;cursor:pointer}
@media(min-width:700px){.drive-storage-panel{align-items:center}.drive-storage-card{max-height:88dvh}.drive-storage-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}}
.drive-patient-bulk-toolbar{display:grid;gap:9px;background:#f2f6ff;border:1px solid #dce8ff;border-radius:16px;padding:12px;margin:10px 0}.drive-patient-bulk-select{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12px}.drive-patient-bulk-select label{display:flex;align-items:center;gap:8px;font-weight:800}.drive-patient-bulk-select input,.drive-patient-file-select{width:22px;height:22px;accent-color:#005cff;cursor:pointer;flex:0 0 auto}.drive-patient-bulk-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.drive-patient-bulk-actions button{border:0;border-radius:11px;background:#111;color:#fff;min-height:40px;padding:9px 12px;font-weight:800}.drive-patient-bulk-actions button.danger{background:#fff0ef;color:#a52820}.drive-patient-bulk-actions button:disabled{opacity:.45;cursor:not-allowed}.drive-patient-bulk-toolbar [data-patient-file-status]{grid-column:1/-1;margin:0}.v72-file-row.patient-file-selectable{grid-template-columns:25px minmax(0,1fr);grid-template-rows:auto auto}.v72-file-row.patient-file-selectable>.drive-patient-file-select{grid-row:1;grid-column:1;align-self:start;margin-top:9px}.v72-file-row.patient-file-selectable>.v30-file{grid-row:1;grid-column:2}.v72-file-row.patient-file-selectable>.v72-delete-file{grid-row:2;grid-column:2;justify-self:end;padding:8px 11px}.drive-storage-file.patient-file-selectable{grid-template-columns:25px minmax(0,1fr)}.drive-storage-file.patient-file-selectable>.drive-patient-file-select{grid-row:1;grid-column:1;align-self:start;margin-top:5px}.drive-storage-file.patient-file-selectable>div:first-of-type{grid-row:1;grid-column:2}.drive-storage-file.patient-file-selectable>.drive-storage-file-actions{grid-row:2;grid-column:2;justify-content:flex-start}
