/* ProbeLogix app shell, S6 and S25 (mockup/Scan.dc.html, Findings.dc.html). Builds on onboarding.css (tokens,
   buttons, badges, empty states). Light sidebar, monochrome; colour only for status. */
.plx.plx-app { flex-direction: row; flex-wrap: wrap; }
.plx .plx-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Sidebar */
.plx .plx-side { flex: 1 1 220px; max-width: 232px; min-width: 0; background: var(--plx-bg-2); border-right: 1px solid var(--plx-line-2); padding: 12px 10px; box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; min-height: 100vh; }
.plx .plx-side-brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 6px; color: var(--plx-text); text-decoration: none; font-size: 13px; font-weight: 600; }
.plx .plx-side-brand:hover { background: var(--plx-line-3); color: var(--plx-text); }
.plx .plx-nav { display: flex; flex-direction: column; gap: 2px; }
.plx .plx-nav-title { font-size: 11px; font-weight: 500; color: var(--plx-muted); padding: 4px 10px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plx .plx-nav-item { display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; padding: 7px 10px; border-radius: 6px; font: inherit; font-size: 13px; color: var(--plx-text-2); text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left; }
.plx .plx-nav-item:hover { background: var(--plx-line-3); color: var(--plx-text); }
.plx .plx-nav-item.plx-nav-on { background: #EDEDED; color: var(--plx-text); font-weight: 500; }
.plx .plx-nav-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plx .plx-nav-count { margin-left: auto; font-size: 12px; color: var(--plx-muted); }
.plx .plx-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.plx .plx-side-foot form { margin: 0; }
.plx .plx-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; }

/* Top bar and page header */
.plx .plx-topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-height: 52px; padding: 0 24px; border-bottom: 1px solid var(--plx-line-2); }
.plx .plx-crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; min-width: 0; }
.plx .plx-crumb-sep { color: #C4C4C4; }
.plx .plx-crumb-on { font-weight: 500; }
.plx .plx-env { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; border: 1px solid var(--plx-line); border-radius: 99px; font-size: 12px; color: var(--plx-text-2); }
.plx .plx-env .plx-dot { background: #16A34A; }
.plx .plx-topbar-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 0; }
.plx .plx-btn-stop { color: #B91C1C; }
.plx .plx-btn-stop:hover { color: #991B1B; }
.plx .plx-scanhead { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--plx-line-2); }
.plx .plx-scanhead-text { min-width: 0; }
.plx .plx-scanhead-title { display: flex; align-items: center; gap: 10px; }
.plx .plx-scanhead h1 { margin: 0; font-size: 16px; font-weight: 600; }
.plx .plx-scan-counts { margin: 4px 0 0; font-size: 13px; color: var(--plx-text-2); }
.plx .plx-scan-logs { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--plx-line-2); }
.plx .plx-roles { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.plx .plx-badge-plain { background: var(--plx-bg-3); color: var(--plx-text-2); }
.plx .plx-notice { margin: 12px 24px 0; padding: 10px 12px; border-radius: 8px; font-size: 13px; background: #FEF3C7; color: #78350F; }
.plx .plx-notice-bad { background: #FEF2F2; color: #B91C1C; }

/* S6 three columns */
.plx .plx-cols { flex: 1; display: flex; flex-wrap: wrap; min-height: 0; }
.plx .plx-col-left { flex: 1 1 220px; max-width: 260px; min-width: 0; border-right: 1px solid var(--plx-line-2); padding: 14px 10px; box-sizing: border-box; max-height: 760px; overflow-y: auto; }
.plx .plx-col-title { padding: 0 8px 8px; font-weight: 500; }
.plx .plx-col-empty { padding: 0 8px; margin: 0; }
.plx .plx-area { margin-bottom: 10px; }
.plx .plx-area-head { display: flex; padding: 4px 8px; font-size: 12px; font-weight: 500; color: var(--plx-text-3); }
.plx .plx-area-head span:last-child { margin-left: auto; }
.plx .plx-found-row { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 6px; font-size: 13px; }
.plx .plx-screen-on { background: #EEF2FF; color: #3730A3; font-weight: 500; }
.plx .plx-screen-on .k { color: #3730A3; }
.plx .plx-screen-dot { width: 6px; height: 6px; border-radius: 99px; flex: none; background: #D4D4D4; }
.plx .plx-screen-dot-on { background: #4F46E5; }
.plx .plx-screen-dot-new { background: #16A34A; }
.plx .plx-screen-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plx .plx-col-centre { flex: 999 1 520px; min-width: 0; padding: 16px; box-sizing: border-box; background: var(--plx-bg-2); display: flex; flex-direction: column; gap: 12px; }
.plx .plx-browser-grow { flex: 1; }
.plx .plx-shot { flex: 1; min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; box-sizing: border-box; }
.plx .plx-shot img { max-width: 100%; max-height: 560px; border: 1px solid var(--plx-line-2); border-radius: 6px; }
.plx .plx-shot-caption { font-size: 13px; font-weight: 500; }
.plx .plx-shot-empty { margin: 0; font-size: 13px; text-align: center; max-width: 360px; }
.plx .plx-shot-note { margin: 0; }
.plx .plx-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 12px; color: var(--plx-text-3); }
.plx .plx-controls-actions { margin-left: auto; display: flex; gap: 8px; }
.plx .plx-col-right { flex: 1 1 300px; max-width: 360px; min-width: 0; border-left: 1px solid var(--plx-line-2); display: flex; flex-direction: column; }
.plx .plx-col-head { padding: 14px 16px; border-bottom: 1px solid var(--plx-line-2); font-size: 13px; font-weight: 500; }
.plx .plx-col-right .plx-col-empty { padding: 12px 16px; }
.plx .plx-feed { list-style: none; margin: 0; padding: 6px 0; max-height: 640px; overflow-y: auto; }
.plx .plx-feed li { display: flex; gap: 10px; padding: 9px 16px; align-items: flex-start; }
.plx .plx-feed-text { flex: 1; min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
.plx .plx-feed-sub { font-size: 12px; margin-top: 2px; }
.plx .plx-feed-time { font-size: 11px; color: var(--plx-muted); }
.plx .plx-col-foot { margin-top: auto; padding: 14px 16px; border-top: 1px solid var(--plx-line-2); }
.plx .plx-col-foot .plx-btn { width: 100%; box-sizing: border-box; }

/* S25 */
.plx .plx-page { flex: 1; padding: 24px; box-sizing: border-box; display: flex; flex-direction: column; gap: 18px; }
.plx .plx-h1 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.plx .plx-h2 { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.plx .plx-lead { margin: 6px 0 0; font-size: 13px; }
.plx .plx-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.plx .plx-card-count { border: 1px solid var(--plx-line-2); border-radius: 8px; padding: 14px; }
.plx .plx-card-n { font-size: 22px; font-weight: 600; margin: 4px 0 2px; }
.plx .plx-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.plx .plx-tabs { display: flex; gap: 4px; }
.plx .plx-tab { font-size: 13px; border-radius: 6px; padding: 6px 10px; color: var(--plx-text-2); text-decoration: none; }
.plx .plx-tab:hover { background: var(--plx-bg-3); color: var(--plx-text); }
.plx .plx-tab-on { background: var(--plx-line-3); color: var(--plx-text); font-weight: 500; }
.plx .plx-filter-form { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.plx .plx-select { font: inherit; font-size: 12px; height: 32px; padding: 0 8px; border: 1px dashed var(--plx-field); border-radius: 6px; background: #FFFFFF; color: var(--plx-text-3); }
.plx .plx-table-wrap { border: 1px solid var(--plx-line-2); border-radius: 8px; overflow-x: auto; margin: 0; }
.plx .plx-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 860px; }
.plx .plx-table thead tr { text-align: left; background: var(--plx-bg-2); }
.plx .plx-table th { padding: 10px 14px; font-weight: 500; color: var(--plx-text-3); text-align: left; }
.plx .plx-table td { padding: 12px 14px; border-top: 1px solid var(--plx-line-3); vertical-align: top; }
.plx .plx-table .plx-group th { border-top: 1px solid var(--plx-line-2); background: #FFFFFF; padding-top: 14px; }
.plx .plx-finding-title { font-weight: 500; }
.plx .plx-td-muted { color: var(--plx-text-3); }
.plx .plx-nowrap { white-space: nowrap; }
.plx .plx-td-actions { white-space: nowrap; text-align: right; }
.plx .plx-td-actions .plx-btn { display: inline-flex; }
.plx .plx-state-page { max-width: none; align-self: stretch; margin: 24px; }
.plx .plx-page .plx-state-page { margin: 0; }
.plx .plx-state-icon-plain { background: var(--plx-bg-3); color: var(--plx-text-3); }

/* S7 app map (mockup/AppMap.dc.html) */
.plx .plx-downloads { display: flex; align-items: center; gap: 6px; }
.plx .plx-map-cols { flex: 1; display: flex; flex-wrap: wrap; min-height: 0; }
.plx .plx-map-main { flex: 999 1 640px; min-width: 0; }
.plx .plx-seg { display: flex; flex-wrap: wrap; background: var(--plx-bg-3); border-radius: 6px; padding: 2px; }
.plx .plx-seg-item { font-size: 12px; border-radius: 5px; padding: 5px 10px; color: var(--plx-text-3); text-decoration: none; }
.plx .plx-seg-item:hover { color: var(--plx-text); }
.plx .plx-seg-on { background: #FFFFFF; color: var(--plx-text); font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.plx .plx-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px dashed var(--plx-field); border-radius: 6px; font-size: 12px; color: var(--plx-text-3); background: #FFFFFF; text-decoration: none; box-sizing: border-box; }
.plx .plx-chip:hover { color: var(--plx-text); border-color: #A3A3A3; }
.plx .plx-chip-on { border-style: solid; border-color: var(--plx-text); color: var(--plx-text); font-weight: 500; }
.plx .plx-legend { margin-left: auto; display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--plx-text-3); }
.plx .plx-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.plx .plx-dot-pass { background: #16A34A; }
.plx .plx-dot-fail { background: #DC2626; }
.plx .plx-dot-none { background: #FFFFFF; border: 1.5px dashed #A3A3A3; box-sizing: border-box; }
.plx .plx-changes { margin: -8px 0 0; }
.plx .plx-areas { display: flex; flex-direction: column; gap: 24px; }
.plx .plx-map-area { display: flex; flex-direction: column; gap: 10px; }
.plx .plx-map-area-head { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.plx .plx-map-area-head h2 { margin: 0; font-size: 14px; font-weight: 600; }
.plx .plx-map-area-tested { margin-left: auto; font-size: 12px; }
.plx .plx-map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.plx .plx-sc { display: flex; flex-direction: column; border: 1px solid var(--plx-line); border-radius: 10px; overflow: hidden; background: #FFFFFF; text-decoration: none; color: var(--plx-text); transition: border-color .2s, box-shadow .2s; }
.plx .plx-sc:hover { border-color: #A3A3A3; box-shadow: 0 2px 8px rgba(0,0,0,.06); color: var(--plx-text); }
.plx .plx-sc-sel { border-color: var(--plx-text); box-shadow: 0 0 0 3px #EDEDED; }
.plx .plx-sc-shot { position: relative; height: 96px; background: var(--plx-bg-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.plx .plx-sc-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.plx .plx-sc-change { position: absolute; top: 6px; right: 6px; }
.plx .plx-sc-label { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px 9px; border-top: 1px solid var(--plx-line-2); }
.plx .plx-sc-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plx .plx-sc-meta { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--plx-text-3); min-width: 0; }
.plx .plx-sc-meta.muted { color: var(--plx-muted); }
.plx .plx-detail { flex: 1 1 340px; max-width: 400px; min-width: 0; border-left: 1px solid var(--plx-line-2); padding: 20px; box-sizing: border-box; display: flex; flex-direction: column; gap: 18px; }
.plx .plx-detail-top { display: flex; align-items: center; }
.plx .plx-detail-close { margin-left: auto; font-size: 13px; }
.plx .plx-detail-shot { border: 1px solid var(--plx-line-2); border-radius: 8px; overflow: hidden; min-height: 120px; max-height: 360px; background: var(--plx-bg-2); display: flex; align-items: flex-start; justify-content: center; }
.plx .plx-detail-shot img { width: 100%; display: block; }
.plx .plx-detail-shot .k { align-self: center; padding: 16px; text-align: center; }
.plx .plx-detail-caption { margin-top: -10px; }
.plx .plx-capture-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -8px; }
.plx .plx-detail-name { margin: 0; font-size: 16px; font-weight: 600; }
.plx .plx-detail-route { margin-top: 4px; overflow-wrap: anywhere; }
.plx .plx-detail-note { margin: 0; padding: 10px 12px; border-radius: 8px; font-size: 13px; line-height: 1.5; background: var(--plx-bg-3); color: var(--plx-text-2); }
.plx .plx-detail-facts { margin: 0; display: grid; grid-template-columns: 110px minmax(0, 1fr); row-gap: 10px; font-size: 13px; }
.plx .plx-detail-facts dd { margin: 0; }
.plx .plx-detail-h { font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.plx .plx-detail-empty { margin: 0; }
.plx .plx-detail-list { margin: 6px 0 8px; padding-left: 18px; font-size: 13px; line-height: 1.6; }
.plx .plx-untested { background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 8px; padding: 12px 14px; font-size: 13px; line-height: 1.5; }
.plx .plx-untested strong { font-weight: 600; }
.plx .plx-untested .plx-btn { height: 28px; }

@media (max-width: 640px) {
    .plx .plx-detail { max-width: none; border-left: 0; border-top: 1px solid var(--plx-line-2); }
    .plx .plx-legend { margin-left: 0; }
    .plx .plx-side { max-width: none; min-height: 0; }
    .plx .plx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .plx .plx-col-left, .plx .plx-col-right { max-width: none; }
    .plx .plx-topbar, .plx .plx-scanhead, .plx .plx-page { padding-left: 16px; padding-right: 16px; }
}

/* S7 access by role and test logins (SC-6, CV-3 groundwork, SU-3). */
.plx .plx-access, .plx .plx-logins { display: flex; flex-direction: column; gap: 10px; }
.plx .plx-access-table { min-width: 0; }
.plx .plx-access-table tbody th { padding: 12px 14px; border-top: 1px solid var(--plx-line-3); font-weight: 500; color: var(--plx-text); }
.plx .plx-logins form { margin: 0; }
.plx .plx-login-form { display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.plx .plx-login-form .plx-btn { align-self: flex-start; }

/* S1 test plan (mockup/Main.dc.html) */
.plx .plx-notice.plx-notice-inline { margin: 0; }
.plx .plx-crumb-link { color: var(--plx-muted); text-decoration: none; }
.plx .plx-crumb-link:hover { color: var(--plx-text); }
.plx .plx-plan-cols { flex: 1; display: flex; flex-wrap: wrap; min-height: 0; }
.plx .plx-plan-list { flex: 1 1 520px; min-width: 0; padding: 24px; box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; }
.plx .plx-plan-list .plx-filter-form { margin-left: auto; }
.plx .plx-suite-note { margin: 0; }
.plx .plx-plan-tree { border: 1px solid var(--plx-line-2); border-radius: 8px; overflow: hidden; }
.plx .plx-plan-suite:first-child .plx-plan-suite-head { border-top: 0; }
.plx .plx-plan-suite-head { display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 38px; background: var(--plx-bg-2); border-top: 1px solid var(--plx-line-2); font-size: 13px; }
.plx .plx-plan-caret { width: 10px; }
.plx .plx-plan-suite-name { font-weight: 500; color: var(--plx-text); text-decoration: none; }
.plx a.plx-plan-suite-name:hover { color: var(--plx-link); }
.plx .plx-plan-bar { margin-left: auto; display: flex; height: 4px; width: 72px; border-radius: 99px; overflow: hidden; background: var(--plx-line-2); flex: none; }
.plx .plx-plan-bar span { display: block; height: 4px; background: var(--plx-text); }
.plx .plx-plan-row { display: flex; align-items: center; gap: 12px; padding: 0 14px; min-height: 40px; border-top: 1px solid var(--plx-line-3); text-decoration: none; font-size: 13px; background: #FFFFFF; color: var(--plx-text); }
.plx .plx-plan-row:hover { background: var(--plx-bg-2); color: var(--plx-text); }
.plx .plx-plan-row-on { background: var(--plx-bg-3); box-shadow: inset 2px 0 0 var(--plx-text); }
.plx .plx-plan-key { width: 82px; flex: none; }
.plx .plx-plan-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plx .plx-plan-type { white-space: nowrap; }
.plx .plx-plan-pri { width: 20px; text-align: right; flex: none; }
.plx .plx-unreviewed { font-size: 11px; color: #92400E; white-space: nowrap; }
.plx .plx-case-icon { width: 12px; height: 12px; border-radius: 99px; flex: none; box-sizing: border-box; display: inline-block; }
.plx .plx-case-icon-ready { background: var(--plx-text); box-shadow: inset 0 0 0 3px #FFFFFF, 0 0 0 1.5px var(--plx-text); }
.plx .plx-case-icon-draft { border: 1.5px dashed #A3A3A3; }
.plx .plx-case-icon-gone { background: var(--plx-line); }
.plx .plx-case-icon-sm { width: 8px; height: 8px; border-color: #B45309; }
.plx .plx-req-table { min-width: 640px; }
.plx .plx-req-cases { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.plx .plx-req-cases li { display: flex; align-items: center; gap: 8px; }
.plx .plx-plan-detail { flex: 1 1 440px; max-width: 560px; min-width: 0; border-left: 1px solid var(--plx-line-2); padding: 24px; box-sizing: border-box; display: flex; flex-direction: column; gap: 20px; }
.plx .plx-case-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.plx .plx-case-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.plx .plx-case-why { margin: -12px 0 0; }
.plx .plx-case-title { margin: -8px 0 0; font-size: 18px; font-weight: 600; line-height: 1.35; }
.plx .plx-case-banner { margin: 0; font-size: 13px; line-height: 1.55; color: var(--plx-text-2); background: var(--plx-bg-2); border: 1px solid var(--plx-line-2); border-radius: 8px; padding: 10px 12px; }
.plx .plx-case-objective { margin: 0; font-size: 13px; line-height: 1.55; color: var(--plx-text-2); }
.plx .plx-case-h { margin: 0 0 10px; font-size: 13px; font-weight: 600; }
.plx .plx-case-list { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.7; color: var(--plx-text-2); }
.plx .plx-case-tabs-row { display: flex; align-items: center; margin-bottom: 10px; }
.plx .plx-case-tabs-row .plx-case-h { margin: 0; }
.plx .plx-case-tabs-row .plx-seg { margin-left: auto; }
.plx .plx-case-steps { list-style: none; margin: 0; padding: 0; border: 1px solid var(--plx-line-2); border-radius: 8px; }
.plx .plx-case-steps li { display: flex; gap: 12px; padding: 12px; border-top: 1px solid var(--plx-line-3); font-size: 13px; }
.plx .plx-case-steps li:first-child { border-top: 0; }
.plx .plx-step-n { width: 16px; flex: none; padding-top: 1px; }
.plx .plx-step-text-col { min-width: 0; display: flex; flex-direction: column; gap: 3px; overflow-wrap: anywhere; }
.plx .plx-code { border: 1px solid var(--plx-line-2); border-radius: 10px; overflow: hidden; }
.plx .plx-code-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--plx-line-2); }
.plx .plx-code-head .plx-btn { margin-left: auto; }
.plx .plx-code-title { font-size: 13px; font-weight: 600; }
.plx .plx-btn-sm { height: 26px; font-size: 12px; }
.plx .plx-code-body { margin: 0; padding: 10px 12px; font-size: 11.5px; line-height: 1.7; background: var(--plx-bg-2); overflow-x: auto; white-space: pre; max-height: 520px; }
.plx .plx-trace { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; font-size: 13px; }
.plx .plx-trace > li:not(.plx-trace-arrow) { flex: 1 1 140px; min-width: 0; border: 1px solid var(--plx-line-2); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
.plx .plx-trace-arrow { align-self: center; color: var(--plx-muted); }

/* S21 case editor (mockup/CaseEdit.dc.html) */
.plx .plx-edit-cols { flex: 1; display: flex; flex-wrap: wrap; min-height: 0; }
.plx .plx-edit-main { flex: 999 1 560px; min-width: 0; padding: 24px; box-sizing: border-box; display: flex; flex-direction: column; gap: 20px; }
.plx .plx-edit-title { font-size: 15px; font-weight: 500; }
.plx .plx-edit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.plx .plx-edit-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plx .plx-edit-select { width: 100%; font: inherit; font-size: 13px; height: 34px; padding: 0 8px; border: 1px solid var(--plx-field); border-radius: 8px; background: #FFFFFF; color: var(--plx-text); min-width: 0; }
.plx .plx-edit-area { height: auto; padding: 8px 12px; font-size: 13px; line-height: 1.5; resize: vertical; }
.plx .plx-input[disabled], .plx .plx-edit-select[disabled], .plx .plx-edit-input[disabled] { background: var(--plx-bg-2); color: var(--plx-text-2); }
.plx .plx-confirm { border: 1px solid #FDE68A; background: #FFFBEB; border-radius: 10px; padding: 14px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 13px; }
.plx .plx-confirm-text { flex: 1 1 320px; min-width: 0; color: var(--plx-text-2); display: flex; flex-direction: column; gap: 4px; }
.plx .plx-confirm-q { font-weight: 500; color: var(--plx-text); }
.plx .plx-confirmed { margin: 0; }
.plx .plx-edit-steps-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.plx .plx-edit-steps-head .plx-h2 { margin: 0; }
.plx .plx-edit-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.plx .plx-edit-step { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 8px; border: 1px solid var(--plx-line-2); background: #FFFFFF; }
.plx .plx-edit-step-changed { border-color: #C7D2FE; background: #F5F5FF; }
.plx .plx-edit-step .plx-step-n { padding-top: 9px; }
.plx .plx-edit-move { display: flex; flex-direction: column; }
.plx .plx-icon-btn { font: inherit; width: 30px; height: 30px; border: 0; background: none; border-radius: 6px; color: var(--plx-muted); cursor: pointer; }
.plx .plx-icon-btn:hover:not([disabled]) { background: var(--plx-bg-3); color: var(--plx-text); }
.plx .plx-icon-btn[disabled] { color: #D4D4D4; cursor: default; }
.plx .plx-edit-step-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.plx .plx-edit-input { width: 100%; box-sizing: border-box; font: inherit; font-size: 13px; height: 34px; padding: 0 10px; border: 1px solid var(--plx-line); border-radius: 6px; background: #FFFFFF; color: var(--plx-text); min-width: 0; }
.plx .plx-edit-expect { display: flex; gap: 8px; align-items: center; min-width: 0; }
.plx .plx-edit-expect > .k { width: 46px; flex: none; }
.plx .plx-edit-note { font-size: 12px; color: #3730A3; }
.plx .plx-edit-row { display: flex; gap: 8px; margin-top: 10px; }
.plx .plx-edit-side { flex: 1 1 400px; max-width: 520px; min-width: 0; border-left: 1px solid var(--plx-line-2); padding: 20px; box-sizing: border-box; display: flex; flex-direction: column; gap: 16px; }
.plx .plx-code-lines { font-size: 11.5px; line-height: 1.75; background: var(--plx-bg-2); padding: 10px 0; overflow-x: auto; max-height: 560px; }
.plx .plx-code-line { white-space: pre; padding-right: 12px; }
.plx .plx-code-line-on { background: #EEF2FF; }
.plx .plx-code-n { display: inline-block; width: 26px; color: #A3A3A3; text-align: right; margin-right: 10px; user-select: none; }
.plx .plx-checks { border: 1px solid var(--plx-line-2); border-radius: 10px; padding: 12px 14px; }
.plx .plx-checks-title { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.plx .plx-checks ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.plx .plx-checks li { display: flex; gap: 8px; }
.plx .plx-check-mark { width: 12px; flex: none; }
.plx .plx-check-ok .plx-check-mark { color: #166534; }
.plx .plx-check-bad { color: #B91C1C; }
.plx .plx-check-warn .plx-check-mark { color: #B45309; }
.plx .plx-edit-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--plx-line-2); padding-top: 14px; }
.plx .plx-edit-save { margin-left: auto; }

@media (max-width: 640px) {
    .plx .plx-plan-detail, .plx .plx-edit-side { max-width: none; border-left: 0; border-top: 1px solid var(--plx-line-2); }
    .plx .plx-plan-list, .plx .plx-plan-detail, .plx .plx-edit-main, .plx .plx-edit-side { padding-left: 16px; padding-right: 16px; }
    .plx .plx-edit-grid, .plx .plx-edit-grid-2 { grid-template-columns: minmax(0, 1fr); }
    .plx .plx-plan-type, .plx .plx-unreviewed { display: none; }
    .plx .plx-plan-list .plx-filter-form { margin-left: 0; }
}

/* S20 test data (mockup/TestData.dc.html). Colour only for status. */
.plx .plx-td-box { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; border: 1px solid var(--plx-line-2); border-radius: 10px; padding: 12px 14px; }
.plx .plx-td-box-text { flex: 1 1 300px; min-width: 0; }
.plx .plx-td-box-title { font-size: 13px; font-weight: 500; }
.plx .plx-td-warn { border-color: #FDE68A; background: #FFFBEB; }
.plx .plx-td-warn-text { font-size: 12px; color: var(--plx-text-3); margin-top: 2px; }
.plx .plx-td-box form { display: contents; }
.plx .plx-td-dot-ok { background: #16A34A; }
.plx .plx-td-dot-bad { background: #B91C1C; }
.plx .plx-td-dot-run { background: #4F46E5; }
.plx .plx-td-dot-none { background: #A3A3A3; }
.plx .plx-td-table { min-width: 720px; }
.plx .plx-td-row a { color: var(--plx-text); text-decoration: none; }
.plx .plx-td-row-on td { background: var(--plx-bg-2); }
.plx .plx-td-key { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; font-weight: 500; }
.plx .plx-td-unused { color: #B45309; }
.plx .plx-td-ai { background: #EEF2FF; color: #3730A3; }
.plx .plx-td-you { background: #F0FDF4; color: #166534; }
.plx .plx-td-found { background: var(--plx-bg-3); color: var(--plx-text-2); }
.plx .plx-td-bad { background: #FEF2F2; color: #B91C1C; }
.plx .plx-td-ok { background: #F0FDF4; color: #166534; }
.plx .plx-td-wait { background: var(--plx-bg-3); color: var(--plx-text-2); }
.plx .plx-td-fields { border: 1px solid var(--plx-line-2); border-radius: 8px; background: var(--plx-bg-2); padding: 10px 12px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; line-height: 1.8; overflow-x: auto; margin: 0; }
.plx .plx-td-fields dt { color: var(--plx-muted); display: inline; margin-right: 8px; }
.plx .plx-td-fields dd { display: inline; margin: 0; }
.plx .plx-td-fields div { display: block; }
.plx .plx-td-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.plx .plx-td-head > :last-child { margin-left: auto; }
.plx .plx-td-h3 { font-size: 13px; font-weight: 500; margin: 0; }
.plx .plx-td-uses { border: 1px solid var(--plx-line-2); border-radius: 8px; margin: 0; padding: 0; list-style: none; }
.plx .plx-td-uses li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 9px 12px; font-size: 13px; border-top: 1px solid var(--plx-line-3); }
.plx .plx-td-uses li:first-child { border-top: 0; }
.plx .plx-td-use-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plx .plx-td-use-note { flex-basis: 100%; font-size: 12px; color: var(--plx-text-3); }
.plx .plx-td-steps { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.6; }
.plx .plx-td-collide { background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 8px; padding: 12px 14px; font-size: 13px; line-height: 1.5; }
.plx .plx-td-edit { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.plx .plx-td-edit label { font-size: 12px; color: var(--plx-text-3); display: flex; flex-direction: column; gap: 4px; }
.plx .plx-td-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.plx .plx-td-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.plx .plx-td-tab { font: inherit; font-size: 13px; border: 0; background: none; border-radius: 6px; padding: 6px 10px; color: var(--plx-text-2); }
.plx .plx-td-tab-on { background: var(--plx-bg-3); font-weight: 500; color: var(--plx-text); }
.plx .plx-td-tab[disabled] { color: var(--plx-muted); cursor: not-allowed; }
/* The projects list (ON-8 groundwork): three short columns. */
.plx .plx-projects-table { min-width: 0; }


/* INT-1: the project's pull request checks (Components/Pages/GitHubSettings.razor). */
.plx .plx-gh-form { display: grid; gap: 16px; max-width: 640px; margin-top: 16px; }
.plx .plx-gh-group { border: 1px solid var(--plx-line-3); border-radius: 10px; padding: 16px; margin: 0; display: grid; gap: 8px; }
.plx .plx-gh-group legend { font-size: 14px; font-weight: 600; padding: 0 4px; float: none; width: auto; margin: 0; }
.plx .plx-gh-group .plx-label { margin: 6px 0 0; }
.plx .plx-gh-choice { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.plx .plx-gh-indent { display: grid; gap: 8px; padding-left: 24px; }
.plx .plx-gh-narrow { max-width: 120px; }
.plx .plx-gh-actions { display: flex; gap: 8px; margin-top: 8px; }
.plx .plx-gh-note { font-size: 14px; }
