.topbar {
  align-items: center;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  height: 56px;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  align-items: center;
  color: var(--text-primary);
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  display: flex;
  height: 22px;
  justify-content: center;
  overflow: hidden;
  width: 22px;
}

.brand-mark img {
  display: block;
  height: 18px;
  width: 18px;
}

.brand-sep {
  background: var(--border-subtle);
  height: 18px;
  margin: 0 14px;
  width: 1px;
}

.brand-sub {
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 500;
}

.preset-tabs {
  display: flex;
  gap: 2px;
  margin-left: 24px;
}

.preset-tab {
  align-items: center;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  display: inline-flex;
  font-size: 13px;
  font-weight: 500;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
}

.preset-tab:hover {
  background: var(--bg-secondary);
}

.preset-tab.active {
  background: var(--accent-bg);
  color: var(--accent);
  font-weight: 600;
}

.preset-tab .kbd {
  background: var(--bg-tertiary);
  border-radius: 3px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  padding: 1px 4px;
}

.preset-index {
  align-items: baseline;
  border-left: 1px solid var(--border-subtle);
  color: var(--text-tertiary);
  display: flex;
  gap: 8px;
  margin-left: 14px;
  padding-left: 14px;
  white-space: nowrap;
}

.preset-index strong {
  color: var(--text-secondary);
  font-size: 12px;
}

.preset-index span {
  font-size: 11px;
}

.topbar-spacer {
  flex: 1;
}

.proto-nav {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  height: 32px;
  overflow: hidden;
}

.proto-nav a {
  align-items: center;
  border-right: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  font-size: 12px;
  font-weight: 500;
  gap: 6px;
  padding: 0 12px;
  text-decoration: none;
}

.proto-nav a:last-child {
  border-right: 0;
}

.proto-nav a.active,
.proto-nav a:hover {
  background: var(--text-primary);
  color: #fff;
}

.proto-nav .num {
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.6;
}

.nav-icon {
  display: none;
}

.nav-label {
  display: inline;
}

.filter-strip {
  align-items: center;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  gap: 20px;
  height: 56px;
  padding: 0 20px;
}

.filter-group {
  align-items: center;
  display: flex;
  gap: 10px;
}

.filter-label {
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.filter-value {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.filter-divider {
  background: var(--border-subtle);
  height: 24px;
  width: 1px;
}

.filter-slider {
  accent-color: var(--accent);
  height: 24px;
  width: 160px;
}

.filter-slider.short {
  width: 120px;
}

.filter-number {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  height: 30px;
  padding: 0 8px;
  width: 74px;
}

.result-count {
  color: var(--text-secondary);
  font-size: 12px;
  margin-left: auto;
}

.result-count strong {
  color: var(--text-primary);
}

.filter-reset {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  flex: 0 0 auto;
  font-size: 12px;
  height: 30px;
  padding: 0 10px;
}

.filter-reset:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.filter-check {
  align-items: center;
  color: var(--text-secondary);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  gap: 7px;
  white-space: nowrap;
}

.filter-check input {
  accent-color: var(--accent);
  height: 14px;
  width: 14px;
}

.filter-slider:disabled {
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: 0.36;
}

.app {
  display: flex;
  height: calc(100dvh - 112px);
  min-height: 680px;
  overflow: hidden;
}

.map-pane {
  background: var(--map-base);
  flex: 1;
  overflow: hidden;
  position: relative;
}

.naver-map,
.map-svg {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.naver-map {
  background: var(--map-base);
  height: 100% !important;
  inset: 0 !important;
  min-height: 100% !important;
  overflow: hidden !important;
  position: absolute !important;
  width: 100% !important;
}

.map-svg.hidden,
.naver-map.hidden {
  display: none;
}

.naver-map .apt-pin {
  align-items: center;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18), 0 0 0 1.5px #fff;
  color: #fff;
  cursor: pointer;
  display: flex;
  font: 600 12px/1 var(--font-mono);
  height: 30px;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  width: 30px;
}

.naver-map .apt-pin .core {
  align-items: center;
  border-radius: 999px;
  color: #fff;
  display: flex;
  font: 700 11px/1 var(--font-mono);
  height: 22px;
  justify-content: center;
  width: 22px;
}

.naver-map .apt-pin.lg {
  height: 36px;
  width: 36px;
}

.naver-map .apt-pin.lg .core {
  font-size: 12px;
  height: 28px;
  width: 28px;
}

.naver-map .apt-pin:hover,
.naver-map .apt-pin.is-active {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22), 0 0 0 2px var(--accent);
  transform: translateY(-1px);
}

.naver-map .hotspot-pin {
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  color: var(--text-secondary);
  display: flex;
  font: 500 11px/1 var(--font-sans);
  gap: 6px;
  padding: 4px 10px 4px 8px;
  pointer-events: none;
}

.naver-map .hotspot-pin::before {
  background: var(--map-hotspot);
  border-radius: 999px;
  content: "";
  height: 8px;
  width: 8px;
}

.naver-map .iso-label {
  background: #fff;
  border: 1px solid var(--accent);
  border-radius: 4px;
  box-shadow: var(--shadow-card);
  color: var(--accent);
  font: 600 10px/1 var(--font-sans);
  padding: 3px 8px;
  pointer-events: none;
}

.map-state {
  align-items: center;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  font-size: 13px;
  gap: 8px;
  inset: 0;
  justify-content: center;
  line-height: 1.6;
  padding: 24px;
  position: absolute;
  text-align: center;
  z-index: 5;
}

.map-state strong {
  color: var(--error);
  font-weight: 600;
}

.map-state code {
  background: var(--bg-tertiary);
  border-radius: 3px;
  padding: 1px 5px;
}

.map-overlay {
  display: flex;
  flex-direction: column;
  gap: 8px;
  left: 16px;
  position: absolute;
  top: 16px;
  z-index: 3;
}

.zoom-control,
.map-legend,
.context-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.zoom-control {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 34px;
}

.zoom-control button {
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  height: 34px;
}

.zoom-control button:last-child {
  border-bottom: 0;
}

.map-legend {
  color: var(--text-secondary);
  font-size: 11px;
  padding: 10px 12px;
}

.area-search {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  min-height: 34px;
  padding: 0 12px;
}

.area-search:disabled {
  color: var(--text-tertiary);
  cursor: default;
  opacity: 0.72;
}

.map-legend-title {
  color: var(--text-tertiary);
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.legend-bar {
  background: linear-gradient(
    to right,
    #8A8F98 0%,
    #8A8F98 40%,
    #64748B 40%,
    #64748B 50%,
    #0E7C86 50%,
    #0E7C86 60%,
    #047857 60%,
    #047857 68%,
    #2563EB 68%,
    #2563EB 100%
  );
  border-radius: 4px;
  height: 8px;
  width: 160px;
}

.legend-scale {
  color: var(--text-tertiary);
  display: flex;
  font-family: var(--font-mono);
  font-size: 10px;
  justify-content: space-between;
  margin-top: 4px;
  width: 160px;
}

.context-card {
  bottom: 16px;
  left: 16px;
  min-width: 260px;
  padding: 12px 14px;
  position: absolute;
  z-index: 3;
}

.context-title {
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.context-row {
  align-items: baseline;
  color: var(--text-secondary);
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  padding: 3px 0;
}

.panel {
  background: var(--bg-primary);
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  min-height: 0;
  overflow: hidden;
  width: 420px;
}

.panel-header {
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
}

.panel-title {
  font-size: 13px;
  font-weight: 600;
}

.panel-meta {
  color: var(--text-tertiary);
  font-size: 12px;
}

.sort {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 12px;
  height: 26px;
  padding: 0 8px;
}

#apt-list {
  display: flex;
  flex: 1;
  min-height: 0;
}

.panel-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px;
  overscroll-behavior: contain;
}

.apt-card {
  align-items: flex-start;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  gap: 12px;
  padding: 12px 14px;
}

.apt-card:hover,
.apt-card.active {
  background: var(--bg-secondary);
}

.apt-card.active {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.score-num {
  align-items: center;
  border-radius: var(--radius-md);
  color: #fff;
  display: flex;
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 700;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.apt-meta {
  flex: 1;
  min-width: 0;
}

.apt-name {
  align-items: center;
  color: var(--text-primary);
  display: flex;
  font-size: 14px;
  font-weight: 600;
  gap: 6px;
}

.fav {
  color: var(--text-tertiary);
  font-size: 11px;
}

.fav.on {
  color: var(--warning);
}

.apt-addr {
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 16px;
  margin-top: 1px;
}

.apt-stats {
  color: var(--text-secondary);
  display: flex;
  font-size: 12px;
  gap: 10px;
  margin-top: 8px;
}

.apt-stats .lbl {
  color: var(--text-tertiary);
  font-size: 11px;
  margin-right: 4px;
}

.apt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.tag {
  background: var(--bg-tertiary);
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 500;
  line-height: 14px;
  padding: 2px 6px;
}

.tag.pos {
  background: #ecfdf5;
  color: var(--success);
}

.tag.warn {
  background: #fef3c7;
  color: #92400e;
}

.marker-dot {
  cursor: pointer;
}

.marker-dot.active circle:last-child {
  stroke: var(--text-primary);
  stroke-width: 3;
}

.map-badge {
  align-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  color: #fff;
  display: flex;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.drawer-backdrop {
  background: rgba(15, 23, 42, 0.18);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 0.18s;
  z-index: 90;
}

.drawer-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  background: var(--bg-primary);
  border-left: 1px solid var(--border-subtle);
  bottom: 0;
  box-shadow: var(--shadow-drawer);
  display: flex;
  flex-direction: column;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(100%);
  transition:
    transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0s linear 0.22s;
  visibility: hidden;
  width: 520px;
  z-index: 100;
}

.drawer.show {
  transition-delay: 0s;
  transform: translateX(0);
  visibility: visible;
}

.drawer-head {
  border-bottom: 1px solid var(--border-subtle);
  padding: 18px 20px 14px;
  position: relative;
}

.drawer-close {
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 15px;
  height: 28px;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 28px;
}

.drawer-eyebrow,
.section-title {
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.drawer-name {
  font-size: 22px;
  font-weight: 700;
  line-height: 28px;
}

.drawer-addr,
.drawer-meta,
.section-meta {
  color: var(--text-secondary);
  font-size: 12px;
}

.drawer-meta {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}

.drawer-meta .lbl {
  color: var(--text-tertiary);
  font-size: 11px;
  margin-right: 3px;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
}

.section {
  border-bottom: 1px solid var(--border-subtle);
  padding: 18px 20px;
}

.section-head,
.headline-score,
.bar-head,
.line-stat {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
}

.headline-num {
  font-size: 36px;
  font-weight: 700;
  line-height: 44px;
}

.headline-suffix {
  color: var(--text-tertiary);
  font-size: 14px;
  margin-left: 4px;
}

.percentile {
  color: var(--text-secondary);
  font-size: 12px;
  text-align: right;
}

.percentile strong {
  color: var(--accent);
}

.radar-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
}

.summary-line {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 18px;
  margin-top: 14px;
  padding: 10px 12px;
}

.bar-row {
  border-top: 1px solid var(--border-subtle);
  padding: 10px 0;
}

.bar-row:first-child {
  border-top: 0;
}

.bar-name {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
}

.bar-score {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.bar-score .denom {
  color: var(--text-tertiary);
  font-weight: 400;
}

.bar {
  background: var(--bg-tertiary);
  border-radius: 3px;
  height: 6px;
  overflow: hidden;
}

.bar-fill {
  border-radius: 3px;
  height: 100%;
}

.line-chart {
  margin-top: 8px;
}

.line-stat .num {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-weight: 600;
}

.raw-table {
  border-collapse: collapse;
  font-size: 12px;
  width: 100%;
}

.raw-table tr {
  border-top: 1px solid var(--border-subtle);
}

.raw-table tr:first-child {
  border-top: 0;
}

.raw-table td {
  color: var(--text-secondary);
  padding: 7px 0;
}

.raw-table td:last-child {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-weight: 500;
  text-align: right;
}

.drawer-actions {
  align-items: center;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 8px;
  padding: 14px 20px;
}

.btn {
  align-items: center;
  border-radius: var(--radius-sm);
  display: inline-flex;
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  height: 36px;
  justify-content: center;
  padding: 0 14px;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
}

.drawer-action-status {
  color: var(--text-secondary);
  flex: 0 0 auto;
  font-size: 12px;
}

.drawer-action-status a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.btn.secondary {
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .topbar {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 10px 12px;
    height: auto;
    min-height: 56px;
    padding: 10px 16px;
  }

  .brand {
    flex: 0 1 auto;
    min-width: 0;
  }

  .brand-sep,
  .brand-sub,
  .preset-index,
  .preset-tabs,
  .topbar-spacer {
    display: none;
  }

  .proto-nav {
    flex: 1 1 100%;
    height: 40px;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .proto-nav::-webkit-scrollbar {
    display: none;
  }

  .proto-nav a {
    flex: 1 0 auto;
    height: 38px;
    justify-content: center;
    min-width: 78px;
    padding: 0 10px;
  }

  .filter-strip {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 10px 12px;
    height: auto;
    padding: 10px 16px;
  }

  .filter-divider {
    display: none;
  }

  .filter-group {
    flex: 1 1 220px;
    min-width: 0;
  }

  .filter-slider {
    min-width: 120px;
    width: min(150px, 100%);
  }

  .filter-slider.short {
    min-width: 96px;
    width: min(120px, 100%);
  }

  .filter-check {
    align-self: center;
    min-height: 36px;
  }

  .filter-reset {
    min-height: 36px;
  }

  .result-count {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    justify-content: flex-end;
    margin-left: 0;
    min-height: 36px;
  }

  .app {
    flex-direction: column;
    height: auto;
    min-height: 0;
  }

  .map-pane {
    min-height: 420px;
  }

  .panel,
  .drawer {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .topbar {
    padding: 8px 10px;
  }

  .brand {
    font-size: 13px;
    gap: 8px;
  }

  .brand-mark {
    height: 20px;
    width: 20px;
  }

  .proto-nav {
    flex-wrap: nowrap;
  }

  .proto-nav a {
    flex: 0 0 auto;
    min-width: 72px;
  }

  .filter-strip {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr);
    padding: 10px;
  }

  .filter-group {
    display: grid;
    gap: 8px;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    min-height: 36px;
  }

  .filter-group:has(.filter-number) {
    grid-template-columns: 46px minmax(0, 1fr) auto minmax(0, 1fr) auto;
  }

  .filter-label {
    align-self: center;
  }

  .filter-slider,
  .filter-slider.short {
    min-width: 0;
    width: 100%;
  }

  .filter-number {
    min-width: 0;
    width: 100%;
  }

  .filter-check,
  .filter-reset,
  .result-count {
    justify-content: flex-start;
    min-height: 36px;
  }

  .map-pane {
    min-height: 360px;
  }

  .panel-header {
    padding: 12px 14px;
  }

  .sort {
    height: 36px;
  }
}

@media (max-width: 700px) {
  .dashboard-page {
    background: var(--bg-secondary);
    min-height: 100svh;
    overflow: hidden;
  }

  .dashboard-page .topbar {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-subtle);
    gap: 6px;
    padding: 7px 10px;
    position: relative;
  }

  .dashboard-page .brand {
    flex: 1 1 auto;
    font-size: 13px;
    line-height: 18px;
  }

  .dashboard-page .brand-mark {
    height: 22px;
    width: 22px;
  }

  .dashboard-page .brand-mark img {
    height: 18px;
    width: 18px;
  }

  .dashboard-page .proto-nav {
    background: var(--bg-secondary);
    border: 0;
    border-radius: var(--radius-md);
    display: grid;
    flex: 1 1 100%;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    height: 48px;
    padding: 2px;
  }

  .dashboard-page .proto-nav a {
    border: 0;
    border-radius: var(--radius-sm);
    flex-direction: column;
    font-size: 10px;
    gap: 1px;
    height: 44px;
    line-height: 13px;
    min-width: 0;
    padding: 4px 2px;
  }

  .dashboard-page .proto-nav .num {
    display: none;
  }

  .dashboard-page .nav-icon {
    align-items: center;
    display: flex;
    font-size: 16px;
    font-weight: 700;
    height: 18px;
    justify-content: center;
    line-height: 18px;
  }

  .dashboard-page .nav-label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dashboard-page .filter-strip {
    align-items: stretch;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    height: 82px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 10px;
    position: sticky;
    scrollbar-width: none;
    top: 0;
    z-index: 40;
  }

  .dashboard-page .filter-strip::-webkit-scrollbar {
    display: none;
  }

  .dashboard-page .filter-divider {
    display: none;
  }

  .dashboard-page .filter-group,
  .dashboard-page .filter-check,
  .dashboard-page .filter-reset,
  .dashboard-page .result-count {
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    flex: 0 0 178px;
    min-height: 64px;
    padding: 8px 10px;
  }

  .dashboard-page .filter-group {
    align-content: center;
    display: grid;
    gap: 5px 8px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .dashboard-page .filter-group:has(.filter-number) {
    flex-basis: 270px;
    grid-template-columns: minmax(58px, 1fr) auto minmax(58px, 1fr) auto;
  }

  .dashboard-page .filter-group:has(.filter-number) .filter-label {
    grid-column: 1 / -1;
  }

  .dashboard-page .filter-label {
    color: var(--text-tertiary);
    font-size: 10px;
    line-height: 12px;
  }

  .dashboard-page .filter-slider,
  .dashboard-page .filter-slider.short {
    grid-column: 1 / -1;
    height: 22px;
    min-width: 0;
    width: 100%;
  }

  .dashboard-page .filter-value {
    font-size: 12px;
    line-height: 16px;
  }

  .dashboard-page .filter-number {
    height: 30px;
    min-width: 0;
    width: 100%;
  }

  .dashboard-page .filter-check {
    align-items: center;
    color: var(--text-primary);
    display: flex;
    flex-basis: 150px;
    font-size: 12px;
    justify-content: center;
    line-height: 16px;
    min-height: 64px;
    padding: 8px 10px;
    white-space: normal;
  }

  .dashboard-page .filter-reset {
    color: var(--text-primary);
    flex-basis: 96px;
    font-weight: 600;
    height: auto;
    justify-content: center;
  }

  .dashboard-page .result-count {
    align-items: center;
    color: var(--text-secondary);
    display: flex;
    flex-basis: 104px;
    font-size: 12px;
    justify-content: center;
    margin: 0;
    white-space: nowrap;
  }

  .dashboard-page .app {
    display: flex;
    flex-direction: column;
    height: calc(100svh - 175px);
    min-height: 0;
    overflow: hidden;
  }

  .dashboard-page .map-pane {
    flex: 0 0 34%;
    min-height: 230px;
  }

  .dashboard-page .map-overlay {
    bottom: 10px;
    flex-direction: row;
    gap: 6px;
    left: 10px;
    top: auto;
  }

  .dashboard-page .zoom-control {
    border-radius: var(--radius-sm);
    flex-direction: row;
    width: auto;
  }

  .dashboard-page .zoom-control button {
    border-bottom: 0;
    border-right: 1px solid var(--border-subtle);
    height: 32px;
    width: 32px;
  }

  .dashboard-page .zoom-control button:last-child {
    border-right: 0;
  }

  .dashboard-page .map-legend,
  .dashboard-page .context-card {
    display: none;
  }

  .dashboard-page .area-search {
    border-radius: var(--radius-sm);
    font-size: 11px;
    min-height: 32px;
    padding: 0 10px;
  }

  .dashboard-page .panel {
    border-left: 0;
    border-top: 1px solid var(--border-subtle);
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
  }

  .dashboard-page .panel-header {
    background: var(--bg-primary);
    min-height: 44px;
    padding: 9px 12px;
  }

  .dashboard-page .panel-title {
    font-size: 13px;
    line-height: 18px;
  }

  .dashboard-page .panel-meta {
    display: none;
  }

  .dashboard-page .sort {
    height: 34px;
    min-width: 72px;
  }

  .dashboard-page #apt-list,
  .dashboard-page .panel-list {
    min-height: 0;
  }

  .dashboard-page .panel-list {
    background: var(--bg-primary);
    padding: 6px 8px 14px;
  }

  .dashboard-page .apt-card {
    border-bottom: 1px solid var(--border-subtle);
    border-radius: 0;
    gap: 10px;
    padding: 10px 2px;
  }

  .dashboard-page .apt-card:first-child {
    padding-top: 4px;
  }

  .dashboard-page .apt-card:hover,
  .dashboard-page .apt-card.active {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding-left: 8px;
    padding-right: 8px;
  }

  .dashboard-page .score-num {
    border-radius: var(--radius-sm);
    font-size: 16px;
    height: 40px;
    width: 40px;
  }

  .dashboard-page .apt-name {
    font-size: 13px;
    line-height: 18px;
  }

  .dashboard-page .apt-addr {
    font-size: 11px;
    line-height: 15px;
  }

  .dashboard-page .apt-stats {
    display: grid;
    gap: 2px 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 6px;
  }

  .dashboard-page .apt-stats span {
    min-width: 0;
  }

  .dashboard-page .apt-tags {
    margin-top: 6px;
  }

  .drawer {
    border-left: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 88svh;
    top: auto;
    transform: translateY(100%);
    width: 100%;
  }

  .drawer.show {
    transform: translateY(0);
  }
}

.chatbot {
  bottom: 22px;
  pointer-events: none;
  position: fixed;
  right: 22px;
  z-index: 120;
}

.chatbot-toggle,
.chatbot-panel {
  pointer-events: auto;
}

.chatbot-toggle {
  align-items: center;
  background: #111827;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 999px;
  box-shadow: 0 16px 34px rgb(15 23 42 / 28%);
  color: #fff;
  cursor: pointer;
  display: flex;
  height: 62px;
  justify-content: center;
  margin-left: auto;
  transition: transform 0.16s ease, opacity 0.16s ease, background 0.16s ease;
  width: 62px;
}

.chatbot-toggle:hover {
  background: #0f766e;
  transform: translateY(-2px);
}

.chatbot-toggle.is-open {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
}

.chatbot-toggle-icon {
  fill: none;
  height: 30px;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 30px;
}

.chatbot-toggle-icon path:first-child {
  fill: currentcolor;
  opacity: 0.96;
  stroke: currentcolor;
}

.chatbot-panel {
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: 0 22px 60px rgb(15 23 42 / 22%);
  display: flex;
  flex-direction: column;
  max-height: min(680px, calc(100svh - 42px));
  overflow: hidden;
  width: 390px;
}

.chatbot-head {
  align-items: center;
  background: #111827;
  color: #fff;
  display: flex;
  gap: 12px;
  min-height: 82px;
  padding: 18px;
}

.chatbot-avatar {
  align-items: center;
  background: #334155;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.chatbot-avatar.small {
  background: #e8eef7;
  color: #475569;
  font-size: 13px;
  height: 28px;
  width: 28px;
}

.chatbot-title {
  flex: 1 1 auto;
  min-width: 0;
}

.chatbot-title h2 {
  font-size: 18px;
  line-height: 24px;
  margin: 0;
}

.chatbot-title p {
  color: rgb(255 255 255 / 66%);
  font-size: 13px;
  line-height: 18px;
  margin: 2px 0 0;
}

.chatbot-close {
  align-items: center;
  background: transparent;
  border: 0;
  color: rgb(255 255 255 / 72%);
  cursor: pointer;
  display: flex;
  font-size: 32px;
  height: 40px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 40px;
}

.chatbot-close:hover {
  color: #fff;
}

.chatbot-body {
  background: #f8fafc;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
  overflow-y: auto;
  padding: 18px;
}

.chatbot-row {
  display: flex;
  gap: 10px;
}

.chatbot-row.user {
  justify-content: flex-end;
}

.chatbot-row.assistant > div:last-child {
  min-width: 0;
}

.chatbot-bubble {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 18px rgb(15 23 42 / 8%);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.55;
  max-width: 282px;
  overflow-wrap: anywhere;
  padding: 12px 14px;
  text-align: left;
  white-space: pre-line;
}

.chatbot-bubble strong {
  color: var(--text-primary);
  font-weight: 800;
}

.chatbot-row.user .chatbot-bubble {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

.chatbot-provider {
  color: var(--text-tertiary);
  font-size: 11px;
  line-height: 16px;
  margin: 4px 0 0 2px;
}

.chatbot-bubble.loading {
  align-items: center;
  display: inline-flex;
  gap: 1px;
}

.chatbot-loading-dot {
  animation: chatbot-dot-pulse 1s ease-in-out infinite;
  display: inline-block;
  opacity: 0.2;
  transform: translateY(0);
}

@keyframes chatbot-dot-pulse {
  0%,
  80%,
  100% {
    opacity: 0.2;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .chatbot-loading-dot {
    animation: none;
    opacity: 1;
  }
}

.chatbot-form {
  align-items: center;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 8px;
  padding: 12px;
}

.chatbot-input {
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  flex: 1 1 auto;
  font-size: 14px;
  height: 44px;
  min-width: 0;
  padding: 0 14px;
}

.chatbot-input:focus {
  border-color: var(--accent);
  outline: 2px solid rgb(9 130 132 / 16%);
}

.chatbot-send {
  align-items: center;
  background: var(--accent);
  border: 0;
  border-radius: var(--radius-md);
  color: #fff;
  cursor: pointer;
  display: flex;
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  width: 48px;
}

.chatbot-send:disabled {
  cursor: wait;
  opacity: 0.55;
}

@media (max-width: 560px) {
  .chatbot {
    bottom: 12px;
    left: 12px;
    right: 12px;
  }

  .chatbot-toggle {
    height: 56px;
    width: 56px;
  }

  .chatbot-panel {
    max-height: 82svh;
    width: 100%;
  }

  .chatbot-head {
    min-height: 74px;
    padding: 14px;
  }

  .chatbot-title h2 {
    font-size: 16px;
    line-height: 22px;
  }

  .chatbot-body {
    min-height: 240px;
    padding: 14px;
  }

  .chatbot-bubble {
    max-width: calc(100vw - 94px);
  }
}

@media (max-width: 420px) {
  .dashboard-page .app {
    height: calc(100svh - 173px);
  }

  .dashboard-page .map-pane {
    flex-basis: 32%;
    min-height: 210px;
  }

  .dashboard-page .filter-strip {
    height: 78px;
  }

  .dashboard-page .filter-group,
  .dashboard-page .filter-check,
  .dashboard-page .filter-reset,
  .dashboard-page .result-count {
    min-height: 60px;
  }
}
