.atlas-page main { width: min(83rem, calc(100% - 2.5rem)); }
.atlas-page .catalogue-path { margin: 1.45rem 0 .55rem; }
.catalogue-path a, .inspection-nav a { font-size: .84rem; }
.atlas-page .ledger-nav { margin: -.3rem 0 1.05rem; }
.catalogue-intro { max-width: 82ch; margin: .55rem 0 1.3rem; color: var(--muted); }
[hidden] { display: none !important; }
p { max-width: 90ch; }
.summary-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); background: var(--surface); margin: 1.2rem 0; }
.summary-strip div { display: flex; flex-direction: column-reverse; padding: .7rem 1.1rem; border-inline-start: 1px solid var(--line); }
.summary-strip div:first-child { border-inline-start: 0; }
.summary-strip dt, .meter-list dt, .caption, small { color: var(--muted); font-size: .8rem; }
.summary-strip dd { margin: 0; font: 500 clamp(1.15rem, 2.5vw, 1.75rem)/1.35 var(--mono); }
#filters, #editor, #station-editor { display: grid; gap: .75rem; }
.filter-row, .edit-row { display: flex; align-items: end; flex-wrap: wrap; gap: .5rem .75rem; }
label { display: flex; flex-direction: column; gap: .2rem; color: var(--muted); font-size: .82rem; }
label small { display: contents; }
button, input, select, textarea { font: inherit; color: var(--ink); border: 1px solid var(--line); border-radius: .2rem; background: var(--surface); }
input, select, textarea { padding: .52rem .6rem; font-size: .9rem; max-width: 100%; min-width: 0; }
select, input, button { min-height: 2.4rem; }
textarea { width: 100%; resize: vertical; }
button { padding: .4rem .8rem; cursor: pointer; }
button:hover, input:hover, select:hover, textarea:hover { border-color: var(--accent); }
button:disabled { opacity: .45; cursor: default; }
button:disabled:hover { border-color: var(--line); }
button.primary { border-color: var(--accent); background: var(--accent); color: #082327; font-weight: 650; }
button.primary:hover { background: #bffbfb; }
.search-field { flex: 1 1 16rem; max-width: 29rem; }
.filters-secondary label { flex: 1 1 8.5rem; max-width: 18rem; }
.results-head, .paging, .inspection-nav, .save-row { display: flex; align-items: center; gap: .65rem 1rem; flex-wrap: wrap; }
.results-head { margin: 1.4rem 0 .5rem; }
.results-head h2, .record-head h2 { margin: 0; }
.results-head button { margin-left: auto; }
.paging, .inspection-nav { justify-content: space-between; }
#result-count, #page-label, #inspection-board, .caption, #detail-status, #record-identity, #save-status { color: var(--muted); }
#station-status { display: block; margin: .75rem 0 .35rem; }
#result-count, #page-label, #inspection-board, #station-status, #station-range { font: .82rem/1.45 var(--mono); }
.paging { margin: .8rem 0 1.3rem; }
.table-scroll { width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: .2rem; }
.ledger { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ledger th, .ledger td { padding: .52rem .75rem; vertical-align: top; text-align: left; border-bottom: 1px solid var(--line); }
.ledger tr:last-child td { border-bottom: 0; }
.ledger thead th { color: var(--muted); background: var(--tint); font-size: .77rem; letter-spacing: .02em; line-height: 1.45; }
.ledger thead small { font-weight: 400; }
.ledger .number { text-align: right; font-variant-numeric: tabular-nums; }
.ledger td small { display: block; }
.station-contour[open] { min-width: 16rem; }
.station-contour .field-grid { grid-template-columns: minmax(0, 1fr); }
.ledger .station-address { min-width: 12rem; max-width: 20rem; overflow-wrap: anywhere; font: .78rem/1.5 var(--mono); }
.ledger .identity, .ledger .key { white-space: nowrap; font-family: var(--mono); }
.ledger tbody tr:hover, .ledger tbody tr:focus-within { background: var(--surface); }
.measure-guide, .offline-panel { padding: .8rem 1rem; background: var(--surface); border-inline-start: 2px solid var(--accent); }
.measure-guide summary, .archive-records summary { cursor: pointer; font-weight: 550; }
.offline-panel h2, .record-section h3 { margin: 0; }
.offline-panel code { overflow-wrap: anywhere; }
.inspection-nav { margin: 1.1rem 0; }
.record-head { padding: .8rem 0 .5rem; border-top: 1px solid var(--line); }
.record-head h2 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); overflow-wrap: anywhere; }
#record-identity { margin: .3rem 0; font-family: var(--mono); font-size: .86rem; overflow-wrap: anywhere; }
.record-nav { padding: .55rem 0; border-block: 1px solid var(--line); }
.record-section { margin: 1.25rem 0; }
.record-section h3 { margin-bottom: .6rem; }
.evidence-reading { padding: .7rem .9rem; background: var(--surface); border-inline-start: 2px solid var(--accent); }
.evidence-reading p { margin: .25rem 0; }
.meter-list, .field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin: .4rem 0; gap: 0; border-top: 1px solid var(--line); }
.meter-list div, .field-grid div { min-width: 0; padding: .55rem .8rem .55rem 0; border-bottom: 1px solid var(--line); }
.meter-list dd, .field-grid dd { margin: 0; overflow-wrap: anywhere; font: .88rem/1.6 var(--mono); }
.field-grid dt { font-size: .78rem; color: var(--muted); }
.archive-records { margin: .6rem 0; padding: .55rem .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: .2rem; }
.archive-records h4 { margin: 1rem 0 .35rem; font-size: .95rem; }
.archive-records summary small { margin-inline-start: .6rem; }
.archive-records .table-scroll { margin-block: .5rem; }
.edit-row label { flex: 1 1 15rem; }
#editor, #station-editor { max-width: 62rem; }
#station-editor { margin: .9rem 0; }
#station-editor h3 { margin: 0; }
#station-save-status[data-error], #station-status[data-error], #save-status[data-error], #detail-status[data-error], #result-count[data-error] { color: var(--warning); }
@media (max-width: 47rem) {
  .atlas-page main { width: min(100%, calc(100% - 1.5rem)); }
  .summary-strip { grid-template-columns: repeat(2, 1fr); }
  .summary-strip div { padding: .55rem .75rem; }
  .summary-strip div:nth-child(3) { border-inline-start: 0; }
  .summary-strip div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .filters-secondary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters-secondary label { max-width: none; min-width: 0; }
  .filter-row:not(.filters-secondary) label:first-child { flex: 1 1 100%; }
  .search-field { flex: 1 1 8rem; }
  .ledger th, .ledger td { padding: .45rem .6rem; }
  .meter-list, .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
