:root {
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  color: #252931; background: #fff; font-size: 14px; font-synthesis: none;
  --green: #2458ca; --green-dark: #1947ae; --soft: #eaf0fc; --muted: #7a818d;
  --border: #e6e8ed; --red: #c23d3d; --shadow: 0 8px 30px #18202e14;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 0; background: none; color: inherit; }
button:disabled { opacity: .45; cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
input, select { min-width: 0; }
input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--green); cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #7798e2; outline-offset: 2px; }
svg.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 23px; font-weight: 600; letter-spacing: -.5px; }
h2 { font-size: 17px; font-weight: 600; }
h3 { font-size: 14px; font-weight: 600; }
small { font-size: 12px; }
.muted { color: var(--muted); }
.danger { color: var(--red)!important; }
.hidden { display: none!important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.row, .between { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; gap: 16px; }
.spacer { flex: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 7px 13px; border: 1px solid #d9dde4; border-radius: 5px; background: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; }
.btn:hover { background: #f7f8fa; border-color: #bfc5d0; }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-dark); }
.btn.danger { background: #fff; border-color: #e8caca; }
.btn.small { padding: 5px 10px; min-height: 30px; font-size: 12px; }
.btn svg { width: 16px; height: 16px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 4px; flex-shrink: 0; color: #707784; }
.icon-btn:hover { color: #252931; background: #eaedf2; }
.icon-btn.active { color: var(--green); background: #fff; }
.divider { display: inline-block; width: 1px; height: 18px; background: var(--border); margin: 0 7px; }
.badge, .readonly-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; font-size: 11px; border-radius: 3px; color: #5b6370; background: #f0f2f5; font-weight: 400; }
.readonly-badge { color: #8b6c2a; background: #faf3e4; }
.field { display: flex; flex-direction: column; gap: 8px; margin: 18px 0; }
.field label { font-size: 13px; font-weight: 500; }
.field input, .field select, .search-field { width: 100%; padding: 10px 12px; border: 1px solid #d7dce3; border-radius: 5px; background: #fff; color: #252931; }
.field input:focus, .field select:focus { outline: 2px solid #e1eafa; border-color: #7596dc; }
.field small { color: var(--muted); line-height: 1.6; }
.error-message { color: #b13e3e; background: #fff1f1; border: 1px solid #f1d7d7; border-radius: 4px; padding: 10px 12px; font-size: 13px; line-height: 1.6; margin: 14px 0; }
.boot { min-height: 100vh; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 18px; color: var(--muted); }
.spinner { width: 22px; height: 22px; border: 2px solid #e3e8f1; border-top-color: var(--green); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Persistent navigation and a file-first workspace. */
.layout { display: grid; grid-template-columns: 216px minmax(0,1fr); min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 216px; display: flex; flex-direction: column; background: #f5f6f8; border-right: 1px solid #e3e6eb; z-index: 25; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.sidebar>.brand { padding: 28px 24px 30px; }
.brand-mark { width: 30px; height: 30px; display: block; flex-shrink: 0; }
.brand-title { display: flex; align-items: baseline; gap: 8px; font-size: 21px; font-weight: 650; letter-spacing: -.5px; }
.brand-title>span { font-size: 12px; font-weight: 400; color: #8b919b; letter-spacing: 0; }
.sidebar-content { padding: 0 12px; flex: 1; min-height: 0; overflow-y: auto; }
.nav-label { font-size: 11px; font-weight: 500; color: #9298a2; padding: 0 12px; margin-bottom: 10px; }
.nav-list { display: flex; flex-direction: column; gap: 3px; }
.nav-item { display: flex; align-items: center; gap: 11px; min-height: 37px; padding: 8px 12px; border-radius: 5px; text-align: left; font-size: 13px; color: #606774; width: 100%; }
.nav-item>.icon { width: 17px; height: 17px; color: #868c98; }
.nav-item:hover { background: #eaecef; color: #252931; }
.nav-item.active { color: #2458ca; background: #e7edfa; font-weight: 600; }
.nav-item.active>.icon { color: #2458ca; }
.nav-item .nav-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-item .upload-count { margin-left: auto; font-size: 11px; color: #2458ca; }
.nav-section-heading { display: flex; justify-content: space-between; align-items: center; margin: 27px 3px 5px 0; }
.nav-section-heading .nav-label { margin: 0; }
.nav-section-heading .icon-btn { width: 25px; height: 25px; }
.nav-section-heading .icon { width: 14px; height: 14px; }
.team-initial { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex-shrink: 0; border-radius: 3px; color: #67748c; background: #e2e6ed; font-size: 10px; font-weight: 600; }
.nav-separator { height: 1px; background: #e4e7ec; margin: 23px 12px 17px; }
.storage-widget { padding: 18px 24px 20px; color: #8b919b; font-size: 10px; flex-shrink: 0; }
.storage-title { color: #69717e; font-size: 11px; }
.storage-widget small { font-size: 10px; font-variant-numeric: tabular-nums; }
.progress-bar { height: 4px; border-radius: 2px; background: #e3e6ec; overflow: hidden; margin: 10px 0; }
.progress-bar i { display: block; height: 100%; background: #6587ce; min-width: 0; transition: width .2s; }
.storage-settings { padding: 0; color: #69717e; font-size: 10px; }
.sidebar-settings { display: flex; align-items: center; gap: 10px; border-top: 1px solid #e3e6eb; padding: 18px 24px; font-size: 12px; color: #717986; }
.sidebar-settings:hover { background: #eceef2; }
.sidebar-settings .icon { width: 16px; height: 16px; }
.workspace { grid-column: 2; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 20px; height: 65px; border-bottom: 1px solid var(--border); padding: 0 30px; background: #fff; }
.location-label { display: flex; align-items: center; gap: 9px; min-width: 0; color: #747c89; font-size: 12px; }
.location-label .icon { color: #9ba2ad; width: 16px; height: 16px; }
.location-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.search-wrap { position: relative; margin-left: auto; width: 290px; flex-shrink: 0; }
.search-wrap>.icon { position: absolute; top: 9px; left: 11px; width: 15px; height: 15px; color: #8d95a2; }
.search-wrap input { width: 100%; padding: 8px 53px 8px 34px; border: 1px solid #eceef2; border-radius: 5px; background: #f8f9fb; font-size: 12px; color: #333b48; height: 34px; }
.search-wrap input::placeholder { color: #9ca2ac; }
.search-wrap kbd { position: absolute; top: 10px; right: 10px; color: #a4aab4; font: 10px "Segoe UI",sans-serif; }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; background: #e8edf7; color: #607498; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 500; flex-shrink: 0; }
.avatar-button { display: flex; align-items: center; gap: 9px; padding: 0; font-size: 12px; white-space: nowrap; }
.avatar-button>.icon { width: 12px; color: #8c939e; }
.account-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.mobile-menu { display: none; }
.main { padding: 30px 30px 0; max-width: 1800px; margin: auto; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 38px; margin-bottom: 27px; }
.heading-copy { min-width: 0; }
.title-row { display: flex; align-items: center; gap: 11px; }
.title-row h1 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-count { font-size: 12px; color: #989faa; white-space: nowrap; margin-top: 4px; }
.heading-copy>p { color: #8a929f; font-size: 12px; margin-top: 9px; }
.page-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.page-actions .btn>.icon:last-child:not(:first-child) { width: 13px; }
.path-line { margin-top: 10px; }
.breadcrumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.breadcrumbs button { padding: 0; color: #6f7b8e; }
.breadcrumbs button:hover { color: var(--green); }
.breadcrumbs>.icon { width: 12px; height: 12px; color: #adb4bf; }
.files-panel { min-width: 0; }
.files-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 45px; margin-bottom: 13px; }
.file-filters { display: flex; align-items: center; gap: 3px; min-width: 0; flex-wrap: wrap; }
.filter-tab { padding: 6px 12px; font-size: 12px; color: #7c8390; border-radius: 4px; white-space: nowrap; }
.filter-tab:hover { color: #343d4c; background: #f5f6f8; }
.filter-tab.active { color: #2458ca; background: #ecf1fb; font-weight: 500; }
.toolbar-caption { font-size: 12px; color: #8a929e; }
.toolbar-actions { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.toolbar-actions select { border: 0; background: #fff; padding: 5px 3px; color: #838b98; font-size: 11px; max-width: 100px; }
.toolbar-actions .icon { width: 15px; height: 15px; }
.view-switch { display: flex; padding: 2px; border: 1px solid #e7eaf0; background: #f6f7f9; border-radius: 4px; }
.view-switch .icon-btn { width: 27px; height: 25px; }
.view-switch .active { box-shadow: 0 1px 3px #1d2b4012; }
.table-scroll { width: 100%; }
.file-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
.file-table thead { background: #f6f7f9; color: #78818e; }
.file-table th { height: 37px; font-size: 12px; font-weight: 400; text-align: left; border-top: 1px solid #eff1f4; border-bottom: 1px solid #e9ecf1; }
.file-table td { height: 55px; border-bottom: 1px solid #f0f1f4; }
.file-table th, .file-table td { padding: 0 14px; }
.file-table .col-select { width: 39px; padding-left: 12px; padding-right: 8px; }
.file-table .col-name { padding-left: 8px; }
.file-table .col-updated { width: 155px; }
.file-table .col-kind { width: 140px; }
.file-table .col-size { width: 95px; }
.file-table .col-actions { width: 82px; padding-left: 0; padding-right: 8px; }
.file-table tbody tr:hover { background: #f8fafd; }
.file-table tbody tr.selected { background: #edf3fe; }
.file-table td input { opacity: .5; }
.file-table tbody tr:hover input, .file-table tbody tr.selected input { opacity: 1; }
.file-name { display: flex; align-items: center; gap: 13px; text-align: left; padding: 0; width: 100%; min-width: 0; }
.file-name-text { min-width: 0; }
.file-name-text strong { display: block; font-size: 13px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #3c4350; }
.file-name:hover strong { color: var(--green); }
.file-name-text small { display: block; margin-top: 5px; font-size: 11px; color: #939aa5; }
.file-name>.starred { width: 12px; color: #c8a35b; }
.file-symbol { width: 28px; height: 32px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: #8f9bae; }
.file-symbol .icon { width: 26px; height: 28px; stroke-width: 1.25; }
.file-symbol.folder-plain .icon { width: 28px; height: 28px; fill: #f3cd7e; stroke: #d8aa4d; stroke-width: 1; }
.office-symbol { width: 24px; height: 29px; border: 1px solid currentColor; border-radius: 2px; position: relative; margin: 0 2px; font-family: "Segoe UI",sans-serif; }
.office-symbol:after { content: ''; position: absolute; right: -1px; top: -1px; width: 7px; height: 7px; border-left: 1px solid currentColor; border-bottom: 1px solid currentColor; background: #fff; }
.office-symbol span { font-size: 11px; line-height: 1; font-weight: 600; margin-top: 3px; }
.office-symbol.word { color: #4e7ac5; background: #f2f6fc; }
.office-symbol.excel { color: #4a956d; background: #f0f8f3; }
.office-symbol.pdf { color: #ce7471; background: #fff5f4; }
.office-symbol.pdf span { font-size: 7px; }
.office-symbol.slides { color: #ca8a5e; background: #fdf5ed; }
.type-image { color: #8c80bc; }.type-video { color: #8799c2; }.type-audio { color: #ac83a7; }.type-archive { color: #b29b74; }
.file-date, .file-size, .file-type { color: #707987; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.file-actions { display: flex; justify-content: flex-end; opacity: 0; }
.file-actions .icon-btn { width: 30px; height: 28px; }
.file-actions svg { width: 15px; height: 15px; }
.file-table tr:hover .file-actions, .file-table tr:focus-within .file-actions, .file-table tr.selected .file-actions { opacity: 1; }
.files-footer { display: flex; justify-content: space-between; gap: 10px; padding: 17px 12px; font-size: 11px; color: #a0a7b2; }
.selection-bar { display: flex; align-items: center; gap: 8px; padding: 9px 11px; background: #f1f5fd; border-top: 1px solid #dfe8f7; border-bottom: 1px solid #dfe8f7; color: #5e739d; font-size: 12px; }
.selection-bar .btn { min-height: 28px; padding: 4px 9px; font-size: 11px; background: #fff; border-color: #dbe4f4; }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); gap: 14px; padding: 4px 0 14px; }
.file-card { border: 1px solid #e7eaf0; border-radius: 6px; padding: 9px 14px 22px; }
.file-card:hover { background: #fafbfe; border-color: #cfd8e7; }
.file-card.selected { border-color: #86a3dd; background: #f1f5ff; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.file-card .file-name { flex-direction: column; align-items: flex-start; gap: 16px; }
.file-card .file-symbol { width: 38px; height: 42px; }
.file-card .file-symbol svg { width: 38px; height: 40px; }
.file-card .office-symbol { width: 31px; height: 39px; }
.file-card .office-symbol span { font-size: 15px; }
.file-card .office-symbol.pdf span { font-size: 10px; }
.file-card .file-name-text { width: 100%; }
.empty { min-height: 350px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 35px; }
.empty-art { color: #bdc6d4; margin-bottom: 6px; }
.empty-art .icon { width: 48px; height: 48px; stroke-width: 1; }
.empty h3 { color: #626d7d; font-size: 14px; font-weight: 500; }
.empty p { color: #9ba3b0; font-size: 12px; line-height: 1.8; }
.empty .btn { margin-top: 5px; }
.context-menu { position: fixed; z-index: 100; min-width: 188px; background: #fff; border: 1px solid #dfe3eb; border-radius: 5px; box-shadow: 0 5px 20px #16223820; padding: 5px; }
.context-menu button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 11px; border-radius: 3px; font-size: 12px; }
.context-menu button:hover { background: #f1f4f9; }
.context-menu .icon { width: 15px; height: 15px; color: #8994a6; }
.context-menu hr { border: 0; border-top: 1px solid #edf0f4; margin: 4px 5px; }
.new-menu { min-width: 216px; }
.new-menu small { margin-left: auto; font-size: 10px; color: #a3aab5; }
.menu-file { width: 15px; text-align: center; font-size: 11px; font-weight: 600; color: #4e7ac5; }
.menu-file.excel { color: #4a956d; }
.drop-overlay { position: fixed; inset: 10px; background: #f1f5fff2; border: 2px dashed #7699dc; border-radius: 8px; z-index: 350; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 18px; color: #4e6a9c; pointer-events: none; }
.drop-overlay>.icon { width: 45px; height: 45px; }
.drop-overlay p { font-size: 13px; color: #8996ae; }

/* Dialogs share the same compact, neutral controls. */
.modal-overlay { position: fixed; inset: 0; background: #17223345; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal { width: 460px; max-width: 100%; max-height: 90vh; overflow: auto; border: 1px solid #dde2eb; border-radius: 9px; background: #fff; box-shadow: 0 16px 60px #17223330; }
.modal.wide { width: 730px; }.modal.preview-modal { width: 970px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 23px 16px; }
.modal-header h2 { font-size: 16px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-body { padding: 0 23px 23px; }
.modal-body>p { font-size: 13px; color: #7c8695; line-height: 1.8; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 24px; }
.modal .field:first-child { margin-top: 10px; }
.modal-info, .team-explainer { margin: 16px 0; padding: 12px 14px; background: #f6f7f9; border: 1px solid #e9ecf1; border-radius: 4px; font-size: 12px; line-height: 1.9; color: #7b8594; overflow-wrap: anywhere; }
.modal-error:empty { display: none; }
.preview-content { display: flex; align-items: center; justify-content: center; min-height: 310px; max-height: 65vh; overflow: auto; border-radius: 4px; background: #f2f4f7; }
.preview-content img, .preview-content video { max-width: 100%; max-height: 65vh; object-fit: contain; }
.preview-content video { background: #192333; }.preview-content audio { width: 80%; }
.preview-content iframe { width: 100%; height: 65vh; border: 0; }
.preview-content pre { align-self: flex-start; width: 100%; padding: 22px; margin: 0; font: 12px/1.8 Consolas,monospace; white-space: pre-wrap; overflow-wrap: anywhere; color: #5c6a7e; }
.file-details { display: grid; grid-template-columns: 100px 1fr; gap: 16px; font-size: 12px; margin: 20px 0; }
.file-details dt { color: #959eac; }.file-details dd { margin: 0; overflow-wrap: anywhere; }
.share-result { background: #f4f7fc; border: 1px solid #e0e8f5; border-radius: 5px; padding: 19px; text-align: center; margin-top: 15px; }
.share-result>.icon { width: 26px; height: 26px; color: #698ac9; margin-bottom: 10px; }
.share-result input { width: 100%; padding: 10px; background: #fff; border: 1px solid #dce3ee; border-radius: 4px; margin: 15px 0; font-size: 12px; }
.share-result p { font-size: 12px; color: #8997ae; }
.folder-picker { border: 1px solid var(--border); border-radius: 4px; max-height: 300px; overflow: auto; margin-top: 15px; }
.folder-option { display: flex; gap: 10px; align-items: center; padding: 11px; width: 100%; font-size: 12px; border-bottom: 1px solid #eff1f4; text-align: left; }
.folder-option:hover { background: #f7f9fc; }.folder-option.active { background: #edf3ff; color: #2458ca; }
.folder-option .icon { width: 17px; color: #c3a560; }
.settings-section { margin-top: 24px; border-top: 1px solid var(--border); padding-top: 22px; }
.settings-section h3 { margin-bottom: 16px; }
.account-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid #edf0f4; padding: 13px 0; font-size: 12px; }
.account-row small { display: block; color: #929cab; margin-top: 5px; }
.account-row input { width: 65px; border: 1px solid #dde3ed; padding: 6px; border-radius: 4px; }
.switch-label { display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 13px; }
.switch-label small { display: block; margin-top: 5px; }
.activity-list { display: flex; flex-direction: column; }
.activity-item { display: flex; gap: 13px; padding: 14px 0; border-bottom: 1px solid #edf0f4; align-items: flex-start; }
.activity-item>.icon { color: #97a5bc; width: 17px; margin-top: 2px; }
.activity-item p { font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.activity-item small { display: block; color: #98a2b1; font-size: 11px; margin-top: 5px; }
.toast-region { position: fixed; z-index: 400; top: 18px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; max-width: 90vw; }
.toast { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #dde4ed; border-radius: 6px; box-shadow: 0 5px 20px #15223918; padding: 11px 16px; font-size: 12px; }
.toast .icon { color: #527bbc; width: 17px; }.toast.error .icon { color: var(--red); }
.team-list, .member-list { display: grid; gap: 8px; margin-top: 18px; }
.team-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #e4e8ef; border-radius: 5px; padding: 16px; }
.team-card h3 { margin-bottom: 6px; }.team-card>.row>.icon { width: 24px; height: 24px; color: #8b9bb7; }
.member-row { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid #edf0f4; }
.member-info { flex: 1; min-width: 0; }.member-info strong, .member-info small { display: block; overflow-wrap: anywhere; }
.member-info strong { font-size: 13px; font-weight: 500; }.member-info small { color: #8b96a6; margin-top: 5px; }
.form-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }.device-list { margin-top: 18px; }
.transfer-panel { position: fixed; bottom: 20px; right: 24px; width: 360px; background: #fff; border: 1px solid #dce2ed; border-radius: 7px; box-shadow: 0 8px 35px #15243d22; z-index: 80; overflow: hidden; }
.transfer-heading { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 12px; }
.transfer-heading .icon { width: 16px; }.transfer-list { max-height: 320px; overflow: auto; }
.transfer-item { padding: 12px 16px; border-bottom: 1px solid #edf1f6; }
.transfer-item .row>.icon { color: #8c9bb4; width: 17px; }
.transfer-item strong { flex: 1; font-size: 12px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.transfer-item small { font-size: 10px; color: #96a1b2; }.transfer-item .progress-bar { height: 3px; margin: 10px 0 7px; }
.transfer-item .icon-btn { width: 22px; height: 22px; }.transfer-item .icon-btn .icon { width: 13px; }
.transfer-summary { font-size: 10px; color: #929eb0; padding: 11px 16px; background: #f8fafd; }
.share-list { padding: 0 12px; }.share-item { display: flex; align-items: center; gap: 15px; padding: 18px 0; border-bottom: 1px solid #edf0f5; }
.share-item>div:nth-child(2) { min-width: 0; flex: 1; }.share-item strong { display: block; font-size: 13px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-item p { font-size: 11px; color: #939faf; margin-top: 6px; }.share-item>.icon { color: #8e9fba; width: 25px; height: 25px; }
.share-item .badge.expired { background: #faf0f0; color: #b77d7d; }

/* Authentication and shared links. */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(350px, .85fr) 1fr; background: #fff; }
.auth-story { padding: 40px 50px; background: #f4f5f7; border-right: 1px solid #e5e8ee; display: flex; flex-direction: column; min-height: 100vh; }
.auth-product { margin: auto 0; padding: 50px 0; max-width: 380px; }
.auth-product-label { font-size: 12px; color: #8d95a2; margin-bottom: 17px; }
.auth-story h1 { font-size: 38px; font-weight: 600; letter-spacing: -1px; color: #2c3441; }
.auth-description { font-size: 13px; color: #8a94a3; margin-top: 18px; line-height: 1.8; }
.auth-features { display: grid; gap: 28px; margin-top: 48px; }
.auth-features>div { display: flex; align-items: flex-start; gap: 16px; }
.auth-features .icon { color: #8492ab; width: 20px; height: 20px; margin-top: 2px; }
.auth-features strong { font-size: 13px; font-weight: 500; color: #657083; }
.auth-features p { margin-top: 6px; font-size: 12px; color: #9aa3b0; }
.auth-deployment { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #8d98aa; }
.auth-deployment .icon { width: 14px; height: 14px; }.auth-deployment span { color: #b0b7c3; margin-left: 9px; }
.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 55px 40px; position: relative; }
.auth-form { width: 330px; max-width: 100%; }
.auth-step { font-size: 11px; color: #9ba5b5; margin-bottom: 11px; }
.auth-form h2 { font-size: 25px; font-weight: 600; letter-spacing: -.5px; }
.auth-form .intro { margin-top: 12px; margin-bottom: 29px; font-size: 12px; color: #96a1b2; line-height: 1.8; }
.auth-form .field { margin: 20px 0; }.auth-form .field label { color: #606b7e; font-size: 12px; }
.auth-form .field input { height: 41px; font-size: 13px; }.auth-form input::placeholder { color: #b1b8c3; }
.auth-form .btn.primary { width: 100%; padding: 11px; margin-top: 10px; font-size: 13px; justify-content: space-between; }
.auth-switch { text-align: center; margin-top: 22px; font-size: 12px; color: #a1aab8; }.auth-switch button { color: var(--green); padding: 0 5px; }
.auth-note { display: flex; align-items: center; gap: 6px; font-size: 10px; color: #aab2c0; margin-top: 24px; }
.auth-note .icon { width: 12px; height: 12px; }.auth-footer { position: absolute; bottom: 28px; font-size: 10px; color: #b4bdca; }
.password-wrap { position: relative; }.password-wrap input { padding-right: 40px!important; }.password-wrap button { position: absolute; right: 6px; top: 5px; }
.shared-page { min-height: 100vh; background: #f5f7fa; padding: 30px; }.shared-page>.brand { justify-content: center; margin-bottom: 35px; }
.shared-card { max-width: 780px; margin: auto; background: #fff; border: 1px solid #e2e7ef; border-radius: 8px; padding: 30px; }
.shared-card>.share-icon { display: flex; justify-content: center; margin-bottom: 20px; }.shared-card>.share-icon .icon { width: 40px; height: 40px; color: #8d9db8; }
.shared-card>h1 { text-align: center; font-size: 20px; overflow-wrap: anywhere; }.shared-subtitle { text-align: center; font-size: 12px; color: #8e9bb0; line-height: 1.8; margin: 13px 0 30px; }
.shared-card .unlock-form { max-width: 340px; margin: auto; }.shared-card .unlock-form .btn { width: 100%; }
.share-files { margin-top: 24px; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }.share-file-row { padding: 14px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #eef1f6; }
.share-file-row:last-child { border: 0; }.share-file-row strong { font-size: 12px; font-weight: 500; }.share-file-row small { display: block; font-size: 10px; color: #9ba7b9; margin-top: 5px; }
.share-file-row>.icon { color: #9ba9bf; flex-shrink: 0; }.share-file-row>button:first-of-type { flex: 1; text-align: left; padding: 0; min-width: 0; overflow-wrap: anywhere; }
.shared-footer { text-align: center; color: #a3adbd; font-size: 10px; margin-top: 25px; }

@media (max-width:1200px) {
  .layout { grid-template-columns: 196px minmax(0,1fr); }.sidebar { width: 196px; }.sidebar>.brand { padding-left: 22px; }
  .main { padding: 25px 24px 0; }.topbar { padding: 0 24px; gap: 15px; }.search-wrap { width: 245px; }
  .file-table .col-kind { width: 110px; }.file-table .col-updated { width: 135px; }.file-table .col-size { width: 75px; }
  .files-toolbar { flex-wrap: wrap; gap: 8px; }.toolbar-actions { margin-left: auto; }
}
@media (max-width:950px) {
  .location-label { display: none; }.search-wrap { margin-left: 0; flex: 1; }.account-name { display: none; }
  .file-table .col-kind { display: none; }.file-table .col-updated { width: 120px; }.file-table .col-size { width: 70px; }
  .auth-story { padding: 35px; }.auth-deployment span { display: none; }.auth-page { grid-template-columns: .9fr 1fr; }
}
@media (max-width:700px) {
  .layout { display: block; }.sidebar { transform: translateX(-100%); transition: transform .2s; width: 216px; box-shadow: 12px 0 35px #17253a20; }
  .sidebar.open { transform: translateX(0); }.sidebar-backdrop { position: fixed; inset: 0; background: #18263b44; z-index: 24; }.mobile-menu { display: flex; }
  .topbar { height: 58px; padding: 0 14px; gap: 10px; }.topbar .activity-button, .search-wrap kbd, .avatar-button>.icon { display: none; }.search-wrap { width: auto; min-width: 0; }
  .search-wrap input { padding-right: 10px; background: #f6f8fb; }.user-avatar { width: 27px; height: 27px; }
  .main { padding: 23px 16px 0; }.page-heading { align-items: flex-start; flex-wrap: wrap; gap: 18px; margin-bottom: 18px; }.title-row h1 { font-size: 21px; }
  .page-actions { margin-left: auto; }.page-actions .btn { font-size: 12px; padding: 7px 10px; }.page-actions .btn>.icon { width: 15px; }
  .files-toolbar { align-items: flex-start; gap: 9px; margin-bottom: 10px; }.file-filters { gap: 0; }.filter-tab { padding: 6px 8px; font-size: 11px; }
  .toolbar-actions { width: 100%; justify-content: flex-end; }.toolbar-actions select { font-size: 10px; }.toolbar-actions>.icon-btn { margin-right: auto; }
  .file-table .col-updated { display: none; }.file-table .col-size { width: 66px; }.file-table .col-actions { width: 32px; padding-right: 0; }.file-table .col-select { width: 26px; padding-left: 1px; }
  .file-table th, .file-table td { padding: 0 8px; }.file-table td { height: 56px; }.file-name { gap: 9px; }.file-name-text strong { font-size: 12px; }
  .file-symbol { transform: scale(.9); }.file-actions { opacity: 1; }.file-actions .secondary-action { display: none; }.file-actions .icon-btn { width: 28px; }
  .files-footer { padding: 15px 0; font-size: 10px; }.files-footer span:last-child { display: none; }
  .file-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }.file-card { padding: 7px 10px 18px; }
  .selection-bar { flex-wrap: wrap; padding: 8px; font-size: 11px; }.selection-bar .spacer { display: none; }.selection-bar .btn { font-size: 10px; padding: 4px 7px; }
  .modal-overlay { padding: 12px; }.modal-header { padding: 18px 18px 14px; }.modal-body { padding: 0 18px 20px; }.modal-header h2 { font-size: 15px; }
  .team-card { align-items: flex-start; flex-direction: column; }.team-card>.row:last-child { align-self: flex-end; }.form-columns { grid-template-columns: 1fr; gap: 0; }
  .member-row .user-avatar { display: none; }.team-explainer { font-size: 11px; }.account-row .quota-form { gap: 5px; }
  .transfer-panel { left: 12px; right: 12px; bottom: 12px; width: auto; }.share-item { flex-wrap: wrap; gap: 10px; }.share-item .badge { display: none; }
  .auth-page { display: block; }.auth-story { min-height: auto; padding: 25px 28px; background: #fff; border: 0; }.auth-product, .auth-deployment { display: none; }
  .auth-form-side { padding: 34px 28px 90px; min-height: calc(100vh - 80px); align-items: flex-start; }.auth-form { width: 100%; max-width: 380px; }.auth-form h2 { font-size: 24px; }.auth-footer { bottom: 25px; }
  .shared-page { padding: 25px 14px; }.shared-card { padding: 25px 18px; }.shared-card .between { align-items: flex-start; }.shared-card .btn { font-size: 11px; padding: 8px; }.file-details { grid-template-columns: 75px 1fr; gap: 13px; }
}
@media (hover:none) { .file-actions { opacity: 1; } }
@media (prefers-reduced-motion:reduce) { * { animation: none!important; transition: none!important; scroll-behavior: auto!important; } }
.quick-folders { margin-top: 18px; }.quick-folder { display: flex; align-items: center; }.quick-folder .nav-item { flex: 1; min-width: 0; }.quick-folder .nav-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.quick-folder>.icon-btn { width: 24px; opacity: .5; }
.pagination { display: flex; align-items: center; gap: 10px; font-size: 12px; }.pagination .btn { min-height: 28px; }.search-mode { border: 0; border-left: 1px solid #dfe3e9; background: transparent; font-size: 12px; width: 58px; padding: 3px; }.search-wrap input { min-width: 20px; }.search-wrap kbd { white-space: nowrap; }
.tag-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 10px 0; font-size: 11px; color: #78818e; }.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; line-height: 17px; padding: 0 5px; background: #eef2f7; color: #53647c; border: 1px solid #dfe5ed; border-radius: 3px; margin-right: 4px; }.tag.active { border-color: #2458ca; color: #2458ca; }.file-extra { display: block; margin-top: 3px; max-width: 100%; }.file-extra:empty { display: none; }.search-snippet { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #7a8594; max-width: 480px; font-size: 11px; }.index-status { font-size: 11px; color: #2458ca; padding: 5px 0; }
.permission-table { overflow-x: auto; margin-top: 20px; }.permission-table table { width: 100%; border-collapse: collapse; font-size: 12px; }.permission-table th,.permission-table td { padding: 12px 9px; border-bottom: 1px solid #e8ebf0; text-align: center; }.permission-table th:first-child,.permission-table td:first-child { text-align: left; }.permission-table small { display: block; color: #87909e; margin-top: 4px; }.permission-table input { accent-color: #2458ca; }
.rename-preview { max-height: 260px; overflow: auto; font-size: 12px; }.rename-preview>div { display: grid; grid-template-columns: 1fr 20px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid #e9edf3; overflow-wrap: anywhere; }.duplicate-list { max-height: 50vh; overflow: auto; }.duplicate-list section { padding: 12px 0; border-bottom: 1px solid #e8ebf0; }.duplicate-list h3 { font-size: 12px; color: #617088; }.duplicate-row { display: flex; align-items: center; gap: 12px; padding: 10px; }.duplicate-row small { display: block; color: #89929d; margin-top: 4px; }.duplicate-row strong { font-weight: 500; }.drop-target { outline: 2px solid #2458ca; outline-offset: -2px; background: #edf3ff!important; }[data-node]:focus-visible { outline: 2px solid #2458ca; outline-offset: -2px; }
@media(max-width:700px) { .files-footer { flex-wrap: wrap; gap: 10px; }.files-footer .pagination { display: flex; }.search-wrap kbd { display: none; }.selection-bar { overflow-x: auto; }.permission-table { font-size: 11px; }.search-snippet { max-width: 180px; } }

.org-tabs{display:flex;gap:8px;border-bottom:1px solid #e6eaf0;padding-bottom:14px;margin:18px 0}.org-list{max-height:440px;overflow:auto;margin-top:14px}.org-row{display:flex;align-items:center;gap:10px;padding:14px 2px;border-bottom:1px solid #edf0f5}.org-row>span{flex:1;min-width:0}.org-row strong,.org-row small{display:block}.org-row small{color:#8490a2;margin-top:4px}.org-row select{max-width:50%;padding:7px;border:1px solid #dfe4ec;border-radius:4px}.org-member-picker{max-height:360px;overflow:auto;display:grid;grid-template-columns:1fr 1fr;gap:8px}.org-member-picker label{padding:10px;display:flex;gap:8px}.org-member-picker small{color:#8490a2}.org-row strong{font-weight:500}.empty-hint{padding:20px;color:#8490a2}

.management-nav{border-top:1px solid #e1e5e9;margin-top:20px;padding-top:8px}.management-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0 10px}.management-heading h3{margin:0}.management-list{border-top:1px solid #e5e7eb}.management-list>div{display:flex;align-items:center;gap:16px;justify-content:space-between}.management-list>div,.management-list>p{padding:13px 0;border-bottom:1px solid #edf0f3;margin:0}.management-list small,.management-table small{display:block;color:#78818d;font-size:12px;margin-top:5px;overflow-wrap:anywhere}.management-table{max-height:360px;overflow:auto}.management-table table{width:100%;border-collapse:collapse}.management-table td,.management-table th{text-align:left;border-bottom:1px solid #e5e7eb;padding:12px}.audit-filter{display:flex;gap:10px;flex-wrap:wrap;align-items:end;margin:14px 0}.audit-filter label{display:grid;gap:6px;font-size:12px;flex:1;min-width:115px}.audit-filter input,.audit-filter select,.permission-inspector select{padding:9px;border:1px solid #d9dfe5;border-radius:6px;max-width:100%;font:inherit}.ops-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.ops-metrics>div{border:1px solid #dce2e7;padding:16px;border-radius:8px;display:grid;gap:10px}.ops-metrics strong{font-size:24px;font-weight:600}.ops-metrics small,.ops-metrics span{color:#78818d;font-size:12px}.security-secret{display:block;background:#f3f5f7;border:1px solid #dfe4e9;padding:18px;border-radius:8px;overflow-wrap:anywhere;white-space:pre-wrap;font:15px/1.8 monospace;user-select:all}.permission-inspector{margin-top:22px;border-top:1px solid #e5e7eb;padding-top:12px}.permission-chip{display:inline-block;font-size:11px;padding:3px 6px;margin:2px;border-radius:4px;background:#f0f3f6}.permission-chip.allowed{color:#176b4d;background:#edf6f1}.permission-chip.denied{color:#89909a}.permission-path{padding-left:22px}.permission-path li{padding:6px}.permission-path span{margin-left:10px;color:#78818d}.handoff-summary{padding:16px;background:#f5f6f8;border-left:3px solid #b78c3c}@media(max-width:700px){.ops-metrics{grid-template-columns:1fr 1fr}.management-heading{align-items:flex-start;flex-direction:column}}

.capacity-heading{display:flex;align-items:center;justify-content:space-between;margin:16px 0}.capacity-heading strong{font-size:25px}.capacity-heading small{font-size:14px;font-weight:400;color:#707a87}.capacity-progress{width:100%;height:8px;accent-color:#375a82}.capacity-alert{background:#fff2db;padding:12px;border-left:3px solid #c18536}.capacity-check{display:flex;gap:10px;align-items:center;margin:12px 0}.service-card{padding:20px;border:1px solid #dce1e5;border-radius:8px;margin:14px 0}.service-card h3{margin:10px 0}.service-badge{font-size:11px;color:#64748b;letter-spacing:.08em}.external-office{display:flex;flex-direction:column;height:100vh;margin:0}.external-office header{height:48px;padding:0 20px;display:flex;align-items:center;justify-content:space-between;background:#f4f5f6;border-bottom:1px solid #d9dfe5}.external-office main{flex:1}.external-office #office-error:empty{display:none}
.offline-page{background:#f5f6f7;color:#283443}.offline-page main{max-width:960px;margin:auto;padding:0 28px 60px}.offline-header{height:72px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dce1e5}.offline-header a{color:inherit;text-decoration:none}.offline-header span{font-size:12px;color:#7a8590}.offline-intro{padding:48px 0 25px;max-width:670px}.offline-intro h1{font-size:36px;letter-spacing:-1px;margin:10px 0 18px}.offline-intro p{line-height:1.8}.offline-card{display:flex;justify-content:space-between;align-items:center;gap:20px;background:white;border:1px solid #e0e4e8;padding:22px;margin:14px 0;border-radius:8px;text-decoration:none;color:inherit}.offline-card h3{font-weight:600;font-size:15px;margin:0 0 9px;overflow-wrap:anywhere}.offline-card small{color:#7a8590}.offline-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.offline-unlock{max-width:min(480px,calc(100vw - 32px));border:1px solid #dce1e5;border-radius:12px;padding:26px;color:#283443;box-shadow:0 20px 80px #17253a22}.offline-unlock::backdrop{background:#1c293b66}.offline-unlock p{font-size:13px;line-height:1.8;color:#6a7684}.offline-unlock input{padding:12px;border:1px solid #ccd4dc;border-radius:6px;font:inherit;width:100%;box-sizing:border-box}.offline-unlock .offline-error,#offline-message{color:#ad4f35}.offline-error:empty{display:none}
@media(max-width:700px){.offline-page main{padding:0 18px 40px}.offline-intro{padding-top:28px}.offline-intro h1{font-size:30px}.offline-card{align-items:flex-start;flex-direction:column;padding:18px;gap:16px}.offline-actions .btn{min-height:40px}.modal{max-height:92dvh}.modal-footer{flex-wrap:wrap}.form-columns{grid-template-columns:1fr}.management-nav .nav-item{min-height:44px}.context-menu{max-height:75dvh;overflow:auto}.context-menu button{min-height:42px}.file-row{min-height:62px}.capacity-heading{align-items:flex-start;gap:6px;flex-direction:column}}

.recovery-top{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin:14px 0 20px}.recovery-top h3{font-size:22px;font-weight:600;margin:10px 0}.recovery-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0}.recovery-chip{display:inline-block;padding:4px 8px;margin-left:10px;font-size:11px;border:1px solid #dce3e9;border-radius:4px;color:#596c7d;background:#f4f7f9}.recovery-settings{border:1px solid #dce3e9;border-radius:7px;margin:20px 0;padding:16px}.recovery-settings summary{font-weight:600;cursor:pointer}.recovery-settings form{margin-top:20px}.recovery-list{margin:15px 0}.recovery-list article{padding:18px 0;border-top:1px solid #e1e6ea;display:flex;justify-content:space-between;gap:16px}.recovery-list article>div:first-child{min-width:0;flex:1}.recovery-list p{font-size:13px;margin:9px 0;overflow-wrap:anywhere}.recovery-list small{color:#788391;font-size:11px}.recovery-row-actions{display:flex;gap:6px;align-content:flex-start;flex-wrap:wrap;max-width:240px}.recovery-row-actions .btn{height:32px}.recovery-warning{padding:18px;background:#fcf5e8;border-left:3px solid #c18f3e;margin:16px 0;line-height:1.8}.recovery-status{background:#eef4f7;padding:14px;border-radius:5px;font-size:13px;overflow-wrap:anywhere}.recovery-confirm{padding-top:16px;margin-top:16px;border-top:1px solid #e2e6ea}.recovery-error{color:#a24a3c}.recovery-list details{margin:12px 0;font-size:12px}.recovery-list details>p{padding-left:15px;margin:5px 0}@media(max-width:700px){.recovery-top{flex-direction:column}.recovery-list article{flex-direction:column}.recovery-row-actions{max-width:none}.recovery-row-actions .btn{min-height:40px}}
