/* LLM Operations Navigation Rail - Professional Edition */
.vt-ops-rail {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0.5rem 0 1.25rem;
    padding: 1rem 1.25rem;
    background: rgba(37, 99, 235, 0.04);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 6px;
}

/* Header with branding and AI CTA */
.vt-ops-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ops-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ops-icon {
    font-size: 1.5rem;
    filter: none;
    color: #2563eb;
}

.ops-title {
    display: flex;
    flex-direction: column;
}

.ops-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--sacred-text, #eef0f5);
    letter-spacing: -0.01em;
}

.ops-scope {
    font-size: 0.7rem;
    color: #3b82f6;
    font-weight: 500;
}

.ops-ai-cta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.cta-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #2563eb;
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background-color 0.15s ease;
    overflow: hidden;
}

.cta-primary:hover {
    background: #1d4ed8;
}

/* Disabled pulse animation for professional look */
.cta-pulse {
    display: none;
}

.cta-icon {
    font-size: 1rem;
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--sacred-text-muted, #94a3b8);
    padding: 0.55rem 0.85rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--sacred-text, #eef0f5);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Navigation row */
.vt-ops-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0;
    align-items: center;
}

.vt-ops-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    color: var(--vt-muted, #94a3b8);
    padding: 0.5rem 0.85rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.vt-ops-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--sacred-text, #eef0f5);
    border-color: rgba(255, 255, 255, 0.12);
}

.vt-ops-chip.active {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.35);
    color: #3b82f6;
}

.vt-ops-chip:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.chip-icon {
    font-size: 0.9rem;
}

.chip-text {
    white-space: nowrap;
}

/* Context Panel */
.vt-ops-context {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ctx-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.ctx-mode {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ctx-mode.portfolio-mode {
    color: #3b82f6;
}

.ctx-mode.entity-mode {
    color: #2563eb;
}

/* Static indicator instead of pulse */
.mode-dot {
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: currentColor;
    animation: none;
}

/* Context Stats */
.ctx-stats {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.ctx-stat {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.06);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.ctx-stat.pending {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
}

.ctx-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--sacred-text, #eef0f5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ctx-sub {
    color: var(--vt-muted, #94a3b8);
    font-size: 0.75rem;
}

/* Context Actions */
.ctx-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.ctx-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
    background: transparent;
    color: inherit;
}

.ctx-link.primary {
    background: #2563eb;
    color: #fff;
}

.ctx-link.primary:hover {
    background: #1d4ed8;
}

.ctx-link.ghost {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ctx-link.ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--sacred-text, #eef0f5);
}

.ctx-link:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

button.ctx-link {
    cursor: pointer;
}

/* Responsive */
@media (max-width: 900px) {
    .vt-ops-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .ops-ai-cta {
        justify-content: center;
    }

    .vt-ops-nav {
        justify-content: center;
    }

    .vt-ops-context {
        align-items: center;
        text-align: center;
    }

    .ctx-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .vt-ops-rail {
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }

    .vt-ops-nav {
        margin: 0;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .vt-ops-context {
        width: 100%;
    }

    .vt-ops-chip {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 0.85rem;
        padding: 0.4rem 0.7rem;
    }

    .ctx-actions {
        width: 100%;
    }

    .ctx-link {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .ops-ai-cta {
        flex-direction: column;
        width: 100%;
    }

    .cta-primary,
    .cta-secondary {
        width: 100%;
        justify-content: center;
    }

    .ctx-actions {
        flex-direction: column;
    }

    .ctx-link {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}
