/* ==================== 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: #0f172a;
    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: #1e293b;
}

.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: #0f172a;
    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;
}

/* ==================== ARTIFACT CHIP (mobile card pattern) ==================== */
/* One compact pressable row: 30px icon tile · title over "Tap to view…" ·
   right chevron. Lives inside the message's .msg-artifacts section. */

.msg-artifacts {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    margin-top: 6px;
}

.artifact-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 10px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
    user-select: none;
}

.artifact-chip:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.artifact-chip:active {
    transform: scale(0.985);
}

.artifact-chip-static {
    cursor: default;
    opacity: 0.75;
}
.artifact-chip-static:hover {
    background: #ffffff;
    border-color: #e2e8f0;
}
.artifact-chip-static:active {
    transform: none;
}

.artifact-chip-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.artifact-chip-icon svg {
    width: 15px;
    height: 15px;
}

.artifact-chip-body {
    flex: 1;
    min-width: 0;
}

.artifact-chip-title {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.artifact-chip-sub {
    font-size: 10px;
    color: #94a3b8;
    margin: 1px 0 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.artifact-chip-chevron {
    width: 14px;
    height: 14px;
    color: #cbd5e1;
    flex-shrink: 0;
}

/* Preview iframe inside the viewer panel (html draft / pdf preview) */
.avp-preview-frame {
    width: 100%;
    height: calc(100vh * 0.7 - 170px);
    min-height: 260px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
}

/* ==================== ARTIFACT VIEWER PANEL (structured kinds) ==================== */

.avp-body {
    padding: 12px 14px 20px 14px;
}

.avp-section {
    margin-bottom: 14px;
}

.avp-section-title {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 6px;
}

.avp-stat-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.avp-stat {
    flex: 1 1 70px;
    min-width: 70px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 10px;
}

.avp-stat-value {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.avp-stat-label {
    font-size: 10px;
    color: #94a3b8;
    margin-top: 1px;
}

.avp-chip-row {
    display: flex;
    gap: 6px;
    margin-bottom: 4px;
}

.avp-chip {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: capitalize;
}
.avp-chip-done { background: #f0fdf4; color: #16a34a; }
.avp-chip-failed { background: #f1f5f9; color: #64748b; }
.avp-chip-progress { background: #eff6ff; color: #2563eb; }

.avp-list-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 12px;
}
.avp-list-row:last-child { border-bottom: none; }

.avp-list-label {
    color: #334155;
    min-width: 0;
    overflow-wrap: break-word;
}

.avp-list-value {
    color: #64748b;
    font-weight: 600;
    flex-shrink: 0;
}

.avp-actions {
    display: flex;
    gap: 8px;
    margin: 4px 0 14px 0;
}

.avp-page {
    margin-bottom: 14px;
}

.avp-page-text {
    font-size: 12px;
    line-height: 1.6;
    color: #334155;
    white-space: pre-wrap;
    word-break: break-word;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
}

/* Formatted-HTML translation pages: rendered markup, not pre-wrap text */
.avp-page-html {
    white-space: normal;
}
.avp-page-html p { margin: 0 0 8px 0; }
.avp-page-html p:last-child { margin-bottom: 0; }
.avp-page-html table { border-collapse: collapse; max-width: 100%; }
.avp-page-html td, .avp-page-html th { border: 1px solid #cbd5e1; padding: 3px 6px; }
.avp-page-html img { max-width: 100%; }

.avp-event {
    padding: 7px 0;
    border-bottom: 1px solid #f1f5f9;
}
.avp-event:last-child { border-bottom: none; }

.avp-event-date {
    font-size: 11px;
    font-weight: 600;
    color: #0f172a;
}

.avp-event-text {
    font-size: 12px;
    line-height: 1.5;
    color: #475569;
    margin-top: 1px;
}

.avp-event-source {
    font-size: 10px;
    color: #94a3b8;
    margin-top: 2px;
}

.avp-note {
    font-size: 11px;
    color: #94a3b8;
    background: #f8fafc;
    border: 1px dashed #e2e8f0;
    border-radius: 10px;
    padding: 8px 10px;
    margin: 6px 0 0 0;
}

.avp-muted {
    font-size: 11px;
    color: #94a3b8;
    margin: 6px 0 0 0;
}

/* ==================== COMMUNICATION DRAFT CARDS (email / message) ==================== */

.comm-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
    margin: 6px 0;
}

.comm-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    margin-bottom: 8px;
}

.comm-card-kind {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex: 1;
}

.comm-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    border: none;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: background 0.12s ease;
}
.comm-copy-btn:hover { background: #e2e8f0; }

.comm-fields {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 6px;
    margin-bottom: 8px;
}

.comm-field {
    display: flex;
    gap: 8px;
    font-size: 11px;
    padding: 2px 0;
    min-width: 0;
}

.comm-field-label {
    color: #94a3b8;
    width: 44px;
    flex-shrink: 0;
}

.comm-field-value {
    color: #334155;
    min-width: 0;
    overflow-wrap: break-word;
}

.comm-field-value.comm-subject {
    font-weight: 600;
}

.comm-body {
    font-size: 12px;
    line-height: 1.6;
    color: #334155;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ==================== VISUAL BLOCKS (diagram / widget) ==================== */

.visual-block {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
    margin: 6px 0;
}

.visual-block-header {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 8px;
}

.visual-svg-wrap {
    overflow-x: auto;
}

.visual-svg-wrap svg {
    max-width: 100%;
    height: auto;
}

.visual-widget-frame {
    width: 100%;
    height: 220px;
    border: none;
    border-radius: 8px;
    background: #f8fafc;
}

.visual-fallback {
    font-size: 12px;
    line-height: 1.6;
    color: #475569;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ==================== CHRONOLOGY (web ChronologyWorkspaceView parity) ==================== */

.ch-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.ch-stat {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 6px;
    text-align: center;
}

.ch-stat-value {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

.ch-stat-accent { color: #0076d8; }

.ch-stat-label {
    font-size: 10px;
    color: #475569;
    margin-top: 1px;
}

.ch-section-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid #e5e7eb;
    padding: 4px 0 8px 0;
    margin-bottom: 2px;
}

.ch-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.ch-search {
    flex: 0 1 150px;
    min-width: 90px;
    font-size: 11px;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 5px 8px;
    outline: none;
}
.ch-search:focus { border-color: #94a3b8; }

.ch-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #f1f5f9;
}
.ch-row:last-child { border-bottom: none; }

.ch-row-sr {
    flex: none;
    width: 18px;
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    text-align: right;
    padding-top: 1px;
}

.ch-row-date {
    flex: none;
    width: 78px;
}

.ch-date {
    font-size: 11px;
    font-weight: 500;
    color: #0f172a;
    overflow-wrap: break-word;
}

.ch-time {
    font-size: 10px;
    color: #475569;
    margin-top: 1px;
}

.ch-row-main {
    flex: 1;
    min-width: 0;
}

.ch-title {
    font-size: 12px;
    font-weight: 500;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ch-doc {
    font-size: 10px;
    color: #475569;
    margin-top: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ch-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.ch-tag {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 10px;
    background: #b0d8f9;
    color: #004882;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ch-tag-error {
    background: #efbcbc;
    color: #701615;
}

.ch-tag-more {
    background: #f1f5f9;
    color: #475569;
}

.ch-empty {
    text-align: center;
    padding: 26px 0;
}

.ch-empty-title {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin: 0 0 3px 0;
}

.ch-empty-sub {
    font-size: 11px;
    color: #94a3b8;
    margin: 0;
}

/* ==================== CITATION CHECK (web CitationCheckWorkspaceView parity) ==================== */

.cc-filename {
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cc-health {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 10px;
}

.cc-ring { flex: none; }

.cc-ring circle { transition: stroke-dasharray 0.6s ease; }

.cc-health-text { min-width: 0; }

.cc-health-title {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.cc-health-sub {
    font-size: 11px;
    color: #64748b;
    margin-top: 1px;
}

.cc-band {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
}

.cc-band-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex: none;
}

.cc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.cc-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px 5px 8px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.15s ease, background 0.15s ease;
}
.cc-chip.muted { opacity: 0.45; }

.cc-chip-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex: none;
}

.cc-chip-nm {
    font-size: 11.5px;
    font-weight: 500;
    color: #475569;
}

.cc-chip-ct {
    font-size: 11.5px;
    font-weight: 600;
    color: #0f172a;
}

.cc-count {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 8px;
}

.cc-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f8fafc;
    border-radius: 10px;
    padding: 10px;
}

.cc-fcard {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    box-shadow: 0 1px 1px rgba(14, 22, 36, 0.04), 0 4px 7.6px rgba(14, 22, 36, 0.04);
}

.cc-fcard-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    border-radius: 8px 0 0 8px;
}

.cc-fcard-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 10px 10px 10px 14px;
    background: none;
    border: none;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.cc-fcard-toprow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cc-fcard-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.cc-idx {
    font-size: 11px;
    color: #575757;
}

.cc-type {
    font-size: 11px;
    font-weight: 500;
    text-transform: capitalize;
    color: #575757;
}

.cc-vchip {
    display: inline-flex;
    border-radius: 4px;
    padding: 3px 7px;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
}

.cc-conf-chip {
    display: inline-flex;
    border-radius: 4px;
    background: #f4f4f4;
    padding: 3px 7px;
    font-size: 10px;
    font-weight: 500;
    color: #777777;
    white-space: nowrap;
    flex: none;
}

.cc-fcard-bodyrow {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cc-fcard-texts {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.cc-citation {
    font-size: 12px;
    font-weight: 500;
    color: #1e2635;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cc-fcard.open .cc-citation {
    white-space: normal;
    font-size: 13px;
}

.cc-prop {
    font-size: 10.5px;
    color: #575757;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cc-fcard.open .cc-prop {
    -webkit-line-clamp: unset;
    font-size: 11.5px;
}

.cc-chev {
    flex: none;
    color: #575757;
    transition: transform 0.25s ease;
}
.cc-fcard.open .cc-chev { transform: rotate(180deg); }

.cc-collapse {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 300ms cubic-bezier(0.2, 0, 0, 1);
}
.cc-fcard.open .cc-collapse { grid-template-rows: 1fr; }
.cc-collapse-inner { overflow: hidden; }

.cc-divider {
    height: 1px;
    background: #eaeaea;
    margin: 0 10px 0 14px;
}

.cc-detail {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 10px 12px 14px;
}

.cc-dsection { min-width: 0; }

.cc-dlabel {
    font-size: 10px;
    font-weight: 600;
    color: #575757;
    margin-bottom: 3px;
}

.cc-dtext {
    font-size: 11px;
    line-height: 1.55;
    color: #3f4756;
    white-space: pre-wrap;
}
.cc-dtext-muted { color: #8c8c8c; }

.cc-kv-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.cc-kv {
    font-size: 10.5px;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    padding: 3px 9px;
}
.cc-kv strong {
    font-weight: 600;
    text-transform: capitalize;
}

.cc-diff {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.cc-diff-field {
    font-size: 10.5px;
    font-weight: 600;
    text-transform: capitalize;
    color: #64748b;
    background: #f8fafc;
    padding: 5px 10px;
    border-bottom: 1px solid #e2e8f0;
}

.cc-diff-cells {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: #e2e8f0;
}
@media (min-width: 420px) {
    .cc-diff-cells { grid-template-columns: 1fr 1fr; }
}

.cc-diff-claimed { background: #fff7f7; padding: 8px 10px; }
.cc-diff-actual { background: #f3fbf5; padding: 8px 10px; }

.cc-diff-tag {
    font-size: 9.5px;
    font-weight: 600;
    margin-bottom: 3px;
}
.cc-diff-claimed .cc-diff-tag { color: #b91c1c; }
.cc-diff-actual .cc-diff-tag { color: #15803d; }

.cc-diff-text {
    font-size: 11.5px;
    line-height: 1.55;
    color: #1a1f2a;
}

.cc-srclink {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f4f4f4;
    border-radius: 6px;
    padding: 6px 9px;
    font-size: 10.5px;
    color: #475569;
    text-decoration: none;
    min-width: 0;
}
.cc-srclink:hover { background: #eaeaea; }

.cc-srclink-url {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cc-nosrc {
    font-size: 10.5px;
    color: #8c8c8c;
    background: #f8fafc;
    border-radius: 6px;
    padding: 6px 9px;
}

.cc-failed {
    text-align: center;
    padding: 26px 12px;
}

.cc-failed-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #efbcbc;
    margin-bottom: 10px;
}

.cc-failed-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 3px;
}

.cc-failed-sub {
    font-size: 11px;
    color: #64748b;
}


/* ask_user question card (interaction_request block) */
.ask-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
    margin: 6px 0;
}
.ask-card-header { margin-bottom: 6px; }
.ask-card-title {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}
.ask-context { font-size: 11px; color: #64748b; margin-bottom: 6px; }
.ask-question { margin-bottom: 8px; }
.ask-prompt { font-size: 12.5px; font-weight: 600; color: #0f172a; margin-bottom: 6px; }
.ask-options { display: flex; flex-wrap: wrap; gap: 6px; }
.ask-option {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    color: #334155;
    cursor: pointer;
}
.ask-option:hover:not(:disabled) { background: #f1f5f9; }
.ask-option.is-picked { background: #0f172a; border-color: #0f172a; color: #ffffff; }
.ask-option:disabled { cursor: default; opacity: 0.7; }
.ask-send { margin-top: 2px; }
