/* The project scanner page. Built on the site's own tokens (as-built.css), no other stylesheet. */

.ps-hero { padding-block: calc(var(--sec) * 0.9) 24px; }
.ps-hero .ab-h1 { max-width: none; margin-top: 14px; }
.ps-hero .ab-lede { margin-top: 20px; }
.ps-hero .ps-hero-cta { justify-content: flex-start; margin-top: 22px; }
.ps-reads { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 18px 0 0; }
.ps-reads-k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
html[lang="ar"] .ps-reads-k { font-family: inherit; font-size: 13.5px; letter-spacing: 0; text-transform: none; font-weight: 600; }
.ps-reads ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ps-reads li { padding: 5px 13px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; color: var(--fg-2); background: var(--bg-2); }
.ps-private { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: var(--r); font-size: 14px; color: var(--fg); background: var(--bg-2); }
.ps-private::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); flex: none; }

.ps-tool { padding-block: 24px var(--sec); }
.ps-drop { position: relative; max-width: 680px; margin-inline: auto; border: 1px solid rgba(111, 216, 179, 0.28); border-radius: 20px; background: radial-gradient(560px circle at 50% 0%, rgba(111, 216, 179, 0.1), transparent 62%), linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07) inset, 0 24px 56px -34px rgba(0, 0, 0, 0.85); padding: clamp(24px, 3.2vw, 34px) clamp(20px, 4vw, 36px); text-align: center; transition: border-color .15s, box-shadow .15s; }
.ps-drop::before { content: ''; position: absolute; inset: 12px; border: 1px dashed var(--line-2); border-radius: 14px; pointer-events: none; transition: border-color .15s; }
.ps-drop > * { position: relative; }
.ps-drop-ico { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 12px; border: 1px solid rgba(111, 216, 179, 0.35); border-radius: 50%; background: rgba(111, 216, 179, 0.08); color: var(--signal); }
.ps-drop.is-over { border-color: var(--signal); box-shadow: 0 0 0 4px rgba(111, 216, 179, 0.14), 0 40px 90px -40px rgba(0, 0, 0, 0.9); }
.ps-drop.is-over::before { border-color: var(--signal); }
.ps-drop-h { font-size: clamp(16.5px, 2.1vw, 19px); font-weight: 600; color: var(--fg); }
.ps-or { margin: 11px 0; color: var(--fg-3); font-size: 13.5px; }
.ps-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ps-link { margin-top: 16px; background: none; border: 0; padding: 4px 2px; color: var(--signal); font: inherit; font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ps-link:hover { color: var(--fg); }
.ps-hint { margin: 22px auto 0; max-width: 52em; font-size: 14px; line-height: 1.6; color: var(--fg-3); }
.ps-privacy { margin: 22px auto 0; max-width: 44em; font-size: 14px; line-height: 1.6; color: var(--fg-2); }
.ps-privacy b { color: var(--fg); font-weight: 600; }
.ps-privacy::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-inline-end: 8px; border-radius: 50%; background: var(--signal); vertical-align: 1.5px; }
.ps-hint { margin-top: 10px; }

.ps-dialog { width: calc(100% - 32px); max-width: 440px; padding: 28px clamp(20px, 4vw, 32px); border: 1px solid var(--line-2); border-radius: var(--r-card); background: var(--bg-2); color: var(--fg); box-shadow: 0 24px 64px rgba(0, 0, 0, .5); }
.ps-dialog::backdrop { background: rgba(8, 11, 15, .72); backdrop-filter: blur(4px); }
.ps-dialog-h { font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.ps-dialog p + p { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--fg-2); }
.ps-dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }

.ps-status { margin-top: 18px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); color: var(--fg); font-size: 15px; }

/* ── the report ─────────────────────────────────────────────────────── */
.ps-results { margin-top: 8px; display: grid; gap: 22px; }
.ps-results code { font-family: var(--mono); font-size: 12.5px; padding: 2px 7px; border-radius: 4px; background: var(--bg); border: 1px solid var(--line); color: var(--fg); unicode-bidi: isolate; word-break: break-all; }
.ps-k { font-weight: 600; color: var(--fg); margin-inline-end: 6px; }
.ps-meta { font-size: 13.5px; line-height: 1.6; color: var(--fg-3); }

/* the answer */
.ps-verdict { --tone: var(--fg-3); position: relative; scroll-margin-top: 120px; outline: none; border: 1px solid var(--line-2); border-radius: var(--r-card); padding: clamp(20px, 3vw, 30px) clamp(20px, 3.4vw, 34px); background: linear-gradient(180deg, var(--bg-3), var(--bg-2) 70%); box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 22px 44px -28px rgba(0, 0, 0, .7); overflow: hidden; }
.ps-verdict::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; background: var(--tone); }
.ps-verdict--stop { --tone: var(--bad); }
.ps-verdict--fix { --tone: var(--warn); }
.ps-verdict--nearly { --tone: var(--fg-3); }
.ps-verdict--clear { --tone: var(--signal); }
.ps-subject { margin: 0 0 12px; font-size: 13px; color: var(--fg-3); }
.ps-subject .ps-k { color: var(--fg-3); font-weight: 500; }
.ps-sum-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 36px; }
.ps-verdict-h { font-size: clamp(24px, 3.2vw, 32px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
html[lang="ar"] .ps-verdict-h { letter-spacing: 0; }
.ps-verdict p { margin-top: 8px; max-width: 40em; color: var(--fg-2); line-height: 1.55; font-size: 15.5px; }
.ps-counts { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ps-count { min-width: 74px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.ps-count b { display: block; font-size: 24px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ps-count span { font-size: 12.5px; color: var(--fg-3); }
.ps-count--critical b { color: var(--bad); }
.ps-count--high b { color: var(--warn); }
.ps-proof { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; }
.ps-proof li { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 13px; color: var(--fg-2); }
.ps-proof li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); flex: none; }

/* what was read: the structure of the project, so the reader can see that all of it was opened */
.ps-struct { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg-2); padding: clamp(18px, 2.6vw, 26px); }
.ps-struct-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; }
.ps-struct-head h3 { font-size: 18px; font-weight: 600; }
.ps-struct-head p { font-size: 14px; color: var(--fg-2); }
/* what was scanned: the name, ids, version and fingerprints that say which file or project this report is about */
.ps-ident { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg-2); padding: clamp(18px, 2.6vw, 26px); }
.ps-id-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; }
.ps-id-head h3 { font-size: 18px; font-weight: 600; }
.ps-id-tag { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; color: var(--fg-2); padding: 3px 10px; border: 1px solid var(--line); border-radius: 99px; }
.ps-id-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; margin: 14px 0 0; }
.ps-id-row { display: grid; grid-template-columns: minmax(104px, 34%) minmax(0, 1fr); gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.ps-id-row dt { color: var(--fg-3); font-weight: 500; }
.ps-id-row dd { margin: 0; color: var(--fg); overflow-wrap: anywhere; }
.ps-ident .ps-id-row code { padding: 0; border: 0; background: none; font-family: var(--mono); font-size: 12.5px; color: var(--fg-2); }
.ps-id-wide { grid-column: 1 / -1; grid-template-columns: minmax(104px, 17%) minmax(0, 1fr); }
@media (max-width: 760px) { .ps-id-grid { grid-template-columns: minmax(0, 1fr); } .ps-id-row, .ps-id-wide { grid-template-columns: minmax(0, 1fr); } }

/* what we checked: the coverage scorecard — every category of check, and what each one turned up */
.ps-cov { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg-2); padding: clamp(18px, 2.6vw, 26px); }
.ps-cov-tot { font-family: var(--mono); font-size: 13px; letter-spacing: .03em; color: var(--fg-3); white-space: nowrap; }
.ps-cov-grid { list-style: none; margin: 12px 0 0; padding: 0; }
.ps-cov-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(94px, auto); align-items: center; gap: 10px 24px; padding: 15px 0; border-top: 1px solid var(--line); }
.ps-cov-row:first-child { border-top: 0; padding-top: 4px; }
.ps-cov-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ps-cov-name { font-weight: 600; font-size: 15.5px; color: var(--fg); }
.ps-cov-sub { font-size: 13px; color: var(--fg-3); line-height: 1.45; }
.ps-cov-checks { text-align: end; font-variant-numeric: tabular-nums; }
.ps-cov-checks b { display: block; font-size: 19px; font-weight: 700; line-height: 1; color: var(--fg); }
.ps-cov-checks span { font-size: 11.5px; color: var(--fg-3); }
.ps-cov-s { justify-self: end; text-align: center; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: 12.5px; font-weight: 500; color: var(--fg-2); white-space: nowrap; }
.ps-cov-s b { font-weight: 700; font-variant-numeric: tabular-nums; }
.ps-cov-s--clear { color: var(--signal); border-color: color-mix(in srgb, var(--signal) 42%, var(--line)); background: color-mix(in srgb, var(--signal) 9%, transparent); }
.ps-cov-s--clear::before { content: '✓\00a0'; }
.ps-cov-s--critical { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 46%, var(--line)); background: color-mix(in srgb, var(--bad) 9%, transparent); }
.ps-cov-s--high { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 46%, var(--line)); background: color-mix(in srgb, var(--warn) 9%, transparent); }
.ps-cov-s--med, .ps-cov-s--low { color: var(--fg-2); border-color: var(--line-2); }
.ps-cov-note { margin: 16px 0 0; padding-top: 15px; border-top: 1px solid var(--line); max-width: 48em; }
@media (max-width: 580px) {
  .ps-cov-row { grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; }
  .ps-cov-checks { grid-row: 2; grid-column: 1; text-align: start; display: inline-flex; align-items: baseline; gap: 5px; }
  .ps-cov-checks b { display: inline; font-size: 14px; }
  .ps-cov-s { grid-row: 1 / 3; grid-column: 2; align-self: center; }
}
.ps-leg { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 13px; color: var(--fg-3); }
.ps-leg li { display: inline-flex; align-items: center; gap: 7px; }
.ps-leg b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.ps-dot { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--fg-3); }
.ps-s0 { background: var(--signal); }
.ps-s5 { background: transparent; box-shadow: inset 0 0 0 2px var(--signal); }
.ps-s4 { background: var(--warn); }
.ps-s1 { background: transparent; box-shadow: inset 0 0 0 1.5px var(--fg-3); }
.ps-s2 { background: var(--line-2); }
.ps-s3 { background: transparent; box-shadow: inset 0 0 0 2px var(--warn); }
.ps-s6 { background: transparent; box-shadow: inset 0 0 0 1.5px var(--fg-3); opacity: .6; }
.ps-t-tools { margin-top: 14px; }
.ps-t-find { width: 100%; max-width: 320px; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); color: var(--fg); font: inherit; font-size: 14px; }
.ps-t-find:focus-visible { outline: 2px solid var(--signal); outline-offset: 1px; }
.ps-tree-wrap { margin-top: 10px; max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); padding: 6px; }
.ps-tree, .ps-t-kids, .ps-t-flat { list-style: none; margin: 0; padding: 0; }
.ps-t-kids { margin-inline-start: 11px; padding-inline-start: 10px; border-inline-start: 1px solid var(--line); }
.ps-t-dir > details > summary, .ps-t-file, .ps-t-unopened, .ps-t-more { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 6px; font-size: 13.5px; color: var(--fg-2); }
.ps-t-dir > details > summary { cursor: pointer; list-style: none; }
.ps-t-dir > details > summary::-webkit-details-marker { display: none; }
.ps-t-dir > details > summary:hover { background: var(--bg-2); }
.ps-t-dir > details > summary::before { content: ''; flex: none; border-inline-start: 5px solid var(--fg-3); border-block: 4px solid transparent; transition: transform .12s; }
.ps-t-dir > details[open] > summary::before { transform: rotate(90deg); }
html[dir="rtl"] .ps-t-dir > details[open] > summary::before { transform: rotate(-90deg); }
.ps-t-name { display: inline-flex; align-items: center; gap: 9px; min-width: 0; flex: 1 1 auto; color: var(--fg); font-family: var(--mono); font-size: 12.5px; }
.ps-t-name bdi { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-t-dir > details > summary .ps-bar { flex: 0 0 72px; }
.ps-t-n { flex: none; min-width: 3ch; text-align: end; font-size: 12.5px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.ps-t-flag { flex: none; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--warn); color: var(--bg); font-size: 11.5px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.ps-t-unopened { color: var(--fg-3); }
.ps-t-unopened .ps-t-name { color: var(--fg-3); }
.ps-t-more { color: var(--fg-3); font-size: 13px; }
.ps-bar { display: block; height: 5px; border-radius: 3px; background: var(--bg-3); overflow: hidden; }
.ps-bar i { display: block; height: 100%; background: var(--signal); border-radius: 3px; }
.ps-checks-d { margin-top: 14px; }
.ps-checks-d summary { cursor: pointer; font-size: 13.5px; color: var(--fg-3); width: fit-content; }
.ps-checks-d p { margin-top: 8px; font-size: 13px; line-height: 1.65; color: var(--fg-3); }

/* the findings */
.ps-bar-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.ps-bar-h h3 { font-size: 18px; font-weight: 600; }
.ps-pill { margin-inline-start: 8px; padding: 2px 9px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--fg-2); font-variant-numeric: tabular-nums; vertical-align: 2px; }
.ps-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.ps-tools .ab-btn { padding: 9px 16px; font-size: 14px; }
.ps-legend { margin-top: 10px; }
.ps-list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ps-find { --tone: var(--line-2); border: 1px solid var(--line); border-inline-start: 3px solid var(--tone); border-radius: var(--r-card); background: var(--bg-2); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.ps-find--critical { --tone: var(--bad); }
.ps-find--high { --tone: var(--warn); }
.ps-find--med { --tone: var(--fg-3); }
.ps-find--info { --tone: var(--signal); }
.ps-find[open] { border-color: var(--line-2); border-inline-start-color: var(--tone); box-shadow: 0 16px 32px -24px rgba(0, 0, 0, .8); }
.ps-find > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "sev title chev" ". meta ."; gap: 6px 14px; align-items: center; padding: 14px 18px; cursor: pointer; list-style: none; }
.ps-find > summary::-webkit-details-marker { display: none; }
.ps-find > summary:hover { background: rgba(255, 255, 255, .02); }
.ps-find > summary::after { content: ''; grid-area: chev; width: 8px; height: 8px; border-inline-end: 2px solid var(--fg-3); border-block-end: 2px solid var(--fg-3); transform: rotate(45deg); transition: transform .12s; margin-inline-end: 4px; }
.ps-find[open] > summary::after { transform: rotate(-135deg); }
.ps-sev { grid-area: sev; justify-self: start; padding: 3px 10px; border: 1px solid var(--tone); border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--tone); white-space: nowrap; }
html[lang="ar"] .ps-sev { font-family: var(--arabic); letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.ps-find-t { grid-area: title; font-size: 16px; line-height: 1.35; font-weight: 600; }
.ps-where { grid-area: meta; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--fg-3); }
.ps-times { color: var(--fg-3); font-size: 12.5px; }
.ps-conf { font-size: 12.5px; color: var(--fg-3); }
.ps-conf-sure { color: var(--signal); }
.ps-conf-likely { color: var(--warn); }
.ps-conf-public { color: var(--signal); }
.ps-cwe { font-family: var(--mono); font-size: 12px; opacity: .85; }
.ps-find-body { display: grid; gap: 10px; padding: 14px 18px 18px; border-top: 1px solid var(--line); }
.ps-find-body p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--fg-2); }
.ps-ev { font-size: 13px !important; color: var(--fg-3) !important; }
.ps-copy { justify-self: start; margin-top: 4px; padding: 9px 15px; font-size: 13.5px; }
.ps-group { margin-top: 0; }
.ps-group > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 4px; padding: 14px 4px; font-size: 17px; font-weight: 600; color: var(--fg); }
.ps-group > summary::-webkit-details-marker { display: none; }
.ps-group > summary::before { content: ''; margin-inline-end: 10px; border-inline-start: 6px solid var(--fg-3); border-block: 5px solid transparent; transition: transform .12s; }
.ps-group[open] > summary::before { transform: rotate(90deg); }
html[dir="rtl"] .ps-group[open] > summary::before { transform: rotate(-90deg); }
.ps-group > .ps-meta { margin: 0 4px; }
.ps-more { margin-top: 10px; }
.ps-more summary { cursor: pointer; font-size: 14px; color: var(--signal); padding: 8px 2px; width: fit-content; }

/* the next step */
.ps-handoff { border: 1px solid var(--line-2); border-radius: var(--r-card); padding: clamp(20px, 3vw, 30px); background: linear-gradient(135deg, rgba(111, 216, 179, .09), transparent 55%), var(--bg-2); }
.ps-handoff h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.ps-handoff > p { margin-top: 8px; max-width: 46em; font-size: 15px; line-height: 1.6; color: var(--fg-2); }
.ps-ho-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 20px; }
.ps-ho-row label { font-size: 13.5px; color: var(--fg-3); width: 100%; }
.ps-ho-row input { flex: 1 1 260px; max-width: 380px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); color: var(--fg); font: inherit; font-size: 15px; }
.ps-ho-row input:focus-visible { outline: 2px solid var(--signal); outline-offset: 1px; }
.ps-ho-row input[aria-invalid="true"] { border-color: var(--bad); }
.ps-ho-found { width: 100%; margin: 0; font-size: 13px; color: var(--fg-3); }
.ps-ho-found.is-bad { color: var(--bad); }
.ps-ho-pick { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font: inherit; font-family: var(--mono); font-size: 12px; color: var(--fg-2); cursor: pointer; }
.ps-ho-pick:hover { border-color: var(--signal); color: var(--fg); }
.ps-ho-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ps-ho-acts .ab-btn { text-decoration: none; }
.ps-ho-share { margin-top: 18px; font-size: 14px; color: var(--fg-2); }
.ps-ho-share > label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.ps-ho-share input { accent-color: var(--signal); width: 16px; height: 16px; }
.ps-ho-prev { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.ps-ho-prev p { margin: 0 0 8px; font-size: 13px; color: var(--fg-3); }
.ps-ho-prev ul { margin: 0; padding-inline-start: 18px; font-size: 13.5px; line-height: 1.7; color: var(--fg-2); }
.ps-ho-prev .ps-meta { margin: 10px 0 0; }

.ps-limits { border: 1px solid var(--line); border-radius: var(--r-card); }
.ps-limits > summary { cursor: pointer; padding: 14px 20px; font-size: 15px; font-weight: 600; color: var(--fg); }
.ps-limits p { margin: 0; padding: 0 20px 12px; font-size: 13.5px; line-height: 1.65; color: var(--fg-3); }
.ps-limits p:last-child { padding-bottom: 18px; }
.ps-end { display: flex; flex-wrap: wrap; gap: 10px; }

/* what it checks, and where to go next */
.ps-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; margin-top: 8px; border-top: 1px solid var(--line); }
.ps-check { padding: 22px 24px 22px 0; border-bottom: 1px solid var(--line); }
html[dir="rtl"] .ps-check { padding: 22px 0 22px 24px; }
.ps-check h3 { font-size: 17px; font-weight: 600; }
.ps-check p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--fg-2); }

.ps-live { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px clamp(28px, 5vw, 72px); align-items: center; margin: 8px 0 14px; padding: 28px 32px; border: 1px solid var(--line-2); border-radius: var(--r-card); background: var(--bg-3); box-shadow: inset 0 1px 0 rgba(111, 216, 179, .4); }
.ps-live-copy { display: grid; gap: 12px; justify-items: start; }
.ps-live-h { margin: 0; font-size: 20px; font-weight: 650; line-height: 1.25; letter-spacing: -.01em; color: var(--fg); }
html[lang="ar"] .ps-live-h { letter-spacing: 0; line-height: 1.45; }
.ps-live-copy p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--fg-2); }
.ps-live-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.5; color: var(--fg-2); }
.ps-live-list li { position: relative; padding-inline-start: 22px; }
.ps-live-list li::before { content: ''; position: absolute; inset-inline-start: 2px; inset-block-start: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
.ps-live-list .ps-live-more { color: var(--fg-3); }
.ps-live-list .ps-live-more::before { background: var(--fg-3); }
@media (max-width: 860px) { .ps-live { grid-template-columns: minmax(0, 1fr); padding: 22px 20px; } }
.ps-next { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 8px; }
.ps-next a { display: block; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg-2); color: var(--fg); text-decoration: none; transition: border-color .15s; }
.ps-next a:hover { border-color: var(--signal); }
.ps-next b { display: block; font-size: 17px; font-weight: 600; color: var(--signal); }
.ps-next span { display: block; margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--fg-2); }

@media (max-width: 640px) {
  .ps-actions .ab-btn { width: 100%; }
  .ps-sum-row { align-items: stretch; }
  .ps-counts { width: 100%; }
  .ps-count { flex: 1 1 0; min-width: 0; padding: 10px; }
  .ps-find > summary { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "sev chev" "title title" "meta meta"; padding: 14px; }
  .ps-find-body { padding: 12px 14px 16px; }
  .ps-t-dir > details > summary .ps-bar { flex-basis: 44px; }
  .ps-tools .ab-btn { flex: 1 1 calc(50% - 10px); }
  .ps-t-find, .ps-ho-row input { font-size: 16px; }
}

/* printed or saved as a PDF: a report made for paper, not the page squeezed onto it */
.ps-print { display: none; }
@media print {
  @page { size: A4; margin: 0; }
  html, body, body.ab-page { background: #fff !important; color: #11161c !important; }
  .ab-head, #footer, .ps-hero, #ps-intake, #ps-status, .ps-dialog, .ab-sec, nav { display: none !important; }
  main, .ps-tool, .ab-wrap, #ps-results { display: block !important; padding: 0 !important; margin: 0 !important; max-width: none !important; width: auto !important; }
  #ps-results > *:not(.ps-print) { display: none !important; }
  .ps-print { display: block; font-size: 9.6pt; line-height: 1.5; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ps-print code { font-family: var(--mono); font-size: 8.2pt; padding: 0; background: none; border: 0; color: #11161c; }
  .ps-print bdi { font-family: var(--mono); font-size: 8.6pt; }

  .ps-pr { width: 100%; border-collapse: collapse; }
  .ps-pr > thead > tr > td, .ps-pr > tfoot > tr > td, .ps-pr > tbody > tr > td { padding: 0 15mm; }
  .ps-pr-top, .ps-pr-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 8.5pt; color: #5a6670; }
  .ps-pr-top { padding: 11mm 0 3mm; border-bottom: 1px solid #d3d9df; margin-bottom: 7mm; }
  .ps-pr-top b { color: #11161c; }
  .ps-pr-foot { padding: 3mm 0 9mm; border-top: 1px solid #d3d9df; margin-top: 5mm; }

  .ps-pr-hero { --tone: #6c7782; position: relative; padding: 6mm 7mm 6mm 9mm; border: 1px solid #d3d9df; border-radius: 3mm; break-inside: avoid; }
  .ps-pr-hero::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 2.2mm; background: var(--tone); border-radius: 3mm 0 0 3mm; }
  html[dir="rtl"] .ps-pr-hero::before { border-radius: 0 3mm 3mm 0; }
  .ps-pr-hero--stop { --tone: #b3261e; } .ps-pr-hero--fix { --tone: #c26a00; } .ps-pr-hero--clear { --tone: #0f8a63; }
  .ps-pr-sub { margin: 0; font-size: 8.5pt; letter-spacing: .06em; text-transform: uppercase; color: #5a6670; }
  html[lang="ar"] .ps-pr-sub { letter-spacing: 0; text-transform: none; font-size: 9.5pt; }
  .ps-pr-hero h1 { margin: 1mm 0 0; font-size: 12.5pt; font-weight: 600; }
  .ps-pr-hero h2 { margin: 4mm 0 0; font-size: 21pt; line-height: 1.12; font-weight: 700; letter-spacing: -0.015em; }
  html[lang="ar"] .ps-pr-hero h2 { letter-spacing: 0; }
  .ps-pr-hero p { margin: 2mm 0 0; max-width: 150mm; color: #2a323a; }
  .ps-pr-counts { display: flex; gap: 3mm; margin: 5mm 0 0; padding: 0; list-style: none; }
  .ps-pr-counts li { min-width: 24mm; padding: 2.4mm 4mm; border: 1px solid #d3d9df; border-radius: 2mm; }
  .ps-pr-counts b { display: block; font-size: 17pt; line-height: 1.1; }
  .ps-pr-counts span { font-size: 8.5pt; color: #5a6670; }
  .ps-pr-c--critical b { color: #b3261e; } .ps-pr-c--high b { color: #a35a00; }
  .ps-pr-hero .ps-pr-proof { margin: 4.5mm 0 0; padding-top: 3mm; border-top: 1px solid #e0e5ea; font-size: 8.8pt; color: #5a6670; }

  .ps-pr-sec { margin-top: 8mm; }
  .ps-pr-sec h3, .ps-pr-note h3 { break-after: avoid; margin: 0 0 3mm; padding-bottom: 1.6mm; border-bottom: 1px solid #d3d9df; font-size: 10pt; letter-spacing: .07em; text-transform: uppercase; }
  html[lang="ar"] .ps-pr-sec h3, html[lang="ar"] .ps-pr-note h3 { letter-spacing: 0; text-transform: none; font-size: 11.5pt; }
  .ps-pr-pill { margin-inline-start: 2mm; padding: 0.4mm 2.2mm; border: 1px solid #c4cbd2; border-radius: 99px; font-size: 8.5pt; letter-spacing: 0; vertical-align: 0.3mm; }
  .ps-pr-lead { margin: 0; font-weight: 600; }
  .ps-pr-id { width: 100%; border-collapse: collapse; font-size: 8.8pt; }
  .ps-pr-id th, .ps-pr-id td { padding: 1.2mm 0; vertical-align: top; text-align: start; border-bottom: 1px solid #e3e8ec; break-inside: avoid; }
  .ps-pr-id th { width: 34mm; padding-inline-end: 4mm; font-weight: 500; color: #5a6670; }
  .ps-pr-id td { overflow-wrap: anywhere; color: #11161c; }
  .ps-pr-id code { font-family: var(--mono); font-size: 8pt; }
  .ps-pr-covtbl { width: 100%; border-collapse: collapse; font-size: 8.8pt; }
  .ps-pr-covtbl th, .ps-pr-covtbl td { padding: 1.4mm 0; text-align: start; border-bottom: 1px solid #e3e8ec; break-inside: avoid; }
  .ps-pr-covtbl th { font-weight: 600; color: #11161c; }
  .ps-pr-covtbl td { color: #5a6670; }
  .ps-pr-covtbl td:nth-child(2) { width: 28mm; }
  .ps-pr-covtbl td:last-child { width: 26mm; text-align: end; font-weight: 600; }
  .ps-pr-cov-clear { color: #0f8a63; }
  .ps-pr-cov-critical { color: #b3261e; }
  .ps-pr-cov-high { color: #a35a00; }
  .ps-pr-cov-med, .ps-pr-cov-low { color: #5a6670; }
  .ps-pr-leg { margin: 3mm 0 0; font-size: 8.8pt; color: #5a6670; }
  .ps-pr-leg i { display: inline-block; width: 1.4mm; height: 1.4mm; margin: 0 2mm; border-radius: 50%; background: #c4cbd2; vertical-align: 0.4mm; }
  .ps-pr-leg b { color: #11161c; }
  .ps-pr-rows { width: 100%; margin-top: 3mm; border-collapse: collapse; font-size: 9pt; }
  .ps-pr-rows th { padding: 1.4mm 2mm; text-align: start; font-size: 8pt; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #5a6670; border-bottom: 1px solid #b9c1c9; }
  html[lang="ar"] .ps-pr-rows th { letter-spacing: 0; text-transform: none; font-size: 9pt; }
  .ps-pr-rows td { padding: 1.3mm 2mm; border-bottom: 1px solid #e6eaee; }
  .ps-pr-rows th:not(:first-child), .ps-pr-rows td:not(:first-child) { width: 20mm; text-align: end; font-variant-numeric: tabular-nums; }
  .ps-pr-rows tr { break-inside: avoid; }
  .ps-pr-off { margin: 2.4mm 0 0; font-size: 8.6pt; color: #6c7782; }

  .ps-pr-keep { break-inside: avoid; }
  .ps-print p { orphans: 3; widows: 3; }
  .ps-pr-legend { margin: 0 0 2mm; font-size: 8.8pt; color: #5a6670; }
  .ps-pr-kind { --tone: #6c7782; padding-block: 3.2mm; padding-inline: 4mm 0; border-bottom: 1px solid #e6eaee; border-inline-start: 1.2mm solid var(--tone); break-inside: avoid; margin-bottom: 0.2mm; }
  .ps-pr-kind--critical { --tone: #b3261e; } .ps-pr-kind--high { --tone: #c26a00; } .ps-pr-kind--info { --tone: #0f8a63; }
  .ps-pr-kh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1mm 3mm; }
  .ps-pr-kh b { font-size: 10.4pt; }
  .ps-pr-sev { padding: 0.3mm 2.4mm; border: 1px solid var(--tone); border-radius: 99px; font-size: 7.6pt; letter-spacing: .06em; text-transform: uppercase; color: var(--tone); }
  html[lang="ar"] .ps-pr-sev { letter-spacing: 0; text-transform: none; font-size: 8.8pt; }
  .ps-pr-n { font-weight: 700; color: #5a6670; }
  .ps-pr-conf { margin-inline-start: auto; font-size: 8.5pt; color: #5a6670; }
  .ps-pr-where { margin: 1.4mm 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6mm 3mm; color: #5a6670; font-size: 8.6pt; }
  .ps-pr-kind p { margin: 1.4mm 0 0; }
  .ps-pr-kind p b { margin-inline-end: 1.5mm; }
  .ps-pr-note { margin-top: 8mm; break-inside: avoid; }
  .ps-pr-note p { margin: 0; color: #5a6670; font-size: 8.8pt; }
}

/* site-styles: Paper and Navy, written by scripts/site-styles.mjs; edit the rules above, then rerun */
@media screen {
:where(html.ab-alt) .ps-drop { border: 1px solid color-mix(in srgb, var(--signal) 28%, transparent); background-image: radial-gradient(560px circle at 50% 0%, color-mix(in srgb, var(--signal) 10%, transparent), transparent 62%), linear-gradient(180deg, color-mix(in srgb, var(--fg) 6%, transparent), color-mix(in srgb, var(--fg) 2%, transparent)); box-shadow: 0 1px 0 color-mix(in srgb, var(--fg) 7%, transparent) inset, 0 24px 56px -34px rgba(0, 0, 0, 0.85); }
:where(html.ab-alt) .ps-drop-ico { border: 1px solid color-mix(in srgb, var(--signal) 35%, transparent); background: color-mix(in srgb, var(--signal) 8%, transparent); }
:where(html.ab-alt) .ps-drop.is-over { box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 14%, transparent), 0 40px 90px -40px rgba(0, 0, 0, 0.9); }
:where(html.ab-alt) .ps-dialog::backdrop { background: color-mix(in srgb, var(--bg-deep) 72%, transparent); }
:where(html.ab-alt) .ps-verdict { box-shadow: 0 1px 0 color-mix(in srgb, var(--fg) 4%, transparent) inset, 0 22px 44px -28px rgba(0, 0, 0, .7); }
:where(html.ab-alt) .ps-find > summary:hover { background: color-mix(in srgb, var(--fg) 2%, transparent); }
:where(html.ab-alt) .ps-handoff { background: linear-gradient(135deg, color-mix(in srgb, var(--signal) 9%, transparent), transparent 55%), var(--bg-2); }
:where(html.ab-alt) .ps-live { box-shadow: inset 0 1px 0 color-mix(in srgb, var(--signal) 40%, transparent); }
}
/* /site-styles */
