/* Account controls share the existing surface palette without changing the base settings layout. */
.account-panel { display: grid; gap: 14px; padding: 18px; min-width: 0; }
.account-panel[hidden], .account-panel [hidden] { display: none !important; }
.account-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 4px; border-radius: 14px; background: var(--soft); }
.account-tab { appearance: none; border: 0; background: transparent; border-radius: 11px; color: var(--muted); font: inherit; font-weight: 700; padding: 11px 8px; cursor: pointer; }
.account-tab.is-active { background: var(--surface-solid); color: var(--text); box-shadow: 0 2px 12px rgba(0,0,0,.1); }
.account-form { display: grid; gap: 9px; }
.account-form label, #accountResetForm label { font-size: .83rem; font-weight: 700; color: var(--text); }
.account-form input, #accountNewPassword { box-sizing: border-box; min-width: 0; width: 100%; color: var(--text); background: var(--surface-solid); border: 1px solid var(--stroke); border-radius: 12px; padding: 12px 13px; font: inherit; }
.account-form input:focus-visible, #accountNewPassword:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.account-form .btn { margin-top: 8px; width: 100%; }
.account-inline-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.account-text-button { appearance: none; border: 0; background: none; color: var(--accent); padding: 3px 0; font: inherit; font-size: .85rem; cursor: pointer; }
.account-text-button:disabled { opacity: .45; cursor: not-allowed; }
.account-separator { margin: 0; text-align: center; color: var(--muted); font-size: .84rem; }
.account-google { display: flex; align-items: center; justify-content: center; min-height: 40px; overflow: hidden; }
.account-google:empty { min-height: 0; }
.account-user-info { margin: 0; overflow-wrap: anywhere; font-weight: 700; }
.account-panel .settings-footnote { margin: 2px 0; }
.account-panel > .btn { width: 100%; }
@media (max-width: 380px) { .account-panel { padding: 12px; } .account-inline-actions { gap: 12px; } }
@media (prefers-reduced-motion: reduce) { .account-tab { transition: none; } }

/* Notification controls: two truly independent switches. No separate
   browser permission is requested until the user clicks a switch. */
.push-preference-row{min-height:84px;gap:12px}
.push-preference-row .settings-copy{padding-right:4px}
.push-switch{position:relative;display:inline-flex;align-items:center;justify-content:flex-start;width:54px;height:44px;min-width:54px;flex:0 0 54px;padding:0;border:0;border-radius:999px;background:none;appearance:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.push-switch::before{content:"";position:absolute;left:0;top:6px;width:54px;height:32px;border:1px solid var(--stroke-strong);border-radius:999px;box-sizing:border-box;background:var(--soft-strong);transition:background .22s ease,border-color .22s ease,box-shadow .22s ease}
.push-switch-knob{position:absolute;left:3px;top:9px;width:26px;height:26px;box-sizing:border-box;border-radius:50%;background:var(--surface-solid);box-shadow:0 2px 6px rgba(0,0,0,.22);transition:transform .22s cubic-bezier(.22,1,.36,1),background .22s ease}
.push-switch[aria-checked="true"]::before{border-color:transparent;background:linear-gradient(120deg,var(--accent),var(--accent-2));box-shadow:0 0 18px rgba(91,207,255,.17)}
.push-switch[aria-checked="true"] .push-switch-knob{transform:translateX(22px);background:white}
.push-switch:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.push-switch:disabled{opacity:.48;cursor:not-allowed}
.push-switch[aria-checked="true"]:disabled{opacity:.7}
.push-controls{padding:11px 16px 15px;display:grid;gap:7px;border-top:1px solid var(--separator)}
.push-controls .settings-footnote{margin:0 2px;line-height:1.55}

/* Delivery problems stay collapsed so the everyday settings remain friendly. */
.push-diagnostics{margin:6px 3px 0;border-top:1px solid var(--separator);padding-top:10px;color:var(--muted);font-size:.8rem}
.push-diagnostics[hidden]{display:none}
.push-diagnostics summary{cursor:pointer;list-style:revert;color:var(--accent);font-weight:650}
.push-diagnostics summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}
.push-diagnostics p{line-height:1.6}
.push-diagnostics code{display:inline-block;max-width:100%;overflow-wrap:anywhere;color:var(--text);background:var(--soft);padding:6px 8px;border-radius:9px}

@media(max-width:380px){
  .push-preference-row{gap:9px;padding:12px 11px}
  .push-preference-row .settings-icon{width:37px;flex:0 0 37px}
  .push-preference-row .settings-copy strong{font-size:.9rem}
}
@media(prefers-reduced-motion:reduce){
  .push-switch::before,.push-switch-knob{transition:none}
}
