/* Settings sheet: language switch, toggle rows, reset link. */

.settings-section {
  margin-top: var(--space-5);
}

.settings-section h3 {
  margin: 0;
  font-size: var(--text-body);
}

.settings-section p {
  margin: 2px 0 var(--space-3);
  color: var(--muted);
  font-size: var(--text-small);
  line-height: 1.4;
}

.segmented {
  padding: 3px;
  border-radius: var(--radius-md);
  background: var(--wash);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

.segmented button {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-2);
  font-weight: 500;
}

.segmented button.active {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-small);
}

.setting-row {
  width: 100%;
  min-height: 68px;
  margin-top: var(--space-3);
  padding: var(--space-3) 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  align-items: center;
  text-align: left;
}

.setting-row strong,
.setting-row small {
  display: block;
}

.setting-row strong {
  font-size: var(--text-body);
}

.setting-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--text-small);
  line-height: 1.35;
}

.switch {
  width: 46px;
  height: 28px;
  padding: 3px;
  border-radius: 999px;
  background: var(--line-strong);
  transition: 0.2s ease;
}

.switch i {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-small);
  transition: 0.2s ease;
}

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

.switch.on i {
  transform: translateX(18px);
}

.setting-chevron {
  color: var(--muted);
  font-size: 24px;
}

.danger-link {
  width: 100%;
  min-height: 48px;
  margin-top: var(--space-3);
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--danger-text);
  font-size: var(--text-small);
  font-weight: 500;
  text-align: left;
}

/* Palette picker: one swatch per palette, drawn on that palette's paper. */
.palette-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-2);
}

.palette-option {
  min-height: 72px;
  padding: var(--space-2) 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: transparent;
  display: grid;
  justify-items: center;
  gap: var(--space-1);
  font-size: var(--text-caption);
  font-weight: 500;
}

.palette-option.active {
  border: 2px solid var(--ink);
  font-weight: 600;
}

.palette-swatch {
  width: 100%;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.palette-swatch i {
  width: 14px;
  height: 14px;
  margin: 0 -2px;
  border: 1.5px solid;
  border-radius: 50%;
}
