:root{color:#30312f;--blue:#79708e;--sidebar:196px;--left:196px;--panel:260px}body{background:#fcfbf9;background-attachment:initial}header{height:56px;position:relative;display:flex;align-items:center;gap:16px;padding:0 16px;background:rgba(238,238,236,.9);backdrop-filter:blur(16px);border:0;border-radius:0;box-shadow:none}.brand{width:180px;flex:none;display:flex;align-items:center;gap:8px;text-decoration:none;color:#30312f}.brand img{width:18px;height:18px;flex:none}.brand span{font-size:16px;font-weight:600;letter-spacing:-.3px}.tools{width:300px;height:32px;display:flex;align-items:center;gap:6px;padding:0 9px;background:#fff9;border:1px solid #d8d8d380;border-radius:8px;box-shadow:none}.tools input{width:100%;height:30px;padding:0;background:transparent;border:0;border-radius:0;font-size:12px}.tools button{width:24px;height:24px;padding:3px;display:grid;place-items:center}.tools svg,.search-icon svg{width:16px;height:16px;display:block}.search-icon{color:#83837e;display:flex}.sidebar{position:fixed;left:0;top:56px;bottom:0;width:196px;max-height:none;margin:0;padding:14px 10px;display:flex;flex-direction:column;gap:3px;background:rgba(238,238,236,.9);backdrop-filter:blur(16px);border:0;border-radius:0;box-shadow:none}.sidebar-caption{font-size:10px;color:#8a8982;padding:3px 10px 10px}.sidebar button[data-section]{height:33px;min-height:33px;margin:0;padding:0 10px;border:0;border-radius:6px;background:transparent;box-shadow:none;font-size:12px;font-weight:400}.sidebar button:hover{background:#e5e5e0}.sidebar button.is-active{background:#e8e2ef!important;box-shadow:none;font-weight:600}.sidebar-storage{padding:12px 10px}.sidebar button svg{width:16px;height:16px}.sidebar #security-button{margin-top:auto;border:0;padding:0 10px}.sidebar #storage-button{border:0;padding:0 10px}.sidebar-scrim,#menu-toggle{display:none}main{margin:0 0 0 196px;padding:20px 16px;min-height:calc(100vh - 56px);background:#fcfbf9;border:0;border-radius:0;box-shadow:none;backdrop-filter:none}body.details-open main{margin-right:284px}body[data-view=login] main,body[data-view=locked] main{margin:0}.section-heading{gap:12px;min-height:32px;margin:0 0 14px;align-items:center}.section-heading h1,#breadcrumbs button{font-size:17px;font-weight:600;line-height:24px}.workspace-actions{display:flex;gap:6px;align-items:center}.workspace-actions button{display:flex;align-items:center;justify-content:center;gap:5px;height:30px;padding:0 10px;font-size:11px;border:1px solid #d9d7d1;border-radius:6px;background:#f7f6f2;color:#484741;box-shadow:none}.workspace-actions svg{width:15px;height:15px}.workspace-actions button.primary{background:#e8e2ef;border-color:transparent;color:#4e435f}.organizer-bar{margin:0 0 7px;gap:8px;align-items:center}.filters{display:flex;gap:6px;flex-wrap:wrap}.filters select{height:28px;width:auto!important;max-width:160px;padding:3px 23px 3px 8px;font-size:11px;background:#f5f4f1;border:1px solid #dfddd7;border-radius:6px}.list-scope{font-size:10px;color:#99968e;margin:8px 0 14px}#view-toggle{width:30px;height:28px;padding:5px;background:#f2f1ed;border:1px solid #dedcd7;border-radius:6px}#view-toggle svg{width:16px;height:16px}.files.grid-view{grid-template-columns:repeat(auto-fill,220px);gap:10px 12px}.files .file,.grid-view .file.folder{border:0;border-radius:6px;box-shadow:none;background:transparent;outline-offset:0}.grid-view .file.folder{height:42px;min-height:42px}.file:hover,.grid-view .file.folder:hover{background:#eeede8}.file.selected,.grid-view .file.folder.selected{background:#eae3f1;outline:1px solid #ded3e7}.file .open{color:#3b3b36}.grid-view .file.folder .open{height:42px;padding:8px;font-size:12px;gap:9px}.file.folder .symbol,.grid-view .file.folder .symbol{width:24px;height:24px;min-width:24px;background:none;clip-path:none;display:flex;align-items:center;justify-content:center;border-radius:0}.file.folder .symbol svg{width:24px;height:24px;fill:var(--folder-color,#91948f);stroke:var(--folder-color,#91948f);stroke-width:1.1}.file .edit{display:grid;place-items:center;padding:3px;width:24px;height:28px;align-self:center}.file .edit svg{width:16px;height:16px}.grid-view .file.folder .file-date{font-size:9px;color:#8e8c84}.files:not(.grid-view){background:transparent}.files:not(.grid-view) .file{border-radius:0;border-bottom:1px solid #eae8e2;height:44px}.grid-view .file:not(.folder){background:#f1f0eb;border:0;box-shadow:none}.grid-view .file:not(.folder):hover{background:#eae9e3}.grid-view .file:not(.folder).selected{background:#eae3f1}.grid-view .file:not(.folder) .symbol{background:#fff;border:0}.file-group{font-size:11px;margin:16px 0 6px;color:#7a786f}.file-group:first-child{margin-top:0}#details-panel{position:fixed;top:56px;bottom:0;right:0;width:284px;margin:0;padding:20px 18px;background:#f7f6f2;border:0;border-left:1px solid #e3e1da;border-radius:0;box-shadow:none;backdrop-filter:none;overflow:auto;min-height:0}#details-panel h2{font-size:14px;line-height:20px;padding-right:20px;margin:0 0 22px}#details-panel p{font-size:11px;line-height:1.7;color:#858177}#details-panel>button{font-size:11px}.details-close{position:absolute;top:12px;right:10px;width:26px;height:26px;padding:0;font-size:18px}.card,dialog{background:#fff;border:1px solid #dfdcd5;box-shadow:none;backdrop-filter:none}.auth{margin:36px auto;max-width:380px}.settings-grid .card{border-radius:8px}.file-menu{background:#fbfaf7;box-shadow:0 5px 20px #23211d24;border:1px solid #dedbd3}.file-menu button:hover{background:#eeece6}.notice{background:#f5efe0;border:1px solid #e4dbbc;border-radius:8px;box-shadow:0 3px 12px #0001;font-size:12px}.transfer-panel{background:#fcfbf8;border:1px solid #dbd8d0;box-shadow:0 8px 28px #26221b22;backdrop-filter:none;border-radius:9px}.transfer-heading{background:#efeee8;border-color:#dedbd4}.transfer-demo{background:#faf8ef}.collection-row{border-color:#e4e1da}input,select{border-color:#ddd9d0;background:#fff}.color-choice-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.color-choice-list button{display:flex;align-items:center;gap:8px;border:1px solid transparent;font-size:12px;padding:9px}.color-choice-list svg{width:24px;height:24px;fill:var(--folder-color);stroke:var(--folder-color)}.color-choice-list [aria-pressed=true]{background:#eae3f1;border-color:#ddd1e7}.color-dialog h2{font-size:16px;margin:0 0 16px}.secondary{border-color:#dfdcd4!important;background:#f5f4ef!important}.new-folder-dialog .actions button[type=button]{background:#f2f0eb}dialog::backdrop{background:#211e2330;backdrop-filter:blur(2px)}
@media(max-width:1100px){header{gap:16px;grid-template-columns:none}.brand span{font-size:16px}#breadcrumbs button{font-size:16px}.sidebar button[data-section]{font-size:12px}.filters select{max-width:145px}.files.grid-view{grid-template-columns:repeat(auto-fill,220px)}}
@media(max-width:760px){header{height:96px;display:flex;flex-wrap:wrap;gap:4px 10px;padding:10px 14px;align-content:center}#menu-toggle{display:grid;place-items:center;width:26px;height:26px;padding:3px}#menu-toggle svg{width:20px;height:20px}.brand{width:auto;flex:1}.brand img{width:18px;height:18px}.brand span{font-size:16px}.tools{width:100%;max-width:340px;margin-left:36px;height:30px}.sidebar{position:fixed;top:96px;bottom:0;left:0;width:196px;padding:14px 10px;flex-direction:column;transform:translateX(-100%);z-index:30;transition:transform .16s;background:#eeede9;max-height:none;overflow:auto}.sidebar-caption{display:block}.sidebar button[data-section]{font-size:12px;padding:0 10px}.sidebar-open .sidebar{transform:translateX(0)}.sidebar-open .sidebar-scrim{display:block;position:fixed;inset:96px 0 0;background:#29252c25;border-radius:0;z-index:25;width:100%;height:calc(100vh - 96px)}main,body.details-open main{margin:0;padding:16px 14px;min-height:calc(100vh - 96px)}#details-panel{position:static;width:auto;min-height:0;margin:0 14px 16px;padding:16px;border:1px solid #e3e1da;border-radius:8px}.section-heading{flex-wrap:wrap;gap:8px}.workspace-actions{gap:5px}.files.grid-view{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px}.grid-view .file{width:100%}.filters select{max-width:140px}.organizer-bar{align-items:flex-start}.grid-view .file.folder .open{font-size:12px}.files:not(.grid-view) .file{grid-template-columns:minmax(90px,1fr) 110px 24px}.files:not(.grid-view) .file-details{grid-template-columns:55px 55px}.sidebar-storage{min-width:0}.card.auth{margin:18px auto}body[data-view=login] header,body[data-view=locked] header{height:56px}body[data-view=login] #menu-toggle,body[data-view=locked] #menu-toggle{display:none}}

.file .organize{display:grid;place-items:center;padding:3px;width:24px;height:28px;align-self:center}.file .organize svg{width:16px;height:16px}
/* Folder color belongs to the card as well as its Finder icon. */
.grid-view .file.folder[data-color]:not([data-color=gray]){background:color-mix(in srgb,var(--folder-color) 14%,#fcfbf9)}
.grid-view .file.folder[data-color]:not([data-color=gray]):hover{background:color-mix(in srgb,var(--folder-color) 22%,#fcfbf9)}
.grid-view .file.folder.selected{background:color-mix(in srgb,var(--folder-color) 23%,#eee7f4);outline:1px solid #c5b8d2}
.file-group,.group-heading{grid-column:1/-1}
.tools .voice-search{width:24px;min-width:24px}.voice-search svg{width:16px;height:16px}.voice-search.listening{color:#c44b50;background:#ffe8e8}
.media-dialog{width:min(1100px,96vw);max-width:96vw;height:min(850px,92vh);max-height:92vh;padding:0;background:#f7f6f2;border:0;border-radius:10px;overflow:hidden}
.media-toolbar{display:flex;align-items:center;gap:12px;height:48px;padding:8px 14px;background:#eeede7}
.media-toolbar strong{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.media-toolbar span{font-size:11px;color:#878177;white-space:nowrap}.media-toolbar a{font-size:11px;color:#635679;text-decoration:none;white-space:nowrap}.media-toolbar button{font-size:12px}
.media-stage{height:calc(100% - 88px);display:flex;align-items:center;justify-content:center;background:#292929;overflow:hidden}.media-stage img,.media-stage video{width:100%;height:100%;object-fit:contain}.media-stage iframe{width:100%;height:100%;border:0;background:white}.media-status{font-size:11px;line-height:16px;margin:0;padding:8px 14px;height:40px;overflow:auto}.media-prev,.media-next{position:absolute;top:48%;width:34px;height:42px;border-radius:8px;background:#ffffffde;color:#3f3b43;font-size:30px;line-height:30px;padding:0}.media-prev{left:12px}.media-next{right:12px}.collection-row{display:flex;flex-wrap:wrap;gap:8px 12px}.collection-row strong{flex:1 1 160px}.collection-row .muted{flex:1 1 100%;order:2}.collection-row button,.collection-row a{white-space:nowrap}.color-dialog,.file-menu,.media-dialog{backdrop-filter:none}
@media(max-width:760px){.files.grid-view{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.grid-view .file,.grid-view .file.folder{width:100%;min-width:0}.grid-view .file.folder{height:68px;min-height:68px}.grid-view .file.folder .open{height:44px;min-width:0;padding:7px 25px 3px 8px;gap:6px;font-size:11px}.grid-view .file.folder .file-details{display:block;height:18px;padding:0 8px 4px 38px;overflow:hidden}.grid-view .file.folder .file-date{font-size:9px;display:block}.grid-view .file.folder .tag,.grid-view .file.folder .rating{display:none}.grid-view .file.folder .symbol{width:24px;height:24px;min-width:24px}.grid-view .file:not(.folder) .open img,.grid-view .file:not(.folder) .symbol{width:100%;max-width:100%;height:112px;object-fit:cover}.media-dialog{width:100vw;max-width:100vw;height:92dvh;max-height:92dvh}.media-toolbar{gap:7px;padding:7px 9px}.media-toolbar strong{font-size:11px}.media-toolbar span{display:none}.media-toolbar a{font-size:10px}.media-prev{left:5px}.media-next{right:5px}.filters select{max-width:126px}}

/* A fixed sidebar must not be inside the filtered header's containing block. */
body>.sidebar{height:calc(100dvh - 56px);max-height:calc(100dvh - 56px)}
.grid-view .file.folder{display:grid;grid-template-columns:minmax(0,1fr) 26px;grid-template-rows:40px 22px;height:68px;min-height:68px;position:relative}.grid-view .file.folder .open{grid-column:1;grid-row:1;height:40px;padding:8px 4px 2px 8px;min-width:0;width:100%;gap:8px}.grid-view .file.folder .open>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.grid-view .file.folder .file-details{grid-column:1/-1;grid-row:2;display:block;position:static;width:auto;height:22px;padding:0 8px 5px 40px;overflow:hidden}.grid-view .file.folder .file-date{display:block;font-size:10px;line-height:16px}.grid-view .file.folder .file-details .tag,.grid-view .file.folder .file-details .rating{display:none}.grid-view .file.folder .organize{position:static;grid-column:2;grid-row:1;align-self:center;justify-self:center;width:24px;height:28px;margin-right:4px}.folder-color-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.folder-color-choice{display:flex;align-items:center;gap:8px;font-size:12px;text-align:left}.folder-color-choice svg{width:24px;height:24px;fill:var(--folder-color);stroke:var(--folder-color)}.folder-color-choice[aria-pressed=true]{background:#eae3f1}
@media(max-width:760px){body>.sidebar{height:calc(100dvh - 96px);max-height:calc(100dvh - 96px)}.grid-view .file.folder .open{font-size:11px}.grid-view .file.folder .file-details{padding-left:40px}}

.media-stage.document-stage{overflow:auto;background:#d9d6d0;padding:12px;align-items:flex-start}.document-stage canvas{background:#fff;display:block;flex:none;box-shadow:0 1px 8px #0002}

.grid-view .file:not(.folder) .symbol{display:grid;place-items:center;background:#eeece6;border:0}.grid-view .file:not(.folder) .symbol svg{width:36px;height:36px;color:#969187}.files:not(.grid-view) .symbol svg{width:20px;height:20px}.file-menu button{display:flex;align-items:center;gap:8px}

/* Override the legacy one-line metadata cap after moving the date below the name. */
.grid-view .file.folder .file-details{max-width:none;min-width:0;justify-self:stretch}
.grid-view .file.folder .file-date{width:auto;max-width:none;white-space:nowrap}

/* Drive-style file cards, list columns and persistent classification rail. */
body[data-view=gallery] main{margin-right:284px}#details-panel.classification-panel h3{font-size:11px;color:#918b81;margin:22px 0 8px}.classification-link{display:flex;align-items:center;gap:9px;width:100%;text-align:left;font-size:12px;padding:8px;border-radius:6px}.classification-link:hover{background:#eae6ef}.classification-link i{width:12px;height:12px;border-radius:50%;flex:none}.type-icon{display:inline-flex;flex:none;width:20px;height:20px;align-items:center;justify-content:center}.type-icon svg{width:20px;height:20px}.file.folder .type-icon svg{fill:var(--folder-color);stroke:var(--folder-color)}.file .file-title{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}.file-owner,.file-modified,.file-size{font-size:11px;color:#817e76;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.grid-view .file-owner,.grid-view .file-modified,.grid-view .file-size,.grid-view .list-columns{display:none}.file-preview{display:none}.files.grid-view{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}.grid-view .file:not(.folder){display:grid;grid-template-columns:minmax(0,1fr) 26px;grid-template-rows:36px 174px 26px;padding:0 7px 5px;min-width:0;width:auto;height:auto;border-radius:8px}.grid-view .file:not(.folder) .open{display:flex;flex-direction:row;align-items:center;gap:7px;min-width:0;height:36px;width:100%;padding:4px 0;grid-row:1;grid-column:1;font-size:11px}.grid-view .file:not(.folder) .open>span:last-child{width:auto;flex:1;text-align:left}.grid-view .file:not(.folder) .organize{grid-column:2;grid-row:1;position:static;margin:0;width:24px;height:28px}.grid-view .file:not(.folder) .file-preview{display:flex;position:relative;grid-column:1/-1;grid-row:2;background:#e8e5df;border-radius:5px;overflow:hidden;align-items:center;justify-content:center;cursor:pointer;min-width:0;flex-direction:column;gap:8px}.file-preview>img,.file-preview>canvas{width:100%;height:100%;object-fit:contain;background:#fff}.file-preview>canvas:not([data-rendered=true]){display:none}.file-preview>svg,.preview-fallback>svg{width:44px;height:44px;color:#93918c}.preview-fallback{display:flex;flex-direction:column;align-items:center;gap:10px;font-size:10px;color:#858079}.grid-view .file:not(.folder) .file-details{grid-row:3;grid-column:1/-1;max-width:none;display:flex;gap:6px;align-items:center;padding:3px 0;font-size:9px;overflow:hidden;height:25px;position:static}.grid-view .file:not(.folder) .file-details .rating{margin-left:auto;white-space:nowrap}.grid-view .file:not(.folder) .file-details .rating button{font-size:11px;padding:0 1px}.grid-view .file:not(.folder) .file-details .tag{display:none}.files:not(.grid-view){gap:0}.list-columns,.files:not(.grid-view) .file{display:grid;grid-template-columns:minmax(150px,1fr) 90px 112px 78px 28px;gap:12px;align-items:center;width:100%;min-width:0}.list-columns{height:32px;border-bottom:1px solid #d8d4cc;font-size:11px;font-weight:600;color:#8b857b;padding:0 7px;position:sticky;top:0;background:#fcfbf9;z-index:1}.files:not(.grid-view) .file{height:42px;padding:0 7px;border-bottom:1px solid #e5e1da}.files:not(.grid-view) .file .open{grid-column:1;grid-row:1;display:flex;gap:9px;align-items:center;min-width:0;padding:0;font-size:12px;height:40px}.files:not(.grid-view) .file .file-details{display:none}.files:not(.grid-view) .file .file-owner{grid-column:2;grid-row:1}.files:not(.grid-view) .file .file-modified{grid-column:3;grid-row:1}.files:not(.grid-view) .file .file-size{grid-column:4;grid-row:1}.files:not(.grid-view) .file .organize{position:static;grid-column:5;grid-row:1}.files:not(.grid-view) .file .share{display:none}.files:not(.grid-view) .date-heading{margin:12px 0 4px;padding:0 7px;font-size:11px}.drive-context{width:236px;overflow:visible;padding:5px 0;border-radius:7px;margin:0;position:fixed;background:#fcfbf9}.drive-context::backdrop{background:transparent;backdrop-filter:none}.drive-context button{display:flex;align-items:center;gap:11px;width:100%;padding:8px 13px;border-radius:0;font-size:12px;text-align:left;min-height:32px}.drive-context button>svg{width:16px;height:16px;flex:none}.drive-context button>span{flex:1}.drive-context>.danger{border-top:1px solid #e0dcd4;margin-top:5px;padding-top:11px}.context-group{position:relative}.context-submenu{display:none;position:absolute;top:0;left:calc(100% - 2px);width:228px;padding:5px 0;border:1px solid #dfdbd4;border-radius:7px;background:#fcfbf9;box-shadow:0 5px 20px #0002;z-index:2}.context-group:hover>.context-submenu,.context-group:focus-within>.context-submenu,.context-group.expanded>.context-submenu{display:block}.submenu-left .context-submenu{left:auto;right:calc(100% - 2px)}.context-submenu p{font-size:10px;color:#8e887e;margin:9px 13px}.context-palette{display:grid;grid-template-columns:repeat(7,24px);gap:6px;padding:5px 13px 10px}.context-palette button{width:22px;height:22px;min-height:0;padding:0;border-radius:50%;border:2px solid transparent}.context-palette button[aria-pressed=true]{outline:2px solid #72617d;outline-offset:2px}
@media(max-width:1050px){.list-columns,.files:not(.grid-view) .file{grid-template-columns:minmax(110px,1fr) 65px 94px 65px 24px;gap:7px}}
@media(max-width:760px){body[data-view=gallery] main{margin-right:0}#details-panel.classification-panel{position:static;display:block;margin:0 14px 14px;border:0;border-top:1px solid #e3dfd6;border-radius:0;padding:14px 0}.classification-panel .classification-link{display:inline-flex;width:auto;margin:2px 4px 2px 0}.classification-panel h2,.classification-panel h3{margin:8px 0!important}.files.grid-view{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.grid-view .file:not(.folder){grid-template-rows:34px 132px 24px;padding:0 5px 4px}.grid-view .file:not(.folder) .open{font-size:10px;gap:5px}.list-columns,.files:not(.grid-view) .file{grid-template-columns:minmax(105px,1fr) 84px 24px;gap:7px}.list-columns>span:nth-child(2),.list-columns>span:nth-child(4),.files:not(.grid-view) .file .file-owner,.files:not(.grid-view) .file .file-size{display:none}.files:not(.grid-view) .file .file-modified{grid-column:2}.files:not(.grid-view) .file .organize{grid-column:3}.drive-context{width:220px}.context-submenu{position:static;width:100%;border:0;box-shadow:none;padding-left:12px}.drive-context{max-height:85dvh;overflow:auto}.media-toolbar{min-width:0}}

/* Legacy cards had an intrinsic 151px title area. Keep each region in its own row. */
.grid-view .file:not(.folder){align-items:stretch;overflow:hidden}.grid-view .file:not(.folder) .open{min-height:0;max-height:36px;align-self:stretch;line-height:16px}.grid-view .file:not(.folder) .file-preview{height:174px;min-height:0;max-height:174px;align-self:stretch}.file-preview>img,.file-preview>canvas{min-height:0;max-height:100%;max-width:100%;position:absolute;inset:0;object-fit:contain}.files:not(.grid-view) .file .open{min-height:0;max-height:40px}.type-icon{min-height:0!important;height:20px!important;width:20px!important}.file-preview small{font-size:11px}.file-preview>svg{flex:none}
@media(max-width:760px){.grid-view .file:not(.folder) .open{max-height:34px}.grid-view .file:not(.folder) .file-preview{height:132px;max-height:132px}}

/* Keep the Finder frame stationary; only the central file surface scrolls. */
html,body{height:100%;min-height:0;overflow:hidden}
body{--frame-top:56px}
body>header{position:fixed;inset:0 0 auto;height:var(--frame-top);z-index:40}
body>main,body.details-open main,body[data-view=gallery] main{position:fixed;inset:var(--frame-top) 0 0 196px;margin:0;min-height:0;max-width:none;overflow:auto;overscroll-behavior:contain}
body[data-view=gallery] main,body[data-view=gallery].details-open main{right:284px;overflow:hidden;display:flex;flex-direction:column}
#gallery:not([hidden]){display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
#gallery>.section-heading,#gallery>.organizer-bar,#gallery>.list-scope,#gallery>#more-files,#gallery>#empty-files{flex:none}
#files{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;align-content:start;scrollbar-gutter:stable;padding:2px 3px 12px 2px}
body>.sidebar{z-index:35;overflow-y:auto;overscroll-behavior:contain}
#details-panel{z-index:20;overscroll-behavior:contain}
body[data-view=login] main,body[data-view=locked] main{left:0;right:0}
#collection-view{min-width:0}
@media(max-width:760px){body{--frame-top:96px}body>main,body.details-open main,body[data-view=gallery] main,body[data-view=gallery].details-open main{left:0;right:0}body[data-view=login],body[data-view=locked]{--frame-top:56px}body>.sidebar{top:var(--frame-top);height:calc(100dvh - var(--frame-top));max-height:calc(100dvh - var(--frame-top))}body>.sidebar-scrim{z-index:34}#details-panel:not(.classification-panel){position:fixed;top:var(--frame-top);bottom:0;right:0;width:min(284px,85vw);margin:0;border-radius:0;z-index:32;box-shadow:-8px 0 24px #0001}#files{scrollbar-gutter:auto}}

/* Fixed preview tracks must also determine the outer grid row height. */
.files.grid-view .file:not(.folder){height:241px;min-height:241px}
@media(max-width:760px){.files.grid-view .file:not(.folder){grid-template-rows:34px 132px 26px;height:197px;min-height:197px}}

.drive-share-dialog{width:440px;max-width:calc(100vw - 28px);padding:22px;border-radius:15px;background:#fcfbf9;box-shadow:0 18px 70px #17151e30;border:1px solid #e3e0da}
.share-heading{display:flex;align-items:center;gap:12px;margin-bottom:22px}.share-heading h2{flex:1;font-size:18px;line-height:1.5;margin:0;overflow-wrap:anywhere}.share-options{width:30px;height:30px;flex:none;padding:0;font-size:18px}.drive-share-dialog h3{font-size:12px;font-weight:600;margin:0 0 12px}.share-owner{padding-bottom:22px}.share-owner>div{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:10px;font-size:12px}.share-owner strong{min-width:0;overflow:hidden;text-overflow:ellipsis}.share-owner small{color:#8a857c;font-size:10px}.share-avatar{display:grid;place-items:center;height:32px;border-radius:50%;background:#e7dfef;color:#685a7d;font-size:11px}.share-general{border-top:1px solid #e7e3dc;padding-top:18px}.share-access-row{display:flex;align-items:center;gap:10px}.share-access-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#e9e6df;flex:none}.share-access-row>div{flex:1;min-width:0}.share-access-row select{width:auto;max-width:100%;font-size:12px;font-weight:600;padding:6px;border:0;background:transparent}.share-access-note{font-size:11px;color:#817b72;line-height:1.6;margin:3px 6px}.share-role{font-size:11px;color:#80786e;flex:none}.share-link-options{margin:20px 0 0}.share-link-options label{margin-top:12px}.share-link-options input{height:34px;padding:7px 9px;font-size:12px}.share-link-options p,.share-settings p{font-size:11px;color:#8a8176;line-height:1.6}.share-settings{border-top:1px solid #e8e3db;margin-top:18px;padding-top:16px}.share-inline-error{font-size:11px;line-height:1.6;color:#8c6855;margin:12px 0 0}.share-inline-error:empty{display:none}.share-current-url{display:block;font-size:10px;overflow-wrap:anywhere;margin-top:12px;color:#7a6d90}.share-footer{display:flex;align-items:center;gap:8px;justify-content:flex-start;margin-top:22px}.share-footer button{height:32px;padding:0 14px;font-size:12px;border-radius:18px}.share-copy{border:1px solid #c9c3d1;color:#6b5c80}.share-apply{margin-left:auto;background:#e6deee!important;color:#584a6d!important;box-shadow:none}.share-send{border:1px solid #d9d3df}.drive-share-dialog::backdrop{background:#211e2638;backdrop-filter:blur(3px)}

.information-tabs{display:flex;gap:4px;border-bottom:1px solid #e5e0d8;padding-bottom:8px;margin-bottom:18px;flex-wrap:wrap}.information-tabs button{font-size:10px;padding:6px}.information-tabs [aria-pressed=true]{background:#e8e0ef;color:#655575}.activity-row{border-left:2px solid #ddd4e6;padding:4px 0 4px 12px;margin:16px 0}.activity-row strong{font-size:11px}.activity-row p{margin:4px 0!important}

/* Folder selection never extends into adjacent grid tracks. */
.files.grid-view .file.folder{width:100%;max-width:100%;min-width:0;overflow:hidden;isolation:isolate;box-sizing:border-box;grid-template-columns:minmax(0,1fr) 26px;grid-template-rows:32px 18px;height:54px;min-height:54px;padding:2px 0;outline:none}
.files.grid-view .file.folder .open{height:32px;max-height:32px;min-height:0;min-width:0;max-width:100%;width:100%;padding:3px 3px 0 8px;gap:8px;align-self:start;overflow:hidden}
.files.grid-view .file.folder .file-details{height:18px;max-height:18px;padding:0 8px 0 40px;align-self:start;overflow:hidden}
.files.grid-view .file.folder .file-date{font-size:10px;line-height:16px;margin:0;padding:0}
.files.grid-view .file.folder .organize{width:24px;height:28px;min-width:0;max-width:24px;position:static;grid-column:2;grid-row:1;margin:0;justify-self:center;align-self:center}
.files.grid-view .file.folder.selected{outline:none;box-shadow:inset 0 0 0 1px #c5b8d2}

.quick-rating{color:#aa8548;letter-spacing:.5px}.quick-rating[aria-pressed=true]{background:#ece5f1;color:#896430}

.context-rating{display:flex;padding:0 12px 8px;gap:4px}.context-rating button{display:block;width:32px;min-height:30px;height:30px;padding:0;font-size:23px;color:#c9c4b9;text-align:center}.context-rating button[aria-pressed=true]{color:#b48b45}.context-rating button:hover{color:#b48b45;background:#f0e7d7}

.quick-stars{display:flex;align-items:center;gap:2px;margin:4px 0 16px}.quick-stars button:not(.quick-stars-clear){font-size:27px;color:#b28e40;width:31px;height:34px;padding:0;line-height:34px;text-align:center}.quick-stars-clear{font-size:10px;color:#8b847a;padding:4px 6px;margin-left:5px}.quick-stars button:hover{background:#ede7db}

/* Put the single rating directly below the date, never in the filename. */
.files.grid-view .file.folder{grid-template-rows:28px 36px;height:68px;min-height:68px}
.files.grid-view .file.folder .open{height:28px;max-height:28px;padding-top:2px}
.files.grid-view .file.folder .file-details{display:flex;flex-direction:column;align-items:flex-start;grid-row:2;height:36px;max-height:36px;padding:0 8px 0 40px;gap:0}
.files.grid-view .file.folder .file-details .file-date{height:16px;flex:none;line-height:16px}
.files.grid-view .file.folder .file-details .rating{display:flex;height:20px;align-items:center;gap:1px;flex:none;margin:0;white-space:nowrap}
.files.grid-view .file.folder .file-details .rating button{height:19px;width:17px;padding:0;font-size:14px;line-height:19px;color:#b28e40}
.files.grid-view .file:not(.folder){grid-template-rows:36px 174px 42px;height:257px;min-height:257px}
.files.grid-view .file:not(.folder) .file-details{height:42px;display:flex;flex-direction:column;align-items:flex-start;gap:1px;padding:3px 0}
.files.grid-view .file:not(.folder) .file-details .rating{display:flex;margin:0;height:19px;align-items:center}
.files.grid-view .file:not(.folder) .file-details .rating button{font-size:14px;height:19px;width:17px;padding:0;line-height:19px}
@media(max-width:760px){.files.grid-view .file:not(.folder){grid-template-rows:34px 132px 42px;height:213px;min-height:213px}}

.rating-filter-control{position:relative;display:inline-flex;height:28px;flex:none}.rating-filter-caption{position:absolute;left:9px;top:50%;transform:translateY(-50%);pointer-events:none;font-size:11px;color:#484741;z-index:1}.rating-filter-control select{color:transparent;appearance:none;min-width:92px;padding-right:24px}.rating-filter-control option{color:#30312f;font-size:12px}.rating-filter-control::after{content:"";position:absolute;right:10px;top:10px;width:6px;height:6px;border-right:1.5px solid #635f57;border-bottom:1.5px solid #635f57;transform:rotate(45deg);pointer-events:none}

.color-chip-grid{display:grid;grid-template-columns:repeat(5,26px);gap:9px;padding:5px 2px 10px;max-width:100%}.color-chip-grid .color-chip{display:grid;place-items:center;width:26px;height:26px;min-height:26px;padding:0;border:0;border-radius:50%;background:var(--chip-color,#ddd);box-shadow:inset 0 0 0 1px #0000000c;color:white;flex:none}.color-chip-grid .color-chip span{display:none;font-size:15px;line-height:20px}.color-chip-grid .color-chip[aria-pressed=true]{outline:1.5px solid #837194;outline-offset:3px}.color-chip-grid .color-reset{background:#fff;box-shadow:inset 0 0 0 1px #b9b4ac;color:#534f49}.context-submenu .color-chip-grid{margin:2px 12px 8px;padding:0}.color-filter-trigger{height:28px;display:flex;align-items:center;gap:7px;padding:0 10px;font-size:11px;border:1px solid #dfddd7;background:#f5f4f1;border-radius:6px}.color-filter-trigger i{display:none}.color-filter-popup{position:fixed;margin:0;padding:14px;border-radius:10px;border:1px solid #ded8ce;background:#fcfbf9;box-shadow:0 8px 28px #0002;width:auto;max-width:calc(100vw - 24px)}.color-filter-popup::backdrop{background:transparent;backdrop-filter:none}.folder-color-dialog .color-chip-grid{margin:12px 0}.folder-color-dialog{width:240px}

/* Dark surfaces for the Drive workspace. */
:root {
  color-scheme: dark;
  color: #e8eaed;
  --drive-background: #131313;
  --drive-navigation: #1b1b1b;
  --drive-card: #202020;
  --drive-control: #292929;
  --drive-hover: #303030;
  --drive-line: #424242;
  --drive-text: #e8eaed;
  --drive-muted: #b2b5b9;
  --drive-link: #a8ccff;
  --drive-selection: #07496c;
  --drive-focus: #8bcaff;
  --drive-warning: #ffb4ae;
  --drive-rating: #e5b96a;
}

body, header, body > .sidebar {
  background: var(--drive-navigation);
  color: var(--drive-text);
}

main, #details-panel, .list-columns { background: var(--drive-background); }

.brand, .file .open, #view-toggle svg { color: var(--drive-text); }

a, summary, #customer-link, .collection-row :is(a, button) { color: var(--drive-link); }

.tools, input, select, .filters select, #view-toggle, .color-filter-trigger {
  background: var(--drive-control);
  border-color: var(--drive-line);
  color: var(--drive-text);
}
.tools input { background: transparent; }
input::placeholder { color: var(--drive-muted); opacity: 1; }

.sidebar-caption, .sidebar-storage, .search-icon, .crumb-separator, .list-scope,
.file-date, .grid-view .file.folder .file-date, .file-group, .date-heading,
.file-owner, .file-modified, .file-size, .list-columns, .organize,
.muted, .details-placeholder, .details-placeholder-icon, #details-panel p,
#details-panel.classification-panel h3, .context-submenu p, .share-owner small,
.share-access-note, .share-role, .share-link-options p, .share-settings p,
.transfer-demo, .transfer-state, .destination-path, .preview-fallback {
  color: var(--drive-muted);
}

button:hover, .sidebar button:hover, .file-menu button:hover,
.classification-link:hover, .quick-stars button:hover {
  background: var(--drive-hover);
}

.sidebar button.is-active {
  background: var(--drive-selection) !important;
  color: #e7f5ff;
}

:is(button, input, select, a):focus-visible { outline-color: var(--drive-focus); }

.workspace-actions button, .new-folder-dialog .actions button[type=button] {
  background: var(--drive-control);
  border-color: var(--drive-line);
  color: var(--drive-text);
}
.secondary {
  background: var(--drive-control) !important;
  border-color: var(--drive-line) !important;
  color: var(--drive-text);
}
button.primary, .workspace-actions button.primary {
  background: var(--drive-selection);
  border-color: transparent;
  color: #e7f5ff;
  box-shadow: none;
}
button.danger, .new-folder-dialog .status, .share-inline-error,
.transfer-row[data-state="\c2e4\d328"] .transfer-state, .transfer-row small { color: var(--drive-warning); }

.files.grid-view .file, .grid-view .file:not(.folder) { background: var(--drive-card); }
.files .file:hover, .files.grid-view .file:hover, .grid-view .file:not(.folder):hover {
  background: var(--drive-hover);
}
.grid-view .file.folder[data-color]:not([data-color=gray]) {
  background: color-mix(in srgb, var(--folder-color) 16%, var(--drive-card));
}
.grid-view .file.folder[data-color]:not([data-color=gray]):hover {
  background: color-mix(in srgb, var(--folder-color) 23%, var(--drive-card));
}
.file.folder[data-color=gray] .type-icon svg { fill: #bfc2c6; stroke: #bfc2c6; }
.files .file.selected, .files.grid-view .file.selected,
.files.grid-view .file.folder.selected, .grid-view .file.folder[data-color]:not([data-color=gray]).selected {
  background: var(--drive-selection);
  outline: none;
  box-shadow: inset 0 0 0 1px #2a7299;
}

.grid-view .file:not(.folder) .file-preview, .grid-view .file:not(.folder) .symbol {
  background: var(--drive-control);
}
.file-preview > svg, .preview-fallback > svg, .grid-view .file:not(.folder) .symbol svg {
  color: var(--drive-muted);
}

.tag { background: var(--drive-control); color: var(--drive-link); }
#details-panel .detail-tags, .share-current-url, .share-copy, .transfer-row button { color: var(--drive-link); }
.rating button, .detail-stars button, .quick-rating, .quick-stars button:not(.quick-stars-clear),
.files.grid-view .file.folder .file-details .rating button,
.context-rating button[aria-pressed=true], .context-rating button:hover {
  color: var(--drive-rating);
}
.quick-stars-clear, .context-rating button { color: var(--drive-muted); }
.context-rating button:hover { background: var(--drive-hover); }
.rating-filter-caption, .rating-filter-control option { color: var(--drive-text); }
.rating-filter-control select { color: transparent; }

.card, dialog, .file-menu, .drive-context, .context-submenu,
.drive-share-dialog, .transfer-panel, .color-filter-popup {
  background: var(--drive-card);
  border-color: var(--drive-line);
  color: var(--drive-text);
}
dialog::backdrop, .drive-share-dialog::backdrop { background: #0007; }
.drive-context::backdrop, .file-menu::backdrop, .color-filter-popup::backdrop { background: transparent; }
#details-panel:not(.classification-panel) { border-color: var(--drive-line); box-shadow: -8px 0 24px #0003; }
.notice { background: #30271b; border-color: #655134; color: #f5deb8; }
.transfer-heading, .transfer-demo, .share-avatar, .share-access-icon { background: var(--drive-control); }
.transfer-heading, .collection-row, .share-copy, .share-send { border-color: var(--drive-line); }
.share-avatar { color: var(--drive-link); }
.share-apply { background: var(--drive-selection) !important; color: #e7f5ff !important; }
.information-tabs [aria-pressed=true], .folder-color-choice[aria-pressed=true],
.color-choice-list [aria-pressed=true], .quick-rating[aria-pressed=true] {
  background: var(--drive-selection);
  border-color: var(--drive-focus);
  color: #e7f5ff;
}
.color-chip-grid .color-chip[aria-pressed=true], .context-palette button[aria-pressed=true] {
  outline-color: var(--drive-focus);
}
.voice-search.listening { background: #49272a; color: var(--drive-warning); }
.sidebar-open .sidebar-scrim { background: #0008; }

/* Selected item information in the sidebar. */
#details-panel.item-details { padding: 0; }
.item-details-header {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr) 29px;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 14px;
}
#details-panel.item-details .item-details-header h2 {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#details-panel.item-details .details-close {
  display: grid;
  position: static;
  place-items: center;
  width: 29px;
  height: 29px;
  padding: 0;
  color: var(--drive-text);
  font-size: 19px;
}
.item-details-symbol { display: grid; place-items: center; }
.item-details-symbol svg { width: 16px; height: 16px; }
#details-panel .item-details-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-bottom: 1px solid var(--drive-line);
}
#details-panel .item-details-tabs button {
  border-radius: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 4px 9px;
  background: transparent;
  color: var(--drive-muted);
  font-size: 12px;
}
#details-panel .item-details-tabs button[aria-pressed=true] {
  border-color: var(--drive-focus);
  color: var(--drive-link);
}
.item-details-section { padding: 14px; border-bottom: 1px solid var(--drive-line); }
.item-details-section h3, .item-details-section summary {
  margin: 0;
  color: var(--drive-text);
  font-size: 12px;
  font-weight: 600;
}
.item-details-section summary { padding: 4px 0; cursor: pointer; }
.item-details-section dl { margin: 12px 0 0; }
.item-details-section dt { margin-top: 10px; color: var(--drive-muted); font-size: 11px; }
.item-details-section dd { margin: 3px 0 0; color: var(--drive-text); font-size: 12px; overflow-wrap: anywhere; }
.item-details-overview { min-height: 144px; }
.item-details-preview { display: grid; place-items: center; min-height: 80px; margin-bottom: 10px; }
.item-details-preview svg { width: 54px; height: 54px; stroke-width: 1.3; }
#details-panel .item-description { color: var(--drive-text); white-space: pre-wrap; }
.item-details-section > button {
  padding: 6px 12px;
  border: 1px solid var(--drive-line);
  border-radius: 999px;
  color: var(--drive-link);
  font-size: 11px;
}
.item-details-section .detail-stars { margin: 3px 0 9px; }
.item-details-section.activity-row strong { font-size: 12px; }
#details-panel .item-details-section.activity-row p { margin: 4px 0 0; }
.item-description-dialog { width: min(420px, 94vw); }
.item-description-dialog textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--drive-line);
  border-radius: 8px;
  background: var(--drive-control);
  color: var(--drive-text);
  font: inherit;
  resize: vertical;
}
.item-description-dialog [role=alert] { color: var(--drive-warning); font-size: 12px; }
