.gps-sample-widget {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gps-sample-widget__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 16px;
}

.gps-sample-widget__hero-card,
.gps-sample-widget__panel,
.gps-sample-widget__map-card {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94)),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.gps-sample-widget__hero-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
}

.gps-sample-widget__hero-copy.ant-typography {
  margin-bottom: 0;
}

.gps-sample-widget__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gps-sample-widget__metric {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(241, 245, 249, 0.8);
}

.gps-sample-widget__metric-value {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.gps-sample-widget__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gps-sample-widget__quick-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.gps-sample-widget__quick-form .ant-input {
  flex: 1;
}

.gps-sample-widget__panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 16px;
}

.gps-sample-widget__panel {
  padding: 20px;
}

.gps-sample-widget__anchor-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gps-sample-widget__anchor-item {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.gps-sample-widget__anchor-item:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.22);
}

.gps-sample-widget__anchor-item--active {
  border-color: rgba(37, 99, 235, 0.36);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.1);
}

.gps-sample-widget__anchor-head,
.gps-sample-widget__anchor-actions,
.gps-sample-widget__config-row,
.gps-sample-widget__event-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.gps-sample-widget__anchor-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gps-sample-widget__anchor-actions {
  margin-top: 12px;
}

.gps-sample-widget__config {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gps-sample-widget__event-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gps-sample-widget__event-item {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(241, 245, 249, 0.78);
}

.gps-sample-widget__map-card {
  padding: 20px;
}

.gps-sample-widget__map-overlay {
  position: absolute;
  inset: 0;
}

.gps-sample-widget__map-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 0 0 10px rgba(37, 99, 235, 0.18);
  transform: translate(-50%, -50%);
}

.gps-sample-widget__map-radius {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(42%, 220px);
  aspect-ratio: 1;
  border: 2px dashed rgba(14, 165, 233, 0.72);
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.14);
  transform: translate(-50%, -50%);
}

@media (max-width: 960px) {
  .gps-sample-widget__hero,
  .gps-sample-widget__panel-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .gps-sample-widget__metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .gps-sample-widget__quick-form,
  .gps-sample-widget__anchor-head,
  .gps-sample-widget__anchor-actions,
  .gps-sample-widget__config-row,
  .gps-sample-widget__event-head {
    flex-direction: column;
    align-items: stretch;
  }
}
