/* Keep both PDF panels readable on desktop; stack them when there is less room. */
.coordinate-tool main{max-width:1400px}
.coordinate-tool .intro{margin-bottom:8px}
.coordinate-tool .privacy-note{margin:0 0 28px;font-size:13px;font-weight:600;line-height:1.7;color:var(--ink)}
.coordinate-tool .file-input-title{margin:0 0 8px}
.coordinate-tool .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:1240px){.coordinate-tool .grid{grid-template-columns:minmax(0,1fr)}}

.pdf-consolidated table,.pdf-found table{table-layout:fixed;min-width:520px}
.pdf-consolidated th,.pdf-consolidated td,.pdf-found th,.pdf-found td{
  padding:8px 6px;white-space:normal;overflow-wrap:anywhere;vertical-align:top
}
.pdf-consolidated th:nth-child(1),.pdf-found th:nth-child(1){width:96px}
.pdf-consolidated th:nth-child(2),.pdf-found th:nth-child(2){width:90px}
.pdf-consolidated th:nth-child(3),.pdf-found th:nth-child(3){width:98px}
.pdf-consolidated th:nth-child(4),.pdf-found th:nth-child(4){width:28px}
.pdf-consolidated th:nth-child(5){width:100px}
.pdf-consolidated th:nth-child(6){width:auto}
.pdf-consolidated th:nth-child(7){width:64px;text-align:center}
.pdf-consolidated .pdf-selection-cell{text-align:center}
.pdf-selection-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:10px 0 14px}
.coordinate-tool .pdf-selection-controls button{padding:5px 10px;font-size:12px}
.pdf-variant-toggle{width:16px;height:16px;cursor:pointer;accent-color:#416334}
.pdf-consolidated tr.pdf-variant-excluded{background:#f0f0ed;color:#788078}
.pdf-variant-excluded td:not(.pdf-selection-cell){opacity:.6}
.pdf-found th:nth-child(5){width:54px}
.pdf-found th:nth-child(6){width:auto}
.pdf-consolidated th:nth-child(1),.pdf-consolidated td:nth-child(1),
.pdf-found th:nth-child(1),.pdf-found td:nth-child(1),
.pdf-consolidated th:nth-child(5),.pdf-consolidated td:nth-child(5),
.pdf-consolidated th:nth-child(6),.pdf-consolidated td:nth-child(6),
.pdf-found th:nth-child(6),.pdf-found td:nth-child(6){text-align:left}
.pdf-consolidated th:nth-child(2),.pdf-consolidated td:nth-child(2),
.pdf-consolidated th:nth-child(3),.pdf-consolidated td:nth-child(3),
.pdf-found th:nth-child(2),.pdf-found td:nth-child(2),
.pdf-found th:nth-child(3),.pdf-found td:nth-child(3){text-align:left}
.pdf-consolidated th:nth-child(4),.pdf-consolidated td:nth-child(4),
.pdf-found th:nth-child(4),.pdf-found td:nth-child(4),
.pdf-found th:nth-child(5),.pdf-found td:nth-child(5){text-align:center}
.pdf-consolidated .pdf-summary-sources,.pdf-found .source-line{min-width:0;max-width:none}
.coordinate-tool button.pdf-source-link{max-width:100%;overflow-wrap:anywhere}

/* Each original line has its own gutter cell, including when the text wraps. */
.pdf-text-view{display:block;overflow-y:auto;overflow-x:hidden;padding:8px 0}
.pdf-display-row{display:grid;grid-template-columns:38px minmax(0,1fr);font:12px/1.6 Consolas,monospace}
.pdf-line-number{
  text-align:right;padding:0 9px 0 3px;color:var(--muted);background:#edf0e5;
  border-right:1px solid var(--line);user-select:none
}
.pdf-display-row .pdf-text-line{
  display:block;white-space:pre-wrap;overflow-wrap:anywhere;padding:0 10px;
  min-width:0;min-height:1.6em;font:inherit
}
.pdf-display-row:has(.is-highlighted){background:#fbe5ac}
.pdf-display-row .pdf-text-line.is-highlighted{outline:0;background:transparent}

.pdf-comparison-stats{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;margin:14px 0 16px}
.coordinate-tool .pdf-comparison-stats button.stat{padding:12px 22px 12px 10px;font-size:11px;line-height:1.45}
.coordinate-tool .pdf-comparison-stats button.stat::after{top:13px;right:8px;font-size:13px}
.coordinate-tool .pdf-comparison-stats .stat strong{font-size:23px;margin-bottom:5px}
.coordinate-tool .pdf-comparison-stats button[aria-pressed="true"]{background:#dbe8c5;box-shadow:inset 0 0 0 1px #78984a}
.pdf-comparison-stats .stat strong{display:block}
.pdf-filter-help{margin:12px 0;color:var(--muted);font-size:12px}
.pdf-filter-help summary{font-weight:400;width:fit-content}
.pdf-filter-help dl{display:grid;grid-template-columns:minmax(140px,200px) minmax(0,1fr);gap:10px 20px;line-height:1.6}
.pdf-filter-help dt{color:var(--ink);font-weight:500}
.pdf-filter-help dd{margin:0}
.pdf-export-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:16px}
.pdf-comparison{scroll-margin-top:110px}
.pdf-coordinate-groups{border-top:1px solid var(--line);padding-top:14px;margin-top:18px;font-size:12px}
.pdf-coordinate-groups summary{font-weight:500}
.pdf-coordinate-groups th:nth-child(1),.pdf-coordinate-groups th:nth-child(2){width:100px}
@media(max-width:1100px){.pdf-comparison-stats{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px){.pdf-comparison-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.pdf-filter-help dl{grid-template-columns:1fr;gap:4px}.pdf-filter-help dd{margin-bottom:10px}}
.pdf-comparison table{table-layout:fixed;min-width:600px;font-size:12px}
.pdf-comparison th,.pdf-comparison td{text-align:left;padding:8px;white-space:normal;overflow-wrap:anywhere;vertical-align:top}
.pdf-comparison th:nth-child(1){width:100px}
.pdf-comparison th:nth-child(2){width:190px}
.pdf-comparison .pdf-conflict-row{background:#fff8e8}
.pdf-comparison-variant+.pdf-comparison-variant{border-top:1px solid var(--line);margin-top:8px;padding-top:8px}
.pdf-variant-values{font-variant-numeric:tabular-nums}
.pdf-variant-warning{color:#835700;margin:0 0 8px;font-size:12px;line-height:1.5}
.pdf-comparison-variant .hint{margin:4px 0;font-size:11px}
