:root{--ink:#19333b;--accent:#007d82;--canvas:#f4f7f7;--line:#d5e2e3;--quiet:#54727b;--paper:#fff}
body{font-family:"Avenir Next","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--canvas);line-height:1.58}
header{display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 2px 16px #0f36390a;min-height:76px;height:auto;gap:20px}
header>strong{white-space:nowrap;letter-spacing:-.04em;color:#173941}header .badge{letter-spacing:0;font-weight:600}
.header-tools{display:flex;align-items:center;gap:16px}.header-identity{font-weight:700;border-left:1px solid var(--line);padding-left:18px;white-space:nowrap}
header .project-picker[hidden]{display:none}header .project-picker{display:flex;align-items:center;gap:10px;margin:0;min-width:0;color:var(--quiet);font-size:12px;white-space:nowrap}header .project-picker select{margin:0;width:min(220px,25vw);font-weight:700;color:var(--ink);background:#f5fafa;border:1px solid var(--line)}
.app-layout{grid-template-columns:210px minmax(0,1fr);min-height:calc(100vh - 76px)}aside{top:76px;height:calc(100vh - 76px);background:#17363d;padding:28px 12px}.nav-caption{color:#b1d1d2;font-size:13px;letter-spacing:.04em;font-weight:700;padding:8px 15px 24px}.nav-link{border-radius:7px;font-weight:600;transition:background .15s,color .15s}.nav-link.active{background:#e3f4f1;color:#0d4e52}.nav-link:hover{background:#31535b;color:#fff}.nav-foot{color:#a9c4c9}
main{max-width:1500px;padding:38px clamp(24px,4vw,68px)}.page-head{border-bottom:1px solid var(--line);padding:0 0 26px;margin-bottom:28px}.page-head h1{font-size:30px;line-height:1.22;margin:0;letter-spacing:-.04em}.page-head p{color:var(--quiet);margin-top:8px}.page{animation:none}.page[hidden]{display:none!important}
.card{background:var(--paper);border:1px solid var(--line);box-shadow:0 1px 2px #0f363905;border-radius:9px}.card h2{letter-spacing:-.015em}.stat-grid{gap:0;border:1px solid var(--line);border-radius:9px;background:white;overflow:hidden}.stat{border:0;border-right:1px solid var(--line);border-radius:0;box-shadow:none;padding:24px 30px}.stat:last-child{border-right:0}.stat-link:hover{background:#eff9f7;border-color:var(--line);box-shadow:none}.stat strong{color:var(--ink)}.stat small{letter-spacing:0;text-transform:none;color:var(--quiet);font-size:13px}
button,.back-link,.report-case-link{transition:background-color .15s,border-color .15s,color .15s}button{font-weight:600}button.primary{background:var(--accent);border-color:var(--accent)}button.primary:hover{background:#005b60}.toolbar{gap:12px}.notice{background:#eaf5f3;color:#255a5d;border-left:3px solid var(--accent)}
input,select,textarea{border-color:var(--line)}input:focus,select:focus,textarea:focus{outline:2px solid #00a5a84a;border-color:var(--accent)}
#caseLibrary{display:grid;grid-template-columns:260px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);align-items:start;gap:0;padding:0;overflow:hidden;background:#fff}
#caseLibrary>.case-sidebar{grid-column:1;grid-row:1 / span 2;align-self:stretch;background:#f7faf9;border-right:1px solid var(--line);padding:24px 18px;margin:0;border-radius:0;min-width:0}
.case-sidebar-title{font-weight:800;letter-spacing:.02em;margin-bottom:12px;color:#315a62}.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
#caseLibrary #moduleTree{display:flex;flex-direction:column;gap:2px;margin:0 0 16px}#caseLibrary #moduleTree .module-node{display:block;width:100%;padding:10px 12px 10px calc(12px + var(--depth)*18px);text-align:left;border:0;border-radius:6px;background:transparent;color:#35525a;font-size:13px;font-weight:650;line-height:1.4;white-space:normal;overflow-wrap:anywhere}#caseLibrary #moduleTree .module-node:hover{background:#e9f3f1}#caseLibrary #moduleTree .module-node[aria-current]{background:#dcefed;color:#005b60;border-left:3px solid var(--accent);padding-left:calc(9px + var(--depth)*18px)}
.case-module-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-top:14px;border-top:1px solid var(--line)}.case-module-actions button{width:100%;font-size:12px;padding:8px 4px;min-width:0}.case-tag-filter{display:block;margin-top:20px;font-size:12px;color:var(--quiet);font-weight:700}.case-tag-filter input{width:100%;margin:7px 0 0;min-width:0}.case-sidebar .archive-toggle{display:inline-flex;align-items:center;gap:9px;white-space:nowrap;margin-top:18px;font-size:13px;color:var(--ink);line-height:1.3}.case-sidebar .archive-toggle input{width:17px!important;height:17px!important;flex:none;margin:0!important;accent-color:var(--accent)}
#caseLibrary>.toolbar{grid-column:2;grid-row:1;display:grid;grid-template-columns:minmax(0,1fr) 155px auto;align-items:center;gap:12px;margin:0;padding:20px 24px;border-bottom:1px solid var(--line);min-width:0}#caseLibrary>.toolbar input,#caseLibrary>.toolbar select{width:100%;min-width:0;margin:0}#caseLibrary #caseStatus{appearance:none;-webkit-appearance:none;padding-right:34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m3 6 5 5 5-5' fill='none' stroke='%2353727b' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center;background-size:16px 16px}#caseCount{white-space:nowrap;color:var(--quiet)}
#caseList{grid-column:2;grid-row:2;min-width:0}#caseList>.entry{padding:0 24px;border-bottom:1px solid #e5eded;margin:0}#caseList>.entry:last-child{border-bottom:0}#caseList>.entry>summary{display:flex;align-items:center;gap:8px;min-height:68px;padding:12px 0;line-height:1.45;cursor:pointer;flex-wrap:wrap}#caseList>.entry>summary:before{margin:0 6px 0 0}#caseList>.entry>summary strong{font-weight:700}#caseList>.entry>summary small{color:#62777e;font-size:12px;white-space:normal}#caseList>.entry>div{padding:8px 0 22px}#caseList>.entry:hover{background:#fbfdfc}
.case-history{margin:16px 0 4px;border-top:1px solid var(--line);padding-top:12px}.case-history>summary{cursor:pointer;color:var(--accent);font-weight:700}.version-item{display:flex;gap:14px;align-items:center;padding:10px 4px;border-bottom:1px solid #edf2f2}.version-item button{margin-left:auto}
.workspace-topline{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.back-link{display:inline-flex;align-items:center;text-decoration:none;font-weight:700;color:var(--accent);padding:7px 0}.back-link:hover{text-decoration:underline}.workspace-editor,.case-editor-page,.detail-page{max-width:1220px}.composer-details{margin-bottom:18px}.composer-columns{display:grid;grid-template-columns:minmax(320px,40%) minmax(0,1fr);gap:18px;align-items:start}.composer-library,.composer-plan{min-width:0}.composer-library{position:sticky;top:96px}.composer-library input[type=search],.composer-library select{width:100%;margin:6px 0 12px}.composer-library .selection-list{max-height:54vh;margin:8px 0}.composer-library .selection-row{font-size:13px;line-height:1.45}.composer-actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0 0}.composer-plan .suite-editor-row{border:1px solid var(--line);border-radius:7px;padding:12px;grid-template-columns:minmax(0,1fr) minmax(130px,170px) auto}.composer-plan .suite-editor-row>div:first-child{min-width:0}.composer-plan .suite-editor-row strong{display:block;overflow-wrap:anywhere}.composer-plan .suite-editor-row small{display:block;color:var(--quiet)}.workspace-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;background:white;border-top:1px solid var(--line);padding:16px 4px;margin:20px 0 40px}.workspace-actions a{font-weight:700}
.case-editor-page{background:white;border:1px solid var(--line);border-radius:9px;padding:30px}.case-editor-page .row.between{border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:22px}.case-editor-page #semanticEditor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.case-editor-page #editStages{grid-column:1/-1}.case-editor-page #rawEditor{margin-top:22px}.case-editor-page .editor-stage{background:#f7faf9}.case-editor-page .dialog-actions{bottom:0;padding:15px 0}
.report-surface{background:white;border:1px solid var(--line);border-radius:9px;padding:clamp(22px,3vw,42px);max-width:1150px;margin-bottom:30px}.report-surface>h2{font-size:25px;margin:8px 0 14px}.report-surface>.workspace-topline{border-bottom:1px solid var(--line);padding-bottom:12px}.report-case{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:16px;border-bottom:1px solid var(--line);background:#fff}.report-case:hover{background:#f6fafa}.report-case-link{white-space:nowrap;font-weight:700;text-decoration:none}.report-case-link:hover{text-decoration:underline}.report-surface .metric-row{padding:6px 0 20px;border-bottom:1px solid var(--line)}.report-surface .metric-row span{background:#edf6f5;color:#315b5d}.detail-page .report-surface>h3{border-top:1px solid var(--line);padding-top:20px}
@media(max-width:1050px){.composer-columns{grid-template-columns:1fr}.composer-library{position:static}.composer-library .selection-list{max-height:320px}}
@media(max-width:700px){header{padding:12px 16px;align-items:flex-start}.header-tools{gap:6px;flex-wrap:wrap;justify-content:flex-end}header .project-picker{order:2;width:100%;justify-content:flex-end}header .project-picker select{width:135px}.header-identity{padding-left:8px}.app-layout{display:block}aside{position:static;height:auto;padding:8px;display:flex;flex-direction:row;flex-wrap:wrap}.nav-caption,.nav-foot{display:none}main{padding:24px 16px}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr)}.stat{padding:15px 10px}.stat strong{font-size:24px}.stat small{font-size:11px}#caseLibrary>.case-sidebar{margin:0;padding:18px;border:0}#caseLibrary>.toolbar{display:grid;grid-template-columns:minmax(0,1fr) 140px auto;padding:16px}#caseList>.entry{padding:0 16px}.composer-plan .suite-editor-row{grid-template-columns:1fr}.report-case{grid-template-columns:auto 1fr}.report-case-link{grid-column:2}.case-editor-page #semanticEditor{display:block}}

@media(max-width:920px){#caseLibrary{display:block}#caseLibrary>.case-sidebar{border-right:0;border-bottom:1px solid var(--line)}#caseLibrary #moduleTree{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:4px}#caseLibrary>.toolbar{display:grid;grid-template-columns:minmax(0,1fr) 155px auto}}
@media(max-width:620px){#caseLibrary>.toolbar{grid-template-columns:minmax(0,1fr) auto}#caseLibrary>.toolbar #caseSearch{grid-column:1/-1}#caseLibrary #caseStatus{width:160px}#caseCount{justify-self:end}}
/* A run shows one final frame per step; additional captures live in a disclosure. */
.report-surface .evidence-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,190px));gap:14px;align-items:start;justify-content:start;margin:12px 0 20px}
.report-surface .evidence-shot{display:flex;flex-direction:column;gap:9px;min-width:0;margin:0;padding:10px;border:1px solid var(--line);border-radius:8px;background:#fff}
.report-surface .evidence-shot figcaption{font-size:12px;line-height:1.45;color:var(--quiet);min-height:0;margin:0;overflow-wrap:anywhere}
.report-surface .evidence-shot img{display:block;width:100%;max-width:100%;height:auto;max-height:288px;object-fit:contain;background:#f4f7f7;border-radius:5px;cursor:zoom-in}
.report-surface .evidence-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.report-surface .evidence-actions button{font-size:11px;padding:6px 8px;min-width:0;line-height:1.4}
.report-surface .evidence-more{border-top:1px solid var(--line);padding-top:15px;margin-top:14px}
.report-surface .evidence-more>summary{cursor:pointer;color:var(--accent);font-weight:700}
.report-surface .model-cost{border:1px solid #bddcd8;border-left:4px solid var(--accent);border-radius:8px;padding:14px 18px;background:#f4faf9;margin:18px 0 22px}
.report-surface .model-cost-head{display:flex;justify-content:space-between;gap:12px;align-items:baseline;flex-wrap:wrap}
.report-surface .model-cost-head strong{font-size:15px;color:#174f53}
.report-surface .model-cost-head small{color:var(--quiet)}
.report-surface .model-cost p{margin:8px 0 0;font-size:12px}
@media(max-width:700px){.report-surface .evidence-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-surface .evidence-shot img{max-height:240px}}
#pgyerCard .pgyer-source{display:grid;grid-template-columns:95px 130px minmax(140px,1fr) minmax(140px,1fr) minmax(170px,1fr) minmax(150px,1fr) 100px auto;gap:10px;align-items:end;margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:8px}
#pgyerCard .pgyer-source label{min-width:0;font-size:12px}#pgyerCard .pgyer-source input,#pgyerCard .pgyer-source select{width:100%;min-width:0;margin-top:6px}
#pgyerBuildList{max-height:360px;overflow:auto}#pgyerCard .row{margin-top:18px;flex-wrap:wrap}
@media(max-width:1100px){#pgyerCard .pgyer-source{grid-template-columns:repeat(2,minmax(0,1fr))}}

.case-editor-page{min-width:0;width:100%;box-sizing:border-box}.case-editor-page #semanticEditor[hidden]{display:none}.case-editor-page textarea,.case-editor-page input{max-width:100%;box-sizing:border-box}.case-editor-page .grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:700px){.case-editor-page{padding:18px}.case-editor-page .grid.two{grid-template-columns:1fr}.case-editor-page .row.between{align-items:flex-start;flex-wrap:wrap}}
/* Tester report hierarchy: compact records, grouped rows, focused evidence. */
.tester-record{padding:20px 0;border-bottom:1px solid var(--line,#d5e2e3)}
.tester-record-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.tester-record h3{margin:0;font-size:18px}.tester-record p{margin:6px 0 12px}.tester-distribution{display:flex;flex-wrap:wrap;gap:8px}.tester-distribution .badge{padding:4px 10px}.tester-record [data-live-task]:empty{display:none}
#recordFilters+input{width:230px;margin-left:auto}#results+.muted{font-size:12px}.tester-tabs{display:flex;gap:24px;border-bottom:1px solid #d5e2e3;margin-top:24px}.tester-tabs button{border:0;border-radius:0;background:transparent;padding:14px 2px;color:#54727b}.tester-tabs button[aria-selected=true]{color:#007d82;border-bottom:3px solid #007d82;font-weight:700}.tester-panel{padding-top:20px}.tester-panel[hidden]{display:none!important}.tester-summary{max-width:78ch;line-height:1.7}.tester-step-layout{display:grid;grid-template-columns:minmax(180px,260px) minmax(0,1fr);gap:28px}.tester-step-nav{border-right:1px solid #d5e2e3;padding-right:16px}.tester-step-nav button{display:block;text-align:left;width:100%;white-space:normal;margin:0 0 8px;background:transparent;border:0;line-height:1.6;padding:12px}.tester-step-nav button[aria-pressed=true]{background:#e5f3f1;color:#006b70;box-shadow:inset 3px 0 #007d82}.tester-step-nav small{display:block;color:#54727b}.tester-step-pane{min-width:0}.tester-step-pane .step-result{margin:0;border:0;padding:0;background:transparent}.tester-step-pane .evidence-grid{grid-template-columns:repeat(auto-fit,minmax(180px,260px))}.tester-step-pane .evidence-shot img{max-height:420px;object-fit:contain}.tester-panel pre{max-height:350px;overflow:auto}.report-case{display:grid;grid-template-columns:24px minmax(160px,1.5fr) 90px minmax(120px,2fr) 70px 80px;align-items:center;gap:14px;padding:16px 8px;border-bottom:1px solid #d5e2e3}.report-case-reason{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:13px;color:#54727b}.report-case-link{white-space:nowrap}.report-surface>h2{margin:18px 0 10px}.report-surface>strong{font-size:20px}.tester-tabs button:focus-visible,.tester-step-nav button:focus-visible{outline:2px solid #007d82;outline-offset:2px}
@media(max-width:760px){.tester-step-layout{grid-template-columns:1fr}.tester-step-nav{border-right:0;border-bottom:1px solid #d5e2e3;display:flex;overflow:auto;padding:0}.tester-step-nav button{min-width:150px}.report-case{grid-template-columns:24px 1fr 90px}.report-case-reason{grid-column:2/4}#recordFilters+input{width:100%;margin:0}.tester-tabs{gap:16px}}
/* Keep unavailable cases discoverable with an explicit configuration switch. */
.run-choice{display:flex;align-items:center;gap:12px;padding-right:12px;border-bottom:1px solid var(--line,#e2e8eb)}.run-choice>.selection-row{flex:1;min-width:0;border-bottom:0}.run-choice>button{flex-shrink:0}.run-choice small{display:block}@media(max-width:650px){.run-choice{align-items:stretch;flex-direction:column;padding:0 0 12px}.run-choice>button{align-self:flex-start;margin-left:12px}}
