:root {
  --ink: #101117;
  --ink-soft: #242632;
  --panel: #f7f1e4;
  --panel-deep: #ded2be;
  --line: rgba(29, 31, 39, 0.15);
  --muted: #6d675f;
  --teal: #12c8ad;
  --acid: #d7ff57;
  --gold: #ffc84a;
  --coral: #ff684d;
  --cobalt: #4f7cff;
  --cream: #fff7e8;
  --shadow:
    0 34px 90px rgba(0, 0, 0, 0.42),
    0 1px 0 rgba(255, 255, 255, 0.36) inset;
  --font-sans:
    "Pretendard Variable", Pretendard, "Noto Sans KR", "Apple SD Gothic Neo",
    "Malgun Gothic", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI",
    sans-serif;
  color-scheme: light;
  font-family: var(--font-sans);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(118deg, rgba(255, 200, 74, 0.08) 0 18%, transparent 18% 100%),
    linear-gradient(138deg, #080a0f 0%, #171a22 43%, #0b1018 100%);
  background-size: 44px 44px, 44px 44px, auto, auto;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1520px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 34px;
}

.topbar,
.studio-panel,
.bottom-band {
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: var(--shadow);
}

.topbar {
  display: grid;
  grid-template-columns: minmax(390px, 0.9fr) minmax(360px, 0.72fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 86px;
  padding: 14px;
  color: var(--cream);
  background:
    linear-gradient(90deg, rgba(18, 200, 173, 0.12), transparent 32%, rgba(215, 255, 87, 0.06) 72%, transparent),
    linear-gradient(145deg, rgba(34, 38, 48, 0.96), rgba(13, 15, 21, 0.94)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14), transparent 38%);
  border-radius: 8px;
  backdrop-filter: blur(14px);
}

.topbar > * {
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  height: 58px;
  padding: 0 14px 0 2px;
  border-right: 1px solid rgba(255, 250, 240, 0.12);
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 247, 232, 0.92);
  border-radius: 8px;
  background:
    linear-gradient(135deg, transparent 0 38%, var(--teal) 38% 48%, transparent 48%),
    linear-gradient(45deg, var(--coral), var(--gold));
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.32),
    0 0 0 4px rgba(255, 255, 255, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

.eyebrow,
.section-kicker {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.topbar .eyebrow {
  color: rgba(255, 250, 240, 0.64);
}

h1,
h2 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  font-size: 26px;
}

h2 {
  font-size: 22px;
}

.broadcast-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  width: 100%;
  padding: 8px 14px;
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: 8px;
  color: rgba(255, 250, 240, 0.78);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.24),
    0 1px 0 rgba(255, 255, 255, 0.14) inset;
  white-space: nowrap;
}

.broadcast-strip::before,
.broadcast-strip::after {
  width: 38px;
  height: 1px;
  flex: 1 1 38px;
  max-width: 96px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 250, 240, 0.26));
}

.broadcast-strip::after {
  background: linear-gradient(90deg, rgba(255, 250, 240, 0.26), transparent);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--coral);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.live-pill.is-live {
  background: var(--teal);
  color: #06140f;
}

.refresh-form {
  display: grid;
  grid-template-columns: auto;
  gap: 8px;
  justify-content: end;
  min-width: 184px;
}

.refresh-form input,
.refresh-form button {
  height: 44px;
  border-radius: 8px;
}

.refresh-form input {
  min-width: 0;
  border: 1px solid rgba(255, 250, 240, 0.24);
  padding: 0 12px;
  color: var(--cream);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.06);
  outline: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18) inset;
}

.refresh-form input[hidden] {
  display: none;
}

.refresh-form input:focus {
  border-color: var(--teal);
}

.refresh-form button {
  min-width: 174px;
  border: 0;
  padding: 0 22px;
  color: #08110d;
  background: linear-gradient(180deg, #e7ff7a, var(--acid) 52%, #a9e833);
  box-shadow:
    0 14px 28px rgba(215, 255, 87, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.62) inset,
    0 -2px 0 rgba(0, 0, 0, 0.12) inset;
  font-weight: 900;
}

.refresh-form button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.ops-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.signal-basis {
  position: relative;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 48px;
  margin: -2px 0 12px;
  border: 1px solid rgba(16, 17, 23, 0.1);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(18, 200, 173, 0.12), transparent 34%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.72), rgba(244, 234, 216, 0.68)),
    rgba(255, 255, 255, 0.5);
  box-shadow:
    0 12px 26px rgba(40, 29, 16, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.signal-basis::after {
  position: absolute;
  right: 12px;
  left: 12px;
  bottom: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(18, 200, 173, 0.48), transparent 66%);
  opacity: 0.8;
}

.signal-basis span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 8px;
  padding: 0 10px;
  color: #06120f;
  background: linear-gradient(180deg, #27dec5, var(--teal));
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.signal-basis strong {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(16, 17, 23, 0.1);
  border-radius: 8px;
  padding: 0 11px;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.74);
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.signal-basis p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: rgba(21, 23, 30, 0.72);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-strip > div {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto auto minmax(34px, 1fr) auto auto;
  gap: 7px;
  min-width: 0;
  min-height: 152px;
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 8px;
  padding: 13px 15px;
  color: var(--cream);
  background:
    linear-gradient(135deg, rgba(18, 200, 173, 0.12), transparent 44%),
    linear-gradient(145deg, rgba(34, 38, 48, 0.94), rgba(13, 15, 21, 0.94));
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.ops-strip > div.is-popover-open {
  z-index: 12;
}

.ops-strip > div::after {
  position: absolute;
  right: 12px;
  top: 13px;
  width: 32px;
  height: 2px;
  border-radius: 999px;
  content: "";
  background: linear-gradient(90deg, rgba(18, 200, 173, 0), rgba(18, 200, 173, 0.9));
  opacity: 0.72;
}

.ops-strip > div > span,
.ops-strip > div > small {
  display: block;
  color: rgba(255, 250, 240, 0.62);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

.ops-strip > div > strong {
  display: flex;
  gap: 8px;
  align-items: end;
  overflow: hidden;
  color: #fffaf0;
  line-height: 1;
  white-space: nowrap;
}

.ops-strip > div > strong em {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-size: clamp(22px, 2.1vw, 30px);
  font-style: normal;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-strip > div > strong b {
  flex: 0 0 auto;
  padding-bottom: 3px;
  color: rgba(255, 250, 240, 0.78);
  font-size: 12px;
  font-weight: 900;
}

.ops-strip > div > p {
  margin: 0;
  color: rgba(255, 250, 240, 0.82);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.38;
  word-break: keep-all;
}

.ops-district-chips {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-content: start;
  min-width: 0;
}

.ops-district-chip,
.ops-district-more,
.ops-district-empty {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 920;
  line-height: 1;
  white-space: nowrap;
}

.ops-district-chip,
.ops-district-more {
  border: 1px solid rgba(18, 200, 173, 0.36);
  color: #e7fff9;
  background: rgba(18, 200, 173, 0.14);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
  cursor: pointer;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.ops-district-chip:hover {
  border-color: rgba(18, 200, 173, 0.72);
  background: rgba(18, 200, 173, 0.24);
  transform: translateY(-1px);
}

.ops-district-more {
  color: #07120f;
  background: linear-gradient(180deg, #d7fff4, #95ecdc);
}

.ops-district-more:hover,
.ops-district-chips.is-open .ops-district-more {
  border-color: rgba(255, 250, 240, 0.7);
  background: linear-gradient(180deg, #fffaf0, #bff7ec);
  transform: translateY(-1px);
}

.ops-district-empty {
  color: rgba(255, 250, 240, 0.5);
  background: rgba(255, 250, 240, 0.06);
}

.ops-more-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 25;
  display: none;
  width: min(280px, calc(100vw - 48px));
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: 8px;
  padding: 8px;
  color: var(--cream);
  background:
    linear-gradient(145deg, rgba(41, 45, 56, 0.98), rgba(13, 15, 21, 0.98));
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.36),
    0 1px 0 rgba(255, 255, 255, 0.13) inset;
}

.ops-district-chips.is-open .ops-more-popover {
  display: grid;
  gap: 6px;
}

.ops-more-popover::before {
  position: absolute;
  top: -6px;
  right: 22px;
  width: 10px;
  height: 10px;
  border-top: 1px solid rgba(255, 250, 240, 0.22);
  border-left: 1px solid rgba(255, 250, 240, 0.22);
  content: "";
  background: rgba(41, 45, 56, 0.98);
  transform: rotate(45deg);
}

.ops-more-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 2px 2px 6px;
  border-bottom: 1px solid rgba(255, 250, 240, 0.12);
}

.ops-more-head strong {
  color: #fffaf0;
  font-size: 12px;
  font-weight: 950;
}

.ops-more-head span {
  color: rgba(255, 250, 240, 0.58);
  font-size: 11px;
  font-weight: 850;
}

.ops-more-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(255, 250, 240, 0.1);
  border-radius: 7px;
  padding: 7px 8px;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.06);
  text-align: left;
  cursor: pointer;
}

.ops-more-row:hover {
  border-color: rgba(18, 200, 173, 0.42);
  background: rgba(18, 200, 173, 0.12);
}

.ops-more-row strong,
.ops-more-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-more-row strong {
  font-size: 12px;
  font-weight: 950;
}

.ops-more-row small {
  color: rgba(255, 250, 240, 0.72);
  font-size: 11px;
  font-weight: 760;
}

.ops-strip > div > small {
  width: fit-content;
  border: 1px solid rgba(18, 200, 173, 0.24);
  border-radius: 999px;
  padding: 4px 8px;
  color: rgba(224, 255, 248, 0.82);
  background: rgba(18, 200, 173, 0.12);
}

.ticker-band {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 46px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--cream);
  background:
    linear-gradient(90deg, rgba(18, 200, 173, 0.16), transparent 44%),
    linear-gradient(145deg, rgba(31, 35, 45, 0.94), rgba(12, 14, 20, 0.92));
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.24),
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.ticker-label {
  display: inline-flex;
  align-items: center;
  height: 28px;
  border-radius: 8px;
  padding: 0 10px;
  color: #06140f;
  background: linear-gradient(180deg, #35ead2, var(--teal));
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.ticker-window {
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.ticker-track {
  display: inline-flex;
  gap: 34px;
  min-width: max-content;
  color: rgba(255, 250, 240, 0.82);
  font-size: 14px;
  font-weight: 780;
  white-space: nowrap;
  animation: tickerMove var(--ticker-duration, 112s) linear infinite;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ticker-track em {
  display: inline-flex;
  align-items: center;
  height: 20px;
  border: 1px solid rgba(255, 250, 240, 0.16);
  border-radius: 8px;
  padding: 0 7px;
  color: var(--acid);
  background: rgba(215, 255, 87, 0.1);
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

.ticker-track .is-signal em {
  color: #8ff5e8;
  background: rgba(18, 200, 173, 0.12);
}

.ticker-track span::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 16px rgba(215, 255, 87, 0.48);
  content: "";
  vertical-align: 2px;
}

.scene-board {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  gap: 12px;
  align-items: stretch;
  margin-top: 12px;
  color: var(--ink);
}

.scene-main,
.scene-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(18, 200, 173, 0.08), transparent 42%),
    linear-gradient(145deg, rgba(255, 250, 239, 0.98), rgba(234, 224, 205, 0.97));
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.86) inset;
}

.scene-main::after,
.scene-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.46), transparent 32%),
    linear-gradient(90deg, transparent, rgba(16, 17, 23, 0.035));
  pointer-events: none;
}

.scene-main {
  min-height: 132px;
  padding: 18px 20px;
}

.scene-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 8px;
  padding: 0 9px;
  color: #075f52;
  background: rgba(18, 200, 173, 0.14);
  font-size: 11px;
  font-weight: 950;
}

.scene-main strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.18;
}

.scene-main p {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.48;
}

.scene-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.scene-card {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  min-height: 132px;
  padding: 12px;
  color: var(--ink);
  text-align: left;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.scene-card:hover,
.scene-card.is-selected {
  border-color: rgba(18, 200, 173, 0.48);
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.24),
    0 0 0 3px rgba(18, 200, 173, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.86) inset;
  transform: translateY(-1px);
}

.scene-card-index,
.scene-card i {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--cream);
  background: linear-gradient(180deg, #242734, #0d0f15);
  font-weight: 950;
  line-height: 1;
}

.scene-card-index {
  width: 30px;
  height: 30px;
  font-size: 12px;
}

.scene-card-body {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  gap: 6px;
}

.scene-card-body em {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #087160;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0;
}

.scene-card-body em .pico {
  width: 13px;
  height: 13px;
}

.scene-card-body strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.24;
  text-overflow: ellipsis;
}

.scene-card-body small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scene-card i {
  width: 34px;
  height: 34px;
  background:
    linear-gradient(180deg, rgba(18, 200, 173, 0.22), transparent 46%),
    linear-gradient(180deg, #fffaf0, #e9dcc3);
  color: var(--ink);
  font-size: 14px;
  font-style: normal;
  box-shadow:
    0 10px 18px rgba(42, 32, 18, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.82) inset;
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.75fr);
  gap: 18px;
  margin-top: 18px;
}

.studio-panel,
.bottom-band {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 250, 239, 0.98), rgba(234, 224, 205, 0.97)),
    var(--panel);
  border-radius: 8px;
  transform: translateZ(0);
}

.studio-panel::before,
.bottom-band::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.42), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 42%);
  pointer-events: none;
}

.studio-panel > *,
.bottom-band > * {
  position: relative;
  z-index: 1;
}

.map-section {
  display: flex;
  flex-direction: column;
  padding: 18px;
  min-height: 680px;
}

.insight-panel {
  display: flex;
  flex-direction: column;
  padding: 18px;
  min-height: 680px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.section-head.tight {
  align-items: center;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(102px, 1fr));
  gap: 8px;
  min-width: min(560px, 100%);
}

.summary-grid div,
.metric-card,
.signal-card,
.district-brief,
.chart-panel,
.deal-strip,
.rank-badge {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.72), rgba(245, 235, 218, 0.74)),
    rgba(255, 250, 240, 0.72);
  box-shadow:
    0 16px 34px rgba(56, 46, 29, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.86) inset,
    0 -1px 0 rgba(0, 0, 0, 0.04) inset;
}

.summary-grid div {
  padding: 10px;
}

.summary-grid span,
.metric-card span,
.signal-card span,
.district-brief span,
.deal-strip span,
.rank-badge span,
.chart-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.summary-grid span {
  min-height: 28px;
  font-size: 11px;
  line-height: 1.22;
  word-break: keep-all;
}

.summary-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.pico-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.pico {
  display: block;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.with-pico {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.summary-grid span.with-pico,
.metric-card span.with-pico,
.signal-card span.with-pico,
.ops-strip > div > span.with-pico,
.deal-strip > span.with-pico,
.chart-head span.with-pico {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ops-strip .pico {
  color: #7ef3e4;
}

.mode-tabs {
  display: flex;
  gap: 8px;
  margin: 18px 0 12px;
  overflow-x: auto;
}

.mode-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(236, 225, 207, 0.68)),
    transparent;
  font-weight: 850;
  white-space: nowrap;
  box-shadow:
    0 8px 18px rgba(48, 38, 24, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.72) inset;
}

.mode-tabs button.is-active {
  border-color: var(--ink);
  background:
    linear-gradient(180deg, #242734, #0d0f15),
    var(--ink);
  color: var(--cream);
  box-shadow:
    0 14px 28px rgba(16, 17, 23, 0.26),
    0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

.map-stage {
  position: relative;
  flex: 0 0 auto;
  min-height: clamp(520px, 44vw, 660px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf0e9;
  box-shadow:
    0 24px 46px rgba(64, 48, 25, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 -22px 40px rgba(36, 28, 19, 0.08) inset;
}

.map-stage::before {
  position: absolute;
  inset: 14px;
  content: "";
  border: 1px solid rgba(16, 17, 23, 0.06);
  border-radius: 8px;
  pointer-events: none;
}

.vector-map {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 320ms ease;
}

.map-stage.is-vector-ready .vector-map {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.map-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  pointer-events: none;
}

.map-loading[hidden],
.zone-point-hint[hidden] {
  display: none;
}

.vector-map .maplibregl-control-container {
  font-family: var(--font-sans);
}

.vector-map .maplibregl-ctrl-attrib {
  padding: 2px 6px;
  color: #455761;
  background: rgba(250, 252, 248, 0.88);
  font-size: 10px;
  backdrop-filter: blur(6px);
}

.vector-map .maplibregl-ctrl-attrib a {
  color: #315d6d;
}

#seoulMap {
  width: 100%;
  height: clamp(520px, 44vw, 660px);
  display: none;
}

.map-stage.is-fallback #seoulMap {
  display: block;
}

.district-path {
  stroke: rgba(255, 250, 240, 0.88);
  stroke-width: 2.7;
  cursor: pointer;
  outline: none;
}

.district-path:hover,
.district-path:focus-visible,
.district-path.is-active {
  stroke: var(--ink);
  stroke-width: 4.8;
}

.district-label {
  fill: rgba(16, 17, 23, 0.82);
  font-size: 12px;
  font-weight: 900;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(255, 250, 240, 0.92);
  stroke-width: 3.4px;
}

.map-callout {
  position: absolute;
  z-index: 4;
  left: 16px;
  bottom: 16px;
  width: 190px;
  border-radius: 8px;
  padding: 12px;
  color: var(--cream);
  background:
    linear-gradient(145deg, rgba(36, 39, 49, 0.96), rgba(11, 13, 18, 0.94)),
    rgba(17, 17, 15, 0.88);
  border: 1px solid rgba(255, 247, 232, 0.12);
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.34),
    0 1px 0 rgba(255, 255, 255, 0.14) inset;
}

.map-callout span {
  display: block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.map-callout strong {
  display: block;
  margin-top: 4px;
  font-size: 26px;
}

.map-zoom-control {
  position: absolute;
  top: 50%;
  right: 18px;
  z-index: 4;
  display: grid;
  grid-template-rows: 38px 132px 38px;
  justify-items: center;
  gap: 7px;
  width: 44px;
  padding: 7px 0;
  border: 1px solid rgba(16, 17, 23, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.82), rgba(232, 222, 204, 0.72)),
    rgba(255, 247, 232, 0.7);
  box-shadow:
    0 20px 42px rgba(42, 33, 19, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 -1px 0 rgba(0, 0, 0, 0.04) inset;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}

.zoom-level-badge {
  position: absolute;
  top: -34px;
  left: 50%;
  display: inline-grid;
  place-items: center;
  min-width: 54px;
  height: 26px;
  border: 1px solid rgba(16, 17, 23, 0.16);
  border-radius: 8px;
  color: var(--cream);
  background:
    linear-gradient(180deg, rgba(36, 39, 49, 0.98), rgba(12, 14, 20, 0.96)),
    rgba(16, 17, 23, 0.94);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  transform: translateX(-50%);
}

.zoom-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(16, 17, 23, 0.14);
  border-radius: 8px;
  color: var(--cream);
  background:
    linear-gradient(180deg, #242734, #0d0f15),
    var(--ink);
  box-shadow:
    0 12px 22px rgba(0, 0, 0, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.18) inset;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.zoom-button:hover {
  border-color: rgba(18, 200, 173, 0.48);
  box-shadow:
    0 14px 26px rgba(18, 200, 173, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

.zoom-button:disabled {
  cursor: default;
  opacity: 0.45;
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.zoom-button:focus-visible {
  outline: 3px solid rgba(18, 200, 173, 0.45);
  outline-offset: 2px;
}

.zoom-rail {
  position: relative;
  width: 6px;
  height: 132px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(16, 17, 23, 0.28), rgba(16, 17, 23, 0.08)),
    rgba(255, 255, 255, 0.58);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.14) inset,
    0 1px 0 rgba(255, 255, 255, 0.72);
}

.zoom-fill {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 20%;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--cobalt), var(--teal));
  box-shadow: 0 0 18px rgba(18, 200, 173, 0.34);
}

.zoom-rail[role="slider"] {
  cursor: pointer;
  touch-action: none;
}

.zoom-rail[role="slider"]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.zoom-thumb {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background:
    linear-gradient(180deg, #eaffff, #8ff5e8),
    var(--teal);
  box-shadow:
    0 10px 22px rgba(18, 200, 173, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.92) inset;
  transform: translate(-50%, 50%);
}

.tooltip {
  position: fixed;
  z-index: 1000;
  display: none;
  width: min(250px, calc(100vw - 20px));
  padding: 12px;
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: 8px;
  color: var(--cream);
  background: rgba(17, 17, 15, 0.84);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
  pointer-events: none;
  will-change: left, top;
}

.tooltip strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.tooltip dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  margin: 0;
}

.tooltip dt {
  color: rgba(255, 250, 240, 0.66);
}

.tooltip dd {
  margin: 0;
  font-weight: 850;
}

.legend-row {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: minmax(72px, auto) minmax(0, 1fr) minmax(72px, auto);
  gap: 14px;
  align-items: end;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.legend-end {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.legend-end span,
.legend-center > span {
  color: #686b70;
  font-size: 11px;
  font-weight: 750;
}

.legend-end strong {
  color: #314e70;
  font-size: 14px;
  line-height: 1.1;
}

.legend-end.is-high {
  text-align: right;
}

.legend-end.is-high strong {
  color: #b64b3c;
}

.legend-center {
  display: grid;
  gap: 4px;
  min-width: 0;
  text-align: center;
}

.legend-bar {
  height: 10px;
  border-radius: 8px;
  background: linear-gradient(90deg, #314e70 0%, #638ca8 25%, #dad3b9 50%, #f4b664 75%, #d95c47 100%);
  box-shadow:
    0 5px 12px rgba(0, 0, 0, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.72) inset;
}

.legend-ticks {
  display: flex;
  justify-content: space-between;
  color: #66625b;
  font-size: 10px;
  font-weight: 650;
}

.map-insight-deck {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: 1.06fr 0.92fr 0.98fr;
  gap: 12px;
  min-height: 392px;
  margin-top: 14px;
}

.belt-panel,
.ranking-panel,
.selected-signal-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid rgba(16, 17, 23, 0.12);
  border-radius: 8px;
  padding: 15px;
  background:
    linear-gradient(152deg, rgba(255, 255, 255, 0.72), rgba(239, 228, 207, 0.78)),
    rgba(255, 250, 240, 0.66);
  box-shadow:
    0 16px 34px rgba(56, 46, 29, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.86) inset;
}

.insight-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
}

.insight-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(16, 17, 23, 0.1);
}

.insight-head strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.08;
}

.insight-head > span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 8px;
  padding: 0 8px;
  color: #0a1713;
  background: rgba(18, 200, 173, 0.15);
  font-size: 10px;
  font-weight: 950;
  white-space: nowrap;
}

.belt-scoreboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 14px;
}

.belt-scoreboard div {
  min-width: 0;
  border-radius: 8px;
  padding: 13px 12px;
  background:
    linear-gradient(160deg, rgba(16, 17, 23, 0.05), rgba(255, 255, 255, 0.62)),
    rgba(255, 255, 255, 0.46);
}

.belt-scoreboard span,
.top-signal-item small,
.selected-signal-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.belt-scoreboard strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.belt-scoreboard small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.belt-panel p,
.selected-signal-panel p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.45;
}

.belt-meter-grid {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.belt-meter {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.belt-meter > span,
.belt-meter small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.belt-meter-track {
  display: flex;
  height: 8px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(16, 17, 23, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
}

.belt-balance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 14px;
}

.belt-balance-grid div {
  min-width: 0;
  border: 1px solid rgba(16, 17, 23, 0.08);
  border-radius: 8px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.38);
}

.belt-balance-grid span,
.belt-balance-grid small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
}

.belt-balance-grid strong {
  display: block;
  margin: 5px 0 3px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.15;
}

.belt-meter-track i {
  min-width: 8px;
}

.belt-meter-track .north {
  background: linear-gradient(90deg, var(--cobalt), #8da7ff);
}

.belt-meter-track .south {
  background: linear-gradient(90deg, var(--gold), var(--coral));
}

.top-signal-list {
  display: grid;
  gap: 6px;
  margin-top: 0;
  perspective: 920px;
}

.top-signal-item {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  grid-template-areas:
    "rank copy heat"
    "rank villa heat";
  gap: 3px 7px;
  align-items: center;
  min-width: 0;
  min-height: 52px;
  overflow: hidden;
  border: 1px solid rgba(16, 17, 23, 0.1);
  border-radius: 8px;
  padding: 5px 6px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(18, 200, 173, 0.08), transparent 38%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(237, 227, 208, 0.62)),
    rgba(255, 255, 255, 0.52);
  text-align: left;
  box-shadow:
    0 12px 26px rgba(40, 29, 16, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.76) inset;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.top-signal-item::after {
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: -24%;
  width: 30%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  opacity: 0;
  transform: skewX(-18deg);
  animation: signalSweep 8.4s ease-in-out infinite;
  animation-delay: calc(var(--flip-delay, 0s) + 1.1s);
  pointer-events: none;
}

.top-signal-item:hover,
.top-signal-item.is-active {
  border-color: rgba(16, 17, 23, 0.36);
  box-shadow:
    0 16px 30px rgba(25, 21, 14, 0.13),
    0 0 0 3px rgba(18, 200, 173, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.82) inset;
  transform: translateY(-1px);
}

.flip-rank,
.flip-digit {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  color: var(--cream);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 42%),
    linear-gradient(180deg, #2b2f3d 0%, #171a24 49%, #0a0c12 51%, #10131a 100%);
  font-weight: 950;
  transform-style: preserve-3d;
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 -1px 0 rgba(0, 0, 0, 0.62) inset;
}

.flip-rank::before,
.flip-digit::before {
  position: absolute;
  right: 0;
  left: 0;
  top: 50%;
  z-index: 4;
  height: 1px;
  content: "";
  background: rgba(255, 250, 240, 0.11);
  box-shadow:
    0 -1px 0 rgba(0, 0, 0, 0.62),
    0 1px 0 rgba(255, 255, 255, 0.08);
}

.flip-rank::after {
  display: none;
  content: "";
}

.flip-digit::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: inherit;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 43%),
    linear-gradient(180deg, transparent 0 48%, rgba(0, 0, 0, 0.38) 49%, rgba(255, 255, 255, 0.08) 51%, transparent 53%);
  pointer-events: none;
}

.flip-rank {
  grid-area: rank;
  width: 26px;
  height: 27px;
  font-size: 11px;
  transform: translateZ(0);
}

.flip-rank span,
.flip-digit span {
  position: relative;
  z-index: 1;
  transform: translateY(-0.2px);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.58);
}

.top-signal-copy {
  grid-area: copy;
  display: grid;
  min-width: 0;
  gap: 2px;
}

.top-signal-copy strong,
.top-signal-copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-signal-copy strong {
  display: block;
  font-size: 12px;
}

.top-signal-copy small {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  line-height: 1.1;
}

.top-signal-copy small em {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  border-radius: 8px;
  padding: 0 6px;
  color: #087160;
  background: rgba(18, 200, 173, 0.12);
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
}

.heat-score-pack {
  grid-area: heat;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: max-content;
}

.heat-score-label {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  border-radius: 8px;
  padding: 0 6px;
  color: #087160;
  background: rgba(18, 200, 173, 0.12);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.78) inset;
}

.heat-flip {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  gap: 3px;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 35px;
  overflow: hidden;
  border: 1px solid rgba(16, 17, 23, 0.12);
  border-radius: 9px;
  padding: 3px 4px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(232, 222, 204, 0.5));
  box-shadow:
    0 9px 18px rgba(44, 35, 20, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.84) inset,
    0 -1px 0 rgba(16, 17, 23, 0.08) inset;
  transform-style: preserve-3d;
  animation: boardBodySettle 9.8s ease-in-out infinite;
  animation-delay: var(--board-delay, 0s);
  perspective: 720px;
}

.heat-flip::before {
  position: absolute;
  right: 3px;
  left: 3px;
  top: 50%;
  z-index: 5;
  height: 1px;
  content: "";
  background: rgba(16, 17, 23, 0.15);
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.72),
    0 1px 0 rgba(16, 17, 23, 0.08);
  pointer-events: none;
}

.heat-flip::after {
  position: absolute;
  inset: 3px;
  z-index: 4;
  border-radius: 6px;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.22) 46%, rgba(16, 17, 23, 0.12) 50%, transparent 54%),
    linear-gradient(180deg, rgba(248, 244, 235, 0.96) 0%, rgba(224, 215, 199, 0.92) 50%, transparent 51%);
  clip-path: inset(0 0 50% 0);
  opacity: 0;
  transform: rotateX(0deg) translateZ(0);
  transform-origin: 50% 100%;
  backface-visibility: hidden;
  animation: boardSurfaceBlink 9.8s ease-in-out infinite;
  animation-delay: var(--board-delay, 0s);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 8px 12px rgba(44, 35, 20, 0.12);
  pointer-events: none;
  will-change: transform, opacity, filter;
}

.flip-digit {
  width: 18px;
  height: 28px;
  border-radius: 5px;
  font-size: 15px;
  line-height: 1;
  color: var(--cream);
  background:
    linear-gradient(180deg, rgba(18, 200, 173, 0.16), transparent 38%),
    linear-gradient(180deg, #2d3240 0%, #171b25 48%, #07090e 51%, #11151e 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    -1px 0 0 rgba(255, 255, 255, 0.06) inset,
    1px 0 0 rgba(0, 0, 0, 0.42) inset,
    0 5px 9px rgba(16, 17, 23, 0.2);
  animation: boardDigitPulse 9.8s ease-in-out infinite;
  animation-delay: calc(var(--board-delay, 0s) + var(--digit-delay, 0s));
}

.flip-digit::after {
  content: attr(data-value);
  z-index: 4;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05) 46%, rgba(0, 0, 0, 0.34) 50%, transparent 54%),
    linear-gradient(180deg, #3a4050 0%, #171b25 50%, transparent 51%);
  clip-path: inset(0 0 50% 0);
  opacity: 0;
  transform: rotateX(0deg) translateZ(0);
  transform-origin: 50% 100%;
  backface-visibility: hidden;
  animation: digitTopFlap 9.8s cubic-bezier(0.22, 0.72, 0.18, 1) infinite;
  animation-delay: calc(var(--board-delay, 0s) + var(--digit-delay, 0s));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.24) inset,
    0 7px 10px rgba(0, 0, 0, 0.2);
  will-change: transform, opacity, filter;
}

.top-signal-villa {
  grid-area: villa;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border-radius: 8px;
  padding: 0 7px;
  color: #6d4a10;
  background: rgba(216, 189, 115, 0.2);
  font-size: 10px;
  font-weight: 950;
  white-space: nowrap;
}

@keyframes boardSurfaceBlink {
  0%,
  66%,
  100% {
    opacity: 0;
    filter: brightness(1);
  }

  70% {
    opacity: 0.22;
    filter: brightness(1.08);
  }

  80% {
    opacity: 0;
    filter: brightness(1);
  }
}

@keyframes digitTopFlap {
  0%,
  66%,
  100% {
    opacity: 0;
    filter: brightness(1);
    transform: rotateX(0deg) translateZ(0);
  }

  69% {
    opacity: 0.96;
    filter: brightness(1.18);
    transform: rotateX(0deg) translateZ(2px);
  }

  72% {
    opacity: 0.9;
    filter: brightness(0.88);
    transform: rotateX(-58deg) translateZ(3px);
  }

  75% {
    opacity: 0.2;
    filter: brightness(0.7);
    transform: rotateX(-88deg) translateZ(1px);
  }
}

@keyframes boardBodySettle {
  0%,
  67%,
  100% {
    filter: brightness(1);
    transform: translateY(0);
  }

  72% {
    filter: brightness(1.06);
    transform: translateY(-0.5px);
  }

  78% {
    filter: brightness(1);
    transform: translateY(0);
  }
}

@keyframes boardDigitPulse {
  0%,
  68%,
  100% {
    filter: brightness(1);
  }

  73% {
    filter: brightness(1.2);
  }

  80% {
    filter: brightness(1);
  }
}

@keyframes signalSweep {
  0%,
  68%,
  100% {
    left: -24%;
    opacity: 0;
  }

  76% {
    opacity: 0.52;
  }

  90% {
    left: 112%;
    opacity: 0;
  }
}

@keyframes tickerMove {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.selected-signal-panel > strong {
  display: block;
  margin: 2px 0 8px;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

.selected-signal-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.selected-signal-metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 8px;
  padding: 0 9px;
  background: rgba(16, 17, 23, 0.07);
}

.selected-signal-metrics span.is-up {
  color: #0f6b4f;
}

.selected-signal-metrics span.is-down {
  color: #b94633;
}

.selected-signal-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.selected-signal-stats div {
  min-width: 0;
  border: 1px solid rgba(16, 17, 23, 0.08);
  border-radius: 8px;
  padding: 9px 10px;
  background:
    linear-gradient(150deg, rgba(16, 17, 23, 0.05), rgba(255, 255, 255, 0.66)),
    rgba(255, 255, 255, 0.42);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
}

.selected-signal-stats span,
.selected-signal-stats small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

.selected-signal-stats strong {
  display: block;
  margin: 5px 0 3px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
}

.selected-signal-panel .selected-signal-note {
  margin-top: 12px;
  border-top: 1px solid rgba(16, 17, 23, 0.1);
  padding-top: 10px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.42;
}

.selected-signal-mix {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  border: 1px solid rgba(16, 17, 23, 0.08);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.4);
}

.selected-mix-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.selected-mix-head span,
.selected-mix-legend span,
.selected-signal-focus span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.selected-mix-head strong {
  color: var(--ink);
  font-size: 13px;
}

.selected-mix-stack {
  display: flex;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(16, 17, 23, 0.1);
}

.selected-mix-stack i {
  min-width: 4px;
}

.selected-mix-stack .sale {
  background: linear-gradient(90deg, #ff8a6f, var(--coral));
}

.selected-mix-stack .villa {
  background: linear-gradient(90deg, #d8bd73, #a8793c);
}

.selected-mix-stack .rent {
  background: linear-gradient(90deg, #34dac3, var(--teal));
}

.selected-mix-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.selected-signal-focus {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.selected-signal-focus div {
  min-width: 0;
  border-radius: 8px;
  padding: 9px;
  background: rgba(16, 17, 23, 0.055);
}

.selected-signal-focus strong {
  display: block;
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.2;
}

.rank-badge {
  width: 78px;
  padding: 10px;
  text-align: center;
}

.rank-badge strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}

.market-copy {
  min-height: 64px;
  margin: 14px 0;
  padding: 12px;
  border-left: 5px solid var(--coral);
  color: var(--ink-soft);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(248, 239, 222, 0.78)),
    rgba(255, 255, 255, 0.5);
  font-size: 16px;
  font-weight: 780;
  line-height: 1.38;
  box-shadow:
    0 16px 36px rgba(56, 42, 21, 0.09),
    0 1px 0 rgba(255, 255, 255, 0.82) inset;
}

.district-compare {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
  border: 1px solid rgba(16, 17, 23, 0.12);
  border-radius: 8px;
  padding: 11px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(238, 228, 209, 0.62)),
    rgba(255, 250, 240, 0.58);
  box-shadow:
    0 16px 34px rgba(56, 46, 29, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.84) inset;
}

.compare-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.compare-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
}

.compare-head strong {
  min-height: 22px;
  border-radius: 8px;
  padding: 4px 8px;
  color: #06140f;
  background: rgba(18, 200, 173, 0.18);
  font-size: 11px;
  font-weight: 950;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.compare-grid div {
  min-width: 0;
  border-radius: 8px;
  padding: 8px;
  background: rgba(16, 17, 23, 0.055);
}

.compare-grid span,
.compare-grid small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

.compare-grid strong {
  display: block;
  margin: 5px 0 4px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1;
}

.compare-grid strong.is-up {
  color: #0f6b4f;
}

.compare-grid strong.is-down {
  color: #b94633;
}

.metric-grid,
.signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.signal-grid {
  margin-top: 8px;
}

.district-brief {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
  background:
    linear-gradient(150deg, rgba(16, 17, 23, 0.04), rgba(255, 255, 255, 0.72) 34%, rgba(238, 228, 209, 0.7)),
    rgba(255, 250, 240, 0.76);
}

.brief-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.brief-head strong {
  min-height: 24px;
  border-radius: 8px;
  padding: 5px 9px;
  color: #06140f;
  background: linear-gradient(180deg, rgba(215, 255, 87, 0.72), rgba(18, 200, 173, 0.3));
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.district-brief p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.45;
}

.brief-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.brief-metrics div {
  min-width: 0;
  border-radius: 8px;
  padding: 8px;
  background: rgba(16, 17, 23, 0.055);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
}

.brief-metrics span,
.brief-metrics small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.16;
}

.brief-metrics strong {
  display: block;
  margin: 5px 0 4px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
}

.brief-metrics strong.is-up {
  color: #0f6b4f;
}

.brief-metrics strong.is-down {
  color: #b94633;
}

.brief-bars {
  display: grid;
  gap: 7px;
}

.brief-bar-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 48px;
  gap: 8px;
  align-items: center;
}

.brief-bar-row span,
.brief-bar-row strong {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 900;
}

.brief-bar-row strong {
  text-align: right;
}

.brief-bar-row i {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(16, 17, 23, 0.1);
}

.brief-bar-row b {
  display: block;
  height: 100%;
  min-width: 5%;
  border-radius: inherit;
}

.brief-bar-row b.sale {
  background: linear-gradient(90deg, #ff8a6f, var(--coral));
}

.brief-bar-row b.villa {
  background: linear-gradient(90deg, #d8bd73, #a8793c);
}

.brief-bar-row b.rent,
.brief-bar-row b.up {
  background: linear-gradient(90deg, #3f74ff, var(--teal));
}

.brief-bar-row b.monthly {
  background: linear-gradient(90deg, #e5c66e, #ffb649);
}

.brief-bar-row b.down {
  background: linear-gradient(90deg, #b4ad9e, #b94633);
}

.metric-card,
.signal-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 98px;
  min-height: 98px;
  padding: 11px 12px;
}

.metric-card strong,
.signal-card strong {
  display: block;
  align-self: center;
  margin-top: 4px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.metric-card small,
.signal-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.22;
}

.metric-card small.is-up,
.signal-card strong.is-up {
  color: #0f6b4f;
}

.metric-card small.is-down,
.signal-card strong.is-down {
  color: #b94633;
}

.chart-panel {
  display: flex;
  flex: 1 1 214px;
  flex-direction: column;
  min-height: 214px;
  margin-top: 10px;
  padding: 12px;
}

.chart-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 7px;
}

.chart-head strong {
  font-size: 13px;
}

.chart-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 900;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 26px;
  gap: 6px;
  border: 1px solid rgba(16, 17, 23, 0.1);
  border-radius: 8px;
  padding: 0 8px;
  color: var(--ink-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(238, 228, 209, 0.56)),
    rgba(255, 250, 240, 0.58);
  box-shadow:
    0 8px 18px rgba(42, 32, 18, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.84) inset;
  white-space: nowrap;
}

.legend-swatch {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.54),
    0 6px 12px rgba(0, 0, 0, 0.12);
}

.legend-swatch.sale {
  background: var(--coral);
}

.legend-swatch.rent {
  background: var(--teal);
}

.monthly-chart {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 164px;
}

.month-column {
  display: grid;
  grid-template-rows: 108px 20px 36px;
  align-items: end;
  min-height: 164px;
}

.bar-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  align-items: end;
  height: 108px;
  overflow: hidden;
  padding: 0 4px;
  border-bottom: 1px solid var(--line);
}

.bar {
  min-height: 8px;
  border-radius: 8px 8px 0 0;
}

.bar.sale {
  background: linear-gradient(180deg, #ff8a6f, var(--coral));
  box-shadow: 0 10px 20px rgba(255, 104, 77, 0.24);
}

.bar.rent {
  background: linear-gradient(180deg, #28ddc4, var(--teal));
  box-shadow: 0 10px 20px rgba(18, 200, 173, 0.24);
}

.month-label {
  display: grid;
  place-items: end center;
  height: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.month-values {
  display: grid;
  grid-template-rows: repeat(2, 16px);
  align-content: center;
  gap: 2px;
  min-width: 0;
  height: 36px;
  text-align: center;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
}

.month-value {
  white-space: nowrap;
}

.month-value strong {
  font-size: 11px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.month-value.sale {
  color: #a94636;
}

.month-value.rent {
  color: #087668;
}

.deal-strip {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 12px;
}

.top-sale-detail {
  display: grid;
  gap: 3px;
}

.top-sale-detail strong,
.top-sale-band strong {
  font-size: 15px;
  line-height: 1.28;
}

.top-sale-detail small,
.top-sale-band small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.deal-subhead {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.top-sale-bands {
  display: grid;
  gap: 4px;
}

.top-sale-band {
  display: grid;
  grid-template-columns: minmax(68px, 0.42fr) minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  padding-top: 5px;
  border-top: 1px solid rgba(16, 17, 23, 0.08);
}

.top-sale-band > span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.top-sale-band > span small {
  color: var(--muted);
}

.top-sale-empty {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.bottom-band {
  margin-top: 18px;
  padding: 18px;
}

.bottom-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.source-notice {
  max-width: 520px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-align: right;
}

.district-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.district-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  color: var(--ink);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.72), rgba(244, 234, 216, 0.68)),
    rgba(255, 255, 255, 0.5);
  text-align: left;
  box-shadow:
    0 12px 26px rgba(40, 29, 16, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.district-row.is-active {
  border-color: var(--ink);
  background:
    linear-gradient(155deg, #fffaf0, #efe2c9),
    var(--cream);
}

.district-row .mini-rank {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--cream);
  background: linear-gradient(180deg, #242734, #0d0f15);
  font-weight: 900;
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

.district-row strong {
  display: block;
}

.district-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.district-row .heat-dot {
  width: 12px;
  height: 38px;
  border-radius: 8px;
  background: var(--teal);
}

.ops-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(420px, 0.82fr);
  align-items: stretch;
  gap: 18px;
  margin-top: 18px;
}

.ops-panel {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255, 250, 239, 0.98), rgba(234, 224, 205, 0.97)),
    var(--panel);
  box-shadow: var(--shadow);
}

.ops-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.42), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 42%);
  pointer-events: none;
}

.ops-panel > * {
  position: relative;
  z-index: 1;
}

.ops-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(16, 17, 23, 0.1);
}

.ops-panel-head > div {
  display: grid;
  gap: 3px;
}

.ops-panel-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
}

.ops-panel-head strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.08;
}

.ops-panel-head small {
  max-width: 220px;
  color: rgba(21, 23, 30, 0.72);
  font-size: 11px;
  font-weight: 820;
  line-height: 1.35;
  text-align: right;
}

.ops-panel-copy {
  max-width: 780px;
  margin: 0 0 14px;
  color: rgba(21, 23, 30, 0.72);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.56;
}

.signal-log,
.watchlist {
  display: grid;
  gap: 7px;
}

.signal-log-row,
.watch-row {
  display: grid;
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(16, 17, 23, 0.1);
  border-radius: 8px;
  color: var(--ink);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.72), rgba(244, 234, 216, 0.68)),
    rgba(255, 255, 255, 0.5);
  text-align: left;
  box-shadow:
    0 12px 26px rgba(40, 29, 16, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.signal-log-row {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 9px 12px;
  align-items: start;
  min-height: 96px;
  padding: 12px;
}

.signal-log-row strong,
.watch-row strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.22;
}

.signal-log-main,
.watch-body {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.signal-log-main small,
.watch-body small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal-log-main em,
.watch-body em {
  color: rgba(21, 23, 30, 0.75);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
  line-height: 1.42;
}

.log-next {
  grid-column: 2;
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 5px 8px;
  color: #075f52;
  background: rgba(18, 200, 173, 0.12);
  font-size: 11px;
  font-weight: 920;
  line-height: 1.2;
}

.log-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  border-radius: 8px;
  padding: 0 8px;
  color: #0a1713;
  background: rgba(18, 200, 173, 0.16);
  font-size: 11px;
  font-weight: 950;
}

.log-level.is-risk {
  color: #fffaf0;
  background: linear-gradient(180deg, #d95742, #9d372a);
}

.log-level.is-watch {
  color: #3a2704;
  background: rgba(255, 200, 74, 0.34);
}

.watch-row {
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: start;
  min-height: 112px;
  padding: 12px;
}

.watch-row.is-active {
  border-color: rgba(16, 17, 23, 0.38);
  box-shadow:
    0 14px 28px rgba(25, 21, 14, 0.12),
    0 0 0 3px rgba(18, 200, 173, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.84) inset;
}

.watch-tag {
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 8px;
  color: #075f52;
  background: rgba(18, 200, 173, 0.14);
  font-size: 11px;
  font-weight: 950;
  line-height: 1.2;
  text-align: center;
}

.watch-row b {
  grid-column: 2;
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 5px 8px;
  color: #3a2704;
  background: rgba(255, 200, 74, 0.24);
  font-size: 11px;
  font-weight: 930;
  line-height: 1.2;
}

.empty-monitoring {
  border: 1px dashed rgba(16, 17, 23, 0.18);
  border-radius: 8px;
  padding: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.38);
  font-size: 13px;
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: none;
  max-width: min(420px, calc(100vw - 36px));
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--cream);
  background: rgba(17, 17, 15, 0.94);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.36);
  font-weight: 760;
}

@media (prefers-reduced-motion: reduce) {
  .flip-rank,
  .flip-rank::after,
  .flip-digit,
  .flip-digit::after,
  .heat-flip,
  .heat-flip::after,
  .top-signal-item::after,
  .ticker-track {
    animation: none;
  }
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .broadcast-strip,
  .refresh-form {
    width: 100%;
  }

  .dashboard {
    grid-template-columns: 1fr;
  }

  .insight-panel {
    min-height: auto;
  }

  .district-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .map-insight-deck {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

@media (max-width: 1180px) {
  .app-shell {
    width: min(100% - 20px, 1520px);
    padding-top: 10px;
  }

  .topbar,
  .map-section,
  .insight-panel,
  .bottom-band {
    padding: 12px;
  }

  .brand {
    gap: 10px;
    height: auto;
    padding-right: 0;
    border-right: 0;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  h1 {
    font-size: 22px;
    white-space: nowrap;
  }

  .refresh-form {
    grid-template-columns: 1fr;
  }

  .broadcast-strip {
    justify-content: flex-start;
    flex-wrap: wrap;
    white-space: normal;
  }

  .broadcast-strip::before,
  .broadcast-strip::after {
    display: none;
  }

  .broadcast-strip > span {
    min-width: 0;
  }

  .ticker-band {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .ticker-label {
    width: fit-content;
  }

  .ticker-track {
    gap: 24px;
    font-size: 13px;
  }

  .ops-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-more-popover {
    position: static;
    width: 100%;
    margin-top: 3px;
    flex-basis: 100%;
  }

  .ops-more-popover::before {
    display: none;
  }

  .signal-basis {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 10px;
  }

  .signal-basis p {
    grid-column: 1 / -1;
    white-space: normal;
  }

  .scene-board {
    grid-template-columns: 1fr;
  }

  .scene-main {
    min-height: auto;
  }

  .scene-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scene-card {
    min-height: 104px;
  }

  .section-head,
  .bottom-head {
    display: grid;
  }

  .summary-grid {
    min-width: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .summary-grid div {
    min-width: 0;
    padding: 9px;
  }

  .map-stage {
    min-height: 430px;
  }

  #seoulMap {
    height: 430px;
  }

  .district-label {
    font-size: 9px;
  }

  .map-callout {
    width: 150px;
  }

  .map-insight-deck {
    display: none;
  }

  .map-zoom-control {
    right: 10px;
    grid-template-rows: 32px 96px 32px;
    gap: 6px;
    width: 38px;
    padding: 6px 0;
  }

  .zoom-level-badge {
    top: -30px;
    min-width: 48px;
    height: 24px;
    font-size: 11px;
  }

  .zoom-button {
    width: 28px;
    height: 28px;
    font-size: 19px;
  }

  .zoom-rail {
    width: 5px;
    height: 96px;
  }

  .zoom-thumb {
    width: 14px;
    height: 14px;
  }

  .metric-grid,
  .signal-grid,
  .district-list {
    grid-template-columns: 1fr;
  }

  .brief-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brief-bar-row {
    grid-template-columns: 42px minmax(0, 1fr) 44px;
  }

  .top-sale-band {
    grid-template-columns: 1fr;
  }

  .source-notice {
    text-align: left;
  }

  .ops-workbench {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mode-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
  }

  .mode-tabs button {
    min-width: 0;
    padding: 0 6px;
    font-size: 13px;
  }

  .insight-panel .district-brief {
    order: 3;
    margin-top: 0;
    margin-bottom: 10px;
  }

  .insight-panel .district-compare {
    order: 4;
  }

  .insight-panel .metric-grid {
    order: 5;
  }

  .insight-panel .signal-grid {
    order: 6;
  }

  .insight-panel .deal-strip {
    order: 7;
  }

  .insight-panel .chart-panel {
    order: 8;
  }

  .metric-grid,
  .signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-card,
  .signal-card {
    height: auto;
    min-height: 86px;
  }

  .scene-card {
    align-items: start;
    min-height: 0;
  }

  .scene-card-body small,
  .signal-log-main small,
  .watch-body small {
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
  }

  .signal-log-row,
  .watch-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .log-level,
  .watch-tag {
    grid-row: auto;
    width: fit-content;
    max-width: 100%;
  }

  .log-next,
  .watch-row b {
    grid-column: 1;
    white-space: normal;
  }

  .ops-panel-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .ops-panel-head small {
    max-width: none;
    text-align: left;
  }

  .map-callout {
    width: 132px;
    padding: 8px 10px;
  }

  .map-callout strong {
    font-size: 20px;
  }
}

@media (max-width: 430px) {
  .mode-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mode-tabs button {
    min-height: 40px;
  }
}

.mobile-focus,
.mobile-scene-head,
.mobile-ops-head,
.mobile-quick-kpis,
.mobile-section-label,
.mobile-log-more {
  display: none;
}

@media (max-width: 600px) {
  body {
    min-width: 0;
  }

  .app-shell {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: calc(100% - 16px);
    padding: 8px 0 28px;
  }

  .app-shell > * {
    min-width: 0;
  }

  .topbar {
    order: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
    min-height: 0;
    padding: 12px;
    background: linear-gradient(145deg, #202934, #111820);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  }

  .brand {
    grid-column: 1 / -1;
    gap: 10px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .topbar .eyebrow {
    display: none;
  }

  .topbar h1 {
    font-size: 18px;
    line-height: 1.22;
    white-space: normal;
  }

  .topbar .brand-person,
  .topbar .brand-product {
    display: block;
  }

  .topbar .brand-person {
    margin-bottom: 2px;
    color: #fff9ef;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.12;
  }

  .topbar .brand-product {
    color: #c3d4d7;
    font-size: 15px;
    font-weight: 800;
  }

  .broadcast-strip {
    grid-column: 1;
    min-height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .broadcast-strip .live-pill {
    display: none;
  }

  #periodLabel {
    font-size: 11px;
    line-height: 1.3;
  }

  .refresh-form {
    grid-column: 2;
    grid-row: 2;
    width: auto;
    min-width: 0;
  }

  .refresh-form button {
    min-width: 105px;
    height: 34px;
    padding: 0 8px;
    font-size: 11px;
  }

  .mobile-focus {
    order: 1;
    display: grid;
    gap: 6px;
    border: 1px solid #d7e1df;
    border-left: 4px solid #13ad9b;
    border-radius: 6px;
    padding: 13px 14px;
    color: #202c35;
    background: #f7faf9;
    box-shadow: 0 8px 18px rgba(3, 13, 18, 0.11);
  }

  .mobile-focus-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    color: #53636c;
    font-size: 11px;
    font-weight: 800;
  }

  .mobile-focus-head small {
    color: #087768;
    font-size: 11px;
  }

  .mobile-focus > strong {
    font-size: 21px;
    line-height: 1.15;
  }

  .mobile-focus p {
    margin: 0;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.45;
    word-break: keep-all;
  }

  .mobile-focus-metric {
    color: #586870;
    font-size: 11px;
    font-weight: 800;
  }

  .ticker-band {
    display: none;
  }

  .dashboard {
    order: 2;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 0;
  }

  .map-section,
  .insight-panel,
  .ops-panel {
    min-height: 0;
    border-color: #dce3e1;
    border-radius: 6px;
    padding: 12px;
    background: #f8faf9;
    box-shadow: none;
  }

  .studio-panel::before,
  .ops-panel::before {
    display: none;
  }

  .map-section .section-head h2 {
    font-size: 18px;
  }

  .map-section .summary-grid {
    display: none;
  }

  .mode-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 12px 0 10px;
    overflow: visible;
  }

  .mode-tabs button {
    min-height: 40px;
    gap: 4px;
    padding: 0 4px;
    font-size: 12px;
    box-shadow: none;
  }

  .map-stage {
    min-height: 400px;
    box-shadow: none;
  }

  #seoulMap {
    height: 400px;
  }

  .map-callout {
    display: none;
  }

  .legend-row {
    gap: 7px;
    margin-top: 8px;
  }

  .legend-end strong {
    font-size: 12px;
  }

  .legend-center > span {
    font-size: 10px;
  }

  .insight-panel .section-head.tight {
    order: 1;
    display: flex;
    align-items: center;
  }

  .insight-panel .market-copy {
    order: 2;
    margin: 8px 0 0;
    font-size: 13px;
  }

  .mobile-quick-kpis {
    order: 3;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid #dce4e1;
    border-radius: 6px;
    background: #f1f5f3;
  }

  .mobile-quick-kpis > div {
    display: grid;
    align-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 74px;
    padding: 9px 11px;
    border-right: 1px solid #dce4e1;
    border-bottom: 1px solid #dce4e1;
  }

  .mobile-quick-kpis > div:nth-child(2n) {
    border-right: 0;
  }

  .mobile-quick-kpis > div:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .mobile-quick-kpis span,
  .mobile-quick-kpis small {
    color: #5d6a70;
    font-size: 10px;
    font-weight: 750;
  }

  .mobile-quick-kpis strong {
    overflow: hidden;
    color: #172630;
    font-size: 21px;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .insight-panel .district-brief {
    order: 4;
    margin-top: 12px;
    margin-bottom: 0;
    background: #fff;
    box-shadow: none;
  }

  .insight-panel .district-compare {
    order: 5;
    margin-top: 10px;
    box-shadow: none;
  }

  .mobile-section-label {
    order: 6;
    display: block;
    margin: 16px 0 8px;
    padding-top: 12px;
    border-top: 1px solid #dce4e1;
    color: #34434b;
    font-size: 15px;
  }

  .insight-panel .metric-grid {
    order: 7;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .insight-panel .metric-card:nth-child(-n+2),
  .insight-panel .signal-card:first-child {
    display: none;
  }

  .insight-panel .signal-grid {
    order: 8;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .insight-panel .metric-card,
  .insight-panel .signal-card {
    min-height: 78px;
    box-shadow: none;
  }

  .insight-panel .chart-panel {
    order: 9;
    flex: 0 0 auto;
    margin-top: 14px;
    box-shadow: none;
  }

  .insight-panel .deal-strip {
    order: 10;
    margin-top: 10px;
    box-shadow: none;
  }

  .scene-board {
    order: 3;
    display: block;
    margin-top: 0;
  }

  .mobile-scene-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 2px 8px;
    color: #eef4f1;
  }

  .mobile-scene-head h2 {
    margin: 0;
    font-size: 17px;
  }

  .mobile-scene-head span {
    color: #a7b8b5;
    font-size: 11px;
  }

  .scene-main {
    display: none;
  }

  .scene-cards {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .scene-card {
    display: none;
  }

  .scene-card.is-mobile-secondary {
    display: grid;
    min-height: 72px;
    border-color: #dce3e1;
    padding: 10px 12px;
    background: #f8faf9;
    box-shadow: none;
  }

  .scene-card::after {
    display: none;
  }

  .scene-card:hover,
  .scene-card.is-selected {
    box-shadow: 0 0 0 2px rgba(18, 170, 151, 0.16);
    transform: none;
  }

  .scene-card-body strong,
  .scene-card-body small {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .ops-strip {
    order: 4;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 0;
  }

  .mobile-ops-head {
    display: block;
    grid-column: 1 / -1;
    margin: 0 2px 2px;
    color: #eef4f1;
    font-size: 17px;
  }

  .ops-strip > div {
    grid-template-rows: auto auto auto;
    gap: 6px;
    min-height: 0;
    padding: 10px;
    box-shadow: none;
  }

  .ops-strip > div > p,
  .ops-strip > div > small {
    display: none;
  }

  .ops-strip > div > strong {
    gap: 4px;
  }

  .ops-strip > div > strong em {
    font-size: 20px;
  }

  .ops-strip > div > strong b {
    font-size: 10px;
  }

  .ops-workbench {
    order: 5;
    gap: 10px;
    margin-top: 0;
  }

  .ops-panel-copy {
    display: none;
  }

  .signal-panel:not(.is-expanded) .signal-log-row:nth-child(n+4) {
    display: none;
  }

  .mobile-log-more:not([hidden]) {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 44px;
    margin-top: 8px;
    border: 1px solid #cbd8d5;
    border-radius: 6px;
    color: #146b62;
    background: #eef5f3;
    font-size: 13px;
    font-weight: 850;
  }
}

@media (max-width: 360px) {
  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .summary-grid div:last-child {
    grid-column: auto;
  }

  .scene-cards {
    grid-template-columns: 1fr;
  }

  .ops-strip {
    grid-template-columns: 1fr;
  }

  .signal-basis {
    grid-template-columns: 1fr;
  }

  .signal-basis span,
  .signal-basis strong {
    width: fit-content;
  }
}

/* 갱신 버튼 칸: 방문자 화면에서는 숨김 */
.refresh-form[hidden] {
  display: none;
}

/* 선택 구의 정비구역 */
.district-zones {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  border: 1px solid rgba(16, 17, 23, 0.12);
  border-radius: 8px;
  padding: 11px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(238, 228, 209, 0.62)),
    rgba(255, 250, 240, 0.58);
  box-shadow:
    0 16px 34px rgba(56, 46, 29, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.84) inset;
}

.district-zones[hidden] {
  display: none;
}

.district-zones-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.district-zones-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
}

.district-zones-head strong {
  border-radius: 8px;
  padding: 4px 8px;
  color: #06140f;
  background: rgba(18, 200, 173, 0.18);
  font-size: 11px;
  font-weight: 950;
}

.district-zones-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.district-zones-list li {
  border-bottom: 1px solid rgba(16, 17, 23, 0.08);
  font-size: 13px;
}

.district-zones-list li:last-child {
  border-bottom: 0;
}

.zone-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 2px;
  color: var(--ink);
  text-decoration: none;
}

.zone-row:hover,
.zone-row:active {
  background: rgba(16, 17, 23, 0.05);
}

.zone-row-name {
  flex: 1;
  min-width: 0;
  font-weight: 800;
  word-break: keep-all;
}

.zone-row-note {
  flex: none;
  color: var(--muted);
  font-size: 12px;
}

.zone-row-chevron {
  flex: none;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.rank-badge strong small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.district-zones-more {
  display: block;
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--acid);
  background: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

/* 출처 · 안내 */
.site-foot {
  margin: 18px 0 8px;
  padding: 0 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.6;
}

.site-foot p {
  margin: 2px 0;
}

/* 좁은 화면: 섹션 순서를 정하는 규칙에 새 칸을 끼워 넣는다 */
@media (max-width: 768px) {
  .insight-panel .district-zones {
    order: 3;
  }
}

@media (max-width: 600px) {
  .insight-panel .district-zones {
    order: 4;
  }

  .site-foot {
    order: 99;
  }
}

.rank-badge {
  width: auto;
  min-width: 78px;
}


/* ===================== 정비구역 기능(원래 대시보드 부품에 맞춤) ===================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* 머리 카드의 구역·구 찾기(방송 띠와 같은 어두운 칸) */
.zone-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: 8px;
  color: rgba(255, 250, 240, 0.78);
  background: rgba(255, 255, 255, 0.05);
}

.zone-search:focus-within {
  border-color: rgba(255, 250, 240, 0.5);
}

.zone-search input {
  flex: 1;
  min-width: 0;
  height: 42px;
  border: 0;
  outline: 0;
  color: var(--cream);
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
}

.zone-search input::placeholder {
  color: rgba(255, 250, 240, 0.58);
}

.zone-search-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 40;
  max-height: 360px;
  margin: 0;
  padding: 4px 12px;
  overflow-y: auto;
  list-style: none;
  border: 1px solid rgba(16, 17, 23, 0.12);
  border-radius: 8px;
  color: var(--ink);
  background: #fffaf0;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.zone-search-list[hidden] {
  display: none;
}

.zone-search-list li {
  border-bottom: 1px solid rgba(16, 17, 23, 0.08);
  font-size: 14px;
}

.zone-search-list li:last-child {
  border-bottom: 0;
}

.zone-search-list li.is-active .zone-row {
  background: rgba(16, 17, 23, 0.06);
}

.zone-search-empty {
  padding: 12px 2px;
  color: var(--muted);
}

/* 지도 아래 단계 칩(지표 버튼과 같은 모양, 조금 작게) */
.zone-stage-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-right: 6px;
  border: 1px solid #ffffff;
  border-radius: 50%;
  vertical-align: middle;
}

.zone-stage-tabs {
  flex-wrap: wrap;
  margin: 10px 0 4px;
  overflow: visible;
}

.zone-stage-tabs[hidden] {
  display: none;
}

.zone-stage-tabs button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
  cursor: pointer;
}

.zone-stage-tabs button b {
  margin-left: 4px;
  font-weight: 900;
}

@media (max-width: 600px) {
  .zone-stage-tabs button {
    padding: 0 4px;
    font-size: 12px;
  }

  .zone-stage-tabs button b {
    margin-left: 0;
  }
}

/* 이 구의 정비구역: 단계별 수 */
.district-zones-stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.zone-stage-stat {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid rgba(16, 17, 23, 0.1);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.zone-stage-stat > span:first-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.zone-stage-stat strong {
  margin-top: 4px;
  font-size: 24px;
  line-height: 1;
}

.zone-stage-stat .zone-row-chevron {
  position: absolute;
  top: 8px;
  right: 10px;
}

.zone-stage-stat.is-zero strong {
  color: rgba(16, 17, 23, 0.4);
}

.zone-stage-stat:hover {
  border-color: rgba(16, 17, 23, 0.28);
}

.district-zones-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.district-zones-sub[hidden] {
  display: none;
}

.district-zones-sub strong {
  color: var(--ink);
  font-weight: 900;
}

.zone-row-name small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.zone-row-note small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}

.zone-changed {
  border-radius: 6px;
  padding: 1px 6px;
  color: #06140f;
  background: rgba(18, 200, 173, 0.22);
  font-size: 11px;
}

.zone-empty {
  padding: 12px 2px;
  color: var(--muted);
  font-size: 13px;
}

/* 최근 올라온 인가 · 주간 재개발 소식(원래 아래 칸 모양) */
.zone-workbench {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.zone-workbench .ops-panel {
  display: flex;
  flex-direction: column;
}

.zone-workbench .district-zones-list {
  margin-bottom: 10px;
}

.weekly-panel .ops-panel-copy {
  display: block;
}

.weekly-panel .zone-row-note {
  max-width: 60%;
  text-align: right;
  word-break: keep-all;
}

.zone-change-meaning { display: block; margin: 0 2px 8px; color: var(--muted); font-size: 11px; font-weight: 700; }

.zone-more-button {
  display: block;
  width: 100%;
  margin-top: 8px;
  min-height: 40px;
  border: 1px solid rgba(16, 17, 23, 0.16);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.zone-more-button[hidden] {
  display: none;
}

.zone-workbench .zone-more-button,
.zone-workbench .district-zones-more {
  margin-top: auto;
}

@media (max-width: 1180px) {
  .zone-search {
    grid-column: 1 / -1;
  }

  .zone-workbench {
    grid-template-columns: 1fr;
  }
}

/* 지도 위 정비구역 위치 */
.zone-point-hint {
  position: absolute;
  z-index: 5;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 100px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 16px 34px rgba(56, 46, 29, 0.1), 0 1px 0 rgba(255, 255, 255, 0.84) inset;
  font-size: 12px;
  line-height: 1.5;
  word-break: keep-all;
}

.zone-point-hint button {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 4px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-size: 20px;
}

.zone-wheel-hint {
  top: auto;
  bottom: 16px;
  pointer-events: none;
}

.zone-point-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.zone-point-popup {
  z-index: 6;
  color: var(--ink);
  font: 13px/1.5 var(--font-sans);
}

.zone-point-popup .maplibregl-popup-content {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--panel);
  box-shadow: 0 16px 34px rgba(56, 46, 29, 0.1), 0 1px 0 rgba(255, 255, 255, 0.84) inset;
}

.zone-point-popup strong {
  display: block;
  padding-right: 12px;
  font-size: 15px;
}

.zone-point-popup p {
  margin: 6px 0 12px;
  color: var(--muted);
}

.zone-point-popup .maplibregl-popup-close-button { padding: 3px 7px; }

.zone-point-popup.maplibregl-popup-anchor-top .maplibregl-popup-tip,
.zone-point-popup.maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
.zone-point-popup.maplibregl-popup-anchor-top-right .maplibregl-popup-tip {
  border-bottom-color: var(--panel);
}

.zone-point-popup.maplibregl-popup-anchor-bottom .maplibregl-popup-tip,
.zone-point-popup.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,
.zone-point-popup.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip {
  border-top-color: var(--panel);
}

.zone-point-popup.maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: var(--panel); }
.zone-point-popup.maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: var(--panel); }
