/* ==================== ARTIFACT CARD ==================== */
.artifact-card {
    margin: 8px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.artifact-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.artifact-card-icon {
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.artifact-card-icon svg {
    width: 18px;
    height: 18px;
    color: #475569;
}

.artifact-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.artifact-card-subtitle {
    font-size: 11px;
    color: #94a3b8;
    margin: 1px 0 0 0;
}

.artifact-card-actions {
    display: flex;
    gap: 8px;
}

.artifact-btn-primary {
    flex: 1;
    padding: 7px 12px;
    background: #1e293b;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease;
}

.artifact-btn-primary:hover {
    background: #334155;
}

.artifact-btn-primary:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.artifact-btn-secondary {
    flex: 1;
    padding: 7px 12px;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.artifact-btn-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.artifact-btn-secondary:disabled {
    color: #94a3b8;
    cursor: not-allowed;
}

/* Clickable artifact card hover */
.artifact-card-clickable:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ==================== RESEARCH RESULTS PANEL ==================== */

/* Tab bar */
.research-tab-bar {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 14px;
    flex-shrink: 0;
}

.research-tab {
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}
.research-tab:hover {
    color: #475569;
}
.research-tab.active {
    color: #1e293b;
    border-bottom-color: #1e293b;
}

.research-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #f1f5f9;
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
}
.research-tab.active .research-tab-count {
    background: #1e293b;
    color: #fff;
}

/* Table wrapper */
.research-table-wrap {
    overflow-x: auto;
    overflow-y: auto;
    flex: 1;
}

/* Research results table */
.research-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.research-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
}

.research-table th {
    padding: 8px 10px;
    text-align: left;
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.rt-th-title { width: 38%; }
.rt-th-details { width: 40%; }
.rt-th-source { width: 22%; }

.rt-row td {
    padding: 10px 10px;
    vertical-align: top;
    border-bottom: 1px solid #f1f5f9;
}

.rt-row:hover td {
    background: #fafbfc;
}

.rt-row-dimmed td {
    opacity: 0.55;
}

/* Title cell */
.rt-title-text {
    font-size: 12px;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.35;
    margin-bottom: 4px;
}

.rt-title-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.rt-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.rt-badge-valid {
    background: #dcfce7;
    color: #166534;
}
.rt-badge-other {
    background: #f1f5f9;
    color: #64748b;
}

.rt-subtitle {
    font-size: 10px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

/* Details cell */
.rt-detail-text {
    font-size: 11px;
    color: #64748b;
    line-height: 1.4;
}

/* Source cell */
.rt-source-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.12s ease;
    max-width: 100%;
}
.rt-source-link:hover {
    color: #1d4ed8;
}

.rt-source-host {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100px;
}

.rt-source-link svg {
    flex-shrink: 0;
}

.rt-no-link {
    color: #cbd5e1;
}
