/* ============================================================================
   SCREEN 2C — Redesigned Layout
   Matches Screen 2A's structure: fixed container, exec bar, sidebar, right panel.
   ============================================================================ */

/* ── Container: fixed position like Screen 2A ── */
#screen2cContainer.s2c-fullscreen {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 50;
    background: var(--vc-bg-body, #0F1117);
    overflow: hidden;
    display: flex !important;
    flex-direction: column;
}

/* Left sidebar spans full height — overlaps footer */
#screen2cContainer.s2c-fullscreen .s2c-sidebar {
    position: absolute;
    top: 68px; /* below exec bar */
    left: 0;
    bottom: 0; /* extends over footer */
    width: 320px;
    z-index: 10;
}

/* Push layout content right to make room for absolute sidebar */
#screen2cContainer.s2c-fullscreen .s2c-layout {
    padding-left: 320px;
}

/* Override progress-sidebar rules */
body.ps-sidebar-visible #screen2cContainer.s2c-fullscreen,
body.ps-sidebar-collapsed #screen2cContainer.s2c-fullscreen {
    margin-left: 0 !important;
    padding-top: 0 !important;
}

/* ============================================================================
   EXEC BAR — 68px top bar matching Screen 2A
   ============================================================================ */
.s2c-exec-bar {
    height: 68px;
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
    background: var(--vc-bg-surface, #161922);
    border-bottom: 1px solid var(--vc-border, rgba(255,255,255,0.06));
    position: relative;
    z-index: 30;
}
.s2c-exec-bar::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(124,111,238,0.15), transparent 40%);
    pointer-events: none;
}

/* Brand section — aligned with sidebar width */
.s2c-eb-brand {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 16px;
    border-right: 1px solid var(--vc-border, rgba(255,255,255,0.06));
}
.s2c-eb-logo {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 6px rgba(87,103,255,0.35));
}
.s2c-eb-bname {
    font-size: 17px;
    font-weight: 700;
    color: var(--vc-t1, #E8E5F0);
    letter-spacing: -0.5px;
}
.s2c-eb-btag {
    font-size: 10.5px;
    color: rgba(157,146,245,0.55);
    letter-spacing: 0.3px;
    margin-top: 1px;
}

/* Middle section */
.s2c-eb-mid {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 18px;
    position: relative;
    min-width: 0;
}
.s2c-eb-center {
    display: flex;
    align-items: center;
    gap: 16px;
    position: absolute;
    /* Center over the content area (between sidebar and right panel) */
    /* eb-mid starts after brand (320px), right panel is 420px */
    left: calc((100% - 420px) / 2);
    transform: translateX(-50%);
}
.s2c-eb-doc {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--vc-t1, #E8E5F0);
    padding-right: 16px;
    border-right: 1px solid var(--vc-border, rgba(255,255,255,0.06));
    white-space: nowrap;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.s2c-eb-doc svg { color: var(--vc-t3, #8B849E); flex-shrink: 0; }
.s2c-eb-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 8px;
    background: rgba(114,104,216,0.06);
    border: 1px solid rgba(114,104,216,0.12);
}
.s2c-eb-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--vc-accent, #818CF8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: white;
}
.s2c-eb-step-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--vc-t1, #E8E5F0);
}

/* Mode switcher */
.s2c-eb-msw {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--vc-bg-body, #0F1117);
    border: 1px solid var(--vc-border, rgba(255,255,255,0.06));
    border-radius: 8px;
    padding: 4px;
    margin-left: 16px;
}
.s2c-eb-mb {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: var(--vc-t3, #8B849E);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s;
    line-height: 1;
    font-family: inherit;
}
.s2c-eb-mb:hover { color: var(--vc-t2, #B3AECB); }
.s2c-eb-mb.active {
    background: linear-gradient(135deg, rgba(124,111,238,0.25), rgba(139,92,255,0.18));
    box-shadow: 0 2px 8px rgba(124,111,238,0.3), 0 0 0 1px rgba(124,111,238,0.25);
    color: var(--vc-t1, #E8E5F0) !important;
    font-weight: 600;
}

/* Right area */
.s2c-eb-right {
    position: absolute;
    right: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.s2c-eb-completion {
    display: flex;
    align-items: center;
    gap: 8px;
}
.s2c-eb-completion-text {
    font-size: 15px;
    color: var(--vc-t3, #8B849E);
}
.s2c-eb-completion-text strong {
    color: #3ECF8E;
    font-weight: 700;
    font-family: 'IBM Plex Mono', 'SF Mono', monospace;
}
.s2c-eb-completion-bar {
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
}
.s2c-eb-completion-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, #3ECF8E, #34d399);
}

/* ============================================================================
   LAYOUT: sidebar + body (below exec bar)
   ============================================================================ */
.s2c-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

/* ── Left Sidebar — matches progress-sidebar width ── */
.s2c-sidebar {
    width: 320px;
    flex-shrink: 0;
    background: var(--vc-bg-surface, #161922);
    border-right: 1px solid var(--vc-border, rgba(255,255,255,0.06));
    display: flex;
    flex-direction: column;
    overflow: hidden;

    /* Provide ps-* CSS vars so the D+ footer pattern works inside our sidebar */
    --ps-bg: var(--vc-bg-surface, #161922);
    --ps-bg3: var(--vc-bg-surface-hover, #1C1F2B);
    --ps-border: var(--vc-border, rgba(255,255,255,0.06));
    --ps-border-mid: rgba(255,255,255,0.10);
    --ps-accent: var(--vc-accent, #7C6FEE);
    --ps-t1: var(--vc-t1, #E8E5F0);
    --ps-t2: var(--vc-t2, #B3AECB);
    --ps-t3: var(--vc-t3, #8B849E);
    --ps-t4: rgba(255,255,255,0.25);
    --ps-green: #34d399;
    --ps-green-dim: rgba(52,211,153,0.08);
    --ps-gold: #f59e0b;
}

/* ── Main wrapper (between sidebar and right panel) ── */
.s2c-layout .s2c-wrapper {
    flex: 1;
    overflow: hidden;
    margin-left: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
body.ps-sidebar-visible .s2c-layout .s2c-wrapper,
body.ps-sidebar-collapsed .s2c-layout .s2c-wrapper {
    margin-left: 0 !important;
    padding-top: 0 !important;
}

/* Remove old card wrapper in new layout */
.s2c-layout .s2c-main-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    overflow: hidden;
    padding: 0;
}

.s2c-layout .s2c-content-area {
    flex: 1;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Hide old elements in new layout */
.s2c-layout .s2c-instructions-banner { display: none; }
.s2c-layout .prism-wrapper:empty { display: none; }

/* ============================================================================
   FOOTER — full-width, below layout, matches Screen 2A
   ============================================================================ */
#screen2cContainer.s2c-fullscreen > .s2c-footer-nav,
.s2c-footer-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px 14px calc(320px + 24px); /* left padding = sidebar width + gap */
    min-height: 60px;
    border-top: 1px solid var(--vc-border, rgba(255,255,255,0.06));
    background: var(--vc-bg-surface, #161922);
    flex-shrink: 0;
}

/* ── Sidebar scroll area ── */
.s2c-sb-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 0 10px;
    scrollbar-width: none;
}
.s2c-sb-scroll::-webkit-scrollbar { display: none; }

/* ── Section labels ── */
.s2c-sb-sec {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--vc-t3, rgba(255,255,255,0.45));
    text-transform: uppercase;
    padding: 0 16px;
    margin-bottom: 8px;
}

.s2c-sb-hr {
    border: none;
    border-top: 1px solid var(--vc-border, rgba(255,255,255,0.06));
    margin: 10px 14px;
}

/* ============================================================================
   SEARCH PROGRESS
   ============================================================================ */
.s2c-sb-search {
    margin: 0 12px 14px;
    padding: 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
}
.s2c-sb-search-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.s2c-sb-search-icon { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.s2c-sb-search-icon.active { background: rgba(129,140,248,0.15); border: 1px solid rgba(129,140,248,0.3); color: #818CF8; }
.s2c-sb-search-icon.done { background: rgba(62,207,142,0.1); border: 1px solid rgba(62,207,142,0.2); color: #3ECF8E; }
.s2c-sb-search-title { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.7); flex: 1; }
.s2c-sb-search-count { font-size: 13px; font-weight: 700; font-family: 'IBM Plex Mono', 'SF Mono', monospace; color: #818CF8; }
.s2c-sb-search-count.done { color: #3ECF8E; }
.s2c-sb-search-bar { height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; margin-bottom: 6px; }
.s2c-sb-search-fill { height: 100%; border-radius: 2px; position: relative; }
.s2c-sb-search-fill.active { background: linear-gradient(90deg, #818CF8, #A78BFA); }
.s2c-sb-search-fill.active::after { display: none; }
.s2c-sb-search-fill.done { background: #3ECF8E; }
.s2c-sb-search-status { font-size: 12px; color: rgba(255,255,255,0.4); line-height: 1.4; }
.s2c-sb-search-status em { color: #818CF8; font-style: normal; font-weight: 600; }
.s2c-sb-search-status.done em { color: #3ECF8E; }

@keyframes s2cSbPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
@keyframes s2cSbShimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(200%); } }

/* ============================================================================
   DECISIONS SCORECARD
   ============================================================================ */
.s2c-sb-scorecard { margin: 0 12px 14px; padding: 12px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 10px; }
.s2c-sb-score-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.s2c-sb-score-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.s2c-sb-score-n { font-size: 17px; font-weight: 700; font-family: 'IBM Plex Mono', 'SF Mono', monospace; min-width: 24px; font-variant-numeric: tabular-nums; }
.s2c-sb-score-label { font-size: 13px; color: rgba(255,255,255,0.45); flex: 1; }
.s2c-sb-score-bar-wrap { width: 50px; height: 3px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; flex-shrink: 0; }
.s2c-sb-score-bar { height: 100%; border-radius: 2px; }

/* ============================================================================
   CONFIDENCE BREAKDOWN
   ============================================================================ */
.s2c-sb-confidence { margin: 0 12px 14px; padding: 12px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 10px; }
.s2c-sb-conf-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.s2c-sb-conf-icon { width: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.s2c-sb-conf-label { font-size: 13px; color: rgba(255,255,255,0.5); flex: 1; }
.s2c-sb-conf-n { font-size: 14px; font-weight: 700; font-family: 'IBM Plex Mono', 'SF Mono', monospace; font-variant-numeric: tabular-nums; min-width: 16px; text-align: right; }

/* ============================================================================
   KEYBOARD SHORTCUTS
   ============================================================================ */
.s2c-sb-shortcuts { margin: 0 12px; padding: 10px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 10px; }
.s2c-sb-shortcut-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 12px; color: rgba(255,255,255,0.4); }
.s2c-sb-key { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 5px; border-radius: 4px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); font-size: 11px; font-weight: 700; font-family: 'IBM Plex Mono', 'SF Mono', monospace; color: rgba(255,255,255,0.55); }

/* ============================================================================
   SIDEBAR FOOTER
   ============================================================================ */
/* Footer — reuses ps-dp-* classes from progress-sidebar.css */
.s2c-sb-footer { padding: 0; flex-shrink: 0; }

/* ============================================================================
   FOCUS CONTENT — two-column layout (content + right panel)
   ============================================================================ */
.s2c-focus-split { display: flex; flex: 1; min-height: 0; overflow: hidden; }
.s2c-focus-left { flex: 1; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; scrollbar-width: thin; scrollbar-color: rgba(139,92,246,0.2) transparent; }

/* ============================================================================
   CLAIM CARD
   ============================================================================ */
.s2c-claim-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: linear-gradient(135deg, rgba(22,25,34,0.95), rgba(30,33,48,0.9)); border-bottom: 1px solid var(--vc-border, rgba(255,255,255,0.06)); border-radius: 12px 12px 0 0; gap: 12px; }
.s2c-claim-toolbar-left { display: flex; align-items: center; gap: 10px; }
.s2c-claim-toolbar-right { display: flex; align-items: center; gap: 8px; }
.s2c-claim-nav { display: flex; align-items: center; gap: 6px; }
.s2c-claim-nav-btn { width: 30px; height: 30px; border-radius: 6px; background: rgba(255,255,255,0.06); border: 1px solid var(--vc-border, rgba(255,255,255,0.1)); color: rgba(255,255,255,0.6); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.12s; }
.s2c-claim-nav-btn:hover { color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.18); }
.s2c-claim-counter { font-size: 14px; color: rgba(255,255,255,0.7); font-variant-numeric: tabular-nums; min-width: 50px; text-align: center; }
.s2c-claim-counter strong { color: rgba(255,255,255,0.95); font-weight: 700; }
.s2c-claim-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.s2c-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.s2c-badge-ref { background: rgba(45,212,191,0.1); color: #2dd4bf; border: 1px solid rgba(45,212,191,0.2); }
.s2c-badge-type { background: rgba(240,180,41,0.08); color: #f0b429; border: 1px solid rgba(240,180,41,0.15); }
.s2c-badge-count { background: rgba(129,140,248,0.1); color: #818CF8; border: 1px solid rgba(129,140,248,0.2); }
.s2c-badge-conf-high { background: rgba(62,207,142,0.08); color: #3ECF8E; border: 1px solid rgba(62,207,142,0.15); }
.s2c-badge-conf-med { background: rgba(240,180,41,0.08); color: #f0b429; border: 1px solid rgba(240,180,41,0.15); }
.s2c-badge-conf-low { background: rgba(249,115,22,0.08); color: #f97316; border: 1px solid rgba(249,115,22,0.15); }
.s2c-badge-conf-insuf { background: rgba(248,113,113,0.08); color: #F87171; border: 1px solid rgba(248,113,113,0.15); }

/* Action buttons */
.s2c-action-use { display: flex; align-items: center; gap: 7px; padding: 7px 16px; border-radius: 8px; border: none; background: linear-gradient(135deg, #818CF8, #6366F1); color: white; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 10px rgba(99,102,241,0.2); transition: all 0.15s ease; font-family: inherit; }
.s2c-action-use:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(99,102,241,0.35); }
.s2c-action-use.accepted { background: linear-gradient(135deg, #3ECF8E, #059669); box-shadow: 0 2px 10px rgba(62,207,142,0.25); }
.s2c-action-keep { display: flex; align-items: center; gap: 7px; padding: 7px 16px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.12); background: transparent; color: rgba(255,255,255,0.5); font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.15s; font-family: inherit; }
.s2c-action-keep:hover { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.18); }
.s2c-action-key { padding: 1px 5px; border-radius: 3px; background: rgba(255,255,255,0.1); font-size: 10px; font-family: 'IBM Plex Mono', 'SF Mono', monospace; font-weight: 600; }

/* Claim body */
.s2c-claim-body-new { padding: 18px 20px; }
.s2c-claim-text-new { font-size: 17px; line-height: 1.7; color: rgba(255,255,255,0.92); font-weight: 400; }
.s2c-claim-text-new::before { content: '\201C'; color: rgba(255,255,255,0.3); font-size: 22px; }
.s2c-claim-text-new::after { content: '\201D'; color: rgba(255,255,255,0.3); font-size: 22px; }

/* ============================================================================
   AI TRIAGE
   ============================================================================ */
.s2c-ai-triage { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; background: linear-gradient(135deg, rgba(129,140,248,0.04), rgba(114,104,216,0.02)); border: 1px solid rgba(129,140,248,0.12); border-radius: 10px; font-size: 13px; line-height: 1.55; color: rgba(255,255,255,0.7); }
.s2c-ai-triage-icon { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; background: rgba(129,140,248,0.12); border: 1px solid rgba(129,140,248,0.2); display: flex; align-items: center; justify-content: center; color: #818CF8; margin-top: 1px; }
.s2c-ai-triage-label { font-size: 10px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: #818CF8; margin-bottom: 3px; display: flex; align-items: center; gap: 5px; }
.s2c-ai-triage em { color: rgba(255,255,255,0.9); font-style: normal; font-weight: 600; }

/* ============================================================================
   SOURCE SELECTOR — 3 tabbed panels
   ============================================================================ */
.s2c-source-selector { background: var(--vc-bg-surface, #161922); border: 1px solid var(--vc-border, rgba(255,255,255,0.06)); border-radius: 12px; overflow: hidden; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.s2c-tab-bar { display: flex; align-items: stretch; border-bottom: 1px solid var(--vc-border, rgba(255,255,255,0.06)); background: linear-gradient(135deg, rgba(22,25,34,0.95), rgba(30,33,48,0.9)); flex-shrink: 0; }
.s2c-stab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 12px 14px; background: none; border: none; color: rgba(255,255,255,0.4); font-size: 13px; font-weight: 500; font-family: inherit; cursor: pointer; transition: color 0.15s, background 0.15s; position: relative; border-bottom: 2px solid transparent; }
.s2c-stab:hover { color: rgba(255,255,255,0.65); background: rgba(255,255,255,0.015); }
.s2c-stab.active { color: rgba(255,255,255,0.95); font-weight: 600; border-bottom-color: #818CF8; }
.s2c-stab.active::after { content: ''; position: absolute; bottom: -1px; left: 20%; right: 20%; height: 2px; background: #818CF8; box-shadow: 0 0 8px rgba(129,140,248,0.4); border-radius: 1px; }
.s2c-stab-count { font-size: 11px; font-weight: 700; font-family: 'IBM Plex Mono', 'SF Mono', monospace; padding: 1px 7px; border-radius: 10px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.06); }
.s2c-stab.active .s2c-stab-count { background: rgba(129,140,248,0.15); border-color: rgba(129,140,248,0.3); color: #818CF8; }
.s2c-tab-panel { display: none; flex: 1; overflow-y: auto; }
.s2c-tab-panel.active { display: block; }

/* Source rows */
.s2c-alt-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.03); border-left: 3px solid transparent; transition: all 0.15s ease; position: relative; }
.s2c-alt-row:last-child { border-bottom: none; }
.s2c-alt-row:hover { background: rgba(255,255,255,0.02); }
.s2c-alt-row.selected { border-left-color: #A78BFA; background: rgba(167,139,250,0.06); box-shadow: inset 0 0 0 1px rgba(167,139,250,0.08); }
.s2c-alt-row.accepted { border-left-color: #3ECF8E; background: rgba(62,207,142,0.04); }
.s2c-score-block { width: 44px; height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; font-family: 'IBM Plex Mono', 'SF Mono', monospace; flex-shrink: 0; border: 1px solid; }
.s2c-score-block.high  { background: rgba(20,83,45,0.5); color: #6ee7b7; border-color: rgba(62,207,142,0.25); }
.s2c-score-block.good  { background: rgba(30,58,95,0.5); color: #93c5fd; border-color: rgba(96,165,250,0.25); }
.s2c-score-block.fair  { background: rgba(120,53,15,0.5); color: #fcd34d; border-color: rgba(240,180,41,0.25); }
.s2c-score-block.weak  { background: rgba(127,29,29,0.5); color: #fca5a5; border-color: rgba(248,113,113,0.25); }
.s2c-alt-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.s2c-alt-topline { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.s2c-alt-badges { display: flex; gap: 4px; flex-shrink: 0; }
.s2c-alt-badge { padding: 2px 7px; border-radius: 3px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.s2c-alt-badge-best { background: rgba(240,180,41,0.15); color: #f0b429; }
.s2c-alt-badge-verified { background: rgba(62,207,142,0.08); color: #3ECF8E; }
.s2c-alt-badge-weak { background: rgba(248,113,113,0.08); color: #F87171; }
.s2c-alt-badge-contradicts { background: rgba(249,115,22,0.08); color: #f97316; }
.s2c-alt-year { font-size: 11px; color: rgba(255,255,255,0.3); font-family: 'IBM Plex Mono', 'SF Mono', monospace; margin-left: auto; }
.s2c-alt-title { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.7); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.12s; }
.s2c-alt-row:hover .s2c-alt-title, .s2c-alt-row.selected .s2c-alt-title { color: rgba(255,255,255,0.92); }
.s2c-alt-meta { font-size: 11px; color: rgba(255,255,255,0.3); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s2c-alt-row.selected::after { content: ''; position: absolute; right: -2px; top: 50%; transform: translateY(-50%); width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-right: 8px solid var(--vc-bg-surface, #161922); filter: drop-shadow(-2px 0 2px rgba(0,0,0,0.2)); }
.s2c-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; text-align: center; gap: 10px; }
.s2c-empty-title { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.6); }
.s2c-empty-desc { font-size: 12px; color: rgba(255,255,255,0.35); max-width: 280px; line-height: 1.5; }

/* ============================================================================
   RIGHT PANEL — matches Screen 2A (420px, flush right)
   ============================================================================ */
.s2c-right-panel { width: 420px; flex-shrink: 0; background: var(--vc-bg-surface, #161922); border-left: 1px solid var(--vc-border, rgba(255,255,255,0.06)); display: flex; flex-direction: column; overflow: hidden; }
.s2c-right-panel.tier-high  { border-left-color: #3ECF8E; }
.s2c-right-panel.tier-good  { border-left-color: #60A5FA; }
.s2c-right-panel.tier-fair  { border-left-color: #f0b429; }
.s2c-right-panel.tier-weak  { border-left-color: #F87171; }
@keyframes s2cSlideInRight { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.s2c-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 0 16px; height: 48px; border-bottom: 1px solid var(--vc-border, rgba(255,255,255,0.06)); flex-shrink: 0; }
.s2c-panel-header-left { display: flex; align-items: center; gap: 4px; }
.s2c-panel-nav-btn { width: 24px; height: 24px; background: var(--vc-bg-surface-hover, #1C1F2B); border: none; border-radius: 5px; color: var(--vc-t3, rgba(255,255,255,0.5)); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.12s; }
.s2c-panel-nav-btn:hover { color: var(--vc-t1, rgba(255,255,255,0.9)); background: var(--vc-bg-hover, rgba(255,255,255,0.08)); }
.s2c-panel-counter { font-size: 13px; color: var(--vc-t3, rgba(255,255,255,0.4)); font-weight: 500; font-variant-numeric: tabular-nums; padding: 0 6px; }
.s2c-panel-title { font-size: 13px; font-weight: 600; color: var(--vc-t1, rgba(255,255,255,0.85)); display: flex; align-items: center; gap: 5px; }
.s2c-panel-title svg { color: #818CF8; }
.s2c-panel-body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 4px 0 20px; scrollbar-width: thin; scrollbar-color: rgba(139,92,246,0.2) transparent; }
.s2c-panel-body::before { content: ''; display: block; height: 2px; margin: 0 14px 12px; border-radius: 1px; background: linear-gradient(90deg, #818CF8, #7C6FEE, transparent 80%); opacity: 0.4; }

/* ============================================================================
   RING GAUGE (score circle SVG)
   ============================================================================ */
.s2c-ring-gauge { width: 44px; height: 44px; flex-shrink: 0; position: relative; }
.s2c-ring-gauge svg { transform: rotate(-90deg); }
.s2c-ring-gauge .ring-bg { fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 3; }
.s2c-ring-gauge .ring-fg { fill: none; stroke-width: 3; stroke-linecap: round; }
.s2c-ring-gauge.high .ring-fg  { stroke: #3ECF8E; }
.s2c-ring-gauge.good .ring-fg  { stroke: #60A5FA; }
.s2c-ring-gauge.fair .ring-fg  { stroke: #f0b429; }
.s2c-ring-gauge.weak .ring-fg  { stroke: #F87171; }
.s2c-ring-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; font-family: 'IBM Plex Mono', 'SF Mono', monospace; letter-spacing: -0.5px; }
.s2c-ring-gauge.high .s2c-ring-label { color: #6ee7b7; }
.s2c-ring-gauge.good .s2c-ring-label { color: #93c5fd; }
.s2c-ring-gauge.fair .s2c-ring-label { color: #fcd34d; }
.s2c-ring-gauge.weak .s2c-ring-label { color: #fca5a5; }

/* ============================================================================
   SOURCE CARD (replacement cards in central area)
   ============================================================================ */
.s2c-src-card { display: flex; align-items: flex-start; gap: 16px; padding: 18px 20px; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.03); border-left: 3px solid transparent; transition: all 0.18s ease; position: relative; background: transparent; }
.s2c-src-card:last-child { border-bottom: none; }
.s2c-src-card:hover { background: rgba(255,255,255,0.02); }
.s2c-src-card.selected { border-left-color: #A78BFA; background: rgba(167,139,250,0.07); box-shadow: inset 0 0 0 1px rgba(167,139,250,0.10); border-left-width: 4px; padding-left: 19px; }
.s2c-src-card.accepted { border-left-color: #3ECF8E; background: rgba(62,207,142,0.04); }
.s2c-src-card.selected::after { content: ''; position: absolute; right: -2px; top: 50%; transform: translateY(-50%); width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-right: 8px solid var(--vc-bg-surface, #161922); filter: drop-shadow(-2px 0 2px rgba(0,0,0,0.2)); }
.s2c-src-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.s2c-src-card-topline { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.s2c-src-card-title { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.7); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.12s; }
.s2c-src-card:hover .s2c-src-card-title, .s2c-src-card.selected .s2c-src-card-title { color: rgba(255,255,255,0.92); }
.s2c-src-card-insight { font-size: 18px !important; color: rgba(255,255,255,0.92) !important; line-height: 1.7 !important; font-weight: 500 !important; }
.s2c-src-card:hover .s2c-src-card-insight { color: #fff; }
.s2c-src-card-meta { font-size: 11px; color: rgba(255,255,255,0.3); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============================================================================
   INTELLIGENCE BRIEF (brief-lines in AI triage)
   ============================================================================ */
.s2c-brief-lines { display: flex; flex-direction: column; gap: 12px !important; }
.s2c-brief-line { display: flex; align-items: baseline; gap: 10px; font-size: 18px !important; line-height: 1.7 !important; color: rgba(255,255,255,0.75) !important; }
.s2c-brief-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; margin-top: 7px; }
.s2c-brief-dot.amber  { background: #f0b429; }
.s2c-brief-dot.accent { background: #818CF8; }
.s2c-brief-dot.teal   { background: #2dd4bf; }
.s2c-brief-dot.orange { background: #f97316; }
.s2c-brief-line em { color: rgba(255,255,255,0.9); font-style: normal; font-weight: 600; }

/* ============================================================================
   ISSUE BADGE (amber/red labels in nav bar)
   ============================================================================ */
.s2c-issue-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.s2c-issue-badge.low-authority { background: rgba(240,180,41,0.1); color: #f0b429; border: 1px solid rgba(240,180,41,0.2); }
.s2c-issue-badge.dead-link { background: rgba(248,113,113,0.1); color: #F87171; border: 1px solid rgba(248,113,113,0.2); }
.s2c-issue-badge.broken-link { background: rgba(249,115,22,0.1); color: #f97316; border: 1px solid rgba(249,115,22,0.2); }

/* ============================================================================
   PANEL TYPE BADGE (REPLACEMENT / ALT. ANGLE / COUNTER in right panel header)
   ============================================================================ */
.s2c-panel-type-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.s2c-panel-type-badge.replacement { background: rgba(129,140,248,0.12); color: #818CF8; border: 1px solid rgba(129,140,248,0.25); }
.s2c-panel-type-badge.alt-angle   { background: rgba(45,212,191,0.1); color: #2dd4bf; border: 1px solid rgba(45,212,191,0.2); }
.s2c-panel-type-badge.counter     { background: rgba(249,115,22,0.1); color: #f97316; border: 1px solid rgba(249,115,22,0.2); }

/* ── Panel section labels ── */
.s2c-panel-section-label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.9); margin: 0 20px 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.s2c-panel-section-label svg { color: #818CF8; flex-shrink: 0; }

/* ── Panel verdict card ── */
.s2c-panel-verdict { margin: 0 20px 16px; padding: 18px 20px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.04); }
.s2c-panel-verdict.verdict-accept   { border-left: 4px solid #3ECF8E; background: rgba(62,207,142,0.04); }
.s2c-panel-verdict.verdict-review   { border-left: 4px solid #f0b429; background: rgba(240,180,41,0.03); }
.s2c-panel-verdict.verdict-contra   { border-left: 4px solid #f97316; background: rgba(249,115,22,0.03); }
.s2c-panel-verdict.verdict-angle    { border-left: 4px solid #2dd4bf; background: rgba(45,212,191,0.03); }
.s2c-panel-verdict.verdict-keep     { border-left: 4px solid #6B7280; }
.s2c-panel-verdict.verdict-accepted { border-left: 4px solid #3ECF8E; background: rgba(62,207,142,0.04); }

/* ── Panel action badge (inside verdict) ── */
.s2c-panel-action-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase; margin-bottom: 10px; }
.s2c-panel-action-badge.badge-accept   { background: rgba(62,207,142,0.08); color: #3ECF8E; border: 1px solid rgba(62,207,142,0.15); }
.s2c-panel-action-badge.badge-review   { background: rgba(240,180,41,0.08); color: #f0b429; border: 1px solid rgba(240,180,41,0.15); }
.s2c-panel-action-badge.badge-contra   { background: rgba(249,115,22,0.08); color: #f97316; border: 1px solid rgba(249,115,22,0.15); }
.s2c-panel-action-badge.badge-angle    { background: rgba(45,212,191,0.08); color: #2dd4bf; border: 1px solid rgba(45,212,191,0.15); }
.s2c-panel-action-badge.badge-keep     { background: rgba(107,114,128,0.08); color: rgba(255,255,255,0.5); border: 1px solid rgba(107,114,128,0.15); }
.s2c-panel-action-badge.badge-accepted { background: rgba(62,207,142,0.08); color: #3ECF8E; border: 1px solid rgba(62,207,142,0.15); }

/* ── Panel metadata tags ── */
.s2c-panel-meta-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 20px 16px; padding: 0 2px; }
.s2c-panel-meta-tag { padding: 2px 8px; border-radius: 4px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); font-size: 11px; font-family: 'IBM Plex Mono', 'SF Mono', monospace; color: rgba(255,255,255,0.45); line-height: 1.4; }
.s2c-panel-meta-tag.verified { background: rgba(62,207,142,0.08); border-color: rgba(62,207,142,0.15); color: #3ECF8E; font-weight: 600; }
.s2c-panel-meta-tag a { color: #818CF8; text-decoration: none; }

/* ── Panel evidence quote ── */
.s2c-panel-evidence-quote { padding: 14px 18px; margin: 0 20px 10px; border-radius: 0 8px 8px 0; font-size: 14px; line-height: 1.65; color: rgba(255,255,255,0.75); font-style: italic; }
.s2c-panel-evidence-quote.purple { border-left: 4px solid rgba(167,139,250,0.4); background: rgba(167,139,250,0.03); }
.s2c-panel-evidence-quote.green  { border-left: 4px solid rgba(62,207,142,0.5); background: rgba(62,207,142,0.03); }

/* ── Panel abstract ── */
.s2c-panel-abstract { margin: 0 20px 16px; padding: 16px 20px; background: rgba(255,255,255,0.015); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; font-size: 14px; line-height: 1.75; color: rgba(255,255,255,0.65); }

/* ── Panel view source link ── */
.s2c-panel-view-link { display: flex; align-items: center; gap: 4px; margin: 0 20px 20px; font-size: 13px; color: #818CF8; text-decoration: none; }
.s2c-panel-view-link:hover { color: #A78BFA; text-decoration: underline; }

/* ── Claim text accent border ── */
.s2c-claim-body-new.accent-border { border-left: 3px solid rgba(129,140,248,0.25); padding-left: 16px; }

/* ── End of results separator ── */
.s2c-end-separator { display: flex; align-items: center; gap: 12px; padding: 20px 20px 24px; font-size: 11px; color: rgba(255,255,255,0.25); letter-spacing: 0.2px; }
.s2c-end-separator::before, .s2c-end-separator::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.06); }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 1400px) { .s2c-right-panel { width: 360px; } }
@media (max-width: 1200px) { .s2c-sidebar { width: 260px; } .s2c-eb-brand { width: 260px; } .s2c-right-panel { width: 320px; } }
@media (max-width: 900px) { .s2c-sidebar, .s2c-eb-brand { display: none; } .s2c-right-panel { width: 280px; } }
