.feature-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;

    padding: 16px 8px;

    background: #fbfcff;
    border-right: 1px solid var(--border);
}

.rail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    width: 58px;
    min-height: 58px;
    padding: 7px 3px;

    color: var(--text-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 11px;

    font-size: 10px;
    font-weight: 700;

    transition: 0.18s ease;
}

.rail-item:hover {
    color: var(--primary);
    background: #f1f3ff;
}

.rail-item.active {
    color: var(--primary);
    background: var(--primary-soft);
    border-color: #dfe4ff;
}

.rail-icon {
    font-size: 21px;
    line-height: 1;
}

.rail-spacer {
    flex: 1;
}

.segment-panel {
    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 0;

    background: #fff;
    border-right: 1px solid var(--border);
}

.segment-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 22px 18px 16px;
}

.segment-panel-header h2 {
    margin: 5px 0 0;
    font-size: 17px;
}

.project-progress {
    margin: 0 18px 22px;
    padding: 13px;

    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.progress-info {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 9px;

    color: var(--text-secondary);
    font-size: 11px;
}

.progress-info strong {
    color: var(--primary);
    font-size: 12px;
}

.progress-track {
    height: 5px;
    overflow: hidden;

    background: #e6eaf4;
    border-radius: 99px;
}

.progress-value {
    width: 0;
    height: 100%;

    background: linear-gradient(90deg, #6476f3, #4c5fdf);
    border-radius: inherit;

    transition: width 0.2s ease;
}

.segment-count {
    display: flex;
    justify-content: space-between;

    padding: 0 18px 10px;

    color: var(--text-muted);
    font-size: 11px;
}

.segment-count span:last-child {
    color: var(--text-secondary);
    font-weight: 800;
}

.segment-list {
    flex: 1;
    min-height: 180px;
    padding: 0 10px 12px;

    overflow-y: auto;
}

.segment-item {
    position: relative;

    display: flex;
    gap: 10px;

    padding: 12px 10px;
    margin-bottom: 4px;

    border: 1px solid transparent;
    border-radius: 10px;

    cursor: pointer;
    transition: 0.15s ease;
}

.segment-item:hover {
    background: #f8f9ff;
}

.segment-item.active {
    background: var(--primary-soft);
    border-color: #dce2ff;
}

.segment-index {
    display: grid;
    place-items: center;

    width: 27px;
    height: 27px;
    flex-shrink: 0;

    color: var(--text-secondary);
    background: #eef1f7;

    border-radius: 8px;

    font-size: 10px;
    font-weight: 800;
}

.segment-item.active .segment-index {
    color: #fff;
    background: var(--primary);
}

.segment-info {
    min-width: 0;
    flex: 1;
}

.segment-info strong {
    display: block;

    margin-bottom: 4px;

    color: var(--text);
    font-size: 12px;
}

.segment-info p {
    display: -webkit-box;
    overflow: hidden;

    margin: 0;

    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.65;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.segment-meta {
    display: flex;
    align-items: center;
    gap: 5px;

    margin-top: 7px;

    color: var(--text-muted);
    font-size: 10px;
}

.segment-panel-footer {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 15px 18px;

    color: var(--text-muted);
    background: #fbfcff;
    border-top: 1px solid var(--border);

    font-size: 11px;
}

.footer-dot {
    width: 6px;
    height: 6px;

    background: #aab3c5;
    border-radius: 50%;
}