/* MedON — generated from tokens.json */
:root, [data-theme="light"] {
  --surface: #f3f7fa; /* Screen background behind lists and forms. */
  --surface-raised: #ffffff; /* Cards, form sheets, fields, top bar, bottom nav. */
  --surface-sunken: #eef3f7; /* Field fill, search field, segmented backgrounds. */
  --line: #e1e8ef; /* Hairline dividers and card edges. Decorative only. */
  --line-strong: #8494a6; /* Borders of fields, checkboxes and unselected chips. At least 3:1 on surface-raised in both themes. */
  --ink: #0d1b2a; /* Names, titles, field values. On surface, surface-raised and surface-sunken. */
  --ink-muted: #53657a; /* Supporting text: specialty, area, hints, placeholders. On surface, surface-raised and surface-sunken. */
  --hero-start: #00807a; /* Start (top left) of the brand gradient on hero headers and the welcome screen. Deep teal from the logo. */
  --hero-end: #0866d6; /* End (bottom right) of the brand gradient on hero headers. Deep blue from the logo. */
  --on-hero: #ffffff; /* Text and icons on the hero gradient. At least 4.5:1 on both ends in both themes. */
  --grad-start: #0a7f86; /* Start of the gradient on primary buttons. */
  --grad-end: #0a6fe0; /* End of the gradient on primary buttons. */
  --on-grad: #ffffff; /* Label on a gradient button. White in light, deep navy in dark. */
  --logo-teal: #03c8a7; /* The logo's teal. Decorative fills, illustrations, the cover. Never text on light grounds. */
  --logo-blue: #017cfc; /* The logo's blue. Decorative fills and the cover. Never small text on light grounds. */
  --logo-lime: #80d734; /* The logo's lime. The online dot and decoration only. */
  --logo-orange: #fca301; /* The logo's heart orange. Highlights and decoration only, never text on light grounds. */
  --blue: #0866d6; /* The action colour: links, selected chips, active tab, focus, Call buttons. As text on surface, surface-raised and blue-soft. */
  --blue-strong: #0652ad; /* Pressed state of a blue fill. */
  --blue-soft: #e3f0ff; /* Selected chip fill, active nav pill, avatar placeholder. */
  --on-blue: #ffffff; /* Text and icons on a blue fill. */
  --teal: #00786f; /* Secondary brand accent: section eyebrows, selected role card, verified marks. As text on surface-raised and teal-soft. */
  --teal-soft: #dcf6f1; /* Fill behind teal text, selected role card. */
  --red: #ff0000; /* Blood and emergencies only, in the logo's orange-red: blood group badges, Request blood, ambulance Call, the Blood tab, errors, Delete account. As text on surface, surface-raised and red-soft. */
  --red-strong: #9c2d05; /* Pressed state of a red fill. */
  --danger-start: #ff8700; /* Start of the blood and emergency gradient (Request blood, Call ambulance). Crimson; white text 4.5:1. */
  --danger-end: #cc4a0e; /* End of the blood and emergency gradient, the logo's orange-red. White text 4.6:1. */
  --on-danger: #ffffff; /* Label on the danger gradient in both themes. */
  --red-soft: #fdebe3; /* Blood group badge fill, emergency banner fill. */
  --on-red: #ffffff; /* Text and icons on a red fill. */
  --green: #2f7d14; /* Means "available" and nothing else: the Available badge, availability toggle. As text on surface-raised and green-soft. */
  --green-soft: #e8f6dc; /* Available badge fill. */
  --on-green: #ffffff; /* Toggle knob on a green track. */
  --star: #b26a00; /* Rating star icon only. */
  --star-soft: #fff3dc; /* Rating pill fill behind the star and score. */
  --avatar-teal: #00786f; /* Nurse avatar gradient start. */
  --avatar-green: #2f7d14; /* Nurse avatar gradient end. */
  --avatar-red: #c43a08; /* Donor and ambulance avatar gradient start. Stays deep in dark so white initials read. */
  --avatar-red-deep: #9c2d05; /* Donor avatar gradient end. */
  --on-avatar: #ffffff; /* Initials and icons on any avatar gradient. At least 4.5:1 on every avatar stop in both themes. */
  --link: var(--blue); /* Inline links: Forgot password, Sign up. An alias of blue. */
  --shadow-card: 0 1px 2px #0d1b2a0a, 0 6px 18px #0866d614; /* Listing cards and role cards at rest. */
  --shadow-float: 0 -1px 0 #e1e8ef, 0 -6px 20px #0d1b2a12; /* Bottom nav, bottom sheets and the form sheet over a hero. */
  --shadow-button: 0 8px 20px #0a6fe033, inset 0 1px 0 #ffffff33; /* Primary gradient button only. */
  --shadow-danger: 0 8px 20px #e0313133, inset 0 1px 0 #ffffff33; /* Danger gradient button only. */
  --focus-ring: 0 0 0 2px #ffffff, 0 0 0 4px #0866d6; /* Keyboard focus: 2px gap, then 2px solid blue. */
}
[data-theme="dark"] {
  --surface: #0b1219;
  --surface-raised: #141d27;
  --surface-sunken: #0f1720;
  --line: #22303e;
  --line-strong: #5d6f82;
  --ink: #eaf1f7;
  --ink-muted: #9db0c4;
  --hero-start: #0d5c57;
  --hero-end: #0b4a9a;
  --on-hero: #ffffff;
  --grad-start: #2ed3b7;
  --grad-end: #4ca3ff;
  --on-grad: #06121f;
  --logo-teal: #2ed3b7;
  --logo-blue: #3d97ff;
  --logo-lime: #93e05a;
  --logo-orange: #fdb12a;
  --blue: #4ca3ff;
  --blue-strong: #7dbcff;
  --blue-soft: #10294a;
  --on-blue: #06121f;
  --teal: #2ed3b7;
  --teal-soft: #0b2e2a;
  --red: #ff8a5c;
  --red-strong: #ffab88;
  --danger-start: #e08231;
  --danger-end: #cc4a0e;
  --on-danger: #ffffff;
  --red-soft: #3a1a0e;
  --on-red: #1f0a03;
  --green: #93e05a;
  --green-soft: #182d0c;
  --on-green: #0b1a04;
  --star: #f5b443;
  --star-soft: #33260a;
  --avatar-teal: #0d6b63;
  --avatar-green: #2d6a14;
  --avatar-red: #b13a0f;
  --avatar-red-deep: #82270a;
  --on-avatar: #ffffff;
  --link: var(--blue);
  --shadow-card: 0 1px 2px #00000066;
  --shadow-float: 0 -1px 0 #22303e, 0 -8px 24px #00000080;
  --shadow-button: 0 6px 18px #00000080;
  --shadow-danger: 0 6px 18px #00000080;
  --focus-ring: 0 0 0 2px #0b1219, 0 0 0 4px #4ca3ff;
}
:root {
  --space-4: 4px; /* Icon to label inside a badge or chip. */
  --space-8: 8px; /* Label to field, icon to text in buttons, gap between chips. */
  --space-12: 12px; /* Gap between listing cards, between avatar and text. */
  --space-16: 16px; /* Screen side margin, card padding, field inner padding. */
  --space-24: 24px; /* Between form fields, between sections. */
  --space-32: 32px; /* Above the primary action at the end of a form. */
  --space-48: 48px; /* Field, primary button and top bar content height; bottom nav is 64. */
  --radius-sm: 10px; /* Badges, checkbox. */
  --radius-md: 14px; /* Form fields, logo tile at small sizes. */
  --radius-lg: 20px; /* Listing cards, role cards, settings groups. */
  --radius-xl: 32px; /* The form sheet over a hero header, bottom sheets, the welcome logo tile. */
  --radius-full: 9999px; /* All buttons, chips, toggles, person avatars. */
  --size-control: 52px; /* Fields and full-width buttons. */
  --size-call: 40px; /* Compact Call button and icon buttons. */
  --size-chip: 36px; /* Filter chips. */
  --size-avatar: 56px; /* Avatar on a listing card. */
  --size-nav: 64px; /* Bottom nav height before the safe-area inset. */
  --font-sans: "Plus Jakarta Sans", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-bangla: "Hind Siliguri", "Noto Sans Bengali", system-ui, sans-serif;
  --text-display: 700 32px/40px var(--font-sans); /* Welcome and empty states only. One per screen at most. */
  --text-title: 700 24px/32px var(--font-sans); /* The first heading on a screen, under the top bar. */
  --text-heading: 600 18px/24px var(--font-sans); /* Top bar title and section headings. */
  --text-body-strong: 700 16px/24px var(--font-sans); /* The name on a listing card, button labels. */
  --text-body: 400 16px/24px var(--font-sans); /* Field values and running text. */
  --text-label: 600 14px/20px var(--font-sans); /* Field labels above inputs, chip text, compact Call button. */
  --text-caption: 500 13px/18px var(--font-sans); /* Specialty, area and distance on cards; hints under fields. */
  --text-overline: 700 12px/16px var(--font-sans); /* Badges and small group labels, uppercase. */
  --text-bangla-body: 400 16px/26px var(--font-bangla); /* Running text in the Bangla locale. Bangla needs about 2px more line height than Latin. */
}
.display {
  font-family: var(--font-sans);
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.title {
  font-family: var(--font-sans);
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.heading {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: 0;
}
.body-strong {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: 0;
}
.body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  letter-spacing: 0;
}
.label {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0;
}
.caption {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  letter-spacing: 0;
}
.overline {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.bangla-body {
  font-family: var(--font-bangla);
  font-size: 16px;
  line-height: 26px;
  font-weight: 400;
  letter-spacing: 0;
}

:root { --hero-shade: #0a14204d; }
[data-theme="dark"] { --hero-shade: #00000000; }

body { margin: 0; font-family: var(--font-sans); font-size: 16px; line-height: 24px; background: var(--surface); color: var(--ink); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-kerning: normal; }
.mo-stage { display: flex; flex-wrap: wrap; gap: var(--space-12); align-items: center; padding: var(--space-16); }
.mo-stack { display: flex; flex-direction: column; gap: var(--space-12); padding: var(--space-16); max-width: 400px; }
.mo-icon { flex: none; display: block; }

/* Button */
.mo-btn { font: inherit; font-size: 16px; line-height: 24px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-8); height: var(--size-control); padding: 0 var(--space-32); border-radius: var(--radius-full); border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: background-color .15s, border-color .15s; }
.mo-btn:focus-visible, .mo-call:focus-visible, .mo-chip:focus-visible, .mo-iconbtn:focus-visible, .mo-nav-item:focus-visible, .mo-switch:focus-visible, .mo-check input:focus-visible + .mo-check-box, .mo-field-input:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.mo-btn-block { display: flex; width: 100%; }
.mo-btn-sm { height: var(--size-call); padding: 0 var(--space-16); font-size: 14px; }
.mo-btn-primary { background: linear-gradient(100deg, var(--grad-start), var(--grad-end)); color: var(--on-grad); box-shadow: var(--shadow-button); }
.mo-btn-primary:active { filter: brightness(.92); }
.mo-btn-white { background: #ffffff; color: #0866d6; }
.mo-btn-outline-hero { background: transparent; color: var(--on-hero); border-color: var(--on-hero); }
.mo-btn-secondary { background: var(--blue-soft); color: var(--blue); }
.mo-btn-secondary:active { filter: brightness(.96); }
.mo-btn-outline { background: transparent; color: var(--blue); border-color: var(--line-strong); }
.mo-btn-ghost { background: transparent; color: var(--blue); }
.mo-btn-ghost:active { background: var(--blue-soft); }
.mo-btn-danger { background: linear-gradient(100deg, var(--danger-start), var(--danger-end)); color: var(--on-danger); box-shadow: var(--shadow-danger); }
.mo-btn-danger:active { filter: brightness(.92); }
.mo-btn-danger-soft { background: var(--red-soft); color: var(--red); }
.mo-btn[disabled] { box-shadow: none; background: var(--surface-sunken); color: var(--ink-muted); border-color: transparent; cursor: not-allowed; }

/* Call button: compact pill */
.mo-call { font: inherit; font-size: 15px; line-height: 20px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-8); height: 44px; padding: 0 var(--space-20, 20px) 0 var(--space-16); border-radius: var(--radius-full); border: 0; cursor: pointer; background: linear-gradient(100deg, var(--grad-start), var(--grad-end)); color: var(--on-grad); box-shadow: var(--shadow-button); flex: none; }
.mo-call:active { filter: brightness(.92); }
.mo-call-red { background: linear-gradient(100deg, var(--danger-start), var(--danger-end)); color: var(--on-danger); box-shadow: var(--shadow-danger); }
.mo-call-soft { background: var(--blue-soft); color: var(--blue); box-shadow: none; }
.mo-call-icon { width: 44px; padding: 0; justify-content: center; }

.mo-iconbtn { font: inherit; display: inline-flex; align-items: center; justify-content: center; width: var(--size-call); height: var(--size-call); border-radius: var(--radius-full); border: 0; background: transparent; color: var(--ink); cursor: pointer; position: relative; }
.mo-iconbtn:active { background: var(--surface-sunken); }
.mo-iconbtn-dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--red); box-shadow: 0 0 0 2px var(--surface-raised); }

/* Fields */
.mo-field { display: flex; flex-direction: column; gap: var(--space-8); min-width: 0; }
.mo-field-label { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); padding-left: 2px; display: flex; justify-content: space-between; gap: var(--space-8); }
.mo-field-optional { font-weight: 500; color: var(--ink-muted); }
.mo-field-control { position: relative; display: flex; align-items: center; height: var(--size-control); background: var(--surface-sunken); border: 1px solid var(--line-strong); border-radius: var(--radius-md); transition: border-color .15s, box-shadow .15s; }
.mo-field-control:focus-within { background: var(--surface-raised); border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.mo-field-error .mo-field-control { border-color: var(--red); }
.mo-field-error .mo-field-control:focus-within { box-shadow: 0 0 0 3px var(--red-soft); }
.mo-field-lead { display: flex; align-items: center; padding-left: var(--space-16); color: var(--ink-muted); }
.mo-field-prefix { font-weight: 600; color: var(--ink); padding-right: var(--space-12); margin-right: var(--space-4); border-right: 1px solid var(--line); line-height: 24px; }
.mo-field-input { font: inherit; font-size: 16px; color: var(--ink); background: transparent; border: 0; outline: none; flex: 1; min-width: 0; height: 100%; padding: 0 var(--space-16); border-radius: var(--radius-md); -webkit-appearance: none; appearance: none; }
.mo-field-lead + .mo-field-input { padding-left: var(--space-12); }
.mo-field-input::placeholder { color: var(--ink-muted); opacity: 1; }
.mo-field-input:focus-visible { box-shadow: none; }
select.mo-field-input { padding-right: 44px; cursor: pointer; }
select.mo-field-input:invalid { color: var(--ink-muted); }
.mo-field-trail { position: absolute; right: var(--space-4); top: 50%; transform: translateY(-50%); display: flex; color: var(--ink-muted); pointer-events: none; }
.mo-field-trail .mo-iconbtn { pointer-events: auto; color: var(--ink-muted); }
.mo-field-trail > .mo-icon { margin-right: var(--space-12); }
.mo-field-hint { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-muted); margin: 0; }
.mo-field-error .mo-field-hint { color: var(--red); }
.mo-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); }

/* Search */
.mo-search .mo-field-control { background: var(--surface-sunken); border-color: transparent; border-radius: var(--radius-full); }
.mo-search .mo-field-control:focus-within { background: var(--surface-raised); border-color: var(--blue); }

/* Checkbox */
.mo-check { display: flex; gap: var(--space-12); align-items: flex-start; font-size: 14px; line-height: 20px; color: var(--ink); cursor: pointer; }
.mo-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mo-check-box { flex: none; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line-strong); background: var(--surface-raised); display: flex; align-items: center; justify-content: center; color: transparent; }
.mo-check input:checked + .mo-check-box { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.mo-check a { color: var(--link); font-weight: 600; text-decoration: none; }

/* Toggle */
.mo-toggle { display: flex; align-items: center; gap: var(--space-16); justify-content: space-between; min-height: var(--size-control); }
.mo-toggle-text { display: flex; flex-direction: column; min-width: 0; }
.mo-toggle-label { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--ink); }
.mo-toggle-desc { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.mo-switch { flex: none; position: relative; width: 52px; height: 32px; border-radius: var(--radius-full); border: 0; padding: 0; cursor: pointer; background: var(--line-strong); transition: background-color .2s; }
.mo-switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: var(--radius-full); background: var(--surface-raised); transition: transform .2s; box-shadow: 0 1px 2px #0000002e; }
.mo-switch[aria-checked="true"] { background: var(--blue); }
.mo-switch[aria-checked="true"]::after { transform: translateX(20px); background: var(--on-blue); }
.mo-switch-green[aria-checked="true"] { background: var(--green); }
.mo-switch-green[aria-checked="true"]::after { background: var(--on-green); }

/* Chips */
.mo-chiprow { display: flex; gap: var(--space-8); overflow-x: auto; padding: var(--space-4) var(--space-16); scrollbar-width: none; }
.mo-chiprow::-webkit-scrollbar { display: none; }
.mo-chip { font: inherit; font-size: 14px; line-height: 20px; font-weight: 600; flex: none; display: inline-flex; align-items: center; gap: var(--space-4); height: var(--size-chip); padding: 0 var(--space-12); border-radius: var(--radius-full); border: 1.5px solid var(--line-strong); background: var(--surface-raised); color: var(--ink); cursor: pointer; white-space: nowrap; }
.mo-chip[aria-pressed="true"] { background: linear-gradient(100deg, var(--grad-start), var(--grad-end)); border-color: transparent; color: var(--on-grad); }
.mo-chip[aria-pressed="true"] .mo-chip-count { background: var(--on-grad); color: var(--grad-end); }
.mo-chip-blood[aria-pressed="true"] { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.mo-chip-count { font-size: 12px; line-height: 16px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--radius-full); background: var(--blue); color: var(--on-blue); display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }

/* Badges */
.mo-badge { display: inline-flex; align-items: center; gap: var(--space-4); height: 24px; padding: 0 var(--space-8); border-radius: var(--radius-sm); font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .02em; background: var(--surface-sunken); color: var(--ink-muted); white-space: nowrap; }
.mo-badge-blue { background: var(--blue-soft); color: var(--blue); }
.mo-badge-red { background: var(--red-soft); color: var(--red); }
.mo-badge-green { background: var(--green-soft); color: var(--green); }
.mo-badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: var(--radius-full); background: currentColor; }
.mo-badge-blood { font-size: 14px; line-height: 20px; height: 28px; letter-spacing: 0; }

/* Avatar: illustrated people on a soft role tint; organisations show their art */
.mo-av { flex: none; position: relative; display: inline-flex; }
.mo-av-face { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 32%; display: flex; align-items: flex-end; justify-content: center; }
.mo-av-face svg { display: block; width: 100%; height: 100%; }
.mo-av-doctor .mo-av-face { background: linear-gradient(160deg, var(--blue-soft), var(--teal-soft)); }
.mo-av-nurse .mo-av-face { background: linear-gradient(160deg, var(--teal-soft), var(--green-soft)); }
.mo-av-donor .mo-av-face { background: linear-gradient(160deg, var(--red-soft), var(--star-soft)); }
.mo-av-patient .mo-av-face, .mo-av-social .mo-av-face { background: linear-gradient(160deg, var(--blue-soft), var(--star-soft)); }
.mo-av-org .mo-av-face { background: #ffffff; border: 1px solid var(--line); align-items: center; box-sizing: border-box; }
.mo-av-org .mo-art { width: 72%; height: 72%; }
.mo-av-badge { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: var(--radius-full); background: var(--surface-raised); box-shadow: 0 1px 4px #0d1b2a33; display: flex; align-items: center; justify-content: center; }
.mo-av-badge .mo-art { width: 16px; height: 16px; }
.mo-av-online::after { content: ""; position: absolute; right: -2px; top: -2px; width: 14px; height: 14px; border-radius: var(--radius-full); background: var(--green); box-shadow: 0 0 0 2.5px var(--surface-raised); }

/* Listing card: readable hierarchy */
.mo-lc { display: flex; flex-direction: column; gap: var(--space-12); padding: var(--space-16); background: var(--surface-raised); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); border: 1px solid var(--line); min-width: 0; }
.mo-lc-head { display: flex; gap: var(--space-12); align-items: flex-start; }
.mo-lc-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-top: 2px; }
.mo-lc-name { margin: 0; font-size: 18px; line-height: 24px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.mo-lc-role { margin: 0; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--teal); }
.mo-lc-role-red { color: var(--red); }
.mo-lc-org { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mo-lc-rating { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: var(--radius-full); background: var(--star-soft); font-size: 14px; line-height: 20px; color: var(--ink); }
.mo-lc-rating .mo-icon { color: var(--star); }
.mo-lc-rating b { font-weight: 800; }
.mo-lc-rating span { color: var(--ink-muted); font-size: 12px; }
.mo-lc-facts { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.mo-lc-fact { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: var(--radius-sm); background: var(--surface-sunken); font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.mo-lc-fact .mo-icon { color: var(--teal); }
.mo-lc-fact-red { background: var(--red-soft); color: var(--red); }
.mo-lc-fact-red .mo-icon { color: var(--red); }
.mo-lc-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); padding-top: var(--space-12); border-top: 1px dashed var(--line); }
.mo-lc-status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--ink-muted); min-width: 0; }
.mo-lc-status::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: var(--radius-full); background: var(--line-strong); }
.mo-lc-status-green { color: var(--green); }
.mo-lc-status-green::before { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.mo-lc-status-amber { color: var(--star); }
.mo-lc-status-amber::before { background: var(--logo-orange); box-shadow: 0 0 0 4px var(--star-soft); }

/* Top bar */
.mo-topbar { display: flex; align-items: center; gap: var(--space-4); min-height: 56px; padding: 0 var(--space-8); background: var(--surface-raised); border-bottom: 1px solid var(--line); }
.mo-topbar-title { flex: 1; min-width: 0; margin: 0; font-size: 18px; line-height: 24px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mo-topbar-sub { display: block; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-muted); }
.mo-topbar-nobk .mo-topbar-title { padding-left: var(--space-8); }

/* Bottom nav */
.mo-nav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: var(--size-nav); padding: 0 var(--space-8); background: var(--surface-raised); box-shadow: var(--shadow-float); }
.mo-nav-item { font: inherit; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink-muted); font-size: 12px; line-height: 16px; font-weight: 600; cursor: pointer; border-radius: var(--radius-md); }
.mo-nav-pill { display: flex; align-items: center; justify-content: center; width: 56px; height: 28px; border-radius: var(--radius-full); }
.mo-nav-item[aria-current="page"] { color: var(--blue); }
.mo-nav-item[aria-current="page"] .mo-nav-pill { background: var(--blue-soft); }
.mo-nav-request .mo-nav-pill { background: linear-gradient(100deg, var(--danger-start), var(--danger-end)); color: var(--on-danger); box-shadow: var(--shadow-danger); width: 60px; height: 32px; }
.mo-nav-request { color: var(--danger-end); }
.mo-nav-request[aria-current="page"] { color: var(--danger-end); }
.mo-nav-request[aria-current="page"] .mo-nav-pill { background: linear-gradient(100deg, var(--danger-start), var(--danger-end)); box-shadow: 0 0 0 3px var(--red-soft), var(--shadow-danger); }

/* Phone frame used by sample previews */
.mo-phone { width: 375px; max-width: 100%; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 36px; overflow: hidden; box-shadow: var(--shadow-card); position: relative; }
.mo-screen-pad { padding: var(--space-24) var(--space-16) var(--space-32); display: flex; flex-direction: column; gap: var(--space-24); }
.mo-title { font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -.01em; margin: 0; color: var(--ink); text-wrap: balance; }
.mo-lede { font-size: 16px; line-height: 24px; color: var(--ink-muted); margin: 8px 0 0; }
.mo-footnote { text-align: center; font-size: 14px; line-height: 20px; color: var(--ink-muted); margin: 0; }
.mo-footnote a, .mo-link { color: var(--link); font-weight: 700; text-decoration: none; }

/* Logo */
.mo-logo { display: inline-flex; align-items: center; gap: var(--space-12); }
.mo-logo-tile { flex: none; display: flex; align-items: center; justify-content: center; background: #ffffff; border-radius: var(--radius-md); box-shadow: 0 10px 30px #0d1b2a2e; }
.mo-logo-tile img { display: block; width: 76%; height: 76%; object-fit: contain; }
.mo-logo-mark { display: block; object-fit: contain; }
.mo-logo-word { font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1; }
.mo-logo-word b { font-weight: 800; color: var(--blue); }
.mo-logo-onhero .mo-logo-word, .mo-logo-onhero .mo-logo-word b { color: var(--on-hero); }

/* Hero header with a curved bottom, and the sheet that rises over it */
.mo-hero { position: relative; overflow: hidden; color: var(--on-hero); background: linear-gradient(var(--hero-shade), var(--hero-shade)), linear-gradient(135deg, var(--hero-start) 0%, var(--hero-end) 100%); padding: var(--space-16) var(--space-24) 72px; }
.mo-hero::before, .mo-hero::after { content: ""; position: absolute; border-radius: var(--radius-full); border: 28px solid var(--on-hero); opacity: .08; pointer-events: none; }
.mo-hero::before { width: 220px; height: 220px; right: -90px; top: -80px; }
.mo-hero::after { width: 120px; height: 120px; left: -50px; bottom: -40px; border-width: 18px; }
.mo-hero > * { position: relative; z-index: 1; }
.mo-hero-bar { display: flex; align-items: center; justify-content: space-between; min-height: 40px; margin: 0 calc(var(--space-8) * -1) var(--space-16); }
.mo-hero .mo-iconbtn { color: var(--on-hero); }
.mo-hero-title { font-size: 28px; line-height: 36px; font-weight: 800; letter-spacing: -.02em; margin: var(--space-16) 0 0; text-wrap: balance; }
.mo-hero-sub { font-size: 15px; line-height: 22px; font-weight: 500; margin: var(--space-4) 0 0; }
.mo-hero-chip { font: inherit; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: var(--space-4); height: 32px; padding: 0 var(--space-12); border-radius: var(--radius-full); border: 1px solid var(--on-hero); background: transparent; color: var(--on-hero); cursor: pointer; }
.mo-sheet { position: relative; z-index: 2; margin-top: -40px; background: var(--surface-raised); border-radius: var(--radius-xl) var(--radius-xl) 0 0; box-shadow: var(--shadow-float); padding: var(--space-32) var(--space-24) var(--space-32); display: flex; flex-direction: column; gap: var(--space-16); }
.mo-sheet .mo-field-control { background: var(--surface-sunken); }
.mo-row-end { display: flex; justify-content: flex-end; margin-top: calc(var(--space-8) * -1); }
.mo-divider { display: flex; align-items: center; gap: var(--space-12); font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.mo-divider::before, .mo-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.mo-steps { display: flex; gap: var(--space-4); margin-top: var(--space-16); }
.mo-steps span { height: 4px; flex: 1; border-radius: var(--radius-full); background: var(--on-hero); opacity: .3; }
.mo-steps span.on { opacity: 1; }
.mo-eyebrow { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); margin: 0; }

/* Welcome */
.mo-welcome { min-height: 760px; display: flex; flex-direction: column; color: var(--on-hero); background: linear-gradient(var(--hero-shade), var(--hero-shade)), linear-gradient(160deg, var(--hero-start) 0%, var(--hero-end) 85%); position: relative; overflow: hidden; }
.mo-welcome-rings { position: absolute; inset: 0; pointer-events: none; }
.mo-welcome-rings span { position: absolute; border-radius: var(--radius-full); border: 1.5px solid var(--on-hero); opacity: .12; }
.mo-welcome-top { display: flex; justify-content: flex-end; padding: var(--space-16) var(--space-16) 0; position: relative; }
.mo-welcome-mid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--space-24); gap: var(--space-24); position: relative; }
.mo-welcome-name { font-size: 40px; line-height: 44px; font-weight: 800; letter-spacing: -.03em; margin: 0; }
.mo-welcome-tag { font-size: 16px; line-height: 24px; font-weight: 500; margin: var(--space-8) 0 0; max-width: 280px; }
.mo-welcome-roles { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-8); max-width: 300px; }
.mo-welcome-roles span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; font-weight: 600; padding: 6px 12px; border-radius: var(--radius-full); background: #ffffff1f; }
.mo-welcome-actions { position: relative; padding: var(--space-24) var(--space-24) var(--space-32); display: flex; flex-direction: column; gap: var(--space-12); }
.mo-welcome-legal { font-size: 13px; line-height: 18px; text-align: center; margin: var(--space-4) 0 0; }
.mo-welcome-legal a { color: var(--on-hero); font-weight: 700; }

/* Role picker: the brand's own art in a 4 by 2 grid */
.mo-art { display: block; object-fit: contain; }
.mo-roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-8); }
.mo-role { font: inherit; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: var(--space-12) 2px 10px; border-radius: var(--radius-lg); border: 1.5px solid var(--line); background: var(--surface-raised); color: var(--ink); font-size: 12px; line-height: 16px; font-weight: 600; cursor: pointer; position: relative; text-align: center; transition: border-color .15s, background-color .15s, transform .15s; }
.mo-role-art { width: 56px; height: 56px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; background: var(--surface-sunken); }
.mo-role[aria-checked="true"] { border-color: var(--teal); background: var(--teal-soft); }
.mo-role[aria-checked="true"] .mo-role-art { background: var(--surface-raised); }
.mo-role-blood[aria-checked="true"] { border-color: var(--red); background: var(--red-soft); }
.mo-role-check { position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: var(--radius-full); background: linear-gradient(135deg, var(--grad-start), var(--grad-end)); color: var(--on-grad); display: flex; align-items: center; justify-content: center; }
.mo-role-blood .mo-role-check { background: var(--red); color: var(--on-red); }
.mo-role:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* Category tiles (home) */
.mo-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-12) var(--space-8); }
.mo-cat { font: inherit; border: 0; background: transparent; padding: 0; display: flex; flex-direction: column; align-items: center; gap: var(--space-8); cursor: pointer; color: var(--ink); }
.mo-cat-art { width: 64px; height: 64px; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; background: var(--surface-sunken); border: 1px solid var(--line); transition: transform .15s; }
.mo-cat:active .mo-cat-art { transform: scale(.96); }
.mo-cat-red .mo-cat-art { background: var(--red-soft); }
.mo-cat-label { font-size: 13px; line-height: 18px; font-weight: 600; text-align: center; }
.mo-cat:focus-visible { outline: none; }
.mo-cat:focus-visible .mo-cat-art { box-shadow: var(--focus-ring); }

/* List rows and groups (profile, settings) */
.mo-group { display: flex; flex-direction: column; gap: var(--space-8); }
.mo-group-title { margin: 0; padding-left: 4px; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.mo-group-box { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.mo-row { font: inherit; width: 100%; display: flex; align-items: center; gap: var(--space-12); min-height: 60px; padding: var(--space-8) var(--space-16); background: transparent; border: 0; text-align: left; color: var(--ink); cursor: pointer; box-sizing: border-box; }
.mo-row + .mo-row { border-top: 1px solid var(--line); }
.mo-row-ic { flex: none; width: 36px; height: 36px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; background: var(--blue-soft); color: var(--blue); }
.mo-row-ic-teal { background: var(--teal-soft); color: var(--teal); }
.mo-row-ic-red { background: var(--red-soft); color: var(--red); }
.mo-row-ic-green { background: var(--green-soft); color: var(--green); }
.mo-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mo-row-label { font-size: 15px; line-height: 22px; font-weight: 600; }
.mo-row-desc { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.mo-row-right { display: flex; align-items: center; gap: var(--space-4); color: var(--ink-muted); font-size: 14px; }
.mo-row-value { font-weight: 600; }
.mo-row-danger .mo-row-label { color: var(--red); }
.mo-row-toggle { min-height: 0; }
.mo-row-toggle .mo-toggle-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mo-row:focus-visible { outline: none; box-shadow: inset var(--focus-ring); }

/* OTP */
.mo-otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-8); }
.mo-otp-box { font: inherit; width: 100%; height: 56px; box-sizing: border-box; text-align: center; font-size: 24px; font-weight: 700; color: var(--ink); background: var(--surface-sunken); border: 1px solid var(--line-strong); border-radius: var(--radius-md); outline: none; }
.mo-otp-box:focus { border-color: var(--blue); background: var(--surface-raised); box-shadow: 0 0 0 4px var(--blue-soft); }

/* Hero extras for the app screens */
.mo-hero .mo-search .mo-field-control { background: var(--surface-raised); border-color: transparent; box-shadow: 0 6px 20px #0d1b2a26; }
.mo-hero-loc { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; line-height: 18px; font-weight: 600; }
.mo-hero-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); }
.mo-hero-center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.mo-sheet-flat { margin-top: -32px; padding-top: var(--space-24); }
.mo-section-head { display: flex; align-items: baseline; justify-content: space-between; }
.mo-section-head h2 { margin: 0; font-size: 18px; line-height: 24px; font-weight: 700; color: var(--ink); }
.mo-section-head a { font-size: 14px; font-weight: 700; color: var(--link); text-decoration: none; }
.mo-sos { display: flex; align-items: center; gap: var(--space-12); padding: var(--space-12) var(--space-16); border-radius: var(--radius-lg); background: var(--red-soft); }
.mo-sos-text { flex: 1; min-width: 0; }
.mo-sos-text b { display: block; font-size: 15px; line-height: 20px; color: var(--red); }
.mo-sos-text span { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.mo-stats { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface-sunken); border-radius: var(--radius-lg); padding: var(--space-12) 0; }
.mo-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mo-stat + .mo-stat { border-left: 1px solid var(--line); }
.mo-stat b { font-size: 18px; line-height: 24px; font-weight: 800; color: var(--ink); }
.mo-stat span { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.mo-info { display: flex; gap: var(--space-12); align-items: flex-start; }
.mo-info .mo-row-ic { margin-top: 2px; }
.mo-info b { display: block; font-size: 15px; line-height: 22px; color: var(--ink); }
.mo-info span { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.mo-callbar { position: sticky; bottom: 0; display: flex; gap: var(--space-12); padding: var(--space-12) var(--space-24) var(--space-16); background: var(--surface-raised); box-shadow: var(--shadow-float); }
.mo-callbar .mo-btn { flex: 1; }
.mo-profile-avatar { margin: 0 auto calc(var(--space-8) * -1); }

/* Ad slot — home screen promo banner (sponsored content, swipeable) */
.mo-ad { display: flex; flex-direction: column; gap: var(--space-8); }
.mo-ad-card { position: relative; display: flex; align-items: center; gap: var(--space-12); padding: var(--space-16); border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--blue-soft), var(--teal-soft)); overflow: hidden; }
.mo-ad-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }
.mo-ad-label { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); background: var(--surface-raised); border-radius: var(--radius-full); padding: 2px var(--space-8); }
.mo-ad-text b { font-size: 16px; line-height: 22px; color: var(--ink); }
.mo-ad-text span { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.mo-ad-text .mo-btn { margin-top: var(--space-4); }
.mo-ad-dots { display: flex; justify-content: center; gap: 6px; }
.mo-ad-dots i { width: 6px; height: 6px; border-radius: var(--radius-full); background: var(--line-strong); }
.mo-ad-dots i[aria-current="true"] { width: 18px; background: var(--blue); }

/* Phone field: valid state and the "did you mean" suggestion */
.mo-field-ok .mo-field-hint { color: var(--green); display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.mo-phone-field { display: flex; flex-direction: column; gap: var(--space-8); }
.mo-field-fix { font: inherit; align-self: flex-start; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--blue); background: var(--blue-soft); border: 0; border-radius: var(--radius-full); padding: 6px var(--space-12); cursor: pointer; text-align: left; }
.mo-field-fix b { font-weight: 700; }
.mo-field-fix:focus-visible { outline: none; box-shadow: var(--focus-ring); }
select.mo-field-input:disabled { cursor: not-allowed; }
.mo-field:has(select:disabled) .mo-field-control { opacity: .6; }

/* Listing filters: three white tiles on the hero, under search */
.mo-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); margin-top: var(--space-12); }
.mo-filter { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 2px; padding: 6px 8px 6px 12px; min-height: 48px; box-sizing: border-box; border-radius: var(--radius-md); background: var(--surface-raised); color: var(--ink); box-shadow: 0 6px 20px #0d1b2a1f; cursor: pointer; }
.mo-filter-k { grid-column: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); }
.mo-filter-v { grid-column: 1; font-size: 14px; line-height: 20px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mo-filter .mo-icon { grid-column: 2; grid-row: 1 / span 2; color: var(--ink-muted); }
.mo-filter select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.mo-filter-on { box-shadow: 0 0 0 2px var(--blue), 0 6px 20px #0d1b2a1f; }
.mo-filter-on .mo-filter-v { color: var(--blue); }
.mo-filter-off { opacity: .7; cursor: not-allowed; }
.mo-filter-off select { cursor: not-allowed; }
.mo-filter:focus-within { box-shadow: var(--focus-ring); }
.mo-results { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.mo-results b { color: var(--ink); }
.mo-results button { font: inherit; font-size: 14px; font-weight: 700; color: var(--link); background: none; border: 0; padding: 0; cursor: pointer; }

/* Spinner */
.mo-spinner { display: inline-block; width: 32px; height: 32px; box-sizing: border-box; border-radius: var(--radius-full); border: 3px solid var(--blue-soft); border-top-color: var(--blue); animation: mo-spin .8s linear infinite; }
.mo-spinner-hero { border-color: #ffffff40; border-top-color: var(--on-hero); }
@keyframes mo-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mo-spinner { animation-duration: 2.4s; } }

/* Splash */
.mo-splash { min-height: 760px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-24); text-align: center; color: var(--on-hero); background: linear-gradient(var(--hero-shade), var(--hero-shade)), linear-gradient(160deg, var(--hero-start) 0%, var(--hero-end) 85%); position: relative; overflow: hidden; padding: var(--space-24); box-sizing: border-box; }
.mo-splash-foot { position: absolute; bottom: var(--space-32); left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: var(--space-12); font-size: 13px; line-height: 18px; }

/* Notifications */
.mo-notes { display: flex; flex-direction: column; }
.mo-note { display: flex; gap: var(--space-12); padding: var(--space-12) var(--space-16); align-items: flex-start; position: relative; }
.mo-note + .mo-note { border-top: 1px solid var(--line); }
.mo-note-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mo-note-text b { font-size: 15px; line-height: 20px; color: var(--ink); }
.mo-note-text span { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.mo-note-text time { font-size: 12px; line-height: 16px; color: var(--ink-muted); font-weight: 600; margin-top: 2px; }
.mo-note-new::after { content: ""; position: absolute; top: 18px; right: var(--space-16); width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--blue); }
.mo-note-actions { display: flex; gap: var(--space-8); margin-top: var(--space-8); }

/* Success and empty states */
.mo-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-12); padding: var(--space-24) var(--space-8); }
.mo-state-ic { width: 72px; height: 72px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; background: var(--green-soft); color: var(--green); }
.mo-state h2 { margin: 0; font-size: 22px; line-height: 28px; font-weight: 800; color: var(--ink); }
.mo-state p { margin: 0; font-size: 15px; line-height: 22px; color: var(--ink-muted); max-width: 280px; }

/* Photo change on edit profile */
.mo-photo-edit { position: relative; display: inline-flex; }
.mo-photo-edit .mo-iconbtn { position: absolute; right: -6px; bottom: -6px; width: 36px; height: 36px; background: var(--surface-raised); color: var(--blue); box-shadow: 0 2px 8px #0d1b2a33; }

/* Provider: own services editor */
.mo-card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-16); display: flex; flex-direction: column; gap: var(--space-16); }
.mo-card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); }
.mo-card-head h2 { margin: 0; font-size: 16px; line-height: 22px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: var(--space-8); }
.mo-card-head h2 .mo-row-ic { width: 32px; height: 32px; }
.mo-svc { display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: var(--space-8) var(--space-8); align-items: end; }
.mo-svc > .mo-field:first-child { grid-column: 1 / -1; }
.mo-svc > .mo-field:nth-child(2) { grid-column: 1; }
.mo-svc .mo-field-prefix { font-family: var(--font-bangla); font-size: 18px; }
.mo-svc .mo-iconbtn { height: var(--size-control); color: var(--ink-muted); }
.mo-svc + .mo-svc { padding-top: var(--space-12); border-top: 1px dashed var(--line); }
.mo-days { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.mo-days .mo-chip { min-width: 52px; justify-content: center; }
.mo-time-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: end; }
.mo-time-row > span { padding-bottom: 14px; color: var(--ink-muted); font-weight: 600; }
.mo-status-card { display: flex; align-items: center; gap: var(--space-12); padding: var(--space-12) var(--space-16); border-radius: var(--radius-lg); background: var(--green-soft); }
.mo-status-card.off { background: var(--surface-sunken); }
.mo-status-card .mo-toggle { flex: 1; }
.mo-preview-tabs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 375px; margin: 0 auto 16px; }

/* Language choice */
.mo-radio-row { font: inherit; width: 100%; display: flex; align-items: center; gap: var(--space-12); min-height: 60px; padding: var(--space-8) var(--space-16); background: transparent; border: 0; text-align: left; color: var(--ink); cursor: pointer; box-sizing: border-box; }
.mo-radio-row + .mo-radio-row { border-top: 1px solid var(--line); }
.mo-radio-dot { flex: none; width: 22px; height: 22px; border-radius: var(--radius-full); border: 2px solid var(--line-strong); box-sizing: border-box; }
.mo-radio-row[aria-checked="true"] .mo-radio-dot { border: 7px solid var(--blue); }
.mo-radio-row:focus-visible { outline: none; box-shadow: inset var(--focus-ring); }

/* Role picker: 3 columns for six roles */
.mo-roles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-12); }
.mo-roles-3 .mo-role { padding: var(--space-16) 4px var(--space-12); font-size: 13px; line-height: 18px; gap: var(--space-8); }
.mo-roles-3 .mo-role-art { width: 64px; height: 64px; }
.mo-roles-3 .mo-role-art .mo-art { width: 54px; height: 54px; }

/* Services and prices */
.mo-svc-list { display: flex; flex-direction: column; gap: var(--space-12); }
.mo-svc-list > .mo-field-hint { margin: 0; }
.mo-prices { display: flex; flex-direction: column; background: var(--surface-sunken); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-16); }
.mo-price { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-12); padding: var(--space-12) 0; font-size: 15px; line-height: 22px; color: var(--ink); }
.mo-price + .mo-price { border-top: 1px dashed var(--line); }
.mo-price b { font-weight: 800; white-space: nowrap; }
.mo-price-free { color: var(--green); }

/* Rating card */
.mo-stars { display: flex; justify-content: center; gap: 4px; }
.mo-star { font: inherit; border: 0; background: transparent; padding: 4px; cursor: pointer; color: var(--line-strong); border-radius: var(--radius-md); transition: transform .12s; }
.mo-star .mo-icon path { fill: currentColor; }
.mo-star.on { color: var(--logo-orange); }
.mo-star:active { transform: scale(.9); }
.mo-star:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.mo-rate { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--space-12); text-align: center; padding: var(--space-12) var(--space-24) var(--space-24); background: var(--surface-raised); border-radius: var(--radius-xl) var(--radius-xl) 0 0; box-shadow: var(--shadow-float); }
.mo-rate-grip { width: 40px; height: 4px; border-radius: var(--radius-full); background: var(--line); margin-bottom: var(--space-8); }
.mo-rate-x { position: absolute; top: var(--space-12); right: var(--space-12); color: var(--ink-muted); }
.mo-rate-head h2 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 800; color: var(--ink); }
.mo-rate-head p { margin: 2px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.mo-rate-word { margin: 0; font-size: 15px; line-height: 22px; font-weight: 700; color: var(--ink-muted); min-height: 22px; }
.mo-rate-word.on { color: var(--star); }
.mo-rate .mo-btn-ghost { margin-top: -4px; }
.mo-scrim { position: absolute; inset: 0; z-index: 20; background: #0d1b2a73; display: flex; flex-direction: column; justify-content: flex-end; }

/* Notification banner */
.mo-banner { display: flex; gap: var(--space-12); align-items: flex-start; padding: var(--space-12) var(--space-16) var(--space-12) var(--space-12); background: var(--surface-raised); border-radius: var(--radius-lg); box-shadow: 0 10px 30px #0d1b2a33, 0 0 0 1px var(--line); max-width: 360px; box-sizing: border-box; animation: mo-drop .35s ease-out; }
@keyframes mo-drop { from { transform: translateY(-16px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mo-banner { animation: none; } }
.mo-banner-logo { flex: none; width: 40px; height: 40px; border-radius: 12px; background: #ffffff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.mo-banner-logo img { width: 30px; height: 30px; object-fit: contain; }
.mo-banner-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mo-banner-top { display: flex; justify-content: space-between; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--ink-muted); }
.mo-banner-top time { font-weight: 500; }
.mo-banner-text b { display: flex; align-items: center; gap: 6px; font-size: 15px; line-height: 20px; color: var(--ink); }
.mo-banner-body { font-size: 14px; line-height: 20px; color: var(--ink-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mo-banner-ic { flex: none; width: 20px; height: 20px; border-radius: var(--radius-full); display: inline-flex; align-items: center; justify-content: center; background: var(--blue-soft); color: var(--blue); }
.mo-banner-ic-red { background: var(--red-soft); color: var(--danger-end); }
.mo-banner-ic-green { background: var(--green-soft); color: var(--green); }
.mo-banner-ic-star { background: var(--star-soft); color: var(--star); }
.mo-banner-ic-teal { background: var(--teal-soft); color: var(--teal); }
.mo-banner-stage { position: relative; padding: var(--space-12) var(--space-8) 0; }

/* Home brand header */
.mo-home-brand { display: flex; align-items: center; gap: var(--space-12); margin-top: var(--space-24); }
.mo-home-brand h1 { margin: 0; font-size: 32px; line-height: 36px; font-weight: 800; letter-spacing: -.02em; }
.mo-home-brand p { margin: 2px 0 0; font-size: 15px; line-height: 22px; font-weight: 500; }

/* Policy / long-form page */
.mo-doc { display: flex; flex-direction: column; gap: var(--space-16); }
.mo-doc-summary { display: flex; gap: var(--space-12); padding: var(--space-16); border-radius: var(--radius-lg); background: var(--teal-soft); }
.mo-doc-summary b { display: block; font-size: 15px; line-height: 22px; color: var(--ink); }
.mo-doc-summary ul { margin: var(--space-4) 0 0; padding-left: 18px; font-size: 14px; line-height: 21px; color: var(--ink); }
.mo-doc-sec { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.mo-doc-sec summary { list-style: none; display: flex; align-items: center; gap: var(--space-12); padding: var(--space-12) var(--space-16); min-height: 56px; box-sizing: border-box; cursor: pointer; font-size: 15px; line-height: 22px; font-weight: 700; color: var(--ink); }
.mo-doc-sec summary::-webkit-details-marker { display: none; }
.mo-doc-sec summary .mo-doc-num { flex: none; width: 28px; height: 28px; border-radius: var(--radius-full); background: var(--blue-soft); color: var(--blue); font-size: 13px; display: flex; align-items: center; justify-content: center; }
.mo-doc-sec summary > span:nth-child(2) { flex: 1; }
.mo-doc-sec summary .mo-icon { color: var(--ink-muted); transition: transform .2s; }
.mo-doc-sec[open] summary .mo-icon { transform: rotate(180deg); }
.mo-doc-sec summary:focus-visible { outline: none; box-shadow: inset var(--focus-ring); }
.mo-doc-body { padding: 0 var(--space-16) var(--space-16) 56px; font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.mo-doc-body p { margin: 0 0 var(--space-8); }
.mo-doc-body ul { margin: 0 0 var(--space-8); padding-left: 18px; }
.mo-doc-body li + li { margin-top: 4px; }
.mo-doc-body b { color: var(--ink); }
.mo-doc-meta { font-size: 13px; line-height: 18px; color: var(--ink-muted); text-align: center; margin: 0; }

/* Typography: clear numbers and steady text on the gradient */
.mo-price b, .mo-stat b, .mo-otp-box, .mo-lc-rating, .mo-field-input[type="tel"], .mo-note-text time, .mo-banner-top time, .mo-chip-count { font-variant-numeric: tabular-nums; }
.mo-hero-title, .mo-welcome-name, .mo-section-head h2, .mo-lc-name { text-wrap: balance; }
.mo-row-desc, .mo-field-hint, .mo-lc-org, .mo-note-text span { text-wrap: pretty; }
.mo-nav-item[aria-current="page"] { font-weight: 700; }

/* Home: six services, 3 by 2 */
.mo-cats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-16) var(--space-12); }
.mo-cats-3 .mo-cat-art { width: 72px; height: 72px; }
.mo-cats-3 .mo-cat-art .mo-art { width: 48px; height: 48px; }
.mo-cats-3 .mo-cat-label { font-size: 14px; line-height: 20px; }

/* Delete account */
.mo-del-warn { display: flex; gap: var(--space-12); padding: var(--space-16); border-radius: var(--radius-lg); background: var(--red-soft); }
.mo-del-warn b { display: block; font-size: 15px; line-height: 22px; color: var(--ink); }
.mo-del-warn ul { margin: var(--space-4) 0 0; padding-left: 18px; font-size: 14px; line-height: 21px; color: var(--ink); }
.mo-del-warn li + li { margin-top: 2px; }
.mo-del-alt { display: flex; align-items: center; gap: var(--space-12); padding: var(--space-12) var(--space-16); border-radius: var(--radius-lg); background: var(--surface-sunken); }
.mo-del-alt > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mo-del-alt b { font-size: 15px; line-height: 22px; color: var(--ink); }
.mo-del-alt span { font-size: 13px; line-height: 18px; color: var(--ink-muted); }

/* App shell on top of MedON tokens.css + bundle.css. Mobile first; wider screens centre the content column. */
:root { --app-col: 720px; }
html, body { min-height: 100%; }
body { background: var(--surface); color: var(--ink); overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
#root { min-height: 100dvh; }
.app { position: relative; min-height: 100dvh; }
.app-screen { min-height: 100dvh; display: flex; flex-direction: column; background: var(--surface); }
.app-screen > div, .app-screen > form { flex: 1; display: flex; flex-direction: column; }
.app-screen .mo-sheet { flex: 1; }
.app-full .app-screen > div { min-height: 100dvh; }
.mo-welcome, .mo-splash { min-height: 100dvh; box-sizing: border-box; }
.app-has-nav .app-screen { padding-bottom: calc(var(--size-nav) + env(safe-area-inset-bottom, 0px)); }

.app-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface-raised); box-shadow: var(--shadow-float); padding-bottom: env(safe-area-inset-bottom, 0px); }
.app-nav .mo-nav { box-shadow: none; max-width: 560px; margin: 0 auto; background: transparent; }

.app-with-callbar .mo-sheet { padding-bottom: var(--space-24); }
.app-callbar { z-index: 5; padding-bottom: calc(var(--space-16) + env(safe-area-inset-bottom, 0px)); }
.app-saved { color: var(--blue); background: var(--blue-soft); }

.app-sheet-list { gap: var(--space-12); padding: var(--space-24) var(--space-16); background: var(--surface); }
.app-sheet-tight { padding: 28px var(--space-16) var(--space-24); }
.app-bleed { margin: 0 calc(var(--space-16) * -1); }
.app-cards { display: grid; gap: var(--space-12); grid-template-columns: minmax(0, 1fr); }
.app-card-link { cursor: pointer; border-radius: var(--radius-lg); }
.app-card-link > .mo-lc { height: 100%; box-sizing: border-box; }
.app-card-link:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.app-num { font-variant-numeric: tabular-nums; }
.app-plain { font: inherit; color: inherit; background: transparent; border: 0; padding: 0; min-height: 40px; cursor: pointer; border-radius: var(--radius-full); }
.app-plain:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.app-emergency { background: var(--red-soft); border-color: transparent; }
.app-empty-row { margin: 0; padding: var(--space-16); color: var(--ink-muted); font: var(--text-caption); }
.app-error .mo-check-box { border-color: var(--red); }

/* bottom sheets and banners */
.app .mo-scrim { position: fixed; z-index: 50; animation: app-fade .18s ease-out; }
.mo-scrim > * { width: 100%; max-width: 560px; margin: 0 auto; box-sizing: border-box; animation: app-rise .22s ease-out; }
.mo-scrim > .mo-rate { padding-bottom: calc(var(--space-24) + env(safe-area-inset-bottom, 0px)); }
.app-sheet { display: flex; flex-direction: column; gap: var(--space-16); padding: var(--space-12) var(--space-24) calc(var(--space-24) + env(safe-area-inset-bottom, 0px)); background: var(--surface-raised); border-radius: var(--radius-xl) var(--radius-xl) 0 0; box-shadow: var(--shadow-float); }
.app-sheet .mo-rate-grip { align-self: center; margin-bottom: 0; }
.app-sheet h2 { margin: 0; font: var(--text-heading); color: var(--ink); text-wrap: balance; }
.app-sheet p { margin: 2px 0 0; font: var(--text-caption); color: var(--ink-muted); }
.app-sheet-head { display: flex; align-items: center; gap: var(--space-12); }
.app-sheet a.mo-btn { text-decoration: none; }
.app-banner { position: fixed; z-index: 60; top: calc(env(safe-area-inset-top, 0px) + 12px); left: 12px; right: 12px; display: flex; justify-content: center; cursor: pointer; }
.app-banner .mo-banner { width: 100%; }
.app-offline { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: center; gap: var(--space-8); padding: var(--space-8) var(--space-16); background: var(--ink); color: var(--surface); font: var(--text-caption); }
@keyframes app-fade { from { opacity: 0; } }
@keyframes app-rise { from { transform: translateY(24px); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .app .mo-scrim, .mo-scrim > * { animation: none; } }

/* tablets and desktops: same layout, content held to one readable column */
@media (min-width: 768px) {
  .app .mo-hero, .app .mo-sheet, .app .mo-callbar { padding-left: max(24px, calc((100% - var(--app-col)) / 2)); padding-right: max(24px, calc((100% - var(--app-col)) / 2)); }
  .app .app-sheet-list, .app .app-sheet-tight { padding-left: max(16px, calc((100% - var(--app-col)) / 2)); padding-right: max(16px, calc((100% - var(--app-col)) / 2)); }
  .app-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-cats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .app-bleed { margin: 0; }
  .app-bleed .mo-chiprow { padding-left: 0; padding-right: 0; flex-wrap: wrap; }
  .mo-welcome > :not(.mo-welcome-rings) { width: 100%; max-width: 480px; margin-left: auto; margin-right: auto; box-sizing: border-box; }
  .app-banner { left: 50%; right: auto; width: min(400px, calc(100% - 24px)); transform: translateX(-50%); }
  .mo-scrim { justify-content: center; padding: var(--space-24); box-sizing: border-box; }
  .mo-scrim > .app-sheet, .mo-scrim > .mo-rate { border-radius: var(--radius-xl); padding-bottom: var(--space-24); }
}
@media (min-width: 768px) {
  /* forms read better narrower: hero and sheet share a 560px column */
  .app-screen:has(form.mo-sheet) { --app-col: 560px; }
  .app-screen:has(form.app-sheet-tight) { --app-col: 640px; }
}
@media (min-width: 1200px) { .app-screen:has(.app-sheet-list) { --app-col: 1040px; } .app-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
form .app-cards { grid-template-columns: minmax(0, 1fr) !important; }


/* ===== Canvas additions: safe areas, refined dark theme, Appearance, PIN, read-only rows ===== */
:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---------------------------------------------------------------------------
   Dark theme, refined. The design system's dark tokens stay the source; these
   rules fix the few places that were hard-coded for light, calm the hero, and
   give cards real edges instead of shadows that disappear on dark grounds.
--------------------------------------------------------------------------- */
[data-theme="dark"] {
  color-scheme: dark;
  --surface: #0a1117;
  --surface-raised: #121c26;
  --surface-sunken: #0d161f;
  --line: #1e2b38;
  --hero-start: #0b4d49;
  --hero-end: #0b3d7d;
  --shadow-card: 0 0 0 1px #1e2b38;
  --shadow-float: 0 -1px 0 #1e2b38, 0 -12px 28px #00000066;
  --focus-ring: 0 0 0 2px #0a1117, 0 0 0 4px #4ca3ff;
}
[data-theme="light"] { color-scheme: light; }
/* The hero gets a soft vignette so white text stays crisp without a neon gradient. */
[data-theme="dark"] .mo-hero { background: radial-gradient(120% 90% at 0% 0%, #ffffff0d 0%, #ffffff00 55%), linear-gradient(135deg, var(--hero-start) 0%, var(--hero-end) 100%); }
[data-theme="dark"] .mo-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #ffffff14; }
/* White tiles behind role art and org avatars become a quiet light card, not a glare spot. */
[data-theme="dark"] .mo-role-art { background: #e8eef3 !important; }
[data-theme="dark"] .mo-av-org .mo-av-face { background: #e8eef3; border-color: transparent; }
[data-theme="dark"] .mo-banner-logo { background: #e8eef3; border-color: transparent; }
/* Cards, groups and listings: a hairline edge reads better than a shadow on dark. */
[data-theme="dark"] .mo-lc,
[data-theme="dark"] .mo-group-box,
[data-theme="dark"] .mo-filter { box-shadow: 0 0 0 1px var(--line); }
[data-theme="dark"] .mo-filter-on { box-shadow: 0 0 0 2px var(--blue); }
[data-theme="dark"] .mo-hero .mo-search .mo-field-control { box-shadow: 0 0 0 1px #ffffff1f; }
[data-theme="dark"] .mo-sheet { box-shadow: 0 -1px 0 #ffffff0f; }
[data-theme="dark"] .mo-scrim { background: #000000a6; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
[data-theme="dark"] .mo-btn-white { background: #eef4f8; color: #0652ad; }
[data-theme="dark"] .mo-photo-edit .mo-iconbtn,
[data-theme="dark"] .mo-av-badge { box-shadow: 0 0 0 2px var(--surface-raised); }
[data-theme="dark"] .mo-status-card { box-shadow: inset 0 0 0 1px #93e05a26; }
[data-theme="dark"] .mo-status-card.off { box-shadow: inset 0 0 0 1px var(--line); }
[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator,
[data-theme="dark"] input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(0.85); }
/* Switching themes fades instead of flashing. */
.mo-app .mo-phone, .mo-app .mo-sheet, .mo-app .mo-card, .mo-app .mo-group-box, .mo-app .mo-lc, .mo-app .mo-nav,
.mo-app .mo-field-control, .mo-app .mo-chip, .mo-app .mo-hero { transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease; }
@media (prefers-reduced-motion: reduce) { .mo-app * { transition: none !important; animation: none !important; } }

/* Bangla: the Bangla face first, with a little more line height so matras and
   conjuncts never clip. */
[lang="bn"] .mo-phone { font-family: var(--font-bangla); }
[lang="bn"] .mo-hero-title { line-height: 1.4; }
[lang="bn"] .mo-hero-sub, [lang="bn"] .mo-field-hint, [lang="bn"] .mo-row-desc, [lang="bn"] .mo-lc-org { line-height: 1.5; }

/* ---- Appearance --------------------------------------------------------- */
.mo-theme-list { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.mo-theme-opt { font: inherit; width: 100%; display: flex; align-items: center; gap: var(--space-16); padding: var(--space-12) var(--space-16); background: transparent; border: 0; text-align: left; color: var(--ink); cursor: pointer; box-sizing: border-box; }
.mo-theme-opt + .mo-theme-opt { border-top: 1px solid var(--line); }
.mo-theme-opt:focus-visible { outline: none; box-shadow: inset var(--focus-ring); }
.mo-theme-opt[aria-checked="true"] .mo-radio-dot { border: 7px solid var(--blue); }
.mo-theme-opt .mo-row-text { flex: 1; }
.mo-theme-thumb { flex: none; position: relative; width: 52px; height: 72px; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.mo-theme-thumb i { position: absolute; left: 6px; right: 6px; border-radius: 4px; }
.mo-theme-thumb i:nth-child(1) { top: 0; left: 0; right: 0; height: 24px; border-radius: 0; background: linear-gradient(135deg, #00807a, #0866d6); }
.mo-theme-thumb i:nth-child(2) { top: 30px; height: 14px; }
.mo-theme-thumb i:nth-child(3) { top: 50px; height: 14px; }
.mo-theme-thumb-light { background: #f3f7fa; }
.mo-theme-thumb-light i:nth-child(2), .mo-theme-thumb-light i:nth-child(3) { background: #ffffff; box-shadow: 0 0 0 1px #e1e8ef; }
.mo-theme-thumb-dark { background: #0a1117; }
.mo-theme-thumb-dark i:nth-child(1) { background: linear-gradient(135deg, #0b4d49, #0b3d7d); }
.mo-theme-thumb-dark i:nth-child(2), .mo-theme-thumb-dark i:nth-child(3) { background: #121c26; box-shadow: 0 0 0 1px #1e2b38; }
.mo-theme-thumb-system { background: linear-gradient(135deg, #f3f7fa 50%, #0a1117 50%); }
.mo-theme-thumb-system i:nth-child(1) { background: linear-gradient(135deg, #00807a 50%, #0b3d7d 50%); }
.mo-theme-thumb-system i:nth-child(2), .mo-theme-thumb-system i:nth-child(3) { background: linear-gradient(135deg, #ffffff 50%, #121c26 50%); }

/* ---- PIN set up and PIN log in ------------------------------------------ */
.mo-pin-hero { padding-top: calc(var(--space-32) + var(--safe-top)) !important; padding-bottom: 64px; }
.mo-pin-sheet { align-items: center; gap: var(--space-16) !important; padding-top: var(--space-32) !important; }
.mo-pin-prompt { margin: 0; font-size: 16px; line-height: 24px; font-weight: 700; color: var(--ink); text-align: center; }
.mo-pin-dots { display: flex; gap: 18px; justify-content: center; padding: 4px 0; }
.mo-pin-dot { width: 16px; height: 16px; border-radius: var(--radius-full); border: 2px solid var(--line-strong); box-sizing: border-box; transition: background-color .12s, border-color .12s, transform .12s; }
.mo-pin-dot.on { background: var(--blue); border-color: var(--blue); transform: scale(1.08); }
.mo-pin-dots.bad .mo-pin-dot { border-color: var(--red); }
.mo-pin-dots.bad { animation: mo-pin-shake .38s ease-in-out; }
@keyframes mo-pin-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
.mo-pin-msg { margin: 0; min-height: 20px; font-size: 14px; line-height: 20px; font-weight: 600; text-align: center; color: var(--red); visibility: hidden; }
.mo-pin-msg.on { visibility: visible; }
.mo-keypad { display: grid; grid-template-columns: repeat(3, 72px); gap: 14px 28px; justify-content: center; margin-top: 4px; }
.mo-key { font: inherit; width: 72px; height: 72px; border-radius: var(--radius-full); border: 0; background: var(--surface-sunken); color: var(--ink); font-size: 26px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .12s, transform .08s; }
.mo-key:hover { background: var(--blue-soft); }
.mo-key:active { transform: scale(.94); background: var(--blue-soft); }
.mo-key:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.mo-key:disabled { opacity: .45; cursor: default; }
.mo-key-blank { visibility: hidden; }
.mo-key-del { background: transparent; font-size: 22px; color: var(--ink-muted); }
.mo-pin-links { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; margin-top: 4px; font-size: 14px; line-height: 20px; font-weight: 600; }
.mo-link-muted { color: var(--ink-muted) !important; }
.mo-pin-done { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: var(--radius-full); background: var(--green-soft); color: var(--green); }
.mo-pin-opt { padding: 12px 14px; border-radius: var(--radius-md); background: var(--surface-sunken); }

/* ---- Read-only service details and "this is you" notes ------------------- */
.mo-ro b { display: block; font-size: 15px; line-height: 22px; color: var(--ink); }
.mo-ro span { display: block; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.mo-ro-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 20px; }
.mo-ro-row span { color: var(--ink-muted); }
.mo-ro-row b { color: var(--ink); font-variant-numeric: tabular-nums; }
.mo-ro-text { margin: 0; font-size: 15px; line-height: 22px; color: var(--ink); }
.mo-self-note { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-md); background: var(--blue-soft); color: var(--blue); }
.mo-self-note b { display: block; font-size: 14px; line-height: 20px; color: var(--ink); }
.mo-self-note span { display: block; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.mo-otp-wrap { display: flex; justify-content: center; }


/* ---- PIN screens fit every phone with no scrolling ----------------------
   The screen is always the full window height, so the keypad, gaps and header scale
   with the window height (dvh), so the whole screen fits from a 640px Android to a Pro Max. */
.mo-pin-screen .mo-pin-hero, .mo-pin-screen > .mo-hero { padding-top: calc(clamp(8px, 1.8dvh, 16px) + var(--safe-top)) !important; padding-bottom: clamp(46px, 7dvh, 64px) !important; }
.mo-pin-screen .mo-hero-title { margin-top: clamp(4px, 1.2dvh, 12px) !important; margin-bottom: 0; }
.mo-pin-screen .mo-pin-sheet {
  --key: clamp(50px, 7.2dvh, 72px);
  overflow: hidden !important; justify-content: flex-start;
  gap: clamp(6px, 1.5dvh, 16px) !important;
  padding-top: clamp(18px, 3.2dvh, 32px) !important;
  padding-bottom: calc(clamp(8px, 1.6dvh, 20px) + var(--safe-bottom)) !important;
}
.mo-pin-screen .mo-keypad { grid-template-columns: repeat(3, var(--key)); gap: clamp(6px, 1.3dvh, 14px) clamp(20px, 6vw, 28px); margin-top: 0; }
.mo-pin-screen .mo-key { width: var(--key); height: var(--key); font-size: calc(var(--key) * .36); }
.mo-pin-screen .mo-pin-links { gap: clamp(4px, 1dvh, 12px); margin-top: 0; }
@media (max-height: 720px) {
  .mo-pin-phone, .mo-pin-screen .mo-steps { display: none; }
  .mo-pin-screen .mo-hero-title { font-size: 22px; line-height: 28px; }
  .mo-pin-screen .mo-hero > .mo-hero-sub { font-size: 13px; line-height: 18px; }
}
@media (max-height: 660px) {
  .mo-pin-screen .mo-pin-sheet { --key: 48px; }
  .mo-pin-screen .mo-pin-prompt { font-size: 14px; line-height: 20px; }
  .mo-pin-screen .mo-pin-sheet .mo-btn { min-height: 44px; height: 44px; }
}
/* The PIN screen is exactly one window tall and never scrolls. */
.app-screen > .mo-pin-screen { flex: none; height: 100dvh; max-height: 100dvh; min-height: 0; }


/* Hero headers clear the notch on installed phones. */
.app-screen .mo-hero { padding-top: calc(var(--space-16) + var(--safe-top)); }

/* ===== Listing tap cards, Save button and toast (canvas) ===== */
/* ---- Listing cards: the whole card opens the provider's profile ---------- */
.mo-lc-tap { display: block; border-radius: var(--radius-lg); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .12s ease; touch-action: pan-y; }
.mo-lc-tap .mo-lc { transition: box-shadow .15s ease, border-color .15s ease; }
.mo-lc-tap:hover .mo-lc { border-color: var(--blue); }
.mo-lc-tap:active { transform: scale(.985); }
.mo-lc-tap:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ---- Save on a provider profile: the bookmark fills when saved ---------- */
.mo-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mo-save-btn { position: relative; transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
.mo-save-btn svg { transition: fill .18s ease, transform .18s ease; }
.mo-save-btn.on { background: var(--blue) !important; border-color: var(--blue) !important; color: var(--on-blue) !important; }
.mo-save-btn.on svg { fill: currentColor; animation: mo-save-pop .32s ease-out; }
@keyframes mo-save-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
.mo-toast { position: absolute; left: 50%; bottom: calc(96px + var(--safe-bottom)); transform: translateX(-50%); z-index: 15; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--radius-full); background: var(--ink); color: var(--surface-raised); font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap; box-shadow: 0 8px 24px #0d1b2a40; animation: mo-toast-in .22s ease-out; pointer-events: none; }
.mo-toast svg { fill: currentColor; }
@keyframes mo-toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* In the installed app the toast floats over the screen, not the page. */
.app .mo-toast { position: fixed; }

/* ===== PC layout (1024px and up): left menu, list with a detail panel. Phones and tablets are unchanged. ===== */
.app-sidebar, .app-detail { display: none; }
.app-searchrow { display: block; }
@media (min-width: 1024px) {
  .app-narrow-only { display: none; }
  .app-sidebar { display: flex; flex-direction: column; gap: 2px; position: fixed; z-index: 35; top: 0; bottom: 0; left: 0; width: 264px; box-sizing: border-box; padding: 20px 14px 24px; overflow-y: auto; background: var(--surface-raised); border-right: 1px solid var(--line); }
  .app-side-logo { padding: 4px 10px 18px; }
  .app-side-eyebrow { margin: 16px 12px 6px; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
  .app-side-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 8px 12px; box-sizing: border-box; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; }
  .app-side-item:hover { background: var(--surface); }
  .app-side-item:focus-visible { outline: none; box-shadow: var(--focus-ring); }
  .app-side-item.on { background: var(--blue-soft); color: var(--blue); }
  .app-side-item > .mo-icon { color: var(--ink-muted); flex: none; }
  .app-side-item.on > .mo-icon { color: var(--blue); }
  .app-side-art { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none; }
  .app-side-badge { margin-left: auto; min-width: 20px; padding: 0 6px; box-sizing: border-box; border-radius: var(--radius-full); background: var(--red); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
  .app-side-cta { margin: 14px 0; }

  .app-side .app-screen { margin-left: 264px; }
  .app-side .app-nav { display: none; }
  .app-has-nav.app-side .app-screen { padding-bottom: 0; }
  .app-side .app-offline { margin-left: 264px; }
  .app-side .app-screen:has(.app-sheet-list) { --app-col: 1120px; }
  .app-side .app-screen:has(.app-split) { --app-col: 1120px; }

  /* notifications drop in at the top right, as on the reference */
  .app-banner { left: auto; right: 24px; top: 20px; width: 400px; transform: none; }

  /* list header: icon and title, then search with the filters beside it */
  .app-searchrow { display: flex; align-items: flex-start; gap: 16px; }
  .app-searchrow .app-searchbox { flex: 1 1 auto; min-width: 0; }
  .app-searchrow .mo-filters { flex: none; width: 480px; margin-top: 16px; }

  .app-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
  .app-split .app-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-card-sel > .mo-lc { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue), var(--shadow-card); }

  .app-detail { display: flex; flex-direction: column; align-items: center; gap: 12px; position: sticky; top: 24px; padding: 28px 24px; box-sizing: border-box; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); text-align: center; }
  .app-detail h2 { margin: 4px 0 0; font: var(--text-heading); color: var(--ink); text-wrap: balance; }
  .app-detail-sub { margin: -6px 0 0; font: var(--text-caption); color: var(--ink-muted); }
  .app-detail-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .app-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--radius-full); background: var(--surface); color: var(--ink); font-size: 13px; line-height: 18px; font-weight: 700; }
  .app-tag-green { background: var(--green-soft); color: var(--green); }
  .app-tag-red { background: var(--red-soft); color: var(--red); }
  .app-detail > .mo-btn { margin: 0; }
  .app-detail-rate { width: 100%; padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .app-detail-k { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink); }
  .app-detail-hint { margin: 0; font: var(--text-caption); color: var(--ink-muted); }
}
@media (min-width: 1440px) { .app-searchrow .mo-filters { width: 540px; } .app-split { grid-template-columns: minmax(0, 1fr) 340px; } }

/* ===== Blue tick, bigger ad, plan payment, waiting-for-approval ===== */
.mo-tick { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 6px; vertical-align: -2px; border-radius: 50%; background: #1d9bf0; color: #fff; flex: none; }
.mo-tick .mo-icon { stroke-width: 3; }
.mo-lc-name .mo-tick { width: 16px; height: 16px; vertical-align: -1px; }
.mo-hero-title .mo-tick { width: 24px; height: 24px; margin-left: 8px; vertical-align: -2px; }
.mo-hero-title .mo-tick .mo-icon { width: 15px; height: 15px; }

.mo-ad-card { padding: var(--space-24); gap: var(--space-16); min-height: 168px; }
.mo-ad-text { gap: var(--space-8); }
.mo-ad-text b { font-size: 22px; line-height: 28px; text-wrap: balance; }
.mo-ad-text span { font-size: 15px; line-height: 22px; }
.mo-ad-text .mo-btn { margin-top: var(--space-8); }
.mo-ad-card > .mo-art { flex: none; padding: 12px; box-sizing: content-box; background: var(--surface-raised); border-radius: 50%; }

.app-secure { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-full); background: #ffffff26; color: var(--on-hero); font-size: 13px; line-height: 16px; font-weight: 700; }
.app-plan { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--surface-raised); border: 1.5px solid var(--blue); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.app-plan-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.app-plan-top h2 { margin: 2px 0 0; font: var(--text-heading); color: var(--ink); }
.app-plan-eyebrow { margin: 0; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.app-plan-off { flex: none; padding: 4px 12px; border-radius: var(--radius-full); background: linear-gradient(100deg, var(--danger-start), var(--danger-end)); color: var(--on-danger); font-size: 14px; line-height: 20px; font-weight: 800; }
.app-plan-price { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.app-plan-price b { font-size: 40px; line-height: 44px; font-weight: 800; color: var(--ink); }
.app-plan-price s { font-size: 20px; color: var(--ink-muted); }
.app-plan-price span { font-size: 15px; color: var(--ink-muted); }
.app-plan-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.app-plan-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; line-height: 22px; color: var(--ink); }
.app-plan-list .mo-icon { color: var(--green); flex: none; }
.app-plan-sum { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.app-plan-sum p { display: flex; justify-content: space-between; margin: 0; font-size: 15px; line-height: 22px; color: var(--ink); }
.app-plan-sum b { font-variant-numeric: tabular-nums; }
.app-plan-disc { color: var(--green); }
.app-plan-total { font-size: 17px; font-weight: 800; }
.app-wallets { display: flex; flex-direction: column; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.app-wallet { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 16px; box-sizing: border-box; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.app-wallet:last-child { border-bottom: 0; }
.app-wallet:focus-visible { outline: none; box-shadow: inset var(--focus-ring); }
.app-wallet.on { background: var(--blue-soft); }
.app-wallet-logo { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; flex: none; padding: 3px; box-sizing: border-box; background: #ffffff; border: 1px solid var(--line); border-radius: var(--radius-md); font-size: 12px; font-weight: 700; color: #334155; }
.app-wallet-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.app-wallet-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-wallet-text b { font-size: 16px; line-height: 22px; }
.app-wallet-text span { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.app-wallet-dot { width: 22px; height: 22px; flex: none; box-sizing: border-box; border: 2px solid var(--line-strong); border-radius: 50%; }
.app-wallet.on .app-wallet-dot { border: 7px solid var(--blue); }
.app-pending { display: flex; flex-direction: column; gap: 16px; padding: 20px; background: var(--surface-raised); }
