.card,
.module-btn,
.route-map,
.metric {
  background: var(--surface);
  border: 1px solid rgba(217, 226, 239, 0.76);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.card {
  padding: 15px;
  margin-bottom: 14px;
}

.section-title {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.primary-btn,
.secondary-btn,
.danger-btn {
  width: 100%;
  border: none;
  padding: 11px 12px;
  border-radius: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
}

.primary-btn {
  background: var(--primary);
  color: white;
}

.secondary-btn {
  background: #e8f1ff;
  color: #1e40af;
}

.danger-btn {
  background: #fee2e2;
  color: var(--danger);
}

.mode-grid,
.modules-grid,
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mode-chip {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px;
  background: white;
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 800;
  min-height: 40px;
}

.mode-chip.active {
  border-color: var(--primary);
  background: #dbeafe;
  color: #1d4ed8;
}

.alert-box {
  border-left: 4px solid var(--danger);
  background: #fff7f7;
}

.alert-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--danger);
  font-weight: 800;
  margin-bottom: 6px;
}

.alert-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.alert-actions button {
  flex: 1;
}

.muted {
  color: var(--text-light);
  font-size: 0.78rem;
  line-height: 1.4;
}

.small {
  font-size: 0.72rem;
}

.setting-list {
  display: grid;
  gap: 10px;
}

.profile-item,
.setting-item,
.guardian-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.profile-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.profile-item:last-child {
  border-bottom: none;
}

.chip {
  border-radius: 999px;
  padding: 5px 8px;
  background: #ecfdf5;
  color: var(--success);
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.chip.warning {
  background: #fffbeb;
  color: var(--warning);
}

.chip.info {
  background: #e8f1ff;
  color: #1d4ed8;
}

.switch {
  width: 46px;
  height: 26px;
  border: none;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  flex: 0 0 auto;
  transition: background 0.18s ease;
}

.switch::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.18s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
}

.switch.on {
  background: var(--success);
}

.switch.on::after {
  transform: translateX(20px);
}

.metric {
  padding: 12px;
  min-height: 86px;
}

.metric strong {
  display: block;
  font-size: 1.18rem;
  margin-bottom: 4px;
}

.form-grid {
  display: grid;
  gap: 10px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label {
  color: var(--text-light);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-field input,
.form-field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  color: var(--text-main);
  padding: 10px;
  min-height: 42px;
  outline: none;
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
