@font-face {
  font-family: Onest;
  src: url("/static/fonts/onest.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #f3f5f8;
  --surface: #fff;
  --surface-2: #f7f9fc;
  --text: #18253e;
  --muted: #647087;
  --border: #e5e9f0;
  --blue: #315de9;
  --blue-soft: #edf2ff;
  --gold: #ad7830;
  --gold-soft: #fbf3e6;
  --green: #177958;
  --red: #c14c5c;
  --sidebar: #14233c;
  --shadow: 0 10px 30px #16263f07;
  --radius: 16px;
  --font: Onest, system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #121b2b;
  --surface: #1a263a;
  --surface-2: #202e43;
  --text: #ecf1fa;
  --muted: #a6b3c9;
  --border: #304057;
  --blue: #8aa8ff;
  --blue-soft: #26395a;
  --gold: #e9bb72;
  --gold-soft: #433825;
  --green: #74d3ad;
  --red: #ff96a3;
  --sidebar: #0c1627;
  --shadow: 0 10px 30px #0001;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
}
button,
input,
select {
  min-height: 42px;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
a {
  color: var(--blue);
}
button,
select,
a {
  transition:
    background 0.18s,
    color 0.18s,
    box-shadow 0.18s;
}
input,
select {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  min-width: 0;
}
input:focus,
select:focus {
  border-color: var(--blue);
}
:focus-visible {
  outline: 3px solid #7397ff;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -1.1px;
}
h2 {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.35px;
}
h3 {
  font-size: 15px;
  font-weight: 650;
}
svg.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  flex: none;
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -60px;
  z-index: 10000;
  background: var(--surface);
  padding: 12px;
}
.skip-link:focus {
  top: 12px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 224px;
  background: var(--sidebar);
  color: #c5d0e1;
  display: flex;
  flex-direction: column;
  padding: 34px 18px 18px;
  z-index: 100;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
  font-size: 19px;
  letter-spacing: -0.5px;
  font-weight: 600;
  white-space: nowrap;
}
.brand small {
  display: block;
  font-size: 10px;
  color: #9dacbf;
  letter-spacing: 0.2px;
  font-weight: 400;
  margin-top: 3px;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: #d5af6d;
  color: #172740;
  border-radius: 12px 12px 3px 12px;
  width: 38px;
  height: 42px;
  font-size: 25px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px #fff3;
}
.sidebar nav {
  margin-top: 48px;
  display: grid;
  gap: 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 11px 15px;
  border-radius: 9px;
  min-height: 46px;
  font-size: 13px;
}
.nav-item:hover {
  background: #ffffff0a;
  color: #fff;
}
.nav-item.active {
  background: #ffffff12;
  color: #fff;
  box-shadow: inset 3px 0 0 #d5af6d;
}
.nav-item.active svg {
  color: #e4c28b;
}
.sidebar-bottom {
  margin-top: auto;
}
.scope-note {
  font-size: 11px;
  padding: 16px;
  margin-bottom: 12px;
  color: #d7dfeb;
}
.scope-note small {
  display: block;
  padding-left: 16px;
  font-size: 10px;
  color: #8fa2bd;
  margin-top: 5px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7cc6a6;
  margin-right: 9px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #ffffff12;
  padding: 19px 8px 0;
  margin-top: 16px;
  font-size: 12px;
  color: #fff;
}
.profile small {
  display: block;
  color: #90a0b7;
  font-size: 10px;
}
.profile form {
  margin-left: auto;
}
.avatar {
  height: 32px;
  width: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #31415c;
  color: #dfc594;
  font-weight: 600;
}
.workspace {
  margin-left: 224px;
  padding: 0 34px 24px;
  max-width: 2040px;
}
.topbar {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb span {
  margin: 0 14px;
  color: #9da7b7;
}
.breadcrumb strong {
  font-weight: 500;
  color: var(--text);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.freshness {
  font-size: 11px;
  color: var(--muted);
  margin-right: 10px;
}
.freshness:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 8px;
}
.freshness.warning:before {
  background: var(--gold);
}
.icon-button {
  width: 40px;
  min-height: 40px;
  display: grid;
  place-items: center;
  border-radius: 9px;
}
.icon-button:hover {
  background: var(--border);
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 31px 0 25px;
}
.page-heading p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 7px;
}
.secondary,
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 9px;
  padding: 9px 15px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.secondary {
  background: var(--surface);
  border: 1px solid var(--border);
}
.secondary:hover {
  background: var(--surface-2);
  border-color: #a5b1c7;
}
.primary {
  background: #315de9;
  color: #fff;
}
.primary:hover {
  background: #254ed1;
}
.text-button {
  color: var(--blue);
  font-size: 12px;
  min-height: 40px;
}
.text-button:hover {
  text-decoration: underline;
}
.filters {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 8px 10px 0;
  position: relative;
  z-index: 20;
  margin-bottom: 18px;
}
.filter-caption {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  margin-bottom: 1px;
}
.select-control,
.network-picker,
.date-control {
  padding: 4px 11px 8px;
  border-right: 1px solid var(--border);
  flex: 1;
  min-width: 110px;
}
.select-control select {
  border: 0;
  padding: 0 18px 0 0;
  background: transparent;
  font-size: 12px;
  width: 100%;
  min-height: 30px;
}
.network-picker {
  position: relative;
  min-width: 150px;
}
.network-picker summary {
  list-style: none;
  cursor: pointer;
  font-size: 12px;
  position: relative;
  min-height: 43px;
  padding-right: 18px;
}
.network-picker summary::-webkit-details-marker {
  display: none;
}
.chevron {
  position: absolute;
  right: 0;
  top: 17px;
}
.network-popover {
  position: absolute;
  top: 62px;
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 265px;
  padding: 10px 12px;
  box-shadow: 0 12px 40px #101a3230;
  z-index: 100;
}
.network-popover label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px;
  font-size: 12px;
}
.network-popover input {
  min-height: 20px;
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}
.popover-actions {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  margin-bottom: 5px;
  font-size: 12px;
  color: var(--blue);
}
.date-control {
  flex: 1.6;
  min-width: 260px;
  border: 0;
}
.date-control > div {
  display: flex;
  align-items: center;
  gap: 4px;
}
.date-control input {
  width: 118px;
  font-size: 11px;
  padding: 0;
  border: 0;
  min-height: 30px;
  background: transparent;
}
.date-control > div > span {
  color: var(--muted);
  font-size: 11px;
}
.filters > #reset {
  align-self: center;
  min-height: 40px;
}
.quick-periods {
  flex-basis: 100%;
  display: flex;
  gap: 4px;
  align-items: center;
  border-top: 1px solid var(--border);
  padding: 6px 7px;
  color: var(--muted);
  font-size: 10px;
}
.quick-periods > span:first-child {
  margin-right: 8px;
}
.quick-periods button {
  font-size: 10px;
  min-height: 28px;
  padding: 3px 10px;
  border-radius: 5px;
}
.quick-periods button:hover {
  background: var(--surface-2);
}
.quick-periods button.selected {
  background: var(--blue-soft);
  color: var(--blue);
}
.filter-state {
  margin-left: auto;
  font-size: 10px;
}
.notice {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 12px 16px;
  background: var(--gold-soft);
  border: 1px solid #cfa96840;
  border-radius: 10px;
  color: var(--gold);
  font-size: 12px;
  margin-bottom: 18px;
}
.error-state {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--red);
  border-radius: 12px;
  margin: 20px 0;
}
.loading-state {
  padding: 100px 20px;
  text-align: center;
  color: var(--muted);
}
.loading-state p {
  margin-top: 8px;
  font-size: 13px;
}
.loading-line {
  width: 160px;
  height: 3px;
  background: var(--border);
  margin: 0 auto 24px;
  overflow: hidden;
  border-radius: 5px;
}
.loading-line:after {
  content: "";
  display: block;
  width: 60%;
  height: 100%;
  background: var(--blue);
  animation: loading 1.3s ease-in-out infinite;
}
@keyframes loading {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(180%);
  }
}
.metrics {
  display: grid;
  grid-template-columns: 1.08fr 1fr 1fr 1fr;
  gap: 16px;
}
.metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px 17px;
  min-width: 0;
  box-shadow: var(--shadow);
}
.metric-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.metric-title svg {
  width: 17px;
}
.metric-number {
  font-size: 35px;
  letter-spacing: -1.2px;
  font-weight: 600;
  line-height: 1.25;
  margin: 13px 0 12px;
  font-variant-numeric: tabular-nums;
}
.metric-number small {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 8px;
  color: var(--muted);
}
.metric-foot {
  font-size: 10px;
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  justify-content: space-between;
  flex-wrap: wrap;
}
.metric-lead {
  background: #213b63;
  color: #fff;
  border-color: #213b63;
  position: relative;
  overflow: hidden;
}
.metric-lead:after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border: 1px solid #ffffff0c;
  border-radius: 50%;
  right: -30px;
  top: 25px;
  box-shadow:
    0 0 0 24px #ffffff04,
    0 0 0 48px #ffffff03;
  pointer-events: none;
}
.metric-lead .metric-title,
.metric-lead .metric-foot {
  color: #bbcae1;
}
.metric-lead .metric-number {
  font-size: 39px;
  color: #fff;
  margin-top: 9px;
}
.format-dot {
  width: 7px;
  height: 7px;
  display: block;
  border-radius: 50%;
}
.pawn {
  background: var(--blue);
}
.jewelry {
  background: var(--gold);
}
.delta-up {
  color: var(--green);
}
.delta-down {
  color: var(--red);
}
.delta-neutral {
  color: var(--muted);
}
.delta-up,
.delta-down {
  font-weight: 500;
}
.snapshot-label {
  font-size: 10px;
  color: var(--muted);
  margin: 12px 2px 20px;
}
.view-panel {
  animation: panel-in 0.3s ease both;
}
@keyframes panel-in {
  from {
    opacity: 0.3;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr);
  gap: 20px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px 17px;
  gap: 15px;
}
.panel-heading p {
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}
.segmented {
  display: flex;
  background: var(--surface-2);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--border);
  flex: none;
}
.segmented button {
  min-height: 30px;
  padding: 4px 10px;
  font-size: 10px;
  border-radius: 5px;
  color: var(--muted);
}
.segmented button.selected {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 4px #00000010;
}
.chart-wrap {
  height: 270px;
  position: relative;
  margin: 0 21px 6px;
}
.chart-legend {
  display: flex;
  gap: 10px 16px;
  flex-wrap: wrap;
  margin: 15px 24px 0;
  font-size: 10px;
  color: var(--muted);
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend-item i {
  height: 3px;
  width: 14px;
  display: block;
  border-radius: 2px;
}
.panel-note {
  font-size: 10px;
  color: var(--muted);
  padding: 14px 24px 18px;
  line-height: 1.6;
}
.count-badge {
  font-size: 11px;
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 6px;
  color: var(--muted);
}
.network-ranking {
  padding: 0 24px 18px;
}
.rank-row {
  width: 100%;
  display: block;
  text-align: left;
  padding: 8px 0;
  min-height: 39px;
}
.rank-row:hover .rank-label {
  color: var(--blue);
}
.rank-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  gap: 8px;
}
.rank-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.network-dot {
  display: inline-block;
  height: 7px;
  width: 7px;
  border-radius: 50%;
  flex: none;
}
.rank-number {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 12px;
}
.rank-bar {
  height: 4px;
  background: var(--surface-2);
  border-radius: 5px;
  margin-top: 7px;
}
.rank-bar i {
  height: 4px;
  display: block;
  border-radius: 5px;
  min-width: 2px;
  transition: width 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.lower-grid {
  display: grid;
  grid-template-columns: 1fr 1.22fr;
  gap: 20px;
  margin-top: 20px;
}
.city-ranking {
  padding: 0 24px 17px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 26px;
}
.city-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  gap: 8px;
  min-height: 43px;
  text-align: left;
}
.city-row:hover {
  color: var(--blue);
}
.city-row b {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.event-list {
  padding: 0 24px 16px;
}
.event-row {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  width: 100%;
  text-align: left;
  align-items: center;
  min-height: 55px;
}
.event-row:last-child {
  border: 0;
}
.event-symbol {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  flex: none;
  font-size: 15px;
}
.event-symbol.new,
.event-symbol.returned {
  background: color-mix(in srgb, var(--green) 10%, transparent);
  color: var(--green);
}
.event-symbol.absent {
  background: color-mix(in srgb, var(--red) 10%, transparent);
  color: var(--red);
}
.event-info {
  flex: 1;
  min-width: 0;
}
.event-info strong {
  font-weight: 500;
  font-size: 11px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.event-info small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
}
.event-date {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}
.empty-state {
  padding: 35px 12px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}
.empty-state strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 5px;
}
.sources-panel {
  margin-top: 20px;
}
.source-health {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 24px 20px;
  gap: 15px;
}
.source-item {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px;
  font-size: 11px;
}
.source-item strong {
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
}
.source-item small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  font-size: 10px;
}
.health-label {
  font-size: 10px;
  color: var(--green);
}
.health-label.warning {
  color: var(--gold);
}
.health-label.error {
  color: var(--red);
}
.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  margin-top: 25px;
  padding: 0 2px;
}
.page-footer > span:first-child {
  font-weight: 600;
  letter-spacing: -0.2px;
}
.page-footer button {
  font-size: 10px;
}
.map-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.checkbox-label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
}
.checkbox-label input {
  accent-color: var(--blue);
  min-height: 16px;
  width: 16px;
  height: 16px;
}
.map-panel #map {
  height: 560px;
  background: #e9eef1;
  z-index: 1;
}
.map-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 14px 24px 0;
  color: var(--muted);
  font-size: 11px;
}
.map-footer > span {
  display: flex;
  gap: 7px;
  align-items: center;
}
.legend-point,
.legend-city {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--blue);
  border: 2px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--blue);
}
.legend-city {
  background: none;
  border: 1px dashed var(--blue);
  box-shadow: none;
  width: 12px;
  height: 12px;
}
.atlas-marker {
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px #0d244a66;
  background: var(--marker-color);
  width: 15px !important;
  height: 15px !important;
}
.atlas-marker.approx {
  background: #fff9;
  border: 2px dashed var(--marker-color);
  width: 17px !important;
  height: 17px !important;
}
.atlas-cluster {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #263f70;
  color: white;
  font: 600 12px var(--font);
  border: 4px solid #ffffffb3;
  box-shadow: 0 2px 10px #162b5022;
}
.leaflet-popup-content {
  font-family: var(--font);
  min-width: 180px;
  color: #18253e;
}
.leaflet-popup-content strong {
  display: block;
  margin-bottom: 4px;
}
.leaflet-popup-content p {
  margin: 5px 0;
  font-size: 11px;
}
.leaflet-popup-content button {
  color: #315de9;
  font-size: 12px;
  padding: 0;
  min-height: 32px;
}
.leaflet-container a {
  color: #264ec8;
}
.leaflet-control-attribution {
  font-size: 9px !important;
}
.leaflet-control-zoom a {
  font-family: var(--font) !important;
}
.leaflet-marker-icon:focus {
  outline: 3px solid #315de9;
}
.points-heading {
  align-items: flex-start;
}
.table-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-input {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 11px;
  color: var(--muted);
}
.search-input input {
  border: 0;
  max-width: 240px;
  background: transparent;
  padding-left: 0;
  font-size: 12px;
}
.search-input svg {
  width: 16px;
}
.table-controls select {
  font-size: 11px;
}
.table-scroll {
  width: 100%;
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  text-align: left;
}
th {
  font-weight: 500;
  color: var(--muted);
  background: var(--surface-2);
  white-space: nowrap;
}
th,
td {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  vertical-align: middle;
}
th button {
  min-height: 24px;
  padding: 0;
  font-size: inherit;
}
td {
  line-height: 1.6;
}
tbody tr:hover {
  background: var(--surface-2);
}
td small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  max-width: 360px;
}
td .network-label {
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}
.format-tag,
.state-tag {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 9px;
  background: var(--blue-soft);
  color: var(--blue);
  margin: 2px 3px 2px 0;
  white-space: nowrap;
}
.format-tag.jewelry {
  color: var(--gold);
  background: var(--gold-soft);
}
.state-tag {
  color: var(--green);
  background: color-mix(in srgb, var(--green) 9%, transparent);
}
.state-tag.warning {
  color: var(--gold);
  background: var(--gold-soft);
}
.state-tag.absent {
  color: var(--muted);
  background: var(--surface-2);
}
.point-link {
  font-size: 11px;
  text-align: left;
  padding: 0;
  min-height: 32px;
  color: var(--blue);
  white-space: nowrap;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  color: var(--muted);
  font-size: 11px;
}
.pagination > div {
  display: flex;
  gap: 8px;
}
.history-tabs {
  display: inline-flex;
  margin-bottom: 18px;
}
.history-tabs button {
  padding: 7px 16px;
  font-size: 12px;
}
.history-list .event-row {
  padding: 15px 0;
}
.history-list .event-info strong {
  font-size: 12px;
}
.history-list .event-info small {
  font-size: 11px;
}
.more-button {
  margin: 0 24px 20px;
}
.archive-notice {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  padding: 0 24px 24px;
  max-width: 900px;
}
.history-list {
  max-height: none;
}
.point-dialog,
.method-dialog {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0;
  box-shadow: 0 10px 80px #00123533;
}
.point-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: 510px;
  max-width: 95vw;
  max-height: 100dvh;
  height: 100dvh;
  border-radius: 18px 0 0 18px;
  animation: drawer-in 0.25s ease;
}
.method-dialog {
  max-width: 650px;
  width: 90vw;
  border-radius: 18px;
  max-height: 85dvh;
}
.point-dialog::backdrop,
.method-dialog::backdrop {
  background: #0d1b3366;
  backdrop-filter: blur(3px);
}
@keyframes drawer-in {
  from {
    transform: translateX(30px);
    opacity: 0.2;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.drawer-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 2;
}
.drawer-heading h2 {
  color: var(--text);
}
#point-content {
  padding: 25px 28px 40px;
}
.point-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}
.point-title {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.7px;
  line-height: 1.3;
}
.point-address {
  font-size: 14px;
  color: var(--muted);
  margin-top: 7px;
  margin-bottom: 14px;
}
.point-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  margin: 22px 0;
  font-size: 12px;
}
.point-meta dt {
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 5px;
}
.point-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.point-section {
  margin: 25px 0 0;
}
.point-section h3 {
  margin-bottom: 12px;
}
.timeline {
  padding-left: 18px;
  border-left: 1px solid var(--border);
  margin-left: 6px;
}
.timeline-item {
  position: relative;
  padding-bottom: 23px;
  font-size: 12px;
}
.timeline-item:before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  left: -22px;
  top: 6px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--surface);
}
.timeline-item small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.point-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  padding: 12px 0;
}
.method-content {
  padding: 4px 28px 30px;
}
.method-content h3 {
  margin: 24px 0 8px;
}
.method-content p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: 10px;
  background: #213b63;
  color: #fff;
  box-shadow: 0 5px 25px #0003;
  z-index: 5000;
  font-size: 12px;
  max-width: 90vw;
}
.login-body {
  background: #edf1f7;
  padding: 40px;
  min-height: 100dvh;
  display: grid;
  place-items: center;
}
.login-shell {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  width: min(1040px, 100%);
  min-height: 650px;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px #13284912;
  color: #18253e;
}
.login-art {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #1b3154;
  padding: 45px 45px 30px;
  overflow: hidden;
  color: white;
}
.login-art:after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: 35px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 1px solid #ffffff0a;
  box-shadow:
    0 0 0 60px #ffffff03,
    0 0 0 120px #ffffff02;
  pointer-events: none;
}
.login-statement {
  margin: auto 0;
  position: relative;
  z-index: 1;
}
.login-statement h1 {
  font-size: 42px;
  line-height: 1.2;
  letter-spacing: -1.5px;
  margin-top: 30px;
}
.login-statement p {
  color: #aebfd7;
  font-size: 14px;
  line-height: 1.8;
  margin-top: 20px;
}
.login-foot {
  font-size: 11px;
  color: #92a8c6;
}
.orbit {
  position: relative;
  width: 145px;
  height: 100px;
}
.orbit i {
  position: absolute;
  border: 1px solid #819ac06b;
  border-radius: 50%;
  width: 112px;
  height: 80px;
  transform: rotate(-35deg);
  left: 12px;
  top: 10px;
}
.orbit i:nth-child(2) {
  transform: rotate(35deg);
}
.orbit i:nth-child(3) {
  transform: rotate(90deg);
}
.orbit b {
  position: absolute;
  left: 63px;
  top: 39px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #d5af6d;
  transform: rotate(45deg);
  box-shadow: 0 0 35px #d5af6d50;
}
.login-form {
  display: grid;
  place-items: center;
  padding: 45px;
}
.login-form-inner {
  width: 100%;
  max-width: 310px;
}
.lock-symbol {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #edf2ff;
  color: #315de9;
  font-size: 24px;
  margin-bottom: 25px;
}
.login-form h2 {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.7px;
}
.login-form p {
  font-size: 12px;
  color: #647087;
  margin-top: 8px;
}
.login-form form {
  margin-top: 31px;
}
.login-form label {
  display: block;
  font-size: 12px;
  margin: 18px 0 7px;
}
.login-form input {
  width: 100%;
  background: #fff;
  color: #18253e;
  border-color: #dfe5ee;
  min-height: 46px;
}
.login-form button {
  width: 100%;
  margin-top: 27px;
  justify-content: space-between;
  padding: 13px 18px;
  font-size: 13px;
}
.login-form .form-error {
  color: #b3384b;
  font-size: 12px;
  margin-top: 14px;
}
.login-note {
  font-size: 10px;
  color: #7a879a;
  margin-top: 24px;
  line-height: 1.7;
}
@media (min-width: 1600px) {
  .workspace {
    padding-left: 48px;
    padding-right: 48px;
  }
  .chart-wrap {
    height: 300px;
  }
  .network-ranking .rank-row {
    padding: 10px 0;
  }
  .metric {
    padding: 23px 26px;
  }
  .metric-number {
    font-size: 42px;
  }
  .metric-lead .metric-number {
    font-size: 46px;
  }
}
@media (max-width: 1250px) {
  .sidebar {
    width: 192px;
    padding-left: 13px;
    padding-right: 13px;
  }
  .brand {
    font-size: 17px;
    gap: 9px;
  }
  .brand small {
    font-size: 9px;
  }
  .brand-mark {
    width: 33px;
    height: 36px;
  }
  .workspace {
    margin-left: 192px;
    padding: 0 22px 24px;
  }
  .metrics {
    gap: 11px;
  }
  .metric {
    padding: 17px 16px;
  }
  .metric-title {
    font-size: 10px;
  }
  .metric-number {
    font-size: 31px;
  }
  .metric-lead .metric-number {
    font-size: 35px;
  }
  .overview-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
    gap: 15px;
  }
  .panel-heading {
    padding: 19px 20px 15px;
  }
  .panel-heading h2 {
    font-size: 15px;
  }
  .chart-panel .panel-heading {
    align-items: flex-start;
  }
  .chart-panel .segmented {
    flex-direction: column;
  }
  .source-health {
    grid-template-columns: repeat(4, 1fr);
    padding: 0 20px 20px;
  }
  .select-control {
    min-width: 110px;
  }
  .date-control {
    min-width: 260px;
  }
  .filters {
    row-gap: 6px;
  }
  .date-control {
    flex-basis: 280px;
  }
  .chart-wrap {
    height: 250px;
  }
  .map-actions {
    gap: 10px;
  }
  .table-controls {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .lower-grid {
    gap: 15px;
  }
}
@media (max-width: 1000px) {
  .sidebar {
    width: 76px;
    padding: 26px 12px 14px;
  }
  .brand > span:last-child,
  .sidebar .nav-item:not(.active) {
    font-size: 0;
  }
  .sidebar .brand {
    justify-content: center;
  }
  .sidebar .nav-item {
    font-size: 0;
    justify-content: center;
    padding: 12px 0;
  }
  .sidebar nav {
    margin-top: 36px;
  }
  .sidebar .scope-note {
    display: none;
  }
  .profile > div,
  .profile > .avatar {
    display: none;
  }
  .profile {
    padding: 14px 0 0;
    justify-content: center;
  }
  .profile form {
    margin: 0;
  }
  .workspace {
    margin-left: 76px;
    padding: 0 22px 20px;
  }
  .overview-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(250px, 1fr);
  }
  .lower-grid {
    grid-template-columns: 1fr 1.1fr;
  }
  .city-ranking {
    grid-template-columns: 1fr;
  }
  .source-health {
    grid-template-columns: repeat(2, 1fr);
  }
  .select-control {
    min-width: 130px;
  }
  .date-control {
    flex: 2;
  }
  .map-actions {
    flex-direction: column;
    align-items: flex-end;
  }
}
@media (max-width: 760px) {
  .sidebar {
    width: auto;
    inset: auto 0 0;
    height: 64px;
    padding: 0 10px;
    background: var(--sidebar);
    border-top: 1px solid #ffffff14;
  }
  .sidebar > .brand,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    margin: 0;
    justify-content: space-around;
    height: 64px;
    gap: 0;
  }
  .sidebar .nav-item,
  .sidebar .nav-item:not(.active) {
    display: flex;
    flex-direction: column;
    font-size: 9px;
    padding: 8px 5px;
    gap: 4px;
    width: 25%;
    border-radius: 0;
    justify-content: center;
  }
  .sidebar .nav-item.active {
    box-shadow: inset 0 3px 0 #d5af6d;
    background: #ffffff08;
  }
  .sidebar svg {
    width: 18px;
    height: 18px;
  }
  .workspace {
    margin: 0;
    padding: 0 16px 82px;
  }
  .topbar {
    height: 62px;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .breadcrumb span {
    margin: 0 7px;
  }
  .freshness {
    font-size: 9px;
    margin: 0;
  }
  .top-actions {
    gap: 2px;
  }
  .top-actions .icon-button {
    width: 32px;
  }
  .page-heading {
    padding: 23px 0 20px;
    align-items: flex-start;
    gap: 10px;
  }
  h1 {
    font-size: 28px;
  }
  .page-heading p {
    font-size: 11px;
    max-width: 230px;
  }
  .page-heading > .secondary {
    font-size: 0;
    width: 40px;
    min-height: 40px;
    padding: 8px;
  }
  .page-heading > .secondary svg {
    width: 18px;
  }
  .filters {
    padding: 8px 4px 0;
    gap: 5px 0;
    border-radius: 10px;
  }
  .select-control,
  .network-picker {
    min-width: 50%;
    flex-basis: 50%;
    padding: 2px 10px 5px;
  }
  .select-control:nth-child(2),
  .select-control:nth-child(4) {
    border-right: 0;
  }
  .network-picker summary {
    min-height: 40px;
  }
  .date-control {
    padding: 3px 10px 6px;
    min-width: 0;
    flex: 1;
    border-top: 1px solid var(--border);
  }
  .date-control input {
    font-size: 12px;
    width: 124px;
  }
  .date-control > div {
    gap: 10px;
  }
  .filters > #reset {
    margin: 5px 3px 0 0;
  }
  .quick-periods {
    padding: 6px 5px;
    flex-wrap: wrap;
    gap: 3px;
  }
  .quick-periods button {
    font-size: 10px;
    padding: 3px 8px;
    min-height: 30px;
  }
  .filter-state {
    display: none;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 11px;
  }
  .metric {
    padding: 15px 16px;
    border-radius: 12px;
  }
  .metric-number {
    font-size: 31px;
    margin: 9px 0;
  }
  .metric-lead .metric-number {
    font-size: 35px;
    margin: 5px 0 9px;
  }
  .metric-title {
    font-size: 10px;
  }
  .metric-foot {
    font-size: 9px;
    gap: 3px;
  }
  .metric-number small {
    font-size: 10px;
    margin-left: 5px;
  }
  .snapshot-label {
    font-size: 9px;
    margin: 10px 2px 15px;
  }
  .overview-grid,
  .lower-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .lower-grid {
    margin-top: 15px;
  }
  .panel {
    border-radius: 12px;
  }
  .panel-heading {
    padding: 18px 18px 14px;
    gap: 10px;
  }
  .panel-heading p {
    font-size: 10px;
  }
  .chart-panel .segmented {
    flex-direction: row;
  }
  .chart-panel .segmented button {
    font-size: 9px;
    padding: 4px 7px;
  }
  .chart-wrap {
    height: 240px;
    margin-left: 12px;
    margin-right: 12px;
  }
  .chart-legend {
    margin: 14px 18px 0;
    gap: 8px 11px;
    font-size: 9px;
  }
  .panel-note {
    padding: 13px 18px 17px;
    font-size: 9px;
  }
  .network-ranking {
    padding: 0 18px 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 20px;
  }
  .rank-top {
    font-size: 10px;
  }
  .rank-number {
    font-size: 11px;
  }
  .city-ranking {
    grid-template-columns: 1fr 1fr;
    padding: 0 18px 16px;
    gap: 0 20px;
  }
  .event-list {
    padding: 0 18px 14px;
  }
  .event-info strong {
    font-size: 11px;
  }
  .event-info small,
  .event-date {
    font-size: 9px;
  }
  .source-health {
    padding: 0 18px 18px;
    gap: 10px;
  }
  .source-item {
    padding: 10px;
    font-size: 10px;
  }
  .source-item small {
    font-size: 9px;
  }
  .sources-panel {
    margin-top: 15px;
  }
  .page-footer {
    flex-wrap: wrap;
    gap: 5px;
    line-height: 1.8;
    margin-top: 19px;
  }
  .page-footer > span:nth-child(2) {
    order: 3;
    flex-basis: 100%;
    font-size: 9px;
  }
  .map-panel > .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .map-actions {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .map-panel #map {
    height: 480px;
  }
  .map-footer {
    padding: 13px 18px 0;
    gap: 10px;
    font-size: 10px;
  }
  .points-heading {
    flex-direction: column;
  }
  .table-controls {
    width: 100%;
    justify-content: flex-start;
  }
  .search-input {
    width: 100%;
  }
  .search-input input {
    max-width: none;
    width: 100%;
  }
  .table-controls select {
    width: 100%;
  }
  th,
  td {
    padding: 12px 15px;
  }
  .pagination {
    padding: 14px 18px;
    font-size: 10px;
  }
  .pagination .secondary {
    padding: 8px 10px;
    font-size: 10px;
  }
  .history-tabs button {
    font-size: 10px;
    padding: 7px 10px;
  }
  .history-list .event-info strong {
    font-size: 11px;
  }
  .history-list .event-info small {
    font-size: 10px;
  }
  #events-panel > .panel-heading {
    flex-direction: column;
    align-items: flex-start;
  }
  .archive-notice {
    padding: 0 18px 20px;
    font-size: 11px;
  }
  .point-dialog {
    max-width: 100vw;
    width: 100%;
    border-radius: 0;
  }
  .drawer-heading {
    padding: 14px 18px;
  }
  #point-content {
    padding: 20px 22px 35px;
  }
  .method-dialog {
    width: 94vw;
  }
  .method-content {
    padding: 0 22px 25px;
  }
  .login-body {
    padding: 20px;
  }
  .login-shell {
    grid-template-columns: 1fr;
    min-height: 0;
    max-width: 460px;
    border-radius: 18px;
  }
  .login-art {
    padding: 28px;
    min-height: 170px;
  }
  .login-art .brand {
    font-size: 19px;
  }
  .login-art .brand small {
    font-size: 10px;
  }
  .login-statement {
    display: none;
  }
  .login-foot {
    margin-top: 28px;
  }
  .login-form {
    padding: 32px 30px 38px;
  }
  .login-form h2 {
    font-size: 24px;
  }
  .lock-symbol {
    display: none;
  }
  .login-form form {
    margin-top: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.mobile-logout {
  display: none;
}
@media (max-width: 760px) {
  .mobile-logout {
    display: block;
  }
  .freshness {
    max-width: 110px;
    line-height: 1.3;
  }
  .top-actions .icon-button {
    width: 29px;
  }
}
