/* Dental-EMT Files/Gallery: use the available workspace, 17.11.2026. */
html body:is([data-active-tab="files"],[data-active-tab="gallery"]) > main{box-sizing:border-box!important;width:auto!important;max-width:none!important;min-width:0!important;margin-right:0!important}
html body:is([data-active-tab="files"],[data-active-tab="gallery"]) > main > #content#content#content{box-sizing:border-box!important;width:100%!important;max-width:none!important;min-width:0!important;margin-inline:0!important;align-self:stretch!important}
html body:is([data-active-tab="files"],[data-active-tab="gallery"]) #content > .sectionhead{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:16px!important;margin:22px 0 18px!important}
html body:is([data-active-tab="files"],[data-active-tab="gallery"]) #content > .sectionhead h2{font-size:24px!important;line-height:1.25!important;margin:0!important;flex:1 1 240px!important}
html body:is([data-active-tab="files"],[data-active-tab="gallery"]) #content > .sectionhead > div{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.ew-workspace{--ew-panel:#fff;--ew-fg:#193746;--ew-line:#d7e4eb;--ew-soft:#f4f8fa;--ew-accent:#007b9e;display:grid;grid-template-columns:clamp(220px,17%,280px) minmax(260px,1fr) clamp(340px,28%,480px);background:var(--ew-panel);color:var(--ew-fg);border:1px solid var(--ew-line);border-radius:16px;min-height:620px;min-width:0;overflow:hidden}
html[data-theme="dark"] .ew-workspace{--ew-panel:#171c20;--ew-fg:#e4edf2;--ew-line:#35434d;--ew-soft:#1e2930;--ew-accent:#80cee4}
.ew-workspace *{box-sizing:border-box}.ew-tree{padding:18px 12px;border-right:1px solid var(--ew-line);min-width:0}.ew-list{padding:16px 20px;min-width:0}.ew-preview{padding:22px;border-left:1px solid var(--ew-line);background:var(--ew-soft);min-width:0}
.ew-tree button{font-size:15px!important;color:inherit;background:transparent;border:0;border-radius:8px;min-height:42px;white-space:normal;text-align:left;overflow-wrap:break-word;word-break:normal;line-height:1.4}
.ew-folder{padding:9px 10px!important;width:100%;min-width:0;flex:1}.ew-tree-line{padding-left:calc(var(--ew-depth) * 12px);display:flex;align-items:center;min-width:0}.ew-branch,.ew-spacer{width:24px!important;min-width:24px!important;flex:0 0 24px!important;padding:0!important;text-align:center!important}.ew-tree .is-active{background:var(--ew-soft);color:var(--ew-accent);font-weight:650}
.ew-list-head{padding:10px 10px 14px;display:flex;justify-content:space-between;border-bottom:1px solid var(--ew-line);font-size:13px;font-weight:650;color:var(--ew-fg);opacity:.8}
.ew-file-row{display:flex;gap:8px;align-items:center;border-bottom:1px solid var(--ew-line);min-width:0}.ew-file-select{display:flex;align-items:center;gap:14px;text-align:left;background:transparent!important;color:var(--ew-fg)!important;border:0!important;border-radius:8px!important;min-width:0;width:100%;padding:16px 10px!important;margin:0!important;font-size:15px!important;line-height:1.4!important}.ew-file-select[aria-pressed="true"]{background:var(--ew-soft)!important;box-shadow:inset 3px 0 var(--ew-accent)}.ew-filename{flex:1;min-width:0;overflow-wrap:anywhere;word-break:normal}.ew-filename small{display:block;font-size:12px;margin-top:3px;opacity:.7}.ew-type{font-size:11px;font-weight:650;border:1px solid var(--ew-line);padding:7px 5px;border-radius:6px;flex:0 0 38px;text-align:center}.ew-size{font-size:12px;flex:0 0 auto;opacity:.8}.ew-check{margin:0!important;padding:0!important;flex:0 0 auto}.ew-check input{width:20px!important;height:20px!important;min-height:20px!important;margin:0}.ew-preview-head{font-size:13px;font-weight:650;margin-bottom:20px;text-transform:uppercase;letter-spacing:.06em;opacity:.7}.ew-empty{padding:18px 10px;font-size:15px;line-height:1.6;opacity:.75}
/* Repeated #content intentionally outranks legacy :has(#content ...) card rules. */
html body[data-active-tab="files"] #content#content#content .ew-workspace .team-file-card{display:block!important;grid-template-columns:none!important;grid-auto-flow:row!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;width:100%!important;max-width:none!important;min-width:0!important;box-shadow:none!important}
html body[data-active-tab="files"] #content#content#content .ew-workspace .team-file-card[hidden]{display:none!important}
html body[data-active-tab="files"] #content#content#content .ew-workspace .team-file-card > *{float:none!important;position:static!important;grid-column:auto!important;grid-row:auto!important;min-width:0!important;max-width:100%!important}
html body[data-active-tab="files"] #content#content#content .ew-workspace .team-file-details{display:block!important;flex:none!important;width:100%!important;min-width:0!important;max-width:none!important;grid-column:auto!important;margin:0!important;text-align:left!important}
html body[data-active-tab="files"] #content#content#content .ew-workspace .team-file-details h3{font-size:19px!important;line-height:1.45!important;width:100%!important;overflow-wrap:anywhere!important;word-break:normal!important;margin:12px 0!important}
html body[data-active-tab="files"] #content#content#content .ew-workspace .dental-file-preview{display:flex!important;justify-content:center!important;align-items:center!important;flex:none!important;width:100%!important;max-width:none!important;height:auto!important;min-height:200px!important;padding:16px!important;margin:0 0 20px!important;grid-column:auto!important;background:var(--ew-panel)!important;border:1px solid var(--ew-line)!important;border-radius:12px!important;overflow:hidden!important}
html body[data-active-tab="files"] #content#content#content .ew-workspace .dental-file-preview :is(canvas,img){display:block!important;max-width:100%!important;max-height:370px!important;width:auto!important;height:auto!important;object-fit:contain!important;margin:0 auto!important}
html body[data-active-tab="files"] #content#content#content .ew-workspace .team-file-details > small{display:block!important;width:100%!important;line-height:1.6!important;white-space:normal!important;font-size:14px!important;word-break:normal!important;overflow-wrap:break-word!important}
html body[data-active-tab="files"] #content#content#content .ew-workspace .member-name{display:inline-flex!important;align-items:center!important;gap:8px!important;min-width:0!important;max-width:100%!important;width:auto!important;white-space:normal!important}
html body[data-active-tab="files"] #content#content#content .ew-workspace .member-name :is(span,img){word-break:normal!important;overflow-wrap:break-word!important;width:auto!important}
html body[data-active-tab="files"] #content#content#content .ew-workspace .member-name .chat-avatar{width:26px!important;height:26px!important;flex:0 0 26px!important}
html body[data-active-tab="files"] #content#content#content .ew-workspace .team-file-details > p{display:flex!important;gap:8px!important;flex-wrap:wrap!important;width:100%!important;margin:18px 0 0!important;padding:0!important;border:0!important}
html body[data-active-tab="files"] #content#content#content .ew-workspace .team-file-details button{width:auto!important;min-width:0!important;flex:0 0 auto!important;max-width:100%!important;font-size:14px!important;line-height:1.4!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;min-height:42px!important;padding:10px 13px!important;margin:0!important}
html body[data-active-tab="files"] #content#content#content .ew-list .ew-subfolder{display:flex!important;align-items:center!important;padding:12px 5px!important;margin:0!important;border:0!important;border-bottom:1px solid var(--ew-line)!important;border-radius:0!important;gap:12px!important;background:transparent!important;min-width:0!important}
html body[data-active-tab="files"] #content#content#content .ew-list .ew-subfolder .collection-open{display:flex!important;flex-direction:row!important;align-items:center!important;gap:12px!important;padding:8px 4px!important;font-size:15px!important;min-width:0!important;width:100%!important;flex:1!important;background:transparent!important;color:inherit!important;border:0!important;text-align:left!important}
html body[data-active-tab="files"] #content#content#content .ew-list .ew-subfolder .collection-open .tag{display:none!important}.ew-subfolder .collection-open strong{font-size:15px!important;line-height:1.4;overflow-wrap:anywhere}.ew-subfolder .collection-arrow{margin-left:auto}
.ew-row-more{position:relative;flex:0 0 auto}.ew-row-more summary{list-style:none;cursor:pointer;padding:4px 10px;font-size:24px;border-radius:7px;line-height:1;min-height:36px}.ew-row-more summary::-webkit-details-marker{display:none}.ew-row-more[open]{z-index:2}.ew-row-more > button{position:absolute;right:0;top:100%;min-width:140px!important;box-shadow:0 6px 18px #0002}.ew-more{margin-top:18px;padding-top:12px;border-top:1px solid var(--ew-line,#ccd8df)}.ew-more summary{font-size:14px;cursor:pointer;padding:8px 0;min-height:40px}.ew-more button{font-size:14px!important;min-height:40px!important;margin:5px 4px 0 0!important}.ew-more .safety-actions{display:flex;flex-wrap:wrap;gap:6px}
.ew-albums{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px;width:100%}
html body[data-active-tab="gallery"] #content.emt-gallery-browser .ew-albums .album-card{display:block!important;padding:0 0 12px!important;margin:0!important;overflow:hidden;border-radius:14px;min-width:0}
html body[data-active-tab="gallery"] #content.emt-gallery-browser .ew-albums .collection-open{display:flex!important;flex-direction:column!important;padding:0!important;gap:10px!important;width:100%!important;text-align:left!important}
html body[data-active-tab="gallery"] #content.emt-gallery-browser .ew-albums .collection-open > :not(.ew-album-cover){margin-left:16px!important;margin-right:16px!important}.ew-albums .collection-open strong{font-size:17px!important;line-height:1.35}
html body[data-active-tab="gallery"] #content.emt-gallery-browser .ew-albums .collection-arrow{display:none!important}
.ew-album-cover{width:100%;height:170px;display:flex;align-items:center;justify-content:center;background:#e8f2f6;color:#5a7c8e;font-size:50px;overflow:hidden}.ew-album-cover img{width:100%;height:100%;object-fit:cover;display:block}html[data-theme="dark"] .ew-album-cover{background:#243039;color:#9fbbc7}.ew-albums .ew-more{margin:12px 16px 0}.ew-albums .ew-more button{margin:4px!important}
html body[data-active-tab="gallery"] #content#content#content .gallerygrid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(190px,1fr))!important;gap:14px!important;width:100%!important;max-width:none!important;align-items:start!important}
html body[data-active-tab="gallery"] #content#content#content .gallery-item{min-width:0!important;height:auto!important;aspect-ratio:4/3!important;position:relative!important;overflow:hidden!important;border-radius:10px!important;background:#e6eef2!important}
html body[data-active-tab="gallery"] #content#content#content .photocard{display:block!important;width:100%!important;height:100%!important;min-height:0!important;aspect-ratio:4/3!important;padding:0!important;margin:0!important;border:0!important;border-radius:10px!important;overflow:hidden!important;background:transparent!important;position:relative!important}
html body[data-active-tab="gallery"] #content#content#content .photocard img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;aspect-ratio:auto!important;object-fit:cover!important;margin:0!important;padding:0!important;background:transparent!important}
html[data-theme="dark"] body[data-active-tab="gallery"] #content#content#content .gallery-item{background:#243039!important}
.ew-gallery-error{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:100%;padding:16px;color:#59717e;font-size:13px;line-height:1.5;text-align:center}.ew-gallery-error[hidden]{display:none!important}html[data-theme="dark"] .ew-gallery-error{color:#c1d0d8}
@media(min-width:1100px){html body:is([data-active-tab="files"],[data-active-tab="gallery"]) > main{padding:16px 24px 40px!important}.ew-workspace{min-height:min(720px,calc(100vh - 300px))}.ew-tree,.ew-list,.ew-preview{max-height:calc(100vh - 285px);min-height:430px;overflow:auto}}
@media(max-width:1199px) and (min-width:861px){.ew-workspace{grid-template-columns:200px minmax(200px,1fr) 310px}.ew-preview{padding:16px}.ew-list{padding:14px}}
@media(max-width:860px){.ew-workspace{grid-template-columns:minmax(0,1fr);min-height:0}.ew-tree{border-right:0;border-bottom:1px solid var(--ew-line);max-height:210px;overflow:auto}.ew-list{min-height:200px}.ew-preview{border-left:0;border-top:1px solid var(--ew-line);padding:20px}.ew-preview:has(.ew-empty){display:none}.ew-albums{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}}
@media(max-width:480px){html body:is([data-active-tab="files"],[data-active-tab="gallery"]) #content > .sectionhead h2{font-size:22px!important;flex-basis:100%!important}.ew-size{display:none}.ew-list-head span{display:none}.ew-list{padding:12px}.ew-tree{padding:10px}.ew-albums{grid-template-columns:minmax(0,1fr)}html body[data-active-tab="gallery"] #content#content#content .gallerygrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.ew-workspace .ew-file-select{font-size:14px!important;gap:10px}.ew-preview{padding:16px}}
/* OneDrive-style list; the preview and folder tree are optional panels. */
.ew-drive-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:0 0 20px;flex-wrap:wrap}.ew-drive-toolbar > div{display:flex;gap:8px;flex-wrap:wrap}.ew-search{display:flex;align-items:center;gap:8px;margin:0!important;padding:0 14px!important;background:#fff;border:1px solid #d7e4eb;border-radius:9px;width:min(420px,100%);min-height:44px}.ew-search > span{font-size:24px;color:#687e89}.ew-search input{border:0!important;background:transparent!important;color:inherit!important;outline:none!important;margin:0!important;min-width:0!important;width:100%!important;padding:10px 0!important;font-size:15px!important}.ew-search:focus-within{outline:2px solid #007b9e;outline-offset:2px}.ew-drive-toolbar button{font-size:14px!important;min-height:42px!important;padding:10px 14px!important;border:1px solid #ccdce3!important;background:transparent!important;color:inherit!important}
.ew-workspace.ew-drive{grid-template-columns:minmax(0,1fr);border-radius:12px}.ew-workspace.ew-drive.ew-preview-open{grid-template-columns:minmax(0,1fr) clamp(340px,29%,480px)}.ew-workspace.ew-drive.ew-tree-open{grid-template-columns:240px minmax(0,1fr)}.ew-workspace.ew-drive.ew-tree-open.ew-preview-open{grid-template-columns:230px minmax(260px,1fr) clamp(340px,27%,440px)}
.ew-drive [hidden]{display:none!important}.ew-drive .ew-list-head,.ew-drive .ew-file-row,html body[data-active-tab="files"] #content#content#content .ew-drive .ew-subfolder{display:grid!important;grid-template-columns:minmax(160px,1fr) 115px minmax(120px,180px) 85px 40px!important;gap:16px!important;align-items:center!important}.ew-drive .ew-file-row[hidden],html body[data-active-tab="files"] #content#content#content .ew-drive .ew-subfolder[hidden]{display:none!important}
.ew-drive .ew-list{padding:12px 20px}.ew-drive .ew-list-head{padding:5px 10px 13px;font-size:13px;min-height:48px}.ew-sort{border:0!important;background:transparent!important;color:inherit!important;font-size:14px!important;font-weight:650!important;text-align:left!important;padding:6px 0!important;min-height:32px!important}.ew-drive .ew-file-row{padding:0 10px;min-height:64px}.ew-drive .ew-file-row.is-selected{background:var(--ew-soft);border-radius:6px;box-shadow:inset 3px 0 var(--ew-accent)}.ew-drive .ew-file-select{padding:12px 0!important;box-shadow:none!important;background:transparent!important}.ew-date,.ew-person,.ew-folder-size{font-size:14px;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:inherit;opacity:.8}.ew-drive .ew-size{font-size:13px;text-align:right}.ew-drive .ew-list-head > :nth-child(4){text-align:right}.ew-name-cell{display:flex;gap:10px;align-items:center;min-width:0}
html body[data-active-tab="files"] #content#content#content .ew-drive .ew-subfolder{padding:6px 10px!important;min-height:64px!important}.ew-drive .ew-subfolder .collection-arrow{display:none!important}.ew-drive .ew-subfolder .collection-open strong{font-weight:500!important;font-size:15px!important}.ew-preview-title{display:flex;justify-content:space-between;align-items:center;margin:0 0 20px;font-size:16px;font-weight:650}.ew-preview-close{font-size:24px!important;padding:4px 10px!important;min-height:36px!important;background:transparent!important;color:inherit!important;line-height:1!important}.ew-drive .ew-preview{background:var(--ew-panel)}
html[data-theme="dark"] .ew-search{background:#171c20;border-color:#35434d;color:#e4edf2}
@media(min-width:1100px){.ew-drive .ew-list,.ew-drive .ew-preview,.ew-drive .ew-tree{min-height:500px;max-height:calc(100vh - 330px)}.ew-workspace.ew-drive{min-height:580px}}
@media(min-width:861px) and (max-width:1250px){.ew-workspace.ew-drive.ew-preview-open{grid-template-columns:minmax(0,1fr) 330px}.ew-workspace.ew-drive.ew-tree-open.ew-preview-open{grid-template-columns:180px minmax(0,1fr) 310px}.ew-drive .ew-list-head,.ew-drive .ew-file-row,html body[data-active-tab="files"] #content#content#content .ew-drive .ew-subfolder{grid-template-columns:minmax(140px,1fr) 80px 34px!important;gap:10px!important}.ew-drive .ew-list-head > :nth-child(2),.ew-drive .ew-list-head > :nth-child(3),.ew-drive .ew-date,.ew-drive .ew-person{display:none!important}}
@media(max-width:860px){.ew-workspace.ew-drive,.ew-workspace.ew-drive.ew-preview-open,.ew-workspace.ew-drive.ew-tree-open,.ew-workspace.ew-drive.ew-tree-open.ew-preview-open{grid-template-columns:minmax(0,1fr)}.ew-drive .ew-preview{border-top:1px solid var(--ew-line);border-left:0}.ew-drive .ew-list-head,.ew-drive .ew-file-row,html body[data-active-tab="files"] #content#content#content .ew-drive .ew-subfolder{grid-template-columns:minmax(0,1fr) 70px 32px!important;gap:8px!important}.ew-drive .ew-list-head > :nth-child(2),.ew-drive .ew-list-head > :nth-child(3),.ew-drive .ew-date,.ew-drive .ew-person{display:none!important}.ew-drive .ew-list{padding:12px}.ew-drive .ew-size{display:block!important}.ew-drive-toolbar > div{width:100%}.ew-drive-toolbar button{flex:1;min-height:44px!important}.ew-search{width:100%;max-width:none}.ew-drive .ew-preview:has(.ew-empty){display:block}.ew-drive .ew-list-head > :nth-child(4){display:block}.ew-drive .ew-list{min-height:200px}}
html body[data-active-tab="files"] #content#content#content .ew-drive :is(.ew-file-select,.ew-sort){background:transparent!important;box-shadow:none!important;color:var(--ew-fg)!important}
.ew-search input{font-weight:400!important}.ew-drive .ew-list-head{background:var(--ew-panel)}
html body[data-active-tab="gallery"] #content#content#content .album-toolbar button{font-size:14px!important;min-height:40px!important;line-height:1.35!important;padding:9px 13px!important}
@media(pointer:coarse){html body[data-active-tab="gallery"] #content#content#content .album-toolbar button{min-height:44px!important}}

.ew-access-areas{margin:12px 0 18px;padding:16px;border:1px solid #cbdce5;border-radius:12px;background:#fff;color:#193746}.ew-area-tabs{display:flex;gap:12px;flex-wrap:wrap}.ew-area-tabs button{min-height:46px!important;padding:10px 18px!important;border:1px solid currentColor!important;font-weight:650!important}.ew-area-tabs button[aria-pressed=true]{background:#006f91!important;color:#fff!important}.ew-access-areas p{font-size:14px;margin:12px 0 0;line-height:1.5}.ew-access-badge{display:block!important;width:max-content;max-width:100%;font-size:12px!important;padding:3px 8px;border-radius:6px;background:var(--ew-soft);color:var(--ew-fg);margin-top:5px}.ew-access-label{font-weight:600;opacity:1!important}.ew-area-review-note{padding:12px;border-inline-start:4px solid #c27800;background:#fff7e2;color:#493000}html[data-theme=dark] .ew-access-areas{background:#171c20;color:#e4edf2;border-color:#35434d}html[data-theme=dark] .ew-area-tabs button[aria-pressed=true]{background:#87d2e7!important;color:#102b34!important}html[data-theme=dark] .ew-area-review-note{background:#332b17;color:#ffe9ae}@media(max-width:700px){.ew-area-tabs button{flex:1;min-width:140px}.ew-access-areas{padding:12px}.ew-access-areas p{font-size:13px}}

html body[data-active-tab="files"] #content#content#content .ew-drive [hidden]{display:none!important}

/* Precise compact controls; scoped to Files, independent of legacy app button rules. */

html body[data-active-tab="files"] #content#content#content{--fm-border:#d4e0e7;--fm-text:#193746;--fm-panel:#fff;--fm-hover:#edf4f7;--fm-muted:#627c8a}
html[data-theme="dark"] body[data-active-tab="files"] #content#content#content{--fm-border:#384b57;--fm-text:#e4edf2;--fm-panel:#19232a;--fm-hover:#263943;--fm-muted:#abc0cd}
html body[data-active-tab="files"] #content#content#content > .sectionhead{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:20px!important;margin:8px 0 12px!important;min-height:38px!important}
html body[data-active-tab="files"] #content#content#content > .sectionhead h2{flex:0 0 auto!important;font-size:22px!important;line-height:30px!important;margin:0!important}
html body[data-active-tab="files"] #content#content#content .ew-access-areas{flex:1 1 auto!important;min-width:0!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important;color:var(--fm-text)!important}
.ew-area-label{display:flex;align-items:center;gap:8px;font-size:13px;white-space:nowrap}
html body[data-active-tab="files"] #content#content#content .ew-main-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;flex:0 0 auto!important;gap:6px!important;margin:0!important}
html body[data-active-tab="files"] #content#content#content :is(.ew-main-actions>button,.ew-toolbar-menu>summary,.ew-row-more>summary,.ew-preview-close){box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:0!important;max-width:none!important;flex:0 0 auto!important;height:36px!important;min-height:36px!important;padding:0 12px!important;margin:0!important;border:1px solid var(--fm-border)!important;border-radius:6px!important;background:var(--fm-panel)!important;color:var(--fm-text)!important;font:500 13px/1.2 system-ui,sans-serif!important;white-space:nowrap!important;box-shadow:none!important;cursor:pointer!important;vertical-align:middle!important}
html body[data-active-tab="files"] #content#content#content .ew-main-actions>#add{background:#007898!important;border-color:#007898!important;color:white!important;font-weight:600!important}
html body[data-active-tab="files"] #content#content#content .ew-area-label select{box-sizing:border-box!important;display:inline-block!important;width:160px!important;height:36px!important;min-height:36px!important;padding:0 26px 0 10px!important;margin:0!important;border:1px solid var(--fm-border)!important;border-radius:6px!important;font:500 13px/1.2 system-ui,sans-serif!important;background:var(--fm-panel)!important;color:var(--fm-text)!important}
html body[data-active-tab="files"] #content#content#content :is(.ew-toolbar-menu,.ew-row-more){box-sizing:border-box!important;display:block!important;position:relative!important;width:auto!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.ew-toolbar-menu>summary,.ew-row-more>summary{list-style:none!important}.ew-toolbar-menu>summary::-webkit-details-marker,.ew-row-more>summary::-webkit-details-marker{display:none}
.ew-toolbar-menu>summary::after,.ew-row-more>summary::after{content:'';width:5px;height:5px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:-3px 0 0 9px;opacity:.65}
html body[data-active-tab="files"] #content#content#content .ew-row-more>summary{height:30px!important;min-height:30px!important;font-size:12px!important;padding:0 9px!important;border-color:transparent!important;background:transparent!important}
html body[data-active-tab="files"] #content#content#content :is(.ew-toolbar-menu>summary,.ew-row-more>summary,.ew-main-actions>button):hover{background:var(--fm-hover)!important}
html body[data-active-tab="files"] #content#content#content .ew-toolbar-menu:not([open])>.ew-menu-panel,html body[data-active-tab="files"] #content#content#content .ew-row-more:not([open])>.ew-menu-panel{display:none!important}
html body[data-active-tab="files"] #content#content#content :is(.ew-toolbar-menu,.ew-row-more)[open]>.ew-menu-panel{box-sizing:border-box!important;position:fixed!important;display:flex!important;flex-direction:column!important;gap:2px!important;width:232px!important;max-width:calc(100vw - 24px)!important;min-width:0!important;max-height:calc(100dvh - 24px)!important;overflow-y:auto!important;padding:5px!important;margin:0!important;border:1px solid var(--fm-border)!important;border-radius:8px!important;background:var(--fm-panel)!important;color:var(--fm-text)!important;box-shadow:0 8px 24px #102b3426!important;z-index:1000!important}
html body[data-active-tab="files"] #content#content#content .ew-menu-panel>:is(button,a,label){box-sizing:border-box!important;position:static!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:none!important;min-height:34px!important;height:auto!important;padding:8px 10px!important;margin:0!important;border:0!important;border-radius:4px!important;background:transparent!important;color:inherit!important;font:400 13px/1.35 system-ui,sans-serif!important;text-align:left!important;white-space:normal!important;word-break:normal!important;box-shadow:none!important;text-decoration:none!important}
html body[data-active-tab="files"] #content#content#content .ew-menu-panel>label{display:block!important;color:var(--fm-muted)!important;font-size:12px!important}
html body[data-active-tab="files"] #content#content#content .ew-menu-panel select{box-sizing:border-box;width:100%;max-width:100%;height:34px;margin-top:6px;padding:0 6px;border:1px solid var(--fm-border);border-radius:4px;font:13px system-ui;background:var(--fm-panel);color:var(--fm-text)}
html body[data-active-tab="files"] #content#content#content .ew-menu-panel>:is(button,a):hover{background:var(--fm-hover)!important}
html body[data-active-tab="files"] #content#content#content .ew-row-more .ew-menu-panel>button:last-child{color:#b32e34!important;border-top:1px solid var(--fm-border)!important;border-radius:0!important;margin-top:4px!important;padding-top:10px!important}
html[data-theme="dark"] body[data-active-tab="files"] #content#content#content .ew-row-more .ew-menu-panel>button:last-child{color:#ff9fa5!important}
html body[data-active-tab="files"] #content#content#content .folderpath{display:flex!important;gap:6px!important;align-items:center!important;min-height:28px!important;margin:0 0 8px!important;font-size:13px!important}
html body[data-active-tab="files"] #content#content#content .folderpath button{display:inline-flex!important;align-items:center!important;width:auto!important;min-height:28px!important;padding:3px 6px!important;margin:0!important;border:0!important;border-radius:4px!important;background:transparent!important;color:var(--fm-text)!important;font-size:13px!important;line-height:20px!important}
html body[data-active-tab="files"] #content#content#content .ew-drive-toolbar{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:nowrap!important;gap:12px!important;margin:0 0 10px!important;padding:0!important}
html body[data-active-tab="files"] #content#content#content .ew-search{box-sizing:border-box!important;display:flex!important;align-items:center!important;gap:8px!important;flex:0 1 340px!important;width:340px!important;max-width:100%!important;height:36px!important;padding:0 10px!important;margin:0!important;border:1px solid var(--fm-border)!important;border-radius:6px!important;background:var(--fm-panel)!important;color:var(--fm-muted)!important}
html body[data-active-tab="files"] #content#content#content .ew-search input{box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:0!important;height:34px!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--fm-text)!important;font:400 13px/1.3 system-ui,sans-serif!important;box-shadow:none!important}
html body[data-active-tab="files"] #content#content#content .ew-drive :is(.ew-list-head,.ew-file-row,.ew-subfolder){grid-template-columns:minmax(150px,1fr) 108px 88px 84px!important;gap:12px!important;align-items:center!important}
.ew-drive .ew-list-head>:nth-child(3),.ew-drive .ew-person{display:none!important}
html body[data-active-tab="files"] #content#content#content .ew-drive .ew-subfolder{min-height:54px!important;padding:4px 0!important}
html body[data-active-tab="files"] #content#content#content .ew-drive .ew-subfolder .collection-open{padding:4px 8px!important;min-height:44px!important;gap:10px!important;justify-content:flex-start!important}
html body[data-active-tab="files"] #content#content#content .ew-drive .collection-open strong{font-size:14px!important;font-weight:500!important}
html body[data-active-tab="files"] #content#content#content .ew-drive .ew-file-select{padding:8px!important;min-height:50px!important;font-size:14px!important}
html body[data-active-tab="files"] #content#content#content .ew-access-badge{display:none!important}
html body[data-active-tab="files"] #content#content#content .ew-access-label{font-size:11px!important;font-weight:400!important;color:var(--fm-muted)!important;margin-top:2px!important}
html body[data-active-tab="files"] #content#content#content .ew-drive .ew-list{padding:8px 16px!important}
html body[data-active-tab="files"] #content#content#content .ew-drive .ew-list-head{min-height:40px!important;padding:4px 8px!important;font-size:12px!important}
html body[data-active-tab="files"] #content#content#content .ew-drive .ew-sort{min-height:28px!important;padding:2px 0!important;font:600 12px/1.3 system-ui!important}
html body[data-active-tab="files"] #content#content#content .ew-drive .ew-folder{min-height:34px!important;padding:6px 8px!important;font-size:13px!important;line-height:1.45!important}
html body[data-active-tab="files"] #content#content#content .ew-drive .ew-branch{min-height:34px!important;font-size:15px!important}
.ew-trash-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #ccd8df}.ew-trash-row small{flex:1}
html body[data-active-tab="files"] #content#content#content :is(button,summary,select,input):focus-visible{outline:2px solid #008cad!important;outline-offset:2px!important}
html body[data-active-tab="files"] #content#content#content .ew-drive [hidden]{display:none!important}
@media(max-width:1000px){html body[data-active-tab="files"] #content#content#content .ew-drive :is(.ew-list-head,.ew-file-row,.ew-subfolder){grid-template-columns:minmax(0,1fr) 78px 84px!important;gap:8px!important}.ew-drive .ew-date,.ew-drive .ew-list-head>:nth-child(2){display:none!important}}
@media(max-width:700px){html body[data-active-tab="files"] #content#content#content > .sectionhead{display:grid!important;grid-template-columns:1fr auto!important;gap:10px!important}html body[data-active-tab="files"] #content#content#content .ew-access-areas{justify-self:end!important}html body[data-active-tab="files"] #content#content#content .ew-main-actions{grid-column:1/-1!important;justify-content:flex-start!important;flex-wrap:wrap!important}html body[data-active-tab="files"] #content#content#content .ew-area-label{font-size:0!important;gap:0!important}html body[data-active-tab="files"] #content#content#content .ew-area-label select{width:152px!important}html body[data-active-tab="files"] #content#content#content .ew-drive .ew-list{padding:6px 10px!important}}
@media(pointer:coarse){html body[data-active-tab="files"] #content#content#content :is(.ew-main-actions>button,.ew-toolbar-menu>summary,.ew-row-more>summary,.ew-area-label select){height:42px!important;min-height:42px!important}html body[data-active-tab="files"] #content#content#content .ew-menu-panel>:is(button,a){min-height:42px!important}}

/* One place to browse: visible access choices, no parallel folder tree. */
html body[data-active-tab="files"] #content#content#content .ew-access-areas{margin:0 0 18px!important;padding:0!important;border-bottom:1px solid var(--fm-border)!important}
.fm-area-switch{display:flex;gap:24px}
html body[data-active-tab="files"] #content#content#content .fm-area-switch button{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:44px!important;width:auto!important;margin:0!important;padding:8px 2px!important;border:0!important;border-bottom:3px solid transparent!important;border-radius:0!important;background:transparent!important;color:var(--fm-muted)!important;font:500 14px/1.3 system-ui!important;white-space:nowrap!important;cursor:pointer}
html body[data-active-tab="files"] #content#content#content .fm-area-switch button[aria-pressed=true]{color:var(--fm-text)!important;border-bottom-color:#0085a6!important;font-weight:650!important}
html body[data-active-tab="files"] #content#content#content > .sectionhead{justify-content:space-between!important;margin-bottom:10px!important}
html body[data-active-tab="files"] #content#content#content .ew-drive-toolbar>.ew-preview-toggle{display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;min-height:36px!important;height:36px!important;width:auto!important;padding:0 12px!important;margin:0!important;border:1px solid var(--fm-border)!important;border-radius:6px!important;background:var(--fm-panel)!important;color:var(--fm-text)!important;font:500 13px system-ui!important;white-space:nowrap!important;flex:0 0 auto!important}
html body[data-active-tab="files"] #content#content#content .ew-drive-toolbar .ew-search{margin-right:auto!important}
html body[data-active-tab="files"] #content#content#content .folderpath .fm-back{border:1px solid var(--fm-border)!important;background:var(--fm-panel)!important;margin-right:10px!important;padding:3px 9px!important}
html body[data-active-tab="files"] #content#content#content .ew-drive .ew-tree{display:none!important}
@media(max-width:700px){html body[data-active-tab="files"] #content#content#content > .sectionhead{display:flex!important;flex-wrap:wrap!important}html body[data-active-tab="files"] #content#content#content .ew-drive-toolbar{flex-wrap:wrap!important}.ew-drive-toolbar .ew-search{flex-basis:100%!important;width:100%!important}.fm-area-switch{gap:24px}.folderpath{flex-wrap:wrap}}
.ew-destination{--dp-line:#d4e0e7;--dp-fg:#193746;--dp-bg:#fff;--dp-soft:#eff5f8;color:var(--dp-fg);font:14px/1.4 system-ui,sans-serif;min-width:0}
html[data-theme=dark] .ew-destination{--dp-line:#3b505d;--dp-fg:#e4edf2;--dp-bg:#19232a;--dp-soft:#263943}
.ew-destination *{box-sizing:border-box!important}.ew-destination-source,.ew-destination-target{padding:10px 12px!important;margin:0 0 12px!important;border:1px solid var(--dp-line)!important;border-radius:7px!important;overflow-wrap:anywhere!important}.ew-destination-source small,.ew-destination-target small{display:block;font-size:12px;color:var(--dp-fg);opacity:.7;margin-bottom:4px}.ew-destination-target{margin:12px 0 0!important;background:var(--dp-soft)!important}.ew-destination-target strong{display:block}.ew-destination-target>span{display:block;font-size:12px;margin-top:6px;opacity:.8}
.ew-destination-search{display:block!important;font-size:12px!important;font-weight:500!important;margin:0 0 10px!important}.ew-destination-search input{display:block!important;width:100%!important;height:36px!important;min-height:36px!important;margin:5px 0 0!important;padding:0 10px!important;border:1px solid var(--dp-line)!important;border-radius:6px!important;background:var(--dp-bg)!important;color:var(--dp-fg)!important;font:14px system-ui!important}
.ew-destination-path,.ew-destination-topics{display:flex;align-items:center;flex-wrap:wrap;gap:4px;margin-bottom:8px;min-width:0}.ew-destination button{float:none!important;position:static!important;max-width:100%!important;margin:0!important;border-radius:5px!important;font:14px/1.4 system-ui!important;box-shadow:none!important;color:var(--dp-fg)!important;cursor:pointer!important}
.ew-destination-path button,.ew-destination-topics button{display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;min-height:34px!important;width:auto!important;padding:5px 8px!important;border:1px solid var(--dp-line)!important;background:var(--dp-bg)!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:left!important}.ew-destination-topics button[aria-pressed=true]{background:var(--dp-soft)!important;border-color:#0085a6!important}
.ew-destination-list{max-height:min(260px,32dvh);overflow:auto;border:1px solid var(--dp-line);border-radius:6px;padding:4px;background:var(--dp-bg)}.ew-destination-list>button{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;width:100%!important;min-height:44px!important;padding:8px 10px!important;text-align:left!important;background:var(--dp-bg)!important;border:0!important;white-space:normal!important}.ew-destination-list>button:hover{background:var(--dp-soft)!important}.ew-destination-list>button>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}.ew-destination-list strong{font-weight:500}.ew-destination-list small{display:block;font-size:12px;opacity:.75;margin-top:3px;overflow-wrap:anywhere}.ew-destination-list p{font-size:13px;padding:8px 10px;margin:0;opacity:.8}.ew-destination [hidden]{display:none!important}.ew-destination button:focus-visible{outline:2px solid #0085a6!important;outline-offset:1px}
dialog:has(.ew-destination){box-sizing:border-box!important;width:min(600px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important;overflow-y:auto!important;padding:20px!important}

.ew-selection{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 10px;font-size:13px}.ew-selection button{font:500 13px system-ui!important;min-height:34px!important;width:auto!important;padding:6px 10px!important;margin:0!important;border:1px solid #cbdce5;border-radius:5px}.ew-selection [hidden]{display:none!important}.ew-drop-target{outline:2px solid #0085a6!important;outline-offset:-2px;background:#e1f4fa!important}.ew-dragging{opacity:.5}html[data-theme=dark] .ew-drop-target{background:#183e4a!important}.ew-file-row[draggable=true],.ew-subfolder[draggable=true]{cursor:grab}
