/* class_mode — the Settings rows. Solid content on the theme tokens; no glass here. */

.class-mode .cm-switch {
  appearance: none; -webkit-appearance: none; flex: none; position: relative;
  width: 51px; height: 31px; margin: 0; border-radius: 16px; background: rgb(var(--text-rgb) / 0.16);
  cursor: pointer; transition: background .2s ease;
}
.class-mode .cm-switch::after {
  /* The knob takes the colour Telegram picks to stand on the accent (button_text_color). */
  content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%;
  background: var(--accent-text); box-shadow: 0 1px 3px rgb(0 0 0 / 0.25); transition: transform .2s ease;
}
.class-mode .cm-switch:checked { background: var(--accent); }
.class-mode .cm-switch:checked::after { transform: translateX(20px); }
.class-mode .cm-switch:disabled { opacity: .6; cursor: progress; }
.class-mode .cm-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.class-mode .cm-steps { margin: 0; padding: 0 0 0 1.4em; display: grid; gap: 8px; font-size: 15px; line-height: 1.4; }
.class-mode .cm-steps li { padding-left: 2px; overflow-wrap: anywhere; }
.class-mode .cm-steps li::marker { color: var(--hint); font-variant-numeric: tabular-nums; }

.class-mode .cm-quote {
  margin: 0; padding: 10px 12px; border-left: 3px solid var(--accent); border-radius: 10px;
  background: rgb(var(--accent-rgb) / 0.08); font-size: 15px; line-height: 1.4; overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
  .class-mode .cm-switch, .class-mode .cm-switch::after { transition: none; }
}
@media (prefers-contrast: more) {
  .class-mode .cm-switch { box-shadow: inset 0 0 0 1px var(--text); }
  .class-mode .cm-switch::after { box-shadow: 0 0 0 1px var(--text); }
  .class-mode .cm-quote { background: none; border: 1px solid var(--text); border-left-width: 3px; }
}
