/* Structured explorer: the reference's sidebar, file canvas and inspector. */
:root:not([data-theme=dark]){--bg:#f0f5fb;--panel:#fff;--panel2:#f7faff;--sidebar:#f8fbff;--border:#e5ecf6;--tint:#e5f0ff;--accent:#1677ff;--accent-dark:#0965df;--text:#1d2a3d;--muted:#7b899d}
:root[data-theme=dark]{--bg:#101825;--panel:#182436;--panel2:#1b2a3f;--sidebar:#142033;--border:#2a3a51;--tint:#233f64}
.structured-shell{grid-template-columns:236px minmax(0,1fr);min-height:calc(100dvh - 28px);margin:14px;border:1px solid var(--border);border-radius:20px;background:var(--panel);overflow:hidden;box-shadow:0 12px 40px #16427606}
.structured-shell .sidebar{left:15px;top:15px;bottom:15px;width:235px;padding:27px 17px 17px;border-radius:19px 0 0 19px;background:linear-gradient(145deg,var(--panel),var(--sidebar));border-right:1px solid var(--border)}
.structured-shell .sidebar .brand{margin:0 8px 27px;font-size:24px;letter-spacing:-.8px;flex-shrink:0}.structured-shell .brand img{width:34px;height:34px}.sidebar-scroll{min-height:0;flex:1;overflow-y:auto;scrollbar-width:thin}
.structured-shell .nav{gap:6px}.structured-shell .nav-btn{padding:11px 12px;min-height:42px;border-radius:10px;font-size:13px;color:var(--text);font-weight:500}.structured-shell .nav-btn.active{color:var(--accent-dark);background:var(--tint);font-weight:650}.structured-shell .nav-btn>.icon{width:20px;height:20px}
.spaces-section{margin:26px 0 22px}.spaces-heading{display:flex;align-items:center;justify-content:space-between;margin:0 7px 9px}.spaces-heading h2{font-size:10px;font-weight:600;letter-spacing:1.4px;color:var(--muted);margin:0}.spaces-heading .icon-btn{height:25px;width:25px}
.structured-shell .folder-tree{border:0;padding:0;background:transparent;overflow:visible}.structured-shell .tree-row{height:35px;gap:0;border-radius:8px}.structured-shell .tree-toggle{width:16px}.structured-shell .tree-folder{font-size:12px;gap:8px;height:32px}.structured-shell .tree-folder .icon{color:var(--accent);fill:#1682ff20;width:19px;height:19px;stroke-width:1.7}.structured-shell .tree-toggle .icon{width:10px}.structured-shell .tree-row.current{background:var(--tint)}
.add-space{display:flex;align-items:center;gap:8px;padding:7px 9px;background:transparent;color:var(--muted);font-size:11px;border-radius:8px;width:100%;text-align:left}.add-space:hover{background:var(--tint);color:var(--accent-dark)}.add-space .icon{width:15px;height:15px}.spaces-empty{font-size:11px;color:var(--muted);padding:0 10px}
.admin-navigation .section-label{margin:0 11px 8px;font-size:9px;letter-spacing:1.2px}.admin-navigation .nav{gap:2px}.admin-navigation .nav-btn{font-size:11px;min-height:33px;padding:7px 11px}.admin-navigation .nav-btn .icon{height:16px;width:16px}
.structured-shell .sidebar-bottom{padding-top:12px;flex-shrink:0}.structured-shell .storage-box{background:transparent;border:0;padding:9px 10px 12px;margin:0;border-radius:0}.structured-shell .storage-title{font-size:12px;font-weight:550}.structured-shell .storage-title span{font-size:10px}.structured-shell .progress{height:8px;margin:12px 0 8px;border-radius:12px;background:var(--border)}.structured-shell .storage-caption{font-size:10px}.structured-shell .sidebar-foot{margin-top:0;padding:11px 8px 0;border-top:1px solid var(--border);gap:8px;min-width:0}.structured-shell .sidebar-foot>span{font-size:9px}.structured-shell .server-status{padding:0;font-size:9px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:111px}
.structured-shell .main-shell{min-height:calc(100dvh - 30px);display:flex;flex-direction:column;min-width:0}.structured-shell .topbar{height:79px;min-height:79px;padding:16px 26px;gap:18px;background:var(--panel);border:0}.structured-shell .search-wrap{width:520px;max-width:65%;margin-right:auto}.structured-shell .search-wrap input{background:var(--bg);border-color:transparent;border-radius:17px;font-size:12px;padding:11px 54px 11px 39px}.structured-shell .search-wrap>.icon{top:12px}.structured-shell .search-wrap kbd{top:11px;background:var(--panel);font-size:9px}.structured-shell .top-actions{gap:10px}.structured-shell .top-actions>.icon-btn{height:35px;width:35px;border:1px solid var(--border);border-radius:12px;background:var(--panel)}.structured-shell .account-text{display:none}.structured-shell .account .avatar{height:36px;width:36px;background:var(--tint);color:var(--accent-dark);font-size:12px}
.structured-shell .main-content.explorer-content{padding:0;height:calc(100dvh - 109px);margin:0;flex:1;min-height:0;max-width:none;background:var(--panel)}
.structured-explorer{border:0;border-radius:0;min-height:0;background:var(--panel)}.structured-explorer .explorer-heading{padding:16px 26px 14px;border:0;min-height:68px}.explorer-title{display:flex;align-items:center;gap:10px;min-width:0}.explorer-title>span{font-size:17px;color:var(--muted)}.explorer-title>.icon{color:var(--muted);width:16px}.structured-explorer .explorer-title h1{font-size:20px;letter-spacing:-.35px;font-weight:650;line-height:1.4;margin:0}.structured-explorer .heading-actions{gap:10px}.structured-explorer .heading-actions .btn{border-radius:9px;min-height:37px;padding:8px 14px;font-size:12px}.structured-explorer .btn.primary{color:white;box-shadow:0 3px 7px #1677ff20}
:root[data-theme=dark] .structured-explorer .btn.primary{color:#102542}
.structured-explorer .explorer-navigation{background:var(--panel);border:0;padding:0 26px 13px;gap:8px;min-height:42px}.structured-explorer .history-buttons .icon-btn{width:24px;height:26px;border-radius:7px}.structured-explorer .history-buttons .icon-btn .icon{height:15px;width:15px}.structured-explorer .explorer-path{font-size:11px;flex:1}.structured-explorer .explorer-path button{padding:4px 5px}.structured-explorer .explorer-display{margin-left:auto;flex-shrink:0;gap:8px}.structured-explorer .view-switch{background:var(--panel2);border-color:var(--border)}.structured-explorer .sort-select{background:var(--panel);border-color:transparent;font-size:11px;min-height:29px}
.structured-explorer .explorer-workspace{grid-template-columns:minmax(0,1fr) 274px;border-top:1px solid var(--border);min-height:0}.structured-explorer.details-hidden .explorer-workspace{grid-template-columns:minmax(0,1fr)}.structured-explorer.details-hidden .file-details{display:none}
.structured-explorer .explorer-files{min-width:0;min-height:0;display:flex;flex-direction:column}.structured-explorer .file-toolbar{padding:10px 24px 6px;border:0;min-height:42px;gap:6px}.structured-explorer .filter{font-size:10px;border-radius:7px;min-height:25px;padding:4px 9px}.result-count{font-size:10px;color:var(--muted);margin-left:auto}.structured-explorer .explorer-selection{min-height:34px;border:0;padding:3px 24px 6px;font-size:10px;color:var(--muted)}.structured-explorer .explorer-selection:has(button){background:var(--panel2);margin:0 24px 6px;padding:4px 9px;border-radius:8px;min-height:34px}.structured-explorer .explorer-selection .btn{font-size:10px;min-height:27px;padding:3px 5px}.structured-explorer .explorer-selection .btn .icon{height:14px;width:14px}
.files-scroll{overflow:auto;flex:1;min-height:0;scrollbar-width:thin}.structured-explorer #file-results{overflow:visible;flex:none;min-height:0}.structured-explorer .file-grid{padding:10px 24px 20px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.structured-explorer.details-hidden .file-grid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}
.structured-explorer .grid-file{position:relative;display:flex;flex-direction:column;min-width:0;min-height:184px;padding:12px 12px 13px;border:1px solid var(--border);border-radius:11px;background:linear-gradient(150deg,var(--panel),var(--panel2));box-shadow:0 1px 2px #15335403;outline:none;transition:border-color .12s,box-shadow .12s,background .12s;cursor:default}.structured-explorer .grid-file:hover{border-color:#9ec8ff;box-shadow:0 3px 12px #1677ff0a;background:var(--panel2)}.structured-explorer .grid-file.selected{border:2px solid #89beff;padding:11px 11px 12px;background:var(--tint);box-shadow:0 0 0 2px #1677ff12}.structured-explorer .grid-file:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.structured-explorer .file-card-visual{height:113px;min-width:0;display:flex;align-items:center;justify-content:center;margin-bottom:9px;pointer-events:none}.folder-art{display:block;width:88px;height:70px;flex-shrink:0}.structured-explorer .grid-file .file-open{display:block;font-size:12px;font-weight:600;margin:0 0 5px;width:100%;line-height:1.35;text-align:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:none}.structured-explorer .card-meta{color:var(--muted);font-size:10px;padding-right:32px}.structured-explorer .grid-file .row-actions{position:absolute;bottom:7px;right:6px;margin:0;opacity:0;gap:0}.structured-explorer .grid-file:hover .row-actions,.structured-explorer .grid-file.selected .row-actions,.structured-explorer .grid-file:focus-within .row-actions{opacity:1}.structured-explorer .grid-file .row-actions .icon-btn{height:23px;width:23px;border-radius:7px}.structured-explorer .grid-file .row-actions .icon{width:14px;height:14px}.structured-explorer .grid-file .card-select{position:absolute;top:9px;left:9px;z-index:1;margin:0;width:14px;height:14px;opacity:0;accent-color:var(--accent)}.structured-explorer .grid-file:hover .card-select,.structured-explorer .grid-file.selected .card-select,.structured-explorer .grid-file:focus-within .card-select{opacity:1}
.document-art{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:62px;height:78px;background:var(--panel);color:#4482c8;border:2px solid #a9bdd5;border-radius:5px 15px 5px 5px;box-shadow:0 2px 4px #1940740b}.document-art>.icon{width:33px;height:35px;stroke-width:1.1}.document-art>b{font-family:"Segoe UI",Arial,sans-serif;font-size:10px;font-weight:750;line-height:1;margin-top:5px;letter-spacing:.2px}.document-art.pdf{color:#e86262;border-color:#ecc2c2}.document-art.sheet{color:#168fa1;border-color:#a4ced6}.document-art.archive{color:#8462bf;border-color:#c8b8e2}.document-art.cad{color:#6c788b;border-color:#bec9d5}
.image-visual{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:7px;background:var(--panel2)}.image-visual>.document-art{position:absolute;opacity:.3}.file-preview{position:relative;width:100%;height:100%;display:block;object-fit:cover;border-radius:7px;color:transparent}.preview-unavailable>.file-preview{display:none}.image-visual.preview-unavailable>.document-art{position:relative;opacity:1}
.structured-explorer .explorer-empty{height:auto;min-height:280px;padding:45px 24px}.structured-explorer .explorer-empty h2{font-size:15px}.structured-explorer .explorer-empty p{font-size:12px}.structured-explorer .explorer-status{background:var(--panel);font-size:10px;padding:10px 24px;border-top:1px solid var(--border)}
.recent-section{margin:0 24px 26px;border-top:1px solid var(--border);padding-top:17px}.recent-section[hidden]{display:none}.recent-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}.recent-heading h2{font-size:15px;font-weight:650;margin:0}.recent-heading>button{background:transparent;color:var(--muted);display:flex;align-items:center;gap:3px;font-size:10px;padding:4px}.recent-heading>button .icon{height:13px;width:13px}.recent-list{display:flex;flex-direction:column}.recent-row{display:flex;align-items:center;gap:12px;min-height:55px;padding:9px 7px;border-bottom:1px solid var(--border);font-size:11px;border-radius:6px}.recent-row:last-child{border-bottom:0}.recent-row:hover,.recent-row.inspected{background:var(--panel2)}.recent-visual{width:35px;height:35px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.recent-visual .document-art{height:33px;width:26px;border-width:1px;border-radius:3px 7px 3px 3px;box-shadow:none}.recent-visual .document-art>.icon{width:15px;height:16px}.recent-visual .document-art>b{font-size:5px;margin-top:1px}.recent-visual .folder-art{width:35px;height:30px}.recent-name{padding:4px 0;background:transparent;color:var(--text);text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:11px;font-weight:550}.recent-date{font-size:10px;color:var(--muted);flex:0 0 112px}.recent-size{font-size:10px;color:var(--muted);flex:0 0 54px;text-align:right}.recent-row>.icon-btn{height:25px;width:25px}
.file-details{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:auto;border-left:1px solid var(--border);background:var(--panel);scrollbar-width:thin}.details-header{display:flex;align-items:center;justify-content:space-between;height:36px;min-height:36px;padding:4px 16px;margin-top:6px}.details-header>span{font-size:9px;color:var(--muted);letter-spacing:1.2px}.details-header>.icon-btn{height:26px;width:26px}.details-preview{height:208px;min-height:208px;margin:14px 20px 0;border:1px solid var(--border);border-radius:9px;overflow:hidden;background:var(--panel2);display:flex;align-items:center;justify-content:center;position:relative}.details-preview>.folder-art{width:124px;height:100px}.details-preview>.document-art{width:88px;height:110px}.details-preview>.document-art .icon{width:47px;height:50px}.details-preview>.document-art b{font-size:13px}.details-preview .image-visual{border-radius:0}.details-preview .file-preview{border-radius:0}.preview-error-note{display:none}.details-preview.preview-unavailable .preview-error-note{display:block;position:absolute;bottom:9px;font-size:10px;color:var(--muted);background:var(--panel);padding:3px 7px;border-radius:6px}.details-title{padding:18px 20px 13px;min-width:0}.details-title h2{font-size:14px;line-height:1.45;font-weight:650;margin:0 0 5px;overflow-wrap:anywhere}.details-title p{font-size:10px;color:var(--muted);margin:0;overflow-wrap:anywhere}.details-tabs{display:flex;gap:22px;border-bottom:1px solid var(--border);padding:0 20px}.details-tabs>button{background:transparent;color:var(--muted);font-size:11px;padding:10px 0;border-bottom:2px solid transparent}.details-tabs>button[aria-selected=true]{color:var(--accent);border-bottom-color:var(--accent);font-weight:600}.details-body{padding:12px 20px 14px;font-size:11px}.details-body .metric-line{font-size:10px;border:0;gap:10px;padding:8px 0}.details-body .metric-line>span:first-child{color:var(--muted);flex-shrink:0}.details-body .metric-line>span:last-child{text-align:right;overflow-wrap:anywhere}.details-location{background:transparent;color:var(--accent);text-align:right;padding:0;font-size:10px;overflow-wrap:anywhere}.details-people{display:flex;gap:7px;flex-wrap:wrap;align-items:center;padding:18px 0 4px}.details-people .avatar{height:29px;width:29px;font-size:10px;background:var(--tint);color:var(--accent-dark)}.details-people>span:last-child{font-size:9px;color:var(--muted);flex-basis:100%;padding-top:3px}.add-person{border:0}.add-person .icon{height:15px;width:15px}.details-actions{display:flex;flex-wrap:wrap;gap:7px;padding:8px 20px 20px;margin-top:auto;align-items:center}.details-actions .btn{font-size:10px;flex:1;min-height:34px;padding:7px 9px;border-radius:8px}.details-actions .btn .icon{width:14px;height:14px}.details-actions>.icon-btn{background:var(--panel2);height:33px;width:33px;border-radius:8px}.details-actions .details-download{flex-basis:100%;order:2}.details-context{padding:0 20px;font-size:11px;color:var(--muted)}.details-context p{font-size:11px;line-height:1.8}.details-context .metric-line{font-size:11px}.details-context .metric-line>span:last-child{color:var(--text)}.context-preview{background:linear-gradient(145deg,var(--panel2),var(--tint));border:0}.details-group{padding:35px 20px;text-align:center}.details-group>.icon{height:45px;width:45px;color:var(--accent)}.details-group h2{font-size:16px}.details-group p{font-size:12px;color:var(--muted)}.details-sharing{padding:14px 0;text-align:center;color:var(--muted)}.details-sharing>.icon{height:27px;width:27px;color:var(--accent)}.details-sharing h3{font-size:12px;color:var(--text);margin:10px 0}.details-sharing p{font-size:11px;line-height:1.75}.details-share-row{display:flex;align-items:center;gap:9px;padding:10px 0;border-bottom:1px solid var(--border)}.details-share-row .avatar{width:29px;height:29px;font-size:10px}.details-share-row strong{font-size:10px;font-weight:550;display:block;overflow-wrap:anywhere}.details-share-row small{font-size:9px;color:var(--muted);display:block}
@media(min-width:1700px){.structured-explorer .file-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.structured-explorer .explorer-workspace{grid-template-columns:minmax(0,1fr) 300px}.details-preview{height:230px;min-height:230px}}
@media(max-width:1100px){.structured-explorer .explorer-workspace{grid-template-columns:minmax(0,1fr)}.structured-explorer .file-details{display:none}.structured-explorer .file-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.structured-explorer.details-mobile-open .file-details{display:flex;position:fixed;top:94px;bottom:22px;right:24px;width:300px;z-index:35;border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow)}.structured-shell .search-wrap{max-width:70%}.structured-shell .folder-tree{display:block}}
@media(max-width:760px){.structured-shell{margin:0;border:0;border-radius:0;min-height:100dvh;grid-template-columns:minmax(0,1fr)}.structured-shell .sidebar{left:0;top:0;bottom:0;width:236px;border-radius:0;padding:24px 16px 16px}.structured-shell .main-shell{min-height:100dvh;grid-column:1}.structured-shell .topbar{height:66px;min-height:66px;padding:10px 13px;gap:8px;border-bottom:1px solid var(--border)}.structured-shell .search-wrap{max-width:none;min-width:0;flex:1;width:auto}.structured-shell .search-wrap input{font-size:11px;padding:9px 8px 9px 31px;border-radius:13px}.structured-shell .search-wrap>.icon{left:10px;top:11px;width:14px}.structured-shell .search-wrap kbd{display:none}.structured-shell .top-actions{gap:6px}.structured-shell .top-actions>.icon-btn{height:29px;width:29px;border-radius:9px}.structured-shell .top-actions>.icon-btn[data-action=theme]{display:none}.structured-shell .account .avatar{height:29px;width:29px;font-size:10px}.structured-shell .main-content.explorer-content{height:calc(100dvh - 66px);padding:0}.structured-explorer .explorer-heading{padding:16px 16px 10px;min-height:0;gap:13px}.structured-explorer .explorer-title h1{font-size:19px}.explorer-title>span{font-size:14px}.structured-explorer .heading-actions .btn{min-height:35px;padding:7px 10px;font-size:11px}.structured-explorer .explorer-navigation{padding:0 13px 8px;gap:5px;flex-wrap:wrap}.structured-explorer .explorer-path{font-size:10px;min-width:100px}.structured-explorer .explorer-display{margin-left:0;gap:6px;width:100%;justify-content:space-between;padding-top:4px}.structured-explorer .file-toolbar{padding:10px 16px 3px;min-height:35px}.structured-explorer .filter{padding:3px 7px;font-size:10px}.structured-explorer .result-count{display:none}.structured-explorer .explorer-selection{padding:3px 16px 6px;min-height:30px;font-size:9px}.structured-explorer .explorer-selection:has(button){margin:0 12px 4px;padding:4px 6px}.structured-explorer .explorer-selection .btn{font-size:0}.structured-explorer .file-grid,.structured-explorer.details-hidden .file-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;padding:9px 16px 18px}.structured-explorer .grid-file{min-height:172px;padding:10px}.structured-explorer .grid-file.selected{padding:9px}.structured-explorer .file-card-visual{height:102px;margin-bottom:8px}.structured-explorer .grid-file .file-open{font-size:11px}.structured-explorer .card-meta{font-size:10px}.structured-explorer .grid-file .card-select{opacity:1}.structured-explorer .grid-file .row-actions{opacity:1}.structured-explorer .grid-file .row-actions .icon-btn{width:23px}.structured-explorer .folder-art{width:78px;height:64px}.structured-explorer .explorer-status{padding:9px 16px;font-size:9px}.recent-section{margin:0 16px 18px;padding-top:14px}.recent-heading h2{font-size:14px}.recent-row{gap:8px;padding:8px 1px;min-height:50px}.recent-name{font-size:10px}.recent-date{display:none}.recent-size{font-size:9px;flex-basis:45px}.recent-visual{width:30px;height:30px}.recent-row>.icon-btn{width:22px;height:22px}.structured-explorer.details-mobile-open .file-details{top:76px;bottom:10px;left:10px;right:10px;width:auto}.details-preview{height:200px;min-height:200px;margin:8px 20px 0}.structured-explorer .details-preview .folder-art{width:124px;height:100px}.details-title h2{font-size:16px}.details-title p,.details-body .metric-line,.details-location{font-size:12px}.details-tabs>button{font-size:12px}.details-actions .btn{font-size:12px}.details-actions .details-download{flex-basis:auto;order:0}.details-header>span{font-size:10px}.details-context p{font-size:12px}.structured-explorer .explorer-empty{min-height:240px;padding:40px 16px}}
@media(prefers-reduced-motion:reduce){.structured-explorer .grid-file{transition:none}}
