@font-face{font-family:Inter;src:url('./assets/InterVariable.woff2') format('woff2');font-weight:100 900;font-display:swap}
:root{--surface:#fff;--subtle:#f8fafc;--sunken:#f1f4f9;--text:#0b1220;--secondary:#4b5468;--tertiary:#667085;--border:#e3e7ef;--brand:#1d3bbc;--brand-subtle:#e6edfc;--ai:#6941c6;--ai-subtle:#f2eefc;--green:#0f7a5f;--green-bg:#e3f8f1;--amber:#8a4b00;--amber-bg:#fef1dc;--red:#b42318;--red-bg:#fde7e3}
*{box-sizing:border-box}body{margin:0;background:#f7f8fc;color:var(--text);font:14px/1.45 Inter,system-ui,sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}a{color:var(--brand);text-decoration:none}.skip{position:fixed;top:-60px;z-index:100;background:white;padding:12px}.skip:focus{top:0}.sidebar{width:220px;position:fixed;inset:0 auto 0 0;background:white;border-right:1px solid var(--border);padding:18px;display:flex;flex-direction:column;gap:8px;overflow:auto}.brand{height:44px;display:flex;align-items:center;gap:10px;color:var(--text);font-size:15px;font-weight:600}.mark{width:34px;height:34px;background:var(--brand);color:white;border-radius:10px;display:grid;place-items:center;font-weight:700;font-size:17px}.product{border:1px solid var(--border);background:var(--subtle);border-radius:10px;padding:10px;display:grid;gap:4px;margin:8px 0}.product small,.nav-label{font-size:11px;color:var(--secondary)}.nav-label{margin:8px 0 0}.nav-static{display:block;color:var(--secondary);padding:5px 8px;font-size:13px}nav{display:grid;gap:4px}nav a{display:flex;align-items:center;gap:8px;min-height:34px;padding:8px;border-radius:8px;color:var(--secondary);font-size:13px}nav a img{width:7px;height:7px}nav a.active{color:var(--brand);background:var(--brand-subtle);font-weight:600}.user{display:flex;gap:10px;padding:8px;background:var(--subtle);border-radius:10px;margin-top:16px;align-items:center}.user strong{font-size:12px}.user small{display:block;font-size:11px;color:var(--secondary)}.app{margin-left:220px}.topbar{height:72px;background:white;border-bottom:1px solid var(--border);padding:20px;display:flex;align-items:center;justify-content:space-between;color:var(--secondary);font-size:13px}main{padding:32px;max-width:1400px;margin:0 auto}.page-heading{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-bottom:26px}h1{font-size:28px;line-height:36px;margin:0 0 4px;font-weight:700}h2{font-size:18px;line-height:26px;margin:0 0 16px}h3{font-size:15px;line-height:22px;margin:0 0 12px}p{margin:0 0 16px;color:var(--secondary)}.page-heading p{margin:0}.button{border:1px solid var(--border);border-radius:8px;background:white;color:var(--text);font-weight:600;min-height:40px;padding:8px 16px;display:inline-flex;justify-content:center;align-items:center;gap:8px}.button:hover{background:var(--subtle)}.button.primary{background:var(--brand);border-color:var(--brand);color:white}.button.primary:hover{background:#183099}.button.danger{color:var(--red)}.text-button{border:0;background:transparent;color:var(--brand);padding:5px 0;text-align:left;font-size:12px}.pill{display:inline-flex;align-items:center;font-size:11px;padding:6px 10px;border-radius:999px;white-space:nowrap}.success{color:var(--green);background:var(--green-bg)}.warning{color:var(--amber);background:var(--amber-bg)}.muted{color:var(--secondary)}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px}.metric{padding:12px 16px;background:white;border:1px solid var(--border);border-radius:8px;min-height:96px}.metric strong{font-size:24px;font-weight:600;display:block;line-height:30px;margin-bottom:6px}.metric small{font-size:12px;color:var(--secondary)}.columns{display:grid;grid-template-columns:minmax(0,2.4fr) minmax(280px,1fr);gap:20px;margin-bottom:20px}.card{background:white;border-radius:12px;padding:20px;min-width:0}.source-list{display:grid;gap:12px}.source-row{border:1px solid var(--border);border-radius:8px;padding:12px 16px;display:grid;grid-template-columns:88px minmax(140px,1fr) 78px 110px;gap:16px;align-items:center;min-height:84px}.source-kind{color:var(--brand);font-size:12px}.source-title{font-weight:600;font-size:15px;overflow-wrap:anywhere}.source-meta{font-size:12px;color:var(--secondary);margin-top:5px}.source-status{font-size:12px;color:var(--green)}.source-row .text-button{font-size:12px}.boundary{display:flex;flex-direction:column;gap:16px}.boundary h2,.boundary h3,.boundary p{margin:0}.boundary .caption{font-size:12px}.bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.ai-card{background:var(--ai-subtle)}.caption{font-size:12px}.pilot-notice{font-size:12px;color:var(--secondary);margin-top:20px;display:flex;gap:16px;align-items:center;flex-wrap:wrap}.filters{display:grid;grid-template-columns:minmax(260px,1fr) repeat(3,minmax(140px,160px));gap:12px;margin-bottom:24px}input,select,textarea{border:1px solid var(--border);border-radius:8px;background:white;color:var(--text);padding:10px 12px;width:100%;min-height:40px}textarea{resize:vertical;min-height:100px}.library-grid{display:grid;grid-template-columns:240px minmax(0,1fr);gap:20px}.areas{align-self:start}.area-button{width:100%;border:0;background:transparent;display:flex;justify-content:space-between;gap:12px;text-align:left;padding:10px 8px;color:var(--secondary);border-radius:8px}.area-button.active{background:var(--brand-subtle);color:var(--brand);font-weight:600}.areas .nav-label{display:block;margin:20px 0 8px}.table-wrap{padding:12px;overflow:auto}.table-summary{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 12px;font-size:14px;font-weight:600}table{width:100%;border-collapse:separate;border-spacing:0 12px;text-align:left;font-size:12px}th{background:var(--subtle);color:var(--secondary);font-weight:500;height:36px;padding:8px 16px;white-space:nowrap}th:first-child{border-radius:12px 0 0 12px}th:last-child{border-radius:0 12px 12px 0}td{height:64px;padding:12px 16px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);color:var(--secondary)}td:first-child{border-left:1px solid var(--border);border-radius:8px 0 0 8px}td:last-child{border-right:1px solid var(--border);border-radius:0 8px 8px 0}.case-link{font-size:14px;color:var(--text);text-align:left;border:0;background:transparent;padding:0;min-width:190px;max-width:310px}.case-link:hover{text-decoration:underline;color:var(--brand)}.priority-Critical{color:var(--red)}.priority-High,.priority-Medium{color:var(--amber)}.priority-Low{color:var(--secondary)}.state-ready{color:var(--green)}.pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;margin:4px 0 16px}.pagination button{min-height:32px;padding:4px 12px;font-size:12px}.ai-caption{color:var(--ai);font-size:12px}.empty{text-align:center;padding:50px 20px}.empty p{margin:10px 0 20px}.modal-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.modal-header h2{margin:0}.close{border:0;background:var(--subtle);border-radius:8px;width:36px;height:36px;font-size:24px}dialog{border:1px solid var(--border);border-radius:16px;padding:24px;max-width:740px;width:calc(100% - 32px);max-height:88vh;box-shadow:0 20px 70px #0b122033;color:var(--text)}dialog::backdrop{background:#0b122050}label{display:grid;gap:6px;font-weight:500;font-size:13px;margin-bottom:16px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.form-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}.error{color:var(--red);background:var(--red-bg);padding:12px;border-radius:8px;margin:12px 0;font-size:13px}.import-zone{background:var(--ai-subtle);border:1px dashed var(--ai);border-radius:12px;padding:24px;text-align:center;margin-bottom:16px}.scope-list{max-height:240px;overflow:auto;border:1px solid var(--border);border-radius:8px;margin:12px 0}.scope-choice{display:flex;align-items:center;justify-content:flex-start;padding:12px;margin:0;border-bottom:1px solid var(--border);gap:12px}.scope-choice input{width:18px;min-height:18px;height:18px;margin:0}.consent{display:flex;gap:12px;align-items:center;background:var(--ai-subtle);padding:16px;border-radius:8px;margin:16px 0}.consent input{width:20px;min-height:20px;height:20px;margin:0}.record{padding:16px;background:var(--subtle);border-radius:8px;margin-bottom:12px}.record h3{margin-bottom:8px}.prewrap{white-space:pre-wrap;overflow-wrap:anywhere}.source-records{max-height:380px;overflow:auto}.source-records p{margin:0 0 8px}#toast{position:fixed;bottom:24px;left:calc(50% + 110px);transform:translateX(-50%);padding:12px 20px;background:var(--text);color:white;border-radius:10px;box-shadow:0 8px 30px #0b122025;z-index:100;max-width:80vw;display:none}.status-note{padding:12px;background:var(--subtle);border-radius:8px;font-size:12px;margin-bottom:16px}.source-footer{display:flex;justify-content:space-between;gap:12px;margin-top:20px}.danger-zone{margin-top:24px;border-top:1px solid var(--border);padding-top:16px}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;background:var(--subtle);padding:16px;border-radius:8px}.mobile-brand{display:none}
@media(min-width:1550px){main{max-width:1280px}}@media(max-width:1190px){.source-row{grid-template-columns:70px 1fr;gap:8px 12px}.source-status{grid-column:1}.source-row .text-button{grid-column:2}.filters{grid-template-columns:1fr 1fr}.library-grid{grid-template-columns:200px minmax(0,1fr)}.columns{grid-template-columns:minmax(0,1fr) 280px}.sidebar{width:200px}.app{margin-left:200px}main{padding:24px}#toast{left:calc(50% + 100px)}}@media(max-width:850px){.sidebar{position:static;width:100%;padding:12px 16px;flex-direction:row;flex-wrap:wrap;align-items:center;border-right:0;border-bottom:1px solid var(--border);overflow:visible;gap:8px}.sidebar>.nav-label,.sidebar>.nav-static,.sidebar .user,.sidebar>.text-button,.sidebar>a:not(.brand){display:none}.sidebar .product{display:flex;width:100%;align-items:center;gap:12px;order:3;margin:0}.sidebar .product small{display:none}.sidebar .product select{flex:1;min-width:0}.sidebar .product button{white-space:nowrap}.sidebar nav{display:flex;margin-left:auto;flex-wrap:wrap}.sidebar nav .nav-static{display:none}.sidebar nav a{font-size:12px}.sidebar nav a img{display:none}.app{margin-left:0}.topbar{min-height:56px;height:auto}.columns{grid-template-columns:1fr}.boundary{display:grid;grid-template-columns:1fr 1fr}.boundary h2{grid-column:1/-1}.metrics{gap:12px}.bottom-grid{grid-template-columns:1fr}.library-grid{grid-template-columns:1fr}.areas{display:flex;gap:8px;flex-wrap:wrap;padding:12px}.areas h2,.areas .nav-label,.areas .button,.areas .suite-button{display:none}.area-button{width:auto;font-size:12px;padding:8px}.table-wrap{min-height:400px}#toast{left:50%}h1{font-size:24px}.page-heading{gap:12px}.page-heading p{font-size:13px}}@media(max-width:550px){main{padding:20px 16px}.topbar{font-size:11px;padding:12px 16px}.brand{font-size:0;gap:0}.brand .mark{font-size:17px;width:28px;height:28px}.metrics{grid-template-columns:1fr 1fr}.filters{grid-template-columns:1fr 1fr}.filters input{grid-column:1/-1}.page-heading{flex-wrap:wrap}.boundary{display:flex}.form-grid{grid-template-columns:1fr}.source-row{padding:12px}.source-title{font-size:13px}.source-meta{font-size:11px}.source-footer{flex-wrap:wrap}}

#testlyfe-review-dialog [hidden],#testlyfe-ai-dialog [hidden],#ai-error[hidden],#ai-payload[hidden],#testlyfe-execution-dialog [hidden],#testlyfe-suite-dialog [hidden],#testlyfe-bulk-dialog [hidden],#testlyfe-explorer-dialog [hidden]{display:none!important}
#ai-case-selection input[type="checkbox"]{width:20px;height:20px;min-height:20px;padding:0;margin:0;accent-color:#243bbd}
#testlyfe-explorer-dialog fieldset{border:1px solid var(--border);border-radius:12px;padding:16px;margin:0 0 16px;min-width:0}#testlyfe-explorer-dialog legend{font-weight:600;padding:0 6px}#content details>summary,#testlyfe-explorer-dialog details>summary{cursor:pointer;font-weight:500;margin:8px 0}.explorer-shots{display:flex;flex-wrap:wrap;gap:8px}.explorer-shots img{max-width:100%;max-height:200px;border:1px solid var(--border);border-radius:8px}
#testlyfe-steps-dialog [hidden],#case-shots [hidden]{display:none!important}.case-steps{border:1px solid var(--border);border-radius:12px;padding:16px;margin:0 0 16px;min-width:0}.case-steps legend{font-weight:600;padding:0 6px}.case-steps-list{padding-left:0;list-style:none;margin:0 0 12px}.case-step{border-top:1px solid var(--border);padding:12px 0}.case-step-head{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:6px}.case-shots{margin-top:20px;border-top:1px solid var(--border);padding-top:12px}.case-shots-grid{display:flex;flex-wrap:wrap;gap:12px}.case-shot{margin:0;max-width:180px}.case-shot-thumb{padding:0;border:1px solid var(--border);border-radius:8px;background:none;cursor:zoom-in}.case-shot-thumb img{display:block;width:160px;height:110px;object-fit:cover;border-radius:8px}.case-shot-view img{max-width:100%;max-height:70vh;border:1px solid var(--border);border-radius:8px}#testlyfe-steps-dialog{max-width:760px}.badge.no-steps{display:inline-block;margin-left:6px;padding:1px 8px;border-radius:999px;border:1px solid #b45309;color:#92400e;background:#fffbeb;font-size:12px;font-weight:600;white-space:nowrap}
#testlyfe-workbench-dialog [hidden],#review-workbench [hidden]{display:none!important}#testlyfe-workbench-dialog{max-width:820px}#review-workbench article.card{margin-top:12px}
#testlyfe-workbench-dialog label.wb-consent{display:flex;align-items:flex-start;gap:8px;text-align:left}#testlyfe-workbench-dialog input[type="checkbox"]{width:20px;height:20px;min-height:20px;padding:0;margin:0;flex:none;accent-color:#243bbd}
#ai-project-approval [hidden]{display:none!important}#ai-project-approval label.approval-consent{display:flex;align-items:flex-start;gap:8px;text-align:left}#ai-project-approval input[type="checkbox"]{width:20px;height:20px;min-height:20px;padding:0;margin:0;flex:none;accent-color:#243bbd}
#ai-payload label.review-consent{display:flex;align-items:flex-start;gap:8px;text-align:left}#ai-payload input[type="checkbox"]{width:20px;height:20px;min-height:20px;padding:0;margin:0;flex:none;accent-color:#243bbd}
#srcrepair-root [hidden]{display:none!important}#srcrepair-root p,#srcrepair-root li,#srcrepair-root summary,#srcrepair-root .metric,#srcrepair-root .srcrepair-pre{overflow-wrap:anywhere;min-width:0}#srcrepair-root .srcrepair-pre{white-space:pre-wrap;max-height:320px;overflow:auto;border:1px solid var(--border);border-radius:8px;padding:8px}#srcrepair-root label.srcrepair-consent{display:flex;align-items:flex-start;gap:8px;text-align:left}#srcrepair-root input[type="checkbox"]{width:20px;height:20px;min-height:20px;padding:0;margin:0;flex:none;accent-color:#243bbd}
#docdetails-root [hidden]{display:none!important}#docdetails-root p,#docdetails-root li,#docdetails-root summary,#docdetails-root code,#docdetails-root td,#docdetails-root .metric{overflow-wrap:anywhere;min-width:0}#docdetails-root .docdetails-list{padding-left:20px;max-height:360px;overflow:auto}#docdetails-root .docdetails-list li{margin:4px 0}#docdetails-root .docdetails-tag{display:inline-block;min-width:28px;font-weight:600}#docdetails-root .docdetails-table{max-width:100%;overflow-x:auto}#docdetails-root table{border-collapse:collapse;min-width:640px}#docdetails-root th,#docdetails-root td{border:1px solid var(--border);padding:4px 8px;text-align:left;vertical-align:top}#docdetails-root label.docdetails-consent{display:flex;align-items:flex-start;gap:8px;text-align:left}#docdetails-root input[type="checkbox"]{width:20px;height:20px;min-height:20px;padding:0;margin:0;flex:none;accent-color:#243bbd}@media (max-width:640px){#docdetails-root .docdetails-list li{margin-left:0!important}}
#pq-root [hidden]{display:none!important}#pq-root p,#pq-root h3,#pq-root li,#pq-root code{overflow-wrap:anywhere;min-width:0}#pq-root .pq-question{margin-top:12px}#pq-root textarea{width:100%;box-sizing:border-box}#pq-root details>summary{cursor:pointer;font-weight:500;margin:8px 0}#pq-root .pq-question.pq-focused{outline:3px solid var(--brand,#333);outline-offset:2px}#pq-root .cql-panel,#pq-root .pq-ai-card{min-width:0;max-width:100%;overflow-wrap:anywhere;box-sizing:border-box}#pq-root .cql-panel{margin-top:10px;border-top:1px dashed var(--border,#ccc);padding-top:8px}#pq-root .cql-links{list-style:none;padding:0;margin:6px 0;display:grid;gap:8px}#pq-root .cql-item{border:1px solid var(--border,#ccc);border-radius:6px;padding:8px;min-width:0}#pq-root .cql-ai{border-left:4px solid var(--secondary,#888);padding:4px 10px;margin:8px 0}#pq-root .cql-item code,#pq-root .cql-item .caption,#pq-root .cql-evidence li{overflow-wrap:anywhere;word-break:break-word}#pq-root .cql-evidence{padding-left:18px}#pq-root .cql-evidence blockquote{margin:4px 0 4px 8px}#pq-root .cql-retire .cc-consent{display:flex;gap:8px;align-items:flex-start;text-align:left;width:auto}#pq-root .cql-retire .cc-consent input[type=checkbox]{flex:none;width:20px;height:20px;min-width:0;min-height:0;margin:2px 0 0;padding:0}#pq-root .cql-recovery .button,#pq-root .cql-retire .button{margin:4px 4px 0 0}#pq-root .cql-link-line{margin:6px 0 2px}#pq-root .cql-state{font-weight:600}#pq-root .cql-audit{margin:2px 0 6px}#pq-root .cql-audit dl{display:grid;grid-template-columns:minmax(0,max-content) minmax(0,1fr);gap:2px 10px;margin:4px 0}#pq-root .cql-audit dt,#pq-root .cql-audit dd{margin:0;min-width:0;overflow-wrap:anywhere;word-break:break-word}
#lh-root [hidden]{display:none!important}#lh-root p,#lh-root li,#lh-root h3,#lh-root code{overflow-wrap:anywhere;min-width:0}#lh-root .lh-list{padding-left:20px}#lh-root .lh-list li{margin:6px 0}#lh-root details>summary{cursor:pointer;font-weight:500;margin:8px 0}
/* Standalone-owned Requirements & Coverage presentation. Every rule is scoped to #rc-root so no other route, the shared library
   styles or the inherited design tokens change. Uses the inherited tokens (--border, --brand, --green, --amber, ...). */
#rc-root [hidden]{display:none!important}
#rc-root>.card{margin-top:20px}
#rc-root p,#rc-root li,#rc-root h2,#rc-root h3,#rc-root code,#rc-root td{overflow-wrap:anywhere;min-width:0}
#rc-root .rc-heading{flex-wrap:wrap;gap:12px 24px}
#rc-root .rc-heading-text{flex:1 1 320px;min-width:0}
#rc-root .rc-heading-actions{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;min-width:0;max-width:100%}
#rc-root .rc-heading-actions>.button{max-width:100%;white-space:normal;text-align:center}
#rc-root details>summary{cursor:pointer;font-weight:500;margin:8px 0}
#rc-root .rc-notice{border-left:4px solid var(--brand)}
#rc-root .rc-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#rc-root .rc-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
#rc-root .rc-tile{border:1px solid var(--border);border-radius:12px;padding:12px 14px;background:var(--subtle,#f8fafc);min-width:0}
#rc-root .rc-tile h3{margin:0;font-size:13px;font-weight:600;color:var(--secondary)}
#rc-root .rc-big{margin:2px 0 6px;font-size:24px;font-weight:600;line-height:1.2}
#rc-root .rc-tile dl{margin:0;display:grid;gap:2px}
#rc-root .rc-tile dl>div{display:flex;justify-content:space-between;gap:8px;font-size:13px}
#rc-root .rc-tile dt{color:var(--secondary)}
#rc-root .rc-tile dd{margin:0;font-variant-numeric:tabular-nums;white-space:nowrap}
#rc-root .rc-filters{display:flex;flex-wrap:wrap;gap:12px 16px;align-items:flex-end;margin-bottom:8px}
#rc-root .rc-filters>label{flex:1 1 220px;min-width:0;display:flex;flex-direction:column;gap:4px}
#rc-root .rc-types{border:1px solid var(--border);border-radius:12px;padding:8px 12px;margin:0;min-width:0;flex:1 1 100%;display:flex;flex-wrap:wrap;gap:6px 16px}
#rc-root .rc-types legend{font-weight:600;padding:0 6px}
#rc-root .rc-types label{display:inline-flex;align-items:center;gap:6px;min-height:32px}
#rc-root .rc-types input[type="checkbox"]{width:18px;height:18px;min-height:18px;margin:0;accent-color:var(--brand)}
#rc-root .rc-table-wrap{overflow-x:auto}
#rc-root .rc-table{width:100%;border-collapse:collapse}
#rc-root .rc-table th,#rc-root .rc-table td{text-align:left;padding:8px 10px;border-bottom:1px solid var(--border);vertical-align:top}
#rc-root .rc-table th{font-size:12px;color:var(--secondary);font-weight:600}
#rc-root .rc-table td.rc-title{min-width:220px}
#rc-root .rc-tag{display:inline-block;padding:1px 7px;border-radius:5px;border:1px solid var(--border);font-size:12px;font-weight:500;line-height:18px;white-space:nowrap}
#rc-root .rc-direct{background:var(--green-bg,#e3f8f1);color:var(--green,#0f7a5f);border-color:transparent}
#rc-root .rc-inherited{background:var(--brand-subtle,#e6edfc);color:var(--brand,#1d3bbc);border-color:transparent}
#rc-root .rc-none{background:var(--sunken,#f1f4f9);color:var(--secondary,#4b5468)}
#rc-root .rc-warn{background:var(--amber-bg,#fef1dc);color:var(--amber,#8a4b00);border-color:transparent}
#rc-root .rc-pager{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
#rc-root .rc-list{padding-left:20px;margin:6px 0}
#rc-root .rc-list li{margin:8px 0}
#rc-root .rc-open{margin-left:4px}
#rc-root .rc-detail{border-left:4px solid var(--brand)}
#rc-root .rc-detail-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:8px}
#rc-root .rc-detail-head h2{margin:0;flex:1 1 260px}
#rc-root .rc-content{white-space:pre-wrap;max-height:20rem;overflow:auto;border:1px solid var(--border);border-radius:8px;padding:10px;background:var(--subtle,#f8fafc)}
@media (max-width:700px){
  #rc-root .rc-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
  #rc-root .rc-table,#rc-root .rc-table tbody,#rc-root .rc-table tr,#rc-root .rc-table td{display:block;width:100%}
  #rc-root .rc-table tr{border:1px solid var(--border);border-radius:10px;padding:6px 10px;margin-bottom:10px}
  /* Shared table styles give every td a fixed 64px height; stacked cells size to their content here. Buttons keep their own target size. */
  #rc-root .rc-table td{border:0;padding:3px 0;min-width:0;height:auto;min-height:0}
  #rc-root .rc-table td .button{min-height:40px}
  #rc-root .rc-table td.rc-title{min-width:0;font-weight:500}
  #rc-root .rc-table td[data-label]::before{content:attr(data-label) ": ";color:var(--secondary);font-size:12px;font-weight:600}
  #rc-root .rc-table td.rc-title::before{display:none}
  #rc-root .rc-pager .button{flex:1 1 0}
}

/* AI Case Review layout polish (presentation only). Every rule is scoped to an AI Case Review id; build.mjs refuses anything else. */
#ai-review-heading{flex-wrap:wrap;margin-bottom:16px}
#ai-review-heading>div{min-width:0}
#ai-review-heading .ai-review-heading-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-end}
#ai-review-status p{margin:0 0 4px;overflow-wrap:anywhere}
#ai-review-status p:last-child{margin-bottom:0}
#ai-review-status .ai-status-problem{color:var(--red);font-weight:600}
#ai-sample-diagnostics{margin-top:20px;min-width:0}
#ai-sample-diagnostics>summary{cursor:pointer;font-weight:600;min-height:40px;padding:8px 0;overflow-wrap:anywhere}
#ai-sample-diagnostics[open]>summary{margin-bottom:12px}
#ai-sample-diagnostics p,#ai-sample-diagnostics h3,#ai-sample-diagnostics h4,#ai-sample-diagnostics h5,#ai-sample-diagnostics pre{overflow-wrap:anywhere;min-width:0}
#ai-sample-diagnostics .ai-sample-panel,#ai-sample-diagnostics .ai-sample-queue{border-top:1px solid var(--border);padding-top:16px;margin-top:16px}
#ai-sample-diagnostics .card{border:1px solid var(--border);margin-top:12px}
#ai-sample-diagnostics label{display:flex;align-items:flex-start;gap:8px;text-align:left}
#ai-sample-diagnostics input[type="checkbox"]{width:20px;height:20px;min-height:20px;padding:0;margin:0;flex:none;accent-color:#243bbd}
#ai-review-history{min-width:0;margin-bottom:16px}
#ai-review-history h2,#ai-review-history h4,#ai-review-history h5,#ai-review-history p,#ai-review-history li,#ai-review-history pre{overflow-wrap:anywhere;min-width:0}
#ai-review-history .form-actions{display:flex;flex-wrap:wrap;gap:8px}
#ai-review-history details.history-followup{min-width:0;margin-top:12px}
#ai-review-history details.history-followup>summary{cursor:pointer;font-weight:600;min-height:40px;padding:8px 0;overflow-wrap:anywhere}
/* Human proposals disclosure: below the AI review flow; the summary carries the queue count. */
#review-workbench{margin-top:20px;min-width:0}
#review-workbench>summary{cursor:pointer;font-weight:600;min-height:40px;padding:8px 0;display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;overflow-wrap:anywhere}
#review-workbench>summary .wb-queue{font-weight:500;font-size:13px;color:var(--secondary)}
/* display:flex drops the native disclosure marker in Chromium, so the summary draws its own caret: right when closed, down when open. */
#review-workbench>summary::-webkit-details-marker{display:none}
#review-workbench>summary::before{content:'';flex:none;width:0;height:0;border-style:solid;border-width:5px 0 5px 8px;border-color:transparent transparent transparent currentColor;transition:transform .15s}
#review-workbench[open]>summary::before{transform:rotate(90deg)}
@media (prefers-reduced-motion:reduce){#review-workbench>summary::before{transition:none}}
#review-workbench>summary:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
#review-workbench[open]>summary{margin-bottom:8px;border-bottom:1px solid var(--border)}
#review-workbench h2,#review-workbench h3,#review-workbench p,#review-workbench pre{overflow-wrap:anywhere;min-width:0}
@media (max-width:550px){#ai-review-heading .ai-review-heading-actions{justify-content:flex-start}}
/* Case picker at phone widths: each row becomes checkbox + full "ID — title" on the main line with area / suite beneath it. The markup carries explicit table roles, so the reflow keeps table/row/cell semantics; the header is visually hidden but still read. */
@media (max-width:550px){
#ai-case-selection .table-wrap{overflow-x:visible;max-width:100%}
#ai-case-selection table,#ai-case-selection tbody{display:block;width:100%;min-width:0}
#ai-case-selection thead{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
#ai-case-selection tbody tr{display:grid;grid-template-columns:20px minmax(0,1fr);column-gap:12px;row-gap:2px;padding:10px 0;border-bottom:1px solid var(--border)}
#ai-case-selection tbody td{display:block;width:auto;min-width:0;height:auto;padding:0;border:0;text-align:left;overflow-wrap:anywhere}
#ai-case-selection tbody td:first-child{grid-row:1/span 2;padding-top:1px}
#ai-case-selection tbody td:nth-child(2){font-weight:600}
#ai-case-selection tbody td:nth-child(3){grid-column:2;font-size:13px;color:var(--secondary)}
}

#case-form [hidden]{display:none!important}
/* Standalone-owned "Prepare coverage review" presentation. Every rule is scoped to #cc-root so no other route, the shared library
   styles or the inherited design tokens change. Uses the inherited tokens (--border, --brand, --secondary, ...). */
#cc-root [hidden]{display:none!important}
#cc-root{max-width:100%;min-width:0}
#cc-root>.card{margin-top:20px;min-width:0}
#cc-root p,#cc-root li,#cc-root h2,#cc-root h3,#cc-root h4,#cc-root h5,#cc-root code,#cc-root label,#cc-root summary{overflow-wrap:anywhere;min-width:0}
#cc-root .cc-heading{flex-wrap:wrap;gap:12px 24px}
#cc-root .cc-heading-text{flex:1 1 320px;min-width:0}
#cc-root .cc-notice{border-left:4px solid var(--brand)}
#cc-root .cc-filters{display:flex;flex-wrap:wrap;gap:12px 16px;align-items:flex-end;margin-bottom:8px}
#cc-root .cc-filters>label{flex:1 1 220px;min-width:0;display:flex;flex-direction:column;gap:4px}
#cc-root .cc-results,#cc-root .cc-selected{list-style:none;padding:0;margin:6px 0}
#cc-root .cc-results{border:1px solid var(--border);border-radius:10px;max-height:28rem;overflow:auto}
#cc-root .cc-item{border-bottom:1px solid var(--border);padding:8px 10px}
#cc-root .cc-item:last-child{border-bottom:0}
#cc-root .cc-item label{display:flex;align-items:flex-start;gap:10px;cursor:pointer;min-height:32px}
#cc-root .cc-item input[type="checkbox"]{width:20px;height:20px;min-height:20px;padding:0;margin:2px 0 0;flex:none;accent-color:var(--brand,#243bbd)}
#cc-root .cc-disabled label{cursor:not-allowed;color:var(--secondary)}
#cc-root .cc-kind,#cc-root .cc-tag{display:inline-block;padding:1px 7px;border-radius:5px;border:1px solid var(--border);font-size:12px;font-weight:500;line-height:18px;white-space:nowrap}
#cc-root .cc-source{background:var(--brand-subtle,#e6edfc);color:var(--brand,#1d3bbc);border-color:transparent}
#cc-root .cc-context{background:var(--sunken,#f1f4f9);color:var(--secondary,#4b5468)}
#cc-root .cc-unverified{background:var(--amber-bg,#fef1dc);color:var(--amber,#8a4b00);border-color:transparent}
#cc-root .cc-selected li{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:4px 0}
#cc-root .cc-pager{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
#cc-root .cc-actions{border-left:4px solid var(--brand)}
#cc-root .cc-record{border:1px solid var(--border);border-radius:12px;padding:12px 14px;margin:12px 0;min-width:0}
#cc-root .cc-record h4{margin:0 0 4px}
#cc-root .cc-record h5{margin:12px 0 4px;font-size:13px;color:var(--secondary)}
#cc-root .cc-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:20rem;overflow:auto;border:1px solid var(--border);border-radius:8px;padding:8px 10px;background:var(--subtle,#f8fafc);min-width:0}
#cc-root .cc-steps{padding-left:24px;margin:4px 0}
#cc-root .cc-steps li{margin:8px 0}
#cc-root .cc-step-expected{margin:4px 0 0}
#cc-root .cc-notes,#cc-root .cc-blockers{padding-left:20px}
#cc-root details>summary{cursor:pointer;font-weight:500;margin:8px 0}
#cc-root .cc-approval label.cc-consent{display:flex;align-items:flex-start;gap:8px;text-align:left;margin:8px 0}
#cc-root .cc-approval input[type="checkbox"]{width:20px;height:20px;min-height:20px;padding:0;margin:0;flex:none;accent-color:#243bbd}
#cc-root .cc-approval p,#cc-root .cc-approval li{overflow-wrap:anywhere;min-width:0}
/* Quote, consent, single run and saved results (docs/coverage-review-runtime.md). */
#cc-root .cc-run{border-left:4px solid var(--brand)}
#cc-root .cc-run label.cc-consent{display:flex;align-items:flex-start;gap:8px;text-align:left;margin:8px 0}
#cc-root .cc-run input[type="checkbox"]{width:20px;height:20px;min-height:20px;padding:0;margin:0;flex:none;accent-color:#243bbd}
#cc-root .cc-run h6{margin:10px 0 4px;font-size:12px;color:var(--secondary)}
#cc-root .cc-quote{border:1px solid var(--border);border-radius:12px;padding:12px 14px;margin:12px 0;min-width:0}
#cc-root .cc-saved{list-style:none;padding:0;margin:8px 0}
#cc-root .cc-saved li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;border-bottom:1px solid var(--border);padding:6px 0}
#cc-root .cc-saved li>span{flex:1 1 260px;min-width:0;overflow-wrap:anywhere}
#cc-root .cc-evidence{padding-left:20px}
#cc-root .cc-evidence blockquote{margin:4px 0 8px}
#cc-root .cc-baseline{border-left:3px solid var(--border);padding-left:10px}
#cc-root .cc-finding{border-left:4px solid var(--amber,#8a4b00)}
/* Large selections (UI polish): two picker columns on wide screens, bounded selected lists, and the exact selected content as
   collapsed native disclosures inside one bounded, keyboard-scrollable list per group. Nothing is clipped: every text wraps. */
#cc-root .cc-flow{display:flex;flex-wrap:wrap;gap:6px 8px;padding:0;margin:8px 0;list-style:none;counter-reset:ccflow}
#cc-root .cc-flow li{counter-increment:ccflow;border:1px solid var(--border);border-radius:999px;padding:2px 10px;font-size:13px;background:var(--surface,#fff)}
#cc-root .cc-flow li::before{content:counter(ccflow) ". ";font-weight:600;color:var(--brand,#243bbd)}
#cc-root .cc-pickers{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;margin-top:20px}
#cc-root .cc-pickers>.card{margin:0;min-width:0}
#cc-root .cc-picker h2{margin-top:0}
#cc-root .cc-selected-box{border:1px solid var(--border);border-radius:10px;max-height:14rem;overflow:auto;padding:0 10px}
#cc-root .cc-selected{margin:0}
#cc-root .cc-selected li{border-bottom:1px solid var(--border);justify-content:space-between}
#cc-root .cc-selected li:last-child{border-bottom:0}
#cc-root .cc-sel-text{flex:1 1 200px;min-width:0;overflow-wrap:anywhere}
#cc-root .cc-size{font-weight:500}
#cc-root .cc-expand,#cc-root .cc-continue{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
#cc-root .cc-record-list{border:1px solid var(--border);border-radius:12px;max-height:36rem;overflow:auto;padding:0 10px;margin:8px 0 16px;background:var(--surface,#fff)}
#cc-root details.cc-record{margin:8px 0;padding:0 12px;background:var(--surface,#fff)}
#cc-root details.cc-record>summary{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;margin:0;padding:10px 0;font-weight:400;list-style:none}
#cc-root details.cc-record>summary::-webkit-details-marker{display:none}
#cc-root details.cc-record>summary::before{content:"\25B8";flex:none;width:1em;color:var(--secondary)}
#cc-root details.cc-record[open]>summary::before{content:"\25BE"}
#cc-root details.cc-record>summary>code{font-weight:600}
#cc-root .cc-rec-title{flex:1 1 200px;min-width:0;overflow-wrap:anywhere;font-weight:500}
#cc-root details.cc-record[open]>summary{border-bottom:1px solid var(--border)}
#cc-root .cc-record-body{padding:4px 0 12px;min-width:0}
#cc-root .cc-quote-main{list-style:none;padding:0;margin:8px 0}
#cc-root .cc-quote-main li{padding:4px 0;border-bottom:1px solid var(--border)}
#cc-root .cc-quote-main li:first-child{font-size:16px}
#cc-root .cc-quote-main li:last-child{border-bottom:0}
#cc-root .cc-estimate ul,#cc-root .cc-history ol{padding-left:20px}
#cc-root time{white-space:nowrap}
@media (min-width:1000px){
  #cc-root .cc-pickers{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:700px){
  #cc-root .cc-pager .button{flex:1 1 40%}
  #cc-root .cc-record{padding:10px}
  #cc-root details.cc-record{padding:0 8px}
  #cc-root .cc-results{max-height:22rem}
  #cc-root .cc-record-list{max-height:28rem;padding:0 6px}
  #cc-root time{white-space:normal}
}
/* Coverage question links (public/coverage-question-link.js): the AI text and the team-recorded question sit in visibly separate
   boxes. Scoped to the review screen (#cc-root) like every rule here; long IDs and text wrap, never overflow. */
#cc-root .cql-form,#cc-root .cql-history{margin-top:12px;min-width:0;overflow-wrap:anywhere}
#cc-root .cql-ai{border-left:4px solid var(--secondary,#888);padding:4px 10px;margin:8px 0}
#cc-root .cql-human{border-left:4px solid var(--brand,#333);padding:4px 10px;margin:8px 0}
#cc-root .cql-list,#cc-root .cql-links{list-style:none;padding:0;margin:6px 0;display:grid;gap:8px}
#cc-root .cql-list li,#cc-root .cql-item{border:1px solid var(--border,#ccc);border-radius:6px;padding:8px;min-width:0}
#cc-root .cql-preview{border:1px dashed var(--border,#ccc);border-radius:6px;padding:8px;margin-top:8px}
#cc-root .cql-form code,#cc-root .cql-history code{overflow-wrap:anywhere;word-break:break-word}
#cc-root .cql-form input[type=search]{max-width:100%;width:100%}
/* Picker rows: the meta line (button, ID, status/class) and the question text are separate blocks, so nothing overlaps at 375px. */
#cc-root .cql-choice-meta{margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;min-width:0}
#cc-root .cql-choice-text{margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;min-width:0}
/* Link and retire consent: a 20px native checkbox beside left-aligned text, never stretched by inherited input styles. */
#cc-root .cql-preview label.cc-consent,#cc-root .cql-retire label.cc-consent{display:flex;align-items:flex-start;gap:8px;text-align:left;margin:8px 0;width:auto}
#cc-root .cql-preview .cc-consent input[type=checkbox],#cc-root .cql-retire .cc-consent input[type=checkbox]{flex:none;width:20px;height:20px;min-width:0;min-height:0;margin:2px 0 0;padding:0}
/* Link audit: concise summary line; exact IDs and timestamps in a collapsed, wrapping disclosure. */
#cc-root .cql-link-line{margin:6px 0 2px}
#cc-root .cql-state{font-weight:600}
#cc-root .cql-audit{margin:2px 0 6px}
#cc-root .cql-audit dl{display:grid;grid-template-columns:minmax(0,max-content) minmax(0,1fr);gap:2px 10px;margin:4px 0}
#cc-root .cql-audit dt,#cc-root .cql-audit dd{margin:0;min-width:0;overflow-wrap:anywhere;word-break:break-word}
/* Continuing coverage review (public/coverage-plan.js): wrap long IDs and text at 375 px, readable consent and record lists. */
#cc-root .cc-plan,#cc-root .cc-plan li,#cc-root .cc-plan p,#cc-root .cc-plan code,#cc-root .cc-plan summary,#cc-root .cc-plan label{overflow-wrap:anywhere;min-width:0}
#cc-root .cc-plan-scope{min-width:0;max-width:100%;box-sizing:border-box}
#cc-root .cc-plan-records{max-height:18rem;overflow:auto;padding-left:20px}
#cc-root .cc-plan label.cc-consent{display:flex;align-items:flex-start;gap:8px;text-align:left}
#cc-root .cc-plan label.cc-consent input[type=checkbox]{flex:none;width:20px;height:20px;min-height:0;margin:2px 0 0;padding:0}
#cc-root .cc-plan select,#cc-root .cc-plan input[type=search]{max-width:100%;box-sizing:border-box}
#cc-root .cc-plan .cc-plan-finding{margin:10px 0}
#cc-root .cc-plan details.cc-record>summary>code,#cc-root .cc-plan .cc-record-body .caption{min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:break-word}
#cc-root .cc-plan [tabindex="-1"]:focus-visible{outline:3px solid var(--brand,#243bbd);outline-offset:2px}
/* Baseline-aware (v4) quote and citations: whole rules behind details; long hashes and rule text wrap at 375px. */
#cc-root .cc-baseline-quote{margin:12px 0;min-width:0}
#cc-root .cc-rule{margin:6px 0;min-width:0}
#cc-root .cc-rule-fields{display:grid;grid-template-columns:minmax(0,10em) minmax(0,1fr);gap:4px 12px;margin:8px 0}
#cc-root .cc-rule-fields dd{margin:0;min-width:0;overflow-wrap:anywhere}
#cc-root .cc-hash,#cc-root [data-ccr-rule-cite]{overflow-wrap:anywhere;word-break:break-all}
#cc-root label.cc-baseline-consent{display:block}
@media (max-width:480px){#cc-root .cc-rule-fields{grid-template-columns:minmax(0,1fr)}}
/* Plan checkboxes (scope kinds and consent): compact 18px native boxes. The shared input rule (width:100%, padding, min-height:40px)
   and the shared grid label must not stretch them. Scoped ONLY to the plan panel; the area filter search stays full width. */
#cc-root .cc-plan input[type=checkbox]{flex:none;width:18px;height:18px;min-width:18px;min-height:0;max-width:18px;margin:2px 0 0;padding:0;accent-color:var(--brand,#243bbd)}
#cc-root .cc-plan .cc-plan-kinds{display:flex;flex-wrap:wrap;gap:8px 20px;margin:4px 0 12px;min-width:0}
#cc-root .cc-plan label.cc-plan-kind{display:inline-flex;align-items:flex-start;gap:8px;margin:0;font-size:14px;cursor:pointer;min-width:0}
#cc-root .cc-plan label.cc-consent{width:auto;margin:8px 0;cursor:pointer}
#cc-root .cc-plan .cc-plan-filter input[type=search]{width:100%}
@media (max-width:480px){#cc-root .cc-plan .cc-plan-kinds{gap:8px 16px}#cc-root .cc-plan label.cc-plan-kind{flex:1 1 40%}}

/* Code Intelligence (docs/code-intelligence.md): every rule scoped to #ci-root. */
#ci-root [hidden]{display:none!important}
#ci-root{min-width:0;max-width:100%}
#ci-root .ci-section{margin-top:16px;min-width:0;overflow-wrap:anywhere}
#ci-root h2{margin-top:0}
#ci-root p,#ci-root li,#ci-root summary,#ci-root label,#ci-root code{overflow-wrap:anywhere;min-width:0}
#ci-root .ci-status{min-height:1.4em;margin:8px 0}
#ci-root .ci-error{color:#b42318}
#ci-root .ci-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
#ci-root label{display:block;margin:8px 0}
#ci-root input:not([type=checkbox]):not([type=radio]),#ci-root textarea,#ci-root select{width:100%;box-sizing:border-box;max-width:100%}
#ci-root textarea{font-family:inherit}
#ci-root .ci-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:12px 0}
#ci-root .ci-files{list-style:none;padding:0;margin:8px 0;display:grid;gap:6px}
#ci-root .ci-files li{display:flex;gap:8px;align-items:flex-start;justify-content:space-between;border:1px solid var(--border);border-radius:8px;padding:6px 10px;min-width:0}
#ci-root .ci-files details{flex:1;min-width:0}
#ci-root .ci-code{white-space:pre-wrap;word-break:break-word;max-height:320px;overflow:auto;border:1px solid var(--border);border-radius:8px;padding:8px;font-size:13px;background:#fafafa}
#ci-root .ci-choice{display:flex;gap:8px;align-items:flex-start;margin:4px 0}
#ci-root .ci-choice input,#ci-root .ci-consent input{flex:none;width:20px;height:20px;min-height:20px;margin:2px 0 0;padding:0;accent-color:#243bbd}
#ci-root .ci-consent{display:flex;gap:8px;align-items:flex-start;text-align:left}
#ci-root fieldset{border:1px solid var(--border);border-radius:12px;padding:12px;margin:12px 0;min-width:0}
#ci-root legend{font-weight:600;padding:0 6px}
#ci-root .ci-picklist{max-height:220px;overflow:auto}
#ci-root .ci-disclosure,#ci-root .ci-panel{border:1px solid var(--border);border-radius:12px;padding:12px;margin-top:12px;min-width:0}
#ci-root .ci-draft{border-top:1px solid var(--border);padding:14px 0;min-width:0}
#ci-root .ci-draft-head{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
#ci-root .ci-draft-head h3{margin:0;flex:1 1 240px;min-width:0}
#ci-root .ci-steps{padding-left:22px}
#ci-root .ci-steps li{margin:6px 0}
#ci-root .ci-step-action{display:block}
#ci-root .ci-step-expected{display:block;color:var(--muted,#555);font-size:14px}
#ci-root .ci-edit-steps{padding-left:22px}
#ci-root .ci-edit-step{margin:10px 0;min-width:0}
#ci-root .ci-step-tools{display:flex;gap:12px;flex-wrap:wrap}
#ci-root .ci-preview:focus{outline:3px solid #243bbd;outline-offset:2px}
@media (max-width:640px){#ci-root .ci-files li{flex-direction:column}#ci-root .ci-actions .button{width:100%}}
#ci-root .ci-baseline{border:1px solid #d0d5dd;border-radius:8px;padding:10px 12px;display:grid;gap:6px;min-width:0}
#ci-root .ci-baseline h4{margin:0}
#ci-root .ci-rule{display:grid;grid-template-columns:minmax(100px,170px) 1fr;gap:2px 10px;margin:4px 0 8px}
#ci-root .ci-rule dt{font-weight:600}
#ci-root .ci-rule dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}
@media (max-width:640px){#ci-root .ci-rule{grid-template-columns:1fr}}

/* Project Testing Baseline (docs/project-testing-baseline.md). Scoped to #ptb-root; reuses the app's buttons, tags and captions. */
#ptb-root { max-width: 1100px; display: grid; gap: 14px; }
#ptb-root .ptb-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-start; }
#ptb-root .ptb-head h1 { margin: 0 0 4px; }
#ptb-root .ptb-head-actions, #ptb-root .ptb-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
#ptb-root .ptb-notices { margin: 0; padding-left: 18px; }
#ptb-root .ptb-status { min-height: 1.2em; margin: 0; }
#ptb-root .ptb-error { color: #b42318; }
#ptb-root .ptb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
#ptb-root .ptb-item { width: 100%; text-align: left; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 10px 12px; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; cursor: pointer; font: inherit; }
#ptb-root .ptb-item:hover, #ptb-root .ptb-item:focus-visible { border-color: #475467; outline: 2px solid transparent; box-shadow: 0 0 0 2px #98a2b3; }
#ptb-root .ptb-id { font-weight: 600; font-variant-numeric: tabular-nums; }
#ptb-root .ptb-title { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
#ptb-root .ptb-empty { padding: 16px; border: 1px dashed #d0d5dd; border-radius: 8px; }
#ptb-root .ptb-detail, #ptb-root .ptb-form, #ptb-root .ptb-panel { display: grid; gap: 10px; padding: 14px; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; min-width: 0; }
#ptb-root .ptb-detail h2, #ptb-root .ptb-form h2 { margin: 0; overflow-wrap: anywhere; }
#ptb-root .ptb-rule { display: grid; grid-template-columns: minmax(110px, 180px) 1fr; gap: 4px 12px; margin: 0; }
#ptb-root .ptb-rule dt { font-weight: 600; }
#ptb-root .ptb-rule dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
#ptb-root .ptb-form label { display: grid; gap: 4px; }
#ptb-root .ptb-form input:not([type="radio"]):not([type="checkbox"]), #ptb-root .ptb-form textarea, #ptb-root .ptb-form select, #ptb-root .ptb-panel textarea { width: 100%; box-sizing: border-box; font: inherit; }
#ptb-root .ptb-form fieldset { border: 1px solid #e4e7ec; border-radius: 6px; display: grid; gap: 6px; }
#ptb-root .ptb-check { display: flex !important; gap: 8px; align-items: flex-start; }
#ptb-root .ptb-areas { display: flex; flex-wrap: wrap; gap: 4px 14px; }
#ptb-root .ptb-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) {
  #ptb-root .ptb-row { grid-template-columns: 1fr; }
  #ptb-root .ptb-rule { grid-template-columns: 1fr; }
  #ptb-root .ptb-rule dd { margin-bottom: 6px; }
}

/* Compare test cases (#compare-cases). Every rule is scoped to #cmp-root; build.mjs refuses to ship any unscoped selector. */
#cmp-root [hidden]{display:none!important}
#cmp-root{min-width:0;max-width:100%;overflow-wrap:anywhere}
#cmp-root .card{margin-top:20px;min-width:0;box-sizing:border-box}
#cmp-root .cmp-heading{flex-wrap:wrap;gap:12px}
#cmp-root .cmp-heading-actions{display:flex;flex-wrap:wrap;gap:8px}
#cmp-root p,#cmp-root li,#cmp-root h3,#cmp-root h4,#cmp-root code,#cmp-root summary,#cmp-root .metric{overflow-wrap:anywhere;word-break:break-word;min-width:0}
#cmp-root details>summary{cursor:pointer;font-weight:500;margin:8px 0}
#cmp-root .cmp-list{padding-left:20px}
#cmp-root .cmp-list li{margin:6px 0}
#cmp-root .cmp-rows li{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
#cmp-root .cmp-pick{display:inline-flex;gap:6px;flex-wrap:wrap}
#cmp-root .cmp-pick .button[aria-pressed="true"]{outline:2px solid #243bbd;outline-offset:1px;font-weight:600}
#cmp-root .cmp-chosen{display:grid;gap:8px;margin:8px 0}
#cmp-root .cmp-chosen>div{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0}
#cmp-root .cmp-search{display:block;margin-top:12px}
#cmp-root .cmp-search input{width:100%;max-width:480px;box-sizing:border-box}
#cmp-root .cmp-statusbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px}
#cmp-root .cmp-label,#cmp-root .cmp-side{font-weight:600;font-size:12px;text-transform:uppercase;letter-spacing:.03em;color:var(--muted,#555)}
#cmp-root .cmp-side{display:block;margin-bottom:4px}
#cmp-root .cmp-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin:12px 0}
#cmp-root .cmp-cols>div{min-width:0;border:1px solid var(--border,#ddd);border-radius:10px;padding:10px}
#cmp-root .cmp-grid{display:grid;gap:0;border:1px solid var(--border,#ddd);border-radius:10px;margin:8px 0}
#cmp-root .cmp-row{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1fr) minmax(0,1fr);gap:12px;padding:10px;border-top:1px solid var(--border,#ddd)}
#cmp-root .cmp-row:first-child{border-top:0}
#cmp-root .cmp-row>div{min-width:0}
#cmp-root .cmp-cell .cmp-side{display:none}
#cmp-root .cmp-text{white-space:pre-wrap}
#cmp-root .cmp-empty{font-style:italic;color:var(--muted,#666)}
#cmp-root .cmp-warn{border-left:4px solid #b45309;padding:4px 10px;background:#fffbeb}
#cmp-root .cmp-tag{display:inline-block;padding:1px 8px;border-radius:999px;border:1px solid var(--border,#ccc);font-size:12px;font-weight:600;white-space:nowrap}
#cmp-root .cmp-same{border-color:#15803d;color:#166534;background:#f0fdf4}
#cmp-root .cmp-different{border-color:#b45309;color:#92400e;background:#fffbeb}
#cmp-root .cmp-missing{border-color:#6b7280;color:#374151;background:#f9fafb}
#cmp-root .cmp-steps{padding-left:20px}
#cmp-root .cmp-steps li{margin:8px 0}
#cmp-root .cmp-pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:320px;overflow:auto;border:1px solid var(--border,#ddd);border-radius:8px;padding:8px;margin:6px 0}
#cmp-root .cmp-toggle{display:flex;align-items:flex-start;gap:8px;text-align:left;margin:8px 0}
#cmp-root .cmp-toggle input[type="checkbox"]{width:20px;height:20px;min-height:20px;padding:0;margin:0;flex:none;accent-color:#243bbd}
#cmp-root .cmp-case{min-width:0}
/* One-line counts: drop the shared metric tile height so the summary does not leave a large empty box. */
#cmp-root .metric.cmp-summary{min-height:0;height:auto;padding:8px 12px;margin:8px 0;font-size:inherit;line-height:1.5}
#cmp-root .cmp-result-h:focus{outline:2px solid #243bbd;outline-offset:2px}
@media (max-width:720px){
  #cmp-root .cmp-cols{grid-template-columns:minmax(0,1fr)}
  #cmp-root .cmp-row{grid-template-columns:minmax(0,1fr)}
  #cmp-root .cmp-cell .cmp-side{display:block}
}

/* Product overview (#overview). Every rule is scoped to #ov-root; build.mjs refuses to ship any unscoped selector. */
#ov-root [hidden]{display:none!important}
#ov-root{min-width:0;max-width:100%;overflow-wrap:anywhere}
#ov-root p,#ov-root li,#ov-root h2,#ov-root h3,#ov-root code,#ov-root summary{overflow-wrap:anywhere;word-break:break-word;min-width:0}
#ov-root .ov-heading{flex-wrap:wrap;gap:12px}
#ov-root .ov-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:12px}
#ov-root .ov-card{margin:0;min-width:0;box-sizing:border-box}
/* Sources, Library and Attention span the full row so the source-first order never leaves an orphaned half row; the rest pair up. */
#ov-root .ov-card[aria-labelledby="ov-sources-h"],#ov-root .ov-card[aria-labelledby="ov-library-h"],#ov-root .ov-card[aria-labelledby="ov-attention-h"]{grid-column:1/-1}
#ov-root .ov-card[aria-labelledby="ov-sources-h"] .ov-counts{grid-template-columns:repeat(auto-fill,minmax(min(220px,100%),1fr));gap:4px 20px}
/* Sources card's direct origin list only: each label sits above its counts so labels never shrink into broken words. */
#ov-root .ov-card[aria-labelledby="ov-sources-h"]>.ov-counts li{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
#ov-root .ov-card[aria-labelledby="ov-sources-h"]>.ov-counts li>strong,#ov-root .ov-card[aria-labelledby="ov-sources-h"]>.ov-counts li>span{min-width:0;text-align:left;word-break:normal;overflow-wrap:break-word}
#ov-root .ov-card-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;margin-bottom:8px}
#ov-root .ov-card-head h2{margin:0}
#ov-root .ov-actions{display:flex;flex-wrap:wrap;gap:8px}
#ov-root .ov-lead{font-size:18px;font-weight:600;margin:4px 0 12px}
#ov-root .ov-cols{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
#ov-root .ov-cols h3,#ov-root .ov-card h3{font-size:14px;margin:12px 0 6px}
#ov-root .ov-counts{list-style:none;padding:0;margin:4px 0;display:grid;gap:4px}
#ov-root .ov-counts li{display:flex;gap:8px;align-items:baseline;min-width:0}
#ov-root .ov-counts strong{min-width:3ch;text-align:right;font-variant-numeric:tabular-nums}
#ov-root .ov-results{grid-template-columns:repeat(auto-fit,minmax(110px,1fr))}
#ov-root .ov-cases,#ov-root .ov-questions,#ov-root .ov-plans{padding-left:20px;margin:6px 0}
#ov-root .ov-plans{list-style:none;padding-left:0}
#ov-root .ov-cases li,#ov-root .ov-questions li,#ov-root .ov-plans li{margin:8px 0}
#ov-root .ov-cases li{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}
#ov-root .ov-case{flex:1 1 240px;min-width:0}
#ov-root .ov-empty{color:var(--muted,#555);margin:6px 0}
#ov-root .ov-warn{border-left:4px solid #b45309;padding:4px 10px;background:#fffbeb}
#ov-root .ov-warn-inline{color:#92400e}
#ov-root .ov-statusbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
#ov-root .ov-about{margin-top:20px}
#ov-root details>summary{cursor:pointer;font-weight:500;margin:8px 0}
@media (max-width:1100px){
  #ov-root .ov-cols{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:760px){
  #ov-root .ov-grid,#ov-root .ov-cols{grid-template-columns:minmax(0,1fr)}
  #ov-root .ov-card[aria-labelledby="ov-sources-h"] .ov-counts{grid-template-columns:minmax(0,1fr)}
}

