/* ────────────────────────────────────────────────────────────
   Compliance SPA — main stylesheet
   (extracted verbatim from inline <style> in P2 code split)
   ──────────────────────────────────────────────────────────── */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: #0a0e17; color: #e2e8f0; min-height: 100vh; }
.container { max-width: 1440px; margin: 0 auto; padding: 1.5rem; }
h1 { font-size: 1.6rem; font-weight: 700; color: #f1f5f9; margin-bottom: 0.2rem; }
.subtitle { color: #64748b; font-size: 0.85rem; margin-bottom: 1rem; }
label { font-size: 0.75rem; color: #94a3b8; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
input, textarea { background: #1e293b; border: 1px solid #334155; color: #e2e8f0; padding: 0.55rem 0.75rem; border-radius: 5px; font-size: 0.9rem; font-family: inherit; width: 100%; }
input:focus, textarea:focus { outline: none; border-color: #3b82f6; }
textarea { resize: vertical; min-height: 70px; font-size: 0.85rem; background: #0f172a; }
button { padding: 0.55rem 1.2rem; border: none; border-radius: 5px; font-size: 0.85rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: all 0.15s; }
.btn-primary { background: #3b82f6; color: white; }
.btn-primary:hover { background: #2563eb; }
.btn-primary:disabled { background: #1e3a5f; color: #64748b; cursor: wait; }
.btn-green { background: #166534; color: #bbf7d0; }
.btn-green:hover { background: #15803d; }
.btn-green:disabled { background: #1e3a5f; color: #64748b; cursor: wait; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid #334155; border-top-color: #3b82f6; border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Tabs ── */
.tabs { display: flex; gap: 0; margin-bottom: 1.2rem; border-bottom: 2px solid #1e293b; }
.tab { flex: 1; text-align: center; padding: 0.6rem 0.5rem; font-size: 0.82rem; font-weight: 600; color: #64748b; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.15s; white-space: nowrap; }
.tab:hover { color: #94a3b8; }
.tab.active { color: #e2e8f0; border-bottom-color: #3b82f6; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Unified tab header ── */
.tab-header { margin-bottom: 1rem; }
.tab-header .stats-bar { margin-bottom: 0; }
.tab-header-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.tab-header-top .tab-desc { flex: 1; min-width: 200px; margin-bottom: 0; padding-right: 0; }
.mode-badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; background: #0c2d1b; color: #4ade80; border: 1px solid #166534; flex-shrink: 0; }
.mode-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.tab-desc { font-size: 0.82rem; color: #64748b; line-height: 1.5; margin-bottom: 0.75rem; }

/* ── Always-visible compliance (same role as footer — not collapsible) ── */
.global-compliance-strip { display: flex; gap: 0.65rem; align-items: flex-start; padding: 0.65rem 0.9rem; margin-bottom: 1rem; background: #1c1207; border: 1px solid #78350f; border-radius: 6px; font-size: 0.78rem; line-height: 1.55; color: #fbbf24; }
.global-compliance-strip .gcs-icon { flex-shrink: 0; font-size: 1rem; line-height: 1.2; }
.global-compliance-strip .gcs-text strong { color: #fcd34d; }
.global-compliance-strip a { color: #60a5fa; }

.law-results-toolbar { margin-bottom: 0.75rem; padding: 0.55rem 0.75rem; background: #0f172a; border: 1px solid #334155; border-radius: 6px; display: none; }
.law-results-toolbar.visible { display: block; }
.law-toolbar-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #64748b; margin-bottom: 0.35rem; }
.law-article-toggles { margin-bottom: 0; }

/* ── Shared ── */
.result-section { background: #1e293b; border: 1px solid #334155; border-radius: 7px; padding: 1.1rem; margin-bottom: 0.85rem; }
.result-section h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; margin-bottom: 0.65rem; padding-bottom: 0.4rem; border-bottom: 1px solid #334155; }
.input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 0.75rem; }
.input-group { display: flex; flex-direction: column; gap: 0.25rem; }
.btn-row { display: flex; gap: 0.5rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.progress-bar { display: none; margin-bottom: 1rem; padding: 0.6rem 0.85rem; background: #1e293b; border: 1px solid #334155; border-radius: 5px; font-size: 0.8rem; color: #94a3b8; align-items: center; gap: 0.5rem; }
.progress-bar.visible { display: flex; }
.progress-step { opacity: 0.4; transition: opacity 0.3s; }
.progress-step.active { opacity: 1; color: #4ade80; }
.progress-step.done { opacity: 0.7; color: #4ade80; }
.progress-sep { color: #334155; }
.stats-bar { font-size: 0.75rem; color: #64748b; padding: 0.5rem 0.75rem; background: #1e293b; border: 1px solid #334155; border-radius: 5px; margin-bottom: 1rem; }
.stats-bar .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: #4ade80; margin-right: 0.4rem; }
.results { display: none; }
.results.visible { display: block; }

/* ── TARIC styles ── */
.measures-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.measures-table th { text-align: left; padding: 0.45rem 0.5rem; color: #94a3b8; font-weight: 500; border-bottom: 1px solid #334155; font-size: 0.75rem; }
.measures-table td { padding: 0.45rem 0.5rem; border-bottom: 1px solid #1e293b; color: #cbd5e1; }
.measures-table tr:hover td { background: #0f172a; }
.risk-badge { display: inline-block; padding: 0.1rem 0.4rem; border-radius: 3px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.risk-prohibited { background: #7f1d1d; color: #fca5a5; }
.risk-restricted { background: #78350f; color: #fbbf24; }
.risk-conditional { background: #422006; color: #fcd34d; }
.risk-allowed { background: #14532d; color: #86efac; }
.dir-badge { display: inline-block; padding: 0.08rem 0.35rem; border-radius: 3px; font-size: 0.7rem; font-weight: 600; }
.dir-import { background: #1e3a5f; color: #60a5fa; }
.dir-export { background: #3b1f1f; color: #f87171; }
.dir-both { background: #2d2006; color: #fbbf24; }
.footnote-item { margin-bottom: 0.75rem; padding: 0.75rem 0.9rem; background: #0f172a; border-radius: 6px; border-left: 3px solid #334155; }
.footnote-item.sankcija { border-left-color: #ef4444; }
.footnote-item.dual-use { border-left-color: #f59e0b; }
.footnote-item.suspension { border-left-color: #3b82f6; }
.footnote-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; flex-wrap: wrap; }
.footnote-id { font-weight: 700; color: #e2e8f0; font-size: 0.78rem; background: #1e293b; padding: 0.15rem 0.45rem; border-radius: 3px; font-family: 'Consolas', monospace; }
.footnote-legal-ref { font-size: 0.7rem; color: #60a5fa; background: #1e3a5f; padding: 0.1rem 0.4rem; border-radius: 3px; }
.footnote-text { font-size: 0.82rem; line-height: 1.6; color: #cbd5e1; margin-bottom: 0.55rem; }
.fn-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; margin-top: 0.45rem; }
.fn-chip { display: inline-flex; align-items: center; gap: 0.2rem; padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.72rem; font-weight: 600; text-decoration: none; border: 1px solid; }
.fn-chip-reg { background: #162032; color: #7dd3fc; border-color: #0284c7; }
.fn-chip-reg:hover { background: #0284c7; color: white; }
.fn-chip-annex { background: #1c1c3a; color: #a5b4fc; border-color: #6366f1; }
.fn-chip-annex:hover { background: #6366f1; color: white; }
.fn-chip-label { font-size: 0.63rem; font-weight: 400; opacity: 0.75; }
.fn-found-banner { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.5rem; padding: 0.45rem 0.65rem; background: #0c1f0e; border: 1px solid #166534; border-radius: 5px; }
.fn-found-label { font-size: 0.7rem; color: #4ade80; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.fn-found-btn { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.25rem 0.65rem; background: #166534; color: #bbf7d0; border: none; border-radius: 4px; font-size: 0.78rem; font-weight: 700; cursor: pointer; font-family: inherit; }
.fn-found-btn:hover { background: #15803d; color: white; }
.fn-found-note { font-size: 0.68rem; color: #4ade80; opacity: 0.65; }
.art-inline { margin-top: 0.65rem; padding: 0.75rem 0.9rem; background: #060d14; border: 1px solid #1e3a5f; border-radius: 5px; border-left: 3px solid #3b82f6; display: none; }
.art-inline.open { display: block; }
.art-inline-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.art-inline-title { font-size: 0.78rem; font-weight: 700; color: #93c5fd; }
.art-inline-text { font-size: 0.8rem; line-height: 1.65; color: #cbd5e1; white-space: pre-wrap; max-height: 400px; overflow-y: auto; }
.art-inline-close { font-size: 0.7rem; color: #64748b; cursor: pointer; padding: 0.15rem 0.4rem; border: 1px solid #334155; border-radius: 3px; }
.art-inline-close:hover { color: #e2e8f0; border-color: #64748b; }
.conditions-row { background: #0f172a; }
.conditions-row td { padding: 0.3rem 0.5rem; font-size: 0.75rem; color: #94a3b8; }
.cond-table { width: 100%; font-size: 0.75rem; margin: 0.3rem 0; }
.cond-table td { padding: 0.2rem 0.4rem; border-bottom: 1px solid #1e293b; }
.cond-outcome-allow { color: #4ade80; }
.cond-outcome-block { color: #f87171; }

/* ── Collection filter toggles ── */
.collection-toggles { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.col-toggle { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.75rem; border-radius: 5px; font-size: 0.78rem; font-weight: 600; cursor: pointer; border: 1px solid #334155; background: #0f172a; color: #64748b; transition: all 0.15s; user-select: none; }
.col-toggle.active { border-color: #475569; background: #1e293b; color: #e2e8f0; }
.col-toggle:hover { border-color: #475569; }
.col-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.col-dot-sanctions { background: #ef4444; }
.col-dot-pep { background: #8b5cf6; }
.col-dot-crime { background: #3b82f6; }
.col-dot-regulatory { background: #f59e0b; }
.col-dot-zppdft { background: #22c55e; }
.col-badge-zppdft { background: #14532d; color: #bbf7d0; }

.screening-columns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem; }
.screen-col { min-width: 0; }
.screen-col-header { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.4rem 0.6rem; border-radius: 5px 5px 0 0; margin-bottom: 0; }
.screen-col-body { background: #0f172a; border: 1px solid #1e293b; border-radius: 0 0 5px 5px; padding: 0.6rem; min-height: 200px; max-height: 70vh; overflow-y: auto; }
.header-adverse { background: #1c1207; color: #fbbf24; border: 1px solid #78350f; border-bottom: none; }
.header-pepsi { background: #052e16; color: #86efac; border: 1px solid #166534; border-bottom: none; }
.header-lists { background: #172554; color: #93c5fd; border: 1px solid #1e3a5f; border-bottom: none; }
.sub-panel { display: block; }
@media (max-width: 900px) { .screening-columns { grid-template-columns: 1fr; } }

.adverse-card { background: #1e293b; border: 1px solid #334155; border-radius: 5px; padding: 0.55rem 0.7rem; margin-bottom: 0.5rem; }
.adverse-card:hover { border-color: #475569; }
.adverse-title { font-size: 0.78rem; font-weight: 600; color: #e2e8f0; line-height: 1.3; }
.adverse-title a { color: #60a5fa; text-decoration: none; }
.adverse-title a:hover { text-decoration: underline; }
.adverse-source { font-size: 0.65rem; color: #64748b; margin-top: 0.1rem; }
.adverse-snippet { font-size: 0.72rem; color: #94a3b8; margin-top: 0.25rem; line-height: 1.4; }
.adverse-kw { display: inline-block; padding: 0.05rem 0.35rem; border-radius: 3px; font-size: 0.65rem; font-weight: 600; background: #7f1d1d; color: #fca5a5; margin-right: 0.2rem; margin-top: 0.3rem; }
.adverse-manual { margin-top: 0.75rem; padding: 0.6rem 0.85rem; background: #0f172a; border: 1px solid #1e293b; border-radius: 5px; font-size: 0.78rem; color: #94a3b8; }
.adverse-manual a { color: #60a5fa; text-decoration: none; margin-right: 0.5rem; }
.adverse-manual a:hover { text-decoration: underline; }
.col-count { font-size: 0.65rem; color: #64748b; font-weight: 400; }
.col-toggle:not(.active) .col-dot { opacity: 0.3; }
.col-dot-primary { background: #22d3ee; }
.col-toggle[data-col="primary"].active { border-color: #22d3ee44; background: #083344; }

.btn-configure-lists { padding: 0.3rem 0.65rem; border: 1px solid #334155; border-radius: 5px; background: transparent; color: #64748b; font-size: 0.72rem; font-weight: 600; cursor: pointer; font-family: inherit; }
.btn-configure-lists:hover { border-color: #475569; color: #94a3b8; }

/* ── Lists modal ── */
.lists-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); z-index: 1000; display: flex; align-items: center; justify-content: center; }
.lists-modal { background: #1e293b; border: 1px solid #334155; border-radius: 10px; width: 90%; max-width: 560px; padding: 1.2rem; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lists-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.lists-modal-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid #334155; }
.list-checkbox-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.5rem; border-radius: 4px; cursor: pointer; font-size: 0.78rem; }
.list-checkbox-row:hover { background: #0f172a; }
.list-checkbox-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: #6366f1; cursor: pointer; }
.list-checkbox-row .list-label { flex: 1; color: #e2e8f0; font-weight: 500; }
.list-checkbox-row .list-count { color: #64748b; font-size: 0.7rem; min-width: 50px; text-align: right; }
.ds-group-header { font-size: 0.72rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.6rem 0.5rem 0.2rem; border-top: 1px solid #334155; margin-top: 0.3rem; }
.ds-group-header:first-child { border-top: none; margin-top: 0; }
.ds-group-header .ds-group-toggle { cursor: pointer; user-select: none; }
.ds-group-header .ds-group-toggle::before { content: '▸ '; font-size: 0.65rem; }
.ds-group-header.open .ds-group-toggle::before { content: '▾ '; }
.ds-group-items { display: none; }
.ds-group-items.open { display: block; }
.ds-group-header.primary-group .ds-group-toggle { color: #6366f1; }
.ds-group-items .list-checkbox-row.ds-unchecked .list-label { color: #64748b; }

/* ── Collection badges on results ── */
.collection-badge { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 3px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.col-badge-sanctions { background: #7f1d1d; color: #fecaca; }
.col-badge-pep { background: #4c1d95; color: #ddd6fe; }
.col-badge-crime { background: #1e3a5f; color: #93c5fd; }
.col-badge-regulatory { background: #451a03; color: #fde68a; }

/* ── Sanctions styles ── */
.match-card { background: #1e293b; border: 1px solid #334155; border-radius: 7px; padding: 1rem 1.1rem; margin-bottom: 0.75rem; }
.match-header { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.confidence { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.78rem; font-weight: 700; min-width: 48px; text-align: center; }
.conf-high { background: #7f1d1d; color: #fca5a5; }
.conf-mid { background: #78350f; color: #fbbf24; }
.conf-low { background: #422006; color: #fcd34d; }
.match-name { font-size: 1rem; font-weight: 700; color: #f1f5f9; }
.match-alias-note { font-size: 0.75rem; color: #94a3b8; font-style: italic; }
.type-badge { display: inline-block; padding: 0.08rem 0.4rem; border-radius: 3px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; }
.type-person { background: #1e3a5f; color: #60a5fa; }
.type-entity { background: #2d1b4e; color: #a78bfa; }
.type-vessel { background: #1a2e1a; color: #86efac; }
.source-badge { display: inline-block; padding: 0.08rem 0.4rem; border-radius: 3px; font-size: 0.7rem; font-weight: 700; }
.source-eu { background: #1e3a5f; color: #93c5fd; }
.source-ofac { background: #3b1f1f; color: #fca5a5; }
.match-body { font-size: 0.82rem; line-height: 1.6; color: #cbd5e1; }
.match-row { display: flex; gap: 0.5rem; margin-bottom: 0.25rem; }
.match-label { color: #64748b; min-width: 100px; font-weight: 500; font-size: 0.75rem; text-transform: uppercase; flex-shrink: 0; }
.match-value { color: #e2e8f0; }
.chip { display: inline-block; padding: 0.1rem 0.45rem; border-radius: 3px; font-size: 0.72rem; font-weight: 600; margin-right: 0.3rem; margin-bottom: 0.2rem; }
.chip-program { background: #1e293b; color: #94a3b8; border: 1px solid #475569; }
.chip-reg { background: #162032; color: #7dd3fc; border: 1px solid #0284c7; text-decoration: none; }
.chip-reg:hover { background: #0284c7; color: white; }
.details-toggle { color: #60a5fa; cursor: pointer; font-size: 0.75rem; font-weight: 600; margin-top: 0.5rem; display: inline-block; }
.details-toggle:hover { color: #93c5fd; }
.details-panel { display: none; margin-top: 0.6rem; padding: 0.75rem; background: #0f172a; border-radius: 5px; border: 1px solid #1e293b; }
.details-panel.open { display: block; }
.id-item { display: inline-block; padding: 0.15rem 0.45rem; background: #1e293b; border: 1px solid #334155; border-radius: 3px; font-size: 0.72rem; margin-right: 0.3rem; margin-bottom: 0.25rem; font-family: 'Consolas', monospace; }
.clear-banner { padding: 1rem 1.2rem; background: #0c1f0e; border: 1px solid #166534; border-radius: 7px; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.6rem; }
.clear-badge { background: #166534; color: #bbf7d0; padding: 0.25rem 0.8rem; border-radius: 4px; font-weight: 700; font-size: 0.9rem; }
.clear-text { color: #4ade80; font-size: 0.85rem; }

/* ── History ── */
.history-panel { background: #1e293b; border: 1px solid #334155; border-radius: 7px; padding: 0.85rem; margin-bottom: 1rem; }
.history-panel h3 { font-size: 0.75rem; text-transform: uppercase; color: #64748b; letter-spacing: 0.05em; margin-bottom: 0.5rem; cursor: pointer; }
.history-list { max-height: 140px; overflow-y: auto; }
.history-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.5rem; border-radius: 4px; cursor: pointer; font-size: 0.8rem; margin-bottom: 0.2rem; }
.history-item:hover { background: #334155; }

/* ── Footer ── */
.disclaimer { margin-top: 2rem; padding: 0.85rem 1rem; background: #1c1207; border: 1px solid #78350f; border-radius: 6px; font-size: 0.78rem; line-height: 1.6; color: #fbbf24; }
.disclaimer strong { color: #fcd34d; }
.disclaimer a { color: #60a5fa; }
.feedback-section { margin-top: 1.5rem; padding: 1.1rem; background: #1e293b; border: 1px solid #334155; border-radius: 7px; }
.feedback-section h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; margin-bottom: 0.6rem; }
.feedback-row { display: flex; gap: 0.5rem; align-items: flex-end; margin-top: 0.5rem; }
.feedback-row .input-group { flex: 1; }
.btn-feedback { background: #334155; color: #94a3b8; border: 1px solid #475569; padding: 0.45rem 1rem; border-radius: 5px; font-size: 0.8rem; font-weight: 600; cursor: pointer; font-family: inherit; white-space: nowrap; }
.btn-feedback:hover { background: #475569; color: #e2e8f0; }
.feedback-status { font-size: 0.75rem; color: #4ade80; margin-top: 0.4rem; min-height: 1.1rem; }
.footer { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #1e293b; text-align: center; font-size: 0.72rem; color: #475569; line-height: 1.8; padding-bottom: 2rem; }
.footer a { color: #64748b; text-decoration: none; }
.footer a:hover { color: #94a3b8; }

.search-row { display: flex; gap: 0.5rem; margin-bottom: 1.2rem; }
.search-row input { flex: 1; }
.threshold-group { display: flex; align-items: center; gap: 0.3rem; min-width: 120px; }
.threshold-group input { width: 55px; text-align: center; padding: 0.55rem 0.4rem; }
.threshold-group label { white-space: nowrap; }

/* ── Law search bar ── */
.law-search-bar { display: flex; gap: 0.5rem; align-items: center; margin: 0.75rem 0 1rem 0; }
.law-search-bar input[type="text"] { flex: 1; font-size: 0.95rem; padding: 0.65rem 0.85rem; }
.law-search-bar select { background: #1e293b; border: 1px solid #334155; color: #e2e8f0; padding: 0.55rem 0.5rem; border-radius: 5px; font-size: 0.82rem; font-family: inherit; max-width: 200px; min-width: 130px; cursor: pointer; }
.law-search-bar select:focus { outline: none; border-color: #6366f1; }

/* ── Law library collapsible ── */
.law-library-section { margin-top: 1.5rem; background: #1e293b; border: 1px solid #334155; border-radius: 7px; padding: 0; }
.law-library-header { display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1rem; cursor: pointer; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; user-select: none; }
.law-library-header:hover { color: #94a3b8; }
.law-lib-arrow { font-size: 0.65rem; transition: transform 0.2s; display: inline-block; }
.law-lib-arrow.open { transform: rotate(90deg); }
#lawLibraryBody { padding: 0 1rem 1rem 1rem; }

/* ── Sanctions tab: how screening works (collapsible) ── */
.screening-info-section { margin-bottom: 0.85rem; background: #1e293b; border: 1px solid #334155; border-radius: 7px; padding: 0; }
.screening-info-header { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.85rem; cursor: pointer; font-size: 0.78rem; font-weight: 600; color: #94a3b8; user-select: none; text-transform: uppercase; letter-spacing: 0.04em; }
.screening-info-header:hover { color: #cbd5e1; }
.tab-info-body { display: none; padding: 0.65rem 0.85rem 0.85rem 1rem; font-size: 0.72rem; line-height: 1.55; color: #94a3b8; border-top: 1px solid #1e293b; }
.tab-info-body.open { display: block; }
.tab-info-body a { color: #60a5fa; text-decoration: none; }
.tab-info-body a:hover { text-decoration: underline; }
.tab-info-body ul { margin: 0.3rem 0 0.45rem 1rem; padding: 0; }
.tab-info-body li { margin-bottom: 0.2rem; }
.tab-info-body strong { color: #cbd5e1; font-weight: 600; }
.tab-info-body .hi-note { font-size: 0.68rem; color: #64748b; margin-top: 0.45rem; }
.tab-info-body .law-ref-zakaj { display: block; font-size: 0.68rem; color: #64748b; margin: 0.1rem 0 0.55rem 0; line-height: 1.45; border-left: 2px solid #334155; padding-left: 0.5rem; }

/* ── Law library rows ── */
.law-lib-row { display:flex; align-items:center; gap:0.75rem; padding:0.6rem 0.75rem; background:#0f172a; border:1px solid #1e293b; border-radius:6px; }
.law-lib-btn { padding:0.3rem 0.75rem; border-radius:4px; font-size:0.75rem; font-weight:700; cursor:pointer; font-family:inherit; border:none; transition:all 0.15s; }
.law-lib-index { background:#1e3a5f; color:#60a5fa; }
.law-lib-index:hover { background:#1d4ed8; color:white; }
.law-lib-remove { background:#2a0f0f; color:#f87171; }
.law-lib-remove:hover { background:#7f1d1d; color:white; }

/* ── Law ingest sub-tabs ── */
.law-input-tab { padding: 0.45rem 1rem; font-size: 0.8rem; font-weight: 600; color: #64748b; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 0.15s; }
.law-input-tab:hover { color: #94a3b8; }
.law-input-tab.active { color: #e2e8f0; border-bottom-color: #6366f1; }
.btn-pdf-upload { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 1.1rem; background: #312e81; color: #c7d2fe; border: 1px solid #4338ca; border-radius: 5px; font-size: 0.85rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: all 0.15s; white-space: nowrap; }
.btn-pdf-upload:hover { background: #3730a3; color: #e0e7ff; }

/* ── Law Search styles ── */
.law-hit { background: #1e293b; border: 1px solid #334155; border-radius: 7px; padding: 0.85rem 1rem; margin-bottom: 0.65rem; border-left: 4px solid #6366f1; }
.law-hit-header { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.law-art-badge { background: #1c1c3a; color: #a5b4fc; border: 1px solid #6366f1; padding: 0.12rem 0.5rem; border-radius: 3px; font-size: 0.75rem; font-weight: 700; font-family: 'Consolas', monospace; }
.law-doc-badge { background: #162032; color: #7dd3fc; border: 1px solid #0284c7; padding: 0.1rem 0.4rem; border-radius: 3px; font-size: 0.7rem; font-weight: 600; }
.law-score { font-size: 0.7rem; color: #64748b; margin-left: auto; }
.law-subtitle { font-size: 0.78rem; color: #94a3b8; font-style: italic; margin-bottom: 0.35rem; }
.law-text { font-size: 0.82rem; line-height: 1.7; color: #cbd5e1; white-space: pre-wrap; max-height: 300px; overflow-y: auto; }
.law-correction { font-size:0.75rem; color:#fbbf24; background:#1c1207; border:1px solid #78350f; border-radius:4px; padding:0.25rem 0.6rem; margin-bottom:0.6rem; display:inline-block; }
.law-no-docs { padding: 1.5rem; text-align: center; color: #64748b; font-size: 0.85rem; line-height: 1.8; }

/* ── Risk Country styles ── */
.risk-overall { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: 8px; margin-bottom: 1.25rem; border: 1px solid; }
.risk-overall-critical { background: #1a0808; border-color: #991b1b; }
.risk-overall-high { background: #18100a; border-color: #92400e; }
.risk-overall-elevated { background: #18170a; border-color: #854d0e; }
.risk-overall-low { background: #071a0a; border-color: #166534; }
.risk-overall-badge { padding: 0.35rem 0.95rem; border-radius: 5px; font-weight: 800; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.risk-badge-critical { background: #991b1b; color: #fecaca; }
.risk-badge-high { background: #92400e; color: #fde68a; }
.risk-badge-elevated { background: #854d0e; color: #fef3c7; }
.risk-badge-low { background: #166534; color: #bbf7d0; }
.risk-overall-text { font-size: 0.9rem; color: #f1f5f9; font-weight: 700; }
.risk-overall-sub { font-size: 0.75rem; color: #94a3b8; margin-top: 0.2rem; line-height: 1.5; }
.risk-tf-badge { display: inline-block; background: #7c2d12; color: #fdba74; border: 1px solid #ea580c; padding: 0.15rem 0.55rem; border-radius: 4px; font-size: 0.7rem; font-weight: 800; margin-left: 0.5rem; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: middle; }
.risk-desg-count { display: inline-block; background: #1e293b; color: #cbd5e1; padding: 0.15rem 0.55rem; border-radius: 4px; font-size: 0.72rem; font-weight: 600; border: 1px solid #334155; margin-left: 0.5rem; vertical-align: middle; }

.risk-card { background: #111827; border: 1px solid #1f2937; border-radius: 8px; padding: 1rem 1.15rem; margin-bottom: 0.75rem; border-left: 6px solid; transition: border-color 0.15s, background 0.15s; }
.risk-card:hover { background: #151d2e; }
.risk-card-aml { border-left-color: #ef4444; background: linear-gradient(90deg, rgba(239,68,68,0.04) 0%, transparent 40%); }
.risk-card-tf { border-left-color: #f59e0b; background: linear-gradient(90deg, rgba(245,158,11,0.04) 0%, transparent 40%); }
.risk-card-arms { border-left-color: #a855f7; background: linear-gradient(90deg, rgba(168,85,247,0.04) 0%, transparent 40%); }
.risk-card-header { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.risk-list-badge { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 4px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.risk-list-aml, .risk-list-critical, .risk-list-high { background: #7f1d1d; color: #fecaca; }
.risk-list-tf, .risk-list-elevated { background: #78350f; color: #fde68a; }
.risk-list-arms { background: #581c87; color: #e9d5ff; }
.risk-card-label { font-size: 0.75rem; color: #64748b; font-weight: 500; }
.risk-card-since { font-size: 0.68rem; color: #475569; background: #1e293b; padding: 0.12rem 0.45rem; border-radius: 3px; border: 1px solid #334155; margin-left: auto; white-space: nowrap; }
.col-dot-aml { background: #ef4444; }
.col-dot-tf { background: #f59e0b; }
.col-dot-arms { background: #a855f7; }
.risk-card-title { font-size: 0.92rem; font-weight: 700; color: #f1f5f9; margin-bottom: 0.35rem; }
.risk-card-desc { font-size: 0.82rem; line-height: 1.75; color: #a1afc4; margin-bottom: 0.5rem; }
.risk-card-source { font-size: 0.72rem; color: #475569; text-decoration: none; transition: color 0.15s; }
.risk-card-source:hover { color: #60a5fa; }
.risk-card-source svg { vertical-align: -1px; margin-left: 2px; }
.risk-crosslink-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.25rem; }
.btn-crosslink { padding: 0.5rem 1.1rem; border: 1px solid #334155; border-radius: 6px; background: #1e293b; color: #94a3b8; font-size: 0.78rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: all 0.15s; }
.btn-crosslink:hover { background: #334155; color: #e2e8f0; border-color: #475569; }
.country-clear-banner { padding: 1rem 1.25rem; background: #071a0a; border: 1px solid #166534; border-radius: 8px; margin-bottom: 1rem; }

.risk-cpi-card { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; border-radius: 8px; padding: 0.85rem 1.1rem; margin-bottom: 0.75rem; border: 1px solid; border-left: 6px solid #3b82f6; background: linear-gradient(90deg, rgba(59,130,246,0.04) 0%, transparent 40%); }
.risk-cpi-card .cpi-score { font-size: 1.7rem; font-weight: 800; min-width: 50px; text-align: center; line-height: 1; }
.risk-cpi-card .cpi-title { font-size: 0.82rem; font-weight: 700; color: #e2e8f0; }
.risk-cpi-card .cpi-sub { font-size: 0.72rem; color: #64748b; margin-top: 0.15rem; line-height: 1.5; }
.risk-cpi-card .cpi-sub a { color: #475569; text-decoration: none; transition: color 0.15s; }
.risk-cpi-card .cpi-sub a:hover { color: #60a5fa; }

/* ── Country Risk inline badge (TARIC + Sanctions cross-links) ── */
.country-risk-inline { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.12rem 0.45rem; border-radius: 3px; font-size: 0.7rem; font-weight: 700; cursor: pointer; text-decoration: none; }
.cri-critical { background: #450a0a; color: #fca5a5; border: 1px solid #7f1d1d; }
.cri-high { background: #431407; color: #fdba74; border: 1px solid #c2410c; }
.cri-elevated { background: #422006; color: #fde68a; border: 1px solid #92400e; }
.country-risk-banner { margin-top: 0.75rem; padding: 0.65rem 0.85rem; background: #1c1207; border: 1px solid #78350f; border-radius: 6px; font-size: 0.78rem; }
.country-risk-banner-low { background: #0c1f0e; border-color: #166534; }

/* ── Official links tables (single place to swap URLs) ── */
.ref-links-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; margin: 0.5rem 0; }
.ref-links-table th, .ref-links-table td {
    border: 1px solid #334155; padding: 0.45rem 0.5rem; text-align: left; vertical-align: top;
}
.ref-links-table th {
    background: #0f172a; color: #94a3b8; font-weight: 600; font-size: 0.68rem;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.ref-links-table tbody tr:hover td { background: #0f172a; }
.ref-links-table a { color: #60a5fa; word-break: break-all; }
.ref-links-table .ref-note { font-size: 0.7rem; color: #64748b; max-width: 260px; }
.ref-links-table-wrap { overflow-x: auto; margin: 0.35rem 0; }

/* ── P3: canonical Sources block (replaces the 4 duplicated link locations) ── */
.sources-anchor-btn {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.35rem 0.75rem; margin-top: 0.5rem;
    border: 1px solid #1e3a5f; border-radius: 5px;
    background: #0f172a; color: #93c5fd;
    font-size: 0.78rem; font-weight: 600; cursor: pointer;
    text-decoration: none; transition: all 0.15s; font-family: inherit;
}
.sources-anchor-btn:hover { background: #1e3a5f; color: #dbeafe; border-color: #3b82f6; }
.sources-anchor-btn::after { content: '→'; opacity: 0.7; }

.sources-group { margin: 0.85rem 0 0 0; padding: 0.6rem 0 0 0; border-top: 1px solid #1e293b; }
.sources-group:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.sources-group-title {
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
    color: #94a3b8; margin-bottom: 0.45rem;
}
.sources-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.sources-list li {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem;
    padding: 0.3rem 0.55rem; background: #0f172a; border: 1px solid #1e293b; border-radius: 5px;
}
.sources-list a { color: #60a5fa; text-decoration: none; font-weight: 600; font-size: 0.82rem; flex-shrink: 0; }
.sources-list a:hover { text-decoration: underline; }
.sources-list .sources-url {
    color: #475569; font-size: 0.7rem; word-break: break-all; font-family: 'Consolas', monospace;
}

/* ── P4: Help (?) icon + popover + unified Help block ── */
.help-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; padding: 0; margin-left: 0.4rem;
    border: 1px solid #334155; border-radius: 50%;
    background: #0f172a; color: #94a3b8;
    font-size: 0.78rem; font-weight: 700; cursor: pointer;
    font-family: inherit; vertical-align: middle; transition: all 0.15s;
}
.help-icon:hover { background: #1e293b; color: #e2e8f0; border-color: #475569; }
.help-icon:focus { outline: 2px solid #3b82f6; outline-offset: 2px; }

.help-popover {
    position: absolute; z-index: 1500; width: 320px;
    background: #1e293b; border: 1px solid #475569; border-radius: 7px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
    padding: 0.7rem 0.85rem;
}
.help-popover-body { font-size: 0.78rem; line-height: 1.55; color: #e2e8f0; margin-bottom: 0.55rem; }
.help-popover-actions { display: flex; justify-content: flex-end; }
.help-popover-link {
    background: transparent; border: none; padding: 0.2rem 0.4rem;
    color: #60a5fa; font-size: 0.75rem; font-weight: 600; cursor: pointer; font-family: inherit;
}
.help-popover-link:hover { color: #93c5fd; text-decoration: underline; }

.help-group { margin: 0.85rem 0 0 0; padding: 0.6rem 0 0 0; border-top: 1px solid #1e293b; }
.help-group:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.help-group-title {
    font-size: 0.85rem; font-weight: 700; color: #e2e8f0; margin-bottom: 0.4rem;
    text-transform: none; letter-spacing: 0;
}
.help-group-body { font-size: 0.8rem; line-height: 1.55; color: #94a3b8; }
.help-group-body p { margin: 0 0 0.4rem 0; }
.help-group-body ul { margin: 0.3rem 0 0.5rem 1.1rem; padding: 0; }
.help-group-body li { margin-bottom: 0.2rem; }
.help-group-body strong { color: #cbd5e1; font-weight: 600; }
.help-group-body a { color: #60a5fa; text-decoration: none; }
.help-group-body a:hover { text-decoration: underline; }
.help-group-body code { font-size: 0.72rem; background: #0f172a; padding: 0.05rem 0.3rem; border-radius: 3px; color: #cbd5e1; }

/* ── P12: Help tab (combined per-tab instructions + sources) ── */
.help-section {
    background: #1e293b; border: 1px solid #334155; border-radius: 7px;
    padding: 1rem 1.15rem; margin-bottom: 1rem;
}
.help-section-header {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 1rem; margin-bottom: 0.75rem; padding-bottom: 0.5rem;
    border-bottom: 1px solid #334155;
}
.help-section-header h2 {
    font-size: 1.05rem; font-weight: 700; color: #f1f5f9; margin: 0;
}
.help-jump-back {
    background: #0f172a; color: #93c5fd; border: 1px solid #1e3a5f;
    padding: 0.3rem 0.65rem; border-radius: 5px;
    font-size: 0.74rem; font-weight: 600; cursor: pointer; font-family: inherit;
    transition: all 0.15s;
}
.help-jump-back:hover { background: #1e3a5f; color: #dbeafe; border-color: #3b82f6; }

.help-section-howto h3,
.help-section-sources h3 {
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: #94a3b8;
    margin: 0.6rem 0 0.4rem 0;
}
.help-section-howto p { font-size: 0.82rem; line-height: 1.6; color: #cbd5e1; margin: 0 0 0.4rem 0; }
.help-section-howto p.help-caveat {
    margin-top: 0.6rem; padding: 0.5rem 0.75rem;
    background: #1c1207; border: 1px solid #78350f; border-radius: 5px;
    color: #fbbf24; font-size: 0.78rem;
}
.help-section-howto p.help-caveat strong { color: #fcd34d; }
.help-sub {
    font-size: 0.82rem; font-weight: 700;
    margin: 0.85rem 0 0.3rem 0;
    padding: 0.15rem 0.55rem; border-radius: 4px;
    display: inline-block;
}
.help-sub-pepsi    { background: #052e16; color: #86efac; border: 1px solid #166534; }
.help-sub-sanctions{ background: #2a0f0f; color: #fca5a5; border: 1px solid #7f1d1d; }
.help-sub-adverse  { background: #1c1207; color: #fbbf24; border: 1px solid #78350f; }
.help-sub-aml      { background: #2a0f0f; color: #fca5a5; border: 1px solid #7f1d1d; }
.help-sub-tf       { background: #1c1207; color: #fdba74; border: 1px solid #c2410c; }
.help-sub-arms     { background: #2d1b4e; color: #c4b5fd; border: 1px solid #7c3aed; }
.help-section-howto ul { margin: 0.3rem 0 0.5rem 1.2rem; padding: 0; font-size: 0.8rem; color: #cbd5e1; line-height: 1.6; }
.help-section-howto li { margin-bottom: 0.2rem; }
.help-section-howto strong { color: #e2e8f0; font-weight: 600; }
.help-section-howto a { color: #60a5fa; text-decoration: none; }
.help-section-howto a:hover { text-decoration: underline; }
.help-section-howto code { font-size: 0.72rem; background: #0f172a; padding: 0.05rem 0.3rem; border-radius: 3px; color: #cbd5e1; }

.help-sources-group { margin-bottom: 0.75rem; }
.help-sources-group:last-child { margin-bottom: 0; }
.help-sources-group-title {
    font-size: 0.7rem; font-weight: 600; color: #64748b;
    text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.35rem;
}

.sources-list li { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.source-link { color: #60a5fa; text-decoration: none; font-weight: 600; font-size: 0.82rem; }
.source-link:hover { text-decoration: underline; }
.source-pdf-chip {
    display: inline-flex; align-items: center; gap: 0.2rem;
    padding: 0.12rem 0.5rem; border-radius: 4px;
    background: #312e81; color: #c7d2fe; border: 1px solid #4338ca;
    font-size: 0.7rem; font-weight: 700; text-decoration: none;
    margin-left: auto;
}
.source-pdf-chip:hover { background: #3730a3; color: #e0e7ff; }
.source-pdf-chip-ext { background: #1c1c3a; color: #a5b4fc; border-color: #6366f1; }
.source-pdf-chip-ext:hover { background: #312e81; color: #c7d2fe; }

/* PEP freshness badges */
.pep-freshness-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.4rem; }
.pep-fresh-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.3rem 0.55rem; background: #0f172a; border: 1px solid #1e293b; border-radius: 5px; font-size: 0.75rem; }
.pep-fresh-label { color: #94a3b8; font-weight: 600; }
.pep-fresh-ok { color: #4ade80; font-weight: 600; }
.pep-fresh-err { color: #f87171; font-weight: 600; cursor: help; }

/* ── P6: Slim header (logo · tabs · pills · lang · ? · admin) ── */
.app-header {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    flex-wrap: wrap; margin-bottom: 0.85rem;
}
.app-header .brand h1 { margin-bottom: 0; font-size: 1.35rem; }
.app-header .brand .subtitle { margin-bottom: 0; font-size: 0.78rem; }
.header-controls { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.header-pill {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.3rem 0.65rem; border-radius: 5px;
    background: #0f172a; border: 1px solid #1e293b;
    font-size: 0.72rem; color: #94a3b8;
}
.header-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.header-pill strong { color: #e2e8f0; }
.header-lang { display: inline-flex; border: 1px solid #334155; border-radius: 5px; overflow: hidden; }
.lang-btn {
    background: #0f172a; color: #64748b; border: none;
    padding: 0.32rem 0.6rem; font-size: 0.72rem; font-weight: 700;
    cursor: pointer; font-family: inherit; transition: all 0.15s;
}
.lang-btn:hover { color: #cbd5e1; }
.lang-btn.active { background: #1e3a5f; color: #93c5fd; }
.header-btn {
    background: #1e293b; color: #cbd5e1; border: 1px solid #334155;
    padding: 0.32rem 0.7rem; border-radius: 5px;
    font-size: 0.74rem; font-weight: 600; cursor: pointer; font-family: inherit;
    transition: all 0.15s;
}
.header-btn:hover { background: #334155; color: #f1f5f9; border-color: #475569; }
.header-btn.header-btn-admin { background: #312e81; color: #c7d2fe; border-color: #4338ca; }
.header-btn.header-btn-admin:hover { background: #3730a3; color: #e0e7ff; }
.header-btn.header-btn-icon {
    width: 32px; height: 32px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.95rem; font-weight: 700;
}

/* ── P6: drawers float top-right when toggled from header ── */
.app-drawer {
    position: fixed; top: 60px; right: 1rem;
    width: min(92vw, 520px); max-height: calc(100vh - 80px);
    overflow-y: auto; z-index: 1100;
    box-shadow: 0 16px 40px rgba(0,0,0,0.55);
    margin-top: 0 !important;
}

/* ── P6: minimal footer ── */
.footer-min {
    margin-top: 2rem; padding: 0.85rem 0 2rem 0; border-top: 1px solid #1e293b;
    text-align: center; font-size: 0.72rem; color: #475569;
}
.footer-min a, .footer-min .footer-link {
    color: #64748b; text-decoration: none; cursor: pointer;
}
.footer-min a:hover, .footer-min .footer-link:hover { color: #94a3b8; }

/* ── P10: Report tab ── */
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
@media (max-width: 900px) { .report-grid { grid-template-columns: 1fr; } }
.report-card {
    background: #1e293b; border: 1px solid #334155; border-radius: 7px;
    padding: 0.95rem 1.05rem;
}
.report-card h3 {
    font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em;
    color: #94a3b8; font-weight: 700; margin-bottom: 0.5rem;
    padding-bottom: 0.3rem; border-bottom: 1px solid #334155;
}
.report-meta { font-size: 0.85rem; color: #e2e8f0; margin-bottom: 0.4rem; }
.report-time { color: #475569; font-size: 0.7rem; }
.report-stat { font-size: 0.78rem; color: #94a3b8; margin-bottom: 0.5rem; }
.report-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.25rem; }
.report-list li {
    font-size: 0.78rem; color: #cbd5e1; padding: 0.3rem 0.55rem;
    background: #0f172a; border-radius: 4px;
}
.report-empty { font-size: 0.78rem; color: #64748b; font-style: italic; padding: 0.5rem 0; }
.report-clear {
    display: inline-block; padding: 0.25rem 0.7rem; border-radius: 4px;
    background: #166534; color: #bbf7d0; font-weight: 700; font-size: 0.78rem;
}
.report-actions { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
