@charset "UTF-8";
.project-heading{align-items:flex-start}
.project-heading>div:first-child{min-width:0}
.project-heading h1{overflow-wrap:anywhere}
.project-eyebrow{margin:0 0 8px;color:var(--muted);font-size:12px}
.project-heading .project-description{max-width:760px;margin:10px 0 14px;font-size:14px;line-height:1.8;color:var(--muted)}
.members-panel .panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.members-panel .panel-head h2{display:flex;align-items:center;gap:8px}
.members-panel .toolbar .search{max-width:360px;flex:1}
.members-table{min-width:0;table-layout:fixed}
.members-table th:first-child{width:58%}
.members-table th:nth-child(2){width:28%}
.members-table th:last-child{width:14%}
.members-table td{vertical-align:middle;overflow-wrap:anywhere}
.members-table td:last-child{text-align:right}
.member-name{font-size:14px;font-weight:600;line-height:1.6}
.member-self{font-size:11px;font-weight:400;color:var(--muted);margin-left:8px}
.member-username{margin-top:3px;color:var(--muted);font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.member-role{font-size:13px}
.member-empty{text-align:center!important;padding:36px 20px!important;color:var(--muted)}
.member-identity{margin-bottom:20px;overflow-wrap:anywhere}
.member-identity p{margin:5px 0;color:var(--muted);font-size:13px}
.project-role-help dl{margin:14px 0}
.project-role-help dl>div{display:grid;grid-template-columns:110px minmax(0,1fr);gap:14px;margin:10px 0}
.project-role-help dt{font-weight:600;color:var(--ink)}
.project-role-help dd{margin:0;line-height:1.8}
.project-danger-zone{margin-top:28px;padding-top:20px;border-top:1px solid #eadfdc}
.project-danger-zone h3{font-size:14px;color:#ac5a50}
.project-danger-zone p{font-size:13px;color:var(--muted);line-height:1.8;margin:8px 0 14px}
.project-impact{margin:12px 0;padding-left:22px;line-height:2}
.removed-projects{margin-top:32px;border-top:1px solid var(--line);padding-top:18px;font-size:13px;color:var(--muted)}
.removed-projects>summary{cursor:pointer;width:fit-content}
.removed-projects>p{margin:12px 0}
.removed-project-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 0;border-bottom:1px solid var(--line)}
.removed-project-row>div{min-width:0;overflow-wrap:anywhere}
.removed-project-row strong{color:var(--ink)}
.removed-project-row p{margin:5px 0 0}
.removed-project-row .btn{flex-shrink:0}
@media(max-width:700px){
  .members-table,.members-table tbody{display:block;width:100%}
  .members-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .members-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:16px;border-bottom:1px solid var(--line)}
  .members-table tbody td{padding:0;border:0}
  .members-table tbody td:first-child{grid-column:1;grid-row:1}
  .members-table tbody td:nth-child(2){grid-column:1;grid-row:2;color:var(--muted)}
  .members-table tbody td:last-child:not(:first-child){grid-column:2;grid-row:1/3;align-self:center}
  .members-table tbody td.member-empty{grid-column:1/-1}
  .members-panel .panel-head{padding:16px}
  .project-role-help dl>div{grid-template-columns:1fr;gap:2px;margin:14px 0}
}
.test-image{margin:12px 0;max-width:100%}.test-image img{display:block;width:100%;max-height:340px;object-fit:contain;background:#edf0eb;border:1px solid #dce2dc;border-radius:4px}.test-image figcaption{font-size:11px;color:#65716b;margin-top:6px}.test-image.compact{float:left;width:64px;margin:0 10px 0 0}.test-image.compact img{height:48px;object-fit:contain}.image-review-layout.with-image{display:grid;grid-template-columns:minmax(160px,28%) minmax(0,1fr);gap:16px;align-items:start}.image-review-results{min-width:0}.review-image{position:sticky;top:0}.review-image .test-image{margin-top:0}.compare-drill .test-image{max-width:320px}#case-image-preview:empty{display:none}#case-image-preview .test-image{max-width:360px}@media(max-width:900px){.image-review-layout.with-image{grid-template-columns:minmax(0,1fr)}.review-image{position:static}.review-image img{max-height:240px}}
:root{--ink:#26352f;--muted:#65716b;--green:#30644b;--paper:#f5f6f4;--line:#dce2dc;--mono:Consolas,monospace;font:14px "Segoe UI","Microsoft JhengHei",sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}a{color:inherit;text-decoration:none}button{cursor:pointer;border:0}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #659071;outline-offset:2px}input:focus,textarea:focus,select:focus{outline:2px solid #acc6a6;border-color:#6b9671}svg{flex-shrink:0}h1,h2,h3,p{margin-top:0}h1{font-size:22px;line-height:1.4;font-weight:650;margin-bottom:4px}h2{font-size:15px}h3{font-size:14px}small{font-size:11px}textarea{resize:vertical}summary{cursor:pointer}table{border-collapse:collapse;width:100%;text-align:left}th{font-weight:500;font-size:12px;color:var(--muted);background:#f8f9f7;padding:9px 12px;white-space:nowrap;border-bottom:1px solid var(--line)}td{padding:10px 12px;border-bottom:1px solid var(--line);vertical-align:middle}tbody tr:last-child td{border-bottom:0}input[type=checkbox]{width:16px;height:16px;accent-color:var(--green);cursor:pointer;margin:0;vertical-align:middle}progress{width:100%;height:4px;border:0;overflow:hidden;background:#e7ece5;appearance:none}progress::-webkit-progress-bar{background:#e7ece5}progress::-webkit-progress-value{background:#70936a}progress::-moz-progress-bar{background:#70936a}
.skip-link{position:fixed;top:-60px;left:12px;z-index:100;background:white;padding:10px}.skip-link:focus{top:6px}
.sidebar{height:46px;background:#233a30;color:#eaf0e9;display:flex;align-items:center;gap:28px;padding:0 20px}.brand{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:650;white-space:nowrap}.brand small{font-size:12px;font-weight:400;color:#c4d1c7}nav{display:flex;align-self:stretch;gap:4px}nav a{display:flex;align-items:center;gap:7px;padding:0 12px;font-size:12px;color:#c1cec3;border-bottom:2px solid transparent}nav a:hover{background:#304c3d}nav a.active{color:white;border-bottom-color:#a9c3a9}.nav-count{font:11px var(--mono);opacity:.8}.sidebar-bottom{display:flex;align-items:center;gap:6px;margin-left:auto;font-size:11px;color:#c1cec3;white-space:nowrap}.connection-dot{width:6px;height:6px;border-radius:50%;background:#95b985}.connection-dot.offline{background:#e39884}
.shell{height:calc(100dvh - 46px);display:flex;flex-direction:column;min-height:0}.topbar{min-height:30px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 20px;border-bottom:1px solid var(--line);font-size:11px;color:var(--muted);background:white}.topbar strong{font-weight:400}main{padding:12px 20px 18px;flex:1;min-height:0;max-width:1480px;width:100%;margin:0 auto;outline:none;overflow:auto}main.run-page{display:flex;flex-direction:column;overflow:hidden}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.subtitle{font-size:12px;color:var(--muted);line-height:1.6;margin:0}.breadcrumbs{font-size:11px;color:var(--muted);margin-bottom:6px;display:flex;gap:8px;align-items:center}.run-meta{display:flex;gap:12px;font-size:11px;color:var(--muted);flex-wrap:wrap;margin-top:4px}.run-meta span{display:flex;align-items:center;gap:4px}
.btn{display:inline-flex;justify-content:center;align-items:center;gap:5px;padding:7px 11px;border-radius:4px;font-size:12px;line-height:1.4;font-weight:500;white-space:nowrap;border:1px solid var(--line);background:white;color:var(--ink)}.btn:hover{background:#eef2eb}.btn.primary{background:var(--green);border-color:var(--green);color:white}.btn.primary:hover{background:#25543d}.btn.danger{border-color:#dfc6bf;color:#a54836;background:#fff9f7}.btn.quiet{border-color:transparent;background:transparent;padding:5px 7px;color:var(--muted)}.btn.small{padding:5px 8px;font-size:11px}.btn.icon-only{padding:6px}.button-row{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--line);border-radius:4px;background:white;margin-bottom:10px;flex-shrink:0}.stat-card{padding:9px 12px;border-right:1px solid var(--line)}.stat-card:last-child{border-right:0}.stat-label{font-size:11px;color:var(--muted)}.stat-number{font:24px var(--mono);font-weight:500;margin:3px 0;color:#304f36}.stat-number small{font:11px "Segoe UI","Microsoft JhengHei",sans-serif;margin-left:5px;color:var(--muted)}.stat-foot{font-size:11px;color:var(--muted);line-height:1.5}.stat-foot:empty{display:none}
.panel{background:white;border:1px solid var(--line);border-radius:4px;overflow:hidden;margin-bottom:12px}.panel-head{padding:9px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line)}.panel-head h2{margin:0}.panel-body{padding:12px}.toolbar{display:flex;align-items:center;justify-content:space-between;padding:9px 12px;gap:10px}.toolbar h2{margin:0}.tabs{display:flex;gap:3px;flex-wrap:wrap}.tab{font-size:12px;padding:6px 9px;border-radius:3px;color:var(--muted);background:transparent;white-space:nowrap}.tab.active{background:#edf4ee;color:var(--green)}.tab .count{font:11px var(--mono);margin-left:5px}.search{position:relative;max-width:250px;width:100%}.search input{width:100%;padding:7px 10px 7px 30px;border:1px solid var(--line);border-radius:4px;background:white;font-size:12px}.search svg{position:absolute;left:10px;top:9px;color:var(--muted)}.table-wrap{overflow-x:auto}.run-title{font-size:13px;font-weight:550;line-height:1.5}.run-title:hover,.text-link:hover{color:var(--green);text-decoration:underline}.cell-sub{font-size:11px;color:var(--muted);margin-top:3px;line-height:1.5}.mono{font-family:var(--mono);font-size:11px}.badge{display:inline-flex;align-items:center;gap:4px;border-radius:3px;font-size:11px;line-height:1.4;padding:3px 6px;white-space:nowrap;background:#edf0eb;color:#596552}.badge.green{background:#eaf3e8;color:#416b38}.badge.amber{background:#f8f1e2;color:#866322}.badge.red{background:#fbede8;color:#9d503d}.badge.refusal{background:#fff0df;color:#965021}.cell-progress{min-width:110px;max-width:160px}.cell-progress>div{display:flex;justify-content:space-between;margin-bottom:4px;font:11px var(--mono);color:var(--muted)}.table-footer{padding:8px 12px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11px;color:var(--muted)}.text-link{color:var(--green);font-size:12px;display:inline-flex;gap:5px;align-items:center}.empty{padding:24px 12px;text-align:center;color:var(--muted);line-height:1.7}.empty h3{margin-bottom:6px}.empty .btn{margin-top:10px}.notice{padding:8px 12px;border:1px solid #e4dfc5;background:#faf9ef;color:#7c7048;border-radius:4px;font-size:12px;line-height:1.6;margin-bottom:10px;overflow-wrap:anywhere}.notice.green{background:#edf4e9;border-color:#d9e6d1;color:#526e47}.notice.red{background:#fff2ee;border-color:#f0d7ce;color:#a54836}.section-caption{font-size:11px;color:var(--muted);line-height:1.6}
.run-page>.page-heading,.run-page>.breadcrumbs,.run-page>.run-settings,.run-page>#stop-notice{flex-shrink:0}.run-settings{margin-bottom:10px}.run-settings>summary{display:list-item;list-style-position:inside;border-bottom:0;font-size:12px;padding:6px 10px}.run-settings[open]{max-height:25vh;overflow:auto}.run-settings .panel-body{border-top:1px solid var(--line)}
.detail-grid{display:grid;grid-template-columns:260px minmax(0,1fr);gap:12px;align-items:stretch;flex:1;min-height:0}.question-sidebar{background:white;border:1px solid var(--line);border-radius:4px;overflow:hidden;display:flex;flex-direction:column;min-height:0}.question-tools{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:8px;border-bottom:1px solid var(--line)}.question-tools .search{max-width:none;grid-column:1/-1}.question-tools select{width:100%;min-width:0;font-size:11px;padding:6px 3px;background:white;border:1px solid var(--line);border-radius:4px;color:var(--muted)}.question-list{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}.question-item{display:block;width:100%;text-align:left;padding:9px 10px;background:white;border-left:3px solid transparent;border-bottom:1px solid var(--line)}.question-item:hover{background:#f7faf5}.question-item.selected{background:#edf4e9;border-left-color:#679159}.question-number{font:11px var(--mono);color:var(--muted);margin-bottom:4px;display:flex;justify-content:space-between}.question-text{font-size:12px;line-height:1.6;overflow-wrap:anywhere}.question-item .question-rate{font-size:11px;margin-top:5px}.question-item .refusal-rate{font-size:12px}.pass-text{color:#46713e}.fail-text{color:#a9513d}
.review-workspace{min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding-right:3px}.question-header{padding:10px 12px;background:white;border:1px solid var(--line);border-radius:4px;margin-bottom:8px}.question-header h2{font-size:16px;line-height:1.6;overflow-wrap:anywhere;margin:6px 0}.question-header>.question-rate{margin-top:6px}.question-header>.outcome-bar{display:block;clear:both}.question-header .outcome-summary{margin-top:6px}.tag-row{display:flex;gap:5px;flex-wrap:wrap;align-items:center}.pill{font-size:11px;padding:2px 4px;color:var(--muted);overflow-wrap:anywhere;max-width:100%}.expectation{border-left:2px solid #c2d0b9;padding-left:8px;color:var(--muted);font-size:12px;line-height:1.6;margin-top:8px;white-space:pre-wrap;overflow-wrap:anywhere}.question-header .tag-row:last-child:not(:first-child){margin-top:6px}
.review-toolbar{display:flex;justify-content:space-between;align-items:center;gap:6px;margin:8px 0;flex-wrap:wrap}.review-toolbar>.hint{flex:1 1 100%}.review-toolbar select,.compact-select{font-size:11px;padding:6px 7px;border:1px solid var(--line);border-radius:4px;background:white;color:var(--ink)}.attempt-card{background:white;border:1px solid var(--line);border-radius:4px;margin-bottom:8px;overflow:hidden}.attempt-head{padding:7px 10px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11px}.attempt-order{font-size:11px;color:var(--muted)}.attempt-body{padding:10px 12px}.response-text{font-size:13px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink);margin:0}.review-form{padding:8px 10px;border-top:1px solid var(--line)}.verdict-options{display:flex;gap:5px;align-items:center;flex-wrap:wrap}.verdict-option{cursor:pointer}.verdict-option input{position:absolute;opacity:0;pointer-events:none}.verdict-option span{display:inline-flex;padding:4px 8px;border:1px solid var(--line);border-radius:3px;color:var(--muted);font-size:11px;background:white}.verdict-option input:checked+span{background:#e7f0df;border-color:#aabd9b;color:#456438}.verdict-option.fail input:checked+span{background:#f9ece6;border-color:#d5aa9b;color:#9b533e}.verdict-option.unsure input:checked+span{background:#faf2de;border-color:#d9bd80;color:#856526}.verdict-option input:focus-visible+span{outline:2px solid #80a16a;outline-offset:2px}.review-fields{display:flex;gap:7px;margin-top:7px;align-items:end;flex-wrap:wrap}.review-fields label{font-size:11px;color:var(--muted);display:block;flex:1 1 160px}.review-fields label:has(select){flex:0 1 245px}.review-fields textarea,.review-fields select{width:100%;font-size:12px;padding:6px 7px;border:1px solid var(--line);border-radius:3px;margin-top:3px;background:white;min-height:32px;color:var(--ink)}.review-fields textarea{line-height:18px;height:32px}.review-fields select{font-size:11px}.review-fields>.btn{min-height:32px}.save-status{color:#507643;font-size:11px;margin-left:auto}.group-conflict{padding:7px 10px;color:#8a5e28;font-size:11px;line-height:1.6;background:#fff8e9;border-top:1px solid var(--line)}.group-history{border-top:1px solid var(--line);padding:7px 10px;font-size:11px;color:var(--muted)}.group-history>summary{padding:2px 0}.group-member{margin-top:7px;border:1px solid var(--line);border-radius:3px}.group-member .attempt-head{border:0;background:#f7f9f5}.group-member .review-form{border:0}.pagination{display:flex;justify-content:space-between;align-items:center;gap:8px;color:var(--muted);font-size:11px;margin:10px 0;flex-wrap:wrap}
.refusal-summary{border-bottom:1px solid var(--line);padding:4px 0 6px;margin-bottom:8px}.refusal-summary-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:5px;color:#925528;font-size:12px}.refusal-group{border:1px solid var(--line);border-radius:3px;margin-bottom:5px;padding:6px 9px;background:#fffdf8}.refusal-group summary{font-size:11px;color:#925528;line-height:1.6}.refusal-group summary .hint{margin-left:7px}.refusal-group .response-text{margin-top:8px;font-size:12px}.refusal-group>.hint{margin-top:6px}.legacy-review{border-top:1px solid var(--line);margin-top:8px;padding-top:7px;font-size:11px;color:var(--muted)}.legacy-review p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;margin:4px 0}.refusal-rate{font:600 16px var(--mono);color:#965322;white-space:nowrap}.rate-cell{min-width:115px}.outcome-bar{display:block;width:100%;height:8px;border-radius:4px;overflow:hidden;margin:7px 0}.outcome-empty{fill:#e8ece3}.outcome-answered{fill:#6a9275}.outcome-refused{fill:#d18b48}.question-rate{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:6px;font-size:11px;color:var(--muted)}.outcome-summary{display:flex;gap:10px;flex-wrap:wrap;font-size:11px;line-height:1.6;color:var(--muted)}.outcome-summary strong{font:600 11px var(--mono)}.answer-count{color:#4c7656}.refusal-count{color:#965322}.refusal-delta{font:600 12px var(--mono);color:#94613d;white-space:nowrap}.delta-cell{min-width:125px}
.suite-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.suite-card{background:white;border:1px solid var(--line);border-radius:4px;padding:14px;display:flex;flex-direction:column}.suite-card h2{margin-bottom:7px}.suite-card p{font-size:12px;color:var(--muted);line-height:1.6;flex:1}.suite-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:var(--muted)}.case-question{max-width:600px;line-height:1.6;font-size:12px;overflow-wrap:anywhere}.compare-picker{display:grid;grid-template-columns:1fr 24px 1fr auto;gap:10px;align-items:end}.compare-picker label{display:block;font-size:12px;color:var(--muted)}.compare-picker select{display:block;width:100%;margin-top:6px;padding:8px;border:1px solid var(--line);border-radius:4px;background:white;color:var(--ink);min-width:0}.compare-arrow{padding-bottom:8px;font-size:18px;text-align:center;color:var(--muted)}.compare-cell{min-width:180px}.compare-cell .tag-row{margin-top:5px}.compare-drill{display:grid;grid-template-columns:1fr 1fr;gap:12px}.compare-drill>div{min-width:0}.compare-drill h3{line-height:1.6}.mini-response{border:1px solid var(--line);border-radius:4px;padding:10px;margin-bottom:7px}.mini-response p{font-size:12px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0 0}.compare-expand td{background:#fafbf8;padding:12px}.compare-question{display:block;font-size:12px;text-align:left;background:transparent;color:var(--green);line-height:1.6;padding:0}.loading{padding:35px;text-align:center;color:var(--muted);font-size:12px}
 dialog{border:1px solid var(--line);border-radius:6px;padding:0;max-width:min(700px,calc(100vw - 24px));width:700px;color:var(--ink);max-height:90dvh}dialog::backdrop{background:#14251d66}.modal-head{padding:14px 18px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.modal-head h2{font-size:18px;margin:0}.modal-body{padding:14px 18px;max-height:65dvh;overflow:auto}.modal-foot{padding:10px 18px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px}.field{display:block;margin-bottom:12px;font-size:12px;color:var(--muted)}.field>input,.field>select,.field>textarea{display:block;width:100%;margin-top:5px;border:1px solid var(--line);border-radius:4px;padding:8px 10px;background:white;font-size:12px;color:var(--ink)}.field small{display:block;color:var(--muted);font-size:11px;line-height:1.6;margin-top:4px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.advanced{margin:6px 0 12px;font-size:12px;color:var(--muted)}.advanced summary{margin-bottom:10px}.case-picker{max-height:180px;overflow:auto;border:1px solid var(--line);border-radius:4px;margin-top:6px}.pick-row{display:flex;gap:8px;align-items:flex-start;padding:7px 9px;border-bottom:1px solid var(--line);line-height:1.6;font-size:12px;color:var(--muted)}.pick-row:last-child{border:0}.pick-row input{margin-top:2px;flex-shrink:0}.pick-head{display:flex;justify-content:space-between;align-items:center;margin-top:5px;font-size:11px;color:var(--muted)}.total-preview{font-size:12px;color:var(--muted)}.total-preview strong{font:17px var(--mono);color:var(--green);margin:0 3px}.form-error{font-size:12px;color:#a54836;line-height:1.6;white-space:pre-wrap;margin:8px 0 0}.toast{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);background:#243e2d;color:white;padding:10px 15px;border-radius:4px;z-index:100;font-size:12px;max-width:90vw}.toast.error{background:#935b4a}.hint{font-size:11px;color:var(--muted);line-height:1.6}.no-wrap{white-space:nowrap}.soft-divider{border:0;border-top:1px solid var(--line);margin:10px 0}.run-notes{white-space:pre-wrap;font-size:12px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere;margin:8px 0}.selection-info{font-size:12px;color:var(--muted)}
@media(max-width:1000px){.detail-grid{grid-template-columns:220px minmax(0,1fr)}.suite-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.compare-picker{grid-template-columns:1fr 24px 1fr}.compare-picker>.btn{grid-column:1/-1;justify-self:end}.stat-card{padding:8px}.stat-foot{font-size:10px}}
@media(max-width:700px){.sidebar{height:auto;min-height:46px;padding:7px 12px;gap:8px;flex-wrap:wrap}.brand{font-size:14px}.brand small{display:none}nav{margin-left:auto}nav a{padding:6px 8px;font-size:11px}.nav-count,.sidebar-bottom{display:none}.shell{height:auto;min-height:calc(100dvh - 46px)}main{padding:10px 12px;overflow:visible}main.run-page{overflow:visible}.topbar{padding:5px 12px}.detail-grid{grid-template-columns:1fr;flex:none;gap:8px}.question-sidebar{max-height:210px}.question-list{max-height:125px;flex:auto}.question-tools{grid-template-columns:1.5fr 1fr 1fr}.question-tools .search{grid-column:auto}.question-tools input,.question-tools select{font-size:10px}.question-sidebar>.panel-head{display:none}.review-workspace{overflow:visible;padding:0}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-card:nth-child(2){border-right:0}.stat-card:nth-child(-n+2){border-bottom:1px solid var(--line)}.page-heading{align-items:flex-start;flex-wrap:wrap;margin-bottom:8px}h1{font-size:20px}.run-meta{gap:6px}.toolbar{flex-wrap:wrap}.toolbar .search{max-width:none}.suite-grid,.compare-drill{grid-template-columns:1fr}.compare-expand td{padding:8px}.run-settings[open]{max-height:none}.question-header>.question-rate{float:none}.review-fields label{flex:1 1 100%}.review-fields label:has(select){flex:1 1 200px}.review-fields>.btn{margin-left:auto}.compare-picker{grid-template-columns:1fr}.compare-arrow{display:none}.compare-picker>.btn{grid-column:auto}.field-row{grid-template-columns:1fr;gap:0}.modal-foot{flex-wrap:wrap}.table-footer{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

[hidden]{display:none!important}
.model-preview{padding:12px;margin-bottom:14px;border:1px solid var(--line);border-radius:4px;background:#f3f7f1}
.model-preview-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}
.model-identity{margin:8px 0;font-size:12px}
.model-identity code{display:block;overflow-wrap:anywhere;white-space:pre-wrap;padding:6px 0}
.auth-panel{max-width:460px;margin:40px auto;padding:24px}
.auth-panel h1{margin-bottom:12px}
.auth-panel .field{margin-top:14px}
.signed-out .sidebar{display:none}
.signed-out .shell{height:100dvh}
#account-label{font-size:11px;overflow-wrap:anywhere}
.audit-details{max-width:560px;max-height:350px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}
@media(max-width:700px){.sidebar{height:auto;min-height:46px;flex-wrap:wrap;gap:4px;padding:6px 12px}.sidebar nav{flex-wrap:wrap}.sidebar-bottom{display:none}.topbar{flex-wrap:wrap}.auth-panel{margin:16px auto}.shell{height:calc(100dvh - 78px)}}

/* Overview bars share the full run total; labels also convey meaning without color. */
.run-ratio-cell{min-width:260px;width:26%;vertical-align:top}
.run-ratio{max-width:360px}
.ratio-heading{display:flex;justify-content:space-between;gap:8px;font-size:11px;margin-bottom:6px}
.ratio-heading>span{color:var(--muted);font-variant-numeric:tabular-nums}
.run-ratio-bar{display:block;width:100%;height:12px;border-radius:3px;overflow:hidden}
.ratio-legend{display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:7px;font-size:11px;line-height:1.6}
.ratio-item{display:inline-flex;align-items:baseline;gap:5px;white-space:nowrap;font-variant-numeric:tabular-nums}
.ratio-swatch{display:inline-block;width:8px;height:8px;border-radius:1px;flex-shrink:0}
.ratio-answered{fill:#347bb5;background:#347bb5}
.ratio-refused{fill:#777f87;background:#777f87}
.ratio-errors{fill:#c58a25;background:#c58a25}
.ratio-unclassified{fill:#dfbd78;background:#dfbd78}
.ratio-waiting,.ratio-unreviewed{fill:#dce2e6;background:#dce2e6}
.ratio-pass{fill:#398359;background:#398359}
.ratio-fail{fill:#c54e47;background:#c54e47}
.ratio-unsure{fill:#e8bd41;background:#e8bd41}
.ratio-empty,.ratio-pattern-base{fill:#edf0f2}
.ratio-pattern-line{stroke:#929aa3;stroke-width:.65}
.ratio-swatch.ratio-unavailable{background:repeating-linear-gradient(120deg,#edf0f2 0 2px,#929aa3 2px 3px)}

/* Keep reading and disclosure cues prominent within the compact workspace. */
.question-item .outcome-bar{height:6px;margin:6px 0 1px}
.stat-number .outcome-bar{margin:6px 0 0;height:7px}
.attempt-card{border-color:#bbcbbb;margin-bottom:12px}
.answer-group,.answered-attempt{border-left:3px solid #547d5b}
.refused-attempt{border-left:3px solid #b8793e}
.attempt-head{padding:9px 12px;background:#f3f7f1;font-size:12px}
.attempt-order{color:#435b48;font-size:12px;font-weight:600}
.attempt-body{padding:15px 18px 18px;background:white}
.response-label{color:#3f694a;font-size:12px;font-weight:650;margin-bottom:8px}
.response-text{font-size:16px;line-height:1.9;color:#203328}
.refused-attempt .attempt-head{background:#fff6eb}
.refused-attempt .response-label{color:#945625}
.attempt-card>.review-form{background:#f6f8f4;padding:10px 12px}
.group-history{padding:0;background:#f9fbf7;border-top:1px solid #cbd7c7}
.disclosure-toggle{list-style:none;display:flex;align-items:center;gap:10px;min-height:44px;padding:10px 12px;background:#edf3e9;color:#355b3e;font-size:13px;font-weight:600;cursor:pointer}
.disclosure-toggle::-webkit-details-marker{display:none}
.disclosure-toggle::before{content:"";display:block;flex:0 0 8px;width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);margin-right:3px}
.disclosure-toggle:hover{background:#dfeada}
.disclosure-toggle:focus-visible{outline-offset:-3px}
.disclosure-title{flex:1;min-width:0}
.disclosure-action{margin-left:auto;font-size:12px;font-weight:500;white-space:nowrap}
.disclosure-toggle .when-open{display:none}
details[open]>.disclosure-toggle{border-bottom:1px solid #cbd7c7}
details[open]>.disclosure-toggle::before{transform:rotate(45deg)}
details[open]>.disclosure-toggle .when-closed{display:none}
details[open]>.disclosure-toggle .when-open{display:inline}
.group-member{margin:10px 12px;background:white}
.refusal-summary{border:1px solid #dfc6a9;border-radius:4px;background:#fffcf6;padding:10px 12px;margin-bottom:10px}
.refusal-summary-head{font-size:13px;flex-wrap:wrap;margin-bottom:8px}
.refusal-review-count{font-size:12px;color:#79634d;margin-left:10px;white-space:nowrap}
.refusal-group{padding:0;background:white;border-color:#dfcfb9;margin-bottom:7px}
.refusal-group:last-child{margin-bottom:0}
.refusal-group>.disclosure-toggle{color:#855126;background:#fbf0e1;font-size:13px}
.refusal-group>.disclosure-toggle:hover{background:#f5e4cc}
.refusal-group .response-text{font-size:15px;line-height:1.9;padding:12px 14px;margin:0}
.refusal-group>.hint{padding:0 14px 10px}
.refusal-bulk-review{margin-top:10px;border-top:1px solid #dfcfb9;padding-top:10px}
.refusal-bulk-review>.hint{margin:0 0 8px}
.refusal-bulk-review .review-form{padding:8px 0 0}
@media(max-width:700px){.response-text{font-size:16px}.attempt-body{padding:13px 14px 16px}.disclosure-toggle{gap:8px;padding:10px;font-size:12px}.disclosure-action{font-size:11px}.refusal-summary-head>div{display:flex;gap:5px;flex-wrap:wrap;align-items:center}.refusal-review-count{margin-left:0}.refusal-summary-head>.btn{width:100%}.group-member{margin:8px}}

.question-context{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}.question-context .expectation{margin-top:6px}.question-context>.tag-row{margin-top:6px}.review-toolbar>.hint{flex:1 1 280px}

/* Keep review controls together and hidden radio focus inside each label. */
.review-form{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.verdict-options{flex:0 0 auto}
.verdict-option{position:relative}
.verdict-option input{top:0;left:0;width:1px;height:1px;margin:0;clip-path:inset(50%);overflow:hidden}
.review-fields{flex:1 1 260px;min-width:0;align-items:center;flex-wrap:nowrap;margin-top:0}
.review-fields label{display:flex;align-items:center;gap:7px;flex:1;min-width:0;white-space:nowrap}
.review-fields input[name=note]{width:100%;min-width:0;flex:1;height:32px;padding:6px 7px;border:1px solid var(--line);border-radius:3px;background:white;color:var(--ink);font-size:12px}
.save-status{flex:0 0 auto;margin-left:0;white-space:nowrap}
.save-status:empty{display:none}
.member-note{margin:0;padding:8px 10px;white-space:pre-wrap;overflow-wrap:anywhere}
.api-result{margin-top:14px;border-top:1px solid var(--line);padding-top:10px;min-width:0}
.api-metrics{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.api-fields{margin:8px 0;font-size:13px;line-height:1.7}
.api-fields>div{display:grid;grid-template-columns:minmax(85px,130px) minmax(0,1fr);gap:10px;padding:3px 0}
.api-fields dt{color:var(--muted)}.api-fields dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.api-evidence{margin-top:10px}.api-evidence h4{font-size:13px;color:var(--green);margin:8px 0}
.api-evidence ul,.api-evidence ol{padding-left:22px;font-size:13px;line-height:1.8;overflow-wrap:anywhere}
.api-warning{background:#fff6e6;color:#865721;padding:8px 10px;font-size:12px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
.api-extra-text{font-size:15px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}
.api-details,.attempt-api,.api-route,.comparison-api-history{border-top:1px solid var(--line);margin-top:8px;padding-top:8px;min-width:0}
.api-details>summary,.attempt-api>summary,.api-route>summary,.comparison-api-history>summary{cursor:pointer;min-height:36px;font-size:13px;line-height:1.8;color:var(--green);overflow-wrap:anywhere}
.attempt-api{padding:8px 12px;margin:0}.api-detail-content{min-width:0;font-size:13px}.api-detail-content>.api-result{margin-top:0}
.api-json-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:12px;margin-top:10px}
.api-json{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;font:12px/1.8 var(--mono);background:#f4f6f1;border:1px solid var(--line);padding:10px;max-height:420px;overflow:auto;min-width:0}
@media(max-width:700px){.api-fields>div{grid-template-columns:90px minmax(0,1fr)}.attempt-api{padding:8px}.api-metrics{display:inline-block}}
@media(max-width:700px){.review-fields{flex-basis:100%}.review-fields label{flex:1;min-width:0}}
/* Project access is independent of internal/external account identity. */
.project-switch { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; min-width: 0; }
.project-switch select { width: 180px; max-width: 100%; min-width: 0; color: #132824; background: #fff; }
.project-switch .hint { color: inherit; font-size: 12px; }
.project-switch[hidden] { display: none; }
.project-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.member-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.member-form .field { flex: 1 1 180px; }
.topbar { flex-wrap: wrap; }
@media(max-width:700px) { .sidebar nav { max-width: 100%; overflow-x: auto; } .project-switch { flex: 1 1 100%; } .project-switch select { flex: 1; } }

.queue-panel{margin-bottom:20px}.queue-panel h2{font-size:16px;margin:0}.queue-row{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.queue-row>div{min-width:0}.queue-time{font-size:13px;line-height:1.8;color:var(--muted);text-align:right}.run-estimate{font-size:13px;line-height:1.8;min-width:0;overflow-wrap:anywhere}.run-estimate small{color:var(--muted)}
@media(max-width:700px){.queue-row{flex-direction:column;gap:5px}.queue-time{text-align:left}}
#run-form{display:flex;flex-direction:column;max-height:calc(90dvh - 2px);min-height:0}
#run-form .modal-body{flex:1;min-height:0;max-height:none}
#run-form .modal-head,#run-form .modal-foot{flex-shrink:0}
#run-form .modal-foot{flex-wrap:wrap;align-items:flex-start}
.run-summary{flex:1 1 360px;min-width:0}
.run-summary .run-estimate{margin-top:6px}
.reservation-filters{align-items:center;gap:14px;flex-wrap:wrap}
.reservation-filters .field{margin:0;max-width:230px}
.reservation-filters>label{font-size:13px}
.reservation-model,.reservation-notes{max-width:280px;overflow-wrap:anywhere;white-space:pre-wrap}
.reservation-notice{font-size:13px;line-height:1.8;margin-bottom:16px;overflow-wrap:anywhere}
#reservation-form{display:flex;flex-direction:column;max-height:90dvh;min-height:0}
#reservation-form .modal-body{flex:1;min-height:0;max-height:none}
#reservation-form .modal-head,#reservation-form .modal-foot{flex-shrink:0}
@media(max-width:700px){.reservation-filters .field{flex:1 1 100%;max-width:none}.reservation-model,.reservation-notes{max-width:180px}}
@media(max-width:700px){
  .reservation-table,.reservation-table tbody{display:block;width:100%;min-width:0}
  .reservation-table thead{display:none}
  .reservation-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:12px;border-top:1px solid var(--line)}
  .reservation-table tbody td{display:block;padding:0;border:0;max-width:none;white-space:normal;min-width:0}
  .reservation-table tbody td:first-child{grid-column:1/-1}
  .reservation-table tbody td:first-child .cell-sub{display:inline;margin-left:8px}
  .reservation-table tbody td:nth-child(2){font-weight:550;font-size:14px;grid-column:1}
  .reservation-table tbody td:nth-child(3){grid-column:1;color:var(--muted);font-size:12px}
  .reservation-table tbody td:nth-child(4){grid-column:2;grid-row:2}
  .reservation-table tbody td:nth-child(5),.reservation-table tbody td:nth-child(6){grid-column:1/-1}
  .reservation-table tbody td:nth-child(5){font-size:12px;color:var(--muted)}
  .reservation-table tbody td:nth-child(5)::before{content:'私人備註：'}
}
#run-form .modal-foot>.button-row{margin-left:auto;justify-content:flex-end;align-self:flex-end}

/* Workspace layout and shared controls. */
:root{--ink:#222d29;--muted:#747e79;--green:#27644d;--paper:#f6f7f8;--line:#e5e9e7;--mono:"Cascadia Code",Consolas,monospace;font-size:14px;background:var(--paper)}
body{line-height:1.6;-webkit-font-smoothing:antialiased}
h1{font-size:28px;font-weight:650;letter-spacing:-.7px;line-height:1.3;margin-bottom:0}
h2{font-size:16px;letter-spacing:-.2px}
h3{font-size:15px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.sidebar{position:fixed;inset:0 auto 0 0;z-index:20;width:208px;height:100dvh;display:flex;flex-direction:column;align-items:stretch;gap:0;padding:30px 16px 22px;background:#fff;color:var(--ink);border-right:1px solid var(--line)}
.brand{gap:10px;padding:0 12px 34px;font-size:27px;font-weight:700;letter-spacing:-1.2px}
.brand-mark{display:grid;place-items:center;width:32px;height:34px;background:#dcebe3;border-radius:9px;color:var(--green);font:italic 700 32px/1 Georgia,serif;padding-bottom:5px}
.sidebar nav{display:flex;flex-direction:column;align-self:auto;gap:5px}
.sidebar nav a{min-height:45px;padding:10px 13px;gap:11px;border:0;border-radius:7px;font-size:14px;font-weight:500;color:#69736e;white-space:nowrap;transition:background .15s,color .15s}
.sidebar nav a:hover{background:#f4f6f5;color:var(--ink)}
.sidebar nav a.active{background:#eaf2ed;color:#235b44;font-weight:650}
.sidebar nav svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.sidebar nav a[data-nav=projects]{margin-top:24px}
.nav-count{margin-left:auto;font:12px var(--mono);color:inherit;opacity:.75}
.sidebar-bottom{margin: auto 0 0;padding:15px 12px 0;font-size:11px;gap:8px;color:var(--muted)}
.connection-dot{width:7px;height:7px;background:#72a88d}
.mobile-nav-toggle{display:none}
.shell{height:100dvh;min-width:0;margin-left:208px}
.topbar{min-height:72px;flex-shrink:0;flex-wrap:nowrap;gap:16px;padding:14px 32px;background:#fff;border-bottom:1px solid var(--line)}
.project-switch{max-width:50%;flex-wrap:nowrap}
.project-switch select{width:240px;max-width:100%;height:38px;padding:6px 30px 6px 12px;border:1px solid var(--line);border-radius:7px;font-size:13px;font-weight:550;background:#fff;color:var(--ink)}
.account-menu{position:relative;margin-left:auto;max-width:50%;font-size:13px;color:var(--muted)}
.account-menu>summary{display:flex;align-items:center;gap:9px;list-style:none;min-height:38px;padding:3px;border-radius:6px}
.account-menu>summary::-webkit-details-marker{display:none}
.account-avatar{display:grid;place-items:center;width:30px;height:30px;flex-shrink:0;border-radius:50%;background:#eef2ee;color:#5e7767}
#account-label{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.account-chevron{font-size:16px;flex-shrink:0}
.account-options{position:absolute;right:0;top:calc(100% + 10px);z-index:30;width:160px;padding:5px;border:1px solid var(--line);border-radius:9px;background:#fff;box-shadow:0 8px 30px #233a3014}
.account-options button{display:block;width:100%;padding:10px 12px;border-radius:5px;text-align:left;background:#fff;color:var(--ink);font-size:13px}
.account-options button:hover{background:var(--paper)}
main{max-width:1600px;padding:32px;min-width:0;scrollbar-gutter:stable}
.page-heading{gap:16px;margin-bottom:26px;min-height:42px}
.page-heading>.button-row{justify-content:flex-end}
.breadcrumbs{font-size:12px;margin-bottom:12px;gap:9px}
.breadcrumbs a:hover{color:var(--green)}
.subtitle{margin-top:8px;font-size:13px}
.btn{min-height:38px;padding:8px 14px;gap:7px;border-radius:7px;font-size:13px;line-height:1.4;font-weight:550;transition:background .15s,border-color .15s,box-shadow .15s}
.btn:hover{background:#f3f6f3;border-color:#c7d3cb}
.btn.primary{background:var(--green);border-color:var(--green);box-shadow:0 2px 3px #1c473b0c}
.btn.primary:hover{background:#20533f;border-color:#20533f}
.btn.small{min-height:32px;padding:6px 10px;font-size:12px}
.btn.quiet{background:transparent;border-color:transparent;color:var(--muted)}
.btn.danger{color:#ac5a50;border-color:#eadfdc;background:#fff}
.btn.danger:hover{background:#fcf2f0;border-color:#dcb8b0}
.btn.icon-only{width:32px;min-height:32px;padding:6px}
.button-row{gap:8px}
.stats-grid{gap:0;border-radius:10px;margin-bottom:24px;border:1px solid var(--line);box-shadow:0 2px 3px #253a3003}
.stat-card{padding:18px 22px;border-right-color:var(--line);min-width:0}
.stat-label{font-size:12px;color:var(--muted)}
.stat-number{font:500 30px/1.4 var(--mono);letter-spacing:-1px;color:#294d3b;margin:7px 0 3px}
.stat-number small{font-size:12px;letter-spacing:0;margin-left:7px}
.stat-foot{font-size:11px;line-height:1.7;color:var(--muted)}
.panel{border-radius:10px;border-color:var(--line);margin-bottom:20px;box-shadow:0 2px 3px #253a3003;min-width:0}
.panel-head{padding:16px 20px}
.panel-body{padding:20px}
.toolbar{padding:16px 18px;gap:14px;border-bottom:1px solid var(--line)}
.tabs{gap:4px}
.tab{min-height:36px;padding:8px 11px;border-radius:6px;font-size:13px}
.tab:hover{color:var(--ink);background:#f5f7f5}
.tab.active{background:#edf3ef;color:var(--green);font-weight:600}
.tab .count{font-size:11px;margin-left:6px;opacity:.75}
.search{max-width:260px;min-width:160px}
.search input{min-height:36px;padding:8px 11px 8px 33px;font-size:12px;border-radius:6px;background:#fbfcfb}
.search svg{left:11px;top:11px}
th{background:#fafbfa;font-size:11px;padding:12px 14px;color:var(--muted);font-weight:500}
td{padding:16px 14px;font-size:13px;border-bottom-color:#edf0ee}
tbody tr:hover{background:#fafcfb}
.run-title{font-size:14px;font-weight:600;line-height:1.6;overflow-wrap:anywhere}
.cell-sub{font-size:11px;line-height:1.7;color:var(--muted);margin-top:5px}
.mono{font-size:11px;font-variant-numeric:tabular-nums}
.badge{font-size:11px;padding:4px 8px;border-radius:5px;font-weight:500}
.badge.green{color:#3b7752;background:#edf5ee}
.badge.amber{color:#957020;background:#fbf5e8}
.badge.red{color:#ae534c;background:#fbeeed}
.cell-progress{min-width:90px;max-width:145px}
.cell-progress>div{font-size:11px;margin-bottom:7px;gap:8px}
progress{height:5px;border-radius:4px}
.run-ratio-cell{min-width:165px;width:19%;vertical-align:middle}
.run-ratio{max-width:300px}
.run-ratio-bar{height:10px;border-radius:4px}
.ratio-legend{gap:3px 9px;font-size:11px;line-height:1.7;margin-top:8px}
.ratio-item{gap:4px}
.ratio-swatch{width:6px;height:6px;border-radius:2px}
.runs-table td:first-child,.runs-table th:first-child{padding-left:18px;padding-right:4px;width:34px}
.runs-table td:nth-child(2){min-width:170px;max-width:230px}
.runs-table td:last-child{min-width:86px}
.runs-table td:last-child .button-row{gap:5px}
.runs-table td:last-child .btn{font-size:11px;padding:5px 7px;min-height:30px}
.runs-table td:last-child .btn.danger{color:var(--muted);border-color:transparent}
.runs-table td:last-child .btn.danger:hover{color:#ac5a50;border-color:#eadfdc}
.run-date{color:var(--muted);font-size:10px}
.table-footer{padding:13px 18px;border-top-color:var(--line);font-size:11px}
.context-help{font-size:12px;line-height:1.8;color:var(--muted);margin:0 0 18px}
.context-help>summary{display:list-item;width:fit-content}
.context-help p{margin:8px 0 0;max-width:720px}
.empty{padding:60px 24px;font-size:13px}
.empty h3{font-size:17px;color:var(--ink);font-weight:550}
.empty .btn{margin-top:20px}
.notice{padding:12px 16px;font-size:13px;border-radius:8px;margin-bottom:18px}
.suite-grid{gap:18px;margin-bottom:24px}
.suite-card{padding:24px;border-radius:10px;border-color:var(--line);min-width:0}
.suite-card h2{font-size:17px;line-height:1.5;overflow-wrap:anywhere;margin-bottom:14px}
.suite-card p{font-size:13px;line-height:1.8}
.suite-card .hint{font-size:12px}
.suite-card-bottom{padding-top:16px;margin-top:auto;border-top:1px solid var(--line);font-size:12px}
.suite-card .button-row{margin-top:14px}
.text-link{font-size:13px}
.reservation-schedule-note{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:-10px 0 24px;color:var(--muted);font-size:12px}
.reservation-filters{gap:18px;justify-content:flex-start;align-items:center;padding:18px 20px}
.reservation-filters>.field{max-width:200px}
.reservation-filters>label{display:flex;align-items:center;gap:8px;font-size:12px}
.reservation-filters>.field{display:block}
.reservation-filters .field input{margin-top:5px}
.reservation-filters [data-action=reservation-today]{margin-left:auto}
.reservation-table td{padding:20px}
.reservation-table th{padding:12px 20px}
.reservation-model{font-weight:600}
.reservation-notes{font-size:12px;color:var(--muted)}
dialog{width:680px;border:1px solid #dce4de;border-radius:14px;box-shadow:0 24px 90px #17291e26;max-height:90dvh}
dialog::backdrop{background:#1a29254d;backdrop-filter:blur(3px)}
.modal-head{padding:21px 26px}
.modal-head h2{font-size:20px;letter-spacing:-.4px}
.modal-body{padding:24px 26px}
.modal-foot{padding:16px 26px;background:#fbfcfb;justify-content:flex-end}
.field{margin-bottom:18px;font-size:13px;font-weight:500;color:#515e56}
.field>input,.field>select,.field>textarea{margin-top:7px;padding:10px 12px;border-radius:7px;font-size:14px;line-height:1.5;border-color:#dce3de}
.field>input,.field>select{min-height:42px}
.field>input[readonly]{background:#f5f7f5;color:var(--muted)}
.field small{font-weight:400;font-size:11px;margin-top:6px}
.field-row{gap:18px}
.advanced{border-top:1px solid var(--line);padding-top:15px;margin-top:18px;font-size:13px}
.advanced>summary{min-height:32px}
.model-preview{padding:16px;border-radius:8px;background:#f4f8f5;border-color:#dfebe2;margin-bottom:20px}
.model-preview-head{font-size:13px}
.case-picker{max-height:190px;border-radius:7px}
.pick-row{padding:11px 13px;gap:10px;font-size:13px}
.pick-head{padding:7px 0;font-size:12px}
.total-preview{font-size:13px}
.run-summary .run-estimate{font-size:12px}
.auth-panel{max-width:400px;margin:8vh auto;padding:36px;border-radius:14px;box-shadow:0 12px 40px #21392c06}
.auth-brand{display:inline-block;font-size:30px;font-weight:700;color:var(--green);letter-spacing:-1.3px;margin-bottom:30px}
.auth-panel h1{font-size:24px;margin-bottom:28px}
.auth-panel .btn.primary{width:100%;margin-top:12px}
.signed-out .shell{margin-left:0}
.signed-out .topbar:has(.account-menu[hidden]){display:none}
.toast{font-size:13px;padding:13px 20px;border-radius:9px;box-shadow:0 6px 25px #13282420;max-width:calc(100vw - 32px)}
/* Review stays inside the viewport, with independent question and response panes. */
main.run-page{padding-top:20px;padding-bottom:20px}
.run-page>.page-heading{margin-bottom:16px}
.run-page>.breadcrumbs{margin-bottom:8px}
.run-page .stats-grid{margin-bottom:14px}
.run-page .stat-card{padding:11px 18px}
.run-page .stat-number{font-size:25px;margin:3px 0}
.run-settings{margin-bottom:14px;border-radius:8px}
.run-settings>summary{padding:9px 14px;font-size:12px}
.run-meta{font-size:12px;gap:16px}
.detail-grid{grid-template-columns:260px minmax(0,1fr);gap:20px}
.question-sidebar{border-radius:10px}
.question-sidebar .panel-head{padding:13px 16px}
.question-sidebar h2{font-size:14px}
.question-tools{padding:12px;gap:8px}
.question-tools select{min-height:34px;font-size:11px;border-radius:6px;padding:6px}
.question-tools .search{min-width:0}
.question-item{padding:14px 13px;border-left-width:3px}
.question-item.selected{background:#edf4ef;border-left-color:#4b8463}
.question-number{margin-bottom:7px}
.question-text{font-size:13px;line-height:1.7}
.question-header{border-radius:10px;padding:18px 20px;margin-bottom:14px}
.question-header h2{font-size:19px;line-height:1.6;margin:7px 0}
.expectation{font-size:13px;line-height:1.7;padding-left:12px}
.attempt-card{border-radius:10px;border-color:#dce5de;margin-bottom:16px}
.answer-group,.answered-attempt{border-left:3px solid #72a185}
.attempt-head{padding:12px 16px;background:#f7faf7}
.attempt-order{font-size:12px;color:#65766b;font-weight:500}
.attempt-body{padding:20px}
.response-text{font-size:16px;line-height:1.9;color:var(--ink)}
.response-label{font-size:11px;font-weight:500;color:var(--muted)}
.review-toolbar{gap:10px;margin:12px 0}
.review-toolbar select{min-height:36px;font-size:12px;border-radius:6px}
.attempt-card>.review-form{padding:12px 16px;background:#fafcf9;gap:12px}
.verdict-option span{padding:7px 10px;font-size:12px;border-radius:6px}
.review-fields{gap:8px}
.review-fields label{font-size:12px}
.review-fields input[name=note]{height:34px;border-radius:6px;font-size:12px}
.review-fields>.btn{min-height:34px}
.disclosure-toggle{background:#f3f7f1;font-size:12px;font-weight:500;border-radius:0;padding:12px 16px}
.group-member{margin:12px 16px}
.refusal-summary{border-radius:9px;padding:14px 16px}
.refusal-group{border-radius:6px}

@media(min-width:1001px) and (max-height:800px){
  main.run-page{padding:14px 24px}
  .run-page .page-heading{margin-bottom:10px;min-height:36px}
  .run-page h1{font-size:24px}
  .run-page .stat-card{padding:8px 16px}
  .run-page .stat-number{font-size:22px;margin:2px 0}
  .run-page .stats-grid{margin-bottom:10px}
}
@media(max-width:1200px){
  .sidebar{width:184px;padding-left:12px;padding-right:12px}
  .sidebar nav a{padding-left:10px;padding-right:10px;font-size:13px}
  .shell{margin-left:184px}
  main{padding:26px 22px}
  .topbar{padding-left:22px;padding-right:22px}
  .toolbar{flex-wrap:wrap}
  .toolbar .search{max-width:100%}
  .detail-grid{grid-template-columns:235px minmax(0,1fr);gap:14px}
  .stat-card{padding:16px}
  .suite-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* Rows become cards when a table would require horizontal scrolling. */
@media(max-width:1100px){
  .runs-table,.runs-table tbody{display:block;width:100%;min-width:0}
  .runs-table thead{display:none}
  .runs-table tbody tr{position:relative;display:grid;grid-template-columns:28px minmax(0,1fr) minmax(0,1fr) auto;gap:16px 12px;padding:20px;border-bottom:1px solid var(--line)}
  .runs-table tbody tr:last-child{border-bottom:0}
  .runs-table tbody td{display:block;min-width:0!important;max-width:none!important;width:auto;padding:0;border:0}
  .runs-table tbody td:first-child{grid-column:1;grid-row:1;padding:3px 0 0}
  .runs-table tbody td:nth-child(2){grid-column:2/4;grid-row:1}
  .runs-table tbody td:nth-child(3){grid-column:4;grid-row:1}
  .runs-table tbody td:nth-child(4){grid-column:2/5;grid-row:2}
  .runs-table .cell-progress{max-width:none}
  .runs-table tbody td:nth-child(5){grid-column:2;grid-row:3}
  .runs-table tbody td:nth-child(6){grid-column:3/5;grid-row:3}
  .runs-table tbody td:nth-child(5)::before,.runs-table tbody td:nth-child(6)::before{display:block;font-size:11px;color:var(--muted);margin-bottom:8px}
  .runs-table tbody td:nth-child(5)::before{content:"回覆類型"}
  .runs-table tbody td:nth-child(6)::before{content:"人工判讀"}
  .runs-table tbody td:nth-child(7){grid-column:2;grid-row:4;align-self:center}
  .runs-table tbody td:nth-child(8){grid-column:3/5;grid-row:4;justify-self:end}
  .runs-table .ratio-legend{font-size:11px}
  .run-ratio{max-width:none}
}
@media(max-width:800px){
  .sidebar{position:sticky;top:0;inset-inline:0;width:100%;height:auto;min-height:0;display:block;padding:0 16px;background:#fff;border-right:0;border-bottom:1px solid var(--line)}
  .brand{height:60px;padding:0 4px;font-size:24px;gap:8px}
  .brand-mark{width:27px;height:29px;font-size:28px;border-radius:7px}
  .mobile-nav-toggle{display:grid;place-items:center;position:absolute;right:14px;top:9px;width:42px;height:42px;background:transparent;border:1px solid var(--line);border-radius:7px;color:var(--ink)}
  .sidebar nav{display:none}
  .sidebar.mobile-nav-open nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding-bottom:12px}
  .sidebar nav::-webkit-scrollbar{display:none}
  .sidebar nav a{flex-shrink:0;min-height:38px;padding:8px 11px;font-size:12px;gap:7px}
  .sidebar nav a[data-nav=projects]{margin-top:0}
  .sidebar nav svg{width:15px;height:15px}
  .sidebar-bottom,.nav-count{display:none}
  .shell{margin-left:0;height:auto;min-height:calc(100dvh - 60px)}
  .topbar{min-height:60px;padding:10px 20px;gap:12px;flex-wrap:nowrap}
  .project-switch{max-width:56%;flex:0 1 56%}
  .project-switch select{width:100%;font-size:12px}
  .account-menu{max-width:42%}
  .account-avatar{width:27px;height:27px}
  .account-menu>summary{gap:6px}
  #account-label{font-size:11px}
  main,main.run-page{padding:24px 20px;overflow:visible}
  h1{font-size:25px}
  .page-heading{gap:14px;flex-wrap:wrap;margin-bottom:22px}
  .page-heading>.button-row{justify-content:flex-start}
  .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:20px}
  .stat-card{padding:16px 18px}
  .stat-card:nth-child(2){border-right:0}
  .stat-card:nth-child(-n+2){border-bottom:1px solid var(--line)}
  .stat-number{font-size:27px}
  .toolbar{padding:12px;gap:12px}
  .toolbar .search{width:100%;max-width:none}
  .tabs{gap:2px;width:100%}
  .tab{padding:8px;font-size:12px}
  .tab .count{margin-left:4px}
  .detail-grid{grid-template-columns:minmax(0,1fr);gap:16px;flex:none}
  .question-sidebar{max-height:255px}
  .question-sidebar>.panel-head{display:flex;padding:12px}
  .question-tools{grid-template-columns:1fr 1fr;padding:10px}
  .question-tools .search{grid-column:1/-1}
  .question-tools input,.question-tools select{font-size:12px}
  .question-list{max-height:130px;flex:auto}
  .question-item{padding:12px}
  .review-workspace{overflow:visible;padding:0}
  .question-header{padding:16px}
  .question-header h2{font-size:18px}
  .run-settings[open]{max-height:none}
  .run-page .stat-card{padding:13px 16px}
  .run-page .stat-number{font-size:25px}
  .suite-grid,.compare-drill{grid-template-columns:1fr}
  .compare-picker{grid-template-columns:1fr;gap:12px}
  .compare-arrow{display:none}
  .suite-card{padding:22px}
  .reservation-schedule-note{margin-top:-8px;font-size:11px;gap:4px}
  .reservation-filters{gap:12px;padding:16px;justify-content:space-between}
  .reservation-filters>.field{max-width:none;flex:1 1 100%}
  .reservation-filters [data-action=reservation-today]{margin-left:0}
  .reservation-table tbody tr{padding:18px;gap:10px}
  .reservation-table tbody td{padding:0}
  .field-row{grid-template-columns:1fr;gap:0}
  .modal-head{padding:17px 20px}
  .modal-body{padding:20px;max-height:65dvh}
  .modal-foot{padding:14px 20px;gap:12px}
  .review-fields{flex-basis:100%}
  .review-fields label{flex:1;min-width:0}
  .verdict-option span{padding:7px 9px;font-size:11px}
  .attempt-body{padding:18px 16px}
  .attempt-card>.review-form{padding:12px}
  .auth-panel{margin:5vh auto;padding:28px}
  .signed-out .shell{min-height:100dvh}
}
@media(max-width:420px){
  main,main.run-page{padding:20px 14px}
  .topbar{padding:10px 14px}
  .page-heading>.button-row{gap:6px;width:100%}
  .page-heading>.button-row>.btn.primary{margin-left:auto}
  .page-heading .btn{padding:8px 10px;font-size:12px}
  .runs-table tbody tr{padding:16px 12px;gap:14px 9px;grid-template-columns:20px minmax(0,1fr) minmax(0,1fr) auto}
  .runs-table tbody td:nth-child(2){grid-column:2/5;padding-right:65px}
  .runs-table tbody td:nth-child(3){position:absolute;right:12px;top:18px}
  .run-title{font-size:13px}
  .stat-card{padding:14px}
  .stat-foot{font-size:10px}
  .tabs{flex-wrap:wrap}
  .tab{font-size:11px;padding:7px}
}
