#review-checklist {
  --rv-columns:minmax(0,1.05fr) minmax(0,1.18fr) minmax(0,.65fr) minmax(0,1.25fr);
  display:grid;
  gap:14px;
  min-width:0;
}
.rv-banner {border-top:3px solid var(--nav);}
.rv-counts {font-variant-numeric:tabular-nums;}
.rv-col-head {position:sticky;top:0;z-index:1;}
.rv-self {font-variant-numeric:tabular-nums;}
@media(max-width:700px){
  .rv-banner .rv-counts {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;gap:4px;}
  .rv-banner .rv-counts>div {padding-left:0;border-left:0;}
  .rv-banner .rv-counts b {white-space:nowrap;font-size:16px;}
}
#review-checklist [hidden],#review-checklist [data-rv-error]:empty { display:none!important; }
.rv-banner,.rv-group,.rv-report,.rv-footer {
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#fff;
}
.rv-banner,.rv-tools,.rv-footer,.rv-counts,.rv-group>header,.rv-actions,.rv-existing {
  display:flex;
  align-items:center;
  gap:10px;
}
.rv-banner,.rv-tools,.rv-footer {justify-content:space-between;flex-wrap:wrap;}
.rv-banner h2 {font-size:19px;}
.rv-banner p,.rv-muted,.rv-counts small,.rv-row small {font-size:12px;color:var(--muted);}
.rv-counts {gap:16px;}
.rv-counts>div {display:grid;gap:2px;}
.rv-counts>div+div {border-left:1px solid var(--line);padding-left:14px;}
.rv-counts b {font-size:18px;font-variant-numeric:tabular-nums;}
.rv-tools select {width:auto;min-height:32px;font-size:13px;}
.rv-tools .chips {display:flex;flex-wrap:wrap;gap:6px;}
.rv-group {padding:0;overflow:clip;}
.rv-group>header {padding:12px 16px;}
.rv-group>header h2,.rv-report h2 {font-size:16px;}
.rv-group>header .icon {width:17px;height:17px;color:var(--blue);}
.rv-group>header small {margin-left:auto;color:var(--muted);}
.rv-row,.rv-col-head {display:grid;grid-template-columns:var(--rv-columns);gap:12px;}
.rv-col-head {padding:7px 16px;background:#f2f5f9;color:var(--muted);font-size:12px;font-weight:600;}
.rv-row {border-top:1px solid var(--line);padding:12px 16px;align-items:start;font-size:13px;line-height:1.5;}
.rv-row>div,.rv-row details,.rv-row label,.rv-report>* {min-width:0;overflow-wrap:anywhere;}
.rv-row summary,.rv-report summary {cursor:pointer;display:list-item;padding:0;color:var(--blue);font-size:12px;line-height:1.55;overflow-wrap:anywhere;}
.rv-details>p,.rv-details>ul,.rv-details>small {margin-top:4px;}
.rv-row .check-sources ul,.rv-reference ul {padding-left:14px;margin:4px 0;}
.rv-row .check-sources small,.rv-row .check-sources .check-excerpt {display:block;color:var(--muted);font-size:12px;}
.rv-identity h3,.rv-identity h3 .rv-link {font-size:14px;font-weight:650;color:var(--ink);}
.rv-link {min-height:22px;padding:0;border:0;background:none;color:var(--blue);font-size:12px;text-align:left;}
.rv-link:hover {text-decoration:underline;}
.rv-self {display:block;margin:4px 0;color:var(--nav);font-size:13px;}
.rv-wrap {white-space:pre-wrap;overflow-wrap:anywhere;}
.rv-actions {flex-wrap:wrap;gap:4px 10px;}
.rv-reference,.rv-evidence {display:grid;justify-items:start;gap:3px;font-size:12px;}
.rv-reference>span {white-space:nowrap;}
.rv-ai summary {color:var(--nav);}
.rv-reason {display:block;margin-bottom:4px;color:#80521e!important;}
.rv-auto-score {color:var(--nav);font-weight:650;font-variant-numeric:tabular-nums;}
.rv-batch-list {padding:0;list-style:none;margin:12px 0;}
.rv-batch-list>li {border-top:1px solid var(--line);padding:10px 2px;overflow-wrap:anywhere;}
.rv-batch-list label {display:flex;align-items:center;gap:7px;}
.rv-batch-list label input {width:17px;height:17px;margin:0;}
.rv-batch-list p,.rv-batch-list details {margin:3px 0 0 24px;font-size:13px;}
.rv-batch-list a {overflow-wrap:anywhere;}
.rv-batch-list summary {cursor:pointer;color:var(--blue);}
.rv-common-footer {position:sticky;bottom:0;z-index:1;display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:8px;padding:10px 0;background:white;border-top:1px solid var(--line);}
.rv-select-normal {display:inline-flex;align-items:center;gap:8px;font-weight:650;}
.rv-select-normal input {width:18px;height:18px;margin:0;}
.rv-stale-ai summary,.rv-warn {color:#865317;}
.rv-negative {color:#a43030;}
.rv-controls {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;align-items:end;}
.rv-controls>.rv-field:only-child {grid-column:1/-1;}
.rv-field {display:grid;gap:3px;min-width:0;font-size:12px;color:var(--muted);}
.rv-field input,.rv-field textarea,.rv-field select {
  width:100%;min-width:0;min-height:32px;padding:5px 7px;background:#fff;color:var(--ink);
  border:1px solid #cbd5e1;border-radius:5px;font:inherit;font-size:13px;
}
.rv-field textarea {resize:vertical;}
.rv-field input[type=number] {appearance:textfield;font-variant-numeric:tabular-nums;}
.rv-field input[type=number]::-webkit-inner-spin-button {appearance:none;}
.rv-check {display:flex;align-items:flex-start;gap:6px;margin:5px 0;font-size:12px;}
.rv-check input {width:15px;height:15px;min-width:15px;margin:2px 0;}
.rv-row [data-rv-ref],.rv-opinion,.rv-row [data-rv-state]:not(:empty),.rv-row [data-rv-inspect] {margin-top:4px;}
.rv-row [data-rv-state] {font-size:12px;color:var(--muted);}
.rv-row [data-rv-state].rv-warn {color:#865317;}
.rv-existing {align-items:flex-start;flex-direction:column;gap:0;}
.rv-existing b {color:var(--nav);}
.rv-derived:not(:empty) {margin-top:5px;font-variant-numeric:tabular-nums;color:var(--nav);font-weight:600;}
.rv-derived>p {font-size:12px;font-weight:400;color:var(--muted);}
.rv-existing span {font-size:12px;color:var(--muted);}
.rv-opinion[open] .rv-field {margin-top:6px;}
.rv-report {display:grid;gap:10px;}
.rv-report>.rv-field {max-width:800px;}
.rv-report .rich-preview {max-height:300px;overflow:auto;margin:5px 0 10px;}
.rv-report h4 {margin:7px 0 0;}
.rv-footer {position:sticky;bottom:0;z-index:3;box-shadow:0 -3px 14px rgba(25,41,86,.05);}
.rv-footer [role=status] {font-size:12px;color:var(--muted);}
.rv-message,#review-checklist [data-rv-error]:not(:empty) {background:#fdf8ec;border:1px solid #e6d9b0;border-radius:6px;padding:8px 12px;font-size:13px;}
.rv-mobile-label {display:none;}
.rv-export {position:relative;}
.rv-export summary {list-style:none;cursor:pointer;}
.rv-export summary::-webkit-details-marker {display:none;}
.rv-export[open]>.actions {display:flex;position:absolute;right:0;z-index:5;padding:8px;background:white;border:1px solid var(--line);border-radius:6px;flex-wrap:nowrap;}
@media(max-width:900px) {
  #review-checklist {--rv-columns:minmax(0,1fr) minmax(0,1.05fr) minmax(0,.63fr) minmax(0,1.24fr);}
  .rv-row,.rv-col-head {padding-left:11px;padding-right:11px;gap:9px;}
}
@media(max-width:700px) {
  #review-checklist {gap:10px;}
  .rv-banner,.rv-report {padding:12px;}
  .rv-counts {gap:12px;}
  .rv-banner {align-items:flex-start;gap:7px;}
  .rv-counts b {font-size:16px;}
  .rv-group>header {padding:10px 12px;}
  .rv-col-head {display:none;}
  .rv-row {display:grid;grid-template-columns:1fr;gap:8px;padding:12px;}
  .rv-identity h3,.rv-identity>small {display:inline;}
  .rv-identity>small {margin-left:7px;}
  .rv-mobile-label {display:block;color:var(--muted);font-size:12px;}
  .rv-evidence {border-left:2px solid var(--line);padding-left:8px;}
  .rv-reference {display:flex;align-items:baseline;gap:5px 12px;flex-wrap:wrap;}
  .rv-reference details[open] {width:100%;}
  .rv-verdict {padding-top:6px;border-top:1px dashed var(--line);}
  .rv-check {margin:7px 0;}
  .rv-tools select {max-width:100%;}
  .rv-footer {padding:7px 9px max(7px,env(safe-area-inset-bottom,0px));gap:4px;bottom:0;}
  .rv-footer .actions {gap:3px;}
  .rv-footer [role=status] {font-size:11px;}
}

.rv-employee-switch {display:flex;align-items:center;gap:8px;margin-top:8px;font-size:13px;flex-wrap:wrap;}
.rv-employee-switch select {width:auto;max-width:100%;min-width:0;}

@media(max-width:700px) {
  :is(.rv-footer,.rv-tools) :is(.button,.chip,select) {min-height:var(--touch-target)}
}
