/* ==========================================================================
   Infyrus Astro — authenticated customer layer (reference-locked)
   public/assets/member_v4.css

   This is the ONLY stylesheet the signed-in customer screens load. It owns the
   whole visual system: colour, type scale, radii, borders, the application
   shell and every screen from Login's sibling surfaces through Photos and the
   mobile layouts. No `!important` is used anywhere; specificity is handled by
   ordering and by BEM-style class names.

   The public landing page (Screen 1) is served by /assets/app.css and is not
   touched by this file.
   ========================================================================== */

/* ------------------------------------------------------------------ tokens */
:root {
  --mm-bg: #FFFBF7;
  --mm-surface: #FFFFFF;
  --mm-rail: #FFFFFF;
  --mm-text: #172033;
  --mm-text-2: #6F6A67;
  --mm-text-3: #9A938E;
  --mm-orange: #F36F21;
  --mm-orange-dark: #E85F12;
  --mm-orange-soft: #FFF0E5;
  --mm-heart: #EE5570;
  --mm-rose: #FFF0F3;
  --mm-green: #10A66A;
  --mm-green-soft: #EAF8F1;
  --mm-red: #D93A4E;
  --mm-red-soft: #FDEEF0;
  --mm-border: #EDE5DE;
  --mm-border-strong: #DFD3C8;
  --mm-muted: #FAF7F4;
  --mm-ink-soft: #F3EEE9;

  --mm-r-input: 7px;
  --mm-r-btn: 7px;
  --mm-r-card: 9px;
  --mm-r-panel: 11px;

  --mm-shadow: 0 1px 2px rgba(23, 32, 51, .04);
  --mm-shadow-pop: 0 6px 20px rgba(23, 32, 51, .10);

  --mm-rail-w: 190px;
  --mm-topbar-h: 60px;
  --mm-bottomnav-h: 60px;
  --mm-gap: 16px;

  --mm-font: 'Poppins', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont,
             'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ------------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.mm-shell-page {
  margin: 0;
  background: var(--mm-bg);
  color: var(--mm-text);
  font-family: var(--mm-font);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.mm-shell-page h1, body.mm-shell-page h2, body.mm-shell-page h3,
body.mm-shell-page h4, body.mm-shell-page p, body.mm-shell-page ul,
body.mm-shell-page ol, body.mm-shell-page figure { margin: 0; }
body.mm-shell-page ul, body.mm-shell-page ol { padding: 0; list-style: none; }
body.mm-shell-page img { max-width: 100%; display: block; }
/* Anchors are undecorated and inherit their colour, so a link-button is never
   repainted by a global rule. Inline links inside prose and notes are the only
   places that opt into the action colour. */
body.mm-shell-page a,
body.mm-shell-page a:hover { text-decoration: none; color: inherit; }
.mm-prose a, .mm-notefield a, .mm-compat__none a, .mm-card__body > p a { color: var(--mm-orange-dark); }
.mm-prose a:hover, .mm-notefield a:hover { color: var(--mm-orange); text-decoration: underline; }
/* Only inherit the font family here. Forcing `color: inherit` on every button
   would out-specify .mm-btn--primary and flatten the orange action buttons. */
body.mm-shell-page button,
body.mm-shell-page input,
body.mm-shell-page select,
body.mm-shell-page textarea { font-family: inherit; font-size: inherit; }
body.mm-shell-page table { border-collapse: collapse; width: 100%; }

.ico {
  width: 17px; height: 17px;
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: -.2em;
}

.mm-skip {
  position: absolute; left: -9999px; top: 0; z-index: 90;
  background: var(--mm-surface); padding: 8px 14px; border: 1px solid var(--mm-border);
  border-radius: var(--mm-r-btn);
}
.mm-skip:focus { left: 12px; top: 12px; }

/* ------------------------------------------------------------------- shell */
.mm-rail {
  position: fixed; inset: 0 auto 0 0;
  width: var(--mm-rail-w);
  background: var(--mm-rail);
  border-right: 1px solid var(--mm-border);
  display: flex; flex-direction: column;
  z-index: 40;
}

.mm-rail__brand {
  display: flex; align-items: center; gap: 9px;
  padding: 15px 14px 13px;
  border-bottom: 1px solid var(--mm-border);
  color: var(--mm-text);
}
.mm-rail__brand:hover { color: var(--mm-text); }
.mm-rail__brand img { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; flex: 0 0 auto; }
.mm-rail__brandtext { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.mm-rail__brandtext strong {
  font-size: 11.5px; font-weight: 700; letter-spacing: .055em; color: var(--mm-orange);
  white-space: nowrap;
}
.mm-rail__brandtext small {
  font-size: 9.5px; font-weight: 600; letter-spacing: .13em; color: var(--mm-text-3);
  text-transform: uppercase;
}
.mm-rail__close {
  display: none; margin-left: auto;
  background: none; border: 0; padding: 4px; cursor: pointer; color: var(--mm-text-2);
}

.mm-nav { flex: 1 1 auto; padding: 10px 8px; overflow-y: auto; }
.mm-navlink {
  display: flex; align-items: center; gap: 10px;
  height: 41px; padding: 0 10px;
  border-radius: var(--mm-r-btn);
  color: var(--mm-text-2);
  font-size: 14px; font-weight: 500;
  margin-bottom: 2px;
}
.mm-navlink:hover { background: var(--mm-muted); color: var(--mm-text); }
.mm-navlink.is-active { background: var(--mm-orange-soft); color: var(--mm-orange); font-weight: 600; }
.mm-navlink.is-active .ico { color: var(--mm-orange); }
.mm-navlink__label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-nav__gap { display: block; height: 12px; margin: 6px 10px; border-top: 1px solid var(--mm-border); }

.mm-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 17px; height: 17px; padding: 0 5px;
  background: var(--mm-red); color: #fff;
  font-size: 10px; font-weight: 600; line-height: 1;
  border-radius: 9px;
}
.mm-navlink .mm-badge { margin-left: auto; }

.mm-rail__foot { padding: 10px 12px 14px; border-top: 1px solid var(--mm-border); }

.mm-backdrop {
  display: none; position: fixed; inset: 0; z-index: 35;
  background: rgba(23, 32, 51, .38); border: 0; padding: 0;
}

/* ----------------------------------------------------------------- topbar */
.mm-topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--mm-topbar-h);
  margin-left: var(--mm-rail-w);
  display: flex; align-items: center; gap: 14px;
  padding: 0 18px;
  background: var(--mm-surface);
  border-bottom: 1px solid var(--mm-border);
}
/* Scoped so these stay hidden on desktop even though .mm-iconbtn is declared
   later in this file. The notification bell is in this list on purpose: above
   900px the rail is a persistent sidebar that already carries a Notifications
   link with a badge, so the topbar bell was a second, always-visible bell for
   the same screen. Below 900px the rail becomes a drawer, so the topbar bell
   is the only always-visible one and the media query re-enables it. */
.mm-topbar .mm-drawer-toggle,
.mm-topbar .mm-topbar__brand,
.mm-topbar .mm-bell { display: none; }
.mm-topbar__lead { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.mm-topbar__title { font-size: 15px; font-weight: 600; color: var(--mm-text); }
.mm-topbar__sub { font-size: 14px; color: var(--mm-text-3); }
/* The account cluster is pushed to the right edge with margin-left:auto on the
   cluster itself, not margin-right:auto on the lead. The global reset above
   (`body.mm-shell-page p { margin: 0 }`) is more specific than a bare
   `.mm-topbar__lead`, so the lead's auto margin was always being discarded —
   and below 900px the lead is display:none anyway, which left no spacer at all.
   Measured before the fix at 1440px: cluster right edge 595px, an 845px gap. */
.mm-topbar__tools { display: flex; align-items: center; gap: 10px; margin-left: auto; padding-right: 6px; }

/* The former .mm-lang rules (topbar / rail / account copies) were removed with
   the markup. The member shell now renders the single canonical
   partials/lang_switch.php control, which styles itself, so there is no
   member-specific language CSS to keep in sync. */

.mm-account { position: relative; }

.mm-iconbtn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid transparent; border-radius: var(--mm-r-btn);
  background: none; color: var(--mm-text-2); cursor: pointer;
}
.mm-iconbtn:hover { background: var(--mm-muted); color: var(--mm-text); }
.mm-iconbtn .mm-badge { position: absolute; top: 1px; right: 0; }

.mm-account .mm-avatar { width: 34px; height: 34px; font-size: 14px; }
.mm-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--mm-orange-soft); color: var(--mm-orange-dark);
  font-size: 14px; font-weight: 600; overflow: hidden; flex: 0 0 auto;
}
.mm-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Row avatars (Dashboard "who requested me" / "who I am connected to"). */
.mm-row > .mm-avatar { width: 40px; height: 40px; font-size: 15px; }
.mm-row__text { min-width: 0; display: block; }
.mm-row__name { display: block; font-size: 15px; font-weight: 600; }
.mm-row__meta { display: block; font-size: 14px; color: var(--mm-text-2); }

/* Generic photo block used by MemberView::photo(). */
.mm-photo-block {
  position: relative; aspect-ratio: 1 / 1.1; overflow: hidden;
  background: var(--mm-ink-soft); border-radius: var(--mm-r-card);
}
.mm-photo-block img { width: 100%; height: 100%; object-fit: cover; }
.mm-photo-block--initials { display: flex; align-items: center; justify-content: center; }
.mm-photo-block--initials span { font-size: 30px; font-weight: 600; color: #C9BDB2; }

.mm-account { position: relative; }
.mm-account > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  padding: 4px 6px 4px 4px; border-radius: 18px; border: 1px solid transparent;
}
.mm-account > summary::-webkit-details-marker { display: none; }
.mm-account > summary:hover { background: var(--mm-muted); }
.mm-account__name { font-size: 13.5px; font-weight: 500; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-account__chev { display: inline-flex; color: var(--mm-text-3); }
.mm-account__chev .ico { width: 15px; height: 15px; transform: rotate(90deg); }
.mm-account__panel {
  position: absolute; right: 0; top: calc(100% + 6px);
  width: 216px; padding: 6px;
  background: var(--mm-surface);
  border: 1px solid var(--mm-border); border-radius: 9px;
  box-shadow: var(--mm-shadow-pop);
  z-index: 30;
}
.mm-account__head { padding: 8px 10px 10px; border-bottom: 1px solid var(--mm-border); margin-bottom: 4px; }
.mm-account__head strong { display: block; font-size: 14px; font-weight: 600; }
.mm-account__head small { display: block; font-size: 12px; color: var(--mm-text-3); }
.mm-account__panel a, .mm-account__panel button {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 8px 10px; border: 0; background: none; border-radius: 6px;
  font-size: 13.5px; color: var(--mm-text); text-align: left; cursor: pointer;
}
.mm-account__panel a:hover, .mm-account__panel button:hover { background: var(--mm-muted); color: var(--mm-text); }
.mm-account__panel form { margin-top: 4px; padding-top: 4px; }

.mm-main {
  margin-left: var(--mm-rail-w);
  min-height: calc(100vh - var(--mm-topbar-h));
  min-width: 0;
}

/* -------------------------------------------------------------- bottom nav */
.mm-bottomnav { display: none; }

/* ------------------------------------------------------------ page canvas */
.mm-page { padding: 20px 22px 40px; max-width: 1120px; }
.mm-page--wide { max-width: none; }
.mm-page--flush { padding: 0; max-width: none; }

.mm-pagehead {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 16px;
}
.mm-pagehead__eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--mm-orange); margin-bottom: 4px;
}
.mm-pagehead h1 { font-size: 25px; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
.mm-pagehead__sub { font-size: 14px; color: var(--mm-text-2); margin-top: 4px; max-width: 62ch; }

.mm-sectionhead {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin: 22px 0 12px;
}
.mm-sectionhead h2 { font-size: 17.5px; font-weight: 650; letter-spacing: -.01em; }
.mm-sectionhead__link { font-size: 13.5px; font-weight: 600; color: var(--mm-orange); white-space: nowrap; }
.mm-sectionhead__link:hover { color: var(--mm-orange-dark); }
.mm-sectionhead__count { font-size: 13.5px; color: var(--mm-text-3); }

.mm-subhead { font-size: 14.5px; font-weight: 600; margin: 0 0 6px; }
.mm-muted { color: var(--mm-text-2); font-size: 14px; }
.mm-tiny { font-size: 14px; color: var(--mm-text-3); }
.mm-row { display: flex; align-items: center; gap: 8px; }
.mm-row--wrap { flex-wrap: wrap; }
.mm-spacer { flex: 1 1 auto; }

/* ------------------------------------------------------------------- card */
.mm-card {
  background: var(--mm-surface);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-r-card);
  box-shadow: var(--mm-shadow);
}
.mm-card__pad { padding: 16px 18px; }
.mm-card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px; border-bottom: 1px solid var(--mm-border);
}
.mm-card__head h2, .mm-card__head h3 { font-size: 14.5px; font-weight: 650; }
.mm-card__body { padding: 15px 16px; }
.mm-card__foot { padding: 12px 16px; border-top: 1px solid var(--mm-border); background: var(--mm-muted); border-radius: 0 0 var(--mm-r-card) var(--mm-r-card); }

/* ---------------------------------------------------------------- buttons */
.mm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 16px;
  border: 1px solid transparent; border-radius: var(--mm-r-btn);
  background: var(--mm-muted); color: var(--mm-text);
  font-size: 14px; font-weight: 600; line-height: 1;
  cursor: pointer; white-space: nowrap; text-align: center;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.mm-btn--primary { background: var(--mm-orange); border-color: var(--mm-orange); color: #fff; }
.mm-btn--primary:hover { background: var(--mm-orange-dark); border-color: var(--mm-orange-dark); color: #fff; }
.mm-btn--outline { background: var(--mm-surface); border-color: var(--mm-orange); color: var(--mm-orange); }
.mm-btn--outline:hover { background: var(--mm-orange-soft); color: var(--mm-orange-dark); }
.mm-btn--quiet { background: var(--mm-surface); border-color: var(--mm-border); color: var(--mm-text-2); }
.mm-btn--quiet:hover { background: var(--mm-muted); color: var(--mm-text); }
.mm-btn--green { background: var(--mm-green); border-color: var(--mm-green); color: #fff; }
.mm-btn--green:hover { background: #0C8F5B; border-color: #0C8F5B; color: #fff; }
.mm-btn--danger { background: var(--mm-surface); border-color: #F0B9C1; color: var(--mm-red); }
.mm-btn--danger:hover { background: var(--mm-red-soft); }
.mm-btn--sm { height: 32px; padding: 0 12px; font-size: 14px; }
.mm-btn--xs { height: 28px; padding: 0 10px; font-size: 14px; }
.mm-btn--block { width: 100%; }
.mm-btn[disabled], .mm-btn[aria-disabled='true'] { opacity: .5; cursor: not-allowed; }

.mm-iconbtn--sm { width: 30px; height: 30px; }

/* ------------------------------------------------------------------ forms */
.mm-form { display: grid; gap: 14px; }
.mm-field { display: grid; gap: 5px; }
.mm-field__label { font-size: 13.5px; font-weight: 600; color: var(--mm-text); }
.mm-field__hint { font-size: 14px; color: var(--mm-text-3); }
.mm-field__err { font-size: 14px; color: var(--mm-red); }
.mm-input, .mm-select, .mm-textarea {
  width: 100%; min-height: 38px; padding: 8px 11px;
  border: 1px solid var(--mm-border-strong); border-radius: var(--mm-r-input);
  background: var(--mm-surface); color: var(--mm-text);
  font-family: inherit; font-size: 14px; line-height: 1.4;
}
.mm-textarea { min-height: 84px; resize: vertical; }
.mm-input:focus, .mm-select:focus, .mm-textarea:focus {
  outline: none; border-color: var(--mm-orange);
  box-shadow: 0 0 0 3px rgba(243, 111, 33, .12);
}
.mm-input::placeholder, .mm-textarea::placeholder { color: var(--mm-text-3); }
.mm-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236F6A67' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 11px;
  padding-right: 30px;
}
.mm-input--search { padding-left: 33px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239A938E' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.4'/%3E%3Cpath d='M20 20l-4.4-4.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 10px center; background-size: 15px;
}
.mm-inputgroup { position: relative; display: flex; align-items: center; }
.mm-inputgroup .mm-input { padding-right: 40px; }
.mm-inputgroup__btn {
  position: absolute; right: 4px; width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: none; color: var(--mm-text-3); cursor: pointer; border-radius: 6px;
}
.mm-inputgroup__btn:hover { color: var(--mm-text); background: var(--mm-muted); }

.mm-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--mm-text-2); cursor: pointer; }
.mm-check input { width: 15px; height: 15px; accent-color: var(--mm-orange); }

.mm-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; color: var(--mm-text-2); }
.mm-switch input { position: absolute; opacity: 0; pointer-events: none; }
.mm-switch__track {
  width: 38px; height: 21px; border-radius: 11px; background: var(--mm-ink-soft);
  border: 1px solid var(--mm-border); position: relative; transition: background .14s ease, border-color .14s ease; flex: 0 0 auto;
}
.mm-switch__track::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 15px; height: 15px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(23, 32, 51, .18); transition: transform .14s ease;
}
.mm-switch input:checked + .mm-switch__track { background: var(--mm-orange); border-color: var(--mm-orange); }
.mm-switch input:checked + .mm-switch__track::after { transform: translateX(17px); }
.mm-switch input:focus-visible + .mm-switch__track { box-shadow: 0 0 0 3px rgba(243, 111, 33, .16); }

.mm-radio {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 13px; border: 1px solid var(--mm-border); border-radius: var(--mm-r-input);
  cursor: pointer; background: var(--mm-surface);
}
.mm-radio:hover { border-color: var(--mm-border-strong); background: var(--mm-muted); }
.mm-radio input { margin-top: 2px; accent-color: var(--mm-orange); }
.mm-radio:has(input:checked) { border-color: var(--mm-orange); background: var(--mm-orange-soft); }
.mm-radio__text { display: grid; gap: 1px; }
.mm-radio__title { font-size: 14px; font-weight: 600; }
.mm-radio__sub { font-size: 14px; color: var(--mm-text-2); }

/* ------------------------------------------------------------------- tabs */
/* Scoped so it out-specifies the layout rules below, which would otherwise keep
   a [hidden] tab panel visible (the UA `[hidden]` rule is the weakest one). */
body.mm-shell-page [hidden] { display: none; }

.mm-tabs {
  display: flex; align-items: flex-end; gap: 2px;
  border-bottom: 1px solid var(--mm-border);
  overflow-x: auto; scrollbar-width: none;
}
.mm-tabs::-webkit-scrollbar { display: none; }
.mm-tab {
  position: relative; white-space: nowrap;
  padding: 9px 13px 10px;
  border: 0; background: none; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--mm-text-2);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.mm-tab:hover { color: var(--mm-text); }
.mm-tab.is-active { color: var(--mm-orange); border-bottom-color: var(--mm-orange); }
.mm-tab__count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 17px; height: 17px; padding: 0 5px; margin-left: 5px;
  background: var(--mm-muted); color: var(--mm-text-2);
  font-size: 12px; font-weight: 600; border-radius: 9px;
}
.mm-tab.is-active .mm-tab__count { background: var(--mm-orange-soft); color: var(--mm-orange); }

/* ---------------------------------------------------------------- profile */
.mm-pcard {
  display: flex; flex-direction: column;
  background: var(--mm-surface);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-r-card);
  overflow: hidden;
  box-shadow: var(--mm-shadow);
  transition: border-color .14s ease, box-shadow .14s ease;
}
.mm-pcard:hover { border-color: var(--mm-border-strong); box-shadow: 0 2px 8px rgba(23, 32, 51, .06); }
.mm-pcard__media { position: relative; aspect-ratio: 1 / 1.06; background: var(--mm-ink-soft); }
.mm-pcard__media img { width: 100%; height: 100%; object-fit: cover; }
.mm-pcard__initial {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 600; color: #C9BDB2;
  background: linear-gradient(160deg, #F7F1EB, #EFE6DE);
}
.mm-pcard__save {
  position: absolute; top: 8px; right: 8px;
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .94); color: var(--mm-heart);
  border: 1px solid rgba(237, 229, 222, .9); cursor: pointer;
  box-shadow: 0 1px 3px rgba(23, 32, 51, .12);
}
.mm-pcard__save:hover { background: #fff; }
.mm-pcard__save .ico { width: 16px; height: 16px; }
.mm-pcard__flag {
  position: absolute; left: 8px; top: 8px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 7px; border-radius: 5px;
  background: rgba(255, 255, 255, .94); color: var(--mm-green);
  font-size: 12px; font-weight: 600;
  border: 1px solid rgba(237, 229, 222, .9);
}
.mm-pcard__flag .ico { width: 12px; height: 12px; }
.mm-pcard__body { padding: 11px 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; }
.mm-pcard__name { font-size: 14.5px; font-weight: 650; letter-spacing: -.005em; }
.mm-pcard__name a { color: var(--mm-text); }
.mm-pcard__name a:hover { color: var(--mm-orange); }
.mm-pcard__where { font-size: 14px; color: var(--mm-text-2); }
.mm-pcard__work { font-size: 14px; color: var(--mm-text-2); }
.mm-pcard__foot { margin-top: auto; padding-top: 9px; display: grid; gap: 8px; }
.mm-pcard__state { display: flex; }

.mm-match {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 14px; font-weight: 600; color: var(--mm-heart);
}
.mm-match .ico { width: 14px; height: 14px; color: var(--mm-heart); }
.mm-match--mid { color: #C9822A; }
.mm-match--mid .ico { color: #C9822A; }
.mm-match--low { color: var(--mm-text-2); }
.mm-match--low .ico { color: var(--mm-text-3); }
.mm-match--none { color: var(--mm-text-3); font-weight: 500; }

/* Reference proportions: three cards per row at roughly 230–250px, left aligned
   inside the content column. */
.mm-grid { display: grid; gap: 18px 20px; grid-template-columns: repeat(3, minmax(0, 244px)); }
.mm-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mm-grid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mm-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* --------------------------------------------------------------- progress */
.mm-progress {
  display: block;
  height: 6px; border-radius: 3px; background: var(--mm-ink-soft); overflow: hidden;
}
.mm-progress > span { display: block; height: 100%; background: var(--mm-orange); border-radius: 3px; }
.mm-progress--green > span { background: var(--mm-green); }

.mm-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: 5px;
  background: var(--mm-muted); color: var(--mm-text-2);
  font-size: 11.5px; font-weight: 500;
}
.mm-chip--green { background: var(--mm-green-soft); color: #0C8F5B; }
.mm-chip--orange { background: var(--mm-orange-soft); color: var(--mm-orange-dark); }
.mm-chip--rose { background: var(--mm-rose); color: var(--mm-heart); }
.mm-chip--verified { background: var(--mm-green-soft); color: #0C8F5B; }
.mm-chip--verified .ico { width: 12px; height: 12px; }

/* Body lock while a sheet is open, so the page behind cannot scroll. */
body.mm-modal-open { overflow: hidden; }

.mm-spinner {
  width: 14px; height: 14px; border-radius: 50%; display: inline-block;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  animation: mm-spin .7s linear infinite; vertical-align: -.2em;
}
@keyframes mm-spin { to { transform: rotate(360deg); } }
.mm-btn.is-busy { pointer-events: none; opacity: .85; }
@media (prefers-reduced-motion: reduce) {
  .mm-spinner { animation-duration: 2.4s; }
}

/* Empty photo state — honest copy, no promise that photos guarantee matches. */
.mm-photoempty {
  display: grid; justify-items: center; gap: 7px; text-align: center;
  padding: 30px 20px;
  border: 1.5px dashed var(--mm-border-strong); border-radius: var(--mm-r-card);
  background: var(--mm-muted);
}
.mm-photoempty__ico {
  width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--mm-surface); color: var(--mm-orange); border: 1px solid var(--mm-border);
}
.mm-photoempty h3 { font-size: 15px; font-weight: 650; }
.mm-photoempty p { font-size: 13.5px; color: var(--mm-text-2); max-width: 38ch; }
.mm-photoempty .mm-btn { margin-top: 6px; }

.mm-photo-preview {
  width: 100%; max-height: 300px; object-fit: contain;
  border-radius: var(--mm-r-card); border: 1px solid var(--mm-border);
  background: var(--mm-muted);
}
.mm-photo-preview[hidden] { display: none; }

/* ------------------------------------------------------------------ modal */
/* Compact centred sheet on desktop, bottom sheet on mobile. Opened only by an
   explicit button, so a report or block is never one stray tap away. */
.mm-modal {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(23, 32, 51, .42);
}
.mm-modal[hidden] { display: none; }
.mm-modal__panel {
  width: min(420px, 100%);
  display: grid; gap: 13px;
  padding: 20px 22px;
  background: var(--mm-surface);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-r-panel);
  box-shadow: var(--mm-shadow-pop);
}
.mm-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mm-modal__head h2 { font-size: 16px; font-weight: 650; }
.mm-modal__note {
  font-size: 13.5px; color: var(--mm-text-2); line-height: 1.55;
  padding: 9px 11px; border-radius: var(--mm-r-input);
  background: var(--mm-muted); border: 1px solid var(--mm-border);
}
.mm-modal__actions { display: flex; justify-content: flex-end; gap: 8px; }

@media (max-width: 600px) {
  .mm-modal { align-items: flex-end; padding: 0; }
  .mm-modal__panel {
    width: 100%; border-radius: 14px 14px 0 0;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    max-height: 88vh; overflow-y: auto;
  }
}

/* ---------------------------------------------------------------- notices */
.mm-notice {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 10px 13px; margin-bottom: 14px;
  border: 1px solid var(--mm-border); border-radius: var(--mm-r-input);
  background: var(--mm-surface); font-size: 13.5px;
}
.mm-notice--ok { background: var(--mm-green-soft); border-color: #CDEBDF; color: #0C7A50; }
.mm-notice--err { background: var(--mm-red-soft); border-color: #F3CDD3; color: #A32E3E; }
.mm-notice--info { background: var(--mm-orange-soft); border-color: #F7DCC6; color: #A34C12; }
.mm-notice .ico { margin-top: 1px; }

.mm-empty {
  display: grid; gap: 8px; justify-items: center; text-align: center;
  padding: 40px 20px;
  background: var(--mm-surface); border: 1px dashed var(--mm-border-strong);
  border-radius: var(--mm-r-card);
}
.mm-empty__ico {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--mm-orange-soft); color: var(--mm-orange);
}
.mm-empty h2 { font-size: 15.5px; font-weight: 650; }
.mm-empty p { font-size: 13.5px; color: var(--mm-text-2); max-width: 46ch; }

/* ------------------------------------------------------------ empty stats */
.mm-filters {
  display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px;
  background: var(--mm-surface); border: 1px solid var(--mm-border);
  border-radius: var(--mm-r-card);
}
.mm-filters__group { display: grid; gap: 4px; }
.mm-filters__label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mm-text-3); }
.mm-filters__ages { display: flex; align-items: center; gap: 6px; }
.mm-filters__ages span { color: var(--mm-text-3); }
.mm-filters__ages .mm-input { width: 68px; min-height: 34px; }
.mm-filters__actions { display: flex; gap: 8px; margin-left: auto; }
.mm-filters__more { position: relative; }
.mm-filters__panel {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 25;
  width: 268px; padding: 14px; display: grid; gap: 12px;
  background: var(--mm-surface); border: 1px solid var(--mm-border);
  border-radius: var(--mm-r-panel); box-shadow: var(--mm-shadow-pop);
}
.mm-filters__panel[hidden] { display: none; }
.mm-more { position: relative; }

.mm-resultbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin: 16px 0 12px;
}
.mm-resultbar__count { font-size: 14px; color: var(--mm-text-2); }
.mm-resultbar__count strong { color: var(--mm-text); font-weight: 650; }
.mm-resultbar__right { display: flex; align-items: center; gap: 8px; }
.mm-resultbar__right label { font-size: 13.5px; color: var(--mm-text-2); }
.mm-resultbar__right .mm-select { min-height: 32px; padding-top: 5px; padding-bottom: 5px; font-size: 13.5px; width: auto; }

.mm-pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; }

/* ------------------------------------------------------------- completion */
.mm-strip {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  background: var(--mm-surface); border: 1px solid var(--mm-border);
  border-radius: var(--mm-r-card); box-shadow: var(--mm-shadow);
}
.mm-strip__ico {
  width: 40px; height: 40px; border-radius: 9px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--mm-orange-soft); color: var(--mm-orange);
}
.mm-strip__ico .ico { width: 19px; height: 19px; }
.mm-strip__body { flex: 1 1 auto; min-width: 0; display: grid; gap: 4px; }
.mm-strip__title { font-size: 14px; font-weight: 650; }
.mm-strip__meta { font-size: 12px; color: var(--mm-text-2); }
.mm-strip__bar { display: flex; align-items: center; gap: 9px; }
.mm-strip__bar .mm-progress { flex: 1 1 auto; max-width: 260px; }
.mm-strip__pct { font-size: 12px; font-weight: 650; color: var(--mm-orange); min-width: 34px; }
.mm-strip--done .mm-strip__ico { background: var(--mm-green-soft); color: var(--mm-green); }
.mm-strip--done .mm-strip__pct { color: var(--mm-green); }

/* --------------------------------------------------------------- requests */
.mm-reqlist { display: grid; gap: 10px; }
.mm-req {
  display: flex; align-items: center; gap: 13px;
  padding: 11px 14px;
  background: var(--mm-surface); border: 1px solid var(--mm-border);
  border-radius: var(--mm-r-card); box-shadow: var(--mm-shadow);
}
.mm-req__photo {
  width: 60px; height: 60px; border-radius: 8px; flex: 0 0 auto; overflow: hidden;
  background: var(--mm-ink-soft);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 600; color: #C9BDB2;
}
.mm-req__photo img { width: 100%; height: 100%; object-fit: cover; }
.mm-req__body { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.mm-req__name { font-size: 14.5px; font-weight: 650; }
.mm-req__name a { color: var(--mm-text); }
.mm-req__name a:hover { color: var(--mm-orange); }
.mm-req__meta { font-size: 14px; color: var(--mm-text-2); }
.mm-req__actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; }

.mm-status { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 600; }
.mm-status--pending { color: #C9822A; }
.mm-status--accepted, .mm-status--connected { color: var(--mm-green); }
.mm-status--declined, .mm-status--cancelled { color: var(--mm-text-3); }

/* ------------------------------------------------------------------- chat */
.mm-chat {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  height: calc(100vh - var(--mm-topbar-h));
  background: var(--mm-surface);
}
.mm-chat--nothread { grid-template-columns: 300px minmax(0, 1fr); }

.mm-chat__rail {
  border-right: 1px solid var(--mm-border);
  display: flex; flex-direction: column; min-width: 0;
  background: var(--mm-surface);
}
.mm-chat__search { padding: 12px 12px 10px; border-bottom: 1px solid var(--mm-border); }
.mm-chat__search .mm-input { min-height: 34px; font-size: 13.5px; }
.mm-convos { flex: 1 1 auto; overflow-y: auto; }
.mm-convo {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; min-height: 68px;
  border-bottom: 1px solid var(--mm-muted);
  color: var(--mm-text);
}
.mm-convo:hover { background: var(--mm-muted); color: var(--mm-text); }
.mm-convo.is-active { background: var(--mm-orange-soft); color: var(--mm-text); }
.mm-convo__photo {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto; overflow: hidden;
  background: var(--mm-ink-soft);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600; color: #C9BDB2;
}
.mm-convo__photo img { width: 100%; height: 100%; object-fit: cover; }
.mm-convo__body { flex: 1 1 auto; min-width: 0; display: grid; gap: 1px; }
.mm-convo__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.mm-convo__name { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-convo__time { font-size: 12px; color: var(--mm-text-3); white-space: nowrap; flex: 0 0 auto; }
.mm-convo__preview {
  font-size: 14px; color: var(--mm-text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mm-convo .mm-badge { margin-left: auto; }

.mm-thread { display: flex; flex-direction: column; min-width: 0; background: var(--mm-bg); }
.mm-thread__head {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 16px; min-height: 58px;
  background: var(--mm-surface); border-bottom: 1px solid var(--mm-border);
}
.mm-thread__back { display: none; }
.mm-thread__photo {
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto; overflow: hidden;
  background: var(--mm-ink-soft);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: #C9BDB2;
}
.mm-thread__photo img { width: 100%; height: 100%; object-fit: cover; }
.mm-thread__id { flex: 1 1 auto; min-width: 0; display: grid; gap: 0; }
.mm-thread__name { font-size: 14px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-thread__status { font-size: 11.5px; color: var(--mm-text-3); }
.mm-thread__actions { display: flex; align-items: center; gap: 4px; }

.mm-msgs {
  flex: 1 1 auto; overflow-y: auto;
  padding: 18px 20px 10px;
  display: flex; flex-direction: column; gap: 6px;
}
.mm-msgs__day {
  align-self: center; margin: 8px 0 4px;
  padding: 3px 10px; border-radius: 10px;
  background: var(--mm-ink-soft); color: var(--mm-text-3);
  font-size: 12px; font-weight: 600;
}
.mm-msg { display: flex; max-width: 64%; }
.mm-msg--in { align-self: flex-start; }
.mm-msg--out { align-self: flex-end; }
.mm-bubble {
  padding: 8px 12px; border-radius: 10px;
  font-size: 14px; line-height: 1.45;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.mm-msg--in .mm-bubble { background: var(--mm-surface); border: 1px solid var(--mm-border); color: var(--mm-text); border-bottom-left-radius: 3px; }
.mm-msg--out .mm-bubble { background: var(--mm-orange); color: #fff; border-bottom-right-radius: 3px; }
.mm-msg__meta { margin-top: 3px; font-size: 12px; color: var(--mm-text-3); display: flex; gap: 4px; align-items: center; }
.mm-msg--out .mm-msg__meta { justify-content: flex-end; }

.mm-composer {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 11px 16px;
  background: var(--mm-surface); border-top: 1px solid var(--mm-border);
}
.mm-composer .mm-input { min-height: 38px; border-radius: 19px; padding: 8px 15px; resize: none; }
.mm-composer__send {
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: var(--mm-orange); color: #fff; cursor: pointer;
}
.mm-composer__send:hover { background: var(--mm-orange-dark); }
.mm-composer__send .ico { width: 17px; height: 17px; transform: translateX(1px); }

.mm-thread__placeholder {
  flex: 1 1 auto; display: grid; place-content: center; justify-items: center; gap: 10px;
  text-align: center; padding: 30px;
}
.mm-thread__placeholder .mm-empty__ico { width: 50px; height: 50px; }
.mm-thread__placeholder h2 { font-size: 16px; font-weight: 650; }
.mm-thread__placeholder p { font-size: 12.5px; color: var(--mm-text-2); max-width: 40ch; }

/* ------------------------------------------------------------ detail page */
.mm-detail { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 20px; align-items: start; }
/* Explicit single column: an implicit `auto` track is content-sized, so one wide
   child (the photo gallery) would push the whole page sideways on a phone. */
.mm-detail__main { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.mm-detail__main > * { min-width: 0; }
.mm-detail__side { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; position: sticky; top: calc(var(--mm-topbar-h) + 16px); }

.mm-hero { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; }
.mm-hero > * { min-width: 0; }
.mm-gallery { display: grid; gap: 8px; }
.mm-gallery__main {
  position: relative; aspect-ratio: 4 / 4.6; border-radius: var(--mm-r-panel);
  overflow: hidden; background: var(--mm-ink-soft); border: 1px solid var(--mm-border);
}
.mm-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.mm-gallery__initial {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 44px; font-weight: 600; color: #C9BDB2;
  background: linear-gradient(160deg, #F7F1EB, #EFE6DE);
}
.mm-gallery__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mm-gallery__thumb {
  position: relative; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden;
  background: var(--mm-ink-soft); border: 1px solid var(--mm-border); cursor: pointer; padding: 0;
}
.mm-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mm-gallery__thumb.is-active { border-color: var(--mm-orange); box-shadow: 0 0 0 2px rgba(243, 111, 33, .18); }
.mm-gallery__thumb--add {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  border-style: dashed; color: var(--mm-orange); background: var(--mm-orange-soft);
  font-size: 11px; font-weight: 600;
}

.mm-hero__body { display: grid; align-content: start; gap: 12px; min-width: 0; }
.mm-hero__name {
  font-size: 26px; font-weight: 700; letter-spacing: -.015em; line-height: 1.15;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.mm-hero__name .mm-chip--verified .ico { width: 13px; height: 13px; }
.mm-hero__meta { display: grid; gap: 4px; }
.mm-hero__line { font-size: 14px; color: var(--mm-text-2); display: flex; align-items: center; gap: 7px; }
.mm-hero__line .ico { width: 14px; height: 14px; color: var(--mm-text-3); }
.mm-hero__actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 2px; }
.mm-hero__actions > form { display: inline-flex; }

.mm-compat-hero {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 15px; border-radius: var(--mm-r-card);
  background: var(--mm-rose); border: 1px solid #F9DDE3;
}
.mm-compat-hero__ring {
  width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--mm-surface); color: var(--mm-heart);
  font-size: 13.5px; font-weight: 700;
}
.mm-compat-hero__text { display: grid; gap: 1px; min-width: 0; }
.mm-compat-hero__title { font-size: 14px; font-weight: 650; color: #C33A55; }
.mm-compat-hero__sub { font-size: 14px; color: #9E4E5F; }

.mm-deflist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.mm-deflist--1 { grid-template-columns: minmax(0, 1fr); }
.mm-def { display: grid; gap: 1px; min-width: 0; }
.mm-def__k { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mm-text-3); }
.mm-def__v { font-size: 15px; font-weight: 550; overflow-wrap: anywhere; }
.mm-def__v--muted { color: var(--mm-text-3); font-weight: 400; }

.mm-prose { font-size: 15px; line-height: 1.65; color: var(--mm-text); }
.mm-prose + .mm-prose { margin-top: 8px; }
.mm-taglist { display: flex; flex-wrap: wrap; gap: 6px; }

.mm-compat__total { display: flex; align-items: baseline; gap: 8px; }
.mm-compat__score { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.mm-compat__pct { font-size: 14px; font-weight: 650; color: var(--mm-heart); }
.mm-compat__bar { margin: 10px 0 4px; }
.mm-koota { display: grid; gap: 9px; }
.mm-koota__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; }
.mm-koota__name { font-size: 13.5px; font-weight: 600; }
.mm-koota__score { font-size: 14px; color: var(--mm-text-2); font-variant-numeric: tabular-nums; }
.mm-koota__bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--mm-ink-soft); overflow: hidden; }
.mm-koota__bar > span { display: block; height: 100%; background: var(--mm-heart); }
.mm-koota__bar--full > span { background: var(--mm-green); }
.mm-koota__bar--zero > span { background: var(--mm-red); }
.mm-compat__none { font-size: 13.5px; color: var(--mm-text-2); }
.mm-compat__note { font-size: 14px; color: var(--mm-text-3); border-top: 1px solid var(--mm-border); padding-top: 11px; margin-top: 13px; }

/* ------------------------------------------------------- profile workspace */
.mm-workspace { display: grid; grid-template-columns: 244px minmax(0, 1fr); gap: 20px; align-items: start; }
.mm-summary { display: grid; gap: 12px; }
.mm-summary__card {
  padding: 18px 16px; text-align: center;
  background: var(--mm-surface); border: 1px solid var(--mm-border);
  border-radius: var(--mm-r-card); box-shadow: var(--mm-shadow);
}
.mm-summary__photo {
  position: relative; width: 96px; height: 96px; margin: 0 auto 11px;
  border-radius: 50%; overflow: hidden; background: var(--mm-ink-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 600; color: #C9BDB2;
  border: 2px solid var(--mm-surface); box-shadow: 0 0 0 1px var(--mm-border);
}
.mm-summary__photo img { width: 100%; height: 100%; object-fit: cover; }
.mm-summary__camera {
  position: absolute; right: -1px; bottom: -1px;
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--mm-orange); color: #fff; border: 2px solid var(--mm-surface);
}
.mm-summary__name { font-size: 15px; font-weight: 650; }
.mm-summary__where { font-size: 14px; color: var(--mm-text-2); margin-top: 2px; }
.mm-summary__pct { font-size: 14px; color: var(--mm-text-2); margin: 11px 0 5px; }
.mm-summary__pct strong { color: var(--mm-text); font-weight: 650; }
.mm-summary__card .mm-btn { margin-top: 13px; }

.mm-tabsbar { margin-bottom: 16px; }
.mm-panel { display: grid; gap: 16px; }
.mm-panel[hidden] { display: none; }
.mm-panel__head { display: grid; gap: 2px; }
.mm-panel__head h2 { font-size: 17.5px; font-weight: 650; }
.mm-panel__head p { font-size: 13.5px; color: var(--mm-text-2); }

/* Collapsible editor inside a card head — keeps the read-only detail grid as
   the primary surface and the form one click away. */
.mm-editor { position: relative; max-width: 100%; }
/* Make the closed state explicit. Chrome's ::details-content keeps a box for
   the hidden children, which widened the card head and pushed the form past the
   viewport on narrow screens. */
.mm-editor > *:not(summary) { display: none; }
.mm-editor[open] > *:not(summary) { display: block; }
.mm-editor > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: var(--mm-r-btn);
  border: 1px solid var(--mm-border-strong); background: var(--mm-surface);
  font-size: 14px; font-weight: 600; color: var(--mm-text-2);
}
.mm-editor > summary::-webkit-details-marker { display: none; }
.mm-editor > summary:hover { background: var(--mm-muted); color: var(--mm-text); }
.mm-editor[open] > summary { background: var(--mm-orange-soft); border-color: #F7DCC6; color: var(--mm-orange-dark); }
.mm-editor > form {
  position: absolute; z-index: 26; right: 0; top: calc(100% + 6px);
  width: min(420px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
  padding: 16px; background: var(--mm-surface);
  border: 1px solid var(--mm-border); border-radius: var(--mm-r-panel);
  box-shadow: var(--mm-shadow-pop);
}

.mm-photogrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mm-photo {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--mm-r-card); overflow: hidden;
  background: var(--mm-ink-soft); border: 1px solid var(--mm-border);
}
.mm-photo img { width: 100%; height: 100%; object-fit: cover; }
.mm-photo__tag {
  position: absolute; left: 7px; top: 7px;
  padding: 3px 8px; border-radius: 5px;
  background: var(--mm-orange); color: #fff;
  font-size: 12px; font-weight: 600;
}
.mm-photo__bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 4px;
  padding: 20px 7px 7px;
  background: linear-gradient(to top, rgba(23, 32, 51, .78), rgba(23, 32, 51, 0));
}
.mm-photo__btn {
  width: 26px; height: 26px; border-radius: 6px; border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .92); color: var(--mm-text); cursor: pointer;
}
.mm-photo__btn:hover { background: #fff; }
.mm-photo__btn .ico { width: 14px; height: 14px; }
.mm-photo__btn--danger { color: var(--mm-red); }
.mm-photo__add {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  aspect-ratio: 3 / 4;
  border: 1.5px dashed var(--mm-border-strong); border-radius: var(--mm-r-card);
  background: var(--mm-muted); color: var(--mm-text-2);
  font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.mm-photo__add:hover { border-color: var(--mm-orange); color: var(--mm-orange); background: var(--mm-orange-soft); }
.mm-photo__add .ico { width: 20px; height: 20px; }
/* Transparent, full-bleed native file input: the whole tile is the button. */
.mm-photo__file {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; font-size: 0;
}
.mm-photo__privacy {
  width: 84px; min-height: 26px; height: 26px;
  padding: 2px 20px 2px 8px; font-size: 12px; border-radius: 6px;
  background-color: #fff; background-position: right 6px center;
}

.mm-formgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mm-formgrid--full { grid-column: 1 / -1; }
.mm-formgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.mm-checkgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mm-checkgrid label {
  display: flex; align-items: center; gap: 7px; padding: 8px 10px;
  border: 1px solid var(--mm-border); border-radius: var(--mm-r-input);
  font-size: 13.5px; cursor: pointer; background: var(--mm-surface);
}
.mm-checkgrid label:has(input:checked) { border-color: var(--mm-orange); background: var(--mm-orange-soft); }
.mm-checkgrid input { accent-color: var(--mm-orange); }

/* ------------------------------------------------------------- settings */
.mm-setlist { display: grid; }
.mm-setrow {
  display: flex; align-items: center; gap: 16px;
  padding: 15px 18px; border-bottom: 1px solid var(--mm-border);
}
.mm-setrow:last-child { border-bottom: 0; }
.mm-setrow__body { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.mm-setrow__title { font-size: 13.5px; font-weight: 600; }
.mm-setrow__sub { font-size: 12px; color: var(--mm-text-2); }
.mm-setrow__side { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
.mm-setrow__value { font-size: 13.5px; font-weight: 600; }
.mm-setrow--stack { display: grid; gap: 12px; }

.mm-notefield {
  font-size: 14px; color: var(--mm-text-2);
  padding: 9px 11px; border-radius: var(--mm-r-input);
  background: var(--mm-muted); border: 1px solid var(--mm-border);
}

/* ============================================================== onboarding
   The four-step setup wizard keeps its own markup and its existing validation
   (18+, BS/AD, location cascade, save/resume). Only the presentation lives here
   so the wizard looks like the rest of the member app.
   ========================================================================= */
.mm-kicker {
  font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--mm-orange);
}
.onboarding-wrap { max-width: 880px; margin: 0 auto; padding: 20px 22px 40px; }
.onboarding-intro {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 16px;
}
.onboarding-intro h1 { font-size: 25px; font-weight: 700; letter-spacing: -.015em; margin: 4px 0 6px; }
.onboarding-intro p { font-size: 13px; color: var(--mm-text-2); max-width: 54ch; }

.completion-meter {
  display: grid; gap: 4px; min-width: 168px;
  padding: 11px 14px; background: var(--mm-surface);
  border: 1px solid var(--mm-border); border-radius: var(--mm-r-card);
}
.completion-meter strong { font-size: 18px; font-weight: 700; color: var(--mm-orange); }
.completion-meter span { font-size: 14px; color: var(--mm-text-2); }
.meter { display: block; height: 6px; border-radius: 3px; background: var(--mm-ink-soft); overflow: hidden; margin-top: 3px; }
.meter > i { display: block; height: 100%; background: var(--mm-orange); border-radius: 3px; }

.onboarding-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 16px; }
.onboarding-steps a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 10px; border-radius: var(--mm-r-btn);
  border: 1px solid var(--mm-border); background: var(--mm-surface);
  color: var(--mm-text-2); font-size: 14px; font-weight: 600;
}
.onboarding-steps a b {
  width: 20px; height: 20px; border-radius: 50%; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--mm-muted); color: var(--mm-text-2);
  font-size: 12px; font-weight: 700;
}
.onboarding-steps a.is-active { border-color: #F7DCC6; background: var(--mm-orange-soft); color: var(--mm-orange-dark); }
.onboarding-steps a.is-active b { background: var(--mm-orange); color: #fff; }
.onboarding-steps a.is-done b { background: var(--mm-green); color: #fff; }
.onboarding-steps a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.onboarding-card {
  background: var(--mm-surface); border: 1px solid var(--mm-border);
  border-radius: 10px; box-shadow: var(--mm-shadow);
  padding: 20px 22px; display: grid; gap: 15px;
}
.onboarding-heading h2 { font-size: 18px; font-weight: 650; margin: 3px 0 5px; }
.onboarding-heading p { font-size: 13.5px; color: var(--mm-text-2); }

.onboarding-page .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.onboarding-page .auth-field { display: grid; gap: 6px; }
.onboarding-page .auth-label { font-size: 13.5px; font-weight: 600; }
.onboarding-page .auth-label .req { color: var(--mm-orange); }
.onboarding-page .auth-hint { font-size: 14px; color: var(--mm-text-3); }
.onboarding-page .auth-alert { padding: 9px 12px; border-radius: var(--mm-r-input); font-size: 13.5px; border: 1px solid var(--mm-border); background: var(--mm-muted); }
.onboarding-page .auth-alert--error { background: var(--mm-red-soft); border-color: #F3CDD3; color: #A32E3E; }
.onboarding-page .auth-alert--success { background: var(--mm-green-soft); border-color: #CDEBDF; color: #0C7A50; }
.onboarding-page .auth-submit {
  width: 100%; height: 44px; border: 1px solid var(--mm-orange);
  border-radius: var(--mm-r-btn); background: var(--mm-orange); color: #fff;
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.onboarding-page .auth-submit:hover { background: var(--mm-orange-dark); border-color: var(--mm-orange-dark); }

.onboarding-page .review-tick { color: var(--mm-green); font-weight: 700; margin-right: 4px; }
.onboarding-page .review-tick--no { color: var(--mm-text-3); }
.onboarding-page .onboarding-checks {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px;
}
.onboarding-page .onboarding-checks label {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 9px; border: 1px solid var(--mm-border);
  border-radius: var(--mm-r-input); background: var(--mm-surface);
  font-size: 14px; cursor: pointer;
}
.onboarding-page .onboarding-checks label:has(input:checked) {
  border-color: var(--mm-orange); background: var(--mm-soft-orange);
}
.onboarding-page .onboarding-checks input { accent-color: var(--mm-orange); width: 15px; height: 15px; }
@media (max-width: 700px) {
  .onboarding-page .onboarding-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.onboarding-date { display: grid; gap: 8px; }
.date-system { display: flex; align-items: center; gap: 14px; }
.date-system label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; cursor: pointer; }
.date-system input { accent-color: var(--mm-orange); }
.bs-fields, .ad-fields, .time-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bs-fields[hidden], .ad-fields[hidden], .foreign-fields[hidden] { display: none; }
.location-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.foreign-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.privacy-note {
  display: grid; gap: 2px; padding: 11px 13px;
  border: 1px solid var(--mm-border); border-radius: var(--mm-r-input);
  background: var(--mm-muted); font-size: 14px; color: var(--mm-text-2);
}
.privacy-note strong { color: var(--mm-text); font-size: 13.5px; }
.review-list { display: grid; gap: 1px; border: 1px solid var(--mm-border); border-radius: var(--mm-r-input); overflow: hidden; }
.review-list > div {
  display: grid; grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center; gap: 10px; padding: 11px 13px; background: var(--mm-surface);
}
.review-list > div + div { border-top: 1px solid var(--mm-border); }
.review-list span { font-size: 14px; color: var(--mm-text-3); }
.review-list strong { font-size: 14px; font-weight: 600; }
.review-list a { font-size: 14px; font-weight: 600; color: var(--mm-orange); }
.review-lock { display: inline-flex; padding: 2px 7px; border-radius: 5px; background: var(--mm-green-soft); color: #0C8F5B; font-size: 12px; font-weight: 600; }
.onboarding-foot { margin-top: 14px; text-align: center; font-size: 14px; color: var(--mm-text-3); }
.onboarding-foot a { color: var(--mm-text-2); }

@media (max-width: 900px) {
  .onboarding-wrap { padding: 16px 14px calc(var(--mm-bottomnav-h) + 26px); }
  .onboarding-intro h1 { font-size: 21px; }
  .completion-meter { width: 100%; }
  .form-grid, .location-fields { grid-template-columns: minmax(0, 1fr); }
  .review-list > div { grid-template-columns: minmax(0, 1fr) auto; }
  .review-list > div > span:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .bs-fields, .ad-fields, .time-fields, .foreign-fields { grid-template-columns: minmax(0, 1fr); }
  .onboarding-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .onboarding-card { padding: 16px 14px; }
}
@media (max-width: 380px) {
  .onboarding-wrap { padding: 14px 11px calc(var(--mm-bottomnav-h) + 22px); }
  .onboarding-steps a { padding: 8px; font-size: 11px; }
  .onboarding-steps a span { display: none; }
}

/* ---------------------------------------------------------------- welcome */
.mm-welcome {
  max-width: 880px; margin: 0 auto;
  background: var(--mm-surface); border: 1px solid var(--mm-border);
  border-radius: 12px; box-shadow: var(--mm-shadow); overflow: hidden;
}
.mm-welcome__grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.mm-welcome__left { padding: 30px 30px 26px; }
.mm-welcome__right {
  padding: 26px 22px; border-left: 1px solid var(--mm-border);
  background: linear-gradient(180deg, #FFF6EE, #FDF3EA);
  display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center;
}
.mm-welcome__hello { font-size: 15px; color: var(--mm-text-2); }
.mm-welcome__title { font-size: 27px; font-weight: 700; letter-spacing: -.02em; line-height: 1.18; margin-top: 2px; }
.mm-welcome__title em { font-style: normal; color: var(--mm-orange); }
.mm-welcome__intro { font-size: 14px; color: var(--mm-text-2); margin-top: 9px; line-height: 1.6; }
.mm-welcome__steps { display: grid; gap: 10px; margin-top: 20px; }
.mm-wstep {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; border: 1px solid var(--mm-border);
  border-radius: var(--mm-r-card); background: var(--mm-surface);
}
.mm-wstep--done { border-color: #CDEBDF; background: var(--mm-green-soft); }
.mm-wstep__ico {
  width: 40px; height: 40px; border-radius: 9px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--mm-orange-soft); color: var(--mm-orange);
}
.mm-wstep--done .mm-wstep__ico { background: var(--mm-green); color: #fff; }
.mm-wstep__ico .ico { width: 19px; height: 19px; }
.mm-wstep__body { display: grid; gap: 1px; min-width: 0; }
.mm-wstep__title { font-size: 15px; font-weight: 650; }
.mm-wstep__sub { font-size: 14px; color: var(--mm-text-2); }
.mm-wstep__mark { margin-left: auto; color: var(--mm-green); flex: 0 0 auto; }

.mm-welcome__step { font-size: 14px; color: var(--mm-text-2); }
.mm-welcome__step strong { color: var(--mm-orange); font-size: 15px; font-weight: 700; }
.mm-welcome__art {
  width: 100%; aspect-ratio: 4 / 3; border-radius: var(--mm-r-panel);
  background: #fff; border: 1px solid #F2E2D3; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
/* The owner's Welcome illustration. The 1:1 frame belonged to the old inline
   SVG placeholder; the photograph is 3:2, so the frame keeps its aspect ratio
   and the image is simply contained inside it. */
.mm-welcome__art picture { display: block; width: 100%; height: 100%; }
.mm-welcome__art img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block;
}
.mm-welcome__note { font-size: 14px; color: var(--mm-text-2); }
.mm-welcome__cta { padding: 0 30px 28px; }
.mm-welcome__cta .mm-btn { height: 44px; font-size: 14px; }

/* ------------------------------------------------------------ product tour */
.mm-tour {
  position: fixed; z-index: 60; right: 18px; bottom: 18px;
  width: 300px; padding: 15px;
  background: var(--mm-surface); border: 1px solid var(--mm-border);
  border-radius: var(--mm-r-panel); box-shadow: var(--mm-shadow-pop);
  display: grid; gap: 10px;
}
.mm-tour__title { font-size: 15px; font-weight: 650; }
.mm-tour__text { font-size: 14px; color: var(--mm-text-2); }
.mm-tour__dots { display: flex; gap: 5px; }
.mm-tour__dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--mm-border-strong); }
.mm-tour__dots i.is-on { background: var(--mm-orange); }
.mm-tour__actions { display: flex; align-items: center; gap: 8px; }

/* ------------------------------------------------------------- pagination */
.mm-pager__info { font-size: 13.5px; color: var(--mm-text-2); }

/* ================================================================ 1366–1024 */
@media (max-width: 1280px) {
  .mm-detail { grid-template-columns: minmax(0, 1fr) 300px; }
  .mm-photogrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1120px) {
  .mm-detail { grid-template-columns: minmax(0, 1fr); }
  .mm-detail__side { position: static; }
  .mm-workspace { grid-template-columns: 220px minmax(0, 1fr); }
  .mm-checkgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==================================================================== <=900 */
@media (max-width: 900px) {
  .mm-rail {
    transform: translateX(-100%);
    transition: transform .18s ease;
    width: 232px; box-shadow: var(--mm-shadow-pop);
  }
  .mm-drawer-open .mm-rail { transform: translateX(0); }
  .mm-drawer-open .mm-backdrop { display: block; }
  .mm-rail__close { display: inline-flex; }

  .mm-topbar { margin-left: 0; height: 56px; padding: 0 12px; gap: 8px; }
  .mm-topbar .mm-drawer-toggle { display: inline-flex; }
  .mm-topbar .mm-topbar__brand { display: inline-flex; align-items: center; gap: 7px; color: var(--mm-text); }
  .mm-topbar .mm-bell { display: inline-flex; }
  .mm-topbar__brand img { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; }
  .mm-topbar__brand span { font-size: 13.5px; font-weight: 700; letter-spacing: .03em; }
  .mm-topbar__lead { display: none; }
  .mm-account__name { display: none; }
  /* Phase 11: the topbar previously hid its language switch below 900px and
     moved a second copy into the account sheet. There is now one control, so it
     simply stays in the topbar and only the cluster spacing tightens. */
  .mm-topbar__tools { gap: 4px; padding-right: 0; }
  .mm-account__panel { right: -4px; width: 218px; }

  .mm-main { margin-left: 0; min-height: calc(100vh - 56px); }
  .mm-page { padding: 16px 14px calc(var(--mm-bottomnav-h) + 26px); }

  .mm-grid, .mm-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mm-grid--2 { grid-template-columns: minmax(0, 1fr); }
  .mm-pagehead h1 { font-size: 21px; }
  .mm-hero { grid-template-columns: minmax(0, 1fr); }
  .mm-gallery { max-width: min(340px, 100%); }
  .mm-workspace { grid-template-columns: minmax(0, 1fr); }
  .mm-summary__card { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 0 14px; text-align: left; align-items: center; }
  .mm-summary__photo { width: 88px; height: 88px; margin: 0; grid-row: span 3; }
  .mm-summary__name { align-self: end; }
  .mm-summary__where { align-self: center; }
  .mm-summary__pct { align-self: start; margin: 6px 0 0; }
  .mm-summary__card .mm-btn { grid-column: 1 / -1; margin-top: 12px; }
  .mm-editor > form { position: static; width: auto; margin-top: 12px; box-shadow: none; }
  .mm-editor { grid-column: 1 / -1; }
  .mm-formgrid, .mm-formgrid--3 { grid-template-columns: minmax(0, 1fr); }
  .mm-photogrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .mm-welcome__grid { grid-template-columns: minmax(0, 1fr); }
  .mm-welcome__right { border-left: 0; border-top: 1px solid var(--mm-border); flex-direction: row; align-items: center; text-align: left; padding: 20px 24px; }
  .mm-welcome__art { width: 132px; flex: 0 0 auto; aspect-ratio: 1 / 1; }
  .mm-welcome__right > .mm-welcome__step { order: 2; }
  .mm-welcome__note { display: none; }
  .mm-welcome__left { padding: 24px 22px 20px; }
  .mm-welcome__cta { padding: 0 22px 22px; }
  .mm-welcome__title { font-size: 23px; }

  .mm-filters { gap: 8px; }
  .mm-filters__actions { margin-left: 0; width: 100%; }
  .mm-filters__actions .mm-btn { flex: 1 1 auto; }

  .mm-req { flex-wrap: wrap; }
  .mm-req__actions { width: 100%; justify-content: flex-start; }

  .mm-setrow { flex-wrap: wrap; gap: 10px; }
  .mm-setrow__side { width: 100%; }

  .mm-tour { display: none; }
}

@media (max-width: 900px) {
  .mm-chat { grid-template-columns: minmax(0, 1fr); height: auto; }
  .mm-chat__rail { border-right: 0; }
  .mm-convos { max-height: none; }
  /* With no thread open the rail already fills the phone, so the "pick a
     conversation" pane would just be dead space. */
  .mm-chat:not(.is-thread) .mm-thread { display: none; }
  .mm-chat.is-thread .mm-chat__rail { display: none; }
  .mm-thread { min-height: calc(100vh - 56px - var(--mm-bottomnav-h)); }
  .mm-thread__back { display: inline-flex; }
  .mm-msg { max-width: 82%; }
  .mm-msgs { padding: 14px 13px 8px; }
  .mm-composer { padding: 9px 12px calc(9px + env(safe-area-inset-bottom, 0px)); }
  /* An open thread owns the whole screen, so the general bottom navigation
     steps aside rather than colliding with the composer. */
  body.mm-thread-open .mm-bottomnav { display: none; }
  body.mm-thread-open .mm-main { min-height: 100vh; }

  .mm-bottomnav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    height: calc(var(--mm-bottomnav-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--mm-surface); border-top: 1px solid var(--mm-border);
  }
  .mm-bottomnav a {
    flex: 1 1 0; min-width: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    color: var(--mm-text-3); font-size: 12px; font-weight: 500;
  }
  .mm-bottomnav a.is-active { color: var(--mm-orange); font-weight: 600; }
  .mm-bottomnav__ico { position: relative; display: inline-flex; }
  .mm-bottomnav__ico .ico { width: 21px; height: 21px; }
  .mm-bottomnav__ico .mm-badge { position: absolute; top: -4px; right: -9px; transform: scale(.82); }
  .mm-bottomnav__label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
}

/* ==================================================================== <=600 */
@media (max-width: 600px) {
  .mm-grid, .mm-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .mm-pcard__media { aspect-ratio: 4 / 3.4; }
  .mm-checkgrid { grid-template-columns: minmax(0, 1fr); }
  .mm-deflist { grid-template-columns: minmax(0, 1fr); }
  .mm-photogrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mm-pagehead h1 { font-size: 19px; }
  .mm-sectionhead h2 { font-size: 15.5px; }
  .mm-btn { height: 36px; padding: 0 13px; font-size: 12.5px; }
  .mm-strip { flex-wrap: wrap; }
  .mm-strip__body { flex: 1 1 140px; }
  .mm-strip > .mm-btn { width: 100%; }
  .mm-welcome__right { flex-direction: column; align-items: flex-start; text-align: left; }
  .mm-welcome__art { width: 100%; max-width: 220px; }
  .mm-welcome__title { font-size: 21px; }
  .mm-hero__name { font-size: 22px; }
  .mm-gallery__thumbs { grid-template-columns: repeat(3, 1fr); }
  .mm-resultbar { gap: 8px; }
  .mm-resultbar__right { width: 100%; justify-content: space-between; }
}

/* ==================================================================== <=380 */
@media (max-width: 380px) {
  body.mm-shell-page { font-size: 13px; }
  .mm-page { padding: 14px 11px calc(var(--mm-bottomnav-h) + 22px); }
  .mm-topbar { padding: 0 9px; }
  .mm-topbar__brand span { display: none; }
  .mm-pagehead h1 { font-size: 18px; }
  .mm-btn { height: 35px; padding: 0 11px; font-size: 12px; }
  .mm-btn--sm { height: 31px; padding: 0 10px; }
  .mm-pcard__media { aspect-ratio: 4 / 3.2; }
  .mm-photogrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mm-bottomnav__label { font-size: 9.5px; }
  .mm-filters { padding: 10px; }
  .mm-filters__ages .mm-input { width: 58px; }
  .mm-req { padding: 10px; gap: 10px; }
  .mm-req__photo { width: 52px; height: 52px; }
  .mm-req__actions .mm-btn { flex: 1 1 auto; }
  .mm-welcome__left { padding: 20px 16px 16px; }
  .mm-welcome__cta { padding: 0 16px 18px; }
  .mm-summary__photo { width: 72px; height: 72px; }
  .mm-msg { max-width: 88%; }
  .mm-rail__foot { padding: 10px 12px 14px; }
  /* Give the peer's name room instead of truncating it on the narrowest phones. */
  .mm-thread__name { white-space: normal; overflow: visible; line-height: 1.25; }
  .mm-thread__actions .mm-iconbtn:nth-of-type(2),
  .mm-thread__actions .mm-iconbtn:nth-of-type(3) { display: none; }
  .mm-thread__photo { width: 34px; height: 34px; }
}

/* ------------------------------------------------- reduced-motion / print */
@media (prefers-reduced-motion: reduce) {
  .mm-rail, .mm-switch__track, .mm-switch__track::after, .mm-pcard { transition: none; }
}
