/* Agent Skill & MCP Scanner. Light theme, 2px outlines, severity colours shared with the other desks. */
.as { --c-crit: #b91c1c; --c-crit-bg: #fef2f2; --c-high: #c2410c; --c-high-bg: #fff7ed; --c-med: #a16207; --c-med-bg: #fefce8; --c-low: #475569; --c-low-bg: #f8fafc; }
.as .sp-stage { padding: 12px; gap: 10px; }
.as-split { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 12px; }
@media (max-width: 959px) { .as-split { grid-template-columns: 1fr; } }
.as-pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 8px; border: 2px solid var(--ax-line); border-radius: 14px; background: #fff; padding: 12px; }
.as-k { font-family: var(--ax-mono); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ax-dim); }
.as-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.as-chip { min-height: 32px; padding: 3px 11px; border: 2px solid var(--ax-line); border-radius: 999px; background: #fff; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--ax-ink); cursor: pointer; }
.as-chip:hover { border-color: var(--ax-accent); }
.as-chip[aria-pressed="true"] { border-color: var(--ax-accent); background: #ecfdf5; color: #065f46; }
.as-snote { margin: 0; min-height: 18px; font-size: 12.5px; color: var(--ax-muted); overflow-wrap: break-word; }
.as-src-in { flex: 1 1 auto; min-height: 220px; width: 100%; resize: vertical; border: 2px solid var(--ax-line); border-radius: 12px; padding: 10px 12px; font-family: var(--ax-mono); font-size: 12.5px; line-height: 1.55; color: var(--ax-ink); background: #fcfdfe; }
.as-src-in:focus { outline: none; border-color: var(--ax-accent); }
.as-btns { display: flex; gap: 6px; align-items: center; }
.as-btn { display: inline-flex; align-items: center; min-height: 34px; padding: 4px 12px; border: 2px solid var(--ax-line); border-radius: 10px; background: #fff; font: inherit; font-size: 13px; font-weight: 700; color: var(--ax-ink); cursor: pointer; }
.as-btn:hover { border-color: var(--ax-accent); }
.as-btn input { display: none; }
.as-btn { white-space: nowrap; }
@media (max-width: 640px) { .as-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .as-chip { flex: none; } .as-priv { display: none; } }
.as-priv { margin-left: auto; font-size: 12px; color: var(--ax-muted); }

/* Result head: file kind and one button per category, coloured by its worst finding */
.as-kind { font-family: var(--ax-mono); font-size: 12px; color: var(--ax-muted); }
.as-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.as-cat { display: flex; align-items: center; gap: 7px; min-height: 36px; padding: 4px 10px; border: 2px solid var(--ax-line); border-radius: 10px; background: #fff; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--ax-ink); cursor: pointer; text-align: left; transition: transform .15s; }
.as-cat svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.as-cat span { flex: 1; min-width: 0; }
.as-cat b { font-family: var(--ax-mono); }
.as-cat:disabled { cursor: default; color: var(--ax-muted); background: #f8fafc; }
.as-cat:not(:disabled):hover { transform: translateY(-1px); }
.as-cat.w-critical { border-color: var(--c-crit); background: var(--c-crit-bg); color: var(--c-crit); }
.as-cat.w-high { border-color: var(--c-high); background: var(--c-high-bg); color: var(--c-high); }
.as-cat.w-medium { border-color: var(--c-med); background: var(--c-med-bg); color: var(--c-med); }
.as-cat.w-low { border-color: #94a3b8; }
.as-rtabs { display: flex; gap: 6px; }
.as-rtabs button { min-height: 32px; padding: 3px 12px; border: 2px solid var(--ax-line); border-radius: 999px; background: #fff; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; color: var(--ax-ink); }
.as-rtabs button[aria-selected="true"] { background: var(--ax-ink); border-color: var(--ax-ink); color: #fff; }
.as-body { flex: 1 1 auto; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 6px; }

/* Findings: one line each, details fold open */
.as-f { border: 2px solid var(--ax-line); border-radius: 10px; background: #fff; }
.as-f.is-flash, mark.is-flash { animation: asFlash 1.4s ease-out; }
@keyframes asFlash { 0%, 40% { box-shadow: 0 0 0 3px rgba(16,185,129,.45); } 100% { box-shadow: none; } }
.as-f-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 5px 10px; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.as-sev { flex: none; min-width: 64px; text-align: center; font-family: var(--ax-mono); font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 2px 6px; border-radius: 999px; }
.s-critical .as-sev { background: var(--c-crit); color: #fff; }
.s-high .as-sev { background: var(--c-high); color: #fff; }
.s-medium .as-sev { background: #fde68a; color: #713f12; }
.s-low .as-sev { background: #e2e8f0; color: #334155; }
.as-f-t { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 700; color: var(--ax-ink); overflow-wrap: break-word; }
.as-f-l { flex: none; font-family: var(--ax-mono); font-size: 11.5px; color: var(--ax-muted); }
.as-f-det { padding: 0 12px 10px 84px; display: grid; gap: 5px; font-size: 13px; line-height: 1.5; color: var(--ax-text); animation: asIn .2s ease-out; }
.as-f-det[hidden] { display: none; }
@keyframes asIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.as-f-det p { margin: 0; overflow-wrap: break-word; }
.as-ev { display: block; padding: 5px 8px; border-radius: 6px; background: #f1f5f9; font-family: var(--ax-mono); font-size: 12px; overflow-wrap: break-word; white-space: pre-wrap; }
.as-meta { font-family: var(--ax-mono); font-size: 11.5px; color: var(--ax-muted); }
.as-jump { border: 0; background: none; padding: 0; font: inherit; color: var(--ax-accent); text-decoration: underline; cursor: pointer; }
.as-f.is-open { border-color: #94a3b8; }
@media (max-width: 640px) { .as-f-det { padding-left: 12px; } }

.as-hidden { border: 2px solid var(--c-crit); border-radius: 10px; background: var(--c-crit-bg); padding: 8px 10px; display: grid; gap: 6px; }
.as-hidden-k { display: flex; align-items: center; gap: 6px; font-family: var(--ax-mono); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c-crit); }
.as-hidden-k svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.as-hidden-row { display: grid; gap: 2px; }
.as-hidden-row span { font-size: 11.5px; color: var(--ax-muted); }
.as-hidden-row code { font-family: var(--ax-mono); font-size: 12.5px; color: #7f1d1d; overflow-wrap: break-word; white-space: pre-wrap; }
.as-clean { padding: 10px 12px; border: 2px solid #6ee7b7; border-radius: 10px; background: #ecfdf5; font-size: 13.5px; color: #065f46; }
.as-empty { margin: 0; padding: 18px; text-align: center; color: var(--ax-muted); }

/* Annotated source */
.as-src { font-family: var(--ax-mono); font-size: 12px; line-height: 1.6; border: 2px solid var(--ax-line); border-radius: 10px; background: #fcfdfe; }
.as-ln { display: grid; grid-template-columns: 40px minmax(0, 1fr); }
.as-g { padding-right: 8px; text-align: right; color: #94a3b8; border-right: 1px solid var(--ax-line); user-select: none; }
.as-c { padding: 0 10px; white-space: pre-wrap; overflow-wrap: break-word; color: var(--ax-ink); }
.as-src mark { border-radius: 3px; cursor: pointer; padding: 0 1px; }
.as-src mark.m-critical { background: #fecaca; box-shadow: inset 0 -2px 0 var(--c-crit); }
.as-src mark.m-high { background: #fed7aa; box-shadow: inset 0 -2px 0 var(--c-high); }
.as-src mark.m-medium { background: #fef08a; }
.as-src mark.m-low { background: #e2e8f0; }
.as-inv { font-style: normal; color: #b91c1c; background: #fee2e2; outline: 1px dashed #f87171; }
.as-zw { font-style: normal; color: #b91c1c; font-weight: 800; }

/* Left counters */
.as-counters { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 6px; }
.as-grade, .as-cnt { display: flex; flex-direction: column; justify-content: center; min-height: 64px; padding: 6px 10px; border: 2px solid var(--ax-line); border-radius: 12px; background: #fff; }
.as-grade b { font-size: 30px; line-height: 1; font-weight: 800; }
.as-grade span, .as-cnt span { font-size: 11.5px; color: var(--ax-muted); }
.as-cnt b { font-size: 22px; line-height: 1.1; font-weight: 800; font-family: var(--ax-mono); }
.as-grade.g-A { border-color: #6ee7b7; background: #ecfdf5; color: #065f46; }
.as-grade.g-B { border-color: #fde68a; background: #fefce8; color: #713f12; }
.as-grade.g-C, .as-grade.g-D { border-color: #fdba74; background: #fff7ed; color: #9a3412; }
.as-grade.g-F { border-color: #fca5a5; background: #fef2f2; color: #991b1b; }
.as-cnt b.s-critical { color: var(--c-crit); }
.as-cnt b.s-high { color: var(--c-high); }
@media (prefers-reduced-motion: reduce) { .as-f-det, .as-f.is-flash, mark.is-flash { animation: none; } .as-cat { transition: none; } }
