/* g3-app · member.css (step 3) · reorder review + swap drink + payment + Face ID + failed (F3b 04-07, 15),
   favourites (F3b 09), rewards (10), history (12), order detail (13), profile (14).
   Colours outside base.css use var(--token, fallback) and are requested in NOTES-core.md:
   --red-ink #B4001F (error text), --red-soft #FDECEF (error banner). Card brand marks keep brand colours. */

/* ---------- shared ---------- */
.mb-page { padding-bottom: 24px; }
.mb-top { display: flex; align-items: center; gap: 12px; padding: calc(var(--safe-top) + 4px) var(--gutter) 0; }
.mb-top.is-split { justify-content: space-between; }
.mb-top.is-col { flex-direction: column; align-items: flex-start; gap: 14px; }
.mb-stripes {
  font-family: var(--f-stripes); font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em;
  font-size: 34px; line-height: 36px; color: var(--ink);
}
.mb-h1 { font-family: var(--f-sans); font-size: 28px; line-height: 32px; }
.mb-h2 { font-family: var(--f-sans); font-size: 20px; line-height: 24px; padding-bottom: 6px; }
.mb-lead { font-size: 15px; line-height: 20px; color: var(--muted); }
.mb-label { font-size: 13px; line-height: 16px; font-weight: 600; color: var(--muted); padding-bottom: 4px; }
.mb-muted-p { padding: 14px 0; font-size: 14px; line-height: 20px; color: var(--muted); }
.mb-sec { display: flex; flex-direction: column; padding: 26px var(--gutter) 0; }
.mb-link {
  font-size: 13px; line-height: 16px; font-weight: 600; color: var(--ink); white-space: nowrap;
  text-decoration: underline 1px; text-underline-position: from-font;
}
.mb-link.is-14 { font-size: 14px; line-height: 18px; }
.mb-link.is-med { font-weight: 500; }
.mb-gate { display: flex; flex-direction: column; gap: 12px; padding: 32px var(--gutter) 0; }
.mb-gate .cta { margin-top: 12px; }

/* beige photo squares */
.mb-ph {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: var(--beige); border-radius: var(--r-photo);
}
.mb-ph img { object-fit: contain; }
.mb-ph.is-76 { width: 76px; height: 76px; }
.mb-ph.is-76 img { width: 68px; height: 58px; }
.mb-ph.is-64 { width: 64px; height: 64px; border-radius: 18px; }
.mb-ph.is-64 img { width: 56px; height: 54px; }
.mb-ph.is-60 { width: 60px; height: 60px; border-radius: 18px; }
.mb-ph.is-60 img { width: 54px; height: 48px; }
.mb-ph.is-dim img { opacity: 0.6; }

/* payment marks (brand colours stay as brand marks) */
.mb-card {
  width: 44px; height: 30px; flex-shrink: 0; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: 0.02em;
}
.mb-card.is-apple { background: var(--ink); color: var(--white); }
.mb-card.is-visa { background: #1A1F71; color: var(--white); font-style: italic; font-weight: 800; }
.mb-card.is-mc { background: var(--beige); }
.mb-card.is-mc i { width: 14px; height: 14px; border-radius: 999px; background: #EB001B; }
.mb-card.is-mc i + i { background: #F79E1B; opacity: 0.9; margin-left: -5px; }
.mb-card.is-gift { background: var(--beige); color: var(--red); font-size: 10px; line-height: 12px; }
.mb-card.is-add { border: 1.5px dashed var(--on-ink-muted); color: var(--ink); }

/* switch */
.mb-switch {
  position: relative; width: 50px; height: 30px; flex-shrink: 0; border-radius: 999px;
  background: var(--handle); transition: background-color var(--dur-fast) var(--ease);
}
.mb-switch i {
  position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 999px; background: var(--white);
  transition: transform var(--dur-fast) var(--ease);
}
.mb-switch.is-on { background: var(--ink); }
.mb-switch.is-on i { transform: translateX(20px); }

/* outline pill (Add / Added) */
.mb-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; flex-shrink: 0;
  border-radius: 999px; border: 1.5px solid var(--ink); font-size: 14px; line-height: 18px; font-weight: 600;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.mb-pill:active { transform: scale(0.96); }
.mb-pill.is-on { background: var(--ink); color: var(--white); }

/* red "i" dot */
.mb-info {
  width: 18px; height: 18px; flex-shrink: 0; border-radius: 999px; background: var(--red); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: Georgia, serif; font-weight: 700; font-size: 12px; line-height: 12px;
}

/* ---------- fields (profile edit sheet) ---------- */
.mb-fields { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; }
.mb-fields.is-sheet { padding: 0 var(--gutter); }
.mb-field { display: flex; flex-direction: column; gap: 6px; }
.mb-field-label { font-size: 13px; line-height: 16px; font-weight: 600; color: var(--muted); }
.mb-field input {
  height: 52px; padding: 0 18px; border: 1.5px solid transparent; border-radius: 16px; background: var(--beige);
  font-size: 16px; line-height: 20px; color: var(--ink); outline: none;
  transition: border-color var(--dur-fast) var(--ease);
}
.mb-field input:focus { border-color: var(--ink); }

/* ---------- reorder review (sheet-style page) ---------- */
.screen.mb-ro-screen { background: var(--scrim); padding-bottom: 0; }
.screen.mb-ro-screen.has-bar { padding-bottom: 0; }
.mb-ro { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.mb-ro-panel {
  position: relative; flex: 1 1 auto; margin-top: calc(var(--safe-top) + 24px);
  padding: 40px 0 200px; background: var(--white); border-radius: var(--r-sheet) var(--r-sheet) 0 0;
}
.mb-notch { z-index: 1; }
.mb-ro-head, .mb-sh-head { display: flex; align-items: center; gap: 12px; padding: 0 var(--gutter); }
.mb-ro-titles { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mb-ro-title { font-family: var(--f-sans); font-size: 22px; line-height: 26px; }
.mb-ro-sub { font-size: 13px; line-height: 17px; color: var(--muted); }
.mb-ro-sum { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.mb-ro-total { font-family: var(--f-sans); font-size: 18px; line-height: 22px; white-space: nowrap; }

.mb-ro-line { display: flex; gap: 14px; padding: 18px var(--gutter); border-bottom: 1px solid var(--line); }
.mb-ro-line:first-child { padding-top: 22px; }
.mb-ro-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.mb-ro-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mb-ro-name { font-family: var(--f-sans); font-size: 19px; line-height: 24px; }
.mb-ro-price { font-family: var(--f-sans); font-size: 17px; line-height: 22px; white-space: nowrap; }
.mb-ro-mid, .mb-ro-bot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mb-ro-mid:has(.mb-sizes) { flex-wrap: wrap; row-gap: 8px; } /* RU size chips + stepper wrap instead of breaking words */
.mb-ro-desc { font-size: 13px; line-height: 16px; color: var(--muted); min-width: 0; }
.mb-sizes { display: flex; gap: 6px; }
.mb-size {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 10px; white-space: nowrap; flex-shrink: 0;
  background: var(--beige); font-size: 13px; line-height: 16px; font-weight: 500;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.mb-size.is-on { background: var(--ink); color: var(--white); font-weight: 600; }
.mb-step {
  display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 3px; flex-shrink: 0; margin-left: auto;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white);
}
.mb-step-b {
  width: 28px; height: 28px; border-radius: 999px; background: var(--beige); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform var(--dur-fast) var(--ease);
}
.mb-step-b:active { transform: scale(0.88); }
.mb-step-b.is-plus { background: var(--red); color: var(--white); }
.mb-step-n { width: 22px; text-align: center; font-family: var(--f-sans); font-size: 16px; line-height: 20px; }
.mb-ro-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px var(--gutter); font-size: 14px; line-height: 20px; color: var(--muted); }

.mb-ro-row { display: flex; align-items: center; gap: 14px; padding: 16px var(--gutter); }
.mb-ro-row.is-line { border-bottom: 1px solid var(--line); }
.mb-ro-row .mb-card { width: 40px; height: 28px; }
.mb-ro-star { width: 40px; height: 40px; flex-shrink: 0; border-radius: 999px; background: var(--red); color: var(--white); display: flex; align-items: center; justify-content: center; }
.mb-ro-rtext { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mb-ro-rtitle { font-family: var(--f-sans); font-size: 16px; line-height: 20px; }
.mb-ro-rsub { font-size: 13px; line-height: 16px; color: var(--muted); }
.mb-ro-rsub.is-bad { color: var(--red-ink, #B4001F); }

.mb-ro-bar { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; }
.mb-ro-totrow { display: flex; align-items: baseline; justify-content: space-between; }
.mb-ro-totl { font-size: 14px; line-height: 18px; color: var(--muted); }
.mb-ro-totv { font-family: var(--f-sans); font-size: 22px; line-height: 28px; }
.mb-ro-bar .btn-black[disabled] { opacity: 1; }
.mb-ro-bar .cta-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mb-ro-bar .cta.mb-cta-long { gap: 10px; padding: 0 16px; font-size: 16px; }
.mb-fail {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 18px;
  background: var(--red-soft, #FDECEF); animation: mb-rise var(--dur) var(--ease) both;
}
.mb-fail-ico { color: var(--red-ink, #B4001F); flex-shrink: 0; }
.mb-fail-text { flex: 1 1 0; display: flex; flex-direction: column; gap: 2px; }
.mb-fail-title { font-size: 14px; line-height: 18px; font-weight: 600; }
.mb-fail-sub { font-size: 13px; line-height: 18px; color: var(--muted); }
@keyframes mb-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Face ID */
.mb-face {
  position: fixed; top: 0; bottom: 0; left: 50%; width: 100%; max-width: var(--col); transform: translateX(-50%);
  z-index: 40; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--ink) 35%, transparent);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.mb-face.is-on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity var(--dur) var(--ease), visibility 0s; }
.mb-face-card {
  width: 168px; height: 168px; border-radius: 36px; background: color-mix(in srgb, var(--white) 96%, transparent);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  transform: scale(0.92); transition: transform var(--dur-slow) var(--ease);
}
.mb-face.is-on .mb-face-card { transform: none; }
.mb-face-ico { color: var(--ink); display: flex; }
.mb-face-ico svg { width: 64px; height: 64px; }
.mb-face-t { font-size: 15px; line-height: 18px; font-weight: 600; }

/* ---------- swap drink + payment sheets ---------- */
.mb-sheet .sheet-body { padding-bottom: calc(var(--safe-bottom) + var(--foot-gap)); }
.mb-sh { padding-top: 12px; }
.mb-sh-head.is-pay { padding-bottom: 12px; }
.mb-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 20px var(--gutter) 0; }
.mb-tile {
  height: 132px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px;
  padding: 0 6px 12px; border-radius: 16px; background: var(--beige); text-align: center;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.mb-tile:active { transform: scale(0.97); }
.mb-tile img { width: 70px; height: 66px; object-fit: contain; }
.mb-tile-name { font-family: var(--f-sans); font-size: 14px; line-height: 17px; }
.mb-tile-sub { font-size: 12px; line-height: 16px; color: var(--muted); }
.mb-tile.is-on { background: var(--ink); color: var(--white); padding-bottom: 10px; }
.mb-tile-badge { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--red); color: var(--white); font-size: 11px; line-height: 14px; font-weight: 600; }
.mb-tile.is-more { justify-content: center; gap: 8px; padding: 0 6px; background: var(--white); border: 1px solid var(--handle); }
.mb-tile-go { width: 36px; height: 36px; border-radius: 999px; background: var(--beige); display: flex; align-items: center; justify-content: center; }
.mb-sw-sizes { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px var(--gutter) 0; }
.mb-sw-sl { font-size: 13px; line-height: 16px; color: var(--muted); }
.mb-sw-chips { display: flex; gap: 8px; }
.mb-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 12px;
  background: var(--beige); font-size: 14px; line-height: 18px; font-weight: 500;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.mb-chip-d { font-size: 12px; line-height: 16px; font-weight: 400; color: var(--muted); }
.mb-chip.is-on { background: var(--ink); color: var(--white); font-weight: 600; }
.mb-chip.is-on .mb-chip-d { color: var(--on-ink-muted); }
.mb-switch-row { display: flex; align-items: center; gap: 12px; padding: 22px var(--gutter) 0; }
.mb-switch-text { flex: 1 1 0; display: flex; flex-direction: column; gap: 1px; }
.mb-switch-t { font-size: 15px; line-height: 18px; font-weight: 600; }
.mb-switch-s { font-size: 13px; line-height: 16px; color: var(--muted); }
.mb-sh-cta { padding: 24px var(--gutter) 0; }
.mb-sh-lead { padding: 0 var(--gutter) 14px; font-size: 14px; line-height: 20px; color: var(--muted); }

.mb-pms { display: flex; flex-direction: column; padding: 0 var(--gutter); }
.mb-pm { display: flex; align-items: center; gap: 14px; height: 68px; flex-shrink: 0; border-bottom: 1px solid var(--line); text-align: left; width: 100%; }
.mb-pm.is-on { height: 72px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 20px; }
.mb-pm.is-off { cursor: default; }
.mb-pm.is-off .mb-pm-text { opacity: 0.6; }
.mb-pm.is-add { height: 64px; border-bottom: 0; }
.mb-pm-text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mb-pm-name { font-family: var(--f-sans); font-size: 16px; line-height: 19px; }
.mb-pm-sub { font-size: 13px; line-height: 16px; color: var(--muted); }
.mb-pm-sub.is-bad { color: var(--red-ink, #B4001F); font-size: 12px; }
.mb-radio { width: 24px; height: 24px; flex-shrink: 0; border-radius: 999px; border: 1.5px solid var(--on-ink-muted); transition: border-width var(--dur-fast) var(--ease); }
.mb-pm.is-on .mb-radio { border: 7px solid var(--ink); }
.mb-pm.is-off .mb-radio { background: var(--beige); border-color: var(--line); }
.mb-safe { display: flex; align-items: center; gap: 10px; padding: 8px var(--gutter) 0; font-size: 13px; line-height: 16px; color: var(--muted); }
.mb-safe svg { flex-shrink: 0; }
.mb-sheet .mb-sh-cta { padding-top: 20px; }

/* ---------- favourites ---------- */
.mb-chips { padding-top: 16px; }
.mb-chips .chip { height: 38px; }
.mb-chip-fav { gap: 6px; }
.mb-edit { align-self: center; font-size: 15px; line-height: 18px; padding: 0 4px; }
.mb-fav-list { display: flex; flex-direction: column; padding: 12px var(--gutter) 0; }
.mb-fav { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.mb-fav:last-child { border-bottom: 0; }
.mb-fav-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mb-fav-name { font-family: var(--f-sans); font-size: 18px; line-height: 22px; }
.mb-fav-desc { font-size: 13px; line-height: 16px; color: var(--muted); }
.mb-fav-out { font-size: 13px; line-height: 16px; font-weight: 500; color: var(--red-ink, #B4001F); }
.mb-fav-price { font-family: var(--f-sans); font-size: 16px; line-height: 20px; }
.mb-fav.is-out .mb-ph { opacity: 0.45; }
.mb-fav.is-out .mb-fav-name, .mb-fav.is-out .mb-fav-price { color: var(--dot-off); }
.mb-fav-heart {
  width: 32px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--red);
  transition: transform var(--dur-fast) var(--ease);
}
.mb-fav-heart:active { transform: scale(0.86); }
.mb-fav-heart:not(.is-on) { color: var(--muted); }
.mb-fav-heart.is-remove { color: var(--ink); }
.mb-fav-add {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 999px; background: var(--red); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-sans); font-size: 17px;
  transition: transform var(--dur-fast) var(--ease);
}
.mb-fav-add:active { transform: scale(0.9); }
.mb-fav-add.is-count { background: var(--ink); }
.mb-fav-add.is-out { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); opacity: 0.25; }
.mb-note {
  margin: 10px var(--gutter) 0; padding: 14px 16px; border-radius: 18px; background: var(--beige);
  font-size: 13px; line-height: 19px; color: var(--muted);
}

/* ---------- rewards ---------- */
.mb-rw-head { display: flex; flex-direction: column; gap: 6px; padding: 18px var(--gutter) 0; }
.mb-rw-brand { display: flex; align-items: baseline; gap: 10px; font-family: var(--f-stripes); font-weight: 900; text-transform: uppercase; font-size: 36px; line-height: 36px; }
.mb-rw-brand .is-red { color: var(--red); }
.mb-rw-pts { display: flex; align-items: baseline; gap: 8px; padding-top: 6px; }
.mb-rw-num { font-family: var(--f-sans); font-size: 64px; line-height: 64px; font-variant-numeric: tabular-nums; }
.mb-rw-unit { font-size: 15px; line-height: 18px; color: var(--muted); }
.mb-rw-bar { height: 8px; margin-top: 6px; border-radius: 999px; background: var(--beige); overflow: hidden; }
.mb-rw-bar i { display: block; height: 100%; border-radius: 999px; background: var(--red); transform-origin: left center; transition: transform var(--dur-slow) var(--ease); }
.mb-rw-next { padding-top: 2px; font-size: 13px; line-height: 16px; color: var(--muted); }
.mb-rewards .mb-sec { padding-top: 26px; }
.mb-rewards .mb-sec.is-next { padding-top: 22px; }
.mb-rw { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mb-rw.is-last { border-bottom: 0; }
.mb-rw-text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mb-rw-name { font-family: var(--f-sans); font-size: 16px; line-height: 19px; }
.mb-rw-sub { font-size: 13px; line-height: 16px; color: var(--muted); }
.mb-rw-btn {
  width: 96px; height: 38px; flex-shrink: 0; border-radius: 999px; border: 1.5px solid var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; line-height: 18px; font-weight: 600;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.mb-rw-btn:active { transform: scale(0.96); }
.mb-rw-btn.is-on { background: var(--ink); color: var(--white); }
.mb-rw-btn.is-off { border-color: var(--handle); color: var(--dot-off); }
.mb-rw-lock { width: 96px; flex-shrink: 0; display: flex; justify-content: center; color: var(--dot-off); }
.mb-rewards { padding-bottom: 120px; }
.mb-how { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0 var(--gutter) 8px; list-style: none; }
.mb-how li { display: flex; gap: 12px; font-size: 15px; line-height: 20px; }
.mb-how-n { width: 24px; height: 24px; flex-shrink: 0; border-radius: 999px; background: var(--beige); display: flex; align-items: center; justify-content: center; font-family: var(--f-sans); font-size: 14px; }

/* ---------- history ---------- */
.mb-live {
  display: flex; align-items: center; gap: 14px; margin: 18px var(--gutter) 0; padding: 16px;
  border-radius: var(--r-card); background: var(--ink); color: var(--white);
  animation: mb-rise var(--dur) var(--ease) both;
}
.mb-live-text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mb-live-st { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 16px; font-weight: 600; }
.mb-live-id { font-family: var(--f-sans); font-size: 26px; line-height: 32px; }
.mb-live-where { font-size: 13px; line-height: 16px; color: var(--on-ink-muted); }
.mb-live-btn { height: 38px; padding: 0 16px; flex-shrink: 0; border-radius: 999px; background: var(--white); color: var(--ink); font-family: var(--f-sans); font-size: 15px; line-height: 18px; }
.mb-sec.is-hist { padding-top: 24px; }
.mb-hist { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.mb-hist-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mb-hist-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-right: 8px; font-family: var(--f-sans); font-size: 16px; line-height: 19px; white-space: nowrap; }
.mb-hist-items { font-size: 13px; line-height: 16px; color: var(--muted); }
.mb-hist-where { font-size: 12px; line-height: 16px; color: var(--muted); }
.mb-reorder {
  min-width: 84px; height: 36px; padding: 0 12px; flex-shrink: 0; border-radius: 999px; border: 1.5px solid var(--ink);
  font-family: var(--f-sans); font-size: 15px; line-height: 18px;
  transition: transform var(--dur-fast) var(--ease);
}
.mb-reorder:active { transform: scale(0.96); }

/* ---------- order detail ---------- */
.screen.mb-detail-screen.has-bar { padding-bottom: 150px; }
.mb-dt { display: flex; flex-direction: column; gap: 4px; }
.mb-dt-title { font-family: var(--f-sans); font-size: 28px; line-height: 32px; }
.mb-dt-sub { font-size: 14px; line-height: 18px; color: var(--muted); }
.mb-dls { display: flex; flex-direction: column; padding: 20px var(--gutter) 0; }
.mb-dl { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mb-dl-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mb-dl-top { display: flex; justify-content: space-between; gap: 10px; font-family: var(--f-sans); font-size: 16px; line-height: 19px; }
.mb-dl-top span:last-child { white-space: nowrap; }
.mb-dl-desc { font-size: 13px; line-height: 18px; color: var(--muted); }
.mb-dsum { display: flex; flex-direction: column; gap: 8px; padding: 16px var(--gutter) 0; }
.mb-dsum-r { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; line-height: 18px; color: var(--muted); }
.mb-dsum-r .is-red { color: var(--red); white-space: nowrap; }
.mb-dsum-t { display: flex; justify-content: space-between; align-items: baseline; padding-top: 4px; font-family: var(--f-sans); font-size: 18px; line-height: 22px; }
.mb-dsum-t span:last-child { font-size: 24px; line-height: 30px; }
.mb-drows { display: flex; flex-direction: column; padding: 22px var(--gutter) 0; }
.mb-drow {
  display: flex; align-items: center; gap: 12px; height: 52px; flex-shrink: 0; width: 100%; text-align: left;
  border-top: 1px solid var(--line); font-size: 15px; line-height: 18px; font-weight: 500;
}
.mb-drow:last-child { border-bottom: 1px solid var(--line); }
.mb-drow > span { flex: 1 1 0; }
.mb-drow svg { flex-shrink: 0; }
.mb-drow-chev { color: var(--muted); }
.mb-dbar { display: flex; flex-direction: column; gap: 10px; }
.mb-dbar-note { text-align: center; font-size: 13px; line-height: 16px; color: var(--muted); }
.mb-dbar-change { font-size: 13px; line-height: 16px; color: var(--muted); text-decoration: underline 1px; text-underline-position: from-font; }

/* ---------- profile ---------- */
.mb-profile { padding-bottom: 40px; }
.mb-pf-head { display: flex; align-items: center; gap: 16px; padding: 18px var(--gutter) 0; }
.mb-avatar {
  width: 64px; height: 64px; flex-shrink: 0; border-radius: 999px; background: var(--red); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 24px; line-height: 30px; font-weight: 600;
}
.mb-pf-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mb-pf-name { font-family: var(--f-sans); font-size: 26px; line-height: 30px; }
.mb-pf-contact { font-size: 13px; line-height: 16px; color: var(--muted); }
.mb-stats { display: flex; gap: 10px; padding: 20px var(--gutter) 0; }
.mb-stat { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 20px; background: var(--beige); }
.mb-stat-n { font-family: var(--f-sans); font-size: 20px; line-height: 24px; font-variant-numeric: tabular-nums; }
.mb-stat-l { font-size: 13px; line-height: 16px; color: var(--muted); }
.mb-sec.is-pf { padding-top: 28px; }
.mb-sec.is-pf + .mb-sec.is-pf { padding-top: 22px; }
.mb-sec.is-pf .mb-h2 { padding-bottom: 4px; }
.mb-pf-pay { display: flex; align-items: center; gap: 14px; height: 60px; flex-shrink: 0; width: 100%; text-align: left; border-bottom: 1px solid var(--line); }
.mb-pf-pay .mb-pm-sub { font-size: 12px; }
.mb-pf-pay.is-add { height: 56px; border-bottom: 0; }
.mb-default { padding: 4px 10px; border-radius: 999px; background: var(--beige); font-size: 12px; line-height: 16px; font-weight: 600; }
.mb-more { width: 32px; height: 32px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin-right: -7px; }
.mb-pf-notif { display: flex; align-items: center; gap: 14px; min-height: 64px; border-bottom: 1px solid var(--line); }
.mb-pf-notif.is-last { border-bottom: 0; }
.mb-pm-sub.is-13 { font-size: 13px; }
.mb-sec.is-lang { gap: 10px; }
.mb-sec.is-lang .mb-h2 { padding-bottom: 0; }
.mb-seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--beige); }
.mb-seg-b {
  flex: 1 1 0; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  font-size: 14px; line-height: 18px; font-weight: 500;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.mb-seg-b.is-on { background: var(--ink); color: var(--white); font-weight: 600; }
.mb-pf-rows { display: flex; flex-direction: column; padding: 22px var(--gutter) 0; }
.mb-pf-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; width: 100%; text-align: left;
  border-top: 1px solid var(--line); font-family: var(--f-sans); font-size: 16px; line-height: 19px;
}
.mb-pf-val { font-family: var(--f-ui); font-size: 14px; line-height: 18px; color: var(--muted); text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-pf-row.is-out { font-family: var(--f-ui); font-size: 15px; line-height: 18px; font-weight: 600; color: var(--red); }

/* allergen chips */
.mb-al { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 var(--gutter); }
