/* Native checkboxes retain keyboard and form semantics; styling conveys both states. */
.preferences-intro { margin:0; color:var(--account-ui-muted,#53697d); line-height:1.5; }
.preferences-form { min-width:0; }
.frame #flows-app[data-account-layout] .preferences-form { width:100%; max-width:none; }
.preferences-form > [data-local-status]:empty { display:none; }
.preferences-form > [data-local-status] { margin:0; line-height:1.5; overflow-wrap:anywhere; }
.preferences-switch-list { display:grid; gap:0; }
.preferences-form .preferences-switch-row { position:relative; display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:80px; padding:16px 0; cursor:pointer; }
.preferences-switch-row + .preferences-switch-row { border-top:1px solid var(--account-ui-divider,#e8eef5); }
.preferences-switch-row:first-child { padding-top:0; }
.preferences-switch-row:last-child { padding-bottom:0; }
.preferences-switch-copy { display:grid; gap:5px; min-width:0; }
.preferences-switch-title { color:var(--account-ui-text,#062a54); font-size:16px; font-weight:650; line-height:1.4; }
.preferences-switch-description { color:var(--account-ui-muted,#53697d); font-size:14px; font-weight:400; line-height:1.5; overflow-wrap:anywhere; }
.preferences-switch-control { position:relative; display:grid; justify-items:center; flex:none; width:76px; min-height:64px; gap:4px; align-content:center; }
.preferences-switch-control > input { position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; z-index:1; }
.preferences-switch-track { display:block; position:relative; width:52px; height:30px; border:2px solid #74859a; border-radius:999px; background:#d5dfe9; transition:background .12s ease,border-color .12s ease; }
.preferences-switch-track::after { content:''; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:#fff; box-shadow:0 1px 3px #062a5440; transition:transform .12s ease; }
.preferences-switch-control > input:checked + .preferences-switch-track { background:var(--account-ui-brand,#fe5902); border-color:#ab3c00; }
.preferences-switch-control > input:checked + .preferences-switch-track::after { transform:translateX(22px); }
.preferences-switch-control > input:focus-visible + .preferences-switch-track { outline:3px solid var(--account-ui-focus,#0651b6); outline-offset:4px; }
.preferences-switch-state { color:var(--account-ui-muted,#53697d); font-size:12px; font-weight:650; line-height:1.3; }
.preferences-state-on { display:none; }
.preferences-switch-control > input:checked ~ .preferences-switch-state .preferences-state-on { display:inline; }
.preferences-switch-control > input:checked ~ .preferences-switch-state .preferences-state-off { display:none; }
.preferences-switch-control > input:disabled { cursor:default; }
.preferences-switch-control > input:disabled + .preferences-switch-track { opacity:.55; }
.preferences-page [data-device-push] [role=status] { margin:0; line-height:1.5; }
.preferences-page [data-device-push] button[hidden] { display:none !important; }
@media(max-width:599px) {
  .preferences-form .preferences-switch-row { gap:12px; }
  .preferences-switch-control { width:64px; }
}
@media(prefers-reduced-motion:reduce) {
  .preferences-switch-track,.preferences-switch-track::after { transition:none; }
}
