:root {
    --bg: #f4f7fb;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #ffffff;
    --line: #dbe4f0;
    --text: #1f2937;
    --muted: #5b6b81;
    --primary: #0f766e;
    --primary-strong: #115e59;
    --accent: #e7f6f3;
    --warning: #d97706;
    --danger: #dc2626;
    --shadow: 0 22px 60px rgba(15, 23, 42, 0.10);
    --radius: 22px;
}

/* elFinder-inspired dashboard refresh */
body {
    background:
        linear-gradient(180deg, #eef2f6 0%, #e4e9ee 100%);
}

.shell {
    width: min(1520px, calc(100% - 20px));
    padding: 18px 0 32px;
}

.topbar {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    border-color: #bfc8d3;
    background: linear-gradient(180deg, #fefefe 0%, #edf1f4 100%);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.finder-page {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.finder-sidebar,
.finder-frame,
.finder-utility-panel {
    border: 1px solid #bfc8d3;
    background: linear-gradient(180deg, #f7f8fa 0%, #e9edf2 100%);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.finder-sidebar {
    position: sticky;
    top: 12px;
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 10px;
    overflow: hidden;
}

.drive-brand {
    align-items: center;
    padding: 4px 2px 2px;
}

.drive-brand-logo {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
}

.drive-brand-copy strong {
    font-size: 1.42rem;
    letter-spacing: -0.02em;
}

.finder-side-nav,
.finder-sidebar-block {
    border: 1px solid #c6ced8;
    border-radius: 8px;
    background: linear-gradient(180deg, #fcfdfe 0%, #edf1f5 100%);
}

.finder-side-nav {
    display: grid;
    gap: 1px;
    padding: 6px;
}

.finder-side-link {
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 6px;
    color: #344456;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.finder-side-link:hover,
.finder-side-link.is-active {
    background: linear-gradient(180deg, #4b84ce 0%, #2d69b3 100%);
    color: #fff;
}

.finder-sidebar-block {
    display: grid;
    gap: 10px;
    padding: 10px;
}

.finder-block-head,
.drive-card-head,
.finder-pane-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.finder-block-head h2,
.drive-card-head h2,
.finder-pane-head h3,
.finder-inspector-head h2,
.finder-utility-panel h2 {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #4a5b70;
}

.finder-block-head span,
.drive-card-head p,
.finder-pathbar-label span,
.finder-inspector-head p {
    color: #6c7b8c;
    font-size: 12px;
}

.finder-primary-action,
.drive-storage-btn {
    width: 100%;
}

.drive-company-list {
    display: grid;
    gap: 8px;
    min-height: 0;
}

.drive-sidebar-label {
    color: #6b7785;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.drive-company-pill {
    border-radius: 6px;
    border-color: #cfd7e0;
    background: linear-gradient(180deg, #ffffff 0%, #eef2f6 100%);
    font-size: 12px;
}

.drive-company-pill:hover,
.drive-company-pill.is-active {
    border-color: #7ea3d3;
    background: linear-gradient(180deg, #e8f0fb 0%, #cfe0f5 100%);
}

.finder-tree-panel {
    min-height: 0;
}

.explorer-tree {
    min-height: 220px;
    max-height: 360px;
    overflow: auto;
    padding-right: 4px;
}

.finder-storage-panel {
    margin-top: auto;
    border-radius: 8px;
    padding: 12px;
}

.drive-storage-card {
    border: 1px solid #c4cdda;
    background: linear-gradient(180deg, #fbfcfd 0%, #ecf1f5 100%);
    box-shadow: none;
}

.drive-storage-percent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #dbe7f6;
    color: #2d5f9b;
    font-size: 12px;
    font-weight: 800;
}

.drive-storage-value {
    display: grid;
    gap: 4px;
}

.drive-storage-value strong {
    font-size: 1.2rem;
}

.drive-storage-meter {
    height: 14px;
    border-radius: 999px;
    border: 1px solid #b8c6d9;
    background: #dde5ef;
    overflow: hidden;
}

.drive-storage-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(180deg, #7fb76e 0%, #569044 100%);
}

.drive-storage-meter.is-danger span {
    background: linear-gradient(180deg, #e87474 0%, #cf3b3b 100%);
}

.drive-storage-meta {
    display: grid;
    gap: 4px;
    color: #5f7082;
    font-size: 12px;
}

.finder-main {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.finder-frame {
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
    min-width: 0;
    min-height: 760px;
    border-radius: 10px;
    overflow: hidden;
}

.finder-toolbar,
.finder-statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    background: linear-gradient(180deg, #fdfefe 0%, #e1e6eb 100%);
}

.finder-toolbar {
    border-bottom: 1px solid #bac4d0;
}

.finder-toolbar-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.finder-toolbar-group.is-right {
    justify-content: flex-end;
}

.finder-tool-button,
.finder-meta-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #c0c9d3;
    border-radius: 6px;
    background: linear-gradient(180deg, #ffffff 0%, #eef2f6 100%);
    color: #334357;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.finder-tool-button:hover,
.finder-tool-button.is-active {
    border-color: #7fa3d1;
    background: linear-gradient(180deg, #4d85cf 0%, #2d68b3 100%);
    color: #fff;
}

.finder-meta-chip {
    color: #536274;
}

.finder-pathbar {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    background: #f7f9fb;
    border-bottom: 1px solid #cfd7e1;
}

.finder-pathbar-main {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.finder-pathbar-label {
    display: grid;
    gap: 3px;
}

.finder-pathbar-label strong {
    font-size: 20px;
    letter-spacing: -0.02em;
}

.finder-pathbar-actions {
    display: flex;
    justify-content: flex-end;
    min-width: 280px;
}

.finder-search-field {
    display: grid;
    gap: 6px;
    width: min(320px, 100%);
    color: #617182;
    font-size: 12px;
    font-weight: 700;
}

.finder-search-field input {
    width: 100%;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 6px;
    border: 1px solid #c2ccd6;
    background: #fff;
    font: inherit;
}

.explorer-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}

.explorer-breadcrumbs button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #4d6583;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.explorer-breadcrumbs button.current {
    color: #215ea2;
}

.explorer-breadcrumbs span {
    color: #94a1b1;
}

.explorer-title {
    font-size: 1.45rem;
    letter-spacing: -0.02em;
}

.finder-summarybar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid #cad3dc;
    background: linear-gradient(180deg, #edf2f7 0%, #e3e9ef 100%);
}

.finder-summary-pill,
.finder-summary-stat {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid #c1ccd8;
    background: #fff;
    color: #405063;
    font-size: 12px;
    font-weight: 700;
}

.finder-summary-pill {
    border-color: #7da1d0;
    background: linear-gradient(180deg, #e8f0fb 0%, #d7e6f7 100%);
    color: #215d9f;
}

.finder-summary-stat strong {
    margin-right: 5px;
    color: #223449;
}

.finder-page.is-guest-mode {
    grid-template-columns: 280px minmax(0, 1fr);
}

.guest-share-panel {
    gap: 12px;
}

.guest-share-list {
    display: grid;
    gap: 8px;
}

.guest-share-link {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid #c8d4e2;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #eef4fb 100%);
    color: #314255;
    text-decoration: none;
}

.guest-share-link strong {
    font-size: 13px;
}

.guest-share-link span,
.guest-share-link small {
    color: #617286;
}

.guest-share-link:hover,
.guest-share-link.is-active {
    border-color: #7ea4d3;
    background: linear-gradient(180deg, #eaf2fd 0%, #d7e6f7 100%);
    color: #214d82;
}

.finder-guest-hero {
    display: grid;
    gap: 4px;
    padding: 10px 14px;
    border-bottom: 1px solid #cad3dc;
    background: linear-gradient(180deg, #f2f7fd 0%, #e6eef8 100%);
}

.finder-guest-hero strong {
    color: #22466f;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.finder-guest-hero span {
    color: #5b6d81;
    font-size: 12px;
}

.finder-workarea {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 328px;
    min-height: 640px;
}

.finder-browser,
.finder-inspector {
    min-width: 0;
}

.finder-browser {
    display: grid;
    grid-template-rows: minmax(220px, auto) auto minmax(0, 1fr);
    border-right: 1px solid #c5ced8;
    background: #fff;
}

.finder-pane + .finder-pane {
    border-top: 1px solid #d7dee6;
}

.finder-pane-head {
    padding: 9px 12px;
    border-bottom: 1px solid #d3dbe4;
    background: linear-gradient(180deg, #fafbfd 0%, #e7ecf2 100%);
}

.finder-pane-body {
    padding: 14px;
    overflow: auto;
}

.mini-pill {
    min-width: 30px;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #dce7f5;
    color: #215c9f;
    font-size: 11px;
}

.content-grid {
    grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
    gap: 12px;
}

.folder-card {
    gap: 10px;
    padding: 10px 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    transition: border-color 0.16s ease, background 0.16s ease;
}

.folder-card:hover {
    transform: none;
    border-color: #8eadcf;
    background: #f2f7fd;
}

.folder-card-head {
    align-items: start;
    min-height: 30px;
}

.folder-card-main {
    justify-items: center;
    gap: 6px;
}

.folder-card-main strong,
.folder-card-main span {
    text-align: center;
}

.folder-card-main strong {
    font-size: 13px;
}

.folder-card-main span {
    font-size: 11px;
}

.finder-glyph {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    font-size: 0;
}

.finder-glyph[data-glyph="folder"],
.finder-glyph[data-glyph="folder-open"],
.finder-glyph[data-glyph="company"],
.finder-glyph[data-glyph="company-open"] {
    width: 42px;
    height: 30px;
}

.finder-glyph[data-glyph="folder"]::before,
.finder-glyph[data-glyph="folder-open"]::before,
.finder-glyph[data-glyph="company"]::before,
.finder-glyph[data-glyph="company-open"]::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 3px;
    width: 16px;
    height: 7px;
    border: 1px solid #7ea1c8;
    border-bottom: 0;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, #eef5fd 0%, #d7e8fb 100%);
}

.finder-glyph[data-glyph="folder"]::after,
.finder-glyph[data-glyph="folder-open"]::after,
.finder-glyph[data-glyph="company"]::after,
.finder-glyph[data-glyph="company-open"]::after {
    content: "";
    position: absolute;
    left: 1px;
    right: 1px;
    bottom: 2px;
    height: 21px;
    border: 1px solid #7ea1c8;
    border-radius: 4px;
    background: linear-gradient(180deg, #eef5fd 0%, #bfd7f4 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.finder-glyph[data-glyph="company"]::after,
.finder-glyph[data-glyph="company-open"]::after {
    background: linear-gradient(180deg, #f0f6ff 0%, #aecaeb 100%);
}

.finder-glyph[data-glyph="folder-open"]::before,
.finder-glyph[data-glyph="company-open"]::before {
    left: 7px;
    top: 2px;
    width: 18px;
    transform: skewX(-16deg);
}

.finder-glyph[data-glyph="folder-open"]::after,
.finder-glyph[data-glyph="company-open"]::after {
    left: 2px;
    right: 2px;
    bottom: 4px;
    height: 18px;
    border-radius: 5px;
    background: linear-gradient(180deg, #f6e9b6 0%, #e6bd62 100%);
}

.finder-glyph[data-glyph="document"] {
    width: 28px;
    height: 34px;
}

.finder-glyph[data-glyph="document"]::before {
    content: "";
    position: absolute;
    inset: 2px 4px 2px 2px;
    border: 1px solid #93a5ba;
    border-radius: 4px;
    background: linear-gradient(180deg, #ffffff 0%, #edf2f7 100%);
}

.finder-glyph[data-glyph="document"]::after {
    content: "";
    position: absolute;
    top: 2px;
    right: 4px;
    width: 8px;
    height: 8px;
    border-top: 1px solid #93a5ba;
    border-right: 1px solid #93a5ba;
    background: linear-gradient(135deg, #ffffff 0%, #dfe7f0 100%);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.file-table {
    font-size: 13px;
}

.file-table th,
.file-table td {
    padding: 10px 12px;
}

.file-table th {
    color: #6a788a;
    font-size: 11px;
}

.file-table tbody tr:hover {
    background: #f1f7ff;
}

.file-table tbody tr.is-selected {
    background: #e0ecfa;
}

.file-cell-primary {
    gap: 10px;
}

.finder-file-row-icon {
    width: 24px;
    height: 28px;
}

.file-type-badge {
    min-width: 42px;
    border-radius: 6px;
    background: linear-gradient(180deg, #e8edf4 0%, #d4dde7 100%);
    color: #405265;
    font-size: 10px;
}

.table-actions {
    gap: 5px;
}

.folder-menu-trigger,
.mini-action {
    min-height: 28px;
    padding: 0 9px;
    border-radius: 6px;
    border-color: #c4cdd8;
    background: linear-gradient(180deg, #ffffff 0%, #eef2f6 100%);
    font-size: 11px;
}

.folder-menu-trigger:hover,
.mini-action:hover {
    border-color: #8aaacf;
    color: #215d9f;
}

.finder-inspector {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 12px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
    overflow: auto;
}

.finder-inspector-head {
    display: grid;
    gap: 4px;
}

.details-card {
    border-radius: 8px;
    border: 1px solid #ccd5df;
    background: linear-gradient(180deg, #ffffff 0%, #f2f5f8 100%);
    box-shadow: none;
}

.details-card + .details-card {
    margin-top: 0;
}

.details-header {
    align-items: center;
    margin-bottom: 14px;
}

.details-icon {
    width: 40px;
    height: 34px;
}

.details-icon.finder-file-row-icon {
    width: 32px;
    height: 36px;
}

.details-list div {
    padding-bottom: 8px;
}

.details-list dt {
    font-size: 11px;
}

.details-actions {
    gap: 8px;
}

.details-actions .btn,
.upload-form .btn,
.actions .btn,
.audit-panel-controls .btn {
    min-height: 32px;
    padding: 0 12px;
}

.upload-form,
.link-generator-form {
    gap: 12px;
}

.upload-field,
.audit-filter {
    gap: 5px;
    color: #55667a;
    font-size: 12px;
    font-weight: 700;
}

.upload-field input,
.upload-field select,
.upload-field textarea,
.audit-filter select {
    min-height: 34px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid #c5ced8;
    background: #fff;
}

.upload-target,
.upload-feedback {
    font-size: 12px;
}

.recent-item {
    gap: 4px;
    padding: 10px 0;
}

.recent-item strong {
    font-size: 13px;
}

.finder-statusbar {
    border-top: 1px solid #bcc6d1;
    font-size: 12px;
}

.finder-statusbar-copy,
.finder-statusbar-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.finder-statusbar-links a {
    color: #235e9f;
    font-weight: 700;
    text-decoration: none;
}

.finder-statusbar-links a:hover {
    text-decoration: underline;
}

.finder-utility-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 14px;
}

.finder-utility-grid.is-no-audit {
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
}

.finder-utility-panel {
    display: grid;
    gap: 14px;
    padding: 14px;
    border-radius: 10px;
}

.finder-utility-panel p,
.finder-utility-panel li {
    color: #5c6b7b;
}

.audit-panel {
    min-width: 0;
}

.audit-panel-head {
    align-items: end;
    gap: 14px;
}

.audit-panel-controls {
    gap: 10px;
}

.audit-log-list {
    gap: 10px;
}

.audit-log-item {
    align-items: center;
    padding: 12px 14px;
    border-radius: 8px;
    border-color: #cbd4de;
    background: linear-gradient(180deg, #ffffff 0%, #f0f4f8 100%);
}

.audit-log-badge,
.audit-log-scope {
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 11px;
}

.link-generator-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.link-generator-result {
    border-radius: 8px;
    border-color: #9ec0e4;
    background: linear-gradient(180deg, #edf5ff 0%, #fefefe 100%);
}

.link-generator-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.link-generator-meta-card {
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #eef2f6 100%);
}

.finder-rules-panel .list {
    margin: 0;
}

.btn {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 6px;
    background: linear-gradient(180deg, #4f89d2 0%, #2d69b3 100%);
    border-color: #2f6ab5;
    font-size: 12px;
    letter-spacing: 0.01em;
}

.btn:hover {
    transform: none;
    background: linear-gradient(180deg, #5b95dd 0%, #346fb9 100%);
}

.btn.secondary {
    background: linear-gradient(180deg, #ffffff 0%, #eef2f6 100%);
    color: #34475b;
    border-color: #c2ccd6;
}

.folder-context-menu {
    min-width: 210px;
    padding: 8px;
    border-radius: 8px;
    border-color: #c4ccd6;
    background: linear-gradient(180deg, #ffffff 0%, #eef2f6 100%);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
}

.folder-context-menu-title {
    padding: 8px 10px;
    font-size: 11px;
}

.folder-context-action {
    min-height: 32px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 12px;
}

.preview-modal-dialog {
    border-radius: 12px;
}

.preview-modal-header {
    background: linear-gradient(180deg, #fbfcfd 0%, #e4e9ee 100%);
}

.preview-modal-body {
    background: linear-gradient(180deg, #f6f8fb 0%, #e8edf3 100%);
}

@media (max-width: 1220px) {
    .finder-page {
        grid-template-columns: 270px minmax(0, 1fr);
    }

    .finder-workarea {
        grid-template-columns: minmax(0, 1fr);
    }

    .finder-browser {
        border-right: 0;
        border-bottom: 1px solid #c5ced8;
    }

    .finder-utility-grid,
    .finder-utility-grid.is-no-audit {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {
    .shell {
        width: min(100%, calc(100% - 12px));
        padding-top: 10px;
    }

    .finder-page {
        grid-template-columns: 1fr;
    }

    .finder-sidebar {
        position: static;
        max-height: none;
    }

    .finder-toolbar,
    .finder-pathbar,
    .finder-statusbar {
        flex-direction: column;
        align-items: stretch;
    }

    .finder-toolbar-group.is-right,
    .finder-pathbar-actions {
        justify-content: flex-start;
        min-width: 0;
    }

    .finder-search-field {
        width: 100%;
    }

    .link-generator-grid,
    .link-generator-meta {
        grid-template-columns: 1fr;
    }
}

/* Folder share modal and action button */
.folder-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.folder-card-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid #c9d6e6;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #edf3fb 100%);
    color: #295782;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.folder-card-share:hover {
    border-color: #7ea3d3;
    background: linear-gradient(180deg, #eef5ff 0%, #dbe8f8 100%);
    color: #1f4568;
}

.share-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(4px);
}

.share-modal[hidden] {
    display: none;
}

.share-modal-dialog {
    width: min(860px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border: 1px solid #bfd0e4;
    border-radius: 18px;
    background: linear-gradient(180deg, #fefefe 0%, #eef3f8 100%);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.24);
}

.share-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #d7e0eb;
}

.share-modal-title {
    display: grid;
    gap: 6px;
}

.share-modal-title strong {
    font-size: 1.15rem;
    color: #223246;
}

.share-modal-title span {
    color: #5f7082;
    font-size: 13px;
}

.share-modal-body {
    display: grid;
    gap: 16px;
    padding: 18px 20px 20px;
}

.share-modal-form,
.share-result-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid #cfdae8;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
}

.share-modal-actions {
    display: flex;
    justify-content: flex-end;
}

.file-link-modal-dialog {
    width: min(640px, 100%);
}

.folder-create-modal-dialog {
    width: min(560px, 100%);
}

.link-target-picker {
    display: grid;
    gap: 14px;
}

.link-target-picker .upload-field {
    margin: 0;
}

.link-folder-tree-wrap {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #d2dcea;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
}

.link-folder-tree-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.link-folder-tree-head-copy {
    display: grid;
    gap: 4px;
}

.link-folder-tree-head strong {
    color: #223246;
    font-size: 14px;
}

.link-folder-tree-head span {
    color: #5f7082;
    font-size: 12px;
    font-weight: 700;
}

.link-folder-tree-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.link-folder-tree {
    display: grid;
    gap: 8px;
    max-height: 320px;
    overflow: auto;
    padding-right: 4px;
}

.link-folder-tree-empty {
    margin: 0;
}

.link-folder-branch {
    display: grid;
    gap: 8px;
}

.link-folder-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding-left: calc(var(--link-depth, 0) * 18px);
}

.link-folder-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-width: 28px;
    height: 28px;
    margin-top: 8px;
    border: 1px solid #d0dbea;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #edf3fb 100%);
    color: #476482;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.link-folder-toggle:hover:not(:disabled) {
    border-color: #8bb1d8;
    background: linear-gradient(180deg, #eef5ff 0%, #dceafa 100%);
}

.link-folder-toggle.is-disabled,
.link-folder-toggle:disabled {
    opacity: 0.55;
    cursor: default;
}

.link-folder-toggle.is-placeholder {
    border-style: dashed;
    background: rgba(255, 255, 255, 0.65);
    cursor: default;
}

.link-folder-node {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #d8e2ef;
    background: linear-gradient(180deg, #ffffff 0%, #f3f7fb 100%);
    text-align: left;
}

.link-folder-node.is-selectable {
    cursor: pointer;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.link-folder-node.is-selectable:hover {
    transform: translateY(-1px);
    border-color: #8bb1d8;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.link-folder-node.is-selected {
    border-color: #5f95cf;
    background: linear-gradient(180deg, #edf5ff 0%, #dceafa 100%);
    box-shadow: inset 0 0 0 1px rgba(95, 149, 207, 0.18);
}

.link-folder-node.is-group {
    border-style: dashed;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.link-folder-node-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    color: #476482;
    font-size: 14px;
    line-height: 1.2;
    padding-top: 2px;
}

.link-folder-node-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.link-folder-node-copy strong {
    color: #223246;
    font-size: 14px;
}

.link-folder-node-copy span {
    color: #66788c;
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.link-folder-children {
    display: grid;
    gap: 8px;
}

.link-folder-selection {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid #d8e2ef;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.link-folder-selection strong {
    color: #223246;
    font-size: 13px;
}

.link-folder-selection span {
    color: #5f7082;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.file-link-hint {
    padding: 12px 14px;
    border: 1px solid #d8e2ef;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
    color: #516173;
    font-size: 13px;
    line-height: 1.5;
}

.share-result-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.share-result-head > div:first-child {
    display: grid;
    gap: 4px;
}

.share-result-head span {
    color: #617182;
    font-size: 13px;
}

.share-result-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.share-result-grid {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.share-result-qr-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 12px;
    border: 1px dashed #c9d7e8;
    border-radius: 14px;
    background: linear-gradient(180deg, #fdfefe 0%, #f1f5f9 100%);
}

.share-result-qr {
    width: 100%;
    max-width: 184px;
    height: auto;
}

.share-result-meta {
    display: grid;
    gap: 12px;
}

@media (max-width: 920px) {
    .folder-card-share {
        width: 100%;
    }

    .share-modal {
        padding: 14px;
        align-items: flex-start;
    }

    .share-modal-dialog {
        max-height: calc(100vh - 28px);
    }

    .share-modal-header,
    .share-result-head {
        flex-direction: column;
    }

    .share-result-actions,
    .share-modal-actions {
        width: 100%;
        justify-content: stretch;
    }

    .share-result-actions .btn,
    .share-modal-actions .btn {
        width: 100%;
    }

    .share-result-grid {
        grid-template-columns: 1fr;
    }
}

.finder-company-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 10px;
    border: 1px solid #ccd5df;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f2f5f8 100%);
    text-decoration: none;
}

.finder-company-logo-link.is-static {
    cursor: default;
}

.finder-company-logo-link.is-compact {
    min-height: 0;
    width: 56px;
    height: 36px;
    padding: 4px 6px;
    border-radius: 6px;
}

.finder-company-logo {
    display: block;
    max-width: 100%;
    max-height: 92px;
    object-fit: contain;
}

.finder-company-logo-link.is-compact .finder-company-logo {
    max-height: 26px;
}

.finder-tree-panel .explorer-tree {
    min-height: 260px;
    max-height: 430px;
}

.finder-storage-panel {
    margin-top: 0;
}

.finder-company-list-panel {
    display: grid;
    gap: 14px;
    padding: 14px;
    border: 1px solid #bfc8d3;
    border-radius: 10px;
    background: linear-gradient(180deg, #f7f8fa 0%, #e9edf2 100%);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.finder-main-company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.finder-main-company-card {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid #c6d0db;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #eef2f6 100%);
    color: #334357;
    text-decoration: none;
}

.finder-main-company-card strong {
    font-size: 14px;
}

.finder-main-company-card span {
    color: #6a7a8c;
    font-size: 12px;
    font-weight: 700;
}

.finder-main-company-card:hover,
.finder-main-company-card.is-active {
    border-color: #7ea3d3;
    background: linear-gradient(180deg, #e8f0fb 0%, #d5e3f6 100%);
}

.company-logo-admin-panel {
    grid-template-columns: 1fr;
}

.company-logo-admin-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
}

.company-logo-grid {
    align-items: start;
}

.company-logo-preview-card {
    display: grid;
    gap: 8px;
}

.company-logo-preview-card .finder-company-logo-link {
    min-height: 120px;
}

.company-logo-hint {
    margin: 0;
    color: #5d6c7d;
    font-size: 12px;
}

.finder-primary-action.is-active {
    border-color: #7fa3d1;
    background: linear-gradient(180deg, #4d85cf 0%, #2d68b3 100%);
    color: #fff;
}

@media (max-width: 920px) {
    .finder-tree-panel .explorer-tree {
        max-height: 320px;
    }
}

.finder-main-toolbar {
    border-radius: 10px;
}

.finder-view-stack {
    display: grid;
    gap: 14px;
}

.finder-view-panel[hidden] {
    display: none;
}

.finder-links-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 14px;
}

.finder-api-panel {
    display: grid;
    gap: 14px;
    padding: 14px;
    border: 1px solid #bfc8d3;
    border-radius: 10px;
    background: linear-gradient(180deg, #f7f8fa 0%, #e9edf2 100%);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.finder-api-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}

.finder-api-head h2 {
    margin: 0 0 4px;
    font-size: 16px;
    color: #334357;
}

.finder-api-head p {
    margin: 0;
    color: #66778a;
    font-size: 12px;
}

.finder-api-output {
    margin: 0;
    min-height: 320px;
    max-height: 70vh;
    overflow: auto;
    padding: 16px;
    border: 1px solid #cad4de;
    border-radius: 8px;
    background: #f8fbfe;
    color: #223449;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: Consolas, "Courier New", monospace;
}

.finder-side-link {
    width: 100%;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

@media (max-width: 920px) {
    .finder-links-grid {
        grid-template-columns: 1fr;
    }

    .finder-api-head {
        flex-direction: column;
        align-items: stretch;
    }
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.15), transparent 35%),
        radial-gradient(circle at top right, rgba(14, 116, 144, 0.12), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
}

.shell {
    width: min(1380px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 40px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 14px 18px;
    border-radius: 20px;
    border: 1px solid rgba(203, 213, 225, 0.6);
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.topbar-user {
    display: grid;
    gap: 4px;
}

.topbar-user strong {
    font-size: 15px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.topbar-user span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(240,249,255,0.84));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-compact {
    padding: 28px;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -60px -90px auto;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.18) 0%, transparent 65%);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 28px;
    margin-top: 18px;
}

.hero h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.02;
}

.hero p {
    margin: 0;
    max-width: 780px;
    color: var(--muted);
    line-height: 1.7;
}

.hero-panel {
    position: relative;
    padding: 22px;
    border-radius: 24px;
    background: rgba(248, 250, 252, 0.78);
    border: 1px solid rgba(203, 213, 225, 0.6);
}

.stack {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.card {
    grid-column: span 12;
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid rgba(203, 213, 225, 0.55);
    background: var(--surface);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.card h2 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.card p,
.card li {
    color: var(--muted);
    line-height: 1.7;
}

.audit-panel {
    display: grid;
    gap: 18px;
}

.audit-panel-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
}

.audit-panel-controls {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 12px;
}

.audit-filter {
    display: grid;
    gap: 8px;
    min-width: 220px;
    color: var(--muted);
    font-size: 13px;
}

.audit-filter select {
    width: 100%;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.96);
    font: inherit;
}

.audit-log-list {
    display: grid;
    gap: 12px;
}

.audit-log-item {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(203, 213, 225, 0.74);
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(241,245,249,0.92));
}

.audit-log-main {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.audit-log-main strong {
    font-size: 15px;
}

.audit-log-main p {
    margin: 0;
    color: var(--muted);
}

.audit-log-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.audit-log-badge,
.audit-log-scope {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.audit-log-badge {
    background: rgba(231, 246, 243, 0.92);
    color: var(--primary-strong);
}

.audit-log-scope {
    background: rgba(226, 232, 240, 0.88);
    color: #334155;
}

.audit-log-time {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.span-4 {
    grid-column: span 4;
}

.span-6 {
    grid-column: span 6;
}

.span-8 {
    grid-column: span 8;
}

.kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.kpi {
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(241,245,249,0.95));
    border: 1px solid rgba(203, 213, 225, 0.75);
}

.kpi strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.8rem;
    color: var(--primary-strong);
}

.list {
    margin: 0;
    padding-left: 18px;
}

.list li + li {
    margin-top: 8px;
}

.tree {
    display: grid;
    gap: 14px;
}

.tree-node {
    padding: 16px;
    border-left: 3px solid var(--primary);
    border-radius: 14px;
    background: rgba(255,255,255,0.85);
}

.explorer-shell {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr) 320px;
    gap: 18px;
    margin-top: 24px;
    align-items: start;
}

.explorer-sidebar,
.explorer-main,
.explorer-details {
    min-width: 0;
}

.explorer-sidebar,
.explorer-details,
.explorer-content-card {
    border-radius: 24px;
    border: 1px solid rgba(203, 213, 225, 0.55);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.explorer-sidebar,
.explorer-details {
    padding: 20px;
    position: sticky;
    top: 18px;
}

.explorer-section-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.explorer-section-head h2,
.explorer-subhead h3,
.explorer-title {
    margin: 0;
}

.explorer-section-head p,
.explorer-subhead p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.explorer-tree {
    display: grid;
    gap: 4px;
}

.tree-branch {
    display: grid;
    gap: 4px;
}

.tree-row-shell {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tree-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.tree-row:hover {
    background: rgba(226, 232, 240, 0.5);
}

.tree-row.active {
    background: linear-gradient(135deg, rgba(15,118,110,0.16), rgba(8,145,178,0.11));
    color: var(--primary-strong);
    font-weight: 700;
}

.tree-row.can-expand .tree-arrow {
    transition: color 0.18s ease, transform 0.18s ease;
}

.tree-row.is-expanded:not(.active) {
    background: linear-gradient(135deg, rgba(245, 203, 92, 0.18), rgba(249, 225, 145, 0.10));
    color: #7c5b12;
}

.tree-row.is-expanded .tree-arrow {
    color: #b7791f;
    transform: translateY(-1px);
}

.tree-row.is-expanded .tree-label {
    font-weight: 700;
}

.tree-arrow {
    width: 14px;
    color: #64748b;
    flex: 0 0 14px;
}

.tree-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.explorer-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.explorer-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.explorer-breadcrumbs button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #475569;
    font-weight: 600;
    cursor: pointer;
}

.explorer-breadcrumbs button.current {
    color: var(--primary-strong);
}

.explorer-breadcrumbs span {
    color: #94a3b8;
}

.explorer-title {
    font-size: 1.65rem;
}

.explorer-toolbar-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.search-field {
    display: grid;
    gap: 8px;
    min-width: 280px;
    color: var(--muted);
    font-size: 13px;
}

.search-field input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.95);
    font: inherit;
}

.explorer-panels {
    display: grid;
    gap: 18px;
}

.explorer-content-card {
    padding: 20px;
}

.explorer-subhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.mini-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--primary-strong);
    font-weight: 700;
    font-size: 12px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.folder-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid rgba(203, 213, 225, 0.75);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(241,245,249,0.92));
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.folder-card-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
}

.folder-card-main {
    display: grid;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    color: inherit;
    cursor: pointer;
}

.folder-card:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 118, 110, 0.45);
}

.folder-card strong {
    font-size: 15px;
}

.folder-card span {
    color: var(--muted);
    font-size: 13px;
}

.folder-card-icon {
    font-size: 24px;
}

.folder-menu-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(203, 213, 225, 0.8);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    color: #334155;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    flex: 0 0 34px;
}

.folder-menu-trigger:hover {
    border-color: rgba(15, 118, 110, 0.45);
    color: var(--primary-strong);
}

.file-table-wrap {
    overflow: auto;
}

.file-table {
    width: 100%;
    border-collapse: collapse;
}

.file-table th,
.file-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    text-align: left;
    vertical-align: middle;
}

.file-table th {
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.file-table tbody tr {
    cursor: pointer;
    transition: background 0.18s ease;
}

.file-table tbody tr:hover {
    background: rgba(241, 245, 249, 0.75);
}

.file-table tbody tr.is-selected {
    background: rgba(231, 246, 243, 0.9);
}

.file-cell-primary {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-cell-primary strong {
    display: block;
}

.file-cell-primary small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.file-cell-date {
    margin-bottom: 8px;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mini-action {
    padding: 6px 10px;
    border: 1px solid rgba(203, 213, 225, 0.85);
    border-radius: 10px;
    background: rgba(255,255,255,0.95);
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.mini-action.danger {
    color: #b91c1c;
    border-color: rgba(248, 113, 113, 0.45);
}

.file-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 8px 10px;
    border-radius: 12px;
    background: #e2e8f0;
    color: #334155;
    font-size: 11px;
    font-weight: 800;
}

.details-card {
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(241,245,249,0.94));
    border: 1px solid rgba(203, 213, 225, 0.7);
}

.details-card + .details-card {
    margin-top: 16px;
}

.details-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.details-header strong {
    display: block;
    font-size: 16px;
}

.details-header span {
    color: var(--muted);
    font-size: 13px;
}

.details-icon {
    font-size: 24px;
}

.details-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.details-list div {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.details-list dt {
    margin-bottom: 4px;
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.details-list dd {
    margin: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.details-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.file-preview-shell {
    margin-top: 18px;
}

.file-preview-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(203, 213, 225, 0.7);
}

.file-preview-card.is-empty,
.file-preview-card.is-loading {
    gap: 8px;
}

.file-preview-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.file-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.file-preview-head strong {
    font-size: 14px;
}

.file-preview-head span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.file-preview-image {
    display: block;
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.file-preview-frame {
    width: 100%;
    height: 320px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    background: #fff;
}

.file-preview-text {
    margin: 0;
    max-height: 280px;
    overflow: auto;
    padding: 14px;
    border-radius: 14px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: Consolas, "Courier New", monospace;
}

.file-preview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.preview-expand-action {
    justify-self: start;
}

.recent-item {
    display: grid;
    gap: 5px;
    padding: 12px 0;
    min-width: 0;
}

.recent-item + .recent-item {
    border-top: 1px solid rgba(226, 232, 240, 0.85);
}

.recent-item strong,
.recent-item span,
.recent-item small {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.recent-item span,
.recent-item small {
    color: var(--muted);
}

.upload-form {
    display: grid;
    gap: 12px;
}

.upload-field {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
}

.upload-field input {
    width: 100%;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.96);
    font: inherit;
}

.upload-field select,
.upload-field textarea {
    width: 100%;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.96);
    font: inherit;
}

.link-generator-form {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.link-generator-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.link-generator-result {
    display: grid;
    gap: 16px;
    margin-top: 18px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(15, 118, 110, 0.16);
    background: linear-gradient(180deg, rgba(231, 246, 243, 0.64), rgba(255, 255, 255, 0.94));
}

.link-generator-result[hidden] {
    display: none;
}

.link-generator-result-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
}

.link-generator-result-head h3 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.link-generator-result-head p,
.link-generator-result-meta p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.link-generator-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.link-generator-url {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(15, 23, 42, 0.95);
    color: #e2e8f0;
    font: inherit;
}

.link-generator-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.link-generator-meta-card {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(203, 213, 225, 0.78);
    background: rgba(255, 255, 255, 0.82);
}

.link-generator-meta-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--primary-strong);
}

.upload-target {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(231, 246, 243, 0.7);
    color: var(--primary-strong);
    font-size: 13px;
    font-weight: 600;
}

.upload-feedback {
    min-height: 20px;
    color: var(--primary-strong);
    font-size: 13px;
}

.upload-feedback.is-error {
    color: var(--danger);
}

.folder-context-menu {
    position: fixed;
    z-index: 50;
    min-width: 220px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(18px);
}

.folder-context-menu[hidden] {
    display: none;
}

.folder-context-menu-title {
    padding: 8px 10px 10px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.folder-context-action {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 11px 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.folder-context-action:hover {
    background: rgba(241, 245, 249, 0.95);
}

.folder-context-action.danger {
    color: #b91c1c;
}

.folder-context-action.danger:hover {
    background: rgba(254, 242, 242, 0.98);
}

.preview-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.64);
    backdrop-filter: blur(10px);
}

.preview-modal[hidden] {
    display: none;
}

.preview-modal-dialog {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(1240px, 100%);
    height: min(88vh, 920px);
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(203, 213, 225, 0.8);
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
}

.preview-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(248, 250, 252, 0.98);
}

.preview-modal-title {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.preview-modal-title strong {
    font-size: 16px;
}

.preview-modal-title span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.preview-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.preview-modal-body {
    min-height: 0;
    padding: 18px;
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.preview-modal-viewport {
    display: grid;
    gap: 14px;
    height: 100%;
}

.preview-modal-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 18px;
    background: #fff;
}

.preview-modal-frame {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 18px;
    background: #fff;
}

.preview-modal-text {
    margin: 0;
    height: 100%;
    overflow: auto;
    padding: 18px;
    border-radius: 18px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 13px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: Consolas, "Courier New", monospace;
}

.preview-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.preview-modal-empty {
    display: grid;
    gap: 8px;
    align-content: center;
    justify-items: center;
    height: 100%;
    padding: 28px;
    text-align: center;
    border-radius: 20px;
    border: 1px dashed rgba(148, 163, 184, 0.7);
    background: rgba(255, 255, 255, 0.72);
}

.preview-modal-empty p {
    margin: 0;
    max-width: 520px;
    color: var(--muted);
    line-height: 1.7;
}

.empty-box {
    padding: 18px;
    border: 1px dashed rgba(148, 163, 184, 0.7);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.85);
    color: var(--muted);
}

.auth-shell {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 140px);
}

.auth-card {
    width: min(520px, 100%);
    padding: 30px;
    border-radius: 28px;
    border: 1px solid rgba(203, 213, 225, 0.62);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.10);
    backdrop-filter: blur(14px);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.auth-brand-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex: 0 0 auto;
}

.auth-brand-copy {
    display: flex;
    align-items: center;
}

.auth-brand-copy strong {
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--text);
}

.auth-card h1 {
    margin: 18px 0 12px;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.05;
}
.auth-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.auth-hint {
    margin-top: 12px !important;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563 !important;
}

.auth-policy-feedback {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    background: rgba(248, 250, 252, 0.92);
}

.auth-policy-feedback strong {
    font-size: 13px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #0f766e;
}

.auth-policy-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth-policy-list li {
    position: relative;
    padding-left: 24px;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

.auth-policy-list li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #94a3b8;
}

.auth-policy-list li.is-valid {
    color: #047857;
}

.auth-policy-list li.is-valid::before {
    content: "✓";
    color: #059669;
}

.auth-policy-list li.is-invalid {
    color: #b45309;
}

.auth-policy-list li.is-invalid::before {
    content: "!";
    color: #d97706;
}

.auth-policy-message {
    margin: 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.6;
}

.auth-form {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.auth-alert {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(248, 113, 113, 0.3);
    background: rgba(254, 242, 242, 0.92);
    color: #b91c1c;
    font-size: 14px;
    font-weight: 600;
}

.auth-notice {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(16, 185, 129, 0.24);
    background: rgba(236, 253, 245, 0.96);
    color: #047857;
    font-size: 14px;
    font-weight: 600;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.auth-row-spaced {
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.auth-link {
    color: var(--primary-strong);
    text-decoration: none;
    font-weight: 700;
}

.auth-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.auth-link:hover {
    text-decoration: underline;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 14px;
    border: 1px solid transparent;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
    background: var(--primary-strong);
}

.btn.secondary {
    background: rgba(255,255,255,0.75);
    color: var(--text);
    border-color: var(--line);
}

@media (max-width: 640px) {
    .auth-brand {
        gap: 12px;
    }

    .auth-brand-logo {
        width: 52px;
        height: 52px;
    }

    .auth-brand-copy strong {
        font-size: 1.9rem;
    }
}
.footer {
    margin-top: 24px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(231, 246, 243, 0.9);
    color: var(--primary-strong);
    font-weight: 700;
}

.status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--primary);
}

.code {
    padding: 4px 8px;
    border-radius: 8px;
    background: #0f172a;
    color: #e2e8f0;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
}

.drive-workspace {
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.drive-sidebar-panel,
.drive-header-card,
.drive-section-card {
    border-radius: 28px;
    border: 1px solid rgba(203, 213, 225, 0.7);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(12px);
}

.drive-sidebar-panel {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 18px;
    padding: 22px 18px 20px;
}

.drive-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.drive-brand-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex: 0 0 56px;
}

.drive-brand-copy {
    display: grid;
    gap: 2px;
}

.drive-brand-copy span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.drive-brand-copy strong {
    font-size: 1.35rem;
}

.drive-nav {
    display: grid;
    gap: 8px;
}

.drive-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    color: #334155;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.18s ease, color 0.18s ease;
}

.drive-nav-link:hover,
.drive-nav-link.is-active {
    background: #dbeafe;
    color: #1d4ed8;
}

.drive-create-btn {
    width: 100%;
    justify-content: center;
}

.drive-sidebar-label {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.drive-company-list {
    display: grid;
    gap: 10px;
}

.drive-company-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(203, 213, 225, 0.72);
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.drive-company-pill strong,
.drive-company-pill span {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.drive-company-pill span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.drive-company-pill.is-active {
    border-color: rgba(29, 78, 216, 0.18);
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.8), rgba(255, 255, 255, 0.95));
}

.drive-tree-card,
.drive-storage-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(203, 213, 225, 0.72);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.92));
}

.drive-card-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
}

.drive-card-head h2 {
    margin: 0;
    font-size: 1rem;
}

.drive-card-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.drive-tree-card .explorer-tree {
    max-height: 380px;
    overflow: auto;
    padding-right: 4px;
}

.drive-storage-percent {
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
}

.drive-storage-value {
    display: grid;
    gap: 4px;
}

.drive-storage-value strong {
    font-size: 1.5rem;
}

.drive-storage-value span,
.drive-storage-meta span {
    color: var(--muted);
}

.drive-storage-meter {
    width: 100%;
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #dbeafe;
}

.drive-storage-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #38bdf8);
}

.drive-storage-meter.is-danger span {
    background: linear-gradient(90deg, #dc2626, #f97316);
}

.drive-storage-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    font-weight: 700;
}

.drive-storage-btn {
    width: 100%;
}

.drive-main-column {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.drive-header-card {
    display: grid;
    gap: 18px;
    padding: 26px 28px;
}

.drive-header-main {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 24px;
}

.drive-header-copy h1 {
    margin: 10px 0 10px;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.02;
}

.drive-header-copy p {
    margin: 0;
    max-width: 760px;
    color: var(--muted);
    line-height: 1.7;
}

.drive-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(110px, 1fr));
    gap: 12px;
    min-width: min(360px, 100%);
}

.drive-stat-card {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(203, 213, 225, 0.82);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(239,246,255,0.92));
}

.drive-stat-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.8rem;
    color: #1d4ed8;
}

.drive-stat-card span {
    color: var(--muted);
    font-weight: 700;
}

.drive-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.drive-api-link {
    padding-inline: 14px;
}

.drive-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.drive-explorer-main {
    min-width: 0;
}

.drive-details-panel {
    top: 18px;
}

.drive-section-card {
    padding: 24px;
}

.drive-lower-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 960px) {
    .hero-grid,
    .kpis {
        grid-template-columns: 1fr;
    }

    .audit-panel-head,
    .audit-log-item {
        flex-direction: column;
    }

    .drive-workspace,
    .drive-content-grid {
        grid-template-columns: 1fr;
    }

    .drive-sidebar-panel {
        position: static;
    }

    .drive-header-main,
    .drive-storage-meta {
        flex-direction: column;
        align-items: stretch;
    }

    .drive-stat-grid,
    .drive-lower-grid {
        grid-template-columns: 1fr;
    }

    .explorer-shell {
        grid-template-columns: 1fr;
    }

    .explorer-sidebar,
    .explorer-details {
        position: static;
    }

    .explorer-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-field {
        min-width: 100%;
    }

    .link-generator-grid,
    .link-generator-meta {
        grid-template-columns: 1fr;
    }

    .span-4,
    .span-6,
    .span-8 {
        grid-column: span 12;
    }

    .preview-modal {
        padding: 12px;
    }

    .preview-modal-dialog {
        height: min(92vh, 100%);
        border-radius: 20px;
    }

    .preview-modal-header {
        align-items: start;
        flex-direction: column;
    }

    .topbar {
        align-items: start;
        flex-direction: column;
    }
}

/* elFinder overrides appended for precedence */
body {
    background:
        linear-gradient(180deg, #eef2f6 0%, #e4e9ee 100%);
}

.shell {
    width: min(1520px, calc(100% - 20px));
    padding: 18px 0 32px;
}

.topbar {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    border-color: #bfc8d3;
    background: linear-gradient(180deg, #fefefe 0%, #edf1f4 100%);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.finder-page {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.finder-sidebar,
.finder-frame,
.finder-utility-panel {
    border: 1px solid #bfc8d3;
    background: linear-gradient(180deg, #f7f8fa 0%, #e9edf2 100%);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.finder-sidebar {
    position: sticky;
    top: 12px;
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 10px;
    overflow: hidden;
}

.drive-brand {
    align-items: center;
    padding: 4px 2px 2px;
}

.drive-brand-logo {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
}

.drive-brand-copy strong {
    font-size: 1.42rem;
    letter-spacing: -0.02em;
}

.finder-side-nav,
.finder-sidebar-block {
    border: 1px solid #c6ced8;
    border-radius: 8px;
    background: linear-gradient(180deg, #fcfdfe 0%, #edf1f5 100%);
}

.finder-side-nav {
    display: grid;
    gap: 1px;
    padding: 6px;
}

.finder-side-link {
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 6px;
    color: #344456;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.finder-side-link:hover,
.finder-side-link.is-active {
    background: linear-gradient(180deg, #4b84ce 0%, #2d69b3 100%);
    color: #fff;
}

.finder-sidebar-block {
    display: grid;
    gap: 10px;
    padding: 10px;
}

.finder-block-head,
.drive-card-head,
.finder-pane-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.finder-block-head h2,
.drive-card-head h2,
.finder-pane-head h3,
.finder-inspector-head h2,
.finder-utility-panel h2 {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #4a5b70;
}

.finder-block-head span,
.drive-card-head p,
.finder-pathbar-label span,
.finder-inspector-head p {
    color: #6c7b8c;
    font-size: 12px;
}

.finder-primary-action,
.drive-storage-btn {
    width: 100%;
}

.drive-company-list {
    display: grid;
    gap: 8px;
    min-height: 0;
}

.drive-sidebar-label {
    color: #6b7785;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.drive-company-pill {
    border-radius: 6px;
    border-color: #cfd7e0;
    background: linear-gradient(180deg, #ffffff 0%, #eef2f6 100%);
    font-size: 12px;
}

.drive-company-pill:hover,
.drive-company-pill.is-active {
    border-color: #7ea3d3;
    background: linear-gradient(180deg, #e8f0fb 0%, #cfe0f5 100%);
}

.finder-tree-panel {
    min-height: 0;
}

.explorer-tree {
    min-height: 220px;
    max-height: 360px;
    overflow: auto;
    padding-right: 4px;
}

.finder-storage-panel {
    margin-top: auto;
    border-radius: 8px;
    padding: 12px;
}

.drive-storage-card {
    border: 1px solid #c4cdda;
    background: linear-gradient(180deg, #fbfcfd 0%, #ecf1f5 100%);
    box-shadow: none;
}

.drive-storage-percent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #dbe7f6;
    color: #2d5f9b;
    font-size: 12px;
    font-weight: 800;
}

.drive-storage-value {
    display: grid;
    gap: 4px;
}

.drive-storage-value strong {
    font-size: 1.2rem;
}

.drive-storage-meter {
    height: 14px;
    border-radius: 999px;
    border: 1px solid #b8c6d9;
    background: #dde5ef;
    overflow: hidden;
}

.drive-storage-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(180deg, #7fb76e 0%, #569044 100%);
}

.drive-storage-meter.is-danger span {
    background: linear-gradient(180deg, #e87474 0%, #cf3b3b 100%);
}

.drive-storage-meta {
    display: grid;
    gap: 4px;
    color: #5f7082;
    font-size: 12px;
}

.finder-main {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.finder-frame {
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
    min-width: 0;
    min-height: 760px;
    border-radius: 10px;
    overflow: hidden;
}

.finder-toolbar,
.finder-statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    background: linear-gradient(180deg, #fdfefe 0%, #e1e6eb 100%);
}

.finder-toolbar {
    border-bottom: 1px solid #bac4d0;
}

.finder-toolbar-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.finder-toolbar-group.is-right {
    justify-content: flex-end;
}

.finder-tool-button,
.finder-meta-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #c0c9d3;
    border-radius: 6px;
    background: linear-gradient(180deg, #ffffff 0%, #eef2f6 100%);
    color: #334357;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.finder-tool-button:hover,
.finder-tool-button.is-active {
    border-color: #7fa3d1;
    background: linear-gradient(180deg, #4d85cf 0%, #2d68b3 100%);
    color: #fff;
}

.finder-meta-chip {
    color: #536274;
}

.finder-pathbar {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    background: #f7f9fb;
    border-bottom: 1px solid #cfd7e1;
}

.finder-pathbar-main {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.finder-pathbar-label {
    display: grid;
    gap: 3px;
}

.finder-pathbar-label strong {
    font-size: 20px;
    letter-spacing: -0.02em;
}

.finder-pathbar-actions {
    display: flex;
    justify-content: flex-end;
    min-width: 280px;
}

.finder-search-field {
    display: grid;
    gap: 6px;
    width: min(320px, 100%);
    color: #617182;
    font-size: 12px;
    font-weight: 700;
}

.finder-search-field input {
    width: 100%;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 6px;
    border: 1px solid #c2ccd6;
    background: #fff;
    font: inherit;
}

.explorer-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}

.explorer-breadcrumbs button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #4d6583;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.explorer-breadcrumbs button.current {
    color: #215ea2;
}

.explorer-breadcrumbs span {
    color: #94a1b1;
}

.explorer-title {
    font-size: 1.45rem;
    letter-spacing: -0.02em;
}

.finder-summarybar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid #cad3dc;
    background: linear-gradient(180deg, #edf2f7 0%, #e3e9ef 100%);
}

.finder-summary-pill,
.finder-summary-stat {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid #c1ccd8;
    background: #fff;
    color: #405063;
    font-size: 12px;
    font-weight: 700;
}

.finder-summary-pill {
    border-color: #7da1d0;
    background: linear-gradient(180deg, #e8f0fb 0%, #d7e6f7 100%);
    color: #215d9f;
}

.finder-summary-stat strong {
    margin-right: 5px;
    color: #223449;
}

.finder-workarea {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 328px;
    min-height: 640px;
}

.finder-browser,
.finder-inspector {
    min-width: 0;
}

.finder-browser {
    display: grid;
    grid-template-rows: minmax(220px, auto) auto minmax(0, 1fr);
    border-right: 1px solid #c5ced8;
    background: #fff;
}

.finder-pane + .finder-pane {
    border-top: 1px solid #d7dee6;
}

.finder-pane-head {
    padding: 9px 12px;
    border-bottom: 1px solid #d3dbe4;
    background: linear-gradient(180deg, #fafbfd 0%, #e7ecf2 100%);
}

.finder-pane-body {
    padding: 14px;
    overflow: auto;
}

.mini-pill {
    min-width: 30px;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #dce7f5;
    color: #215c9f;
    font-size: 11px;
}

.content-grid {
    grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
    gap: 12px;
}

.folder-card {
    gap: 10px;
    padding: 10px 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    transition: border-color 0.16s ease, background 0.16s ease;
}

.folder-card:hover {
    transform: none;
    border-color: #8eadcf;
    background: #f2f7fd;
}

.folder-card-head {
    align-items: start;
    min-height: 30px;
}

.folder-card-main {
    justify-items: center;
    gap: 6px;
}

.folder-card-main strong,
.folder-card-main span {
    text-align: center;
}

.folder-card-main strong {
    font-size: 13px;
}

.folder-card-main span {
    font-size: 11px;
}

.finder-glyph {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    font-size: 0;
}

.finder-glyph[data-glyph="folder"],
.finder-glyph[data-glyph="folder-open"],
.finder-glyph[data-glyph="company"],
.finder-glyph[data-glyph="company-open"] {
    width: 42px;
    height: 30px;
}

.finder-glyph[data-glyph="folder"]::before,
.finder-glyph[data-glyph="folder-open"]::before,
.finder-glyph[data-glyph="company"]::before,
.finder-glyph[data-glyph="company-open"]::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 3px;
    width: 16px;
    height: 7px;
    border: 1px solid #7ea1c8;
    border-bottom: 0;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, #eef5fd 0%, #d7e8fb 100%);
}

.finder-glyph[data-glyph="folder"]::after,
.finder-glyph[data-glyph="folder-open"]::after,
.finder-glyph[data-glyph="company"]::after,
.finder-glyph[data-glyph="company-open"]::after {
    content: "";
    position: absolute;
    left: 1px;
    right: 1px;
    bottom: 2px;
    height: 21px;
    border: 1px solid #7ea1c8;
    border-radius: 4px;
    background: linear-gradient(180deg, #eef5fd 0%, #bfd7f4 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.finder-glyph[data-glyph="company"]::after,
.finder-glyph[data-glyph="company-open"]::after {
    background: linear-gradient(180deg, #f0f6ff 0%, #aecaeb 100%);
}

.finder-glyph[data-glyph="folder-open"]::before,
.finder-glyph[data-glyph="company-open"]::before {
    left: 7px;
    top: 2px;
    width: 18px;
    transform: skewX(-16deg);
}

.finder-glyph[data-glyph="folder-open"]::after,
.finder-glyph[data-glyph="company-open"]::after {
    left: 2px;
    right: 2px;
    bottom: 4px;
    height: 18px;
    border-radius: 5px;
    background: linear-gradient(180deg, #f6e9b6 0%, #e6bd62 100%);
}

.finder-glyph[data-glyph="document"] {
    width: 28px;
    height: 34px;
}

.finder-glyph[data-glyph="document"]::before {
    content: "";
    position: absolute;
    inset: 2px 4px 2px 2px;
    border: 1px solid #93a5ba;
    border-radius: 4px;
    background: linear-gradient(180deg, #ffffff 0%, #edf2f7 100%);
}

.finder-glyph[data-glyph="document"]::after {
    content: "";
    position: absolute;
    top: 2px;
    right: 4px;
    width: 8px;
    height: 8px;
    border-top: 1px solid #93a5ba;
    border-right: 1px solid #93a5ba;
    background: linear-gradient(135deg, #ffffff 0%, #dfe7f0 100%);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.file-table {
    font-size: 13px;
}

.file-table th,
.file-table td {
    padding: 10px 12px;
}

.file-table th {
    color: #6a788a;
    font-size: 11px;
}

.file-table tbody tr:hover {
    background: #f1f7ff;
}

.file-table tbody tr.is-selected {
    background: #e0ecfa;
}

.file-cell-primary {
    gap: 10px;
}

.finder-file-row-icon {
    width: 24px;
    height: 28px;
}

.file-type-badge {
    min-width: 42px;
    border-radius: 6px;
    background: linear-gradient(180deg, #e8edf4 0%, #d4dde7 100%);
    color: #405265;
    font-size: 10px;
}

.table-actions {
    gap: 5px;
}

.folder-menu-trigger,
.mini-action {
    min-height: 28px;
    padding: 0 9px;
    border-radius: 6px;
    border-color: #c4cdd8;
    background: linear-gradient(180deg, #ffffff 0%, #eef2f6 100%);
    font-size: 11px;
}

.folder-menu-trigger:hover,
.mini-action:hover {
    border-color: #8aaacf;
    color: #215d9f;
}

.finder-inspector {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 12px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
    overflow: auto;
}

.finder-inspector-head {
    display: grid;
    gap: 4px;
}

.details-card {
    border-radius: 8px;
    border: 1px solid #ccd5df;
    background: linear-gradient(180deg, #ffffff 0%, #f2f5f8 100%);
    box-shadow: none;
}

.details-card + .details-card {
    margin-top: 0;
}

.details-header {
    align-items: center;
    margin-bottom: 14px;
}

.details-icon {
    width: 40px;
    height: 34px;
}

.details-icon.finder-file-row-icon {
    width: 32px;
    height: 36px;
}

.details-list div {
    padding-bottom: 8px;
}

.details-list dt {
    font-size: 11px;
}

.details-actions {
    gap: 8px;
}

.details-actions .btn,
.upload-form .btn,
.actions .btn,
.audit-panel-controls .btn {
    min-height: 32px;
    padding: 0 12px;
}

.upload-form,
.link-generator-form {
    gap: 12px;
}

.upload-field,
.audit-filter {
    gap: 5px;
    color: #55667a;
    font-size: 12px;
    font-weight: 700;
}

.upload-field input,
.upload-field select,
.upload-field textarea,
.audit-filter select {
    min-height: 34px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid #c5ced8;
    background: #fff;
}

.upload-target,
.upload-feedback {
    font-size: 12px;
}

.recent-item {
    gap: 4px;
    padding: 10px 0;
}

.recent-item strong {
    font-size: 13px;
}

.finder-statusbar {
    border-top: 1px solid #bcc6d1;
    font-size: 12px;
}

.finder-statusbar-copy,
.finder-statusbar-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.finder-statusbar-links a {
    color: #235e9f;
    font-weight: 700;
    text-decoration: none;
}

.finder-statusbar-links a:hover {
    text-decoration: underline;
}

.finder-utility-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 14px;
}

.finder-utility-grid.is-no-audit {
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
}

.finder-utility-panel {
    display: grid;
    gap: 14px;
    padding: 14px;
    border-radius: 10px;
}

.finder-utility-panel p,
.finder-utility-panel li {
    color: #5c6b7b;
}

.audit-panel {
    min-width: 0;
}

.audit-panel-head {
    align-items: end;
    gap: 14px;
}

.audit-panel-controls {
    gap: 10px;
}

.audit-log-list {
    gap: 10px;
}

.audit-log-item {
    align-items: center;
    padding: 12px 14px;
    border-radius: 8px;
    border-color: #cbd4de;
    background: linear-gradient(180deg, #ffffff 0%, #f0f4f8 100%);
}

.audit-log-badge,
.audit-log-scope {
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 11px;
}

.link-generator-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.link-generator-result {
    border-radius: 8px;
    border-color: #9ec0e4;
    background: linear-gradient(180deg, #edf5ff 0%, #fefefe 100%);
}

.link-generator-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.link-generator-meta-card {
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #eef2f6 100%);
}

.finder-rules-panel .list {
    margin: 0;
}

.btn {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 6px;
    background: linear-gradient(180deg, #4f89d2 0%, #2d69b3 100%);
    border-color: #2f6ab5;
    font-size: 12px;
    letter-spacing: 0.01em;
}

.btn:hover {
    transform: none;
    background: linear-gradient(180deg, #5b95dd 0%, #346fb9 100%);
}

.btn.secondary {
    background: linear-gradient(180deg, #ffffff 0%, #eef2f6 100%);
    color: #34475b;
    border-color: #c2ccd6;
}

.folder-context-menu {
    min-width: 210px;
    padding: 8px;
    border-radius: 8px;
    border-color: #c4ccd6;
    background: linear-gradient(180deg, #ffffff 0%, #eef2f6 100%);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
}

.folder-context-menu-title {
    padding: 8px 10px;
    font-size: 11px;
}

.folder-context-action {
    min-height: 32px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 12px;
}

.preview-modal-dialog {
    border-radius: 12px;
}

.preview-modal-header {
    background: linear-gradient(180deg, #fbfcfd 0%, #e4e9ee 100%);
}

.preview-modal-body {
    background: linear-gradient(180deg, #f6f8fb 0%, #e8edf3 100%);
}

@media (max-width: 1220px) {
    .finder-page {
        grid-template-columns: 270px minmax(0, 1fr);
    }

    .finder-workarea {
        grid-template-columns: minmax(0, 1fr);
    }

    .finder-browser {
        border-right: 0;
        border-bottom: 1px solid #c5ced8;
    }

    .finder-utility-grid,
    .finder-utility-grid.is-no-audit {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {
    .shell {
        width: min(100%, calc(100% - 12px));
        padding-top: 10px;
    }

    .finder-page {
        grid-template-columns: 1fr;
    }

    .finder-sidebar {
        position: static;
        max-height: none;
    }

    .finder-toolbar,
    .finder-pathbar,
    .finder-statusbar {
        flex-direction: column;
        align-items: stretch;
    }

    .finder-toolbar-group.is-right,
    .finder-pathbar-actions {
        justify-content: flex-start;
        min-width: 0;
    }

    .finder-search-field {
        width: 100%;
    }

    .link-generator-grid,
    .link-generator-meta {
        grid-template-columns: 1fr;
    }
}

.file-type-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #cfd8e3;
    background: linear-gradient(180deg, #ffffff 0%, #eef3f8 100%);
    color: #5f7288;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.file-type-icon svg {
    width: 22px;
    height: 22px;
}

.file-cell-type-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.details-file-type-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
}

.details-file-type-icon svg {
    width: 24px;
    height: 24px;
}

.file-type-icon--image {
    background: linear-gradient(180deg, #eef8ff 0%, #dbeeff 100%);
    color: #2d77b6;
}

.file-type-icon--pdf {
    background: linear-gradient(180deg, #fff1f1 0%, #ffdede 100%);
    color: #c43d3d;
}

.file-type-icon--sheet {
    background: linear-gradient(180deg, #effaf2 0%, #dbf2e1 100%);
    color: #2f8a55;
}

.file-type-icon--audio {
    background: linear-gradient(180deg, #f8f0ff 0%, #eadfff 100%);
    color: #7b58b2;
}

.file-type-icon--video {
    background: linear-gradient(180deg, #fff6ea 0%, #ffe7c6 100%);
    color: #bf7a24;
}

.file-type-icon--archive {
    background: linear-gradient(180deg, #fff8eb 0%, #f7e3b7 100%);
    color: #9a6a17;
}

.file-type-icon--code {
    background: linear-gradient(180deg, #edf4ff 0%, #dae7ff 100%);
    color: #416eb6;
}

.file-type-icon--document {
    background: linear-gradient(180deg, #f7f9fc 0%, #e7edf4 100%);
    color: #6a7b8d;
}

