/* ── Right Panel Tabs (mirrors sidebar tab styling) ──────────── */

.right-panel-header {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    padding: 0px 6px 0px 9px;
    flex-shrink: 0;
    border-bottom: 0.5px solid #666666;
    box-sizing: border-box;
    /* box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.08); */
}

.right-panel-tabs {
    display: flex;
    align-items: flex-end;
    gap: 0px;
    height: 100%;
}

.right-panel-tab {
    display: none;
    position: relative;
    padding: 2px 13px 1px 13px;
    background-color: #ffecb9;
    cursor: pointer;
    border-radius: 5px 5px 0 0;
    white-space: nowrap;
    color: #1a1a1a;
    border: 0.5px solid #666666;
    border-bottom: none;
    font-size: 11px;
    font-family: var(--font-sans);
    line-height: 1.8;
    user-select: none;
    -webkit-user-select: none;
}

.right-panel-tab.open {
    display: block;
}

.right-panel-tab.active {
    background-color: #ffe39e;
    color: #1a1a1a;
    z-index: 1;
    padding: 3px 13px 2px 13px;
    margin-bottom: -1px;
}

.right-panel-tab-close {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background-color: #333333;
    color: #fafafa;
    font-size: 15px;
    line-height: 12px;
    font-weight: 400;
    text-align: center;
    cursor: pointer;
    display: none;
    border: none;
}

.right-panel-tab:hover .right-panel-tab-close {
    display: block;
}

.right-panel-title-bar {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px 6px 1px 12px;
    background: #ffe39e;
    flex-shrink: 0;
    border-left: 0.5px solid #666666;
    border-bottom: 0.5px solid #999999;
    border-radius: 3px 3px 0px 0px;
    min-height: 24px;
}

.right-panel-title {
    font-size: 11px;
    letter-spacing: 0.02em;
    color: #333333;
    font-family: var(--font-sans);
    flex: 1;
    padding-top: 1px;
}

.right-panel-status-label {
    font-size: 10px;
    color: #333333;
    font-family: var(--font-sans);
    flex-shrink: 0;
}

.right-panel-status-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #999;
    transition: background 0.3s;
}

.right-panel-status-led.connected {
    background: #3a9a5c;
    box-shadow: 0 0 4px #3a9a5c88;
    margin-right: 6px;
    margin-left: 4px;
}

.right-panel-status-led.disconnected {
    background: #c0392b;
}

.right-panel-status-led.connecting {
    background: #e6a817;
    animation: led-pulse 1.2s infinite ease-in-out;
}

@keyframes led-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.right-panel-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff9e3;
    border-left: 0.5px solid #666666;
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.08);
}

.prompts-view {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}
