.home-explorer-action {
    margin-top: 24px;
}

.home-explorer-action button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid #008f67;
    border-radius: 4px;
    background: #00a877;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.home-explorer-action button:hover,
.home-explorer-action button:focus {
    background: #008f67;
    border-color: #007f5c;
    color: #fff;
    outline: none;
    transform: translateY(-1px);
}

.home-explorer-action button i {
    font-size: 15px;
}

.text-center .home-explorer-action {
    display: flex;
    justify-content: center;
}

.global-library-panel {
    max-width: 1120px;
    margin: 0 auto;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
    text-align: left;
    overflow: hidden;
}

.global-library-header {
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 0 22px;
    border-bottom: 1px solid #e6eeee;
    background: #fbfefd;
}

.global-library-header h4 {
    margin: 0;
    color: #253d36;
    font-size: 18px;
    font-weight: 800;
}

.global-library-body {
    display: grid;
    grid-template-columns: minmax(280px, 36%) minmax(0, 1fr);
    min-height: 520px;
}

.global-library-tree-wrap {
    min-width: 0;
    border-right: 1px solid #e6eeee;
    background: #fff;
}

.global-library-results {
    min-width: 0;
    padding: 18px;
    background: #fbfefd;
}

.global-library-results-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.global-library-results-header strong {
    display: block;
    color: #253d36;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.global-library-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #00875e;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.global-library-count {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 4px;
    background: #eaf8f3;
    color: #00875e;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.global-library-root,
.global-library-branch {
    list-style: none;
    margin: 0;
    padding: 0;
}

.global-library-root {
    max-height: 520px;
    overflow: auto;
    padding: 12px 16px 18px;
}

.global-library-branch {
    display: none;
    padding-left: 24px;
}

.global-library-item {
    margin: 4px 0;
}

.global-library-node {
    display: flex;
    align-items: center;
    min-height: 34px;
}

.global-library-toggle,
.global-library-link {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.global-library-toggle {
    width: 24px;
    height: 30px;
    color: #71847e;
    padding: 0;
    transition: transform 0.2s, color 0.2s;
}

.global-library-toggle.is-empty {
    cursor: default;
    opacity: 0;
}

.global-library-item.is-open > .global-library-node .global-library-toggle {
    transform: rotate(90deg);
    color: #00a877;
}

.global-library-link {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    min-height: 32px;
    padding: 5px 8px;
    border-radius: 4px;
    color: #43504c;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
    transition: background 0.2s, color 0.2s;
}

.global-library-link i {
    color: #2f93d8;
    flex: 0 0 auto;
}

.global-library-link span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.global-library-link:hover,
.global-library-link:focus,
.global-library-link.is-active {
    background: #f0fbf7;
    color: #00875e;
    outline: none;
}

.global-library-item.is-open > .global-library-node .global-library-link i,
.global-library-link.is-active i {
    color: #00a877;
}

.home-library-search {
    width: 100%;
    margin-bottom: 12px;
}

.home-library-search .search-input {
    height: 48px;
}

.home-library-files {
    max-height: 420px;
    overflow: auto;
    border: 1px solid #e7eeee;
    border-radius: 4px;
    background: #fff;
}

.home-library-files .file-row {
    min-height: 72px;
    padding: 10px 12px;
}

.home-library-files .file-type-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
}

.home-library-files .file-icon-lines {
    width: 22px;
    height: 14px;
}

.home-library-files .file-icon-lines:before {
    top: 5px;
    width: 22px;
}

.home-library-files .file-name {
    font-size: 13px;
}

@media (max-width: 768px) {
    .global-library-body {
        grid-template-columns: 1fr;
    }

    .global-library-tree-wrap {
        border-right: 0;
        border-bottom: 1px solid #e6eeee;
    }

    .global-library-results {
        padding: 14px 10px 16px;
    }

    .global-library-results-header {
        flex-direction: column;
        align-items: stretch;
    }

    .global-library-root {
        max-height: 460px;
        padding: 10px;
    }

    .global-library-branch {
        padding-left: 16px;
    }

    .home-library-files {
        max-height: none;
    }
}
