/* ================================================================
   EVIDENCE LOCATOR: Client-side documentation evidence matching
   Styles use workspace design tokens (--ws-*) defined in workspace.html
   Dark theme: all surfaces use workspace dark tokens, floating card aesthetic
   ================================================================ */

/* --- Mode Toggle --- */
.el-mode-toggle {
    display: flex;
    gap: 0;
    border: 1.5px solid var(--ws-border, #1e293b);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    background: var(--ws-surface, #111827);
}
.el-mode-btn {
    flex: 1;
    padding: 0.625rem 1rem;
    border: none;
    background: transparent;
    color: var(--ws-text-secondary, #94a3b8);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    text-align: center;
    line-height: 1.4;
}
.el-mode-btn:hover {
    background: var(--ws-surface-alt, #1a2332);
    color: var(--ws-text, #f1f5f9);
}
.el-mode-btn.is-active {
    background: var(--ws-teal, #14b8a6);
    color: #ffffff;
    font-weight: 600;
}
.el-mode-btn + .el-mode-btn {
    border-left: 1.5px solid var(--ws-border, #1e293b);
}

/* --- DME opt-in link --- */
.el-dme-optin {
    margin: 8px 0 12px;
}
.el-dme-optin-link {
    display: inline-block;
    font-size: 0.8125rem;
    color: var(--ws-accent, #14b8a6);
    text-decoration: none;
    padding: 6px 10px;
    border: 1px dashed var(--ws-border, #1e293b);
    border-radius: 6px;
    transition: border-color 0.15s, background 0.15s;
}
.el-dme-optin-link:hover {
    border-color: var(--ws-accent, #14b8a6);
    background: rgba(20, 184, 166, 0.06);
}

/* --- Evidence Locator Section --- */
.el-section {
    margin-bottom: 1.5rem;
}

/* --- Privacy Banner --- */
.el-privacy-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #4ade80;
}
.el-privacy-banner svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    color: #4ade80;
}
.el-privacy-banner strong {
    color: #86efac;
    font-weight: 600;
}

/* --- Upload Zone --- */
.el-upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.75rem 1.5rem;
    border: 2px dashed var(--ws-border, #1e293b);
    border-radius: 12px;
    background: var(--ws-surface, #111827);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    text-align: center;
    margin-bottom: 1rem;
}
.el-upload-zone:hover {
    border-color: var(--ws-teal, #14b8a6);
    background: var(--ws-surface-alt, #1a2332);
    box-shadow: 0 0 16px rgba(20, 184, 166, 0.08);
}
.el-upload-zone--dragover {
    border-color: var(--ws-teal, #14b8a6);
    background: rgba(20, 184, 166, 0.06);
    border-style: solid;
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.12);
}
.el-upload-zone svg {
    width: 28px;
    height: 28px;
    color: var(--ws-text-muted, #71809a);
}
.el-upload-zone--dragover svg {
    color: var(--ws-teal, #14b8a6);
}
.el-upload-zone-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ws-text-secondary, #94a3b8);
}
.el-upload-zone-label .el-click-text {
    color: var(--ws-teal, #14b8a6);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
}
.el-upload-hint {
    font-size: 0.75rem;
    color: var(--ws-text-muted, #71809a);
}

/* --- File loaded indicator --- */
.el-file-loaded {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(20, 184, 166, 0.08);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    color: var(--ws-teal, #14b8a6);
}
.el-file-loaded svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.el-file-name {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 280px;
}
.el-file-clear {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--ws-text-muted, #71809a);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}
.el-file-clear:hover {
    background: var(--ws-surface-alt, #1a2332);
    color: var(--ws-text, #f1f5f9);
}

/* --- Progress Bar --- */
.el-progress {
    margin-bottom: 1rem;
}
.el-progress-bar {
    height: 6px;
    background: var(--ws-border, #1e293b);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.375rem;
}
.el-progress-fill {
    height: 100%;
    background: var(--ws-teal, #14b8a6);
    border-radius: 3px;
    width: 0%;
    transition: width 0.2s ease-out;
    box-shadow: 0 0 8px rgba(20, 184, 166, 0.3);
}
.el-progress-text {
    font-size: 0.75rem;
    color: var(--ws-text-muted, #71809a);
    text-align: center;
}

/* --- Results Container --- */
.el-results {
    margin-bottom: 1rem;
}
.el-results-summary {
    font-size: 0.8125rem;
    color: var(--ws-text-secondary, #94a3b8);
    margin-bottom: 1rem;
    padding: 0.625rem 0.75rem;
    background: var(--ws-surface-alt, #1a2332);
    border-radius: 8px;
    border: 1px solid var(--ws-border, #1e293b);
}
.el-results-summary strong {
    color: var(--ws-text, #f1f5f9);
}

/* --- Factor Card (floating dark card) --- */
.el-factor-card {
    border: 1px solid var(--ws-border, #1e293b);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: var(--ws-surface, #111827);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.2s, border-color 0.2s;
}
.el-factor-card:hover {
    border-color: var(--ws-border-hover, #334155);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.el-factor-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    background: var(--ws-surface-alt, #1a2332);
    border-bottom: 1px solid var(--ws-border, #1e293b);
}
.el-factor-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ws-text, #f1f5f9);
    flex: 1;
}
.el-factor-body {
    padding: 0.75rem;
}

/* --- Confidence Badges (dark-adapted) --- */
.el-confidence {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.el-confidence--high {
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.25);
}
.el-confidence--moderate {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.25);
}
.el-confidence--low {
    background: rgba(148, 163, 184, 0.1);
    color: var(--ws-text-muted, #71809a);
    border: 1px solid var(--ws-border, #1e293b);
}

/* --- Page list --- */
.el-pages {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin: 0.5rem 0;
}
.el-page-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* --- Snippet preview (floating dark card style) --- */
.el-snippet {
    font-size: 0.75rem;
    color: var(--ws-text-muted, #71809a);
    line-height: 1.5;
    padding: 0.5rem 0.625rem;
    background: var(--ws-bg, #0a0e17);
    border-radius: 6px;
    border-left: 3px solid var(--ws-teal, #14b8a6);
    margin-top: 0.375rem;
    margin-bottom: 0.375rem;
    overflow: hidden;
    max-height: 4rem;
}
.el-snippet em {
    font-style: normal;
    font-weight: 600;
    color: var(--ws-text-secondary, #94a3b8);
}

/* --- Match list per pill --- */
.el-matches {
    list-style: none;
    padding: 0;
    margin: 0.375rem 0 0;
}
.el-match-item {
    padding: 0.375rem 0;
    border-bottom: 1px solid var(--ws-border, #1e293b);
    font-size: 0.8125rem;
}
.el-match-item:last-child {
    border-bottom: none;
}
.el-match-label {
    font-weight: 500;
    color: var(--ws-text, #f1f5f9);
    margin-bottom: 0.25rem;
}
.el-match-terms {
    font-size: 0.75rem;
    color: var(--ws-text-muted, #71809a);
}

/* --- Factor Card Variants --- */
.el-factor-card--empty {
    opacity: 0.6;
}
.el-factor-card--empty .el-factor-header {
    background: var(--ws-surface, #111827);
}

/* --- Factor Badge (header) --- */
.el-factor-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.el-factor-badge--found {
    background: rgba(20, 184, 166, 0.12);
    color: var(--ws-teal, #14b8a6);
    border: 1px solid rgba(20, 184, 166, 0.25);
}
.el-factor-badge--empty {
    background: rgba(148, 163, 184, 0.08);
    color: var(--ws-text-muted, #71809a);
    border: 1px solid var(--ws-border, #1e293b);
}
.el-factor-badge--done {
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.25);
}
.el-factor-badge--partial {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.25);
}

/* --- Factor Title --- */
.el-factor-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ws-text, #f1f5f9);
    flex: 1;
}

/* --- Factor Empty Message --- */
.el-factor-empty {
    padding: 0.75rem;
    font-size: 0.8125rem;
    color: var(--ws-text-muted, #71809a);
    font-style: italic;
}

/* --- Evidence Item (per-match card) --- */
.el-evidence-item {
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid var(--ws-border, #1e293b);
    transition: background 0.15s, opacity 0.2s;
}
.el-evidence-item:last-child {
    border-bottom: none;
}
.el-evidence-item--confirmed {
    background: rgba(74, 222, 128, 0.04);
    border-left: 3px solid #4ade80;
}
.el-evidence-item--dismissed {
    opacity: 0.4;
    background: rgba(148, 163, 184, 0.03);
    border-left: 3px solid var(--ws-border, #1e293b);
}

/* --- Evidence Header (pill + confidence row) --- */
.el-evidence-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
}
.el-evidence-pill {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ws-text, #f1f5f9);
}
.el-evidence-pages {
    font-size: 0.75rem;
    color: var(--ws-text-muted, #71809a);
    margin-bottom: 0.25rem;
}

/* --- Snippet Sub-elements --- */
.el-snippet-page {
    font-weight: 600;
    color: var(--ws-text-secondary, #94a3b8);
}
.el-snippet-text {
    color: var(--ws-text-muted, #71809a);
}

/* --- Per-Match Toggle Bar --- */
.el-match-toggle {
    display: flex;
    gap: 0.375rem;
    margin-top: 0.5rem;
}
.el-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border: 1px solid var(--ws-border, #1e293b);
    border-radius: 5px;
    background: transparent;
    font-size: 0.6875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.el-toggle-btn svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}
.el-toggle-btn--confirm {
    color: var(--ws-text-secondary, #94a3b8);
}
.el-toggle-btn--confirm:hover {
    background: rgba(74, 222, 128, 0.08);
    border-color: rgba(74, 222, 128, 0.3);
    color: #4ade80;
}
.el-toggle-btn--confirm.is-active {
    background: rgba(74, 222, 128, 0.15);
    border-color: rgba(74, 222, 128, 0.4);
    color: #4ade80;
}
.el-toggle-btn--dismiss {
    color: var(--ws-text-secondary, #94a3b8);
}
.el-toggle-btn--dismiss:hover {
    background: rgba(248, 113, 113, 0.08);
    border-color: rgba(248, 113, 113, 0.3);
    color: #f87171;
}
.el-toggle-btn--dismiss.is-active {
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.3);
    color: #f87171;
}

/* --- Summary Line --- */
.el-summary {
    font-size: 0.8125rem;
    color: var(--ws-text-secondary, #94a3b8);
    padding: 0.625rem 0.75rem;
    margin-bottom: 1rem;
    background: var(--ws-surface-alt, #1a2332);
    border-radius: 8px;
    border: 1px solid var(--ws-border, #1e293b);
}
.el-summary strong {
    color: var(--ws-text, #f1f5f9);
}
.el-summary-warn {
    color: #fbbf24;
}

/* --- Confirm All Done State --- */
.el-confirm-all-btn--done {
    background: #4ade80;
    color: #0a0e17;
    cursor: default;
}

/* --- Confirm Buttons --- */
.el-confirm-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    margin-top: 0.5rem;
    background: var(--ws-teal, #14b8a6);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
}
.el-confirm-btn:hover {
    background: #0f766e;
    box-shadow: 0 0 8px rgba(20, 184, 166, 0.2);
}
.el-confirm-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.el-confirm-btn--confirmed {
    background: #4ade80;
    color: #0a0e17;
    cursor: default;
}
.el-confirm-all-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    margin-top: 0.75rem;
    background: var(--ws-teal, #14b8a6);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
}
.el-confirm-all-btn:hover {
    background: #0f766e;
    box-shadow: 0 0 12px rgba(20, 184, 166, 0.2);
}
.el-confirm-all-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* --- Start Over Button --- */
.el-start-over-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.625rem 1rem;
    margin-top: 0.5rem;
    background: transparent;
    color: var(--ws-muted, #94a3b8);
    border: 1px solid var(--ws-border, #1e293b);
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}
.el-start-over-btn:hover {
    color: var(--ws-text, #f1f5f9);
    border-color: var(--ws-muted, #94a3b8);
}

/* --- Scanned Page Warning --- */
.el-scanned-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #fbbf24;
}
.el-scanned-warning svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    color: #fbbf24;
}

/* --- Error state --- */
.el-error {
    padding: 0.75rem 1rem;
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.2);
    border-radius: 8px;
    color: #f87171;
    font-size: 0.8125rem;
    margin-bottom: 1rem;
}

/* --- No matches state --- */
.el-no-matches {
    text-align: center;
    padding: 1.5rem 1rem;
    color: var(--ws-text-muted, #71809a);
    font-size: 0.8125rem;
}
.el-no-matches p {
    margin: 0.25rem 0;
}

/* --- Disclaimer --- */
.el-disclaimer {
    font-size: 0.75rem;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.06);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-left: 3px solid #fbbf24;
    border-radius: 6px;
    padding: 0.625rem 0.75rem;
    margin-top: 0.75rem;
    line-height: 1.55;
}
.el-disclaimer strong {
    color: #fcd34d;
}

/* --- Reminder text --- */
.el-reminder {
    font-size: 0.75rem;
    color: var(--ws-text-muted, #71809a);
    text-align: center;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    font-style: italic;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .el-mode-toggle {
        flex-direction: column;
    }
    .el-mode-btn + .el-mode-btn {
        border-left: none;
        border-top: 1.5px solid var(--ws-border, #1e293b);
    }
    .el-upload-zone {
        padding: 1.5rem 1rem;
    }
    .el-file-name {
        max-width: 180px;
    }
    .el-evidence-header {
        flex-wrap: wrap;
    }
    .el-toggle-btn {
        font-size: 0.625rem;
        padding: 0.2rem 0.5rem;
    }
}

/* --- Print: force light --- */
@media print {
    .el-factor-card {
        background: #ffffff;
        border-color: #e2e8f0;
        box-shadow: none;
        color: #1e293b;
    }
    .el-factor-header {
        background: #f8fafc;
        border-color: #e2e8f0;
    }
    .el-factor-name {
        color: #1e293b;
    }
    .el-snippet {
        background: #f8fafc;
        color: #475569;
        border-left-color: #0d9488;
    }
    .el-upload-zone,
    .el-mode-toggle,
    .el-confirm-btn,
    .el-confirm-all-btn,
    .el-start-over-btn,
    .el-match-toggle {
        display: none !important;
    }
    .el-evidence-item--confirmed {
        background: #f0fdf4;
        border-left-color: #16a34a;
    }
    .el-evidence-item--dismissed {
        display: none !important;
    }
}

/* ================================================================
   MULTI-FILE UPLOAD + AUTO-POPULATE STYLES
   ================================================================ */

/* Multi-file upload note */
.el-upload-multi-note {
    font-size: 0.6875rem;
    color: var(--ws-text-muted, #64748b);
    margin-top: 0.375rem;
}

/* File list loaded state */
.el-file-list-loaded {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.375rem;
}

/* File tag (used in loaded state and results) */
.el-file-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    background: var(--ws-surface-alt, #1e293b);
    border: 1px solid var(--ws-border, #1e293b);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--ws-text-secondary, #94a3b8);
    line-height: 1.4;
}

/* Auto-locate banner */
.el-auto-banner {
    display: flex;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-left: 3px solid #f59e0b;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.el-auto-banner__icon {
    flex-shrink: 0;
    color: #f59e0b;
    padding-top: 0.125rem;
}
.el-auto-banner__text {
    font-size: 0.8125rem;
    color: var(--ws-text, #f1f5f9);
    line-height: 1.5;
}
.el-auto-banner__text strong {
    color: #fbbf24;
}

/* File list in results */
.el-file-list {
    font-size: 0.8125rem;
    color: var(--ws-text-secondary, #94a3b8);
    margin-bottom: 1rem;
    line-height: 1.6;
}
.el-file-list strong {
    color: var(--ws-text, #f1f5f9);
}

/* Auto-filled factor card */
.el-factor-card--auto {
    border-left-color: #f59e0b;
}

/* Auto-filled badge */
.el-factor-badge--auto {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    font-size: 0.6875rem;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
}

/* Date-entry-needed badge (arithmetic sections) */
.el-factor-badge--date {
    background: rgba(96, 165, 250, 0.15);
    color: #93c5fd;
    font-size: 0.6875rem;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Auto-populated evidence item */
.el-evidence-item--auto {
    border-left: 2px solid rgba(245, 158, 11, 0.3);
    padding-left: 0.75rem;
}

/* Attributed snippet (shows source doc + page) */
.el-snippet--attributed {
    padding: 0.375rem 0.5rem;
    margin-top: 0.25rem;
}
.el-snippet-source {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
    padding: 0.0625rem 0.375rem;
    border-radius: 3px;
    margin-right: 0.375rem;
    letter-spacing: 0.02em;
}

/* --- Page Preview Link --- */
a.el-page-link {
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
a.el-page-link:hover {
    background: rgba(96, 165, 250, 0.22);
    color: #93c5fd;
}
a.el-page-link:hover svg { opacity: 0.9; }

/* --- Date Hint Banner (arithmetic sections after Evidence Locator scan) --- */
.el-date-hint {
    margin-bottom: 0.75rem;
    padding: 0.625rem 0.75rem;
    background: rgba(96, 165, 250, 0.08);
    border-left: 3px solid #60a5fa;
    border-radius: 0 8px 8px 0;
}
.el-date-hint__header {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #93c5fd;
    margin-bottom: 0.375rem;
}
.el-date-hint__header svg {
    flex-shrink: 0;
    color: #60a5fa;
}
.el-date-hint__snippet {
    font-size: 0.75rem;
    color: #cbd5e1;
    line-height: 1.5;
    margin-top: 0.25rem;
    padding-left: 0.25rem;
}
.el-date-hint__source {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-right: 0.25rem;
}

/* ================================================================
   INLINE DATE INPUTS ON EL RESULT CARDS
   Replaces the old separate Evidence Review Panel.
   Date/checkbox inputs appear directly on arithmetic EL cards.
   ================================================================ */

/* Container for date inputs appended to an EL card */
.el-inline-dates {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(96, 165, 250, 0.06);
    border: 1px solid rgba(96, 165, 250, 0.15);
    border-radius: 8px;
}
.el-inline-dates__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #93c5fd;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
}

/* Date input row */
.el-inline-date-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}
.el-inline-date-row label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ws-text, #f1f5f9);
    min-width: 140px;
    flex-shrink: 0;
}
.el-inline-date-input {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--ws-border, #1e293b);
    border-radius: 6px;
    background: var(--ws-surface, #111827);
    color: var(--ws-text, #f1f5f9);
    font-size: 0.8125rem;
    font-family: inherit;
    flex: 1;
    min-width: 150px;
    max-width: 200px;
}
.el-inline-date-input:focus {
    border-color: #60a5fa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.25);
}

/* Checkbox within inline dates */
.el-inline-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.el-inline-checkbox input[type="checkbox"] {
    accent-color: #60a5fa;
}
.el-inline-checkbox label {
    font-size: 0.8125rem;
    color: var(--ws-text, #f1f5f9);
    cursor: pointer;
}

/* Computed result display (inline on card) */
.el-inline-computed {
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    margin-top: 0.375rem;
    line-height: 1.5;
    display: none;
}
.el-inline-computed.is-visible { display: block; }
.el-inline-computed.is-incomplete {
    background: rgba(148, 163, 184, 0.08);
    color: var(--ws-text-secondary, #94a3b8);
}
.el-inline-computed.is-satisfied {
    background: rgba(74, 222, 128, 0.08);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.2);
}
.el-inline-computed.is-not-satisfied {
    background: rgba(248, 113, 113, 0.08);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.2);
}

/* Override guided-computed-result margin when rendered inside EL card */
.el-inline-dates .guided-computed-result {
    margin-left: 0;
}

/* ================================================================
   SECTION-LEVEL CONFIRMATION BAR
   Accept Evidence / Edit Manually controls per auto-filled card
   ================================================================ */

.el-section-confirm {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.625rem;
    padding-top: 0.625rem;
    border-top: 1px solid var(--ws-border, #1e293b);
}
.el-section-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--ws-border, #1e293b);
    border-radius: 6px;
    background: transparent;
    color: var(--ws-text-secondary, #94a3b8);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.el-section-btn:hover {
    background: rgba(148, 163, 184, 0.08);
    color: var(--ws-text, #f1f5f9);
}
.el-section-btn--accept.is-active {
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.3);
}
.el-section-btn--edit.is-active {
    background: rgba(96, 165, 250, 0.12);
    color: #93c5fd;
    border-color: rgba(96, 165, 250, 0.3);
}

/* Card states after resolution */
.el-factor-card--resolved {
    border-color: rgba(74, 222, 128, 0.25);
}
.el-factor-card--editing {
    border-color: rgba(96, 165, 250, 0.25);
}

/* Inline editor (opened by Edit Manually) */
.el-section-editor {
    margin-top: 0.5rem;
    padding: 0.625rem;
    background: var(--ws-bg, #0a0e17);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 8px;
}
.el-section-editor__textarea {
    width: 100%;
    min-height: 80px;
    padding: 0.5rem 0.625rem;
    border: 1px solid var(--ws-border, #1e293b);
    border-radius: 6px;
    background: var(--ws-surface, #111827);
    color: var(--ws-text, #f1f5f9);
    font-size: 0.8125rem;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
}
.el-section-editor__textarea:focus {
    border-color: #60a5fa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.25);
}
.el-section-editor__actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.el-section-btn--done {
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.3);
}
.el-section-btn--done:hover {
    background: rgba(74, 222, 128, 0.2);
}
.el-section-btn--cancel {
    color: var(--ws-text-muted, #71809a);
}
.el-section-btn--cancel:hover {
    color: var(--ws-text-secondary, #94a3b8);
}

/* Placeholder card for arithmetic sections not found by EL */
.el-factor-card--placeholder {
    border-style: dashed;
}
.el-factor-hint {
    font-size: 0.75rem;
    color: var(--ws-text-muted, #71809a);
    font-style: italic;
    padding: 0.25rem 0;
}

/* Compact progress bar at bottom of EL results */
.el-inline-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    margin-top: 0.75rem;
    background: var(--ws-surface, #111827);
    border: 1px solid var(--ws-border, #1e293b);
    border-radius: 8px;
}
.el-inline-progress__text {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ws-text, #f1f5f9);
}
.el-inline-progress__hint {
    font-size: 0.75rem;
    color: var(--ws-text-muted, #71809a);
}

@media print {
    .el-auto-banner,
    .el-file-list,
    .el-date-hint,
    .el-inline-dates,
    .el-inline-progress {
        display: none !important;
    }
}
