:root {
  --navy: #123455;
  --orange: #e76614;
  --ink: #172c43;
  --muted: #526477;
  --paper: #fff;
  --line: #d6dfe8;
  --rust: #ad430b;
  --wash: #fff2e7;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --sans: "Instrument Sans", "Segoe UI", Arial, sans-serif;
  --serif: "Baskervville", Georgia, "Times New Roman", serif;
  color: var(--ink);
  font-family: var(--sans);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid #b8582d;
  outline-offset: 3px;
}
button,
select {
  touch-action: manipulation;
}
button {
  background: transparent;
  border: 0;
}
svg:not(.symbols) {
  display: inline-block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
[hidden] {
  display: none !important;
}
.top {
  height: 68px;
  display: flex;
  align-items: center;
  gap: clamp(32px, 5vw, 90px);
  padding: 0 28px;
  border-bottom: 1px solid #bcc5cf;
  background: #ffffff;
  position: relative;
  z-index: 4;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  font: 600 29px/1 var(--serif);
  letter-spacing: -1.6px;
}
.brand img {
  width: 37px;
  height: 37px;
}
.brand i {
  font-weight: 400;
  color: #466384;
}
.top nav {
  align-self: stretch;
  display: flex;
  gap: 26px;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 2px;
  font-size: 13px;
  font-weight: 580;
  color: #636c76;
}
.nav-item.active {
  color: #212f40;
}
.nav-item.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 3px;
  left: 0;
  right: 0;
  background: var(--rust);
}
button.nav-item:hover {
  color: var(--rust);
}
.city {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #4f5a67;
}
.city svg {
  width: 16px;
}
.shell {
  height: calc(100dvh - 68px);
  min-height: 420px;
  display: grid;
  grid-template-columns: clamp(312px, 28.6vw, 420px) 1fr;
}
.shell aside {
  background: var(--paper);
  border-right: 1px solid #b6c1ce;
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
  z-index: 3;
  box-shadow: 1px 0 10px #293a4d10;
}
.area-head {
  padding: 24px 24px 15px;
}
.eyeline,
.section-tag {
  font: 600 10px/1.4 var(--mono);
  letter-spacing: 1.45px;
  color: #626b76;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tiny-block {
  display: inline-block;
  height: 8px;
  width: 8px;
  background: #a95532;
  transform: rotate(-9deg);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font: 400 clamp(32px, 3.15vw, 44px) / 1.15 var(--serif);
  letter-spacing: -1.7px;
  margin: 6px 0 3px;
}
.area-head > p {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.searchbar {
  display: flex;
  gap: 7px;
  margin-top: 17px;
}
.search,
.icon-btn {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #ffffff;
}
.search {
  flex: 1;
  min-width: 0;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 10px;
}
.search svg {
  color: #697077;
  width: 16px;
}
.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 12px;
  outline: none;
}
.icon-btn {
  width: 37px;
}
.icon-btn:hover,
.icon-btn[aria-expanded="true"] {
  background: #e0e7ee;
}
.filter-box {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.filter-box label,
.tool-fields label {
  display: grid;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
}
.filter-box select,
.tool-fields input:not([type="range"]),
.tool-fields select {
  width: 100%;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #ffffff;
  font-size: 12px;
  color: var(--ink);
}
.result-heading {
  display: flex;
  justify-content: space-between;
  padding: 0 24px 7px;
  color: var(--muted);
  font: 500 10px/1.3 var(--mono);
  letter-spacing: 0.4px;
}
.result-heading span:last-child {
  font-family: var(--sans);
  letter-spacing: 0;
}
.shell #records {
  border-block: 1px solid var(--line);
  overflow-y: auto;
  min-height: 85px;
  scrollbar-width: thin;
  scrollbar-color: #b4bdc7 transparent;
  flex-shrink: 0;
}
.filing {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 11px;
  text-align: left;
  padding: 8px 22px;
  border-bottom: 1px solid #d8e0e8;
  border-left: 3px solid transparent;
}
.filing:last-child {
  border-bottom: 0;
}
.filing:hover {
  background: #e5ebf1;
}
.filing[aria-pressed="true"] {
  border-left-color: var(--rust);
  background: #dfe6ee;
}
.filing .dot,
.legend-dot {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  display: inline-block;
  background: var(--dot, #ae5631);
}
.filing strong {
  display: block;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.35;
}
.filing small {
  display: block;
  font-size: 10.5px;
  color: #666e77;
  line-height: 1.5;
}
.filing .amount {
  font: 500 11px var(--mono);
  color: #4e5a67;
}
.empty {
  padding: 16px 24px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
#detail {
  padding: 21px 24px 19px;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
  flex: 1;
}
.section-tag {
  font-size: 9px;
  letter-spacing: 1.3px;
  color: var(--rust);
}
.filing-ref {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font: 10px var(--mono);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: 600 9.5px var(--sans);
  border: 1px solid #c6d3e1;
  border-radius: 3px;
  padding: 3px 6px;
  background: #e5ebf2;
  color: #3f536a;
}
.status:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #617790;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 15px 0;
  padding: 12px 0;
  border-block: 1px solid var(--line);
}
.stats > div + div {
  padding-left: 15px;
  border-left: 1px solid var(--line);
}
.stats dt,
.metadata dt {
  font-size: 10px;
  color: var(--muted);
  margin: 0 0 4px;
}
.stats dd {
  margin: 0;
  font: 600 13px var(--sans);
  font-variant-numeric: tabular-nums;
}
.scope {
  font-size: 12px;
  line-height: 1.54;
  color: #45505d;
}
.metadata {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 12px 0;
}
.metadata dd {
  margin: 0;
  font: 550 12px/1.35 var(--sans);
}
.source-link {
  color: #6a5a41;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-underline-offset: 2px;
}
.source-link svg {
  width: 11px;
  height: 11px;
}
.savebar {
  flex: none;
  padding: 12px 24px 15px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.primary {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  width: 100%;
  background: #243243;
  color: #ffffff;
  border-radius: 5px;
  border: 1px solid #212f40;
}
.primary:hover {
  background: #2f4258;
}
.primary .end {
  margin-left: auto;
  width: 16px;
}
.map-pane {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  background: #dae2eb;
}
#map-canvas {
  position: absolute;
  inset: 0;
  touch-action: none;
}
#map-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
}
#loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #dfe6ee;
  color: #485665;
  font-size: 14px;
}
.mode,
.map-right > button,
.zoom,
.tools,
#tool-panel,
.mobile-panel {
  background: #fffffff5;
  border: 1px solid #b2bdc9;
  border-radius: 6px;
  box-shadow: 0 2px 7px #28313d1c;
}
.mode {
  display: flex;
  padding: 3px;
  pointer-events: auto;
}
.mode button {
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 3px;
  color: var(--muted);
}
.mode button[aria-pressed="true"] {
  background: #2f3e50;
  color: #fff;
}
.map-right {
  position: absolute;
  right: 20px;
  top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}
.map-right #north {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0;
  padding: 6px;
  width: 39px;
  border-radius: 18px;
}
.map-right #north span {
  font: 700 8px var(--mono);
}
#north svg {
  height: 20px;
  width: 17px;
  stroke: none;
}
.zoom {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.zoom button {
  width: 35px;
  height: 34px;
  display: grid;
  place-items: center;
}
.zoom button + button {
  border-top: 1px solid #cbd3dc;
}
.zoom button:hover,
.tools button:hover,
.mode button:hover:not([aria-pressed="true"]) {
  background: #dee5ed;
}
.zoom svg {
  width: 15px;
}
.toolbox {
  position: absolute;
  bottom: 46px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 24px);
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
}
.tools {
  display: flex;
  align-items: center;
  padding: 4px;
  gap: 2px;
  background: #f3f6f9;
}
.tools button {
  font-size: 12px;
  font-weight: 580;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  padding: 9px 12px;
  border-radius: 3px;
}
.tools svg {
  width: 16px;
}
.tools button[aria-expanded="true"] {
  color: #87421f;
  background: #d2dce8;
}
.tools button:first-child svg {
  color: #a15f26;
}
#tool-panel {
  width: 300px;
  max-width: 100%;
  padding: 14px 15px 15px;
}
.tool-heading,
.dialog-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tool-heading h2 {
  font: 600 17px var(--serif);
}
.tool-heading button {
  padding: 2px;
  line-height: 1;
}
.tool-heading button svg {
  width: 14px;
  height: 14px;
}
.tool-fields {
  display: grid;
  gap: 9px;
  margin-top: 9px;
}
.tool-fields p {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.45;
}
.tool-fields input[type="range"] {
  accent-color: #a4542d;
  width: 100%;
}
.tool-row {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}
.tool-row label {
  flex: 1;
  min-width: 75px;
}
.tool-button,
.tool-row > button {
  border: 1px solid #bdc8d5;
  border-radius: 4px;
  background: #eef2f6;
  font: 600 11px var(--sans);
  padding: 6px 9px;
}
.tool-button:hover,
.tool-row > button:hover {
  background: #d8e0ea;
}
.tool-row > button[aria-pressed="true"] {
  background: #303e4f;
  color: #fff;
}
.map-foot {
  position: absolute;
  inset: auto 18px 11px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  pointer-events: none;
}
.map-foot button,
.map-scale {
  pointer-events: auto;
  font: 10px var(--sans);
  color: #495460;
  padding: 3px 6px;
  background: #f0f3f7df;
  border-radius: 2px;
}
.map-foot button {
  display: flex;
  align-items: center;
  gap: 4px;
}
.map-foot button svg {
  width: 10px;
  height: 10px;
}
.map-scale {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
}
.map-scale i {
  display: block;
  width: 48px;
  height: 5px;
  border: 1px solid #596574;
  border-top: 0;
}
.toast {
  position: fixed;
  bottom: 17px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  color: #fff;
  background: #28394c;
  padding: 10px 15px;
  border-radius: 4px;
  font-size: 12px;
  max-width: 90%;
}
.mobile-panel {
  display: none;
}
#sources-dialog {
  background: var(--paper);
  border: 1px solid var(--line);
  width: min(400px, 92vw);
  border-radius: 8px;
  padding: 20px;
  color: var(--ink);
}
#sources-dialog::backdrop {
  background: #141c2666;
}
.dialog-title h2 {
  font: 26px var(--serif);
}
#sources-body p,
#sources-body a {
  font: 13px/1.5 var(--sans);
}
#sources-body p {
  margin: 13px 0;
  color: var(--muted);
}
#sources-body a {
  display: block;
  margin: 10px 0;
  color: #3b4f67;
}
@media (max-height: 720px) and (min-width: 721px) {
  .area-head {
    padding-top: 16px;
    padding-bottom: 10px;
  }
  .searchbar {
    margin-top: 10px;
  }
  #detail {
    padding-top: 13px;
  }
  .savebar {
    padding-block: 8px;
  }
}
@media (max-width: 800px) {
  .top {
    gap: 25px;
    padding-inline: 18px;
  }
  .shell {
    grid-template-columns: minmax(294px, 35%) 1fr;
  }
  .top nav {
    gap: 17px;
  }
  .area-head,
  #detail {
    padding-left: 17px;
    padding-right: 17px;
  }
  .tools button {
    padding: 8px;
    font-size: 11px;
  }
  .map-right {
    right: 12px;
  }
  .map-foot {
    inset: auto 9px 9px;
  }
}
@media (max-width: 680px) {
  .top {
    height: 55px;
    gap: 5px;
    padding: 0 12px;
  }
  .brand {
    font-size: 23px;
    letter-spacing: -1px;
    gap: 7px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .top nav {
    margin-left: auto;
    gap: 10px;
  }
  .nav-item {
    font-size: 11px;
    gap: 4px;
  }
  .nav-item svg {
    width: 13px;
  }
  .city {
    display: none;
  }
  .shell {
    display: block;
    height: calc(100dvh - 55px);
    min-height: 390px;
  }
  .shell .map-pane {
    height: 100%;
  }
  .shell aside {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 55px;
    bottom: 0;
    border: 0;
    z-index: 5;
  }
  .shell.show-filings aside {
    display: flex;
  }
  .shell.show-filings aside .area-head {
    padding-right: 100px;
  }
  .toolbox {
    bottom: 40px;
  }
  .tools button {
    font-size: 12px;
    padding: 8px 9px;
  }
  .area-head {
    padding-top: 16px;
  }
  .map-foot {
    inset: auto 9px 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
@font-face {
  font-family: "Baskervville";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/type/baskervville.woff") format("woff");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/type/instrument.woff") format("woff");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 550 750;
  font-display: swap;
  src: url("/type/instrument-semibold.woff") format("woff");
}
.brand {
  font-weight: 600;
}
.nav-item,
.primary,
.filing strong,
.stats dd {
  font-size: 14px;
}
.search input,
.scope,
.metadata dd,
.tools button,
.area-head > p {
  font-size: 13.5px;
}
.filing small,
.filing .amount,
.source-link,
.stats dt,
.metadata dt {
  font-size: 12px;
}
.eyeline,
.section-tag,
.result-heading,
.filing-ref {
  font-size: 11px;
}
.status {
  font-size: 11px;
}
.map-foot button,
.map-scale {
  font-size: 11px;
}
.primary {
  justify-content: center;
}
.tool-fields label,
.tool-fields p,
.tool-row > button,
.tool-button {
  font-size: 12px;
}
.tool-fields output {
  font-size: 15px;
  font-weight: 600;
}
@media (max-width: 680px) {
  .nav-item {
    font-size: 11.5px;
  }
  .tools button {
    font-size: 12px;
  }
}

.gizmo-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.gizmo-modes > button {
  min-height: 32px;
}

/* Keep the overscanned drawing inside its own clipped viewport. */
#map-canvas {
  overflow: clip;
}
.map-pane {
  container-type: inline-size;
}
.toolbox:has([data-tool="model"][aria-expanded="true"]) #tool-panel {
  position: absolute;
  bottom: calc(100% + 9px);
}
@container (min-width: 735px) {
  .toolbox:has([data-tool="model"][aria-expanded="true"]) #tool-panel {
    left: calc(50% - 50cqw + 18px);
  }
}
@container (max-width: 734px) {
  .toolbox:has([data-tool="model"][aria-expanded="true"]) #tool-panel {
    max-height: min(33dvh, 310px) !important;
    scrollbar-width: thin;
  }
  #tool-panel .gizmo-modes {
    position: sticky;
    top: -1px;
    z-index: 1;
    background: var(--paper);
    padding-block: 3px;
  }
}

.aerial-ground,
.map-software-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.aerial-ground {
  background: #616973;
}
.aerial-plane {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  will-change: transform;
}
.aerial-plane img {
  display: block;
  position: absolute;
  max-width: none;
  pointer-events: none;
  user-select: none;
}
#aerial-credit {
  margin-left: auto;
  margin-right: 4px;
  pointer-events: auto;
  font: 10px var(--sans);
  color: #333c46;
  padding: 3px 5px;
  border-radius: 2px;
  background: #f0f3f7ef;
}
@media (max-width: 400px) {
  #aerial-credit {
    max-width: 120px;
  }
}
/* The upper bar routes each map task to one panel. */
.map-menus {
  position: absolute;
  z-index: 2;
  inset: 12px auto auto 12px;
  max-width: calc(100% - 24px);
}
.map-menu-bar, .map-menu-panel {
  border: 1px solid #aeb9c5;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 2px 8px #222d3a26;
}
.map-menu-bar {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
}
.map-menu-bar button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}
.map-menu-bar svg { width: 15px; height: 15px; }
.map-menu-bar button:hover { background: #dee5ed; }
.map-menu-bar button[aria-expanded="true"] { background: #2f3e50; color: white; }
.map-menu-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(334px, 100%);
  margin-top: 6px;
  padding: 12px;
  max-height: calc(100dvh - 175px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.map-menu-panel > * { flex-shrink: 0; }
.map-menu-panel fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.map-menu-panel legend, .map-menu-panel label { font-size: 13px; font-weight: 600; }
.map-menu-panel legend { margin-bottom: 5px; padding: 0; }
.map-menu-panel .mode { box-shadow: none; width: fit-content; }
.map-menu-panel .mode button { font-size: 13px; min-height: 30px; }
.menu-note, #address-status { font-size: 12px; line-height: 1.45; color: #505b67; }
.menu-note:empty, #address-status:empty { display: none; }
.buildings-header, .buildings-pages, #building-list li, .address-entry {
  display: flex;
  align-items: center;
  gap: 6px;
}
.buildings-header h2 { margin-right: auto; font: 22px var(--serif); }
.menu-close, .buildings-pages button { display: grid; place-items: center; width: 32px; height: 32px; }
.menu-close svg { width: 16px; height: 16px; }
.area-picker { display: grid; gap: 5px; padding-top: 10px; border-top: 1px solid var(--line); }
#map-area, #building-search, .address-entry input {
  max-width: 100%;
  min-width: 0;
  width: 100%;
  padding: 8px;
  border: 1px solid #b9c5d2;
  border-radius: 4px;
  background: #ffffff;
  color: var(--ink);
  font: 14px var(--sans);
}
.address-entry { margin-top: 5px; }
.address-entry input { flex: 1; }
.address-entry button, .building-focus, .building-visibility {
  background: #303e4f;
  color: white;
  padding: 7px 9px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
}
.building-visibility { background: #eef2f6; color: #2d3e51; border: 1px solid #b9c5d2; }
#address-results, #building-list { padding: 0; margin: 0; list-style: none; }
#address-results { max-height: 32dvh; overflow-y: auto; }
#address-results button { width: 100%; display: grid; gap: 2px; padding: 8px 4px; text-align: left; border-bottom: 1px solid var(--line); }
#address-results button:where(:hover, :focus-visible) { background: #e4eaf1; }
#address-results small, .building-name small, .building-empty, #building-count { font-size: 12px; color: #565f69; }
#building-list { max-height: min(325px, 34dvh); overflow-y: auto; scrollbar-width: thin; }
#building-list li { padding: 5px 0; border-top: 1px solid var(--line); }
.building-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.building-name strong, .building-name small { display: block; }
.building-name strong { font-size: 14px; }
.buildings-pages { border-top: 1px solid var(--line); }
#building-count { margin-right: auto; }
.buildings-pages button { font-size: 20px; }
.map-right { top: 12px; right: 12px; }
.city-map-status { position: absolute; bottom: 42px; left: 16px; display: grid; gap: 4px; pointer-events: none; }
.city-map-status span:not(:empty) { width: fit-content; max-width: min(300px,70vw); font-size: 12px; padding: 4px 8px; border: 1px solid #c2cad4; border-radius: 4px; color: #2a3a4c; background: #fffffff5; }
#mobile-panel { display: none; }
.shell { min-height: 0; }
#filing-browser {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
#filing-browser .area-head, #filing-browser .result-heading { flex: none; }
#filing-browser #records { flex: 1 0 auto; max-height: none; min-height: 0; overflow: visible; }
#save:disabled { cursor: default; }
#tool-panel { max-height: calc(100dvh - 210px); overflow-y: auto; overscroll-behavior: contain; }

@media (max-width: 680px) {
  .top nav > [aria-current="page"] { display: none; }
  .top #mobile-panel { display: flex; }
  .shell { position: relative; }
  .shell aside { inset: 0; }
  .shell.show-filings .map-pane { position: absolute; inset: 0; visibility: hidden; }
  .shell.show-filings aside .area-head { padding-right: 17px; }
  .savebar { padding-bottom: max(9px, env(safe-area-inset-bottom)); }
}
@container (max-width: 430px) {
  .map-menus { inset: 8px auto auto 8px; max-width: calc(100% - 16px); }
  .map-menu-bar button { padding: 8px; font-size: 13px; gap: 4px; }
  .map-menu-panel { max-width: calc(100cqw - 61px); }
  .map-right { right: 7px; top: 58px; }
  .city-map-status { bottom: 86px; left: 9px; }
}
@container (max-width: 734px) {
  .map-menus:has(.map-menu-panel:not([hidden])) ~ .toolbox #tool-panel { visibility: hidden; }
}
@media (max-height: 480px) {
  .map-menu-panel { max-height: calc(100dvh - 124px); }
  #tool-panel { max-height: calc(100dvh - 158px); }
  .map-menus:has(.map-menu-panel:not([hidden])) ~ .toolbox { visibility: hidden; }
}
.account-nav {display:flex; align-items:center; gap:16px; margin-left:auto;}
.account-link {display:inline-flex; align-items:center; justify-content:center; padding:7px 13px; border:1px solid #2f3d4e; border-radius:5px; background:#2f3d4e; color:white; font-size:13px; font-weight:600; line-height:1.3; text-decoration:none; white-space:nowrap;}
.account-link:hover {background:#222e3c;}
@media (max-width:680px) {
  .account-nav {margin-left:4px;}
  .account-link {padding:6px 9px; font-size:12px;}
}
@media (max-width:420px) {
  .top {padding-inline:8px;}
  .top .brand {font-size:20px; gap:4px;}
  .top .brand img {width:25px; height:25px;}
  .top nav {gap:6px;}
  .top nav svg {display:none;}
}

@media (max-width: 360px) {
  .top { padding-inline: 6px; gap: 3px; }
  .top .brand { font-size: 18px; }
  .top .brand img { width: 21px; height: 21px; }
  .top nav { gap: 3px; }
  .account-nav { margin-left: 0; }
  .account-link { padding-inline: 6px; }
}
@container (max-width: 360px) {
  .map-menu-bar button { white-space: nowrap; padding-inline: 7px; }
  .map-menu-bar svg { display: none; }
  .tools button { padding-inline: 6px; gap: 4px; }
  .tools button svg { width: 14px; }
  .map-scale, .map-foot button { white-space: nowrap; }
}
@media (max-width: 680px) {
  body:has(.shell.show-filings) .toast { bottom: calc(64px + env(safe-area-inset-bottom)); pointer-events: none; }
}

/* The card shares the upper-left corner with the map menus. */
#selection-card {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  display: flex;
  flex-direction: column;
  width: clamp(320px, 42cqw, 540px);
  max-width: calc(100cqw - 64px);
  max-height: var(--available-card-height, calc(100dvh - 160px));
  overflow: hidden;
  border: 1px solid #aeb9c5;
  border-radius: 6px;
  box-shadow: 0 3px 12px #222d3a29;
  background: var(--paper);
}
.map-menus:has(.map-menu-panel:not([hidden])) #selection-card,
.map-pane:has(#tool-panel:not([hidden])) #selection-card { display: none; }
#selection-heading {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  width: 100%;
  text-align: left;
}
#selection-heading:hover { background: #e8edf3; }
#selection-heading:focus-visible { outline-offset: -3px; }
#selection-heading > span { min-width: 0; }
#selection-title {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  font: 400 clamp(21px, 2.1vw, 28px)/1.13 var(--serif);
  letter-spacing: -.6px;
}
#selection-heading svg { width: 15px; height: 15px; transform: rotate(90deg); }
#selection-heading[aria-expanded="true"] svg { transform: rotate(-90deg); }
#selection-content { display: flex; flex-direction: column; min-height: 0; }
#selection-card #detail {
  flex: 1 1 auto;
  padding: 0 16px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  overflow-wrap: anywhere;
}
#selection-card .stats { margin: 10px 0; padding: 9px 0; }
#selection-card .savebar { padding: 8px 16px; }
#selection-card .primary { padding-block: 8px; }
@container (max-width: 620px) {
  #selection-heading { padding: 9px 12px; }
  #selection-card #detail { padding-inline: 12px; }
  #selection-card .savebar { padding: 6px 12px; }
}

/* The listing and Properties card share the same navigation and selection colors. */
.top { background:#fff; border-bottom:1px solid #aebdca; }
.brand { font:700 clamp(17px,2.1vw,27px)/1 var(--sans); letter-spacing:-.055em; color:var(--navy); }
.brand i { font-style:normal; font-weight:700; color:var(--orange); }
.top .nav-item.active { color:var(--navy); }
.nav-item.active:after { background:var(--orange); }
.account-link, .primary, .map-menu-bar button[aria-expanded="true"],
.mode button[aria-pressed="true"], .tool-row > button[aria-pressed="true"] { background:var(--navy); color:#fff; border-color:var(--navy); }
.area-head { background:#f7f9fc; border-top:3px solid var(--navy); }
.eyeline, .section-tag { color:#4a6075; }
.tiny-block { height:8px; width:8px; background:var(--orange); transform:none; }
.area-head h1 { font:650 clamp(26px,2.4vw,36px)/1.15 var(--sans); letter-spacing:-.05em; color:var(--navy); }
.trade-filter { grid-template-columns:minmax(0,1fr); margin-top:10px; }
.filter-box select { min-width:0; min-height:32px; background:#fff; }
#filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
#filters label:nth-child(2) { grid-column:1/-1; grid-row:2; }
.result-heading { align-items:center; background:#edf2f7; color:#374f67; padding-block:7px; border-block:1px solid var(--line); }
.filing[aria-pressed="true"] { border-left-color:var(--orange); background:#fff1e5; }
.filing:hover:not([aria-pressed="true"]) { background:#eff5fa; }
.filing .amount { font-variant-numeric:tabular-nums; color:#344d65; }
.listing-foot { margin-top:auto; padding:9px clamp(12px,2vw,24px); background:white; border-top:1px solid var(--line); }
.listing-foot nav { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.listing-foot button { font-weight:650; color:var(--navy); }
.listing-foot nav button { padding:6px 10px; border:1px solid #b8c7d4; border-radius:4px; min-height:30px; }
.listing-foot button:disabled { opacity:.45; cursor:default; }
.listing-foot span { font-size:12px; color:var(--muted); }
.filing-feedback:not(:has(#filing-status:empty)) { margin-bottom:6px; line-height:1.3; }
.filing-feedback button { text-decoration:underline; font-size:12px; }
#selection-heading { border-left:3px solid var(--orange); }
#selection-title { font:650 clamp(18px,2vw,24px)/1.18 var(--sans); color:var(--navy); letter-spacing:-.035em; }
#filing-browser .area-head { padding-block:clamp(10px,1.5vh,19px); }
#filing-browser #records { flex:1 1 120px; min-height:105px; overflow-y:auto; border:0; }
@media (max-height:530px) { .listing-foot { padding-block:5px; } #filing-browser .area-head { padding-block:8px; } }
