:root {
  --ink: #17211c;
  --muted: #69756d;
  --line: #dfe6e1;
  --paper: #fff;
  --wash: #f3f6f3;
  --green: #146b46;
  --green-dark: #0d4e33;
  --green-soft: #e8f4ed;
  --amber: #955800;
  --amber-soft: #fff3d9;
  --red: #9a302f;
  --red-soft: #fff0ef;
  --blue: #285f83;
  --blue-soft: #eaf4fb;
  --shadow: 0 14px 42px rgb(21 48 35 / 8%);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: radial-gradient(circle at 12% 0%, rgb(80 148 110 / 13%), transparent 32rem), var(--wash);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { text-decoration: none; }
.hidden { display: none !important; }

.topbar { max-width: 1540px; margin: 0 auto; padding: 28px 32px 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar h1 { margin: 2px 0 0; font-size: clamp(24px, 3vw, 38px); }
.top-actions, .identity-box, .button-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.eyebrow { margin: 0 0 6px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
main { max-width: 1540px; margin: 0 auto; padding: 0 32px 54px; }

.panel, .login-card { border: 1px solid rgb(214 224 217 / 90%); border-radius: 22px; background: rgb(255 255 255 / 94%); box-shadow: var(--shadow); }
.login-card { max-width: 540px; margin: 8vh auto 0; padding: clamp(26px, 5vw, 48px); }
.login-card h2 { margin: 18px 0 10px; font-size: 28px; }
.login-card > p { color: var(--muted); line-height: 1.7; }
.login-copy { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 99px; color: var(--green-dark); background: var(--green-soft); font-size: 13px; font-weight: 800; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
form, label { display: grid; gap: 8px; }
form { gap: 18px; margin-top: 26px; }
label { color: #37423b; font-size: 13px; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid #cdd8d0; border-radius: 12px; padding: 11px 12px; color: var(--ink); background: #fff; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgb(20 107 70 / 12%); }
textarea { resize: vertical; }
.form-error { min-height: 20px; margin: -6px 0 0; color: var(--red); font-size: 13px; }

.primary-button, .secondary-button, .ghost-button, .danger-button { display: inline-flex; justify-content: center; align-items: center; border-radius: 12px; padding: 11px 15px; border: 1px solid transparent; font-weight: 800; }
.primary-button { color: #fff; background: var(--green); }
.primary-button:hover:not(:disabled) { background: var(--green-dark); }
.secondary-button { color: var(--green-dark); border-color: #b8d2c3; background: var(--green-soft); }
.ghost-button { color: var(--ink); border-color: var(--line); background: #fff; }
.danger-button { color: var(--red); border-color: #e9c6c2; background: var(--red-soft); }

.toolbar { padding: 18px 22px; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.filter-grid { display: grid; grid-template-columns: repeat(3, minmax(160px, 220px)); gap: 12px; }
.role-badge, .count-badge, .state-pill, .mini-pill { display: inline-flex; align-items: center; width: fit-content; border-radius: 99px; padding: 6px 10px; font-size: 12px; font-weight: 800; }
.role-badge { color: var(--green-dark); background: var(--green-soft); }
.count-badge { color: var(--amber); background: var(--amber-soft); }
.state-pill.pending, .mini-pill.pending { color: var(--amber); background: var(--amber-soft); }
.state-pill.confirmed, .mini-pill.confirmed { color: var(--green-dark); background: var(--green-soft); }
.state-pill.candidate, .mini-pill.candidate { color: var(--blue); background: var(--blue-soft); }

.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.summary-card { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.summary-card span { color: var(--muted); font-size: 13px; }
.summary-card strong { display: block; margin-top: 7px; font-size: 27px; }
.summary-card.alert { border-color: #e7c17d; background: var(--amber-soft); }

.view-tabs { display: flex; gap: 8px; margin: 18px 0; padding: 5px; width: fit-content; border: 1px solid var(--line); border-radius: 14px; background: rgb(255 255 255 / 70%); }
.tab-button { border: 0; border-radius: 10px; padding: 10px 16px; color: var(--muted); background: transparent; font-weight: 800; }
.tab-button.active { color: #fff; background: var(--green); }

.documents-grid { display: grid; grid-template-columns: minmax(330px, 430px) minmax(0, 1fr); gap: 18px; align-items: start; }
.document-list-panel { position: sticky; top: 14px; max-height: calc(100vh - 28px); padding: 20px; overflow: hidden; }
.section-heading { display: flex; justify-content: space-between; gap: 18px; align-items: start; margin-bottom: 18px; }
.section-heading.compact { margin-bottom: 12px; }
.section-heading h2 { margin: 0; font-size: 22px; }
.section-heading p:not(.eyebrow) { margin: 8px 0 0; color: var(--muted); }
.document-list { display: grid; gap: 9px; max-height: calc(100vh - 132px); overflow: auto; padding-right: 4px; }
.document-card { width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: #fbfcfb; text-align: left; }
.document-card:hover { border-color: #a8c7b5; }
.document-card.active { border-color: var(--green); box-shadow: 0 0 0 3px rgb(20 107 70 / 10%); background: var(--green-soft); }
.document-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.document-card strong { font-size: 15px; }
.document-card p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }

.detail-panel, .section-panel { padding: 22px; }
.detail-title { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.detail-title h2 { margin: 0 0 7px; font-size: 25px; }
.detail-title p { margin: 3px 0; color: var(--muted); font-size: 13px; }
.gate-banner { margin: 16px 0; padding: 13px 15px; border: 1px solid #c5dccc; border-radius: 14px; color: var(--green-dark); background: var(--green-soft); line-height: 1.55; }
.gate-banner.warning { border-color: #e6c174; color: #754600; background: var(--amber-soft); }
.source-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 16px 0; }
.source-fact { padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #fafcfb; }
.source-fact span { display: block; color: var(--muted); font-size: 11px; }
.source-fact strong { display: block; margin-top: 5px; font-size: 13px; word-break: break-word; }

.item-section { margin-top: 20px; }
.item-section h3 { margin: 0; }
.item-grid { display: grid; gap: 10px; margin-top: 12px; }
.item-card { display: grid; grid-template-columns: 110px minmax(0, 1fr) 130px; gap: 12px; align-items: end; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfb; }
.item-name strong { display: block; }
.item-name small { display: block; margin-top: 5px; color: var(--muted); }
.quantity-grid { display: grid; grid-template-columns: repeat(4, minmax(75px, 1fr)); gap: 8px; }
.quantity-grid label { font-size: 11px; }
.quantity-grid input { padding: 8px 9px; }
.candidate-value { color: var(--blue); font-weight: 800; }
.item-actions { display: grid; gap: 7px; }
.item-note { grid-column: 2 / 4; }
.item-note input { padding: 8px 9px; }
.manual-item { display: grid; grid-template-columns: 180px minmax(0, 1fr) 160px; gap: 10px; align-items: end; margin-top: 13px; padding: 14px; border: 1px dashed #b8c7bd; border-radius: 14px; background: #f9fbfa; }

.document-confirm { display: grid; grid-template-columns: minmax(160px, .7fr) minmax(220px, 1fr) 190px; gap: 12px; align-items: end; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.immutable-note { margin: 18px 0 0; padding: 13px; border-radius: 13px; color: var(--green-dark); background: var(--green-soft); font-weight: 700; }

.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 11px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 13px; }
th { color: #425047; background: #edf3ef; }
.finance-confirm { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 14px; align-items: end; margin-top: 18px; }
.audit-list { display: grid; }
.audit-item { display: grid; grid-template-columns: 170px minmax(0, 1fr) 190px; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 13px; }
.audit-item time, .audit-item span { color: var(--muted); }
.empty-state { padding: 30px 16px; border: 1px dashed #c9d4cc; border-radius: 14px; color: var(--muted); text-align: center; background: #fafcfb; }

.blind-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; }
.blind-hero h2, .blind-confirm-panel h2 { margin: 0; font-size: 25px; }
.blind-hero p:not(.eyebrow), .blind-confirm-panel p:not(.eyebrow) { margin: 9px 0 0; color: var(--muted); line-height: 1.65; }
.rule-list { display: grid; gap: 10px; margin: 0; padding-left: 24px; color: #36433b; line-height: 1.6; }
.blind-samples-section { margin-top: 18px; }
.blind-sample-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.blind-sample-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fbfcfb; }
.blind-image-button { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: #eef3ef; }
.blind-image-button img { width: 100%; height: 100%; object-fit: cover; transition: transform 180ms ease; }
.blind-image-button:hover img { transform: scale(1.035); }
.blind-image-loading { display: grid; place-items: center; width: 100%; height: 100%; padding: 12px; color: var(--muted); font-size: 12px; }
.blind-sample-meta { padding: 13px; }
.blind-sample-meta p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.blind-sample-meta .blind-selection-reason { color: #37473d; }
.blind-confirm-panel { display: grid; grid-template-columns: minmax(240px, .75fr) minmax(360px, 1.25fr); gap: 28px; align-items: end; margin-top: 18px; }
.blind-confirm-form { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 14px; align-items: end; }
.confirmation-copy { max-width: 650px; }
.blind-review-section { margin-top: 18px; }
.blind-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 10px; margin: 16px 0 22px; }
.blind-metric-card { min-height: 94px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: #fbfcfb; }
.blind-metric-card span { display: block; color: var(--muted); font-size: 12px; line-height: 1.45; }
.blind-metric-card strong { display: block; margin-top: 7px; font-size: 23px; line-height: 1.1; }
.blind-metric-card.alert { border-color: #e7c17d; background: var(--amber-soft); }
.blind-error-summary { margin: 0 0 24px; padding: 18px; border: 1px solid #d9e2dc; border-radius: 18px; background: #f8faf8; }
.error-summary-title { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 14px; }
.error-summary-title h3 { margin: 0; font-size: 21px; }
.error-summary-title > p { max-width: 520px; margin: 0; color: var(--muted); font-size: 13px; text-align: right; }
.error-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.error-summary-group { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.error-summary-group.severe { border-color: #e7aaa3; background: #fff9f8; }
.error-summary-group.warning { border-color: #e7c17d; background: #fffdf7; }
.error-summary-group.resolved { border-color: #a8d5bd; background: #f6fcf8; }
.error-summary-group.normalization { border-color: #e7c17d; background: #fffaf0; }
.error-summary-heading { display: flex; justify-content: space-between; gap: 12px; padding: 13px 14px; border-bottom: 1px solid rgb(0 0 0 / 7%); }
.error-summary-heading strong { font-size: 15px; }
.error-summary-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.error-count { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 99px; color: var(--amber-dark); background: #f7e7c5; font-weight: 900; }
.severe .error-count { color: var(--red); background: var(--red-soft); }
.resolved .error-count { color: var(--green-dark); background: var(--green-soft); }
.normalization .error-count { color: #8b5b08; background: #f7e7c5; }
.error-summary-list { display: grid; max-height: 310px; overflow: auto; }
.error-jump { display: grid; grid-template-columns: minmax(150px, .85fr) minmax(220px, 1.4fr) auto; gap: 10px; align-items: center; padding: 11px 14px; border-bottom: 1px solid rgb(0 0 0 / 6%); color: inherit; text-decoration: none; }
.error-jump:last-child { border-bottom: 0; }
.error-jump:hover { background: rgb(255 255 255 / 72%); }
.error-jump strong { font-size: 12px; }
.error-jump span { color: #4b584f; font-size: 12px; line-height: 1.45; }
.error-jump b { color: var(--blue); font-size: 11px; white-space: nowrap; }
.blind-review-list { display: grid; gap: 18px; }
.blind-review-card { scroll-margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fbfcfb; }
.blind-review-card.error-card { border-color: #e7b4af; background: #fffafa; }
.blind-review-card.has-header-error { border-color: #e7c17d; background: #fffdf7; }
.blind-review-card.has-numeric-error { border: 2px solid #d85d52; background: #fff9f8; box-shadow: 0 0 0 4px rgb(216 93 82 / 8%); }
.blind-review-card.has-resolved-recheck { border: 2px solid #8cc7a4; background: #f7fcf8; box-shadow: 0 0 0 4px rgb(71 139 94 / 8%); }
.review-card-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.review-card-heading h3 { margin: 0; font-size: 19px; }
.review-card-heading p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.review-card-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: end; }
.review-legend { display: flex; gap: 14px; flex-wrap: wrap; margin: 14px 0 10px; color: var(--muted); font-size: 12px; }
.review-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border: 1px solid; border-radius: 3px; vertical-align: -1px; }
.review-legend .legend-model::before { border-color: #9ac2d9; background: var(--blue-soft); }
.review-legend .legend-effective::before { border-color: #8cc7a4; background: var(--green-soft); }
.review-legend .legend-truth::before { border-color: #cdd8d0; background: #fff; }
.header-compare-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.header-compare-field { display: grid; gap: 6px; padding: 11px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.header-compare-field > span { color: var(--muted); font-size: 11px; font-weight: 800; }
.header-compare-field.mismatch-field { border: 2px solid #d8a343; background: #fffaf0; }
.header-compare-field.normalization-field { border: 2px solid #e7c17d; background: #fffaf0; }
.header-compare-field .header-error-note { color: #8b5b08; line-height: 1.45; }
.header-compare-field .header-error-note.normalization-note { color: #76500c; }
.compare-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.locked-value, .locked-number { min-height: 38px; display: flex; align-items: center; padding: 8px 9px; border: 1px solid #b9d7e8; border-radius: 10px; color: var(--blue); background: var(--blue-soft); font-weight: 800; word-break: break-word; }
.locked-number { justify-content: center; min-width: 54px; }
.blind-truth-table { margin-top: 12px; }
.blind-truth-table table { min-width: 980px; }
.blind-truth-table th { white-space: nowrap; }
.blind-truth-table td { vertical-align: middle; }
.blind-truth-table td.number-pair { display: grid; grid-template-columns: minmax(54px, .8fr) minmax(62px, 1fr); gap: 6px; }
.blind-truth-table td.number-pair.has-recheck { grid-template-columns: repeat(3, minmax(54px, 1fr)); }
.blind-truth-table input { min-width: 62px; padding: 8px 9px; text-align: center; }
.blind-truth-table td.number-pair.mismatch-cell { padding: 7px; border: 2px solid #d85d52; border-radius: 10px; background: var(--red-soft); }
.blind-truth-table td.number-pair.resolved-cell:not(.mismatch-cell) { padding: 7px; border: 2px solid #8cc7a4; border-radius: 10px; background: var(--green-soft); }
.mismatch-cell .locked-number, .mismatch-cell .truth-number { border-color: #d85d52; }
.effective-number { min-height: 38px; display: flex; align-items: center; justify-content: center; padding: 8px 9px; border: 1px solid; border-radius: 10px; font-weight: 900; }
.effective-number.resolved { border-color: #8cc7a4; color: var(--green-dark); background: var(--green-soft); }
.effective-number.pending { border-color: #e7c17d; color: #76500c; background: var(--amber-soft); }
.recheck-note, .cell-error-note { grid-column: 1 / -1; padding: 5px 7px; border-radius: 7px; font-size: 10px; font-weight: 900; line-height: 1.35; text-align: center; }
.recheck-note.resolved { color: var(--green-dark); background: #fff; }
.recheck-note.pending { color: #76500c; background: #fff8e8; }
.cell-error-note { color: #a5362c; background: #fff; }
.review-score-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.review-score-strip span { border-radius: 99px; padding: 6px 9px; color: var(--muted); background: #edf1ee; font-size: 12px; font-weight: 800; }
.review-score-strip .score-verdict { border-radius: 99px; padding: 6px 9px; font-size: 12px; }
.review-score-strip.passed .score-verdict { color: var(--green-dark); background: var(--green-soft); }
.review-score-strip.error .score-verdict { color: var(--red); background: var(--red-soft); }
.review-warning-note { margin-top: 12px; padding: 11px 13px; border: 1px solid #e7c17d; border-radius: 12px; color: #76500c; background: var(--amber-soft); font-size: 12px; line-height: 1.55; }
.truth-review-controls { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(220px, 1.35fr) auto; gap: 12px; align-items: end; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.review-check { display: flex; grid-template-columns: none; align-items: center; gap: 8px; min-height: 42px; padding: 10px 12px; border: 1px solid #cdd8d0; border-radius: 12px; background: #fff; }
.review-check input { flex: 0 0 auto; width: auto; margin: 0; }
.reviewed-meta { margin: 9px 0 0; color: var(--muted); font-size: 12px; }

dialog { width: min(1160px, calc(100vw - 28px)); max-height: calc(100vh - 28px); border: 0; border-radius: 20px; padding: 18px; box-shadow: 0 24px 90px rgb(0 0 0 / 28%); }
dialog::backdrop { background: rgb(14 26 19 / 58%); }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
#sourceImage { display: block; max-width: 100%; max-height: calc(100vh - 120px); margin: 0 auto; object-fit: contain; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 20; max-width: 380px; padding: 12px 16px; border-radius: 12px; color: #fff; background: #26342c; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); pointer-events: none; transition: 180ms ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: var(--red); }

@media (max-width: 1100px) {
  .documents-grid { grid-template-columns: 340px minmax(0, 1fr); }
  .source-strip { grid-template-columns: repeat(2, 1fr); }
  .item-card { grid-template-columns: 90px minmax(0, 1fr); }
  .item-actions { grid-column: 1 / 3; grid-template-columns: 1fr 1fr; }
  .item-note { grid-column: 1 / 3; }
  .document-confirm { grid-template-columns: 1fr 1fr; }
  .document-confirm button { grid-column: 1 / 3; }
  .blind-sample-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .blind-confirm-panel { grid-template-columns: 1fr; }
  .blind-metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .error-summary-grid { grid-template-columns: 1fr; }
  .truth-review-controls { grid-template-columns: 1fr 1fr; }
  .truth-review-controls button { grid-column: 1 / 3; }
}

@media (max-width: 820px) {
  .topbar, main { padding-left: 16px; padding-right: 16px; }
  .topbar { align-items: start; padding-top: 20px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .filter-grid { grid-template-columns: 1fr; }
  .identity-box { justify-content: space-between; }
  .summary-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .documents-grid { grid-template-columns: 1fr; }
  .document-list-panel { position: static; max-height: none; }
  .document-list { max-height: 390px; }
  .quantity-grid { grid-template-columns: 1fr 1fr; }
  .manual-item, .finance-confirm { grid-template-columns: 1fr; }
  .audit-item { grid-template-columns: 1fr; gap: 4px; }
  .blind-hero { align-items: start; flex-direction: column; }
  .blind-sample-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blind-confirm-form { grid-template-columns: 1fr; }
  .blind-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .error-summary-title { display: grid; }
  .error-summary-title > p { text-align: left; }
  .error-jump { grid-template-columns: 1fr; }
  .header-compare-grid { grid-template-columns: 1fr; }
  .truth-review-controls { grid-template-columns: 1fr; }
  .truth-review-controls button { grid-column: 1; }
}

@media (max-width: 520px) {
  .top-actions { justify-content: end; }
  .top-actions a { display: none; }
  .summary-card { padding: 14px; }
  .summary-card strong { font-size: 22px; }
  .view-tabs { width: 100%; }
  .tab-button { flex: 1; padding: 10px 8px; }
  .detail-panel, .section-panel, .document-list-panel { padding: 16px; }
  .detail-title, .section-heading { flex-direction: column; }
  .source-strip { grid-template-columns: 1fr 1fr; }
  .item-card { grid-template-columns: 1fr; }
  .quantity-grid { grid-template-columns: 1fr 1fr; }
  .item-actions, .item-note { grid-column: 1; }
  .item-actions { grid-template-columns: 1fr; }
  .document-confirm { grid-template-columns: 1fr; }
  .document-confirm button { grid-column: 1; }
  .blind-sample-grid { grid-template-columns: 1fr; }
  .blind-metric-grid { grid-template-columns: 1fr 1fr; }
  .review-card-heading { flex-direction: column; }
  .review-card-actions { justify-content: start; }
  .compare-pair { grid-template-columns: 1fr; }
  .toast { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}
