/* Wire Protocol Inspector — additional styles */

.view-tabs {
    display: flex;
    gap: 2px;
    background: var(--bg-elevated);
    border-radius: 6px;
    padding: 2px;
}

.view-tab {
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 4px;
    color: var(--text-tertiary);
    text-decoration: none;
    transition: all 0.15s ease;
}

.view-tab:hover { color: var(--text-secondary); }
.view-tab.active { background: var(--bg-surface); color: var(--text-primary); }

/* Main layout */
.wire-main {
    display: grid;
    grid-template-columns: 280px 1fr;
    flex: 1;
    overflow: hidden;
}

/* Sidebar — exchange list */
.wire-sidebar {
    background: var(--bg-base);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 16px 16px 8px;
}

.exchange-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px 8px;
}

.exchange-item {
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
    margin-bottom: 2px;
    border-left: 2px solid transparent;
}

.exchange-item:hover { background: var(--bg-hover); }
.exchange-item.selected { background: var(--bg-surface); }

.exchange-item.req { border-left-color: var(--info); }
.exchange-item.res-pass { border-left-color: var(--pass); }
.exchange-item.res-fail { border-left-color: var(--fail); }
.exchange-item.verify { border-left-color: var(--tsai-color); }

.exchange-method {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    color: var(--info);
}

.exchange-item.res-pass .exchange-method { color: var(--pass); }
.exchange-item.res-fail .exchange-method { color: var(--fail); }
.exchange-item.verify .exchange-method { color: var(--tsai-color); }

.exchange-path {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.exchange-actor {
    font-size: 10px;
    color: var(--text-tertiary);
    margin-top: 3px;
}

/* Detail panel */
.wire-detail {
    background: var(--bg-base);
    overflow-y: auto;
    padding: 24px;
}

.wire-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-tertiary);
    font-size: 13px;
    gap: 8px;
}

.wire-empty-icon {
    font-size: 32px;
    color: var(--trstd-color);
    opacity: 0.3;
    margin-bottom: 8px;
}

.wire-empty-hint {
    font-size: 11px;
    opacity: 0.6;
}

/* Code blocks */
.wire-section {
    margin-bottom: 20px;
}

.wire-section-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.wire-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.6;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 14px 16px;
    overflow-x: auto;
    white-space: pre;
    color: var(--text-secondary);
}

.wire-code .hl-key { color: var(--trstd-color); }
.wire-code .hl-val { color: var(--text-primary); }
.wire-code .hl-str { color: #a5d6ff; }
.wire-code .hl-num { color: #f59e0b; }
.wire-code .hl-comment { color: var(--text-tertiary); font-style: italic; }
.wire-code .hl-status-ok { color: var(--pass); }
.wire-code .hl-status-err { color: var(--fail); }

/* Annotation callouts */
.wire-annotation {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: var(--text-tertiary);
    background: rgba(99, 102, 241, 0.06);
    border-left: 2px solid var(--wba-color);
    padding: 8px 12px;
    border-radius: 0 4px 4px 0;
    margin-top: 8px;
    line-height: 1.5;
}

.wire-annotation.tsai { border-left-color: var(--tsai-color); background: rgba(139, 92, 246, 0.06); }
.wire-annotation.trstd { border-left-color: var(--trstd-color); background: rgba(6, 182, 212, 0.06); }

/* Detail header */
.detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.detail-method {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 500;
}

.detail-path {
    font-size: 13px;
    color: var(--text-secondary);
}

.detail-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: 0.04em;
}

.detail-badge.wba { background: rgba(99, 102, 241, 0.15); color: var(--wba-color); }
.detail-badge.tsai { background: rgba(139, 92, 246, 0.15); color: var(--tsai-color); }
.detail-badge.trstd { background: rgba(6, 182, 212, 0.15); color: var(--trstd-color); }
