/* ProbeLogix onboarding, S17 and S18 (mockup/Onboard1.dc.html, Onboard2.dc.html, States.dc.html).
   Monochrome; colour only for status. Scoped under .plx so the template's pages keep their look. */
.plx {
    --plx-text: #171717; --plx-text-2: #404040; --plx-text-3: #525252; --plx-muted: #6B6B6B;
    --plx-line: #E5E5E5; --plx-line-2: #EBEBEB; --plx-line-3: #F0F0F0; --plx-field: #D4D4D4;
    --plx-bg: #FFFFFF; --plx-bg-2: #FAFAFA; --plx-bg-3: #F5F5F5;
    --plx-link: #4338CA;
    font-family: Inter, system-ui, sans-serif; color: var(--plx-text); font-size: 14px; line-height: 1.5;
    min-height: 100vh; display: flex; flex-direction: column; background: var(--plx-bg);
}
.plx a { color: var(--plx-link); }
.plx a:hover { color: #312E81; }
.plx h1, .plx h2 { color: var(--plx-text); }
.plx .mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.plx .muted { color: var(--plx-muted); }
.plx .k { font-size: 12px; color: var(--plx-muted); }
.plx .plx-header { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; min-height: 60px; padding: 0 32px; border-bottom: 1px solid var(--plx-line-3); }
.plx .plx-logo { width: 24px; height: 24px; border-radius: 6px; background: var(--plx-text); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.plx .plx-brand { font-size: 15px; font-weight: 600; }
.plx .plx-host { font-size: 14px; font-weight: 600; }
.plx .plx-header-link { margin-left: auto; font-size: 13px; color: var(--plx-text-2); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.plx .plx-btn { font: inherit; font-size: 13px; font-weight: 500; border-radius: 6px; padding: 0 12px; height: 32px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; white-space: nowrap; line-height: 1.2; }
.plx .plx-btn-1 { background: var(--plx-text); color: #FFFFFF; border: 1px solid var(--plx-text); }
.plx .plx-btn-1:hover { background: #333333; color: #FFFFFF; }
.plx .plx-btn-2 { background: #FFFFFF; color: var(--plx-text); border: 1px solid var(--plx-line); }
.plx .plx-btn-2:hover { background: var(--plx-bg-2); color: var(--plx-text); }
.plx .plx-btn[disabled] { cursor: not-allowed; color: var(--plx-muted); background: var(--plx-bg-3); border-color: var(--plx-line); }
.plx .plx-btn-lg { height: 44px; font-size: 14px; }
.plx .plx-input { font: inherit; font-size: 14px; width: 100%; box-sizing: border-box; height: 40px; padding: 0 12px; border: 1px solid var(--plx-field); border-radius: 8px; background: #FFFFFF; color: var(--plx-text); }
.plx .plx-input-lg { font-size: 16px; height: 48px; padding: 0 14px; box-shadow: 0 0 0 3px var(--plx-line-3); }
.plx .plx-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.plx .plx-error { margin: 0; font-size: 13px; color: #B91C1C; }
.plx .plx-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 5px; white-space: nowrap; }
.plx .plx-dot { width: 8px; height: 8px; border-radius: 99px; display: inline-block; flex: none; }
.plx .plx-status-wait { background: #FEF3C7; color: #78350F; }
.plx .plx-status-wait .plx-dot { background: #D97706; }
.plx .plx-status-run { background: #EEF2FF; color: #3730A3; }
.plx .plx-status-run .plx-dot { background: #4F46E5; }
.plx .plx-status-ok { background: #DCFCE7; color: #166534; }
.plx .plx-status-ok .plx-dot { background: #16A34A; }
.plx .plx-status-bad { background: #FEF2F2; color: #B91C1C; }
.plx .plx-status-bad .plx-dot { background: #B91C1C; }

/* S17 */
.plx .plx-start { flex: 1; display: flex; justify-content: center; padding: 88px 24px 48px; }
.plx .plx-start-col { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 28px; }
.plx .plx-start h1 { margin: 0; font-size: 34px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; text-align: center; }
.plx .plx-lede { margin: 12px 0 0; font-size: 15px; color: var(--plx-text-3); line-height: 1.55; text-align: center; }
.plx .plx-start-form { display: flex; flex-direction: column; gap: 12px; }
.plx .plx-start-form .plx-label { margin: 0; }
.plx .plx-three { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin-top: 4px; }
.plx .plx-soon { display: block; font-size: 11px; font-weight: 400; }
.plx .plx-fine { margin: 0; font-size: 12px; text-align: center; color: var(--plx-muted); }
.plx .plx-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plx .plx-steps li { border: 1px solid var(--plx-line-3); border-radius: 10px; padding: 14px; }
.plx .plx-step-title { font-size: 13px; font-weight: 500; margin-top: 4px; }
.plx .plx-step-text { font-size: 12px; margin-top: 2px; color: var(--plx-muted); }
.plx .plx-or { display: flex; align-items: center; gap: 12px; color: var(--plx-muted); font-size: 12px; }
.plx .plx-or::before, .plx .plx-or::after { content: ""; flex: 1; height: 1px; background: var(--plx-line-2); }
.plx .plx-cli { border: 1px solid var(--plx-line-2); border-radius: 10px; overflow: hidden; }
.plx .plx-cli-highlight { border-color: var(--plx-text); box-shadow: 0 0 0 3px var(--plx-line-3); }
.plx .plx-cli-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--plx-bg-2); }
.plx .plx-cli-row code { flex: 1; font-size: 14px; color: var(--plx-text); }
.plx .plx-cli-row .plx-btn { height: 28px; }
.plx .plx-cli p { margin: 0; padding: 10px 14px; font-size: 12px; line-height: 1.5; border-top: 1px solid var(--plx-line-2); color: var(--plx-muted); }

/* Account step (the email path's second input) */
.plx .plx-account { flex: 1; display: flex; justify-content: center; padding: 72px 24px 48px; }
.plx .plx-account-col { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 16px; }
.plx .plx-account h1 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.plx .plx-account p { margin: 0; color: var(--plx-text-3); }

/* S18 */
.plx .plx-progress { list-style: none; margin: 0 0 0 16px; padding: 0; display: flex; gap: 6px; font-size: 12px; }
.plx .plx-progress li { padding: 4px 10px; border-radius: 99px; background: var(--plx-bg-3); color: var(--plx-text-3); }
.plx .plx-progress li[aria-current] { background: #EEF2FF; color: #3730A3; font-weight: 500; }
.plx .plx-scan { flex: 1; display: flex; flex-wrap: wrap; gap: 24px; padding: 24px 32px 32px; background: var(--plx-bg-2); }
.plx .plx-live { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.plx .plx-live-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--plx-text-2); }
.plx .plx-full-view { margin-left: auto; font-size: 13px; }
.plx .plx-browser { border: 1px solid var(--plx-line); border-radius: 12px; overflow: hidden; background: #FFFFFF; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.plx .plx-browser-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--plx-line-2); }
.plx .plx-address { flex: 1; font-size: 12px; color: var(--plx-text-3); background: var(--plx-bg-3); border-radius: 6px; padding: 5px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plx .plx-browser-body { min-height: 280px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.plx .plx-browser-body h2 { margin: 0; font-size: 14px; font-weight: 600; }
.plx .plx-found { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.plx .plx-found li { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; background: #FFFFFF; border: 1px solid var(--plx-line-2); border-radius: 99px; padding: 4px 10px; }
.plx .plx-found .plx-dot { width: 6px; height: 6px; background: #16A34A; }
.plx .plx-card { flex: 1 1 340px; max-width: 400px; min-width: 0; align-self: flex-start; background: #FFFFFF; border: 1px solid var(--plx-line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.plx .plx-card h1 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.35; }
.plx .plx-card p { margin: 0; font-size: 13px; color: var(--plx-text-3); line-height: 1.5; }
.plx .plx-card form { display: flex; flex-direction: column; gap: 14px; }
.plx .plx-card .plx-btn { width: 100%; box-sizing: border-box; }
.plx .plx-detected { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--plx-text-2); background: var(--plx-bg-3); border-radius: 6px; padding: 8px 10px; }
.plx .plx-card .plx-note { font-size: 12px; color: var(--plx-muted); }
.plx .plx-state { flex: 1 1 340px; max-width: 420px; min-width: 0; align-self: flex-start; background: #FFFFFF; border: 1px solid var(--plx-line-2); border-radius: 12px; padding: 36px 28px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; box-sizing: border-box; }
.plx .plx-state-icon { width: 44px; height: 44px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; background: #FEF2F2; color: #B91C1C; }
.plx .plx-state h2 { margin: 6px 0 0; font-size: 16px; font-weight: 600; }
.plx .plx-state p { margin: 0; font-size: 13px; color: var(--plx-text-3); line-height: 1.55; max-width: 320px; }
.plx .plx-state-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }

/* S19 (mockup/Onboard3.dc.html) */
.plx .plx-progress li.plx-pill-done { background: #F0FDF4; color: #166534; }
.plx .plx-results { flex: 1; display: flex; justify-content: center; padding: 48px 24px; }
.plx .plx-results-col { width: 100%; max-width: 860px; display: flex; flex-direction: column; gap: 28px; }
.plx .plx-results h1 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.plx .plx-results-line { margin: 10px 0 0; font-size: 15px; color: var(--plx-text-2); line-height: 1.55; }
.plx .plx-results-meta { margin: 6px 0 0; font-size: 13px; color: var(--plx-muted); display: flex; flex-wrap: wrap; gap: 8px; }
.plx .plx-note-box { margin: 12px 0 0; font-size: 13px; color: var(--plx-text-2); background: var(--plx-bg-3); border-radius: 8px; padding: 10px 12px; line-height: 1.5; }
/* SC-4, §7.2, SU-6: what a finished scan didn't cover, on S6 and S18. Monochrome; addresses in the code face. */
.plx .plx-coverage { margin: 12px 0 0; padding: 10px 12px; border: 1px solid var(--plx-line-2); border-radius: 8px; background: var(--plx-bg-2); font-size: 13px; }
.plx .plx-coverage.plx-coverage-page { margin: 12px 24px 0; }
.plx .plx-coverage-title { margin: 0 0 6px; font-size: 13px; font-weight: 600; }
.plx .plx-coverage-list { margin: 0; padding-left: 18px; line-height: 1.6; }
.plx .plx-coverage-list li + li { margin-top: 4px; }
.plx .plx-coverage-names { color: var(--plx-text-2); overflow-wrap: anywhere; }
.plx .plx-smoke { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plx .plx-smoke-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; border-radius: 10px; padding: 16px; border: 1px solid var(--plx-line-2); background: #FFFFFF; min-width: 0; }
.plx a.plx-smoke-card:hover { background: var(--plx-bg-2); }
.plx .plx-smoke-failed { border: 1.5px solid #FCA5A5; background: #FFFBFB; }
.plx .plx-smoke-wait { min-height: 96px; }
.plx .plx-badge.plx-status-run, .plx .plx-badge.plx-status-ok, .plx .plx-badge.plx-status-bad, .plx .plx-badge.plx-status-wait { align-self: flex-start; }
.plx .plx-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border-radius: 6px; border: 1px solid var(--plx-line-3); background: var(--plx-bg-3); }
.plx .plx-smoke-title { font-size: 14px; font-weight: 500; color: var(--plx-text); margin-top: 2px; }
.plx .plx-smoke-detail { font-size: 12px; color: var(--plx-muted); overflow-wrap: anywhere; }
.plx .plx-smoke-draft { font-size: 11px; color: var(--plx-muted); }
.plx .plx-results-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.plx .plx-next-h { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.plx .plx-next-lede { margin: 0 0 12px; font-size: 13px; }
.plx .plx-next { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.plx .plx-next-card { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--plx-line-2); border-radius: 10px; padding: 16px; min-width: 0; }
.plx .plx-next-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.plx .plx-next-title { font-size: 14px; font-weight: 500; }
.plx .plx-next-why { font-size: 12px; line-height: 1.5; }
.plx .plx-next-code { font-size: 12px; background: var(--plx-bg-3); border-radius: 6px; padding: 4px 8px; align-self: flex-start; }
.plx .plx-next-form { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.plx .plx-next-form .plx-label { margin: 0; }
.plx .plx-next-form .plx-btn { align-self: flex-start; }
.plx .plx-next-side { display: flex; align-items: center; gap: 4px; flex: none; }
.plx .plx-dismiss { font: inherit; font-size: 12px; color: var(--plx-muted); background: none; border: 0; cursor: pointer; padding: 4px 6px; border-radius: 4px; }
.plx .plx-dismiss:hover { background: var(--plx-bg-3); color: var(--plx-text); }
.plx .plx-metrics { width: 100%; border-collapse: collapse; font-size: 13px; }
.plx .plx-metrics th, .plx .plx-metrics td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--plx-line-3); }
.plx .plx-metrics th { font-weight: 500; color: var(--plx-muted); font-size: 12px; }

@media (max-width: 640px) {
    .plx .plx-smoke, .plx .plx-next { grid-template-columns: minmax(0, 1fr); }
    .plx .plx-results { padding: 32px 16px; }
    .plx .plx-three { grid-auto-flow: row; }
    .plx .plx-three, .plx .plx-steps { grid-template-columns: minmax(0, 1fr); }
    .plx .plx-header { padding: 0 16px; }
    .plx .plx-progress { margin-left: 0; }
    .plx .plx-start, .plx .plx-account { padding: 48px 16px 32px; }
    .plx .plx-scan { padding: 16px; }
    .plx .plx-card, .plx .plx-state { max-width: none; }
}

#blazor-error-ui.plx-error-ui { display: none; position: fixed; bottom: 0; left: 0; width: 100%; box-sizing: border-box; padding: .6rem 1.25rem .7rem; background: #FEF3C7; color: #78350F; z-index: 1000; font-family: Inter, system-ui, sans-serif; }
#blazor-error-ui.plx-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }
