/* Settings only. Existing account, billing, reminder and reset actions stay intact. */
body.settings-practice [hidden] { display: none !important; }
body.settings-practice .settings-shell { max-width: 800px; padding: 0; }
body.settings-practice .settings-page-title { color: var(--text); font-size: clamp(26px,3vw,34px); font-weight: 600; line-height: 1.4; margin: 0 0 32px; gap: 16px; }
body.settings-practice .settings-section { margin-bottom: 32px; }
body.settings-practice .settings-section-label { color: var(--text); font-size: 22px; font-weight: 500; line-height: 1.6; letter-spacing: 0; text-transform: none; padding: 0; gap: 12px; margin: 0 0 16px; }
body.settings-practice .section-icon { color: var(--sky); flex: 0 0 auto; }
body.settings-practice .section-icon svg { width: 20px; height: 20px; stroke: currentColor; }
body.settings-practice .page-icon svg { width: 26px; height: 26px; }
body.settings-practice .settings-card { background: var(--practice-card); border-color: var(--border); border-radius: 16px; }
body.settings-practice .settings-row { gap: 20px; padding: 24px; border-color: var(--border); }
body.settings-practice a.settings-row { color: var(--text); text-decoration: none; }
body.settings-practice .settings-row.clickable:hover { background: var(--surface2); }
body.settings-practice .row-left { min-width: 0; }
body.settings-practice .row-label { color: var(--text); font-size: 16px; font-weight: 500; line-height: 1.7; overflow-wrap: anywhere; }
body.settings-practice .row-desc { color: var(--muted); font-size: 15px; font-weight: 400; line-height: 1.8; margin-top: 8px; overflow-wrap: anywhere; }
body.settings-practice .row-right { min-width: 0; max-width: 48%; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
body.settings-practice .row-value { color: var(--muted); font-size: 15px; font-weight: 400; line-height: 1.8; overflow-wrap: anywhere; }
body.settings-practice .row-chevron { color: var(--sky); }
body.settings-practice .row-chevron[style] { color: var(--coral) !important; }
html[dir="rtl"] body.settings-practice .row-chevron { transform: scaleX(-1); }
body.settings-practice .plan-badge { max-width: 100%; font-size: 13px; font-weight: 500; line-height: 1.7; letter-spacing: 0; overflow-wrap: anywhere; }
body.settings-practice .plan-badge.pro { color: var(--mint); background: var(--bg); border-color: var(--border); }
body.settings-practice .plan-badge.free { color: var(--muted); background: var(--bg); border-color: var(--border); }
body.settings-practice .plan-badge.admin { color: var(--sky); background: var(--practice-accent-wash); border-color: var(--border); }
body.settings-practice .row-btn { display: inline-flex; justify-content: center; align-items: center; max-width: 100%; min-height: 48px; padding: 12px 16px; color: var(--muted); background: transparent; border-color: var(--border2); border-radius: 12px; font-size: 14px; font-weight: 500; line-height: 1.7; white-space: normal; text-align: center; text-decoration: none; }
body.settings-practice .row-btn:hover:not(:disabled) { color: var(--text); background: var(--surface2); }
html[data-theme] body.settings-practice .row-btn.primary { color: var(--practice-on-accent) !important; background: var(--sky); border-color: var(--sky); font-weight: 600; }
html[data-theme] body.settings-practice .row-btn.primary:hover:not(:disabled) { background: var(--sky2); }
html[data-theme] body.settings-practice :is(.row-btn.danger,.row-label.danger) { color: var(--coral) !important; }
body.settings-practice .row-btn.danger { border-color: var(--border2); }
body.settings-practice .row-btn:disabled { color: var(--muted); background: var(--bg3); border-color: var(--border); cursor: not-allowed; }
body.settings-practice .settings-switch { width: 48px; height: 44px; }
body.settings-practice .settings-switch input { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; margin: 0; cursor: pointer; }
body.settings-practice .settings-switch input:disabled { cursor: wait; }
body.settings-practice .settings-switch span { inset: 8px 0; background: var(--bg3); border-color: var(--border2); }
body.settings-practice .settings-switch input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 4px; }
body.settings-practice .settings-switch input:checked + span { background: var(--practice-accent-wash); border-color: var(--sky); }
body.settings-practice .settings-switch input:checked + span::before { background: var(--sky); }
body.settings-practice .settings-switch input:disabled + span { opacity: 1; border-style: dashed; }
body.settings-practice .prompt-bar-track { height: 6px; margin-top: 16px; background: var(--bg3); }
body.settings-practice .prompt-bar-fill { background: var(--mint); }
body.settings-practice #reminder-encouragement { color: var(--muted) !important; font-size: 15px !important; line-height: 1.8 !important; }
body.settings-practice .row-select { min-height: 48px; max-width: 100%; min-width: 0; color: var(--text); background: var(--bg); border-color: var(--border2); font-size: 17px; padding: 12px 16px; }
body.settings-practice .reset-overlay { z-index: 10000; padding: 24px; }
body.settings-practice .reset-overlay:not(.open) { visibility: hidden; }
body.settings-practice .reset-dialog { color: var(--text); background: var(--practice-card); border-color: var(--border); border-radius: 16px; width: min(480px,100%); max-width: 480px; max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; padding: 28px; text-align: start; }
body.settings-practice .reset-dialog h3 { color: var(--text); font-size: 24px; font-weight: 500; line-height: 1.5; margin-bottom: 16px; }
body.settings-practice .reset-dialog p { color: var(--muted); font-size: 16px; line-height: 1.8; margin-bottom: 24px; }
body.settings-practice .reset-dialog-actions { gap: 12px; flex-wrap: wrap; }
body.settings-practice .reset-dialog-actions button { min-width: 0; min-height: 48px; padding: 12px 16px; font-size: 14px; font-weight: 500; line-height: 1.7; border-radius: 12px; }
body.settings-practice .reset-cancel { color: var(--text); background: var(--bg); border-color: var(--border2) !important; }
body.settings-practice .reset-confirm { color: var(--practice-card); background: var(--coral); }
body.settings-practice .toast { max-width: calc(100vw - 24px); white-space: normal; text-align: center; color: var(--mint); background: var(--practice-card); border-color: var(--border2); font-size: 14px; font-weight: 400; line-height: 1.8; padding: 16px 20px; }
html[data-theme] body.settings-practice .toast.err { color: var(--coral) !important; border-color: var(--coral); }
body.settings-practice .skel { background: var(--bg3); }
@media (max-width: 600px) {
  body.settings-practice .settings-row { flex-wrap: wrap; gap: 12px; padding: 20px; }
  body.settings-practice .row-left { flex-basis: 180px; }
  body.settings-practice .row-right { max-width: 100%; }
  body.settings-practice .reset-overlay { padding: 12px; }
  body.settings-practice .reset-dialog { max-height: calc(100dvh - 24px); padding: 20px; }
}
@media (max-width: 380px) {
  body.settings-practice .reset-dialog-actions { flex-direction: column; }
}
html.pp-embedded-exercise body.settings-practice .main-content { padding-top: 28px !important; }
