/* Agent Readiness — Session 1 (Tier 1 checks).
 * Scoped to .ar-* classes; inherits page background + theme tokens from style.css +
 * theme-override.css. Safe to ship alongside tracker/opportunities CSS (no collisions).
 */

.ar-main { max-width: 960px; margin: 24px auto 64px; padding: 0 24px; }

/* ---- Hero / form ---- */
.ar-hero { background: var(--surface-1, #fff); border: 1px solid var(--border-subtle, #e5e7eb); border-radius: 16px; padding: 32px 28px; margin-bottom: 24px; }
.ar-hero-inner { max-width: 720px; }
.ar-eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--color-primary, #0d9488); }
.ar-h1 { margin: 0 0 10px; font-size: 28px; line-height: 1.18; font-weight: 700; color: var(--text-primary, #0f172a); }
.ar-lede { margin: 0 0 20px; font-size: 15px; color: var(--text-secondary, #475569); }
.ar-lede code { background: var(--surface-2, #f1f5f9); padding: 1px 5px; border-radius: 4px; font-size: 13px; }

.ar-form { display: flex; flex-direction: column; gap: 6px; }
.ar-label { font-size: 13px; font-weight: 600; color: var(--text-secondary, #475569); }
.ar-input-row { display: flex; gap: 10px; }
.ar-input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--border-muted, #d1d5db); border-radius: 10px; font-size: 15px; font-family: inherit; background: var(--surface-0, #fff); color: var(--text-primary, #0f172a); }
.ar-input:focus { outline: none; border-color: var(--color-primary, #0d9488); box-shadow: 0 0 0 3px rgba(13,148,136,.15); }
.ar-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 20px; border-radius: 10px; border: none; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; min-width: 110px; }
.ar-btn-primary { background: var(--color-primary, #0d9488); color: #fff; }
.ar-btn-primary:hover:not(:disabled) { background: var(--color-primary-dark, #115e59); }
.ar-btn:disabled { opacity: .6; cursor: progress; }
.ar-spinner { display: none; animation: ar-spin .8s linear infinite; }
.ar-btn.is-loading .ar-btn-text { display: none; }
.ar-btn.is-loading .ar-spinner { display: inline-block; }
@keyframes ar-spin { to { transform: rotate(360deg); } }
.ar-hint { margin: 6px 0 0; font-size: 12.5px; color: var(--text-muted, #64748b); }

/* ---- Result card ---- */
.ar-result-card { background: var(--surface-1, #fff); border: 1px solid var(--border-subtle, #e5e7eb); border-radius: 16px; padding: 28px; }
.ar-score-row { display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--border-subtle, #e5e7eb); margin-bottom: 20px; }
.ar-score-gauge { position: relative; width: 120px; height: 120px; }
.ar-score-track { stroke: var(--surface-2, #e5e7eb); }
.ar-score-ring { stroke: var(--color-primary, #0d9488); transition: stroke-dashoffset .8s cubic-bezier(.4,0,.2,1); }
.ar-score-ring.is-poor    { stroke: #dc2626; }
.ar-score-ring.is-warn    { stroke: #ea580c; }
.ar-score-ring.is-ok      { stroke: #ca8a04; }
.ar-score-ring.is-good    { stroke: #0d9488; }
.ar-score-ring.is-great   { stroke: #16a34a; }
.ar-score-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1; }
.ar-score-value { font-size: 32px; font-weight: 700; color: var(--text-primary, #0f172a); }
.ar-score-max { font-size: 11px; color: var(--text-muted, #64748b); margin-top: 2px; }
.ar-grade { margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: .15em; padding: 2px 8px; border-radius: 999px; background: var(--surface-2, #f1f5f9); color: var(--text-secondary, #475569); }
.ar-grade.g-A { background: #dcfce7; color: #166534; }
.ar-grade.g-B { background: #ecfccb; color: #3f6212; }
.ar-grade.g-C { background: #fef9c3; color: #854d0e; }
.ar-grade.g-D { background: #ffedd5; color: #9a3412; }
.ar-grade.g-F { background: #fee2e2; color: #991b1b; }

.ar-result-url { margin: 0 0 6px; font-size: 18px; font-weight: 600; color: var(--text-primary, #0f172a); word-break: break-all; }
.ar-result-summary { margin: 0 0 8px; font-size: 14px; color: var(--text-secondary, #475569); }
.ar-result-footer { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ar-pill-mini-action { background: color-mix(in srgb, #6366f1 12%, transparent); color: #4f46e5; text-decoration: none; cursor: pointer; transition: background 0.15s; }
.ar-pill-mini-action:hover { background: color-mix(in srgb, #6366f1 22%, transparent); }
.ar-pill-mini { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; background: var(--surface-2, #f1f5f9); color: var(--text-secondary, #475569); font-size: 11.5px; font-weight: 500; }

/* ---- Check rows ---- */
.ar-checks { display: flex; flex-direction: column; gap: 12px; }
.ar-check { padding: 14px 16px; border: 1px solid var(--border-subtle, #e5e7eb); border-radius: 12px; display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: start; }
.ar-check[data-status="pass"] { border-left: 3px solid #16a34a; }
.ar-check[data-status="warn"] { border-left: 3px solid #ea580c; }
.ar-check[data-status="fail"] { border-left: 3px solid #dc2626; }
.ar-check[data-status="na"]   { border-left: 3px solid #94a3b8; background: var(--surface-2, #f8fafc); }
.ar-check-icon { width: 22px; height: 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; margin-top: 1px; }
.ar-check[data-status="pass"] .ar-check-icon { background: #16a34a; }
.ar-check[data-status="warn"] .ar-check-icon { background: #ea580c; }
.ar-check[data-status="fail"] .ar-check-icon { background: #dc2626; }
.ar-check[data-status="na"]   .ar-check-icon { background: #94a3b8; }
.ar-check-body { min-width: 0; }
.ar-check-label { margin: 0 0 4px; font-size: 15px; font-weight: 600; color: var(--text-primary, #0f172a); }
.ar-check-evidence { margin: 0 0 6px; font-size: 13.5px; color: var(--text-secondary, #475569); word-wrap: break-word; }
.ar-impact { font-size: 12.5px; color: var(--text-muted, #64748b); margin: 0; padding-top: 6px; border-top: 1px dashed var(--border-subtle, #e5e7eb); }
.ar-impact-weight { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-right: 6px; }
.ar-impact-weight.w-critical { background: #fee2e2; color: #991b1b; }
.ar-impact-weight.w-moderate { background: #fef3c7; color: #92400e; }
.ar-impact-weight.w-low      { background: #e0f2fe; color: #075985; }
.ar-impact-weight.w-minimal  { background: #f1f5f9; color: #475569; }
.ar-check-points { font-size: 12px; color: var(--text-muted, #64748b); text-align: right; white-space: nowrap; padding-left: 4px; }
.ar-check-points b { font-size: 14px; color: var(--text-primary, #0f172a); font-weight: 700; }

/* ---- Disclosure + error ---- */
.ar-result-disclosure { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border-subtle, #e5e7eb); }
.ar-result-disclosure summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--color-primary, #0d9488); }
.ar-result-disclosure p { margin: 8px 0 0; font-size: 13.5px; color: var(--text-secondary, #475569); }

.ar-error { margin-top: 16px; padding: 14px 16px; background: #fee2e2; border: 1px solid #fca5a5; border-radius: 10px; color: #991b1b; font-size: 14px; }

@media (max-width: 640px) {
  .ar-main { padding: 0 16px; }
  .ar-hero { padding: 22px 18px; }
  .ar-h1 { font-size: 22px; }
  .ar-input-row { flex-direction: column; }
  .ar-btn { width: 100%; }
  .ar-score-row { grid-template-columns: 1fr; text-align: center; }
  .ar-score-gauge { margin: 0 auto; }
  .ar-check { grid-template-columns: 22px 1fr; }
  .ar-check-points { grid-column: 1 / -1; text-align: left; padding-left: 34px; }
}


/* AI-Ready Export discovery nudge (2026-04-22). Revealed on successful scan. */
.ar-export-nudge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 20px 0 12px;
    padding: 14px 18px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.08), rgba(37, 99, 235, 0.06));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--gray-800, #1e293b);
}
.ar-export-nudge-body { flex: 1; min-width: 0; }
.ar-export-nudge-body strong { color: var(--accent-700, #1d4ed8); display: inline; margin-right: 6px; }
.ar-export-nudge-body span { color: var(--gray-700, #334155); }
.ar-export-nudge-body code { font-size: 12px; background: var(--gray-100, #f1f5f9); padding: 1px 5px; border-radius: 3px; }
.ar-export-nudge-cta {
    flex: 0 0 auto;
    padding: 8px 14px;
    background: var(--accent-600, #2563eb);
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
}
.ar-export-nudge-cta:hover { background: var(--accent-700, #1d4ed8); color: #fff !important; }
html[data-theme="dark"] .ar-export-nudge {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.1));
    border-color: rgba(59, 130, 246, 0.45);
    color: var(--gray-100, #f1f5f9);
}
html[data-theme="dark"] .ar-export-nudge-body strong { color: #93c5fd; }
html[data-theme="dark"] .ar-export-nudge-body span { color: var(--gray-300, #cbd5e1); }
html[data-theme="dark"] .ar-export-nudge-body code { background: var(--gray-700, #334155); }
@media (max-width: 640px) {
    .ar-export-nudge { flex-direction: column; align-items: flex-start; }
    .ar-export-nudge-cta { align-self: stretch; text-align: center; }
}
/* ── Session 11: Bot Discoverability Grid ─────────────────────────────── */
.ar-bot-section { margin-bottom: 4px; }
.ar-bot-summary { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 12px; margin-bottom: 10px; }
.ar-bot-pill { padding: 3px 10px; border-radius: 12px; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; }
.ar-bot-pill-blocked { background: color-mix(in srgb, #ef4444 15%, transparent); color: #b91c1c; }
.ar-bot-pill-partial  { background: color-mix(in srgb, #f59e0b 15%, transparent); color: #d97706; }
.ar-bot-pill-allowed  { background: color-mix(in srgb, #10b981 15%, transparent); color: #059669; }
.ar-bot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.ar-bot-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--gray-200, #e2e8f0); border-radius: 6px; font-size: 12px; background: var(--bg-color, #fff); }
.ar-bot-row[data-status="blocked"] { border-color: #fca5a5; background: color-mix(in srgb, #ef4444 5%, transparent); }
.ar-bot-row[data-status="partial"] { border-color: #fcd34d; background: color-mix(in srgb, #f59e0b 5%, transparent); }
.ar-bot-icon { font-size: 14px; line-height: 1; flex: none; }
.ar-bot-name { font-weight: 600; color: var(--text-color, #0f172a); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-bot-type { font-size: 10px; padding: 1px 6px; border-radius: 8px; text-transform: uppercase; letter-spacing: .3px; background: var(--gray-100, #f1f5f9); color: var(--gray-500, #64748b); flex: none; }
.ar-bot-type-search    { background: color-mix(in srgb, #6366f1 12%, transparent); color: #4f46e5; }
.ar-bot-type-userQuery { background: color-mix(in srgb, #0ea5e9 12%, transparent); color: #0284c7; }
.ar-bot-type-training  { background: color-mix(in srgb, #f59e0b 12%, transparent); color: #d97706; }
.ar-bot-status { font-size: 14px; flex: none; }
.ar-robots-btn { margin-top: 10px; font-size: 12px; padding: 5px 12px; border: 1px solid var(--gray-300, #cbd5e1); border-radius: 5px; background: var(--bg-color); color: var(--text-color); cursor: pointer; }
.ar-robots-btn:hover { background: var(--gray-100, #f1f5f9); }

/* ── robots.txt viewer dialog ─────────────────────────────────────────── */
#ar-robots-dialog { border: 1px solid var(--gray-200, #e2e8f0); border-radius: 10px; padding: 0; max-width: 760px; width: 96vw; max-height: 80vh; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.15); }
#ar-robots-dialog[open] { display: flex; flex-direction: column; }
#ar-robots-dialog::backdrop { background: rgba(0,0,0,.5); }
.ar-rdlg-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--gray-200, #e2e8f0); }
.ar-rdlg-title { font-size: 14px; font-weight: 600; margin: 0; }
.ar-rdlg-close { background: none; border: none; cursor: pointer; font-size: 18px; color: var(--gray-500); line-height: 1; padding: 0 4px; }
.ar-rdlg-close:hover { color: var(--text-color); }
.ar-rdlg-body { overflow-y: auto; flex: 1; }
.ar-rdlg-pre { margin: 0; padding: 16px 18px; font-family: 'Geist Mono', 'Fira Code', monospace; font-size: 12px; line-height: 1.7; color: var(--text-color); white-space: pre; counter-reset: ln; }
.ar-rdlg-pre .ar-ln { display: block; counter-increment: ln; }
.ar-rdlg-pre .ar-ln::before { content: counter(ln); display: inline-block; width: 2.5em; color: var(--gray-400, #94a3b8); text-align: right; margin-right: 1.2em; user-select: none; font-size: 11px; }
.ar-rdlg-pre .ar-ln-comment { color: var(--gray-400, #94a3b8); }
.ar-rdlg-pre .ar-ln-ua      { color: #6366f1; }
.ar-rdlg-pre .ar-ln-disallow { color: #ef4444; }
.ar-rdlg-pre .ar-ln-allow    { color: #10b981; }
html[data-theme="dark"] #ar-robots-dialog { border-color: var(--gray-700, #334155); }
html[data-theme="dark"] .ar-rdlg-head { border-color: var(--gray-700, #334155); }
html[data-theme="dark"] .ar-bot-row { border-color: var(--gray-700, #334155); }
@media (max-width: 640px) { .ar-bot-grid { grid-template-columns: 1fr 1fr; } }

/* ── Session 12: Agentic Readiness sub-checks ───────────────────────── */
.ar-sub-checks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ar-sub-check { display: flex; align-items: flex-start; gap: 8px; padding: 6px 10px; border-radius: 5px; font-size: 12px; }
.ar-sub-check-pass { background: color-mix(in srgb, #10b981 7%, transparent); }
.ar-sub-check-warn { background: color-mix(in srgb, #f59e0b 7%, transparent); }
.ar-sub-check-fail { background: color-mix(in srgb, #ef4444 7%, transparent); }
.ar-sub-icon { font-size: 13px; font-weight: 700; flex: none; margin-top: 1px; line-height: 1.4; }
.ar-sub-check-pass .ar-sub-icon { color: #059669; }
.ar-sub-check-warn .ar-sub-icon { color: #d97706; }
.ar-sub-check-fail .ar-sub-icon { color: #dc2626; }
.ar-sub-body { flex: 1; line-height: 1.5; color: var(--text-color); }
html[data-theme="dark"] .ar-sub-check { border: 1px solid transparent; }


/* ── Phase H S2: Quick Wins panel ───────────────────────────────────────── */
.ar-quick-wins { margin: 0 0 24px; padding: 18px 22px; background: linear-gradient(135deg, #fff7ed 0%, #fefce8 100%); border: 1px solid #fed7aa; border-radius: 12px; }
.ar-qw-title { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: #9a3412; }
.ar-qw-sub { margin: 0 0 14px; font-size: 12px; color: #7c2d12; line-height: 1.5; }
.ar-qw-list { list-style: none; counter-reset: qw; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ar-qw-item { counter-increment: qw; position: relative; padding: 12px 14px 12px 56px; background: rgba(255,255,255,.85); border: 1px solid #fed7aa; border-radius: 8px; }
.ar-qw-item::before { content: counter(qw); position: absolute; top: 12px; left: 14px; width: 28px; height: 28px; line-height: 28px; text-align: center; background: #ea580c; color: #fff; border-radius: 50%; font-weight: 700; font-size: 13px; }
.ar-qw-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.ar-qw-label { font-size: 13px; font-weight: 600; color: #1f2937; }
.ar-qw-impact { font-size: 10px; padding: 2px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.4px; font-weight: 700; }
.ar-qw-impact-critical { background: #fee2e2; color: #b91c1c; }
.ar-qw-impact-high     { background: #fed7aa; color: #c2410c; }
.ar-qw-impact-moderate { background: #fef3c7; color: #b45309; }
.ar-qw-impact-low      { background: #e0e7ff; color: #4338ca; }
.ar-qw-impact-minimal  { background: #f3f4f6; color: #6b7280; }
.ar-qw-evidence { margin: 0 0 4px; font-size: 12px; color: #4b5563; line-height: 1.55; }
.ar-qw-why { margin: 4px 0 0; font-size: 11.5px; color: #374151; line-height: 1.55; }
.ar-qw-empty { font-size: 13px; color: #6b7280; text-align: center; padding: 12px; font-style: italic; }
html[data-theme="dark"] .ar-quick-wins { background: linear-gradient(135deg, rgba(154,52,18,.12), rgba(217,119,6,.08)); border-color: rgba(251,146,60,.3); }
html[data-theme="dark"] .ar-qw-title { color: #fdba74; }
html[data-theme="dark"] .ar-qw-sub { color: #fed7aa; }
html[data-theme="dark"] .ar-qw-item { background: rgba(31,41,55,.6); border-color: rgba(251,146,60,.3); }
html[data-theme="dark"] .ar-qw-label { color: #f3f4f6; }
html[data-theme="dark"] .ar-qw-evidence { color: #d1d5db; }
html[data-theme="dark"] .ar-qw-why { color: #e5e7eb; }


/* ── Phase H S3: Score trend chart ──────────────────────────────────────── */
.ar-trend { margin: 0 0 24px; padding: 14px 18px; background: var(--bg-color, #fff); border: 1px solid var(--gray-200, #e5e7eb); border-radius: 10px; }
.ar-trend-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.ar-trend-title { margin: 0; font-size: 13px; font-weight: 600; color: var(--text-color, #1f2937); }
.ar-trend-meta { font-size: 11.5px; color: var(--gray-500, #6b7280); }
.ar-trend-svg { width: 100%; height: 80px; display: block; }
html[data-theme="dark"] .ar-trend { background: var(--bg-color, #0f172a); border-color: var(--gray-700, #334155); }


/* ── Phase H S4b: Live Agent Probe panel ───────────────────────────────── */
.ar-live-probe { margin: 0 0 24px; padding: 18px 22px; background: linear-gradient(135deg, #f0f9ff 0%, #ede9fe 100%); border: 1px solid #c7d2fe; border-radius: 12px; }
.ar-lp-head { margin-bottom: 14px; }
.ar-lp-title { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: #312e81; display: flex; align-items: center; gap: 10px; }
.ar-lp-tier { font-size: 9px; padding: 2px 7px; border-radius: 10px; background: #6366f1; color: #fff; font-weight: 700; letter-spacing: 0.5px; }
.ar-lp-sub { margin: 0; font-size: 12.5px; color: #4338ca; line-height: 1.5; }
.ar-lp-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ar-lp-label { font-size: 13px; color: #312e81; font-weight: 500; }
.ar-lp-select { min-width: 240px; padding: 7px 10px; border: 1px solid #c7d2fe; border-radius: 6px; background: #fff; color: #1e293b; font-size: 13px; }
.ar-lp-progress, .ar-lp-result { margin-top: 14px; padding: 14px; background: rgba(255,255,255,.7); border: 1px solid #c7d2fe; border-radius: 8px; }
.ar-lp-loading { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #4338ca; }
.ar-lp-spinner { width: 14px; height: 14px; border: 2px solid #c7d2fe; border-top-color: #6366f1; border-radius: 50%; animation: arLpSpin .9s linear infinite; }
@keyframes arLpSpin { to { transform: rotate(360deg); } }
.ar-lp-error { font-size: 13px; color: #b91c1c; padding: 8px 12px; background: #fee2e2; border-radius: 6px; }
.ar-lp-result-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid #e0e7ff; margin-bottom: 12px; }
.ar-lp-verdict { font-size: 15px; font-weight: 700; padding: 6px 14px; border-radius: 8px; }
.ar-lp-verdict-success { background: #d1fae5; color: #047857; }
.ar-lp-verdict-fail { background: #fee2e2; color: #b91c1c; }
.ar-lp-meta { font-size: 12px; color: #475569; }
.ar-lp-path-wrap { margin: 14px 0; }
.ar-lp-path-wrap > summary { font-size: 13px; font-weight: 600; cursor: pointer; color: #4338ca; padding: 6px 0; }
.ar-lp-path { list-style: none; counter-reset: hop; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 8px; }
.ar-lp-step { counter-increment: hop; position: relative; padding: 10px 14px 10px 44px; background: #fff; border: 1px solid #e0e7ff; border-radius: 6px; }
.ar-lp-step::before { content: counter(hop); position: absolute; top: 12px; left: 12px; width: 22px; height: 22px; line-height: 22px; text-align: center; background: #6366f1; color: #fff; border-radius: 50%; font-weight: 700; font-size: 11px; }
.ar-lp-step-goal { background: linear-gradient(135deg, #d1fae5 0%, #fff 100%); border-color: #6ee7b7; }
.ar-lp-step-gaveup, .ar-lp-step-invalid { background: linear-gradient(135deg, #fee2e2 0%, #fff 100%); border-color: #fca5a5; }
.ar-lp-step-url { font-family: 'Geist Mono', 'Fira Code', monospace; font-size: 11.5px; color: #6366f1; word-break: break-all; }
.ar-lp-step-title { font-size: 13px; font-weight: 600; color: #1e293b; margin-top: 2px; }
.ar-lp-step-reasoning { font-size: 12.5px; color: #475569; margin-top: 4px; line-height: 1.55; }
.ar-lp-findings h4 { font-size: 14px; font-weight: 700; color: #312e81; margin: 14px 0 10px; }
.ar-lp-finding { margin: 0 0 8px; padding: 12px 14px; background: #fff; border: 1px solid #e0e7ff; border-left: 4px solid #6366f1; border-radius: 6px; }
.ar-lp-sev-critical { border-left-color: #ef4444; }
.ar-lp-sev-warning  { border-left-color: #f59e0b; }
.ar-lp-sev-pass     { border-left-color: #10b981; }
.ar-lp-finding-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.ar-lp-sev { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 5px; letter-spacing: 0.5px; }
.ar-lp-sev-critical .ar-lp-sev { background: #fee2e2; color: #b91c1c; }
.ar-lp-sev-warning .ar-lp-sev  { background: #fef3c7; color: #b45309; }
.ar-lp-sev-pass .ar-lp-sev     { background: #d1fae5; color: #047857; }
.ar-lp-cat { font-size: 13px; font-weight: 600; color: #1e293b; }
.ar-lp-finding-detail { margin: 0; font-size: 12.5px; color: #475569; line-height: 1.55; }
html[data-theme="dark"] .ar-live-probe { background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(139,92,246,.08)); border-color: rgba(99,102,241,.3); }
html[data-theme="dark"] .ar-lp-title, html[data-theme="dark"] .ar-lp-sub, html[data-theme="dark"] .ar-lp-label, html[data-theme="dark"] .ar-lp-loading { color: #c7d2fe; }
html[data-theme="dark"] .ar-lp-progress, html[data-theme="dark"] .ar-lp-result { background: rgba(15,23,42,.6); border-color: rgba(99,102,241,.3); }
html[data-theme="dark"] .ar-lp-step, html[data-theme="dark"] .ar-lp-finding { background: rgba(30,41,59,.6); border-color: rgba(99,102,241,.3); }
html[data-theme="dark"] .ar-lp-step-title, html[data-theme="dark"] .ar-lp-cat { color: #e0e7ff; }
html[data-theme="dark"] .ar-lp-step-reasoning, html[data-theme="dark"] .ar-lp-finding-detail, html[data-theme="dark"] .ar-lp-meta { color: #cbd5e1; }

/* 2026-05-05 Visual Layer — screenshot panel */
.ar-screenshot { margin: 24px 0 16px; padding: 16px; border: 1px solid var(--ar-border, #e5e7eb); border-radius: 8px; background: var(--ar-card-bg, #fafafa); }
.ar-section-title { margin: 0 0 4px; font-size: 16px; font-weight: 600; color: var(--ar-text, #111827); }
.ar-section-sub { margin: 0 0 12px; font-size: 13px; color: var(--ar-text-muted, #6b7280); }
.ar-screenshot-frame { position: relative; max-width: 100%; overflow: hidden; border: 1px solid var(--ar-border, #e5e7eb); border-radius: 6px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.ar-screenshot-frame img { display: block; width: 100%; height: auto; max-height: 600px; object-fit: cover; object-position: top; }
.ar-screenshot-meta { margin-top: 10px; font-size: 12px; color: var(--ar-text-muted, #6b7280); line-height: 1.6; }
.ar-screenshot-meta code { background: rgba(0,0,0,0.05); padding: 1px 4px; border-radius: 3px; font-size: 11px; }
[data-theme="dark"] .ar-screenshot { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .ar-screenshot-frame { border-color: rgba(255,255,255,0.1); background: #1a1a1a; }
[data-theme="dark"] .ar-screenshot-meta code { background: rgba(255,255,255,0.08); }

/* 2026-05-05 Phase H+3 — full_audit per-task sections */
.ar-lp-task-section { margin: 14px 0; padding: 12px; background: rgba(255,255,255,0.5); border: 1px solid #c7d2fe; border-radius: 6px; }
.ar-lp-task-summary { cursor: pointer; font-size: 13px; color: #312e81; padding: 4px 0; user-select: none; }
.ar-lp-task-summary strong { color: #1e1b4b; }
.ar-lp-task-meta { font-size: 11px; color: #6366f1; font-weight: 400; margin-left: 8px; }
.ar-lp-task-path { margin-top: 10px; }
.ar-lp-task-path h5 { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: #4338ca; text-transform: uppercase; letter-spacing: 0.5px; }
[data-theme="dark"] .ar-lp-task-section { background: rgba(255,255,255,0.05); border-color: rgba(199,210,254,0.2); }
[data-theme="dark"] .ar-lp-task-summary, [data-theme="dark"] .ar-lp-task-summary strong { color: #c7d2fe; }
[data-theme="dark"] .ar-lp-task-meta { color: #818cf8; }
