.report-bar { display: flex; justify-content: space-between; align-items: center; min-height: 4.85rem; gap: .85rem; }
.report { width: min(100% - 2rem, 66rem); padding-block: clamp(2.4rem, 5vw, 4.5rem); }
.report h1 { max-width: 21ch; font-size: clamp(2.45rem, 6vw, 4.5rem); }
.report-intro { max-width: 65ch; margin-top: 1rem; color: var(--muted); }
#report-form, .report-result { margin-top: 1.65rem; padding: clamp(1rem, 3vw, 1.6rem); border: 1px solid var(--line); border-radius: .65rem; background: var(--surface); }
#csv-guide { max-width: 65ch; margin-bottom: 1rem; color: var(--muted); }
#csv-guide code { white-space: nowrap; color: var(--ink); }
.inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.inputs label { display: block; color: var(--ink); font-weight: 700; }
.inputs textarea { display: block; width: 100%; margin-top: .4rem; padding: .7rem; border: 1px solid #89998f; border-radius: .36rem; background: var(--paper); color: var(--ink); resize: vertical; font: .89rem/1.5 var(--mono); }
.report-actions, .report-result-head { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.report-actions { margin-top: .85rem; }
.report-actions .button { margin: 0; }
.report-result-head { justify-content: space-between; }
.report-result h2 { font-size: clamp(1.7rem, 3.4vw, 2.55rem); }
.result-summary { margin-block: .65rem .9rem; color: var(--muted); }
.result-summary strong { color: var(--forest); }
#csv-error { margin-top: .8rem; font-weight: 650; color: #963627; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .94rem; }
th, td { padding: .55rem .65rem; border-bottom: 1px solid var(--line); }
th { background: var(--tint); }
td { min-width: 4.2rem; }
td:nth-child(2), td:nth-child(3) { font-variant-numeric: tabular-nums; }
td[data-state="matched"] { color: var(--forest); }
td[data-state]:not([data-state="matched"]) { color: #823b25; }
@media (max-width: 35rem) {
  .inputs { grid-template-columns: 1fr; }
  th, td { padding: .45rem .4rem; }
}
