.book h1 { font-size: clamp(2.1rem,4.6vw,3.9rem); }
.filters { align-items: end; gap: .85rem 1.2rem; }
.filters label, .new-test label { display: grid; gap: .25rem; font-weight: 600; }
.filters input { min-width: 0; }
.result-heading { display: flex; gap: .7rem; justify-content: space-between; align-items: center; margin-block: 1.75rem .6rem; }
.result-heading h2 { font-size: 1.45rem; }
#coverage, .hint { color: var(--muted); font-size: .94rem; }
#coverage { overflow-wrap: anywhere; }
.scroll-table { overflow-x: auto; }
#grid { display: table; table-layout: auto; min-width: 48rem; }
#grid[hidden] { display: none; }
#grid thead { position: static; clip-path: none; width: auto; height: auto; overflow: visible; }
#grid tbody { display: table-row-group; }
#grid tr { display: table-row; }
#grid th, #grid td { display: table-cell; width: auto; min-width: 7em; padding: .7rem; border-bottom: 1px solid var(--line); }
#grid th { background: #eef1e8; }
#grid td:first-child { white-space: nowrap; }
#grid td:last-child { white-space: nowrap; }
#grid small { max-width: 16rem; }
#editor { width: min(39rem, calc(100% - 1.5rem)); }
.pair, .reading { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
fieldset { min-width: 0; margin: 1rem 0 0; padding: .6rem .85rem .85rem; border: 1px solid var(--line); }
legend { font-weight: 700; }
.reading { grid-template-columns: 2fr 1fr; }
.reading label { font-size: .95rem; overflow-wrap: anywhere; }
.new-test { display: flex; gap: .6rem; align-items: end; margin-top: .85rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.new-test label { margin: 0; flex: 1; }
#form-error, #message { color: var(--pine); }
#form-error:not(:empty), #message:not(:empty) { margin-block: .6rem; }
@media(max-width: 500px) {
  .filters label { width: 100%; }
  .result-heading { align-items: flex-start; flex-wrap: wrap; }
  .pair { grid-template-columns: 1fr; gap: 0; }
}
