:root {
  color-scheme: light;
  --section-link-gap: clamp(2rem, 4vw, 3.5rem);
  scroll-padding-block-start: calc(var(--section-link-gap) + env(safe-area-inset-top, 0px));
  --ink: #132d29;
  --quiet: #49615d;
  --accent: #205b4f;
  --accent-deep: #17473d;
  --line: #d7e1dc;
  --soft: #edf4ef;
  --surface: #fff;
  --paper: #f4f6f4;
  --hero-ink: #f4f9f2;
  --lime: #dafa9c;
  --warn: #724507;
  --warn-bg: #fff4d8;
  --red: #861f29;
  --red-bg: #fff0ef;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "Inter", "Avenir Next", system-ui, -apple-system, sans-serif;
  --radius: 16px;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 100%;
  line-height: 1.5;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 20rem; }
h1, h2, h3, p, dl, dd { margin: 0; }
h2 { font-size: 1.25rem; line-height: 1.2; letter-spacing: -.025em; }
h3 { font-size: 1.11rem; line-height: 1.3; letter-spacing: -.015em; }
a { color: var(--accent-deep); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled, select:disabled { cursor: default; opacity: .58; }
button { color: inherit; }
:focus-visible { outline: 3px solid #498962; outline-offset: 3px; }
.shell { width: min(100% - 5rem, 76rem); margin-inline: auto; }
.skip { position: absolute; z-index: 3; left: .75rem; top: .75rem; padding: .6rem 1rem; background: var(--surface); transform: translateY(-160%); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.header-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 70px;
  gap: 1.2rem;
}
.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: .65rem;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 780;
  letter-spacing: -.065em;
  text-decoration: none;
}
.brand-icon {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  width: 25px;
  height: 25px;
  padding: 3px;
  transform: rotate(0);
}
.brand-icon i { background: var(--accent); border-radius: 2px; }
.brand-icon i:nth-child(2) { border-radius: 2px 6px 2px 2px; background: #75a074; }
.brand-icon i:nth-child(4) { background: #cedcba; }
.site-nav, .header-tools { display: flex; align-items: center; gap: .45rem; }
.header-tools { justify-content: flex-end; gap: .9rem; }
.nav-button, .tab-button {
  border: 0;
  background: transparent;
  white-space: nowrap;
  font-size: .9rem;
  font-weight: 620;
  color: var(--quiet);
}
.nav-button { padding: .47rem .85rem; border-radius: .5rem; }
.nav-button:hover, .nav-button[aria-current] { color: var(--accent-deep); background: var(--soft); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  padding: .53rem .8rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  font-size: .875rem;
  font-weight: 640;
  line-height: 1.25;
  white-space: nowrap;
}
.button-quiet { background: var(--surface); border-color: var(--line); color: var(--accent-deep); }
.button-quiet:hover:not(:disabled) { background: var(--soft); }
.button-primary { background: var(--accent); border-color: var(--accent); color: white; }
.button-primary:hover:not(:disabled) { background: var(--accent-deep); }
.account-link { text-decoration: none; font-size: .875rem; white-space: nowrap; }
.account-link:hover { text-decoration: underline; }

.hero {
  position: relative;
  overflow: hidden;
  color: var(--hero-ink);
  background: radial-gradient(ellipse at 87% 35%, #246450 0, transparent 57%), #102d29;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 43%;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, #d5f5c51e 1px, transparent 1px),
    linear-gradient(#d5f5c51e 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(90deg, transparent, #000 52%);
}
.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 24rem);
  gap: 2.3rem;
  align-items: end;
  padding-block: 3.2rem 3.45rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.7rem);
  font-weight: 665;
  line-height: .96;
  letter-spacing: -.08em;
}
.hero p {
  margin-top: 1.15rem;
  max-width: 30rem;
  color: #d0e5d7;
  font-size: 1.02rem;
}
.hero-facts {
  border-top: 1px solid #cce9d78c;
  max-width: 23rem;
  width: 100%;
  justify-self: end;
}
.hero-facts div {
  padding: .75rem .15rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .8rem;
  border-bottom: 1px solid #cce9d74d;
}
.hero-facts dt { font-size: .93rem; color: #e6f4ea; }
.hero-facts dd { color: var(--lime); font-family: var(--mono); font-size: .86rem; text-align: right; }

.workspace {
  display: grid;
  grid-template-columns: minmax(16.8rem, 20.25rem) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  padding-block: 1.65rem 2.4rem;
}
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.selector { min-width: 0; }
.selector-block { padding: 1.2rem; }
.selector-block + .selector-block { border-top: 1px solid var(--line); }
.selector label, .estimate-fields label, .dialog-body label {
  display: block;
  margin-bottom: .35rem;
  font-size: .875rem;
  font-weight: 640;
}
.selector h2 { margin-bottom: .85rem; }
.selector-block > label:not(:first-child) { margin-top: .9rem; }
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .25rem;
  margin-bottom: .9rem;
  padding: .2rem;
  background: var(--soft);
  border-radius: .55rem;
}
.segmented button {
  min-height: 2.1rem;
  border: 1px solid transparent;
  padding: .36rem .3rem;
  border-radius: .42rem;
  background: transparent;
  font-size: .875rem;
  font-weight: 590;
  color: var(--quiet);
}
.segmented button[aria-pressed="true"] { border-color: #dce8df; color: var(--accent-deep); background: var(--surface); }
input:not([type="checkbox"]), select {
  display: block;
  width: 100%;
  min-width: 0;
  padding: .49rem .65rem;
  border: 1px solid #bfcfc7;
  border-radius: .5rem;
  color: var(--ink);
  background: var(--surface);
  min-height: 2.48rem;
}
select {
  appearance: none;
  padding-right: 1.8rem;
  background:
    linear-gradient(50deg, transparent 50%, #49615d 51%) right .95rem center / 6px 5px no-repeat,
    linear-gradient(130deg, #49615d 50%, transparent 51%) right .6rem center / 6px 5px no-repeat,
    var(--surface);
}
input::placeholder { color: #5b6d64; opacity: 1; }
input[type=date] { font-variant-numeric: tabular-nums; }
.search-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .36rem; }
#address-form > label { margin-top: .55rem; }
#address-form > button { margin-top: .65rem; width: 100%; }
.field-pair { display: grid; grid-template-columns: minmax(0, 1fr) 4rem; gap: .45rem; }
.status-text {
  min-height: 1.2rem;
  margin-block: .62rem .32rem;
  color: var(--quiet);
  font-size: .84rem;
  overflow-wrap: anywhere;
}
.status-text:empty { display: none; }
.place-list { list-style: none; margin: .55rem 0 0; padding: 0; max-height: 20.5rem; overflow: auto; scrollbar-color: #9fb6aa transparent; }
.place-list:empty { display: none; }
.place-list li + li { margin-top: .17rem; }
.place-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .3rem;
  align-items: start;
  width: 100%;
  border: 1px solid transparent;
  border-radius: .55rem;
  padding: .48rem .59rem;
  text-align: left;
  background: transparent;
}
.place-item:focus-visible { outline-offset: -3px; }
.place-item:hover { background: #f4f8f4; }
.place-item[aria-pressed="true"] { border-color: #c9ded0; background: var(--soft); }
.place-item strong { font-size: .9rem; font-weight: 630; overflow-wrap: anywhere; }
.place-item small { font-size: .75rem; color: var(--quiet); font-family: var(--mono); margin-top: .16rem; }
#more-municipalities { margin-top: .65rem; width: 100%; }
.address-result { padding: .58rem .7rem; margin-top: .55rem; border-left: 3px solid #86ad9a; background: var(--soft); font-size: .9rem; overflow-wrap: anywhere; }
.address-result .history-list .button { min-width: 0; max-width: 100%; justify-content: flex-start; white-space: normal; overflow-wrap: anywhere; text-align: left; }
.address-project-action { margin-top: .55rem; }
#address-project-dialog .dialog-actions { flex-wrap: wrap; }

.work-content { min-width: 0; }
.exploration, .overview { overflow: clip; }
.record-header {
  display: flex;
  justify-content: space-between;
  gap: .85rem;
  align-items: start;
  padding: 1.38rem 1.48rem 1.22rem;
}
.record-id { font-family: var(--mono); color: var(--quiet); font-size: .83rem; margin-bottom: .36rem; }
.record-id:empty { display: none; }
.record-header h2 { font-size: clamp(1.55rem, 3.9vw, 2.2rem); line-height: 1.1; letter-spacing: -.055em; overflow-wrap: anywhere; }
.record-header p { color: var(--quiet); margin-top: .36rem; }
.record-header .place-costs-link { margin-top: .64rem; max-width: 100%; white-space: normal; text-align: center; text-decoration: none; }
.badge {
  display: inline-flex;
  max-width: min(100%, 12rem);
  padding: .27rem .58rem;
  border-radius: 999px;
  color: #265649;
  background: var(--soft);
  font-size: .81rem;
  line-height: 1.3;
  font-weight: 630;
  text-align: center;
}
.badge[data-tone="warn"] { background: var(--warn-bg); color: var(--warn); }
.badge[data-tone="error"] { background: var(--red-bg); color: var(--red); }
.badge[data-tone="muted"] { background: #eef0ef; color: #4a5d55; }
.tab-list {
  display: flex;
  gap: .14rem;
  padding-inline: 1.25rem;
  border-block: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
}
.tab-button { padding: .8rem .75rem .7rem; border-bottom: 3px solid transparent; }
.tab-button[aria-pressed="true"] { border-bottom-color: var(--accent); color: var(--accent-deep); }
.tab-button:hover { color: var(--accent-deep); background: #f8faf8; }
.tab-button:focus-visible { outline-offset: -4px; }
.tab-panel, .overview-body { padding: 1.32rem 1.48rem 1.5rem; min-height: 16.8rem; }
.record-header.profile-active #coverage-badge { display: none; }
.profile-meta { margin: .25rem 0 .45rem; color: var(--accent-deep); font-size: .88rem; font-weight: 650; }
.profile-intro { color: var(--quiet); font-size: .89rem; max-width: 62ch; }
.profile-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-block: .8rem .35rem; }
.profile-filters [aria-pressed="true"] { border-color: var(--accent-deep); background: var(--soft); }
.profile-sharing { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-block: .35rem; }
.profile-share-status { color: var(--quiet); font-size: .85rem; }
.profile-sharing input { flex-basis: 100%; min-width: 0; }
.profile-filter-status { color: var(--quiet); font-size: .85rem; }
.profile-filter-status:empty { display: none; }
.profile-group { margin-top: 1.12rem; }
.profile-group h4 { margin: 0 0 .4rem; font-size: .95rem; }
.profile-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .28rem; }
.profile-category { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .24rem .64rem; width: 100%; padding: .38rem .5rem; text-align: left; background: #f7faf8; border: 1px solid var(--line); border-radius: .45rem; }
.profile-category:hover { background: var(--soft); }
.profile-category:focus-visible { outline-offset: -3px; }
.profile-category strong, .profile-category small { display: block; overflow-wrap: anywhere; }
.profile-category small { color: var(--quiet); font-weight: 400; }
.profile-category-title { min-width: 0; flex: 1 1 13rem; }
.profile-flags { display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; max-width: 100%; }
.profile-flags .badge { max-width: 100%; white-space: normal; text-align: left; }
.profile-availability { color: var(--accent-deep); background: #e7f2eb; }
.profile-arrow { font-weight: 700; color: var(--accent-deep); }
.overview-body { border-top: 1px solid var(--line); }
.empty { display: grid; place-content: center; justify-items: start; gap: .4rem; min-height: 12.2rem; }
.empty p { color: var(--quiet); max-width: 39rem; overflow-wrap: anywhere; }
.spatial { border-top: 1px solid var(--line); padding-top: 1.1rem; margin-top: .9rem; }
.spatial > p, #spatial-content:not(:empty) { margin-top: .45rem; }
.spatial .table-wrap td { overflow-wrap: anywhere; }
.flood-scenarios th { white-space: normal; overflow-wrap: anywhere; }
.planning-group-heading { margin-top: .9rem; margin-bottom: .45rem; }
.flood-details { padding-top: .65rem; border-top: 1px solid var(--line); }
.coastal-flood { display: grid; gap: .65rem; }
.coastal-flood-scenario { min-width: 0; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: .55rem; }
.coastal-flood-scenario h5 { margin: 0 0 .24rem; font-size: .99rem; }
.coastal-flood-scenario > p { font-size: .85rem; }
.coastal-flood-checks { list-style: none; padding: 0; margin: .46rem 0 0; }
.coastal-flood-checks li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .18rem .65rem; padding: .3rem 0; border-top: 1px solid var(--line); }
.coastal-flood-checks strong { color: var(--accent-deep); }
.muted { color: var(--quiet); }
.notice { padding: .75rem .9rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--soft); color: var(--accent-deep); }
.notice > .button { margin-top: .55rem; }
.notice-error { color: var(--red); border-color: #f0c4c0; background: var(--red-bg); margin-bottom: .75rem; }
.subhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.geo { margin-top: 0; }
.geo summary { font-size: .95rem; }
#map-scope { font-size: .85rem; color: var(--quiet); }
#map-canvas {
  margin-top: .55rem;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: #edf4ef;
}
.map-tools { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.map-tools .button { min-height: 2rem; padding: .3rem .6rem; }
.rate-set + .rate-set { border-top: 1px solid var(--line); padding-top: 1.12rem; margin-top: 1.12rem; }
.rate-meta { color: var(--quiet); font-size: .89rem; margin-bottom: .8rem; }
.rent-meta { color: var(--accent-deep); font-weight: 650; margin: .32rem 0 .45rem; }
.rent-index > .muted + .muted { margin-top: .35rem; }
.rent-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: .55rem; margin: .85rem 0 .65rem; }
.rent-filters > div { min-width: 0; }
.rent-filters label { display: block; font-size: .85rem; font-weight: 650; }
.rent-filters select { margin-top: .22rem; }
.rent-status { color: var(--quiet); font-size: .88rem; margin-top: .58rem; }
.rent-table th { white-space: normal; }
.rent-table td { overflow-wrap: anywhere; }
.rent-cell-name, .rent-amount { color: var(--accent-deep); font-weight: 700; }
.rent-amount { font-variant-numeric: tabular-nums; }
.rent-amount small { display: block; font-weight: 400; }
.rent-evidence { min-width: 8.25rem; }
.rent-evidence details { margin-top: .25rem; font-size: .82rem; }
.rent-evidence details p { margin-top: .22rem; }
.rent-limited { font-size: .82rem; color: var(--warn); }
@media (max-width: 580px) {
  .rent-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .rent-table table, .rent-table tbody { display: block; }
  .rent-table tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .38rem .48rem; padding: .6rem .5rem; border-top: 1px solid var(--line); }
  .rent-table tbody tr:nth-child(odd) { background: #f7faf8; }
  .rent-table td { display: block; min-width: 0; padding: 0; border: 0; }
  .rent-table td:nth-child(-n+2), .rent-table td:last-child { grid-column: 1 / -1; }
  .rent-table td:nth-child(n+3):not(:last-child)::before { content: attr(data-label); display: block; color: var(--quiet); font-size: .75rem; }
  .rent-evidence { min-width: 0; }
}
.rate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin-top: .65rem;
}
.rate {
  min-width: 0;
  min-height: 7.3rem;
  padding: .8rem .86rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: #fcfdfc;
  overflow-wrap: anywhere;
}
.rate h3 { font-size: .91rem; font-weight: 640; }
.rate-number {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .32rem;
  margin-top: .21rem;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.rate-number strong { font-size: clamp(1.22rem, 3vw, 1.85rem); font-weight: 550; letter-spacing: -.065em; }
.rate-number span { font-size: .79rem; color: var(--quiet); }
.rate p { color: var(--quiet); font-size: .84rem; margin-top: .32rem; }
.broadband-result, .raster-result { margin-block: .9rem .35rem; }
.broadband-result .rate-meta, .raster-result .rate-meta { margin-block: .28rem .55rem; }
.broadband-metrics, .raster-metrics { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.broadband-metrics .rate, .raster-metrics .rate { min-height: 0; }
.broadband-metrics dt, .raster-metrics dt { font-size: .91rem; font-weight: 640; }
.raster-metrics dd { margin: 0; }
.broadband-note, .raster-note { margin-top: .65rem; overflow-wrap: anywhere; }
.programme-links { display: grid; justify-items: start; gap: .35rem; margin-top: .65rem; font-size: .84rem; }
#funding-context { margin: .38rem 0 .24rem; }
.funding-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(8rem, .7fr) auto; align-items: end; gap: .5rem; margin: .9rem 0 .6rem; }
.funding-form label { display: block; margin-bottom: .2rem; font-size: .85rem; font-weight: 650; }
.funding-form button { min-height: 43px; justify-self: start; }
#funding-clear { grid-column: 1 / -1; }
#funding-status[data-error="true"] { color: var(--red); }
.funding-results { list-style: none; padding: 0; margin: .7rem 0 0; }
.funding-results:empty { margin: 0; }
.funding-results > li { min-width: 0; }
.funding-results .rate { height: 100%; }
.funding-results .programme-links a { overflow-wrap: anywhere; }
.funding-scope { display: block; color: var(--accent-deep); font-size: .8rem; font-weight: 700; }
.funding-pagination { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
@media (max-width: 820px) {
  .funding-form { grid-template-columns: minmax(0, 1fr); }
}
details { margin-top: .84rem; }
summary { width: fit-content; color: var(--accent-deep); font-weight: 640; cursor: pointer; }
.sources { padding-left: 1.13rem; }
.sources li + li { margin-top: .56rem; }
.sources li { line-height: 1.35; overflow-wrap: anywhere; }
.sources p { margin-top: .19rem; color: var(--quiet); font-size: .8rem; }
.table-wrap { overflow-x: auto; margin-block: .75rem .6rem; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { padding: .65rem .62rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--soft); color: var(--accent-deep); font-size: .875rem; white-space: nowrap; }
td { font-size: .925rem; }
td .button { white-space: normal; text-align: left; }
td time, .numeric { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.table-note { margin-top: .72rem; color: var(--quiet); }
.checkbox { display: inline-flex; gap: .53rem; align-items: center; color: var(--quiet); }
.checkbox input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }
.changes-more { margin-top: .7rem; }
.compare-inputs, .estimate-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.compare-inputs label { display: block; min-width: 0; font-size: .875rem; font-weight: 630; }
.compare-inputs select { margin-top: .25rem; }
.history-list { list-style: none; margin-block: .55rem .1rem; padding: 0; }
.history-list li + li { margin-top: .38rem; }
.history-list li { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; }
.estimate-form { margin-top: .7rem; }
.estimate-control { margin-bottom: .65rem; }
.estimate-control:where(.checkbox) { margin-top: .7rem; }
.estimate-control > label { display: block; font-size: .875rem; font-weight: 640; margin-bottom: .35rem; }
.estimate-form > button { margin-top: .8rem; }
.inline-search { max-width: 24rem; margin-block: .72rem; }
.inline-search label { display: block; font-size: .875rem; font-weight: 640; margin-bottom: .33rem; }
.comparison-status { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .6rem; margin-top: .75rem; }
.estimate-result:not(:empty) { margin-top: .85rem; }
.estimate-value { font-family: var(--mono); letter-spacing: -.07em; font-size: 2rem; font-weight: 650; }
#estimate-panel > p, #compare-description { margin-top: .25rem; }
pre {
  margin: .63rem 0 0;
  padding: .95rem 1rem;
  max-height: 28rem;
  overflow: auto;
  border-radius: .55rem;
  background: #112d29;
  color: #e9f4ed;
  font-size: .85rem;
  scrollbar-color: #80a094 transparent;
  tab-size: 2;
}
code { font-family: var(--mono); }
dialog {
  width: min(100% - 2rem, 28rem);
  border: 1px solid var(--line);
  padding: 0;
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface);
}
dialog::backdrop { background: #0c211d80; }
.dialog-body { padding: 1.2rem; }
.dialog-body p { margin-block: .65rem .75rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: .45rem; margin-top: .8rem; }
.footer {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: .75rem;
  padding-block: 1rem 2.1rem;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: .88rem;
}

@media (max-width: 960px) {
  .shell { width: min(100% - 2.5rem, 76rem); }
  .workspace { grid-template-columns: minmax(15rem, 17.5rem) minmax(0, 1fr); gap: .85rem; }
  .selector-block, .record-header, .tab-panel, .overview-body { padding-inline: 1rem; }
  .tab-list { padding-inline: .62rem; }
}
@media (max-width: 700px) {
  .shell { width: min(100% - 1.6rem, 76rem); }
  .header-layout { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .42rem .8rem; padding-top: .62rem; min-height: unset; }
  .site-nav { order: 2; width: 100%; padding: 0 0 .45rem; overflow-x: auto; }
  .nav-button { min-height: 2.55rem; }
  .hero-layout { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; padding-block: 2.1rem 1.6rem; }
  .hero-break { display: none; }
  .hero h1 { font-size: clamp(2.5rem, 10.4vw, 4.1rem); width: min(100%, 29rem); }
  .hero p { margin-top: .85rem; }
  .hero-facts { max-width: unset; }
  .hero-facts div { padding-block: .44rem; }
  .workspace { display: flex; flex-direction: column; padding-block: .85rem 1.3rem; }
  .workspace > * { width: 100%; }
  .place-list { max-height: 9.5rem; }
  .record-header { flex-wrap: wrap; }
  .tab-panel, .overview-body { min-height: unset; }
  .empty { min-height: 9.8rem; }
}
@media (max-width: 440px) {
  .hero-layout { padding-block: 1.55rem 1.6rem; }
  .hero-facts { display: none; }
  .rate-grid, .estimate-fields { grid-template-columns: minmax(0, 1fr); }
  .site-nav { gap: .28rem; flex-wrap: wrap; }
  .nav-button { padding-inline: .5rem; }
  .tab-list { flex-wrap: wrap; }
  .tab-button { padding-inline: .45rem; }
  th, td { padding-inline: .45rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
#address-form .building-point-option { display: flex; align-items: flex-start; gap: .5rem; }
#address-form .building-point-option input { flex: 0 0 auto; inline-size: 1.05rem; block-size: 1.05rem; margin: .15rem 0 0; }

.network-observation-row {
  display: grid;
  gap: .16rem;
  padding-block: .42rem;
  overflow-wrap: anywhere;
}
