/* AURA Pentest: the scan form, the progress card and the findings. Colours come from the theme tokens. */
.pt-page { display: grid; gap: 18px; }
.pt-page .page-head { margin-bottom: 0; }
.pt-form { display: grid; gap: 16px; }
.pt-form .field { margin: 0; }
.pt-engines { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.pt-engine { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--aura-color-border-strong); border-radius: var(--r-field); background: var(--aura-color-bg-surface); cursor: pointer; }
.pt-engine:has(input:checked) { border-color: var(--aura-color-brand-solid); box-shadow: 0 0 0 1px var(--aura-color-brand-solid); }
.pt-engine:has(input:disabled) { opacity: .5; cursor: default; }
.pt-engine input { margin-top: 3px; accent-color: var(--aura-color-brand-solid); }
.pt-engine span { display: grid; gap: 1px; font-size: 13.5px; line-height: 1.4; }
.pt-engine b { font-family: var(--aura-font-family-mono); font-size: 13px; color: var(--aura-color-text-heading); }
.pt-engine small { color: var(--aura-color-text-muted); }
.pt-engines-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pt-engines-head .btn-link { font-size: 13px; }
.pt-auth { padding: 14px 16px; border-radius: var(--r-inner); background: var(--aura-color-status-attention-subtle); }
.pt-auth .check { align-items: flex-start; font-size: 14.5px; }
.pt-auth input { margin-top: 3px; }
.pt-progress { text-align: center; display: grid; justify-items: center; gap: 8px; padding: 32px 24px; }
.pt-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.pt-sev { display: grid; gap: 2px; text-align: center; padding: 14px 10px; opacity: .55; }
.pt-sev.has { opacity: 1; }
.pt-sev b { font: 800 28px/1 var(--aura-font-family-display); color: var(--aura-color-text-heading); }
.pt-sev span { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--aura-color-text-muted); }
.pt-sev-critical.has b, .pt-sev-high.has b { color: var(--aura-color-status-critical-fg); }
.pt-sev-medium.has b { color: var(--aura-color-status-attention-fg); }
.pt-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-filter .btn.is-on:not(.btn-primary):not(.btn-plain):not(.btn-link) { background: var(--nav-active-bg); border-color: transparent; color: var(--nav-active-fg); }
.pt-list { display: grid; gap: 8px; }
.pt-item { border: 1px solid var(--hairline); border-radius: var(--r-inner); background: var(--aura-color-bg-surface); }
.pt-item[hidden] { display: none; }
.pt-item > summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; }
.pt-item > summary::-webkit-details-marker { display: none; }
.pt-item > summary b { flex: 1; min-width: 0; font-size: 15px; color: var(--aura-color-text-heading); }
.pt-item > summary small { color: var(--aura-color-text-muted); font-size: 12.5px; white-space: nowrap; }
.pt-item > summary .chev { width: 16px; height: 16px; transition: transform .2s; }
.pt-item[open] > summary .chev { transform: rotate(180deg); }
.pt-item-body { padding: 0 14px 14px; font-size: 14.5px; line-height: 1.55; }
.pt-item-body h4 { margin: 12px 0 4px; font: 800 12px/1 var(--aura-font-family-display); letter-spacing: .08em; text-transform: uppercase; color: var(--aura-color-text-muted); }
.pt-item-body p { margin: 0; }
.pt-item-body pre { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--aura-color-code-bg); color: var(--aura-color-code-fg); font: 12.5px/1.5 var(--aura-font-family-mono); white-space: pre-wrap; word-break: break-word; max-height: 260px; overflow: auto; }
.an-sev-critical { background: var(--aura-color-status-critical-solid); color: var(--on-status); }
.an-sev-info { background: var(--aura-color-bg-sunken); color: var(--aura-color-text-muted); }
.pt-mine { display: grid; gap: 8px; }
.pt-mine a { display: flex; align-items: center; gap: 12px; color: var(--aura-color-text-default); }
.pt-mine a:hover { text-decoration: none; }
.pt-mine a > span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pt-mine b { color: var(--aura-color-text-heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-mine small { color: var(--aura-color-text-muted); font-size: 13px; }
@media (max-width: 760px) { .pt-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pt-item > summary { flex-wrap: wrap; } .pt-item > summary small { white-space: normal; } }

/* Hero with the scan form on the first screen, like /speed and /plan (7 Oct 2026) */
.pt-hero.is-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: start; text-align: left; min-height: 0; }
.pt-hero.is-stage .front-copy { padding-top: clamp(16px, 5vh, 56px); }
.pt-points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.pt-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--aura-color-text-muted); }
.pt-points li .icon { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--aura-color-brand-fg); }
.pt-points b { color: var(--aura-color-text-heading); font-weight: 700; }
.pt-stage { position: relative; padding-top: 92px; scroll-margin-top: 80px; }
.pt-stage .pt-form-hero { margin: 0; box-shadow: 0 24px 60px rgba(0, 0, 0, .14); }
.pt-aurai { position: absolute; right: 18px; top: 0; z-index: 2; pointer-events: none; }
.pt-aurai .aurai { display: flex; flex-direction: row-reverse; align-items: center; gap: 10px; }
.pt-aurai .aurai-img, .pt-aurai .aurai.is-lg .aurai-img { height: 104px; width: auto; }
.pt-aurai .aurai-say { margin: 0; max-width: 200px; font-size: 13.5px; }
.pt-aurai .aurai-say::before { left: auto; right: -8px; bottom: auto; top: 50%; margin-top: -7px; transform: rotate(-135deg); }
.pt-down { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: var(--aura-color-status-attention-subtle); color: var(--aura-color-status-attention-fg); font-size: 13.5px; }
.pt-down .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.pt-more { margin: 4px 0 14px; }
.pt-more > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 600; color: var(--aura-color-brand-fg); }
.pt-more > summary .icon { width: 16px; height: 16px; }
.pt-more[open] > summary { margin-bottom: 12px; }
@media (max-width: 900px) {
  .pt-hero.is-stage { grid-template-columns: 1fr; gap: 20px; }
  .pt-hero.is-stage .front-copy { padding-top: 0; }
  .pt-points { display: none; }
  .pt-stage { padding-top: 0; }
  .pt-aurai { display: none; }
}

/* "Unlock deeper checks": ownership proof, folded until needed (7 Oct 2026) */
.pt-verify { padding: 0; overflow: hidden; }
.pt-verify > summary { display: flex; align-items: center; gap: 14px; padding: 18px 22px; cursor: pointer; list-style: none; }
.pt-verify > summary::-webkit-details-marker { display: none; }
.pt-verify-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--aura-color-brand-subtle); color: var(--aura-color-brand-fg); }
.pt-verify-ico .icon { width: 22px; height: 22px; }
.pt-verify-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pt-verify-t b { font: 700 16.5px var(--aura-font-family-display); color: var(--aura-color-text-heading); }
.pt-verify-t small { font-size: 13.5px; color: var(--aura-color-text-muted); }
.pt-verified { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pt-verified .tag .icon { width: 12px; height: 12px; }
.pt-verify > summary .chev { flex: none; width: 18px; height: 18px; color: var(--aura-color-text-muted); transition: transform .2s; }
.pt-verify[open] > summary .chev { transform: rotate(180deg); }
.pt-verify-body { display: grid; gap: 12px; padding: 0 22px 22px 80px; }
.pt-vform { display: flex; gap: 8px; align-items: center; max-width: 620px; margin: 0; }
.pt-vfield { position: relative; flex: 1; min-width: 0; margin: 0; }
.pt-vfield > .icon { position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--aura-color-text-muted); pointer-events: none; }
.pt-vfield input { width: 100%; min-height: 46px; padding-left: 40px; }
.pt-vform .btn { flex: none; min-height: 46px; }
.pt-vhint { margin: -4px 0 0; }
.pt-vstate { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 0; }
.pt-vpick { margin: 0; font-size: 14px; }
.pt-verify-body .pt-methods { list-style: none; counter-reset: ptm; margin: 0; padding: 0; display: grid; gap: 10px; }
.pt-verify-body .pt-methods li { counter-increment: ptm; position: relative; padding: 14px 16px 14px 52px; border: 1px solid var(--aura-color-border-default); border-radius: 14px; background: var(--aura-color-bg-surface); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.pt-verify-body .pt-methods li::before { content: counter(ptm); position: absolute; left: 14px; top: 14px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--aura-color-brand-subtle); color: var(--aura-color-brand-fg); font: 700 13px/1 var(--aura-font-family-display); }
.pt-verify-body .pt-methods code { padding: 2px 6px; border-radius: 6px; background: var(--aura-color-bg-sunken); font-size: 12.5px; }
.pt-verify-body .research-actions { margin: 4px 0 0; }
.pt-verify-body > .hint .icon { width: 14px; height: 14px; vertical-align: -2px; }
@media (max-width: 640px) {
  .pt-verify > summary { padding: 16px; }
  .pt-verify-body { padding: 0 16px 18px; }
  .pt-vform { flex-direction: column; align-items: stretch; }
}
.pt-verify-body > .hint { display: flex; align-items: center; gap: 6px; margin: 0; }
.pt-verify-body .pt-methods .btn-link + .btn-link { margin-left: 12px; }

/* ============================================================ results dashboard (14 Oct 2026)
   A premium, honest results view. No security score and no "secure" claim (spec §6.1, §11.4); bars over donuts;
   colour is always paired with a severity label. */
.pt-dash { display: grid; gap: 16px; }
.pt-dash .card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }

/* posture banner */
.pt-posture { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-left: 4px solid var(--hairline); }
.pt-posture-critical { border-left-color: var(--sev-critical); } .pt-posture-high { border-left-color: var(--sev-high); }
.pt-posture-medium { border-left-color: var(--sev-medium); } .pt-posture-low { border-left-color: var(--sev-low); }
.pt-posture-info, .pt-posture-none { border-left-color: var(--aura-color-status-healthy-fg, #2e9e6b); }
.pt-posture-main { display: flex; align-items: center; gap: 16px; min-width: 0; }
.pt-posture-ico { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--aura-color-bg-sunken); color: var(--aura-color-text-heading); }
.pt-posture-ico .icon { width: 26px; height: 26px; }
.pt-posture-critical .pt-posture-ico, .pt-posture-high .pt-posture-ico { background: var(--aura-color-status-critical-subtle); color: var(--aura-color-status-critical-fg); }
.pt-posture-medium .pt-posture-ico { background: var(--aura-color-status-attention-subtle); color: var(--aura-color-status-attention-fg); }
.pt-posture-t { margin: 0; font: 800 20px/1.2 var(--aura-font-family-display); color: var(--aura-color-text-heading); }
.pt-posture-n { margin: 4px 0 0; color: var(--aura-color-text-muted); font-size: 14.5px; max-width: 54ch; }
.pt-meta { display: grid; grid-auto-flow: column; gap: 22px; margin: 0; }
.pt-meta div { display: grid; gap: 2px; }
.pt-meta dt { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--aura-color-text-muted); }
.pt-meta dd { margin: 0; font-size: 14px; color: var(--aura-color-text-heading); }

/* KPI cards */
.pt-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pt-kpi { display: grid; gap: 3px; text-align: left; padding: 16px 18px; border: 1px solid var(--hairline); border-radius: var(--r-inner); background: var(--aura-color-bg-surface); color: inherit; font: inherit; }
button.pt-kpi { cursor: pointer; transition: border-color var(--aura-duration-fast), box-shadow var(--aura-duration-fast), transform var(--aura-duration-fast); }
button.pt-kpi:hover:not(:disabled) { border-color: var(--aura-color-border-strong); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
button.pt-kpi:disabled { cursor: default; }
.pt-kpi-n { font: 800 32px/1 var(--aura-font-family-display); color: var(--aura-color-text-heading); }
.pt-kpi-priority.is-hot .pt-kpi-n { color: var(--aura-color-status-critical-fg); }
.pt-kpi-review.is-warn .pt-kpi-n { color: var(--aura-color-status-attention-fg); }
.pt-kpi-l { font-size: 14px; font-weight: 700; color: var(--aura-color-text-heading); }
.pt-kpi-d { font-size: 12.5px; color: var(--aura-color-text-muted); }

/* chart + coverage two-up */
.pt-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.pt-chart .card-head { margin-bottom: 14px; }
.pt-bar { display: flex; height: 16px; border-radius: 999px; overflow: hidden; background: var(--aura-color-bg-sunken); }
.pt-seg { height: 100%; min-width: 3px; flex: 1 1 0; }   /* equal shares until pentest.js applies the real data-w widths */
.pt-seg[style] { flex: 0 0 auto; }
.pt-seg-critical, .pt-dot.pt-seg-critical { background: var(--sev-critical); }
.pt-seg-high, .pt-dot.pt-seg-high { background: var(--sev-high); }
.pt-seg-medium, .pt-dot.pt-seg-medium { background: var(--sev-medium); }
.pt-seg-low, .pt-dot.pt-seg-low { background: var(--sev-low); }
.pt-legend { display: flex; flex-wrap: wrap; gap: 14px 20px; margin: 16px 0 0; padding: 0; list-style: none; }
.pt-legend li { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--aura-color-text-heading); }
.pt-legend li.is-zero { opacity: .45; }
.pt-legend b { font-weight: 800; }
.pt-legend span:last-child { color: var(--aura-color-text-muted); }
.pt-dot { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.pt-cover-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pt-cover-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--aura-color-text-muted); }
.pt-cover-list .icon { flex: none; width: 17px; height: 17px; margin-top: 1px; color: var(--aura-color-text-muted); }
.pt-cover-list .icon.is-ok { color: var(--aura-color-status-healthy-fg, #2e9e6b); }
.pt-cover-list .icon.is-warn { color: var(--aura-color-status-attention-fg); }

/* actionable list: location line */
.pt-loc { display: flex; align-items: center; gap: 6px; }
.pt-loc .icon { width: 15px; height: 15px; flex: none; color: var(--aura-color-text-muted); }
.pt-more-note { margin: 10px 0 0; }

/* informational, folded */
.pt-info { padding: 0; }
.pt-info > summary { display: flex; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; list-style: none; }
.pt-info > summary::-webkit-details-marker { display: none; }
.pt-info-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--aura-color-bg-sunken); color: var(--aura-color-text-muted); }
.pt-info-ico .icon { width: 20px; height: 20px; }
.pt-info-t { flex: 1; min-width: 0; display: grid; gap: 1px; }
.pt-info-t b { color: var(--aura-color-text-heading); font: 700 16px var(--aura-font-family-display); }
.pt-info-t small { color: var(--aura-color-text-muted); font-size: 13px; }
.pt-info > summary .chev { flex: none; width: 18px; height: 18px; color: var(--aura-color-text-muted); transition: transform .2s; }
.pt-info[open] > summary .chev { transform: rotate(180deg); }
.pt-info-body { padding: 0 20px 20px; }
.pt-info-body .hint { margin: 0 0 14px; }
.pt-grp-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pt-grp-list > li { padding: 12px 14px; border: 1px solid var(--hairline); border-radius: var(--r-inner); background: var(--aura-color-bg-surface); }
.pt-grp-head { display: flex; align-items: center; gap: 10px; }
.pt-grp-head b { flex: 1; min-width: 0; color: var(--aura-color-text-heading); font-size: 14.5px; overflow-wrap: anywhere; }
.pt-grp-head small { color: var(--aura-color-text-muted); font: 12.5px var(--aura-font-family-mono); }
.pt-grp-ex { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.pt-grp-ex code { font-size: 12px; color: var(--aura-color-text-muted); overflow-wrap: anywhere; }

/* severity scale: critical dark red, high red-orange, medium amber, low blue (spec §6.1) */
.pt-dash, .pt-posture { --sev-critical: var(--aura-color-status-critical-solid, #b4232a); --sev-high: #e05d38; --sev-medium: var(--aura-color-status-attention-fg, #d9960f); --sev-low: #2f6bd0; }

@media (max-width: 860px) {
  .pt-grid { grid-template-columns: 1fr; }
  .pt-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-posture { gap: 16px; }
  .pt-meta { grid-auto-flow: row; gap: 10px; }
}
@media (max-width: 460px) { .pt-kpis { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { button.pt-kpi, .pt-info > summary .chev, .pt-item > summary .chev { transition: none; } button.pt-kpi:hover:not(:disabled) { transform: none; } }

/* "Go deeper with AURA" on the results dashboard (14 Oct 2026) */
.pt-static-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
