/* Settings presentation, scoped away from Home, chat and payments. */
html.settings-refresh {
  --ui-page:#f3f8f7; --ui-card:rgba(255,255,255,.88); --ui-field:#f1f6f5;
  --ui-ink:#163b38; --ui-muted:#526e69; --ui-line:#dbe7e3;
  --ui-accent:#147c75; --ui-soft:#e3f2ec; --ui-danger:#ae3c4a;
  --ui-shadow:0 4px 22px rgba(22,59,56,.035);
}
html.settings-refresh.look-sakura {
  --ui-page:#211429; --ui-card:#35223e; --ui-field:#2b1b33;
  --ui-ink:#fff0fa; --ui-muted:#dcbdd3; --ui-line:#64415e;
  --ui-accent:#f3a0cb; --ui-soft:#4e2944; --ui-danger:#ff9ba7;
}
html.settings-refresh.look-moonlake {
  --ui-page:#081d29; --ui-card:#12303e; --ui-field:#102835;
  --ui-ink:#eaf8ff; --ui-muted:#b4d4e1; --ui-line:#355b6b;
  --ui-accent:#80dbe9; --ui-soft:#173e50; --ui-danger:#ff9ba7;
}
html.settings-refresh #mshell .ui-settings,
html.settings-refresh #legacyRoot .ui-settings {
  color:var(--ui-ink)!important;font-family:var(--font,system-ui,sans-serif)!important;
}
html.settings-refresh #mshell :is(#ms-you,#ms-profile,#ms-help).ui-settings {padding:24px 20px 30px;background:transparent}
html.settings-refresh #mshell #appBody:has(:is(#ms-you,#ms-profile,#ms-help).active) {background:var(--ui-page);background-image:none}
html.settings-refresh #mshell .phone > :is(#ov-account,#ov-guard).ui-settings {
  background:var(--ui-page)!important;color:var(--ui-ink)!important;padding:20px 20px 32px!important;
  font-family:var(--font,system-ui,sans-serif)!important;gap:0;overflow-y:auto;
}
html.settings-refresh .ui-settings .ui-icon {display:inline-grid;place-items:center;flex:0 0 auto;width:40px;height:40px;border-radius:14px;color:var(--ui-accent);background:var(--ui-soft)}
html.settings-refresh .ui-settings .ui-icon svg {display:block;width:21px;height:21px}
html.settings-refresh .ui-settings .ui-hero-icon {width:48px;height:48px;border-radius:17px;margin:16px 0 15px}
html.settings-refresh .ui-settings .ui-hero-icon svg {width:26px;height:26px}
html.settings-refresh #mshell .ui-settings :is(h1.screen-title,h2.title,.ui-account-title),
html.settings-refresh #legacyRoot #s-memory.ui-settings h2.title {
  font-family:inherit!important;font-size:29px!important;line-height:1.15!important;font-weight:700!important;
  letter-spacing:-1px!important;color:var(--ui-ink)!important;margin:0 0 10px!important;text-wrap:balance;
}
html.settings-refresh #mshell .phone > #ov-guard.ui-settings h2.title {font:700 28px/1.15 var(--font,system-ui,sans-serif)!important;letter-spacing:-1px!important;color:var(--ui-ink)!important;max-width:17ch}
html.settings-refresh #mshell .ui-settings :is(.screen-sub,.sub,.ui-account-intro),
html.settings-refresh #legacyRoot #s-memory.ui-settings > .sub {
  color:var(--ui-muted)!important;font-size:13px!important;line-height:1.65!important;font-weight:400!important;letter-spacing:0!important;
}
html.settings-refresh #mshell .ui-settings > :is(.screen-sub,.ui-account-intro) {margin:0 0 24px}
html.settings-refresh .ui-settings .ui-sheet-bar {align-items:center;min-height:48px;flex-shrink:0;position:sticky;top:-20px;z-index:5;padding-block:8px;background:var(--ui-page)}
html.settings-refresh #mshell .phone > .ui-settings .ui-sheet-bar .eyebrow {font-size:10px!important;font-weight:700;letter-spacing:.13em;color:var(--ui-accent)!important}
html.settings-refresh #mshell .phone > .ui-settings .ui-sheet-bar .icon-btn {width:40px;height:40px;border-radius:50%;border:1px solid var(--ui-line)!important;background:var(--ui-card)!important;color:var(--ui-ink)!important;font:24px/1 system-ui;box-shadow:none}
html.settings-refresh #mshell .ui-settings > .btn-ghost[data-go] {padding:0 6px;min-height:36px;margin:-4px 0 6px -6px!important;color:var(--ui-accent);font-size:12px;font-weight:600;display:flex;width:max-content}
html.settings-refresh #mshell .ui-settings .card,
html.settings-refresh #mshell .phone > #ov-guard.ui-settings .card,
html.settings-refresh #legacyRoot #s-memory.ui-settings :is(.card,.memory-item) {
  padding:20px;border:1px solid var(--ui-line)!important;border-radius:22px!important;background:var(--ui-card)!important;
  color:var(--ui-ink)!important;box-shadow:var(--ui-shadow)!important;margin-top:12px;flex-shrink:0;
}
html.settings-refresh #mshell .ui-settings .card :is(b,strong),
html.settings-refresh #mshell .phone > #ov-guard.ui-settings .card b {font:650 15px/1.4 var(--font,system-ui,sans-serif)!important;color:var(--ui-ink)!important;letter-spacing:-.15px}
html.settings-refresh #mshell .ui-settings :is(.muted,.muted-note,.card .sub,.card small),
html.settings-refresh #mshell .phone > #ov-guard.ui-settings :is(.sub,.muted-note,p,label),
html.settings-refresh #legacyRoot #s-memory.ui-settings :is(.muted-note,.memory-item small) {
  color:var(--ui-muted)!important;font-size:12px!important;line-height:1.6!important;
}
html.settings-refresh #mshell .ui-settings .card > .sub {margin:9px 0 14px!important}
html.settings-refresh .ui-settings .ui-card-icon {margin-bottom:14px}
html.settings-refresh #mshell .ui-settings .list {border:1px solid var(--ui-line);border-radius:24px;background:var(--ui-card);overflow:hidden;box-shadow:var(--ui-shadow)}
html.settings-refresh #mshell .ui-settings .list-item {padding:17px 16px;min-height:78px;gap:13px;background:transparent;border:0;border-bottom:1px solid var(--ui-line);align-items:center;color:var(--ui-ink);text-align:start}
html.settings-refresh #mshell .ui-settings .list-item:last-child {border-bottom:0}
html.settings-refresh #mshell .ui-settings .list-item .meta {flex:1;min-width:0}
html.settings-refresh #mshell .ui-settings .list-item strong {display:block;font-size:14px;font-weight:650;letter-spacing:-.2px}
html.settings-refresh #mshell .ui-settings .list-item .meta > span {display:block;font-size:11px;line-height:1.5;margin-top:3px;color:var(--ui-muted)}
html.settings-refresh #mshell .ui-settings .list-item .chev {font-size:22px;font-weight:400;color:var(--ui-muted);opacity:.7;flex-shrink:0}
html.settings-refresh #mshell .ui-settings .list-item:hover {background:var(--ui-field)}
html.settings-refresh #mshell #ms-you .ui-identity {display:flex;align-items:center;gap:14px;margin:0 0 18px!important;background:linear-gradient(125deg,var(--ui-soft),var(--ui-card))!important}
html.settings-refresh #mshell #ms-you .ui-identity .avatar-video {width:52px;height:52px;min-width:52px;border-radius:17px;object-fit:cover}
html.settings-refresh #mshell #ms-you .ui-identity strong {font-size:17px}
html.settings-refresh #mshell #ms-you .ui-identity #youEmail {overflow-wrap:anywhere;font-size:12px}
html.settings-refresh .ui-settings :is(button,a,summary,input,select):focus-visible {outline:3px solid var(--ui-accent)!important;outline-offset:3px}
html.settings-refresh #mshell .ui-settings .btn,
html.settings-refresh #mshell .phone > #ov-guard.ui-settings .btn,
html.settings-refresh #legacyRoot #s-memory.ui-settings .btn {
  min-height:44px;border-radius:14px!important;font:600 12px/1.4 var(--font,system-ui,sans-serif)!important;letter-spacing:0;
  padding:12px 15px;box-shadow:none!important;white-space:normal;height:auto;text-align:center;
  background:var(--ui-soft)!important;border:1px solid transparent!important;color:var(--ui-accent)!important;
}
html.settings-refresh #mshell .ui-settings :is(.btn-primary,#privacyLockToggle,#parentalToggleBtn,#totpSetupButton) {
  background:var(--ui-accent)!important;color:var(--ui-page)!important;border:1px solid var(--ui-accent)!important;
}
html.settings-refresh #mshell .ui-settings :is(.ui-danger,.ui-danger-link),
html.settings-refresh #legacyRoot #s-memory.ui-settings .ui-danger {color:var(--ui-danger)!important;background:transparent!important;border:1px solid var(--ui-line)!important}
html.settings-refresh #mshell .ui-settings .ui-danger-link strong {color:var(--ui-danger)}
html.settings-refresh #mshell .ui-settings input:not([type=checkbox]):not([type=radio]),
html.settings-refresh #mshell .ui-settings select,
html.settings-refresh #mshell .phone > #ov-guard.ui-settings :is(select,input[type=time]),
html.settings-refresh #legacyRoot #s-memory.ui-settings select {
  min-height:48px;border:1px solid var(--ui-line)!important;background:var(--ui-field)!important;color:var(--ui-ink)!important;
  padding:12px 13px;border-radius:13px!important;box-shadow:none!important;font:500 16px/1.3 var(--font,system-ui,sans-serif)!important;width:100%;max-width:100%;
}
html.settings-refresh #mshell .ui-settings .field {margin:0!important;min-width:0}
html.settings-refresh #mshell .ui-settings .field label,
html.settings-refresh #legacyRoot #s-memory.ui-settings .field > label {font-size:11px;font-weight:650;line-height:1.5;color:var(--ui-muted);margin:0 0 7px;display:block}
html.settings-refresh #mshell #ms-profile .ui-profile-form {display:grid;grid-template-columns:1fr 1fr;gap:20px 14px}
html.settings-refresh #mshell #ms-profile .ui-profile-form > :is(.field:first-child,button,p) {grid-column:1/-1}
html.settings-refresh #mshell #ms-profile .ui-profile-form button {margin-top:2px!important}
html.settings-refresh #mshell #ms-profile #pf-status:empty {display:none}
html.settings-refresh #mshell #ms-profile > .muted-note {padding:14px 5px;margin:0;font-size:11px!important}
html.settings-refresh #mshell #ms-help .stack {gap:16px;align-items:flex-start}
html.settings-refresh #mshell #ms-help .stack .btn {width:100%}
html.settings-refresh #mshell #ms-help .list {margin-top:20px!important}
html.settings-refresh #mshell .phone > #ov-guard.ui-settings .ui-sensors {padding:5px 16px 14px;border:1px solid var(--ui-line);border-radius:22px;background:var(--ui-card);margin:22px 0 6px}
html.settings-refresh #mshell .phone > #ov-guard.ui-settings .sensor {background:transparent!important;border:0!important;border-bottom:1px solid var(--ui-line)!important;border-radius:0!important;padding:13px 0;gap:10px;box-shadow:none!important}
html.settings-refresh #mshell .phone > #ov-guard.ui-settings .sensor .meta {min-width:0;flex:1}
html.settings-refresh #mshell .phone > #ov-guard.ui-settings .sensor .meta b {font:600 12px/1.5 var(--font,system-ui)!important;color:var(--ui-ink)!important}
html.settings-refresh #mshell .phone > #ov-guard.ui-settings .sensor :is(.meta small,.wave) {font-size:10px!important;line-height:1.5;color:var(--ui-muted)!important}
html.settings-refresh #mshell .phone > #ov-guard.ui-settings .sensor .wave {max-width:100px;text-align:end;white-space:normal}
html.settings-refresh #mshell .phone > #ov-guard.ui-settings :is(#enableMotionBtn,#joggingCalibrationBtn,#bagCalibrationBtn) {background:var(--ui-soft)!important;color:var(--ui-accent)!important;border:1px solid var(--ui-line)!important;box-shadow:none!important}
html.settings-refresh #mshell .phone > #ov-guard.ui-settings .ui-fold-card {padding:0;margin-top:10px}
html.settings-refresh .ui-disclosure summary {display:flex;align-items:center;gap:12px;min-height:75px;cursor:pointer;padding:15px 16px;list-style:none}
html.settings-refresh .ui-disclosure summary::-webkit-details-marker {display:none}
html.settings-refresh .ui-disclosure summary::after,
html.settings-refresh .ui-account-tools summary::after {content:'';width:7px;height:7px;border-bottom:1.5px solid var(--ui-muted);border-inline-end:1.5px solid var(--ui-muted);transform:rotate(45deg);flex-shrink:0;margin-inline-start:auto;transition:transform .2s}
html.settings-refresh .ui-disclosure[open] summary::after,
html.settings-refresh .ui-account-tools[open] summary::after {transform:rotate(225deg)}
html.settings-refresh .ui-disclosure summary > .flex {flex:1;min-width:0;flex-wrap:wrap;gap:4px 8px}
html.settings-refresh .ui-disclosure summary .grow {display:none}
html.settings-refresh #mshell .phone > #ov-guard.ui-settings .ui-disclosure summary b {font-size:13px!important;width:100%}
html.settings-refresh #mshell .phone > #ov-guard.ui-settings .ui-disclosure :is(.tag,#guardWindow) {background:transparent!important;color:var(--ui-accent)!important;padding:0;font-size:11px;line-height:1.4;border:0}
html.settings-refresh .ui-disclosure-body {padding:0 18px 18px;border-top:1px solid var(--ui-line)}
html.settings-refresh .ui-disclosure-body > :first-child {margin-top:14px!important}
html.settings-refresh .ui-permission-help {margin-top:10px}
html.settings-refresh .ui-permission-help summary {cursor:pointer;font-size:10px;color:var(--ui-muted);line-height:1.5}
html.settings-refresh #mshell .phone > #ov-guard.ui-settings .window-preset {border:1px solid var(--ui-line)!important;background:var(--ui-field)!important;color:var(--ui-muted)!important;border-radius:12px;min-height:44px;font:600 11px/1.4 var(--font,system-ui)!important;padding:8px}
html.settings-refresh #mshell .phone > #ov-guard.ui-settings .window-preset:is(.active,[aria-checked=true]) {color:var(--ui-accent)!important;background:var(--ui-soft)!important;border-color:var(--ui-accent)!important}
html.settings-refresh #mshell .phone > #ov-guard.ui-settings .guard-actions {position:static;padding:18px 0 0;background:none!important;border:0;box-shadow:none;display:grid;gap:8px}
html.settings-refresh #mshell .phone > #ov-guard.ui-settings .guard-actions .btn.honey {background:transparent!important;color:var(--ui-danger)!important;border:1px solid var(--ui-line)!important}
html.settings-refresh #mshell .phone > #ov-guard.ui-settings .guard-actions .btn.ghost {background:var(--ui-soft)!important;color:var(--ui-accent)!important}
html.settings-refresh #mshell .phone > #ov-guard.ui-settings #acousticQaEntry {background:var(--ui-card)!important;border:1px solid var(--ui-line)!important}
html.settings-refresh #mshell .phone > #ov-guard.ui-settings .acoustic-entry-card__copy :is(b,p) {color:var(--ui-ink)!important;font-family:inherit!important}
html.settings-refresh #mshell .phone > #ov-guard.ui-settings .acoustic-qa-launcher {background:var(--ui-soft)!important;color:var(--ui-accent)!important;box-shadow:none!important;border-radius:14px}
html.settings-refresh #mshell #ov-account .ui-account-duplicate {display:none!important}
html.settings-refresh #mshell #ov-account #acctCard {padding:14px 17px;margin:0 0 8px!important;background:var(--ui-soft)!important;border:0!important}
html.settings-refresh #mshell #ov-account #acctAvatar {background:var(--ui-card);color:var(--ui-accent);border:0;border-radius:14px}
html.settings-refresh #mshell #ov-account #acctId {display:block;overflow-wrap:anywhere;font-size:11px;margin-top:3px}
html.settings-refresh #mshell #ov-account #acctName {display:block}
html.settings-refresh #mshell #ov-account[data-settings-view=security] #acctParentalPanel {display:none!important}
html.settings-refresh #mshell #ov-account[data-settings-view=parental] :is(#privacyLockPanel,#totpPanel,#safetyReadinessPanel,.ui-account-tools) {display:none!important}
html.settings-refresh #mshell #ov-account > .grow {display:none}
html.settings-refresh #mshell #ov-account .card .btn {width:100%}
html.settings-refresh #mshell #ov-account :is(#privacyLockStatus,#totpStatus,#parentalSafetyAlertsStatus) {font-weight:600;font-size:11px!important;padding:9px 12px;border-radius:10px;background:var(--ui-field);margin:12px 0!important}
html.settings-refresh #mshell #ov-account .ui-fold-card {padding:0}
html.settings-refresh #mshell #ov-account .ui-disclosure summary > .flex {display:block}
html.settings-refresh #mshell #ov-account .ui-disclosure summary :is(#privacyLockStatus,#totpStatus) {padding:0;margin:3px 0 0!important;background:transparent;font-weight:400}
html.settings-refresh #mshell #ov-account .ui-account-tools {border-top:1px solid var(--ui-line);margin-top:26px;padding-top:6px}
html.settings-refresh #mshell #ov-account .ui-account-tools summary {display:flex;align-items:center;list-style:none;min-height:52px;font-weight:600;font-size:13px;cursor:pointer}
html.settings-refresh #mshell #ov-account .ui-account-tools summary::-webkit-details-marker {display:none}
html.settings-refresh #mshell #ov-account .ui-account-tools > button {display:block;width:100%;margin:8px 0}
html.settings-refresh.ui-memory-open #legacyRoot.as-subpage {background:var(--ui-page)!important}
html.settings-refresh.ui-memory-open #legacyBackbar {background:var(--ui-page)!important;border:0;box-shadow:none;padding-bottom:0}
html.settings-refresh #legacyRoot #s-memory.ui-settings {padding:12px 20px 32px!important}
html.settings-refresh #legacyRoot #s-memory.ui-settings > .eyebrow {font-size:10px;letter-spacing:.12em;color:var(--ui-accent);margin-bottom:4px}
html.settings-refresh #legacyRoot #s-memory.ui-settings .ui-memory-permission {margin:24px 0 20px!important}
html.settings-refresh #legacyRoot #s-memory.ui-settings .memory-toggle {display:flex;align-items:center;gap:14px;font:600 13px/1.5 var(--font,system-ui);color:var(--ui-ink)}
html.settings-refresh #legacyRoot #s-memory.ui-settings .memory-toggle input {flex-shrink:0}
html.settings-refresh #legacyRoot #s-memory.ui-settings #memoryList .empty {padding:32px 20px;text-align:center;border:1px dashed var(--ui-line);border-radius:20px;font-size:12px;color:var(--ui-muted);line-height:1.6;background:transparent!important}
html.settings-refresh #legacyRoot #s-memory.ui-settings .ui-memory-tools {border-top:1px solid var(--ui-line);margin-top:24px;padding-top:12px}
html.settings-refresh #legacyRoot #s-memory.ui-settings .ui-memory-tools > button {width:100%;margin-top:10px}
html.settings-refresh #legacyRoot #s-memory.ui-settings .memory-item h3 {font-family:inherit!important;font-size:15px}
html.settings-refresh #mshell .ui-settings [hidden] {display:none!important}
@media(max-width:360px) {
 html.settings-refresh #mshell #ms-profile .ui-profile-form {grid-template-columns:1fr}
 html.settings-refresh #mshell :is(#ms-you,#ms-profile,#ms-help).ui-settings,
 html.settings-refresh #mshell .phone > :is(#ov-account,#ov-guard).ui-settings {padding-inline:16px!important}
}
@media(prefers-reduced-motion:reduce) {html.settings-refresh .ui-settings * {transition:none!important;scroll-behavior:auto!important}}
