.graph-navigation {
    box-sizing: border-box;
    position: fixed;
    right: 14px;
    bottom: 14px;
    left: 14px;
    z-index: 10000;
    display: flex;
    width: min(calc(100% - 28px), 720px);
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-inline: auto;
    padding: 6px;
    border: 1px solid rgba(20, 24, 30, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 30px rgba(20, 24, 30, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #202124;
    font-family: Arial, sans-serif;
}

.graph-navigation.is-collapsed {
    right: 14px;
    left: auto;
    width: 48px;
    min-height: 48px;
    padding: 3px;
}

.graph-navigation.is-collapsed .graph-folder-link,
.graph-navigation.is-collapsed .graph-pager {
    display: none;
}

.graph-folder-link,
.graph-arrow,
.graph-navigation-toggle {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(20, 24, 30, 0.14);
    border-radius: 7px;
    background: #ffffff;
    color: #202124;
    text-decoration: none;
}

.graph-navigation-toggle {
    width: 42px;
    min-width: 42px;
    padding: 0;
    cursor: pointer;
}

.graph-folder-link {
    padding: 0 13px;
    font-size: 0.88rem;
    font-weight: 600;
}

.graph-pager {
    display: grid;
    min-width: 0;
    flex: 1;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 6px;
}

.graph-arrow {
    width: 42px;
}

.graph-arrow svg,
.graph-navigation-toggle svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.graph-arrow.is-disabled {
    cursor: default;
    opacity: 0.32;
}

.graph-position {
    min-width: 0;
    text-align: center;
}

.graph-position-count,
.graph-position-title {
    display: block;
}

.graph-position-count {
    color: #666a70;
    font-size: 0.72rem;
    font-weight: 600;
}

.graph-position-title {
    overflow: hidden;
    font-size: 0.84rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 520px) {
    .graph-navigation {
        right: 8px;
        bottom: 8px;
        left: 8px;
        width: calc(100% - 16px);
        gap: 6px;
    }

    .graph-navigation.is-collapsed {
        right: 8px;
        left: auto;
        width: 48px;
    }

    .graph-folder-link {
        padding-inline: 10px;
        font-size: 0.8rem;
    }

    .graph-position-title {
        max-width: 150px;
        margin-inline: auto;
        font-size: 0.76rem;
    }

    .graph-folder-link,
    .graph-arrow,
    .graph-navigation-toggle {
        transition: none;
    }
}
