.aih-conv-user {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.aih-conv-user strong {
    font-weight: 600;
    color: var(--rz-text-primary-color);
    font-size: 0.82rem;
}

.aih-conv-user span {
    font-size: 0.68rem;
    color: var(--rz-text-tertiary-color);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.aih-conv-title {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    line-height: 1.2;
}

.aih-conv-title span {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--rz-text-primary-color);
}

.aih-conv-agent {
    font-size: 0.66rem !important;
    font-weight: 600 !important;
    color: var(--rz-primary) !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.aih-conv-status {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.aih-conv-status.status-active {
    color: var(--rz-success);
    background: color-mix(in srgb, var(--rz-success) 10%, transparent);
}

.aih-conv-status.status-archived {
    color: var(--rz-text-tertiary-color);
    background: var(--rz-base-100);
}

.aih-conv-status.status-deleted {
    color: var(--rz-danger);
    background: color-mix(in srgb, var(--rz-danger) 10%, transparent);
    text-decoration: line-through;
}

.aih-conv-table { min-width: 1200px; }

.aih-conv-actions {
    text-align: right;
    white-space: nowrap;
}

.aih-conv-actions .rz-button {
    margin-left: 0.15rem;
}

/* ── ID chat link ── */
.aih-conv-id-link {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--rz-primary);
    text-decoration: none;
}

.aih-conv-id-link:hover { text-decoration: underline; }

/* ── Title badges: agent / handoff / reasoning ── */
.aih-conv-title-text {
    font-size: 0.85rem !important;
    font-weight: 500;
    color: var(--rz-text-primary-color);
}

.aih-conv-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.25rem;
}

.aih-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.4;
    white-space: nowrap;
}

.aih-tag-agent {
    color: var(--rz-text-secondary-color);
    background: var(--rz-base-100);
    border: 1px solid var(--rz-base-200);
}

.aih-tag-handoff {
    color: var(--rz-info);
    background: color-mix(in srgb, var(--rz-info) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--rz-info) 25%, transparent);
}

.aih-tag-reasoning {
    color: var(--rz-secondary);
    background: color-mix(in srgb, var(--rz-secondary) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--rz-secondary) 25%, transparent);
}

/* ── Messages pill ── */
.aih-pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--rz-info) 12%, transparent);
    color: var(--rz-info);
    font-size: 0.75rem;
    font-weight: 700;
}

/* ── Tokens cell: Σ + ↑/↓ + extras ── */
.aih-conv-tokens { padding-right: 0.5rem; }

.aih-token-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    line-height: 1.2;
}

.aih-token-sum {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.45rem;
    border-radius: 6px;
    background: var(--rz-base-100);
    color: var(--rz-text-primary-color);
    font-size: 0.72rem;
    font-weight: 700;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.aih-token-io {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.68rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: var(--rz-text-tertiary-color);
}

.aih-token-in { color: var(--rz-primary); }
.aih-token-out { color: var(--rz-success); }
.aih-token-sep { color: var(--rz-text-disabled-color); }

.aih-token-extra {
    display: inline-flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.aih-token-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    background: var(--rz-base-100);
    color: var(--rz-text-tertiary-color);
    font-size: 0.64rem;
    font-weight: 600;
}

.aih-token-chip .rzi { font-size: 0.72rem !important; }

/* ── Stacked date cell ── */
.aih-conv-date { color: var(--rz-text-secondary-color); font-size: 0.78rem; }

.aih-date-stack {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.aih-date-sub {
    color: var(--rz-text-tertiary-color);
    font-size: 0.7rem;
}
