
/* ── Editorial Description ───────────────────────────────────── */
.ext-editorial {
    border-left: 3px solid var(--blue, #2563eb);
    padding: 4px 0 4px 16px;
    margin-bottom: 28px;
}
.ext-editorial p {
    margin: 0;
    color: var(--text-primary, #1e293b);
    line-height: 1.75;
    font-size: 1rem;
}
[data-theme="dark"] .ext-editorial { border-color: #4f7cf7; }
[data-theme="dark"] .ext-editorial p { color: #d1d9f0; }

/* ── Security Report ─────────────────────────────────────────── */
.security-report {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 6px;
    padding: 0;
    margin-bottom: 32px;
    overflow: hidden;
}
.sec-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border, #e2e8f0);
}
.sec-header h2 { margin: 0 0 4px; font-size: 1.15rem; font-weight: 700; }
.sec-meta { font-size: 0.8rem; color: var(--text-muted, #888); }

/* Scan data panels */
.sec-panels { }
.sec-panel {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border, #e2e8f0);
}
.sec-panel:last-child { border-bottom: none; }
.sec-panel-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted, #888);
    margin: 0 0 10px;
}
.sec-tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.sec-tag {
    font-size: 0.78rem;
    padding: 3px 10px;
    border-radius: 3px;
    background: var(--bg-alt, #f1f5f9);
    color: var(--text-secondary, #555);
    border: 1px solid var(--border, #e2e8f0);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.sec-tag--pattern {
    background: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}
.sec-domain {
    font-size: 0.76rem;
    padding: 3px 8px;
    border-radius: 3px;
    background: var(--bg-alt, #f1f5f9);
    border: 1px solid var(--border, #e2e8f0);
    color: var(--text-secondary, #555);
    font-family: 'SF Mono', SFMono-Regular, Consolas, monospace;
}

/* AI Report body */
.sec-report-body {
    padding: 0 24px 24px;
}
.sec-report-section {
    padding: 20px 0 0;
    border-top: 1px solid var(--border, #e2e8f0);
}
.sec-report-section:first-child { border-top: none; }
.sec-report-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text, #1a1a2e);
    margin: 0 0 10px;
    padding: 0;
}
.sec-report-body p,
.sec-report-body .sec-report-section {
    color: var(--text-secondary, #555);
    line-height: 1.75;
    font-size: 0.9rem;
}
.sec-report-body ul {
    padding-left: 20px;
    margin: 8px 0 12px;
}
.sec-report-body li {
    margin-bottom: 6px;
    line-height: 1.6;
    font-size: 0.9rem;
    color: var(--text-secondary, #555);
}
.sec-report-body code {
    background: var(--bg-alt, #f1f5f9);
    border-radius: 3px;
    padding: 1px 5px;
    font-size: 0.84em;
    border: 1px solid var(--border, #e2e8f0);
}
.sec-report-body strong { color: var(--text, #1a1a2e); }

/* Dark theme */
[data-theme="dark"] .security-report { background: #12151e; border-color: #2a2f45; }
[data-theme="dark"] .sec-header { border-color: #2a2f45; }
[data-theme="dark"] .sec-panel { border-color: #2a2f45; }
[data-theme="dark"] .sec-report-section { border-color: #2a2f45; }
[data-theme="dark"] .sec-tag { background: #1e2235; border-color: #2a2f45; color: #a1a1aa; }
[data-theme="dark"] .sec-tag--pattern { background: #422006; border-color: #92400e; color: #fde68a; }
[data-theme="dark"] .sec-domain { background: #1e2235; border-color: #2a2f45; color: #a1a1aa; }
[data-theme="dark"] .sec-report-body code { background: #1e2235; border-color: #2a2f45; }
[data-theme="dark"] .sec-report-heading { color: #e4e4e7; }
[data-theme="dark"] .sec-report-body strong { color: #e4e4e7; }
