

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.topbar {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, #ffffff);
  backdrop-filter: blur(10px);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-row {
  align-items: flex-end;
  gap: 24px;
}
.topbar h1 {
  font-size: 22px;
  margin: 0 0 2px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.clock { text-align: right; }
.now {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 18px;
  font-weight: 500;
  color: var(--primary);
}

.muted { }
.small { }
.xsmall { font-size: 11px; }

main { padding: 24px 0 60px; }

h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 12px;
  letter-spacing: -0.01em;
}
.passed-h { color: var(--muted); }

.why {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 20px;
}
.why p { margin: 0 0 14px; }
.why details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
  padding: 6px 0;
}
.mechs { padding-left: 20px; margin: 8px 0 14px; }
.mechs li { margin-bottom: 6px; }

.bands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 14px;
}
.band-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.band-pill.direct { background: rgba(75,75,75, 0.12); color: var(--error); }
.band-pill.study  { background: rgba(81,81,81, 0.12); color: var(--warning); }
.band-pill.market { background: rgba(83,83,83, 0.12); color: var(--primary); }

.kpis {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 12px 0 4px;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.kpi .val {
  font-family: "JetBrains Mono", monospace;
  font-size: 22px;
  font-weight: 600;
  display: block;
  color: var(--text);
}
.kpi .lbl {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Filter bar — prominent, between brief and listings */
.filter-bar {
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 12px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 84px;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.filter-bar::before {
  content: "Filter the listings below";
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.filter-row.chips { gap: 6px; }

#search {
  flex: 1 1 220px;
  font-family: inherit;
  font-size: 14px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
}
#search:focus { outline: 2px solid var(--primary); outline-offset: -1px; border-color: var(--primary); }

#sort {
  font-family: inherit;
  font-size: 14px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}
.toggle input { cursor: pointer; }
.btn-clear {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  color: var(--muted);
}
.btn-clear:hover { background: var(--error); color: #ffffff; border-color: var(--error); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f4f4f4;
  border: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
  transition: all 0.1s;
}
.chip:hover { background: #eeeeee; }
.chip.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
.chip .count {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  opacity: 0.85;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.card.has-direct { border-left: 3px solid var(--error); }
.card.has-marcellus { border-right: 3px solid var(--warning); }

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: baseline;
}
.card-head .addr {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.status {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
}
.status.today    { border-color: var(--error); }
.status.soon     { background: var(--warning); color: #ffffff; border-color: var(--warning); }
.status.future   { background: var(--surface); color: var(--text); }
.status.passed   { background: #eeeeee; color: var(--muted); text-decoration: line-through; }
.status.tbd      { background: #f4f4f4; color: var(--muted); }

.card-meta {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 8px;
}
.card-meta b { color: var(--text); }
.owner { margin-top: 4px; font-size: 12px; color: var(--muted); }
.owner b { color: var(--text); font-weight: 600; }

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0;
}
.tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 3px;
  background: #f4f4f4;
  color: var(--muted);
}
.tag.marcellus { background: rgba(81,81,81, 0.15); color: var(--warning); }
.tag.timber    { background: rgba(104,104,104, 0.15); color: var(--success); }
.tag.carbon    { background: rgba(80,80,80, 0.15); color: #505050; }
.tag.acreage   { background: rgba(82,82,82, 0.15); color: #525252; }
.tag.commercial{ background: rgba(75,75,75, 0.12); color: var(--error); }
.tag.land_bank { background: rgba(83,83,83, 0.12); color: var(--primary); }
.tag.speculative { background: #252525; color: #c9c9c9; }

.card-links {
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 8px 0 10px;
}
.card-links a { font-weight: 500; }

.urls {
  font-size: 11px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  word-break: break-all;
  background: #f4f4f4;
  border-radius: 6px;
  padding: 6px 8px;
  margin-bottom: 10px;
}
.urls .lbl { color: var(--text); font-weight: 600; }

.corridors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.corridor-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f4f4f4;
  border: 1px solid var(--border);
}
.corridor-tag.direct { background: rgba(75,75,75, 0.10); border-color: rgba(75,75,75, 0.35); }
.corridor-tag.study  { background: rgba(81,81,81, 0.10);  border-color: rgba(81,81,81, 0.35); }
.corridor-tag.market { background: rgba(83,83,83, 0.10);  border-color: rgba(83,83,83, 0.35); }
.corridor-tag .b { font-weight: 600; font-family: "JetBrains Mono", monospace; }

details.ddx { margin-top: 6px; }
details.ddx summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  list-style: none;
  padding: 6px 0;
}
details.ddx summary::-webkit-details-marker { display: none; }
details.ddx summary::after { content: " ↓"; font-family: monospace; }
details.ddx[open] summary::after { content: " ↑"; }
.ddx-table {
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 13px;
}
.ddx-table th, .ddx-table td {
  border: 1px solid var(--border);
  padding: 7px 10px;
  text-align: left;
  background: #ffffff;
}
.ddx-table th {
  background: #f4f4f4;
  font-weight: 600;
  white-space: nowrap;
  width: 30%;
}

.passed-cards .card { opacity: 0.65; background: #f4f4f4; }

/* Corridor reference */
.corridors-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 28px;
}
.corridor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}
.corridor-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
}
.corridor-card .nm { font-weight: 600; color: var(--text); display: block; margin-bottom: 2px; }
.corridor-card .st { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.corridor-card .note { font-size: 12px; color: var(--text); }
.corridor-card.spec { background: #fafafa; border-color: rgba(81,81,81,0.3); }

.sources {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 28px;
}
.src-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
}
.src-list li { font-size: 13px; }
.src-list-cats {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 12px;
}
.src-cat-h {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.src-list-inner {
  list-style: none;
  padding: 0;
  margin: 0;
}
.src-list-inner li {
  font-size: 13px;
  padding: 2px 0;
}

/* Map */
.map-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 18px 0 8px;
}
.map-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.map-head h2 { margin: 0; }
#map { height: 480px; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 10px;
  align-items: center;
}
.map-legend .dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 6px;
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 0 1px var(--border);
}
.map-legend .dot.direct { background: #4b4b4b; }
.map-legend .dot.study  { background: #515151; }
.map-legend .dot.market { background: #5c5c5c; }
.map-legend .dot.passed { background: #888888; opacity: 0.5; }
.map-legend .line {
  display: inline-block;
  width: 22px; height: 3px;
  vertical-align: middle;
  margin-right: 6px;
  border-radius: 2px;
}
.map-legend .line.corridor { background: #5c5c5c; }
.map-legend .line.spec     { background: #515151; background-image: linear-gradient(90deg, #515151 50%, transparent 50%); background-size: 8px 3px; }
.map-legend .poly {
  display: inline-block;
  width: 16px; height: 10px;
  vertical-align: middle;
  margin-right: 6px;
  border-radius: 2px;
  border: 1px solid currentColor;
}
.map-legend .poly.marc    { background: rgba(75,75,75, 0.22); color: #4b4b4b; }
.map-legend .poly.carbon  { background: rgba(82,82,82, 0.18);  color: #525252; }
.map-legend .poly.minerals{ background: rgba(81,81,81, 0.18);  color: #515151; }

.leaflet-popup-content { font-family: "Inter", sans-serif; font-size: 13px; line-height: 1.4; }
.leaflet-popup-content b { font-size: 14px; }

/* Countdown */
.countdown {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(81,81,81, 0.12);
  color: var(--warning);
  font-weight: 600;
  margin-left: 8px;
  white-space: nowrap;
}
.countdown.urgent { background: rgba(75,75,75, 0.18); color: var(--error); }
.countdown.expired { background: #eeeeee; color: var(--muted); text-decoration: line-through; }

/* Intelligence feeds */
.intel-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 18px 0;
}
.intel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}
.intel-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
}
.intel-card > summary {
  cursor: pointer;
  font-size: 14px;
  padding: 4px 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.intel-card > summary::-webkit-details-marker { display: none; }
.intel-card > summary::before {
  content: "▸";
  display: inline-block;
  transition: transform 0.15s;
  color: var(--muted);
  font-size: 11px;
}
.intel-card[open] > summary::before { transform: rotate(90deg); }
.intel-list {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  display: grid;
  gap: 8px;
}
.intel-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}
.intel-row:last-child { border-bottom: none; }
.intel-row .lbl {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.intel-row .body { color: var(--text); }
.intel-row .body b { font-weight: 600; }
.intel-row .body .subtle { color: var(--muted); font-size: 12px; }
.intel-row .meta { font-size: 11px; color: var(--muted); white-space: nowrap; }
.intel-empty { color: var(--muted); font-style: italic; padding: 6px 0; }
.intel-prose { font-size: 13px; line-height: 1.5; color: var(--text); margin: 8px 0; }

@media (max-width: 700px) {
  .intel-row { grid-template-columns: 1fr; gap: 2px; }
}

/* Title flags */
.title-flags {
  margin-top: 4px;
  font-size: 11px;
  color: var(--error);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.title-flag {
  background: rgba(75,75,75, 0.12);
  border: 1px solid rgba(75,75,75, 0.3);
  color: var(--error);
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 500;
}

/* Minerals */
.minerals { margin-top: 4px; font-size: 11px; color: var(--muted); }
.minerals.high { color: var(--warning); }
.minerals.high b { color: var(--warning); font-weight: 700; }
.minerals.checked { color: var(--text); }
.minerals.checked b { font-weight: 700; }

/* Easement comps */
.comps-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 28px;
}
.comps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.comp-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
}
.comp-card .lbl {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--text);
}
.comp-card .geo {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}
.comp-card .range {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 6px;
}
.comp-card .notes {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

/* Watchlist FAB + drawer */
.watchlist-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
}
.watchlist-fab:hover { background: var(--primary-hover); }
.watchlist-count {
  background: #ffffff;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
}
.watchlist-panel {
  right: -380px;
  background: var(--surface);
  transition: right 0.2s ease;
  z-index: 60;
  box-shadow: -8px 0 24px rgba(0,0,0,0.08);
}
.watchlist-panel.open { right: 0; }
.watchlist-head {
}
.watchlist-head h3 { font-size: 16px; }
.watchlist-head button,
.sim-head button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--muted);
  padding: 4px 8px;
}
.watchlist-totals {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  margin: 10px 0;
  font-size: 13px;
}
.watchlist-totals .row {
  padding: 2px 0;
}
.watchlist-totals .row b {
}
.watchlist-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  margin: 6px 0;
  font-size: 13px;
  justify-content: space-between;
  align-items: flex-start;
}
.watchlist-item .info { flex: 1; }
.watchlist-item .addr { }
.watchlist-item .remove {
  border: none;
  color: var(--error);
  font-size: 14px;
  padding: 0 4px;
}
.btn-watchlist, .btn-simulate {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
}
.btn-watchlist:hover, .btn-simulate:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
.btn-watchlist.added {
  background: var(--success);
  color: #ffffff;
  border-color: var(--success);
}

/* Bid simulator modal */
.sim-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 100;
}
.sim-modal.open { display: flex; align-items: center; justify-content: center; }
.sim-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.sim-dialog {
  position: relative;
  background: var(--bg);
  border-radius: 10px;
  padding: 20px 22px;
  max-width: 720px;
  width: calc(100% - 40px);
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.sim-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sim-head h3 { margin: 0; font-size: 18px; }
.sim-section { margin-bottom: 14px; }
.sim-section h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 8px;
}
.sim-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.sim-input-row label { font-size: 13px; min-width: 130px; }
.sim-input-row input {
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #ffffff;
  font-family: inherit;
  font-size: 13px;
  width: 110px;
}
.sim-totals {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  margin-top: 10px;
  font-size: 13px;
}
.sim-totals .row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  border-bottom: 1px dashed var(--border);
}
.sim-totals .row:last-child { border-bottom: none; padding-top: 8px; font-weight: 700; font-size: 14px; }
.sim-totals b {
  font-family: "JetBrains Mono", monospace;
}
.sim-detail-table {
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 6px;
}
.sim-detail-table th, .sim-detail-table td {
  border: 1px solid var(--border);
  padding: 5px 8px;
  text-align: left;
}
.sim-detail-table th { background: #f4f4f4; font-weight: 600; }
.sim-detail-table td.r { font-family: "JetBrains Mono", monospace; text-align: right; }

/* Brief + alerts sections */
.brief-section, .alerts-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 12px 0;
}
.brief-section h2, .alerts-section h2 { margin-top: 0; }
.brief-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.brief-text {
  line-height: 1.6;
  color: var(--text);
  margin-top: 8px;
}
.sub-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.sub-form input[type="email"] {
  flex: 1 1 240px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
}
.sub-form .toggle { white-space: nowrap; }

footer { margin-top: 32px; padding: 20px 0; }

@media (max-width: 900px) { .kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .src-list { grid-template-columns: 1fr; }
  .topbar h1 { font-size: 18px; }
  .now { font-size: 14px; }
  .filter-bar { position: static; }
  .topbar { position: static; }
}

/* ============================================================
   v2 LAYOUT — Compact above-the-fold + sticky toolbar
   ============================================================ */

/* Topbar - compact, with KPIs and action buttons */
.topbar { padding: 10px 0 8px; }
.topbar-row { gap: 16px; }
.topbar-title h1 { font-size: 18px; margin: 0 0 1px; }
.topbar-title p { margin: 0; font-size: 12px; }

.topbar-kpis {
  gap: 14px;
  flex: 1 1 auto;
  justify-content: center;
  font-size: 13px;
}
.topbar-kpis .tk { color: var(--muted); }
.topbar-kpis .tk b { font-weight: 600; }

.topbar-actions { }
.btn-pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text);
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.btn-pill:hover { background: var(--primary); color: #ffffff; border-color: var(--primary); }
.btn-pill.small { padding: 4px 10px; font-size: 12px; }
.btn-pill .watchlist-count {
  background: var(--primary); color: #ffffff;
  border-radius: 999px; min-width: 18px; padding: 0 6px;
  font-family: "JetBrains Mono", monospace; font-size: 11px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-pill:hover .watchlist-count { background: #ffffff; color: var(--primary); }

.topbar-clock { align-items: baseline;
  padding-top: 6px; font-size: 11px;
}
.topbar-clock .now { font-size: 13px; }

@media (max-width: 760px) {
  .topbar-row { flex-wrap: wrap; }
  .topbar-kpis { order: 3; flex-basis: 100%; justify-content: flex-start; padding-top: 4px; border-top: 1px dashed var(--border); margin-top: 4px; }
  .topbar-title h1 { font-size: 16px; }
}

/* HERO KPI row */
.hero-section { margin: 14px 0 12px; }
.hero-kpis {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.hero-kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  display: flex; flex-direction: column; align-items: flex-start;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color .12s, box-shadow .12s;
}
.hero-kpi:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.hero-kpi.static { cursor: default; }
.hero-kpi.static:hover { border-color: var(--border); box-shadow: none; }
.hero-kpi.today-kpi { background: rgba(75,75,75, 0.08); border-color: rgba(75,75,75, 0.3); }
.hero-kpi .val {
  font-family: "JetBrains Mono", monospace;
  font-size: 24px; font-weight: 600;
  color: var(--text);
  line-height: 1.1;
}
.hero-kpi .val.small { font-size: 12px; }
.hero-kpi .lbl {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}
@media (max-width: 760px) {
  .hero-kpis { grid-template-columns: repeat(2, 1fr); }
  .hero-kpi:nth-child(5) { grid-column: 1 / -1; }
}

/* Imminent row */
.hero-imminent-label {
  font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin: 6px 0 4px;
}
.hero-imminent-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}
.imm-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--error);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  display: flex; flex-direction: column;
  transition: border-color .12s, box-shadow .12s, transform .08s;
}
.imm-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.imm-addr { font-weight: 600; font-size: 13px; margin-bottom: 2px; }
.imm-meta { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.imm-meta b { color: var(--text); font-weight: 600; }
.imm-corridor {
  font-family: "JetBrains Mono", monospace; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 2px 6px; border-radius: 3px;
  display: inline-block; align-self: flex-start;
}
.imm-corridor.direct { background: rgba(75,75,75,0.12); color: var(--error); }
.imm-corridor.study  { background: rgba(81,81,81,0.12); color: var(--warning); }
.imm-corridor.market { background: rgba(83,83,83,0.12); color: var(--primary); }
.imm-countdown { margin-top: 4px; margin-left: 0; align-self: flex-start; }

/* Brief — collapsed by default */
.brief-section { margin-bottom: 10px; }
.brief-section details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
}
.brief-section details > summary {
  cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  list-style: none;
  font-size: 14px;
}
.brief-section details > summary::-webkit-details-marker { display: none; }
.brief-section details > summary::before {
  content: "▸"; color: var(--muted); font-size: 11px;
  transition: transform 0.15s;
}
.brief-section details[open] > summary::before { transform: rotate(90deg); }
.brief-summary-text { flex: 1 1 auto; }
.brief-summary-text b { color: var(--text); font-weight: 600; }
.brief-text {
  font-size: 14px;
  line-height: 1.55;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* Quick view segmented buttons */
.quickview-section { margin: 8px 0 4px; }
.quickview-row { flex-wrap: wrap; gap: 6px;
}
.qv-btn {
  border-radius: 999px;
  padding: 6px 14px;
  font-family: inherit; font-size: 13px;
  cursor: pointer;
  color: var(--text);
  font-weight: 500;
}
.qv-btn:hover { background: var(--surface); }
.qv-btn.active {
  background: var(--primary); color: #ffffff; border-color: var(--primary);
}
.qv-btn .qv-count {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; opacity: 0.85; margin-left: 4px;
}

/* Filter bar v2 — sticky, less prominent */
.filter-bar {
  border-width: 1px;
  border-color: var(--border);
  margin: 8px 0 14px;
  top: 108px;
  box-shadow: var(--shadow-sm);
  background: var(--surface);
}
.filter-bar::before { content: none; } /* remove old "FILTER THE LISTINGS BELOW" label */
.filter-bar-head { align-items: baseline;
  margin-bottom: 6px;
}
.filter-bar-title { font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--primary);
}
.btn-link {
  background: none; border: none; padding: 0;
  color: var(--primary); cursor: pointer;
  font-family: inherit; font-size: 13px;
}
.btn-link:hover { color: var(--primary-hover); text-decoration: underline; }

.adv-filters {
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 8px; border-top: 1px dashed var(--border); margin-top: 6px;
}
.adv-filters[hidden] { display: none; }

.filter-active {
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
  padding-top: 6px;
}
.active-chip {
  background: var(--primary); color: #ffffff; border: none;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
}
.active-chip:hover { background: var(--primary-hover); }

/* Map — compact preview by default */
.map-section { margin: 6px 0 14px; padding: 12px 14px; }
.map-head h2 { font-size: 15px; }
.map-head-actions { display: flex; gap: 12px; align-items: center; }
.map-compact { height: 220px !important; }
.map-large { height: 480px !important; }
@media (max-width: 760px) {
  .map-compact { height: 180px !important; }
  .map-large { height: 360px !important; }
}

/* COMPACT listing cards */
.cards-compact { display: flex; flex-direction: column; gap: 6px; }
.card-compact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow .12s, border-color .12s;
}
.card-compact:hover { box-shadow: var(--shadow-sm); }
.card-compact.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(78,78,78, 0.22);
}
.sale-group-note { margin: 0 0 6px; }
.source-status-wrap { padding-bottom: 8px; }
.source-status { margin: 2px 0 0; line-height: 1.45; }
.card-compact.has-direct { border-left: 3px solid var(--error); }
.card-compact.has-marcellus { border-right: 3px solid var(--warning); }

.card-toggle { width: 100%; }
.card-toggle > summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 14px;
  display: flex; flex-direction: column; gap: 3px;
}
.card-toggle > summary::-webkit-details-marker { display: none; }
.card-toggle[open] > summary { border-bottom: 1px solid var(--border); }

.card-row1 {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.card-row1 .addr-link { font-weight: 600; font-size: 15px; flex: 1 1 auto; min-width: 0; }
.card-row1 .addr-link a {
  border-bottom: none;
  color: var(--text);
}
.card-row1 .addr-link a:hover { color: var(--primary); }

.card-row2 {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
.card-row2 .bid-strong {
  color: var(--text); font-weight: 600;
  font-family: "JetBrains Mono", monospace;
}
.card-row2 .meta-sep { color: var(--faint); }
.corridor-mini {
  font-family: "JetBrains Mono", monospace; font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 1px 7px; border-radius: 3px;
}
.corridor-mini.direct { background: rgba(75,75,75,0.12); color: var(--error); }
.corridor-mini.study  { background: rgba(81,81,81,0.12); color: var(--warning); }
.corridor-mini.market { background: rgba(83,83,83,0.12); color: var(--primary); }

.card-body { padding: 12px 14px 14px; }

details.ddx-sub { margin-top: 6px; }
details.ddx-sub > summary {
  cursor: pointer; font-size: 12px; font-weight: 500;
  color: var(--primary); list-style: none; padding: 4px 0;
}
details.ddx-sub > summary::-webkit-details-marker { display: none; }

/* Flash highlight when scrolled-to */
@keyframes flashCard {
  0%   { box-shadow: 0 0 0 3px rgba(83,83,83,0.45); background: rgba(83,83,83,0.05); }
  100% { box-shadow: 0 0 0 0 rgba(83,83,83,0); background: var(--surface); }
}
.card-compact.flash { animation: flashCard 1.6s ease-out; }

/* Pager */
.pager-wrap {
  display: flex; align-items: center; gap: 12px;
  margin: 12px 0 4px;
  padding: 8px 0;
}

/* Watchlist drawer (no FAB — moved to topbar) */
.watchlist-fab { display: none; }

/* Sources cleanup — better grid */
.src-list-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

/* Force ensure-visible scroll target */
:target { scroll-margin-top: 80px; }

/* Avoid Watchlist drawer overlapping card buttons on mobile (it now slides from right) */
.watchlist-panel {
  position: fixed;
  right: 0; top: 0; bottom: 0;
  width: 360px;
  background: #ffffff;
  border-left: 1px solid var(--border);
  box-shadow: -4px 0 16px rgba(0,0,0,0.08);
  padding: 18px;
  overflow-y: auto;
  transform: translateX(110%);
  transition: transform .22s ease-out;
  z-index: 30;
}
.watchlist-panel.open { transform: translateX(0); }
.watchlist-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.watchlist-head h3 { margin: 0; }
.watchlist-head button { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--muted); }
.watchlist-totals .row {
  display: flex; justify-content: space-between;
  padding: 4px 0; font-size: 13px; border-bottom: 1px dashed var(--border);
}
.watchlist-totals .row b { font-family: "JetBrains Mono", monospace; }
.watchlist-item {
  display: flex; gap: 8px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--border);
}
.watchlist-item .info { flex: 1 1 auto; min-width: 0; }
.watchlist-item .addr { font-weight: 600; font-size: 13px; }
.watchlist-item .remove {
  background: none; border: 1px solid var(--border);
  border-radius: 4px; cursor: pointer;
  padding: 4px 8px; color: var(--muted);
}
.watchlist-item .remove:hover { background: var(--error); color: #ffffff; border-color: var(--error); }

/* Global long-text safety */
.intel-row, .intel-row .body, .intel-row .subtle, .intel-row .meta,
.card-body, .card-meta, .owner,
.comp-card, .corridor-card,
.brief-text, .why p, .why details {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Intel grid needs min-width:0 on children so they can shrink */
.intel-row { min-width: 0; }
.intel-row > * { min-width: 0; max-width: 100%; }

/* DDX tables: force layout + word break on long values */
.ddx-table {
  table-layout: fixed;
  width: 100%;
}
.ddx-table th, .ddx-table td {
  overflow-wrap: anywhere;
  word-break: break-word;
  vertical-align: top;
}
.ddx-table th { width: 28%; padding-right: 6px; }
@media (max-width: 500px) {
  .ddx-table { font-size: 12px; }
  .ddx-table th { width: 35%; font-size: 11px; }
  .ddx-table th, .ddx-table td { padding: 6px 7px; }
}

/* Sim table is best left scrollable horizontally inside a wrapper */
.sim-detail-table { width: 100%; min-width: 480px; }
#simResults { overflow-x: auto; }

/* Watchlist drawer slide-in must not push body width */
.watchlist-panel { max-width: 90vw; }

/* Long URLs inside cards/intel/comps wrap aggressively */
.intel-row a, .card-body a, .comp-card a, .corridor-card a,
.brief-text a, .why a, .sources a {
  overflow-wrap: anywhere;
  word-break: break-all;
}

/* Map container should be capped at parent width on mobile */
#map { max-width: 100%; }

/* Hero KPIs on phones — make sure 'data refreshed' value doesn't push width */
.hero-kpi .val.small { overflow-wrap: anywhere; }

/* Topbar KPIs should wrap and not force overflow */
.topbar-kpis { }

/* Topbar row must not exceed viewport */
.topbar-row { max-width: 100%; }
.container { max-width: min(1200px, 100%); }

/* ============================================================
   Distressed-deal focus (v3)
   ============================================================ */

/* Deal-class chip on card row 1 */
.deal-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.5;
  white-space: nowrap;
}
.deal-distressed  { background: rgba(75,75,75, 0.13); color: var(--error); border: 1px solid rgba(75,75,75, 0.35); }
.deal-speculative { background: rgba(81,81,81, 0.13);  color: var(--warning); border: 1px solid rgba(81,81,81, 0.30); }
.deal-mls         { background: rgba(120,120,120, 0.10); color: #6b6b6b; border: 1px solid rgba(120,120,120, 0.25); }
.deal-other       { background: rgba(83,83,83, 0.10);  color: var(--primary); border: 1px solid rgba(83,83,83, 0.25); }

/* Cards that are MLS get a lighter visual weight when shown */
.card-compact[data-address] { } /* base */
.card-compact:has(.deal-mls) { opacity: 0.92; border-left-color: rgba(120,120,120, 0.4) !important; }

/* Distressed metadata table inside card body */
.distressed-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
  background: rgba(75,75,75, 0.04);
  border: 1px solid rgba(75,75,75, 0.15);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.45;
}
.distressed-meta div { min-width: 0; overflow-wrap: anywhere; }
.distressed-meta b {
  display: inline-block;
  min-width: 90px;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--error);
  margin-right: 6px;
}
.distressed-meta .mono { font-family: "JetBrains Mono", monospace; font-size: 12px; }
@media (max-width: 600px) {
  .distressed-meta { grid-template-columns: 1fr; }
}

/* Hero KPI - Distressed special treatment */
.hero-kpi.distressed-kpi {
  background: rgba(75,75,75, 0.10);
  border-color: rgba(75,75,75, 0.40);
}
.hero-kpi.distressed-kpi .val { color: var(--error); }

/* Top picks card variant */
.imm-card.pick-card { border-left-color: var(--primary); }
.imm-card.pick-card .imm-corridor { font-size: 9.5px; }
.pick-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
}
.pick-class {
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  background: rgba(83,83,83, 0.10);
  border-radius: 3px;
  padding: 1px 6px;
}
.pick-score {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 28px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* MLS toggle hint in filter bar */
#showMLS + span::before {
  content: "● ";
  color: rgba(120,120,120,0.55);
}


/* TODAY badge — pulses red to draw eye */
.status.today {
  background: var(--error);
  color: #ffffff;
  font-weight: 600;
  animation: pulseToday 1.6s ease-in-out infinite;
}
@keyframes pulseToday {
  0%, 100% { box-shadow: 0 0 0 0 rgba(75,75,75, 0.55); }
  50%      { box-shadow: 0 0 0 5px rgba(75,75,75, 0); }
}

/* ============================================================
   v4 — Corridor-opportunity tier badge + neutral diligence notes
   ============================================================ */

/* Corridor tier badge on card row 1 */
.corridor-tier {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.5;
  white-space: nowrap;
}
.corridor-tier.tier-s { background: #f2f2f2; color: #4e4e4e; border: 1px solid #c1c1c1; }
.corridor-tier.tier-a { background: #ececec; color: #404040; border: 1px solid #939393; }
.corridor-tier.tier-b { background: #f1f1f1; color: #505050; border: 1px solid #cecece; }
.corridor-tier.tier-c { background: #e7e7e7; color: #3a3a3a; border: 1px solid #b6b6b6; }

/* Pick class tier coloring (for corridor-pick hero cards) */
.pick-class.tier-s { background: #f2f2f2; color: #4e4e4e; }
.pick-class.tier-a { background: #ececec; color: #404040; }
.pick-class.tier-b { background: #f1f1f1; color: #505050; }
.pick-class.tier-c { background: #e7e7e7; color: #3a3a3a; }

/* Corridor-pick hero variant */
.imm-card.corridor-pick { border-left: 3px solid #a6a6a6; }
.imm-card.corridor-pick:hover { border-color: #848484; }
.hero-imminent-label.corridor-label { color: #4e4e4e; margin-top: 14px; }

/* Neutral diligence-notes block (was a red warning) */
.title-flags.neutral {
  background: #fafafa;
  border: 1px dashed #d4d4d4;
  border-radius: 6px;
  padding: 7px 10px;
  margin: 8px 0;
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.title-flags.neutral .flag-lbl {
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #727272;
  margin-right: 4px;
}
.title-flags.neutral .title-flag {
  background: #ffffff;
  border: 1px solid #e7e7e7;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11.5px;
  color: #535353;
}
/* Kill the old red warning style for legacy users */
.title-flags:not(.neutral) {
  background: transparent;
  color: inherit;
  border: none;
}

/* Auction calendar + county / verified chips */
.calendar-section { margin: 8px 0 16px; }
.calendar-section h2 { margin-top: 8px; }
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px;
}
.cal-card {
  display: block;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  padding: 10px 12px;
  color: inherit;
  text-decoration: none;
}
.cal-card:hover { border-bottom-color: transparent; box-shadow: var(--shadow-sm); color: inherit; }
.cal-soon { border-left-color: var(--error); background: rgba(75,75,75, 0.05); }
.cal-watch { border-left-color: var(--warning); }
.cal-when {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--error);
  font-weight: 600;
  letter-spacing: 0.03em;
}
.cal-title { font-weight: 600; font-size: 14px; margin: 2px 0 4px; }
.cal-meta { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.cal-note { font-size: 12px; color: var(--text); line-height: 1.4; }
.cal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 6px;
}
.cal-passed { border-left-color: #bbbbbb; opacity: 0.82; }
.status-chip, .deadline-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.5;
}
.status-chip.scheduled { background: rgba(83,83,83, 0.10); color: var(--primary); border: 1px solid rgba(83,83,83, 0.28); }
.status-chip.results_pending { background: rgba(125,125,125, 0.14); color: #5e5e5e; border: 1px solid rgba(125,125,125, 0.35); }
.status-chip.passed { background: #eeeeee; color: var(--muted); border: 1px solid var(--border); }
.status-chip.cancelled { background: #eeeeee; color: var(--muted); border: 1px solid var(--border); text-decoration: line-through; }
.deadline-chip { background: rgba(75,75,75, 0.10); color: var(--error); border: 1px solid rgba(75,75,75, 0.28); }

.county-chip, .verified-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.5;
}
.county-chip {
  background: rgba(83,83,83, 0.10);
  color: var(--primary);
  border: 1px solid rgba(83,83,83, 0.28);
}
.verified-chip {
  background: rgba(104,104,104, 0.12);
  color: var(--success);
  border: 1px solid rgba(104,104,104, 0.35);
}

.acres-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(83,83,83, 0.10);
  color: var(--primary);
  border: 1px solid rgba(83,83,83, 0.28);
}
.acres-chip.unknown {
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border-color: var(--border);
}

.tab-nav {
  gap: 6px;
}
.tab-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 600;
  cursor: pointer;
}
.tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
.tab-panel[hidden] { display: none !important; }

.card-row3 { margin-top: 2px; }
.card-why {
  margin-top: 6px;
  font-size: 13px;
  color: var(--primary-hover);
}
.card-section { margin: 12px 0; }
.card-section h4 {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.value-intro { font-size: 16px; max-width: 48rem; }
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
}
.value-card:hover { border-color: var(--primary); }
.value-card-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}
.value-card h3 { margin: 0 0 8px; font-size: 16px; }
.value-verdict { margin: 0 0 8px; font-size: 14px; }
.value-why, .value-risks ul { margin: 6px 0; padding-left: 18px; font-size: 13px; }
.value-counts { margin-bottom: 8px; }

.stale-banner {
  background: rgba(75,75,75, 0.08);
  border: 1px solid rgba(75,75,75, 0.3);
  color: var(--error);
  padding: 10px 12px;
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.news-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.news-item h3 { margin: 4px 0 8px; font-size: 16px; }
.news-when { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--muted); }
.news-tags-inline { display: flex; gap: 6px; flex-wrap: wrap; }
.sources-fold { margin-top: 28px; }
.compact-alerts { margin-top: 32px; }
.value-map-section { margin-top: 28px; }

@media (max-width: 700px) {
  .tab-nav { flex-basis: 100%; }
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 40;
  background: var(--primary);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 6px;
}
.skip-link:focus { top: 8px; }

.page-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 4px 0 12px;
  font-size: 13px;
  font-weight: 600;
}
.page-jump a {
  border-bottom: 1px solid var(--border);
}

.topbar-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.topbar-kpis .tk b { color: var(--text); font-family: "JetBrains Mono", monospace; }

.cal-card { padding: 0; overflow: hidden; }
.cal-jump {
  display: block;
  width: 100%;
  background: none;
  border: 0;
  padding: 10px 12px 6px;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.cal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px 10px;
}
.cal-source { font-size: 12px; font-weight: 600; }

.sale-group { margin-bottom: 18px; }
.sale-group-h {
  position: sticky;
  top: 118px;
  z-index: 3;
  background: var(--bg);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 8px;
  padding: 8px 0 4px;
  border-bottom: 1px solid var(--border);
}

#todayBanner, #calendarSection, #pinStrip, #listingsSection, .card-compact {
  scroll-margin-top: 96px;
}

.today-banner {
  background: linear-gradient(135deg, #151515 0%, #3f3f3f 68%, #5f5f5f 100%);
  color: #ffffff;
  border-radius: 14px;
  margin: 4px 0 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(63,63,63, 0.22);
}
.today-banner[hidden] { display: none !important; }
.today-banner-jump {
  display: block;
  width: 100%;
  background: none;
  border: 0;
  color: inherit;
  text-align: left;
  padding: 16px 18px 8px;
  cursor: pointer;
  font: inherit;
}
.today-kicker {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.82;
}
.today-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 4px 0 6px;
}
.today-meta { font-size: 14px; opacity: 0.94; }
.today-note {
  font-size: 13px;
  line-height: 1.45;
  opacity: 0.82;
  margin-top: 8px;
  max-width: 46rem;
}
.today-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 18px 14px;
}
.today-jump-hint { font-size: 12px; font-weight: 600; opacity: 0.85; }
.today-banner .cal-source {
  color: #ffffff;
  border-bottom-color: rgba(255,255,255, 0.45);
}

.cal-today {
  border-left-color: var(--error);
  background: rgba(63,63,63, 0.06);
  box-shadow: 0 0 0 1px rgba(63,63,63, 0.18);
}
.cal-today .cal-when { color: var(--error); }
.deadline-chip.closed {
  background: #eeeeee;
  color: var(--muted);
  border: 1px solid var(--border);
}
.sale-group-today .sale-group-h {
  color: var(--error);
  border-bottom-color: rgba(63,63,63, 0.28);
}

.mobile-dock { }

@media (max-width: 700px) {
  .tab-nav { display: none; }
  .mobile-dock {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    gap: 8px;
    justify-content: space-around;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--border);
  }
  .mobile-dock .tab-btn { flex: 1; }
  main { padding-bottom: 72px; }
  body { padding-bottom: 0; }
  .sale-group-h { top: 0; }
  .filter-bar { top: 0; }
}

.when-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 16px;
  margin: 8px 0 16px;
}
.when-col h2 { margin: 8px 0 4px; }
.when-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.when-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  padding: 8px 10px;
  min-width: 180px;
  max-width: 280px;
  cursor: pointer;
  color: inherit;
}
.when-chip:hover { box-shadow: var(--shadow-sm); }
.when-chip.today, .when-chip.tomorrow, .when-chip.soon { border-left-color: var(--error); }
.when-chip.watch, .when-chip.later { border-left-color: var(--warning); }
.when-chip-when {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--error);
}
.when-chip-title { font-weight: 600; font-size: 13px; }
.when-chip-meta { font-size: 12px; color: var(--muted); }

.hunt-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 16px;
  align-items: start;
  margin: 12px 0 24px;
}
.hunt-map {
  border-radius: 12px;
  background: #e4e4e4;
}
.hunt-map-col .map-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.hunt-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hunt-list .card-compact { width: 100%; }
.hunt-row {
  display: grid;
  grid-template-columns: 140px 88px 1fr auto;
  gap: 8px;
  align-items: baseline;
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  color: inherit;
}
.hunt-row:hover { border-color: var(--primary); }
.hunt-row.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(78,78,78, 0.22);
}
.hunt-row-when {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
}
.hunt-row-acres { font-size: 12px; color: var(--primary); font-weight: 600; }
.hunt-row-place { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.facts-panel {
  margin-top: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}
.facts-panel[hidden] { display: none !important; }
.facts-kicker {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--error);
}
.facts-panel h3 { margin: 4px 0 8px; font-size: 16px; }
.facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  font-size: 13px;
  margin-bottom: 10px;
}
.facts-grid b { color: var(--muted); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; display: block; }

@media (max-width: 900px) {
  .when-strip, .hunt-workspace { grid-template-columns: 1fr; }
  .hunt-map { height: 280px; }
  .hunt-row { grid-template-columns: 1fr 1fr; }
  .hunt-row-place { grid-column: 1 / -1; white-space: normal; }
  .facts-grid { grid-template-columns: 1fr; }
}
[hidden] { display:none !important; }
button,input,select,textarea { font:inherit; }
button,a,input,select,textarea,summary { -webkit-tap-highlight-color:transparent; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible { outline:3px solid #a2a2a2; outline-offset:3px; }
.container { max-width:1400px; padding-left:32px; padding-right:32px; }
.sr-only { position:absolute; width:1px; height:1px; margin:-1px; clip:rect(0,0,0,0); overflow:hidden; }
.topbar { padding:16px 0 10px; background:#fffffff5; }
.topbar-row { gap:18px; flex-wrap:nowrap; }
.topbar h1 { font-size:18px; letter-spacing:-.035em; }
.topbar-title p { margin:2px 0 0; font-size:11px; }
.topbar-title { }
.tab-nav { gap:3px; margin:0 auto; background:none; }
.tab-btn { background:transparent; border:1px solid transparent; box-shadow:none; padding:8px 11px; border-radius:7px; }
.tab-btn:hover { background:#f3f3f3; }
.tab-btn.active { background:#f0f0f0; border-color:#e7e7e7; color:#494949; box-shadow:none; }
.topbar-kpis { }
.topbar-actions { gap:7px; }
.topbar-clock { display:flex; gap:10px; margin-top:7px; justify-content:space-between; }
.now { font-family:inherit; font-size:11px; color:var(--muted); }
.source-status-wrap p { margin:3px 0 0; font-size:10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
main.container { padding-top:22px; padding-bottom:70px; }
.tab-panel { margin-top:0; }
.workspace-heading { align-items:center; margin:2px 0 18px; }
.workspace-heading h2 { line-height:1.2; letter-spacing:-.045em; margin:5px 0 7px; max-width:850px; font-weight:600; }
.workspace-heading p { }
.workspace-heading .eyebrow,.eyebrow { font-size:10px; letter-spacing:.12em; font-weight:700; color:#6c6c6c; }
.btn-pill,.btn-clear,.btn-simulate,.btn-link { box-shadow:none; border:1px solid var(--border); border-radius:7px; background:#ffffff; color:var(--primary); padding:8px 12px; font-size:12px; cursor:pointer; font-weight:500; }
.btn-pill:hover,.btn-clear:hover,.btn-simulate:hover { background:#f2f2f2; border-color:#c8c8c8; }
.btn-link { border-color:transparent; background:transparent; }
.btn-pill:disabled { opacity:.5; cursor:default; }
.text-button { background:none; border:0; color:var(--primary); cursor:pointer; font:inherit; font-size:12px; padding:2px 0; text-align:left; }
.quickview-row { margin:12px 0; display:flex; gap:7px; overflow-x:auto; padding:0 0 2px; flex-wrap:nowrap; scrollbar-width:thin; }
.qv-btn { white-space:nowrap; border:1px solid var(--border); background:#ffffff; box-shadow:none; border-radius:7px; font-size:12px; padding:8px 11px; color:var(--muted); }
.qv-btn.active { border-color:#cbcbcb; background:#f0f0f0; color:#494949; box-shadow:none; }
.qv-count { margin-left:5px; color:inherit; background:#00000007; border-radius:4px; padding:1px 5px; font-size:10px; }
.today-banner { background:#f0f0f0; border:1px solid #e2e2e2; padding:9px 12px; border-radius:8px; margin:12px 0; box-shadow:none; }
.daily-summary { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:12px; }
.daily-summary strong { font-weight:600; }
.filter-bar { border:1px solid var(--border); padding:12px 14px; margin:0 0 19px; border-radius:9px; position:static; }
.filter-bar-head { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:5px; }
.filter-bar-title { font-size:11px; font-weight:600; color:var(--muted); }
.filter-row { gap:10px; }
.search-wrap { flex:1 1 300px; min-width:200px; }
#search { width:100%; margin:0; min-width:0; }
input[type=search],input[type=number],input[type=email],select,textarea { background:#ffffff; color:var(--text); border:1px solid #dbdbdb; border-radius:6px; padding:9px 10px; min-height:38px; box-shadow:none; }
#sort { max-width:245px; font-size:12px; }
.toggle { font-size:11px; gap:5px; }
.toggle input,input[type=checkbox] { accent-color:var(--primary); }
.research-filters { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; padding:15px 0; }
.research-filters label,.scenario-grid label { display:flex; flex-direction:column; font-size:11px; font-weight:500; color:var(--muted); gap:5px; }
.research-filters input,.research-filters select { width:100%; font-size:12px; }
.adv-filters { border-top:1px solid var(--border); margin-top:10px; }
.research-filter-group { border:0; border-bottom:1px solid var(--border); padding:13px 0; margin:0; min-width:0; }
.research-filter-group legend { float:left; width:100%; font-size:11px; font-weight:650; color:var(--text); margin:0 0 9px; padding:0; }
.research-filter-group .research-filters { padding:0; clear:both; }
.research-filter-group p { margin:9px 0 0; line-height:1.5; font-size:11px; }
.research-filter-group .activity-filters { grid-template-columns:minmax(0,1fr) minmax(0,2fr); align-items:end; }
.research-filter-group .activity-filters p { margin:0; }
.research-filters select { min-width:0; text-overflow:ellipsis; }
.strategy-status { color:#575757; padding:9px 11px; border-left:3px solid #c9c9c9; background:#f3f3f3; line-height:1.5; margin:0 0 13px; }
.property-activity { color:#5a5a5a; font-size:10px; margin:5px 0 8px; }
.chip { font-family:inherit; color:var(--muted); font-size:11px; padding:5px 9px; border-radius:6px; box-shadow:none; }
.chip.active { background:#f0f0f0; color:var(--primary); border-color:#d2d2d2; box-shadow:none; }
.filter-active:empty { display:none; }
.hunt-workspace { display:block; margin-top:0; }
.hunt-map-col { display:none; }
.hunt-workspace.with-map { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(340px,.8fr); gap:22px; align-items:start; }
.with-map .hunt-map-col { display:block; position:sticky; top:132px; padding:14px; border:1px solid var(--border); border-radius:10px; background:#ffffff; }
.hunt-map { height:420px; border:1px solid var(--border); border-radius:6px; }
.map-head h2 { font-size:14px; margin:0 0 10px; }
.map-head { padding:0; }
.results-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.results-heading h2 { font-size:16px; font-weight:600; margin:0; letter-spacing:-.02em; }
#resultsExplanation { margin:6px 0 14px; font-size:11px; }
.hunt-list { display:block; }
.sale-group { margin-bottom:0; }
.sale-group-h { font-size:13px; margin:20px 0 9px; color:var(--muted); }
.property-card { padding:16px 19px 13px; background:#ffffff; border:1px solid var(--border); border-radius:9px; margin-bottom:11px; box-shadow:0 2px 4px #39393903; transition:border-color .15s; scroll-margin-top:150px; }
.property-card:hover { border-color:#c3c3c3; box-shadow:none; }
.property-card.selected { border-color:#a2a2a2; box-shadow:0 0 0 1px #a2a2a2; }
.property-card-top,.property-main,.property-card-bottom { display:flex; align-items:center; justify-content:space-between; gap:15px; }
.property-kind { font-size:10px; letter-spacing:.02em; color:#656565; font-weight:600; }
.property-kind span { color:var(--muted); font-weight:400; }
.shortlist-icon { color:#868686; background:transparent; border:0; cursor:pointer; width:28px; height:28px; font-size:22px; line-height:1; padding:0; }
.shortlist-icon.added { color:#7a7a7a; }
.property-main { align-items:flex-start; gap:22px; margin:3px 0 11px; }
.property-title { min-width:0; text-align:left; padding:0; background:transparent; border:0; color:var(--text); font-weight:600; font-size:19px; line-height:1.3; letter-spacing:-.03em; cursor:pointer; }
.property-title:hover { color:var(--primary); }
.property-title span { display:block; margin-top:3px; color:var(--muted); font-size:12px; font-weight:400; letter-spacing:0; }
.property-price { flex-shrink:0; text-align:right; font-size:11px; color:var(--muted); }
.property-price strong { display:block; color:var(--text); font-weight:600; font-size:17px; letter-spacing:-.02em; }
.property-price span { display:block; margin-top:2px; }
.property-facts { display:flex; flex-wrap:wrap; gap:7px 20px; font-size:12px; color:var(--muted); margin-bottom:9px; }
.area-fact b { color:var(--text); font-weight:600; }
.area-fact.conflict { color:#656565; }
.property-status { display:flex; align-items:center; flex-wrap:wrap; gap:7px 13px; color:var(--muted); font-size:11px; }
.property-status .status { font-size:10px; padding:3px 7px; border:1px solid #e4e4e4; background:#f4f4f4; color:#616161; border-radius:5px; font-weight:500; box-shadow:none; text-transform:none; letter-spacing:0; }
.property-status .status.passed { color:#6e6e6e; background:#f3f3f3; }
.property-status .status.cancelled { background:#f5f5f5; color:#595959; border-color:#dcdcdc; }
.property-status .check-age { margin-left:auto; font-size:10px; }
.property-card-bottom { margin-top:12px; padding-top:10px; border-top:1px solid #f0f0f0; flex-wrap:wrap; gap:8px; }
.property-issue { font-size:11px; color:#6b6b6b; margin:0; }
.property-actions { display:flex; gap:18px; margin-left:auto; align-items:center; }
.compare-label { display:flex; gap:6px; align-items:center; color:var(--muted); font-size:11px; cursor:pointer; }
.compare-label input { width:13px; height:13px; }
.property-actions .text-button { font-size:11px; font-weight:500; }
.pager-wrap { margin:20px 0; }
.compact-alerts,.sources-fold,.coverage-diagnostics { border:1px solid var(--border); border-radius:8px; padding:12px 15px; background:#ffffff; margin:25px 0; }
.compact-alerts summary,.sources-fold summary,.coverage-diagnostics summary { color:var(--muted); font-size:12px; cursor:pointer; }
.empty-state { border:1px dashed #d3d3d3; border-radius:9px; padding:25px; background:#fdfdfd; color:var(--muted); }
.empty-state h3 { color:var(--text); font-size:17px; margin:0 0 7px; font-weight:500; }
.empty-state p { margin:0 0 12px; }
.empty-state button { margin-top:4px; }
.when-strip { display:block; margin:18px 0; padding:15px; background:#ffffff; border:1px solid var(--border); border-radius:9px; }
.when-col { border:0; background:transparent; padding:0; }
.when-col h3 { font-size:15px; margin:0; }
.when-col p { margin:5px 0 10px; }
.when-pipeline { padding-top:12px; border-top:1px solid var(--border); margin-top:15px; }
.when-pipeline summary { font-size:12px; color:var(--muted); cursor:pointer; }
.when-chip { background:#f9f9f9; border-color:var(--border); box-shadow:none; }
.cal-card { background:#ffffff; box-shadow:none; border-color:var(--border); }
.cal-notes { color:var(--muted); font-size:11px; }
.coverage-kpis { display:grid; grid-template-columns:repeat(3,1fr); background:#ffffff; border:1px solid var(--border); border-radius:9px; padding:22px; gap:20px; }
.coverage-kpis>div { display:flex; flex-direction:column; gap:4px; }
.coverage-kpis strong { font-size:27px; font-weight:500; letter-spacing:-.04em; }
.coverage-kpis span { color:var(--muted); font-size:12px; }
.region-grid,.source-registry-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.coverage-card { border:1px solid var(--border); background:#ffffff; padding:17px; border-radius:8px; min-width:0; }
.coverage-card h3 { font-size:14px; font-weight:600; margin:0 0 7px; }
.coverage-card p { overflow-wrap:anywhere; }
.coverage-card dl { margin:12px 0; }
.coverage-card .dossier-fact { padding:7px 0; border:0; }
.coverage-card .dossier-fact dd { font-size:11px; }
.coverage-state { display:inline-block; font-size:10px; padding:3px 7px; border:1px solid #e5e5e5; background:#f4f4f4; border-radius:5px; color:#6c6c6c; }
.coverage-diagnostics li { font-size:11px; white-space:pre-wrap; overflow-wrap:anywhere; margin:7px 0; }
.shortlist-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 15px; }
.shortlist-grid .property-main { display:block; }
.shortlist-grid .property-price { margin-top:10px; text-align:left; }
.shortlist-grid .property-price strong,.shortlist-grid .property-price span { display:inline; margin-right:7px; }
.saved-views { margin:0 0 25px; }
.saved-views h3 { font-size:13px; color:var(--muted); font-weight:500; }
.saved-views>span { display:inline-flex; margin:0 10px 8px 0; gap:6px; }
.shortlist-research { margin:28px 0; padding:20px; border:1px solid var(--border); border-radius:9px; background:#ffffff; }
.shortlist-research-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:16px; }
.shortlist-research-heading h3 { margin:0 0 5px; font-size:17px; font-weight:500; }
.shortlist-research-heading p { margin:0; max-width:760px; }
.shortlist-research-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.shortlist-research-card { min-width:0; padding:15px; border:1px solid var(--border); border-radius:8px; background:#fafafa; }
.shortlist-research-card h4 { margin:0 0 5px; font-size:14px; }
.shortlist-research-card label { display:block; margin-top:12px; font-size:12px; font-weight:500; }
.shortlist-research-card textarea { display:block; box-sizing:border-box; width:100%; margin-top:5px; resize:vertical; min-height:88px; font:inherit; font-size:12px; line-height:1.45; color:var(--text); background:#ffffff; border:1px solid #d3d3d3; border-radius:6px; padding:10px; }
.comparison-tray { position:fixed; left:50%; bottom:22px; transform:translateX(-50%); width:min(1000px,calc(100% - 40px)); padding:13px 20px; background:#3e3e3e; color:#ffffff; border:1px solid #535353; border-radius:10px; box-shadow:0 6px 35px #33333330; z-index:30; display:flex; align-items:center; gap:22px; }
.comparison-tray>div { min-width:0; flex:1; display:flex; flex-direction:column; gap:3px; }
.comparison-tray b { font-size:12px; font-weight:500; }
.comparison-tray span { font-size:10px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; color:#d1d1d1; }
.comparison-tray .text-button { color:#dfdfdf; }
.comparison-tray .btn-pill { white-space:nowrap; }
.table-scroll { overflow-x:auto; max-width:100%; border:1px solid var(--border); border-radius:7px; margin:15px 0; }
.comparison-table,.evidence-table { border-collapse:collapse; width:100%; background:#ffffff; font-size:12px; text-align:left; }
.comparison-table th,.comparison-table td,.evidence-table th,.evidence-table td { border:0; border-bottom:1px solid #e7e7e7; padding:11px 13px; min-width:180px; vertical-align:top; font-weight:400; }
.comparison-table th:first-child { min-width:180px; color:var(--muted); font-size:11px; }
.comparison-table thead th,.evidence-table thead th { background:#f5f5f5; font-weight:500; }
.evidence-table td,.evidence-table th { font-size:11px; overflow-wrap:anywhere; min-width:160px; }
.evidence-table p { margin:6px 0 0; }
.remove-comparison { border:0; color:var(--muted); background:none; margin-left:12px; cursor:pointer; font-size:17px; }
.dossier-dialog { width:min(1120px,95vw); max-height:92vh; padding:0; border:1px solid #d5d5d5; border-radius:12px; background:var(--surface); color:var(--text); box-shadow:0 20px 100px #26262640; overflow:auto; }
.dossier-dialog::backdrop,.sim-modal::backdrop { background:#26262666; backdrop-filter:blur(3px); }
.dossier-dialog-head { display:flex; align-items:center; justify-content:space-between; position:sticky; top:0; z-index:2; padding:12px 26px; background:#fffffff5; border-bottom:1px solid var(--border); }
#dossierBody { padding:0 30px 28px; }
.dossier-header { padding:22px 0 17px; }
.dossier-header h2 { font-size:27px; letter-spacing:-.04em; margin:0 0 7px; line-height:1.25; }
.dossier-header p { margin:0 0 15px; font-size:12px; }
.dossier-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.dossier-nav { display:flex; gap:20px; font-size:12px; padding:0 0 15px; margin-bottom:5px; overflow-x:auto; white-space:nowrap; }
.dossier-section { padding:22px 0; border-top:1px solid var(--border); scroll-margin-top:70px; }
.dossier-section h3 { font-size:17px; font-weight:600; margin:0 0 16px; letter-spacing:-.02em; }
.dossier-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 25px; margin:0; }
.dossier-fact { padding:10px 0; min-width:0; border-bottom:1px solid #f2f2f2; }
.dossier-fact dt { text-transform:none; letter-spacing:0; color:var(--muted); font-size:10px; font-weight:400; margin-bottom:4px; }
.dossier-fact dd { margin:0; font-size:13px; overflow-wrap:anywhere; }
.dossier-fact p { color:var(--muted); font-size:10px; margin:4px 0 0; line-height:1.5; }
.dossier-section details { margin-top:18px; padding:10px 13px; background:#f7f7f7; border:1px solid #eaeaea; border-radius:7px; }
.dossier-section details summary { font-size:12px; cursor:pointer; }
.evidence-list { margin:15px 0 0; padding-left:18px; font-size:12px; }
.evidence-list li { padding:5px 0; overflow-wrap:anywhere; }
.evidence-list p { margin:3px 0 4px; }
.source-links { display:flex; flex-wrap:wrap; gap:9px 18px; padding:10px 0; font-size:12px; }
.rights-fact { background:#f6f6f6; border:1px solid #e5e5e5; border-radius:7px; padding:13px 15px; margin-bottom:10px; }
.rights-fact .field-label { display:block; color:var(--muted); font-size:10px; margin-bottom:4px; }
.rights-fact b { font-size:14px; font-weight:500; }
.rights-fact p { margin:5px 0 0; font-size:11px; }
.title-flags.neutral { display:block; background:#f8f8f8; border:1px solid #e4e4e4; padding:14px; margin-top:15px; box-shadow:none; }
.title-flags .flag-lbl { display:block; font-size:12px; font-weight:600; margin-bottom:8px; }
.title-flag { display:block; background:none; border:0; color:#656565; font-size:11px; line-height:1.65; padding:5px 0; margin:0; }
.research-callout { background:#f6f6f6; border-left:3px solid #c9c9c9; padding:12px 14px; color:#656565; font-size:12px; margin:15px 0; }
.dossier-research-gate { margin-top:20px; padding:16px; border:1px solid #e3e3e3; border-radius:9px; background:#f9f9f9; }
.research-gate-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.research-gate-heading h4 { margin:3px 0 0; font-size:16px; font-weight:600; }
.research-gate-heading .text-button { flex-shrink:0; font-size:11px; }
.research-gate-counts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1px; margin:14px 0; overflow:hidden; border:1px solid #e6e6e6; border-radius:7px; background:#e6e6e6; }
.research-gate-counts div { padding:10px 11px; background:#ffffff; }
.research-gate-counts strong { display:block; font-size:18px; font-weight:600; }
.research-gate-counts span { display:block; margin-top:2px; color:var(--muted); font-size:9px; }
.research-gate-grid { list-style:none; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; margin:0; padding:0; }
.research-gate-grid li { min-width:0; padding:9px 10px; border:1px solid #e6e6e6; border-radius:6px; background:#ffffff; }
.research-gate-grid span,.research-gate-grid b,.research-gate-grid small { display:block; overflow-wrap:anywhere; }
.research-gate-grid span { color:var(--muted); font-size:9px; }
.research-gate-grid b { margin-top:3px; font-size:10px; font-weight:550; }
.research-gate-grid small { margin-top:4px; color:var(--muted); font-size:8px; }
.research-gate-available { border-left:3px solid #919191 !important; }
.research-gate-professional,.research-gate-blocked { border-left:3px solid #929292 !important; }
.research-gate-review { border-left:3px solid #868686 !important; }
#researchNote { resize:vertical; width:100%; }
.app-notice { position:fixed; bottom:90px; left:50%; transform:translateX(-50%); padding:11px 17px; border-radius:8px; background:#383838; color:white; box-shadow:var(--shadow); z-index:1500; max-width:calc(100% - 30px); font-size:12px; }
.sim-modal { width:100%; height:100%; max-width:100%; max-height:100%; border:0; margin:0; padding:0; background:transparent; color:var(--text); }
.sim-modal:not([open]) { display:none; }
.sim-modal[open] { display:flex; align-items:center; justify-content:center; }
.sim-dialog { width:min(820px,94vw); max-height:88vh; padding:0; background:white; border:1px solid var(--border); box-shadow:0 20px 90px #2f2f2f40; }
.sim-overlay { background:transparent; }
#simBody { padding:18px 25px 25px; }
.sim-head { padding:17px 25px; background:#f7f7f7; border-bottom:1px solid var(--border); }
.sim-head h3 { font-size:16px; }
.scenario-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; }
.scenario-grid input { width:100%; }
.scenario-references { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0 18px; margin-bottom:15px; }
.scenario-purchase { display:flex; flex-direction:column; gap:6px; max-width:330px; margin:0 0 18px; color:var(--muted); font-size:11px; font-weight:500; }
.scenario-purchase input { width:100%; }
.scenario-matrix { overflow-x:auto; padding-bottom:4px; }
.scenario-row { display:grid; grid-template-columns:minmax(230px,1.4fr) repeat(3,minmax(130px,1fr)); align-items:center; gap:8px; min-width:690px; padding:6px 0; border-bottom:1px solid #f0f0f0; }
.scenario-row > span { font-size:11px; color:var(--muted); }
.scenario-row-head { position:sticky; top:0; background:white; z-index:1; }
.scenario-row-head b:not(:first-child) { text-align:center; }
.scenario-row input { width:100%; min-width:0; }
.scenario-output { border-top:1px solid var(--border); margin-top:20px; padding-top:12px; }
.scenario-results { display:grid; grid-template-columns:minmax(190px,1.4fr) repeat(3,minmax(110px,1fr)); gap:1px; overflow-x:auto; font-size:12px; }
.scenario-results > * { padding:8px 10px; background:#f8f8f8; min-width:110px; }
.scenario-results > :nth-child(4n+1) { min-width:190px; color:var(--muted); }
.scenario-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:12px; }
.comparison-scenario-actions { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0 8px; }
footer { margin-top:40px; }
.mobile-dock { display:none; }
@media(min-width:1600px) { .container { max-width:1480px; } }
@media(max-width:1150px) {
 .container { padding-left:22px; padding-right:22px; }
 .topbar-row { flex-wrap:wrap; gap:10px; }
 .topbar-title { flex:1; }
 .tab-nav { order:3; flex:1 0 100%; justify-content:flex-start; }
 .topbar-clock,.source-status-wrap { display:none; }
 .hunt-workspace.with-map { grid-template-columns:minmax(0,1fr) minmax(310px,.8fr); }
 .with-map .property-main { display:block; }
 .with-map .property-price { text-align:left; margin-top:7px; }
 .with-map .property-price strong,.with-map .property-price span { display:inline; margin-right:7px; }
 .region-grid,.source-registry-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:760px) {
 html { scroll-padding-top:90px; }
 .container { padding-left:15px; padding-right:15px; }
 .topbar { padding:12px 0; position:sticky; }
 .topbar h1 { font-size:16px; }
 .topbar-title p { font-size:9px; }
 .topbar-title { }
 .topbar-actions #topbarWatchBtn { display:none; }
 .topbar-actions .btn-pill { font-size:10px; padding:6px 9px; }
 .tab-nav { display:none; }
 main.container { padding-top:17px; padding-bottom:115px; }
 .workspace-heading { margin:0 0 14px; align-items:flex-start; gap:12px; }
 .workspace-heading h2 { font-size:24px; max-width:460px; }
 .workspace-heading p.muted { font-size:11px; }
 .workspace-heading .eyebrow { font-size:8px; }
 #savedSearchBtn { font-size:10px; padding:7px 8px; white-space:nowrap; }
 .quickview-row { margin:11px 0; gap:6px; }
 .qv-btn { padding:7px 9px; font-size:11px; }
 .daily-summary { align-items:flex-start; flex-direction:column; gap:5px; font-size:10px; }
 .today-banner { padding:8px 10px; }
 .filter-bar { padding:9px 10px; margin-bottom:14px; }
 .filter-bar-head { margin-bottom:3px; }
 .filter-row { gap:8px; }
 .search-wrap { flex:1 0 100%; }
 input[type=search] { min-height:40px; font-size:13px; }
 #sort { max-width:none; flex:1; font-size:10px; width:140px; }
 .filter-row .toggle { font-size:10px; }
 .filter-row .toggle:has(#showMLS) { display:none; }
 .btn-clear { padding:7px 8px; font-size:10px; }
 .research-filters { grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
 .sim-dialog { width:96vw; max-height:92vh; }
 #simBody { padding:15px; }
 .scenario-references { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .scenario-row { grid-template-columns:minmax(210px,1.4fr) repeat(3,minmax(120px,1fr)); }
 .scenario-results { grid-template-columns:minmax(210px,1.4fr) repeat(3,minmax(110px,1fr)); }
 .research-filters label { font-size:10px; }
 .research-filters input,.research-filters select { font-size:10px; padding:8px; }
 .research-filter-group .activity-filters { grid-template-columns:minmax(0,1fr); }
 .research-filter-group p { font-size:10px; }
 .strategy-status { font-size:10px; }
 .hunt-workspace.with-map { display:flex; flex-direction:column; }
 .hunt-list-col,.with-map .hunt-map-col { width:100%; min-width:0; }
 .with-map .hunt-map-col { position:static; }
 .hunt-map { height:360px; }
 .results-heading h2 { font-size:14px; }
 .results-heading .btn-pill { font-size:10px; padding:6px 8px; }
 #resultsExplanation { font-size:10px; margin-bottom:12px; }
 .property-card { padding:12px 13px 11px; border-radius:8px; margin-bottom:10px; }
 .property-kind { font-size:9px; }
 .property-kind span { font-size:9px; }
 .property-main { gap:10px; margin:4px 0 10px; }
 .property-title { font-size:17px; }
 .property-title span { font-size:10px; margin-top:4px; }
 .property-price strong { font-size:14px; }
 .property-price span { font-size:9px; }
 .property-price { max-width:125px; }
 .property-facts { font-size:10px; gap:6px 14px; }
 .property-status { gap:6px 8px; font-size:10px; }
 .property-status .check-age { margin-left:0; width:100%; font-size:9px; }
 .property-card-bottom { margin-top:8px; padding-top:8px; gap:7px; }
 .property-issue { font-size:10px; }
 .property-actions { width:100%; margin-left:0; justify-content:space-between; }
 .compare-label,.property-actions .text-button { font-size:10px; }
 .shortlist-grid,.shortlist-research-grid { grid-template-columns:1fr; }
 .shortlist-research { padding:15px; }
 .shortlist-research-heading { display:block; }
 .shortlist-research-heading .btn-pill { margin-top:12px; min-height:44px; }
 .coverage-kpis { padding:15px; gap:10px; }
 .coverage-kpis strong { font-size:22px; }
 .coverage-kpis span { font-size:9px; }
 .region-grid,.source-registry-grid { grid-template-columns:1fr; }
 .coverage-card { padding:14px; }
 .comparison-tray { bottom:72px; padding:11px 13px; gap:10px; width:calc(100% - 24px); }
 .comparison-tray b { font-size:10px; }
 .comparison-tray span { display:none; }
 .comparison-tray .btn-pill { padding:7px 8px; font-size:10px; }
 .comparison-tray .text-button { font-size:10px; }
 .mobile-dock { display:flex; position:fixed; z-index:40; bottom:0; left:0; right:0; background:#fffffff5; backdrop-filter:blur(12px); border-top:1px solid var(--border); padding:9px 8px max(12px,env(safe-area-inset-bottom)); gap:1px; justify-content:space-around; }
 .mobile-dock .tab-btn { font-size:10px; padding:8px 6px; border-radius:6px; flex:1; }
 .dossier-dialog { width:100vw; max-width:100vw; height:100dvh; max-height:100dvh; margin:0; border-radius:0; border:0; }
 .dossier-dialog-head { padding:11px 15px; }
 #dossierBody { padding:0 16px 30px; }
 .dossier-header { padding:20px 0 15px; }
 .dossier-header h2 { font-size:23px; }
 .dossier-header p { font-size:11px; }
 .dossier-actions .btn-pill { font-size:10px; padding:7px 9px; }
 .dossier-nav { gap:17px; font-size:11px; }
 .dossier-facts { grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 17px; }
 .dossier-fact dd { font-size:12px; }
 .dossier-section { padding:19px 0; }
 .dossier-section h3 { font-size:16px; }
 .research-gate-counts { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .research-gate-grid { grid-template-columns:1fr; }
 .scenario-grid { gap:12px; }
 .sim-dialog { max-height:94dvh; }
 #simBody { padding:14px 17px 20px; }
 .sim-head { padding:14px 17px; }
 .sim-head h3 { font-size:14px; }
 .app-notice { bottom:140px; width:max-content; max-width:calc(100% - 30px); }
}
@media(prefers-reduced-motion:reduce) { * { scroll-behavior:auto !important; transition:none !important; animation:none !important; } }
.correction-draft form>label { display:flex; flex-direction:column; gap:6px; color:var(--muted); font-size:11px; margin:12px 0; }
.correction-draft input,.correction-draft select,.correction-draft textarea { width:100%; border:1px solid var(--border); border-radius:6px; padding:9px; min-height:38px; }
.correction-draft .text-button { margin-left:12px; }
.local-draft-summary { margin:25px 0; padding:17px; background:#ffffff; border:1px solid var(--border); border-radius:8px; }
.local-draft-summary h3 { margin:0; font-size:14px; font-weight:500; }
.upgrade-task-list { list-style:none; padding:0; margin:15px 0 0; }
.upgrade-task-list li { border-top:1px solid var(--border); padding:10px 0; display:flex; flex-wrap:wrap; justify-content:space-between; gap:5px 20px; font-size:12px; }
.upgrade-task-list b { font-size:10px; color:var(--muted); font-weight:500; }
.upgrade-task-list p { width:100%; font-size:11px; color:#656565; margin:0; }
.packet-observation { padding:10px 0; border-bottom:1px solid var(--border); }
.packet-observation b { font-size:12px; font-weight:500; }
.packet-observation p { margin:4px 0; }
.dossier-section h4 { margin:20px 0 8px; font-size:14px; font-weight:500; }
.price-per-acre { font-size:10px; color:#7d7d7d; }
.property-research-queue { margin:22px 0; }
.property-queue-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.property-queue-card h3 { line-height:1.45; }
.property-queue-actions { padding-left:17px; margin:15px 0 0; }
.property-queue-actions li { font-size:11px; color:var(--muted); border-top:1px solid #ececec; padding:10px 0; }
.property-queue-actions li b { font-size:11px; font-weight:500; color:var(--text); }
.property-queue-actions p { margin:5px 0; }
.property-queue-actions .source-links { gap:7px 12px; padding:2px 0; font-size:10px; }
.queue-check-date { font-size:9px; overflow-wrap:anywhere; }
.queue-failures { padding-top:10px; border-top:1px solid var(--border); }
.queue-failures summary { font-size:11px; color:#656565; cursor:pointer; }
.queue-failure { padding:9px 0; font-size:10px; overflow-wrap:anywhere; }
.queue-failure p { margin:3px 0; }
@media(max-width:1100px) { .property-queue-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:760px) { .property-queue-grid { grid-template-columns:1fr; } }
.official-parcel-observation { padding:5px 0 15px; }
.regional-parcel-research>details,.official-parcel-observation details { margin:13px 0; }
.parcel-conflict { padding:12px 0; border-bottom:1px solid #e7e7e7; font-size:11px; color:#676767; }
.parcel-conflict p { margin:6px 0; }
.dossier-conflict { margin-top:18px; padding:14px; border:1px solid #d7d7d7; border-radius:8px; background:#f8f8f8; }
.dossier-conflict h4 { margin:0 0 10px; }
.conflict-compare { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:10px 0; }
.conflict-card { min-width:0; padding:11px 12px; border:1px solid #dcdcdc; border-radius:7px; background:#ffffff; color:var(--text); }
.conflict-card span { display:block; color:var(--muted); font-size:10px; margin-bottom:5px; overflow-wrap:anywhere; }
.conflict-card strong { display:block; font-size:14px; font-weight:550; overflow-wrap:anywhere; }
.conflict-card p { margin:6px 0; color:var(--muted); font-size:10px; line-height:1.45; }
.conflict-card a { font-size:10px; overflow-wrap:anywhere; }
.dossier-history { list-style:none; margin:12px 0 0; padding:0; }
.dossier-history li { padding:12px 0; border-bottom:1px solid var(--border); font-size:11px; }
.history-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.history-heading b { font-weight:550; }
.history-heading time { flex-shrink:0; color:var(--muted); font-size:10px; }
.dossier-history p { margin:5px 0; color:var(--muted); line-height:1.5; overflow-wrap:anywhere; }
.dossier-history a { font-size:10px; overflow-wrap:anywhere; }
@media(max-width:560px) { .conflict-compare { grid-template-columns:1fr; } .history-heading { display:block; } .history-heading time { display:block; margin-top:3px; } }
.exact-parcel-id { white-space:pre-wrap; font-family:ui-monospace,monospace; overflow-wrap:anywhere; }
#todayBanner,.change-strip,.change-strip>span { color:var(--text); }
.change-feed-filters { display:flex; flex-wrap:wrap; gap:7px; margin:15px 0; }
.change-feed-scope { max-width:1000px; font-size:12px; margin:12px 0 20px; }
.change-event { background:#ffffff; border:1px solid var(--border); border-radius:9px; padding:17px 20px; margin-bottom:11px; }
.change-event-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.change-event-kind { display:block; font-size:10px; font-weight:500; color:#747474; margin-bottom:4px; }
.change-event h3 { margin:0; font-size:17px; font-weight:500; line-height:1.4; letter-spacing:-.02em; }
.change-event time { color:var(--muted); font-size:10px; flex-shrink:0; }
.change-before-after { margin:12px 0 8px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-size:12px; overflow-wrap:anywhere; }
.change-before-after strong { font-weight:500; }
.change-field-label { color:var(--muted); font-size:10px; padding-right:5px; }
.change-arrow { color:#949494; }
.change-event-dates { display:flex; flex-wrap:wrap; gap:5px 17px; color:var(--muted); font-size:10px; margin-top:10px; }
.change-event-note { color:var(--muted); font-size:11px; line-height:1.6; margin:10px 0 3px; }
.change-event .source-links { font-size:11px; padding:7px 0 0; }
.change-note { margin:10px 0 3px; color:var(--muted); font-size:11px; }
.change-note summary { cursor:pointer; }
.change-note p { line-height:1.65; }
@media(max-width:760px) {
 .change-feed-filters { flex-wrap:nowrap; overflow-x:auto; padding-bottom:5px; margin:12px 0; }
 .change-feed-filters .qv-btn { flex-shrink:0; }
 .change-event { padding:14px; }
 .change-event-heading { gap:10px; }
 .change-event-kind { font-size:9px; }
 .change-event h3 { font-size:15px; }
 .change-event time { font-size:9px; }
 .change-before-after { font-size:11px; gap:8px; }
 .change-feed-scope { font-size:10px; }
 .mobile-dock .tab-btn { min-width:0; padding-left:4px; padding-right:4px; }
}
.transfer-evidence { margin-top:12px !important; padding:10px !important; background:#f7f7f7 !important; }
.transfer-evidence>summary { color:#6e6e6e; font-weight:500; font-size:11px; line-height:1.5; }
.transfer-confidence { font-size:10px; color:#6b6b6b; margin:10px 0 !important; }
.transfer-facts { margin:0; }
.transfer-fact { padding:8px 0; border-top:1px solid #e8e8e8; }
.transfer-fact dt { font-size:10px; color:var(--muted); font-weight:400; }
.transfer-fact dd { margin:3px 0 0; color:var(--text); font-size:11px; white-space:pre-wrap; overflow-wrap:anywhere; }
.transfer-fact p { color:var(--muted); font-size:9px; margin:4px 0 0 !important; }
.transfer-source-link { padding:4px 0 8px; font-size:10px; }
.transfer-finding,.transfer-questions { font-size:10px; line-height:1.65; }
.transfer-coverage-gap { background:#f5f5f5; border-left:2px solid #c1c1c1; padding:10px; margin:12px 0; font-size:10px; }
.transfer-sources { padding:8px !important; }
.transfer-source-observation { padding:9px 0; border-top:1px solid var(--border); font-size:9px; }
.transfer-source-observation p { margin:4px 0 !important; }
.comparable-use { margin:0 0 12px; padding:10px; border-left:3px solid #8e8e8e; background:#f7f7f7; font-size:10px; line-height:1.55; }
.comparable-use-directional-context-only { border-left-color:#8e8e8e; }
.comparable-use-excluded-from-valuation { border-left-color:#6a6a6a; background:#f4f4f4; }
.comparable-use-quantitative-adjustment-ready { border-left-color:#727272; background:#f5f5f5; }
.comparable-use p { margin:5px 0 !important; }
.comparable-use details { margin-top:7px; }
.comparable-use ul { margin:6px 0 0; padding-left:18px; }
.surface-overlay-research { border-top:1px solid var(--border); padding-top:10px; margin-top:20px; }
.surface-source-history { margin-top:15px; }
.surface-source-check { padding:12px 0; border-top:1px solid #e4e4e4; }
.surface-source-check h5 { font-size:12px; font-weight:500; margin:0 0 7px; }
.surface-source-check p { font-size:11px; margin:7px 0; overflow-wrap:anywhere; }
.surface-source-check .dossier-fact dd { font-size:10px; }

/* A private research plan never looks like a completed refresh. */
.research-checklist-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:15px; }
.research-checklist-heading h4 { margin:0 0 5px; }
.research-checklist-heading p { margin:0; max-width:550px; }
.research-checklist-heading button { flex-shrink:0; }
.private-research-checklist { margin-top:12px; }
@media (max-width:600px) { .research-checklist-heading { flex-direction:column; gap:10px; } }
/* Official county sample explorer */
.county-research-explorer{margin:24px 0;padding:22px;background:var(--panel,#ffffff);border:1px solid #dbdbdb;border-radius:12px;min-width:0}
.county-sample-controls{display:flex;gap:16px;flex-wrap:wrap;margin:18px 0}.county-sample-controls label{display:grid;gap:6px;font-size:12px;font-weight:600;flex:1;min-width:180px}.county-sample-controls input,.county-sample-controls select{width:100%;padding:10px;border:1px solid #c8c8c8;border-radius:6px;background:white;color:#313131;font:inherit}
.county-sample-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(290px,100%),1fr));gap:14px}.county-sample-card{border:1px solid #dfdfdf;border-radius:8px;padding:16px;min-width:0}.county-sample-card h3{margin:0 0 12px;font-size:16px}.county-sample-card dl{display:grid;gap:7px;font-size:12px}.county-sample-card dl div{display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,1fr);gap:10px}.county-sample-card dt{color:#6d6d6d}.county-sample-card dd{margin:0;overflow-wrap:anywhere}.county-sample-card summary,.county-research-gaps summary{cursor:pointer;font-size:12px;font-weight:600}.county-sample-card details{margin-top:12px}.county-sample-card a,.county-research-gaps a{font-size:12px}.county-research-gaps{margin-top:20px}.county-research-gaps article{padding:12px 0;border-bottom:1px solid #e6e6e6}.county-research-gaps h3{font-size:14px}.county-sample-card p{overflow-wrap:anywhere}
@media(max-width:600px){.county-research-explorer{padding:14px}.county-sample-controls{gap:10px}.county-sample-controls label{min-width:100%}.county-sample-card{padding:12px}}

/* Market focus is a product boundary, independent of optional property filters. */
.market-scope-bar{gap:12px;padding-top:8px;padding-bottom:8px;border-top:1px solid var(--line,#dfdfdf)}
.market-scope-actions{align-items:center;gap:8px;flex-shrink:0}.market-scope-bar p{max-width:660px}
.market-scope-btn{border:1px solid #d4d4d4;border-radius:7px;padding:8px 11px;background:white;font:inherit;font-size:12px;cursor:pointer;color:#535353;white-space:nowrap}.market-scope-btn.active{background:#eeeeee;border-color:#b5b5b5;color:#353535;font-weight:650}.market-scope-side{border-color:transparent;background:transparent;color:#757575}
.ny-focus-card{margin:9px 0;padding:10px 12px;border-left:3px solid #9d9d9d;background:#f6f6f6;border-radius:4px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.ny-focus-card strong{font-size:11px;letter-spacing:.02em}.ny-focus-card p{margin:3px 0}.ny-focus-card .small{font-size:11px}
.ny-focus-dossier{padding:18px 0;border-bottom:1px solid var(--line,#dfdfdf);line-height:1.65;overflow-wrap:anywhere}.ny-focus-dossier h4{margin:18px 0 6px}.ny-interest-evidence,.ny-property-project{padding:12px;background:#f7f7f7;margin:10px 0;border-radius:7px;min-width:0}
.ny-project-theses{margin:25px 0 30px;line-height:1.6}.ny-project-grid,.ny-candidate-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:16px;min-width:0}.ny-project-thesis,.ny-candidate-card{padding:20px;border:1px solid #dcdcdc;border-radius:10px;background:#ffffff;min-width:0;overflow-wrap:anywhere}.ny-project-thesis h3,.ny-candidate-card h3{font-size:18px;margin:0 0 10px}.ny-project-thesis h4{font-size:13px;margin:18px 0 6px}.ny-project-thesis p,.ny-project-thesis li,.ny-candidate-card p,.ny-candidate-card li{font-size:12px}.ny-project-thesis summary,.ny-candidate-card summary{cursor:pointer;font-size:12px;font-weight:600}.ny-project-thesis details,.ny-candidate-card details{margin-top:12px}
.ny-candidate-card .dossier-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.ny-candidate-card .dossier-facts>div{min-width:0}.ny-candidate-card dt{font-size:11px;color:var(--muted);margin-bottom:4px}.ny-candidate-card dd{margin:0;font-size:18px;font-weight:600;white-space:nowrap}.ny-candidate-card h4{font-size:14px;line-height:1.5;margin:10px 0}
#nyCandidateReview{margin:5px 0 24px}#nyCandidateReview>section{min-width:0}#nyCandidateReview h2{font-size:20px}.ny-candidate-card .ny-candidate-price{font-size:18px;font-weight:650;color:#3d3d3d}.ny-candidate-status{display:inline-block;font-size:11px;border:1px solid #dddddd;background:#f4f4f4;border-radius:5px;padding:4px 7px;margin-bottom:8px}
@media(max-width:600px){.ny-project-thesis,.ny-candidate-card{padding:14px}.ny-focus-card{padding:8px 10px}.ny-focus-dossier{padding:14px 0}.ny-project-grid,.ny-candidate-grid{gap:10px}.ny-project-theses{margin:20px 0}}
.focus-lens-note{margin:5px 0 12px;max-width:900px;font-size:11px;line-height:1.5}.ny-thesis-tags{display:flex;flex-wrap:wrap;gap:5px;margin:5px 0}.ny-thesis-tags span{font-size:10px;background:#f1f1f1;border:1px solid #e1e1e1;padding:3px 5px;border-radius:4px;color:#595959}
@media(max-width:600px){.market-scope-bar{align-items:flex-start;gap:7px;flex-direction:column;padding-top:7px;padding-bottom:7px}.market-scope-bar p{font-size:10px;line-height:1.4}.market-scope-btn{font-size:11px;padding:7px 9px}.focus-lens-note{font-size:10px;line-height:1.4;margin-bottom:9px}}

/* Keep expanded research cards independent; comparison scroll stays contained. */
.ny-candidate-grid{align-items:start}.ny-lead-workspace{min-width:0}.ny-lead-controls{display:flex;gap:12px;flex-wrap:wrap;align-items:end;margin:16px 0}.ny-lead-controls label{display:grid;gap:6px;font-size:12px;font-weight:600}.ny-lead-controls select{max-width:100%;padding:9px;border:1px solid #c7c7c7;border-radius:6px;background:#ffffff}.ny-lead-select{display:flex;align-items:center;gap:7px;font-size:12px;margin-bottom:12px}.ny-lead-select input{min-width:18px;min-height:18px}.ny-lead-comparison-panel{margin:15px 0 20px;padding:14px;border:1px solid #dcdcdc;border-radius:8px;background:#f9f9f9;min-width:0}.ny-lead-comparison-panel summary{cursor:pointer;font-weight:600}.ny-lead-comparison-scroll{overflow-x:auto;max-width:100%;border:1px solid #dcdcdc;background:#ffffff}.ny-lead-comparison{border-collapse:collapse;min-width:700px;width:100%;font-size:12px}.ny-lead-comparison caption{text-align:left;padding:12px;font-weight:600}.ny-lead-comparison th,.ny-lead-comparison td{text-align:left;vertical-align:top;padding:12px;border-bottom:1px solid #e4e4e4;min-width:165px;max-width:280px;overflow-wrap:anywhere}.ny-lead-comparison th{background:#f3f3f3}.ny-lead-comparison th[scope=row]{min-width:135px}.ny-lead-comparison-panel:focus-within{outline-color:#5f5f5f}@media(max-width:600px){.ny-lead-controls{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}.ny-lead-controls label,.ny-lead-controls select{width:100%}.ny-lead-comparison-panel{padding:10px}.ny-lead-comparison-scroll:focus-visible{outline:2px solid #5f5f5f;outline-offset:2px}}

.ny-lead-controls button,.ny-lead-search button{padding:9px 13px;min-height:38px;border:1px solid #c7c7c7;border-radius:6px;background:#ffffff;color:#3d3d3d;cursor:pointer}.ny-lead-controls button:disabled{opacity:.5;cursor:default}

.ny-lead-notebook{border-top:1px solid #dcdcdc;padding-top:12px}.ny-lead-notebook label{display:block;font-size:12px;font-weight:600;margin:12px 0}.ny-lead-notebook textarea{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;resize:vertical;margin-top:6px;font-weight:400}.ny-lead-notebook button{padding:9px 12px;border:1px solid #c7c7c7;border-radius:6px;background:#ffffff;color:#3d3d3d;cursor:pointer;max-width:100%}

/* Public reviewed-lead discovery stays separate from retained inventory filters. */
.ny-lead-search{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin:12px 0 6px}.ny-lead-search label{display:grid;gap:5px;flex:1 1 260px;min-width:0}.ny-lead-search input{width:100%;box-sizing:border-box;min-width:0;padding:10px;border:1px solid var(--line,#d3d3d3);border-radius:7px;background:var(--card,#ffffff);color:inherit}.ny-lead-search button{min-height:40px}

.ny-lead-search label{font-size:12px;font-weight:600}.ny-lead-search button[type=submit]{background:#454545;color:#ffffff;border-color:#454545}.ny-lead-search button:focus-visible{outline:2px solid #5f5f5f;outline-offset:2px}
.ny-lead-status-switch{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.ny-lead-status-switch button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:8px 13px;border:1px solid #c7c7c7;border-radius:7px;background:#ffffff;color:#3d3d3d;cursor:pointer;font:inherit;font-size:12px}.ny-lead-status-switch button[aria-pressed=true]{background:#454545;border-color:#454545}.ny-lead-status-switch span{font-variant-numeric:tabular-nums;font-weight:700}.ny-lead-status-switch button:focus-visible,.ny-lead-tools summary:focus-visible,.ny-lead-search-help summary:focus-visible{outline:2px solid #5f5f5f;outline-offset:2px}.ny-lead-count-scope{margin:7px 0!important}.ny-lead-search-help summary{cursor:pointer;font-size:12px;color:#5a5a5a}.ny-lead-search-help p{max-width:70ch}.ny-lead-tools{display:flex;align-items:start;gap:12px;margin:10px 0}.ny-lead-filter-panel{flex:1;min-width:0;border:1px solid #dcdcdc;border-radius:7px;padding:10px 12px;background:#ffffff}.ny-lead-filter-panel summary{cursor:pointer;font-size:12px;font-weight:600}.ny-lead-filter-panel .ny-lead-controls{margin-bottom:0}.ny-lead-tools>[data-ny-lead-clear]{padding:10px 12px;min-height:40px;border:1px solid #c7c7c7;border-radius:7px;background:#ffffff;color:#3d3d3d;cursor:pointer}.ny-lead-tools>[data-ny-lead-clear]:disabled{opacity:.5;cursor:default}@media(max-width:600px){.ny-lead-status-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.ny-lead-tools{gap:8px}.ny-lead-tools>[data-ny-lead-clear]{font-size:12px;max-width:40%}.ny-lead-filter-panel{padding:11px 10px}.ny-lead-filter-panel .ny-lead-controls{margin-top:12px}}

/* A single selected lead needs no sideways comparison; retain native table semantics. */
@media(max-width:800px){
 .ny-lead-comparison[data-lead-count="1"]{min-width:0;table-layout:fixed;width:100%}
 .ny-lead-comparison[data-lead-count="1"] th,.ny-lead-comparison[data-lead-count="1"] td{min-width:0;max-width:none;padding:10px;white-space:normal;overflow-wrap:anywhere}
 .ny-lead-comparison[data-lead-count="1"] thead th:first-child,.ny-lead-comparison[data-lead-count="1"] th[scope="row"]{width:32%}
}

/* Retained inventory stays discoverable above selected lead reviews. */
.inventory-visibility{padding:16px;border:1px solid var(--border,#d3d3d3);border-radius:12px;margin:12px 0;background:var(--surface,#ffffff)}
.inventory-visibility p{margin:6px 0 12px;max-width:85ch}
.inventory-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
#listingsSection,#passedSection{scroll-margin-top:20px}
/* Property imagery stays alongside the evidence it illustrates. */
.property-visuals{margin:12px 0;min-width:0}
.property-visual-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:10px}
.property-visual-grid figure{margin:0;min-width:0;background:#f3f3f3;border:1px solid #dfdfdf;border-radius:9px;overflow:hidden}
.property-visual-grid img{display:block;width:100%;height:190px;object-fit:cover}
.property-visual-grid .broker-map-preview img{object-fit:contain;background:#eaeaea}
.property-visual-grid figcaption{padding:8px 10px;font-size:12px;line-height:1.45;color:#4b4b4b}
.property-visual-grid figcaption small{display:block;font-size:10px;margin-top:4px;color:#676767}
.aerial-preview{position:relative;display:block;width:100%;padding:0;border:0;cursor:pointer;background:#e5e5e5;aspect-ratio:16/9;overflow:hidden}
.property-visual-grid .aerial-preview img{width:100%;height:100%;object-fit:fill}
.aerial-preview svg{position:absolute;inset:0;width:100%;height:100%;fill:#e1e1e122;stroke:#e1e1e1;stroke-width:3;vector-effect:non-scaling-stroke}
.aerial-preview svg .official-candidate{fill:#a6a6a618;stroke:#a6a6a6;stroke-width:2}
.aerial-preview svg .provider-outline{fill:#adadad0d;stroke:#adadad;stroke-width:3;stroke-dasharray:8 7}
.map-evidence-legend b:first-child{color:#5f5f5f}.map-evidence-legend b:last-child{color:#5e5e5e}
.aerial-preview span{position:absolute;right:8px;bottom:8px;background:#333333;color:#ffffff;padding:5px 8px;border-radius:5px;font-size:12px}
.broker-map-document{display:grid;place-content:center;min-height:115px;padding:16px;background:#ebebeb;font-weight:700}
.visual-missing{font-size:12px;color:#636363;margin:6px 0}
.visual-load-failed::before{content:'Image unavailable — open the source link below';display:block;padding:18px;font-size:12px}
.property-map-dialog{width:min(960px,94vw);max-width:94vw;padding:18px;border:1px solid #cdcdcd;border-radius:14px;max-height:90vh;overflow:auto;box-sizing:border-box}
.property-map-dialog::backdrop{background:#202020d0}
.property-map-dialog form{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.property-map-dialog h2{margin:0;font-size:20px;overflow-wrap:anywhere}
.property-map-dialog form button{flex-shrink:0}
.property-detail-map{height:min(56vh,520px);min-height:260px;width:100%;border-radius:8px}
@media(max-width:500px){.property-visual-grid{grid-template-columns:1fr}.property-map-dialog{padding:12px}.property-map-dialog h2{font-size:16px}.property-visual-grid img{height:180px}}
