.st-card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 20px;
}

.st-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.st-card-title {
  font-size: 15px;
  font-weight: 800;
}
.st-card-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 14px;
}

.st-section-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 4px 0 12px;
}

.st-cid-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  word-break: break-all;
}
.st-cid-row button {
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0;
}
.st-cid-row button:hover { color: var(--text); border-color: var(--gold); }

.st-widget-icon { font-size: 17px; margin-right: 6px; }

.st-url-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.st-url-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
}
.st-url-row button {
  flex-shrink: 0;
  white-space: nowrap;
}

.st-hint {
  display: flex;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px;
  padding: 8px 12px;
  margin: 0 0 18px;
}

.st-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.st-toggle-row:first-of-type { border-top: none; }
.st-toggle-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.st-segmented {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.st-seg-btn {
  border: none;
  background: none;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}
.st-seg-btn.active {
  background: linear-gradient(135deg, #60a5fa, #6366f1);
  color: #fff;
}

/* same recipe as the map's own settings toggles (public/style.css) —
   duplicated here since this page intentionally doesn't load style.css */
.toggle-switch {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 25px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: background 0.2s ease;
}
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}
.toggle-switch.on {
  background: linear-gradient(135deg, #60a5fa, #6366f1);
}
.toggle-switch.on::after {
  transform: translateX(19px);
}

@media (max-width: 560px) {
  .st-url-row { flex-direction: column; }
}
