/* Purple AI assessment portal — design system (2026-10-06). Navy + Purple AI accent, Inter, hairline panels. */
@font-face { font-family: Inter; src: url(fonts/inter-latin.woff2) format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(fonts/source-serif-4-latin.woff2) format("woff2"); font-weight: 300 800; font-display: swap; }
:root { --navy: #0b1f3a; --navy2: #143563; --accent: #1f4e8c; --purple: #6d28d9; --ink: #111827; --muted: #5b6475; --rule: #d9dee7; --field: #f7f8fa; --canvas: #f4f6f9;
  --radius: 12px; --shadow: 0 1px 2px rgb(11 31 58 / 4%), 0 4px 14px rgb(11 31 58 / 3.5%); --side: 264px; --green: #047857; --amber: #b45309; --red: #b91c1c; }
* { box-sizing: border-box; }
html { background: var(--canvas); -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; color: var(--navy); letter-spacing: -.02em; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); } .small { font-size: 12px; } .mt { margin-top: 18px; } .mb { margin-bottom: 18px; } .grow { flex: 1; min-width: 0; } .nowrap { white-space: nowrap; }
.prewrap { white-space: pre-wrap; } .late { color: var(--red); font-weight: 600; } .pad { padding: 14px 18px; } .top-rule { border-top: 1px solid var(--rule); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.p-skip { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 8px 14px; background: #fff; border: 1px solid var(--rule); border-radius: 8px; transform: translateY(-200%); } .p-skip:focus { transform: none; }

/* layout */
.p-layout { min-height: 100dvh; }
.p-sidebar { position: fixed; inset: 0 auto 0 0; width: var(--side); background: #fff; border-right: 1px solid var(--rule); display: flex; flex-direction: column; z-index: 50; transform: translateX(-100%); visibility: hidden; transition: transform .18s ease, visibility .18s; overflow-y: auto; }
.p-sidebar.is-open { transform: none; visibility: visible; }
.p-main { padding: 26px 28px 60px; max-width: 1280px; }
@media (min-width: 1024px) { .p-sidebar { transform: none; visibility: visible; } .p-main { margin-left: var(--side); } .p-mobile-bar { display: none; } }
.p-mobile-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; height: 54px; padding: 0 10px 0 12px; background: #fff; border-bottom: 1px solid var(--rule); }
.p-mobile-brand img { display: block; height: 18px; }
.p-icon-btn { position: relative; display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; } .p-icon-btn svg { width: 20px; height: 20px; }
.p-overlay { position: fixed; inset: 0; z-index: 40; background: rgb(11 31 58 / 42%); }
.p-side-head { padding: 22px 20px 14px; border-bottom: 1px solid var(--rule); }
.p-wordmark img { display: block; height: 22px; width: auto; }
.p-side-caption { margin-top: 8px; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.p-orgcard { margin: 14px 14px 4px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--field); }
.p-orgcard-label { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.p-orgcard-name { margin-top: 4px; font-weight: 650; color: var(--navy); font-size: 14px; line-height: 1.3; }
.p-orgcard-actions { margin-top: 8px; display: flex; gap: 12px; font-size: 12px; }
.p-nav { padding: 10px 14px; flex: 1; }
.p-nav-group { margin-bottom: 14px; } .p-nav-title { padding: 8px 10px 4px; font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.p-nav-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; color: #243247; text-decoration: none; font-weight: 500; font-size: 13.5px; }
.p-nav-link:hover { background: var(--field); color: var(--navy); } .p-nav-link.is-active { background: var(--navy); color: #fff; font-weight: 600; }
.p-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--purple); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 1; }
.p-badge.grey { background: #cbd5e1; color: #243247; } .p-icon-btn .p-badge { position: absolute; top: 4px; right: 4px; }
.p-side-foot { padding: 12px 18px 18px; border-top: 1px solid var(--rule); display: grid; gap: 10px; font-size: 12.5px; }
.p-lang select, .p-inline select, .p-inline input { font: inherit; font-size: 12.5px; padding: 5px 8px; border: 1px solid var(--rule); border-radius: 6px; background: #fff; color: var(--ink); }
.p-lang select { width: 100%; }
.p-user { display: flex; flex-direction: column; } .p-user-name { color: var(--navy); font-weight: 600; text-decoration: none; } .p-user-role { color: var(--muted); font-size: 11.5px; }
.p-staffbar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: -8px 0 18px; padding: 9px 14px; border-radius: 8px; background: #ede9fe; color: #3b2a7a; font-size: 12.5px; border: 1px solid #ddd6fe; }
.p-staffbar a { color: var(--purple); font-weight: 600; }

/* header + text */
.p-eyebrow { margin: 0 0 6px; color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; } .p-eyebrow a { color: inherit; text-decoration: none; } .p-eyebrow a:hover { text-decoration: underline; }
.p-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.p-header h1 { font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -.035em; }
.p-lead { margin: 8px 0 0; max-width: 78ch; color: var(--muted); font-size: 13px; line-height: 1.6; } .p-lead b { color: var(--navy); }
.p-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.p-h3 { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }

/* buttons */
.p-btn, .p-btn-2, .p-btn-3 { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 8px 14px; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid var(--navy); background: var(--navy); color: #fff; line-height: 1; white-space: nowrap; }
.p-btn:hover { background: var(--navy2); } .p-btn-2 { background: #fff; color: var(--navy); } .p-btn-2:hover { background: var(--field); }
.p-btn-3 { background: transparent; border-color: transparent; color: var(--accent); padding: 6px 8px; min-height: 30px; } .p-btn-3:hover { background: var(--field); }
.p-btn.sm, .p-btn-2.sm, .p-btn-3.sm { min-height: 30px; padding: 5px 10px; font-size: 12px; } .p-btn.wide { width: 100%; min-height: 44px; }
.p-btn.danger { background: var(--red); border-color: var(--red); } .p-btn-2.danger, .p-btn-3.danger { color: var(--red); } .p-btn[disabled] { opacity: .5; cursor: not-allowed; }
summary.p-btn-2 { list-style: none; } summary::-webkit-details-marker { display: none; }

/* panels, tiles, tables */
.p-panel { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.p-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.p-panel-head h2 { font-size: 14px; font-weight: 650; } .p-panel-head .count { color: var(--muted); font-size: 12px; font-weight: 500; }
.p-panel-body { padding: 16px 18px; }
.p-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; } .p-tiles.small { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.p-tile { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px 12px; min-width: 0; }
.p-tile-title { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 600; }
.p-dot { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; flex: none; } .p-dot.navy { background: var(--accent); } .p-dot.green { background: #059669; } .p-dot.amber { background: #d97706; } .p-dot.red, .p-dot.critical, .p-dot.high { background: #dc2626; } .p-dot.purple { background: var(--purple); }
.p-tile-value { margin-top: 8px; font-size: 26px; font-weight: 650; letter-spacing: -.04em; color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums; } .p-tile-value small { font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.p-tile-note { margin: 7px 0 0; min-height: 15px; font-size: 10.5px; color: var(--muted); line-height: 1.5; }
.p-grid { display: grid; gap: 18px; } .p-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .p-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .p-grid.main-side { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
@media (max-width: 1100px) { .p-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 880px) { .p-grid.cols-2, .p-grid.cols-3, .p-grid.main-side { grid-template-columns: minmax(0, 1fr); } }
.p-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.p-table th { text-align: left; padding: 9px 14px; color: var(--muted); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.p-table td { padding: 10px 14px; border-bottom: 1px solid #eef1f5; vertical-align: top; } .p-table tr:last-child td { border-bottom: 0; } .p-table tbody tr:hover td { background: #fafbfd; }
.p-table .num { text-align: right; white-space: nowrap; } .p-table a.name { color: var(--navy); font-weight: 600; text-decoration: none; } .p-table a.name:hover { text-decoration: underline; }
.p-sub { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; font-weight: 400; }
.p-empty { padding: 26px 18px; color: var(--muted); font-size: 13px; text-align: center; } .p-empty strong { display: block; color: var(--navy); margin-bottom: 4px; font-size: 14px; }
.p-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 13px; } .p-dl dt { color: var(--muted); } .p-dl dd { margin: 0; }
.p-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .p-people li { display: flex; flex-direction: column; font-size: 13px; position: relative; } .p-people li span { color: var(--muted); font-size: 12px; } .p-people li form { position: absolute; right: 0; top: 0; } .p-people.pad { padding: 14px 18px; }
.p-tips { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.p-feed { list-style: none; margin: 0; padding: 6px 18px; } .p-feed li { display: flex; gap: 14px; padding: 8px 0; border-bottom: 1px solid #eef1f5; font-size: 12.5px; } .p-feed li:last-child { border: 0; } .p-feed-time { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 92px; }
.p-list { list-style: none; margin: 0; padding: 0; } .p-list li { border-bottom: 1px solid #eef1f5; } .p-list li:last-child { border: 0; }
.p-list li > a, .p-list.plain li { display: flex; align-items: center; gap: 12px; padding: 11px 18px; color: inherit; text-decoration: none; font-size: 13px; } .p-list li > a:hover { background: #fafbfd; }
.p-list.plain li { justify-content: space-between; } .p-list-text { flex: 1; min-width: 0; } .p-list-meta { color: var(--muted); font-size: 12px; white-space: nowrap; } .p-list li.unread { background: #f5f3ff; }
.p-kind { flex: none; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 5px; background: #eef1f5; color: #475569; }
.p-kind.evidence { background: #fef3c7; color: var(--amber); } .p-kind.finding, .p-kind.verify { background: #fee2e2; color: var(--red); } .p-kind.questionnaire, .p-kind.validate { background: #dbeafe; color: #1d4ed8; } .p-kind.task { background: #ede9fe; color: var(--purple); } .p-kind.milestone { background: #d1fae5; color: var(--green); }
.p-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 1.6; white-space: nowrap; background: #eef1f5; color: #334155; border: 1px solid transparent; }
.p-chip.cis, .p-chip.none { background: #fff; border-color: var(--rule); color: var(--muted); font-weight: 500; } .p-chip.stage { background: #ede9fe; color: var(--purple); }
.p-chip.implemented, .p-chip.accepted, .p-chip.done, .p-chip.verified, .p-chip.active, .p-chip.remediated { background: #d1fae5; color: var(--green); }
.p-chip.partial, .p-chip.requested, .p-chip.in_progress, .p-chip.upcoming, .p-chip.review { background: #fef3c7; color: var(--amber); }
.p-chip.planned, .p-chip.open, .p-chip.rejected, .p-chip.overdue, .p-chip.blocked, .p-chip.suspended { background: #fee2e2; color: var(--red); }
.p-chip.not_applicable, .p-chip.waived, .p-chip.closed, .p-chip.risk_accepted, .p-chip.archived, .p-chip.draft { background: #f1f5f9; color: #475569; }
.p-chip.submitted { background: #dbeafe; color: #1d4ed8; } .p-chip.validated { background: #e0f2fe; color: #0369a1; } .p-chip.internal { background: #fdf4ff; color: #86198f; border-color: #f5d0fe; }
.p-chip.sev-critical { background: #7f1d1d; color: #fff; } .p-chip.sev-high { background: #fee2e2; color: var(--red); } .p-chip.sev-medium { background: #fef3c7; color: var(--amber); } .p-chip.sev-low { background: #f1f5f9; color: #475569; } .p-chip.sev-informational { background: #e0f2fe; color: #0369a1; }
.p-chip.fn-govern { background: #ede9fe; color: #6d28d9; } .p-chip.fn-identify { background: #dbeafe; color: #1d4ed8; } .p-chip.fn-protect { background: #dcfce7; color: #15803d; } .p-chip.fn-detect { background: #fef9c3; color: #a16207; } .p-chip.fn-respond { background: #ffedd5; color: #c2410c; } .p-chip.fn-recover { background: #cffafe; color: #0e7490; }
.p-bar { height: 7px; border-radius: 999px; background: #e5e9f0; overflow: hidden; display: flex; } .p-bar span { display: block; height: 100%; background: var(--accent); transition: width .3s; } .p-bar .green { background: #059669; } .p-bar .amber { background: #d97706; } .p-bar .red { background: #dc2626; } .p-bar .navy { background: var(--accent); }
.p-pct { font-variant-numeric: tabular-nums; min-width: 42px; text-align: right; color: var(--navy); }
.p-progress-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; } .p-progress-row > div:first-child { min-width: 220px; }
.p-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; } .p-filter { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--rule); background: #fff; color: #334155; font-size: 12px; font-weight: 500; text-decoration: none; } .p-filter.is-active { background: var(--navy); border-color: var(--navy); color: #fff; } .p-filter-sep { width: 1px; height: 18px; background: var(--rule); margin: 0 6px; }
.p-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--rule); margin-bottom: 20px; overflow-x: auto; } .p-tabs a { padding: 10px 14px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 13px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; } .p-tabs a.is-active { color: var(--navy); border-color: var(--navy); }
.p-flashes { margin-bottom: 16px; display: grid; gap: 8px; } .p-flash { padding: 10px 14px; border-radius: 8px; font-size: 13px; border: 1px solid #a9dcc0; background: #eefaf3; color: #0f6a3a; } .p-flash.error { border-color: #f1b3ad; background: #fdf1f0; color: #b42318; } .p-flash.info { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }

/* forms */
.p-form { display: grid; gap: 12px; } .p-form.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .p-form.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .p-form .span-2 { grid-column: span 2; } .p-form .span-3, .p-form .span { grid-column: 1 / -1; }
@media (max-width: 760px) { .p-form.cols-2, .p-form.cols-3 { grid-template-columns: minmax(0, 1fr); } .p-form .span-2 { grid-column: auto; } }
.p-field label { display: block; font-size: 11px; font-weight: 600; color: #475569; margin-bottom: 4px; letter-spacing: .02em; }
.p-field input, .p-field select, .p-field textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 7px; padding: 7px 10px; font: inherit; font-size: 13px; background: #fff; color: var(--ink); } .p-field textarea { resize: vertical; line-height: 1.5; }
.p-field input:focus, .p-field select:focus, .p-field textarea:focus { border-color: var(--accent); outline: 2px solid rgb(31 78 140 / 18%); } .p-field input[type=file] { padding: 6px; }
.p-check { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: #334155; cursor: pointer; } .p-checks { display: grid; gap: 6px; } .p-checks.tall { max-height: 260px; overflow: auto; padding: 8px; border: 1px solid var(--rule); border-radius: 7px; }
.p-fieldset { border: 1px solid var(--rule); border-radius: 8px; padding: 10px 14px 14px; display: grid; gap: 12px; } .p-fieldset legend { padding: 0 6px; }
.p-inline { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; } .p-inline .w-note { width: 180px; }
.p-details { margin-top: 8px; border-top: 1px solid var(--rule); } .p-details > summary { padding: 10px 18px; cursor: pointer; font-weight: 600; color: var(--accent); font-size: 13px; } .p-details.danger > summary { color: var(--red); }
.p-pop { position: relative; } .p-pop > summary { cursor: pointer; } .p-pop[open] > form, .p-pop[open] > .p-form { position: absolute; right: 0; z-index: 20; width: 320px; background: #fff; border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 12px 32px rgb(11 31 58 / 14%); } .p-pop.wide[open] > form { left: 0; right: auto; width: min(640px, 90vw); } .p-pop td & { text-align: left; }
summary.p-plain { list-style: none; cursor: pointer; } summary.p-plain:hover b { text-decoration: underline; }
.p-copy { width: 100%; max-width: 360px; font: inherit; font-size: 11.5px; padding: 5px 8px; border: 1px solid var(--rule); border-radius: 6px; background: var(--field); color: var(--muted); }

/* process stepper */
.p-stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; counter-reset: s; }
.p-stepper li { position: relative; text-align: center; padding-top: 4px; font-size: 11.5px; color: var(--muted); } .p-stepper li::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: var(--rule); z-index: 0; } .p-stepper li:first-child::before { display: none; }
.p-stepper li.done::before, .p-stepper li.current::before { background: var(--navy); }
.p-step-dot { position: relative; z-index: 1; display: inline-flex; width: 24px; height: 24px; border-radius: 50%; align-items: center; justify-content: center; background: #fff; border: 2px solid var(--rule); font-size: 11px; font-weight: 700; color: var(--muted); }
.p-stepper li.done .p-step-dot { background: var(--navy); border-color: var(--navy); color: #fff; } .p-stepper li.current .p-step-dot { border-color: var(--purple); color: var(--purple); box-shadow: 0 0 0 4px #ede9fe; }
.p-step-title { display: block; margin-top: 6px; font-weight: 600; } .p-stepper li.current .p-step-title { color: var(--purple); } .p-stepper li.done .p-step-title { color: var(--navy); }
@media (max-width: 700px) { .p-stepper { grid-template-columns: repeat(4, 1fr); row-gap: 14px; } .p-stepper li::before { display: none; } }
.p-stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-top: 18px; } .p-stage { padding: 12px; border: 1px solid var(--rule); border-radius: 10px; font-size: 12px; color: var(--muted); } .p-stage b { color: var(--navy); display: block; margin-bottom: 4px; } .p-stage p { margin: 0 0 4px; } .p-stage.current { border-color: var(--purple); background: #faf5ff; } .p-stage.done { background: var(--field); }

/* questionnaire */
.p-controls { display: grid; gap: 8px; }
.p-control { display: grid; grid-template-columns: 56px 1fr 40px; align-items: center; gap: 14px; padding: 12px 16px; background: #fff; border: 1px solid var(--rule); border-radius: 10px; text-decoration: none; color: inherit; box-shadow: var(--shadow); } .p-control:hover { border-color: var(--accent); }
.p-control-num { font-size: 20px; font-weight: 700; color: var(--navy); letter-spacing: -.03em; font-variant-numeric: tabular-nums; } .p-control-body { min-width: 0; display: grid; gap: 5px; } .p-control-body b { color: var(--navy); } .p-control-go { text-align: right; color: var(--accent); font-weight: 700; } .p-control.complete .p-control-go { color: var(--green); }
.p-sg-form { display: grid; gap: 12px; }
.p-sg { margin: 0; padding: 14px 18px 10px; border: 1px solid var(--rule); border-radius: 10px; background: #fff; box-shadow: var(--shadow); min-width: 0; } .p-sg.answered { border-left: 3px solid var(--green); } .p-sg[disabled] { opacity: .8; }
.p-sg legend { font-weight: 600; color: var(--navy); font-size: 13.5px; padding: 0 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .p-sg-code { font-variant-numeric: tabular-nums; color: var(--accent); }
.p-sg-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(200px, 1fr); gap: 10px 16px; margin-top: 6px; } .p-sg-grid .span { grid-column: 1 / -1; } @media (max-width: 760px) { .p-sg-grid { grid-template-columns: 1fr; } }
.p-seg { display: flex; flex-wrap: wrap; gap: 6px; } .p-seg-opt { position: relative; } .p-seg-opt input { position: absolute; opacity: 0; inset: 0; } .p-seg-opt span { display: inline-block; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--rule); background: #fff; font-size: 12.5px; font-weight: 600; color: #334155; cursor: pointer; }
.p-seg-opt input:focus-visible + span { outline: 2px solid var(--accent); } .p-seg-opt input:checked + span { color: #fff; border-color: transparent; background: var(--navy); }
.p-seg-opt.implemented input:checked + span { background: var(--green); } .p-seg-opt.partial input:checked + span { background: var(--amber); } .p-seg-opt.planned input:checked + span { background: var(--red); } .p-seg-opt.not_applicable input:checked + span { background: #475569; } .p-seg-opt.none input:checked + span { background: #94a3b8; }
.p-sg-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.p-sticky-save { position: sticky; bottom: 0; display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 10px 14px; margin-top: 6px; background: rgb(255 255 255 / 92%); backdrop-filter: blur(6px); border: 1px solid var(--rule); border-radius: 10px; }
.p-vgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 6px; } @media (max-width: 860px) { .p-vgrid { grid-template-columns: 1fr; } } .p-vlabel { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 6px 0 4px; }

/* results */
.p-scores td { vertical-align: middle; } .p-scorebar { width: 220px; } .p-scorebar .p-bar { display: inline-flex; width: calc(100% - 50px); vertical-align: middle; } .p-scorebar .p-pct { display: inline-block; margin-left: 6px; font-size: 12px; }
.p-maturity { white-space: nowrap; } .p-dots i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #e5e9f0; margin-right: 3px; vertical-align: middle; } .p-dots i.on { background: var(--purple); } .p-dots i.half { background: linear-gradient(90deg, var(--purple) 50%, #e5e9f0 50%); }
.p-fnrow { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; } .p-fnrow .p-chip { min-width: 84px; justify-content: center; }
.p-doc h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 14px 0 6px; } .p-doc h2:first-child { margin-top: 0; } .p-doc p { margin: 0 0 8px; line-height: 1.65; font-size: 14px; }

/* thread */
.p-thread { display: grid; gap: 10px; } .p-msg { padding: 10px 14px; border-radius: 10px; background: var(--field); border: 1px solid var(--rule); max-width: 92%; } .p-msg.staff { background: #eef3f9; border-color: #c3d5eb; margin-left: auto; } .p-msg.internal { background: #fdf4ff; border-color: #f5d0fe; }
.p-msg-head { font-size: 12px; margin-bottom: 4px; } .p-msg-body { white-space: pre-wrap; font-size: 13px; } .p-msg-form textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 13px; } .p-msg-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }

/* login */
body.p-login { background: var(--navy); color: var(--ink); overflow-x: hidden; min-height: 100dvh; }
.p-login-bg { position: fixed; inset: 0; z-index: 0; background: var(--navy) url(login/bg.jpg) center / cover no-repeat; } .p-login-bg.static::after, .p-login-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgb(11 31 58 / 55%), rgb(11 31 58 / 25%) 45%, rgb(11 31 58 / 5%)), linear-gradient(180deg, rgb(11 31 58 / 5%), rgb(11 31 58 / 15%) 60%, rgb(11 31 58 / 75%)); }
.p-login-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.8s ease; } .p-login-bg video.on { opacity: 1; }
.p-login-wrap { position: relative; z-index: 2; min-height: 100dvh; display: flex; align-items: center; justify-content: flex-end; padding: 48px clamp(24px, 8vw, 150px); }
.p-login-card { position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: 12px; padding: 34px 38px 26px; box-shadow: 0 30px 80px rgb(2 10 28 / 45%), 0 2px 6px rgb(2 10 28 / 20%); }
.p-login-card h1 { font-size: 26px; font-weight: 650; margin: 0 0 6px; } .p-login-card .lead { margin: 0 0 22px; color: var(--muted); font-size: 14px; } .p-login-card .help { margin: 18px 0 20px; font-size: 12.5px; color: var(--muted); }
.p-login-card .p-field { margin-bottom: 14px; } .p-login-card .p-field input { padding: 12px 13px; background: var(--field); } .p-login-card .p-field label { font-size: 12.5px; color: #2a3444; }
.p-login-wordmark { display: block; height: 30px; width: auto; margin: 0 0 18px; }
.p-login-langs { position: absolute; top: 18px; right: 22px; display: flex; gap: 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; } .p-login-langs a { color: var(--muted); text-decoration: none; padding: 4px 7px; border-radius: 5px; border: 1px solid transparent; } .p-login-langs a[aria-current=true] { color: var(--navy); border-color: var(--rule); background: var(--field); }
.p-login-foot { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: space-between; font-size: 11.5px; color: #8a93a3; border-top: 1px solid var(--rule); padding-top: 14px; }
.p-login-caption { position: fixed; left: clamp(24px, 5vw, 72px); bottom: 44px; z-index: 1; color: #fff; max-width: 520px; pointer-events: none; } .p-login-caption .eyebrow { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgb(255 255 255 / 72%); margin-bottom: 10px; } .p-login-caption h2 { margin: 0 0 10px; color: #fff; font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; text-shadow: 0 2px 18px rgb(0 0 0 / 35%); } .p-login-caption p { margin: 0; font-size: 14.5px; color: rgb(255 255 255 / 85%); line-height: 1.55; }
.p-login-caption .frameworks { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; } .p-login-caption .frameworks span { font-size: 11.5px; letter-spacing: .06em; padding: 6px 10px; border: 1px solid rgb(255 255 255 / 40%); border-radius: 4px; background: rgb(11 31 58 / 25%); backdrop-filter: blur(6px); }
@media (max-width: 1100px) { .p-login-caption { max-width: 380px; } .p-login-caption h2 { font-size: 24px; } .p-login-caption p { display: none; } }
@media (max-width: 820px) { .p-login-wrap { justify-content: center; align-items: flex-end; padding: 28px 20px 96px; } .p-login-card { padding: 28px 24px 22px; } .p-login-caption { left: 20px; right: 20px; bottom: 22px; max-width: none; text-align: center; } .p-login-caption h2 { display: none; } .p-login-caption .frameworks { justify-content: center; margin-top: 0; } }
@media (prefers-reduced-motion: reduce) { .p-login-bg video { display: none; } }
@media print { .p-sidebar, .p-mobile-bar, .p-staffbar, .p-actions, .p-sticky-save { display: none !important; } .p-main { margin: 0; padding: 0; } .p-panel, .p-tile { box-shadow: none; break-inside: avoid; } }

/* ---- technical baseline (Sweeper) ---- */
.p-sg-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-weight: 600; color: var(--navy); font-size: 13.5px; margin-bottom: 6px; }
.p-sg-right { margin-left: auto; font-weight: 500; color: var(--muted); font-size: 12.5px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.p-sg + .p-sg { margin-top: 12px; } .p-sg.muted { opacity: .7; }
.p-table.compact td, .p-table.compact th { padding: 7px 10px; } .p-table.compact .p-sub { white-space: normal; }
.p-mini { margin-top: 4px; } .p-mini summary { cursor: pointer; font-size: 12px; color: var(--accent); } .p-mini ul { margin: 4px 0 0 16px; padding: 0; color: var(--muted); }
.p-table tr.is-active td { background: var(--tint, #f5f3ff); }
@media (max-width: 860px) { .p-sg-right { margin-left: 0; } }
