/* settings, reports, blocking, account deletion, and what differs inside the Android app (ANDROID-V1.md) */

.mxm-page { max-width: 680px; margin: 0 auto; padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); color: var(--mx-text); font-family: var(--mx-font-ui); }
.mxm-page .ic, .mxm-sheet .ic { width: 20px; height: 20px; flex: none; }
.mxm-head { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.mxm-head h1 { margin: 0; font: 700 26px/1.25 var(--mx-font-display, var(--mx-font-ui)); color: var(--mx-text); }
.mxm-back { display: grid; place-items: center; width: 44px; height: 44px; margin-inline-start: -8px; border-radius: 50%; color: var(--mx-text) !important; }
.mxm-back:focus-visible, .mxm-row:focus-visible, .mxm-x:focus-visible, .mxm-item:focus-visible { outline: 2px solid var(--mx-accent-text); outline-offset: -2px; }

.mxm-card { margin-top: 16px; padding: 18px; border-radius: var(--mx-r-card); background: var(--mx-surface); box-shadow: 0 0 0 1px var(--mx-line); }
.mxm-card h2 { margin: 0 0 8px; font: 700 18px/1.4 var(--mx-font-ui); color: var(--mx-text); }
.mxm-card h2:not(:first-child) { margin-top: 18px; }
.mxm-card p { margin: 0 0 10px; font-size: 15px; line-height: 1.75; color: var(--mx-text-2); }
.mxm-card p:last-child { margin-bottom: 0; }
.mxm-card a:not(.cx-btn):not(.mxm-row) { color: var(--mx-accent-text); text-decoration: underline; text-underline-offset: 3px; }
.mxm-lead { color: var(--mx-text-2); line-height: 1.75; }
.mxm-card--ok { box-shadow: 0 0 0 1px var(--mx-emerald); }
.mxm-en { text-align: left; }
.mxm-list { margin: 0 0 10px; padding-inline-start: 20px; font-size: 15px; line-height: 1.8; color: var(--mx-text-2); }
.mxm-list li { margin-bottom: 4px; }
ul.mxm-list { list-style: disc; }
.mxm-quote { margin: 0 0 12px; padding: 10px 14px; border-inline-start: 3px solid var(--mx-line-2); color: var(--mx-text-2); font-size: 15px; line-height: 1.8; max-height: 220px; overflow: auto; }

.mxm-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.mxm-acts [hidden] { display: none !important; }
.mxm-msg { min-height: 0; margin: 10px 0 0 !important; font-size: 14px !important; color: var(--mx-text-2); }
.mxm-msg:empty { display: none; }
.mxm-msg.is-bad { color: var(--mx-danger) !important; }
.mxm-mail { padding: 14px 18px 6px; margin: 0 !important; font-size: 14px !important; overflow-wrap: anywhere; }

.mxm-card--rows { padding: 6px 0; overflow: hidden; }
.mxm-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 8px 18px; border: 0; background: none; color: var(--mx-text) !important; font: 500 16px/1.5 var(--mx-font-ui); text-align: start; text-decoration: none !important; cursor: pointer; }
.mxm-row span { flex: 1; min-width: 0; }
.mxm-row small { display: block; font-size: 13px; color: var(--mx-text-3); }
.mxm-row > .ic:last-child:not(:first-child) { width: 16px; height: 16px; color: var(--mx-text-3); }
.mxm-row--danger { color: var(--mx-danger) !important; }
@media (hover: hover) { .mxm-row:hover { background: var(--mx-surface-2); } }
.mxm-row:active { background: var(--mx-surface-2); }

.mxm-switches { margin: 0; padding: 0; list-style: none; }
.mxm-switch { display: flex; align-items: center; gap: 14px; min-height: 56px; margin: 0; padding: 8px 0; font: 500 16px/1.5 var(--mx-font-ui); color: var(--mx-text); cursor: pointer; }
.mxm-switch > span { flex: 1; min-width: 0; }
.mxm-switch small { display: block; font-weight: 400; font-size: 13px; color: var(--mx-text-3); }
.mxm-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mxm-switch i { position: relative; flex: none; width: 48px; height: 28px; border-radius: 14px; background: var(--mx-text-3); transition: background .18s; }
.mxm-switch i::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .18s var(--mx-ease); }
.mxm-switch input:checked + i { background: #1f8a47; }
.mxm-switch input:checked + i::after { transform: translateX(-20px); }
[dir="ltr"] .mxm-switch input:checked + i::after { transform: translateX(20px); }
.mxm-switch input:focus-visible + i { outline: 2px solid var(--mx-accent-text); outline-offset: 2px; }
.mxm-switch input:disabled + i { opacity: .5; }

.mxm-people { margin: 0; padding: 0; list-style: none; }
.mxm-people li { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.mxm-people li > span:not(.cx-av) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.mxm-form { display: grid; gap: 14px; }
.mxm-form p { margin: 0; }
.mxm-choice { display: grid; gap: 2px; margin: 0; padding: 0; border: 0; min-width: 0; }
.mxm-choice legend { margin: 0 0 6px; font: 700 15px/1.5 var(--mx-font-ui); color: var(--mx-text); float: none; width: auto; }
.mxm-choice label { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; font-size: 16px; color: var(--mx-text); cursor: pointer; }
.mxm-choice input { width: 20px; height: 20px; flex: none; accent-color: #1f8a47; }
.mxm-field { display: grid; gap: 6px; margin: 0; font: 500 15px/1.5 var(--mx-font-ui); color: var(--mx-text); }
.mxm-field label { margin: 0; }
.mxm-field input, .mxm-field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 0; border-radius: var(--mx-r-input); background: var(--mx-bg); box-shadow: inset 0 0 0 1px var(--mx-line-2); color: var(--mx-text); font: 400 16px/1.6 var(--mx-font-ui); }
.mxm-field input:focus, .mxm-field textarea:focus { outline: 2px solid var(--mx-accent-text); outline-offset: 0; }
.mxm-inline { display: flex; gap: 10px; }
.mxm-inline input { flex: 1; min-width: 0; letter-spacing: .2em; }
.mxm-danger { background: var(--mx-danger) !important; color: #fff !important; }
.mxm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* wide screens: the pages have no picture under the top bar, so it keeps its own place and its own ground (as in mx-rooms.css) */
@media (min-width: 1024px) {
  body.mx-settings .cx-topnav, body.mx-deleteaccount .cx-topnav, body.mx-childsafety .cx-topnav, body.mx-reports .cx-topnav { margin-bottom: 0; color: var(--mx-text); background: var(--mx-glass); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); box-shadow: 0 1px 0 var(--mx-line); }
  .mxm-page { padding-top: 32px; }
}

/* the sheet */
.mxm-sheet { width: 100%; max-width: 520px; max-height: min(88dvh, 720px); margin: auto auto 0; padding: 0; border: 0; border-radius: 24px 24px 0 0; background: var(--mx-surface, #fff); color: var(--mx-text, #101814); font-family: var(--mx-font-ui); overflow: auto; overscroll-behavior: contain; }
.mxm-sheet::backdrop { background: rgba(5, 14, 9, .55); }
.mxm-sheet__in { padding: 8px 18px calc(20px + env(safe-area-inset-bottom)); }
.mxm-sheet__grip { display: block; width: 40px; height: 4px; margin: 4px auto 10px; border-radius: 2px; background: var(--mx-line-2, rgba(0,0,0,.17)); }
.mxm-sheet__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mxm-sheet__head h2 { flex: 1; margin: 0; font: 700 20px/1.4 var(--mx-font-ui); }
.mxm-x { width: 44px; height: 44px; margin-inline-end: -10px; border: 0; border-radius: 50%; background: none; color: inherit; font-size: 26px; line-height: 1; cursor: pointer; }
.mxm-menu { display: grid; }
.mxm-item { min-height: 52px; padding: 8px 0; border: 0; background: none; color: inherit; font: 500 17px/1.5 var(--mx-font-ui); text-align: start; cursor: pointer; }
.mxm-item + .mxm-item { border-top: 1px solid var(--mx-line, rgba(0,0,0,.09)); }
.mxm-item--danger { color: var(--mx-danger, #c23a3a); }
.mxm-done { font-size: 16px; line-height: 1.8; }
@media (min-width: 640px) { .mxm-sheet { margin: auto; border-radius: 24px; } .mxm-sheet__grip { display: none; } .mxm-sheet__in { padding: 18px 22px 22px; } }
@media (prefers-reduced-motion: no-preference) {
  .mxm-sheet[open] { animation: mxmUp .26s var(--mx-ease, ease-out); }
  @keyframes mxmUp { from { transform: translateY(24px); opacity: 0; } }
}

/* the dots on a profile, a piece and a comment */
.mxm-dots { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--mx-text-2); cursor: pointer; }
.mxm-dots .ic { width: 22px; height: 22px; }
.mxm-more { border: 0; padding: 0; flex: none; cursor: pointer; }
.mxm-more .ic { width: 22px; height: 22px; }
@media (max-width: 1023.98px) { .cx-r-by .mxm-dots { display: none; } }
.mxm-dots--sm { width: 32px; height: 32px; }
.mxm-dots--sm .ic { width: 18px; height: 18px; }
.mxm-dots:focus-visible { outline: 2px solid var(--mx-accent-text); }
@media (hover: hover) { .mxm-dots:hover { background: var(--mx-surface-2); } }

/* the notifications page: the one quiet offer */
.mxm-bell { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 16px; padding: 14px 16px; border-radius: 18px; background: var(--mx-surface); box-shadow: 0 0 0 1px var(--mx-line); font-family: var(--mx-font-ui); color: var(--mx-text); }
.mxm-bell[hidden] { display: none; }
.mxm-bell p { flex: 1 1 220px; margin: 0; font-size: 15px; line-height: 1.6; }
.mxm-bell .mxm-msg { flex: 1 1 100%; }

.mxm-signin { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: rgba(194, 58, 58, .1); color: var(--mx-danger, #c23a3a); font-size: 15px; line-height: 1.6; }

/* inside the Android app: no prices and no payments, nothing that asks to install what is already installed */
.mx-app .mxai-packs, .mx-app [data-mxai-packs], .mx-app .install-app, .mx-app .install-record, .mx-app .save-mirdad, .mx-app [data-mx-web-only] { display: none !important; }
