/* A quiet, grouped settings sheet. Original IDs, permissions and actions stay intact. */
html body.mm-app[data-mm-theme] #mm-settings {
  box-sizing:border-box;width:min(560px,calc(100vw - 32px));max-width:560px;
  height:auto;max-height:calc(var(--mm-height,100dvh) - 32px);margin:auto;padding:0;
  overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-gutter:auto;
  border:1px solid var(--glass-edge);border-radius:30px;
  background:var(--glass-sheen),var(--mm-bg);color:var(--mm-text);
  box-shadow:inset 0 1px 0 var(--glass-highlight),0 24px 80px #07112640;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
html body.mm-app[data-mm-theme] #mm-settings::backdrop {background:#07112670;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
html body.mm-app[data-mm-theme] #mm-settings>.mm-dialog-head {
  position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;
  gap:12px;min-height:80px;margin:0;padding:16px 20px 14px;border:0;border-bottom:1px solid var(--glass-edge);
  background:var(--glass-sheen),var(--glass-fill);box-shadow:inset 0 1px 0 var(--glass-highlight);
  backdrop-filter:var(--glass-blur);-webkit-backdrop-filter:var(--glass-blur);
}
html body.mm-app[data-mm-theme] #mm-settings>.mm-dialog-head>div {min-width:0;flex:1}
html body.mm-app[data-mm-theme] #mm-settings .mm-settings-kicker {font-size:9px;line-height:1.3;letter-spacing:2px;margin:0 0 5px;font-weight:750;color:var(--mm-green)}
html body.mm-app[data-mm-theme] #mm-settings-title {margin:0;font-size:25px;line-height:1.2;letter-spacing:-.75px;font-weight:730}
html body.mm-app[data-mm-theme] #mm-settings>.mm-dialog-head>.mm-icon {
  flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:11px;
  border:1px solid var(--glass-edge);border-radius:50%;background:var(--glass-sheen),var(--mm-soft);
  color:var(--mm-muted);box-shadow:inset 0 1px 0 var(--glass-highlight);
}
html body.mm-app[data-mm-theme] #mm-settings>.mm-profile-card {
  display:flex;align-items:center;gap:13px;box-sizing:border-box;width:calc(100% - 32px);
  min-height:98px;margin:16px 16px 12px;padding:16px;border-radius:23px;border:1px solid var(--glass-edge);
  background:var(--glass-sheen),var(--mm-soft);box-shadow:inset 0 1px 0 var(--glass-highlight),0 4px 16px #07112606;text-align:left;
}
html body.mm-app[data-mm-theme] #mm-settings>.mm-profile-card>.mm-avatar {
  flex:0 0 58px;width:58px;height:58px;border-radius:19px;border:2px solid var(--glass-highlight);
  background:var(--mm-surface);color:var(--mm-green);box-shadow:0 3px 10px #0711260d;overflow:hidden;
}
html body.mm-app[data-mm-theme] #mm-settings>.mm-profile-card>.mm-avatar img {width:100%;height:100%;object-fit:cover;border-radius:17px}
html body.mm-app[data-mm-theme] #mm-settings #mm-my-name {display:block;font-size:20px;font-weight:700;line-height:1.3;letter-spacing:-.35px;overflow-wrap:anywhere}
html body.mm-app[data-mm-theme] #mm-settings>.mm-profile-card small {margin-top:4px;font-size:12px;font-weight:400;line-height:1.4;color:var(--mm-muted)}
html body.mm-app[data-mm-theme] #mm-settings .mm-settings-chevron {font-size:25px;color:var(--mm-muted);font-weight:400}
html body.mm-app[data-mm-theme] #mm-settings>.mm-search {
  display:flex;align-items:center;gap:9px;box-sizing:border-box;min-height:44px;
  margin:0 16px;padding:0 13px;border:1px solid var(--glass-edge);border-radius:16px;
  background:var(--glass-sheen),var(--mm-surface);box-shadow:inset 0 1px 0 var(--glass-highlight);
}
html body.mm-app[data-mm-theme] #mm-settings>.mm-search svg {width:18px;height:18px;flex:0 0 18px;color:var(--mm-muted)}
html body.mm-app[data-mm-theme] #mm-settings #mm-settings-search {
  width:0;min-width:0;flex:1;min-height:44px;padding:9px 0;font-size:15px;line-height:1.4;background:transparent;color:var(--mm-text);border:0;
}
html body.mm-app[data-mm-theme] #mm-settings .mm-settings-quick {display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 16px 0}
html body.mm-app[data-mm-theme] #mm-settings .mm-settings-community {
  display:flex;align-items:center;gap:8px;min-width:0;min-height:62px;margin:0;padding:10px 12px;
  box-sizing:border-box;border:1px solid var(--glass-edge);border-radius:18px;background:var(--glass-sheen),var(--mm-surface);
  box-shadow:inset 0 1px 0 var(--glass-highlight);color:var(--mm-text);font:inherit;font-size:13px;font-weight:600;text-align:start;text-decoration:none;cursor:pointer;
}
html body.mm-app[data-mm-theme] #mm-settings .mm-settings-community>svg {width:22px;height:22px;flex:0 0 22px;color:var(--mm-green)}
html body.mm-app[data-mm-theme] #mm-settings .mm-settings-community>svg:last-child {width:14px;height:14px;flex-basis:14px;color:var(--mm-muted);margin-left:auto}
html body.mm-app[data-mm-theme] #mm-settings .mm-settings-community>span {min-width:0;line-height:1.35}
html body.mm-app[data-mm-theme] #mm-settings .mm-settings-community small {display:block;margin-top:3px;font-size:11px;font-weight:400;color:var(--mm-muted)}
html body.mm-app[data-mm-theme] #mm-settings .mm-settings-list {
  display:block;margin:0;padding:0 16px 20px;border:0;border-radius:0;background:transparent;overflow:visible;
}
html body.mm-app[data-mm-theme] #mm-settings .mm-settings-section {
  margin:22px 12px 8px;padding:0;background:transparent;color:var(--mm-muted);
  font-size:10px;line-height:1.4;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;
}
html body.mm-app[data-mm-theme] #mm-settings .mm-settings-list>:is(button,a) {
  display:flex;align-items:center;gap:12px;width:100%;min-width:0;min-height:66px;box-sizing:border-box;margin:0;
  padding:12px 13px;border:0;border-bottom:1px solid var(--glass-edge);border-radius:0;
  background:var(--mm-surface);color:var(--mm-text);box-shadow:none;text-align:left;text-decoration:none;
}
html body.mm-app[data-mm-theme] #mm-settings .mm-settings-list>:is(button,a)>svg {
  box-sizing:border-box;flex:0 0 34px;width:34px;height:34px;padding:7px;border-radius:11px;
  background:var(--mm-soft);color:var(--mm-green);stroke-width:1.7;
}
html body.mm-app[data-mm-theme] #mm-settings .mm-settings-list>:is(button,a)>span {flex:1;min-width:0;font-size:14px;font-weight:600;line-height:1.35;overflow-wrap:anywhere}
html body.mm-app[data-mm-theme] #mm-settings .mm-settings-description {display:block;max-width:none;margin:3px 0 0;font-size:11px;line-height:1.45;font-weight:400;color:var(--mm-muted)}
html body.mm-app[data-mm-theme] #mm-settings .mm-settings-arrow {font-size:21px;line-height:1;font-weight:400;flex:0 0 auto;color:var(--mm-muted)}
html body.mm-app[data-mm-theme] #mm-settings .mm-settings-list>:nth-child(1 of [data-settings-group="0"]:not([hidden]):not(.mm-settings-filtered)),
html body.mm-app[data-mm-theme] #mm-settings .mm-settings-list>:nth-child(1 of [data-settings-group="1"]:not([hidden]):not(.mm-settings-filtered)),
html body.mm-app[data-mm-theme] #mm-settings .mm-settings-list>:nth-child(1 of [data-settings-group="2"]:not([hidden]):not(.mm-settings-filtered)),
html body.mm-app[data-mm-theme] #mm-settings .mm-settings-list>:nth-child(1 of [data-settings-group="3"]:not([hidden]):not(.mm-settings-filtered)) {border-top-left-radius:19px;border-top-right-radius:19px}
html body.mm-app[data-mm-theme] #mm-settings .mm-settings-list>:nth-last-child(1 of [data-settings-group="0"]:not([hidden]):not(.mm-settings-filtered)),
html body.mm-app[data-mm-theme] #mm-settings .mm-settings-list>:nth-last-child(1 of [data-settings-group="1"]:not([hidden]):not(.mm-settings-filtered)),
html body.mm-app[data-mm-theme] #mm-settings .mm-settings-list>:nth-last-child(1 of [data-settings-group="2"]:not([hidden]):not(.mm-settings-filtered)),
html body.mm-app[data-mm-theme] #mm-settings .mm-settings-list>:nth-last-child(1 of [data-settings-group="3"]:not([hidden]):not(.mm-settings-filtered)) {border-bottom-left-radius:19px;border-bottom-right-radius:19px;border-bottom:0}
html body.mm-app[data-mm-theme] #mm-settings #mm-sign-out,
html body.mm-app[data-mm-theme] #mm-settings #mm-sign-out>svg {color:#bb3b4a}
html body.mm-app[data-mm-theme=dark] #mm-settings #mm-sign-out,
html body.mm-app[data-mm-theme=dark] #mm-settings #mm-sign-out>svg {color:#ff9ca6}
html body.mm-app[data-mm-theme] #mm-settings>.mm-dialog-note {margin:0;padding:0 28px 22px;border:0;background:transparent;font-size:11px;line-height:1.5;color:var(--mm-muted)}
html body.mm-app[data-mm-theme] #mm-settings #mm-settings-empty {margin:16px 28px;font-size:13px;color:var(--mm-muted)}
html body.mm-app[data-mm-theme] #mm-settings [hidden],html body.mm-app[data-mm-theme] #mm-settings .mm-settings-filtered {display:none!important}
html body.mm-app[data-mm-theme] #mm-settings :is(button,a,input):focus-visible {outline:2px solid var(--mm-green);outline-offset:-2px}
@media(max-width:700px) {
  html body.mm-app[data-mm-theme] #mm-settings {
    width:calc(100% - 16px)!important;max-width:calc(100vw - 16px);
    height:calc(var(--mm-height,100dvh) - 16px);max-height:calc(var(--mm-height,100dvh) - 16px);margin:auto;border-radius:28px;
    padding-bottom:env(safe-area-inset-bottom,0px);
  }
}
@media(max-width:359px) {
  html body.mm-app[data-mm-theme] #mm-settings-title {font-size:23px}
  html body.mm-app[data-mm-theme] #mm-settings>.mm-dialog-head {padding-inline:16px}
  html body.mm-app[data-mm-theme] #mm-settings .mm-settings-quick {gap:7px}
  html body.mm-app[data-mm-theme] #mm-settings .mm-settings-quick> :is(a,button) {padding-inline:9px;font-size:12px}
  html body.mm-app[data-mm-theme] #mm-settings .mm-settings-community>svg:first-child {display:none}
  html body.mm-app[data-mm-theme] #mm-settings .mm-settings-list>:is(button,a) {gap:10px;padding-inline:11px}
}
@media(hover:hover) {
  html body.mm-app[data-mm-theme] #mm-settings .mm-settings-list>:is(button,a):hover {background:var(--mm-soft)}
}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more),(prefers-reduced-motion:reduce) {
  html body.mm-app[data-mm-theme] #mm-settings::backdrop {backdrop-filter:none;-webkit-backdrop-filter:none}
  html body.mm-app[data-mm-theme] #mm-settings>.mm-dialog-head {background:var(--mm-surface);backdrop-filter:none;-webkit-backdrop-filter:none}
}

/* The native header already provides navigation for the settings screen. */
html[data-connect-native-settings] body.mm-app[data-mm-theme] #mm-settings {
  inset:0;width:100%!important;max-width:none;height:100dvh;max-height:100dvh;
  margin:0;border:0;border-radius:0;box-shadow:none;
}
html[data-connect-native-settings] body.mm-app[data-mm-theme] #mm-settings::backdrop {
  background:var(--mm-bg);backdrop-filter:none;-webkit-backdrop-filter:none;
}
html[data-connect-native-settings] body.mm-app[data-mm-theme] #mm-settings>.mm-dialog-head {
  min-height:50px;padding:6px 20px;
}
html[data-connect-native-settings] body.mm-app[data-mm-theme] #mm-settings :is(.mm-settings-kicker,#mm-settings-title,.mm-dialog-head>.mm-icon) {
  position:absolute;width:1px;height:1px;min-width:0;min-height:0;
  overflow:hidden;clip-path:inset(50%);white-space:nowrap;padding:0;border:0;
}
html[data-connect-native-settings] body.mm-app[data-mm-theme] #mm-settings .mm-dialog-head>.mm-icon {
  display:none;
}
html[data-connect-native-settings] body.mm-app[data-mm-theme] #mm-settings .mm-dialog-head a {
  display:inline-flex;align-items:center;min-height:44px;color:var(--mm-green);
  font-size:14px;font-weight:600;
}
