/*
 * MANBOKJA unified UX — source integration review v1
 * 2026-11-06. This file is scoped to existing UI and is intentionally additive.
 * Production main and data contracts are unchanged.
 */
:root {
  --mbux-control-min: 44px;
  --mbux-primary: var(--mb-brand, #34795b);
  --mbux-paper: var(--mb-paper, #f8f7f2);
  --mbux-surface: var(--mb-surface, #fff);
  --mbux-ink: var(--mb-ink, #26372f);
  --mbux-line: var(--mb-line, #dce5dc);
  --mbux-muted: #64746b;
}

/* All enhancements are opt-in: legacy controls remain available if JS fails. */
#screen-pet-registration {
  color: var(--mbux-ink);
}
#screen-pet-registration .mb-registration-panel {
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
  color: var(--mbux-ink);
}
#screen-pet-registration .mb-registration-heading {
  background: var(--mbux-surface);
  border: 1px solid var(--mbux-line);
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 14px;
}
#screen-pet-registration .mb-registration-heading > div:first-child > span:first-child {
  background: var(--mbux-primary);
}
#screen-pet-registration .mb-registration-heading > div:first-child > span:last-child {
  color: var(--mbux-ink);
  font-weight: 700; font-size: 15px; line-height: 1.4;
  letter-spacing: 0;
}
#screen-pet-registration #petRegStepIndicator {
  color: var(--mbux-primary);
  background: var(--mb-brand-soft);
  border: 1px solid var(--mb-line);
  font-weight: 800; font-size: 14px; line-height: 1.2;
  padding: 7px 11px;
}
#screen-pet-registration .mbux-step-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--mbux-muted);
}
#screen-pet-registration #petRegProgressBar {
  background: var(--mbux-primary);
}
#screen-pet-registration .mb-registration-panel > .w-full.bg-slate-800 {
  height: 4px;
  background: #e3eae4;
  margin: 0 0 18px;
}
#screen-pet-registration .mb-registration-step {
  row-gap: 16px;
}
#screen-pet-registration .mb-workflow-lead h2 {
  color: var(--mbux-ink);
  font-size: clamp(21px, 2.15vw, 28px);
  line-height: 1.35;
  letter-spacing: -.03em;
}
#screen-pet-registration .mb-registration-fields {
  border: 1px solid var(--mbux-line);
  background: var(--mbux-surface);
  border-radius: 18px;
  padding: clamp(16px, 2vw, 24px);
  box-shadow: 0 4px 16px rgba(31, 66, 45, .04);
}
#screen-pet-registration .mb-registration-fields label,
#screen-pet-edit #editPetForm label {
  color: var(--mbux-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}
#screen-pet-registration .mb-registration-fields input:not([type="file"]):not([type="hidden"]),
#screen-pet-registration .mb-registration-fields select {
  box-sizing: border-box;
  min-height: 48px;
  font-size: 16px;
  color: var(--mbux-ink);
  background: var(--mbux-surface);
  border: 1px solid #c8d6cc;
  border-radius: 12px;
}
#screen-pet-registration .mb-registration-fields input:focus-visible,
#screen-pet-registration .mb-registration-fields select:focus-visible {
  outline: 3px solid #b8e2c6;
  outline-offset: 2px;
  border-color: var(--mbux-primary);
}
#screen-pet-registration .mb-registration-step > .mb-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  border-color: var(--mbux-line);
  padding: 10px 0 0;
}
#screen-pet-registration .mb-registration-step > .mb-actions button {
  min-width: 108px;
  min-height: var(--mbux-control-min);
  padding: 10px 16px;
  font-size: 15px;
  border-radius: 12px;
  box-shadow: none;
}
#screen-pet-registration .mb-registration-step > .mb-actions button:first-child {
  background: transparent;
  color: var(--mbux-muted);
  min-width: 80px;
  border: 1px solid transparent;
}
#screen-pet-registration .mb-registration-step > .mb-actions button:last-child {
  background: var(--mbux-primary);
  color: white;
  border: 1px solid var(--mbux-primary);
}
#screen-pet-registration #newPetRegistrationNotice:not(.hidden) {
  grid-column: 1 / -1;
  background: #eff7f0;
  color: #2c654a;
  border: 1px solid #d7e8db;
  border-radius: 12px;
  font-weight: 500; font-size: 14px; line-height: 1.6;
}
#screen-pet-registration #petRegistrationPhotoHint,
#screen-pet-registration #inputPetBreedNotice,
#screen-pet-registration .mb-registration-fields .text-slate-400 {
  color: var(--mbux-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Accessible segmented controls keep the existing select element as data source. */
.mbux-choice-row {
  display: grid;
  grid-template-columns: repeat(var(--mbux-choices, 2), minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}
.mbux-choice-row[data-for="inputPetAgeMode"],
.mbux-choice-row[data-for="editPetAgeMode"] {
  grid-template-columns: 1fr;
}
.mbux-choice-row button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 48px;
  padding: 8px 10px;
  background: #f7faf8;
  color: var(--mbux-ink);
  border: 1px solid #d2dfd6;
  border-radius: 12px;
  font-weight: 700; font-size: 15px; line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.mbux-choice-row button[aria-pressed="true"] {
  background: #e5f2e9;
  border: 2px solid var(--mbux-primary);
  color: #205f41;
}
.mbux-choice-row button:focus-visible,
.mbux-photo-slot:focus-visible,
.mbux-photo-remove:focus-visible {
  outline: 3px solid #a7dfbd;
  outline-offset: 2px;
}
#screen-pet-registration .mb-registration-fields select.mbux-legacy-control,
#screen-pet-edit #editPetForm select.mbux-legacy-control {
  display: none;
  position: absolute;
  height: 1px;
  width: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#screen-pet-registration .mbux-legacy-photo-row,
#screen-pet-registration #addPetPhotoPreview.mbux-legacy-photo-preview,
#screen-pet-edit .mbux-legacy-photo-row,
#screen-pet-edit #editPetPhotoPreview.mbux-legacy-photo-preview {
  display: none;
}
.mbux-photo-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 8px 0;
}
.mbux-photo-cell {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
}
.mbux-photo-slot {
  width: 100%;
  height: 100%;
  min-height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 4px;
  border: 1px dashed #b5cbbd;
  border-radius: 14px;
  background: #f5faf6;
  color: var(--mbux-primary);
  font-weight: 700; font-size: 13px; line-height: 1.35;
  cursor: pointer;
  overflow: hidden;
}
.mbux-photo-slot.has-photo {
  padding: 0;
  border: 1px solid var(--mbux-line);
  background: #e3ece5;
}
.mbux-photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mbux-photo-slot .mbux-photo-plus {
  font-size: 26px;
  line-height: 1;
}
.mbux-photo-label {
  position: absolute;
  bottom: 5px;
  left: 5px;
  padding: 3px 6px;
  border-radius: 7px;
  color: #fff;
  background: rgba(30, 65, 44, .88);
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
}
.mbux-photo-remove {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.mbux-photo-remove span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0 2px auto auto;
  border-radius: 50%;
  background: rgba(28, 44, 35, .9);
  color: white;
  font-weight: 800; font-size: 18px; line-height: 1;
}
#screen-pet-registration .mb-registration-fields .mbux-choice-row,
#screen-pet-edit .mbux-choice-row {
  color: var(--mbux-ink);
}

/* Shared, bounded improvements for the other user journeys. */
#screen-quiz :is(#quizOptAText, #quizOptBText) { font-size: 16px; line-height: 1.65; }
#screen-result .mb-report-overview :is(p, li) { line-height: 1.65; }
#screen-home .mb-page-heading h1,
#screen-community .mb-page-heading h1 { line-height: 1.35; }
#screen-community :is(button, a):focus-visible,
#screen-home :is(button, a):focus-visible,
#screen-result :is(button, a):focus-visible {
  outline: 3px solid #9ad7ad;
  outline-offset: 2px;
}
@media (min-width: 1024px) {
  #screen-pet-registration .mb-registration-step:not(.hidden) {
    grid-template-columns: minmax(230px, .7fr) minmax(440px, 1.3fr);
    column-gap: clamp(20px, 4vw, 50px);
  }
  #screen-pet-registration .mb-registration-step > .mb-actions {
    grid-column: 2;
  }
}
@media (max-width: 767px) {
  #appMain > #screen-pet-registration {
    width: 100%;
    margin-inline: auto;
  }
  #screen-pet-registration .mb-registration-panel {
    padding: 0;
  }
  #screen-pet-registration .mb-registration-heading {
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
  }
  #screen-pet-registration .mb-registration-heading > div:first-child > span:last-child {
    font-size: 14px;
  }
  #screen-pet-registration .mb-registration-step:not(.hidden) {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  #screen-pet-registration .mb-registration-step > .mb-actions {
    grid-column: 1;
    justify-content: space-between;
    margin-top: 0;
  }
  #screen-pet-registration .mb-registration-fields {
    padding: 14px;
    border-radius: 16px;
  }
  #screen-pet-registration .mb-workflow-lead h2 {
    font-size: 21px;
  }
  #screen-pet-registration .mb-registration-step > .mb-actions button {
    width: auto;
    flex: 0 0 auto;
    min-width: 100px;
    font-size: 15px;
  }
  #screen-pet-registration .mb-registration-step > .mb-actions button:first-child {
    min-width: 72px;
  }
  #screen-pet-registration .mbux-choice-row[data-for="inputPetGender"],
  #screen-pet-registration .mbux-choice-row[data-for="inputPetNeuterStatus"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #screen-pet-registration .mbux-choice-row[data-for="inputPetGender"] button[data-value="unknown"],
  #screen-pet-registration .mbux-choice-row[data-for="inputPetNeuterStatus"] button[data-value="unknown"] {
    grid-column: 1 / -1;
    white-space: nowrap;
    overflow-wrap: normal;
  }
  .mbux-photo-slots { gap: 8px; }
}
@media (max-width: 350px) {
  #screen-pet-registration .mb-registration-fields { padding: 12px; }
  .mbux-photo-slots { gap: 6px; }
  .mbux-photo-slot { font-size: 12px; }
}



/* Shared component system across registration, assessment, reports, match hub,
   feed and My. No intro/shell/export-artwork selectors and no visibility overrides. */
:root {
  --mbux-radius: 18px;
  --mbux-space: clamp(1rem, 2vw, 1.5rem);
  --mbux-shadow: 0 4px 18px rgba(31, 66, 45, .045);
}
.mbux-workspace { min-width: 0; color: var(--mbux-ink); font-size: 1rem; line-height: 1.7; }
.mbux-workspace .mb-page-header { gap: 1rem; padding-bottom: var(--mbux-space); border-color: var(--mbux-line); }
.mbux-workspace .mb-page-heading :is(h1,h2), .mbux-workspace h1.mb-page-heading { font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.35; letter-spacing: -.03em; }
.mbux-workspace .mb-page-heading p { font-size: 1rem; line-height: 1.7; color: var(--mbux-muted); }
.mbux-workspace .mbux-surface {
  min-width: 0; padding: var(--mbux-space); background: var(--mbux-surface);
  border: 1px solid var(--mbux-line); border-radius: var(--mbux-radius); box-shadow: var(--mbux-shadow);
}
.mbux-workspace .mb-dialog-panel { padding: var(--mbux-space); border: 1px solid var(--mbux-line); border-radius: var(--mbux-radius); background: var(--mbux-surface); }
.mbux-workspace .mb-hub-choices .primary-hub-card.mbux-surface { padding: var(--mbux-space); border: 1px solid var(--mbux-line); border-radius: var(--mbux-radius); background: var(--mbux-surface); box-shadow: var(--mbux-shadow); }
.mbux-workspace :is(.mbux-surface, .mb-registration-fields) > :first-child { margin-top: 0; }
.mbux-workspace :is(input:not([type="hidden"]):not([type="file"]):not([type="checkbox"]):not([type="radio"]),select,textarea):not(:where([id$="CaptureArea"] *,#sharePreviewCard *,#relationshipPreviewCard *)) { min-width: 0; max-width: 100%; min-height: 48px; border-radius: 12px; font-size: 16px; }
.mbux-workspace :is(input,select,textarea,button):focus-visible { outline: 3px solid #a7dfbd; outline-offset: 3px; }
.mbux-workspace :is(.mb-back,.mb-tabs > button) { min-height: 44px; border-radius: 12px; line-height: 1.45; }
.mbux-workspace .mb-tabs { gap: .5rem; padding-block: .25rem .625rem; }
.mbux-workspace .mb-tabs > button { padding: .625rem 1rem; }
.mbux-workspace .mb-tabs > button:is([aria-selected="true"],[aria-current="page"],.active) { background: #e5f2e9; color: #205f41; }
.mbux-workspace .mbux-primary-action { min-height: 48px; padding: .75rem 1.25rem; border: 1px solid var(--mbux-primary); border-radius: 12px; background: var(--mbux-primary); color: white; box-shadow: none; font-size: 1rem; font-weight: 750; }
.mbux-workspace .mbux-primary-action:hover:not(:disabled) { background: var(--mb-brand-hover); }
.mbux-workspace .mbux-primary-action:disabled { opacity: .5; cursor: not-allowed; }
.mbux-workspace .primary-hub-card { gap: .75rem; text-align: start; }
.mbux-workspace .primary-hub-card strong { font-size: 1.125rem; line-height: 1.45; color: var(--mbux-ink); }
.mbux-workspace .primary-hub-card span { font-size: 1rem; line-height: 1.7; color: var(--mbux-muted); }
.mbux-workspace [data-quiz-answer] { min-height: 96px; padding: var(--mbux-space); border: 1px solid var(--mbux-line); border-radius: var(--mbux-radius); background: var(--mbux-surface); color: var(--mbux-ink); box-shadow: var(--mbux-shadow); }
.mbux-workspace [data-quiz-answer]:hover:not(:disabled) { background: #eff7f0; border-color: var(--mbux-primary); }
.mbux-workspace [data-quiz-answer] p { color: var(--mbux-ink); font-size: 1rem; line-height: 1.7; }
.mbux-workspace .mb-assessment-progress { margin-bottom: var(--mbux-space); }
.mbux-workspace .mb-report-overview { gap: 1rem; padding-bottom: var(--mbux-space); border-color: var(--mbux-line); }
.mbux-workspace .mb-report-overview :is(h2,h3) { font-size: clamp(1.35rem, 2.6vw, 1.875rem); line-height: 1.45; }
.mbux-workspace :is(.mb-report-reading,.mb-comparison) { gap: 1rem; }
.mbux-workspace .mb-comparison > * { padding: 1rem; border: 1px solid var(--mbux-line); border-radius: 14px; background: #f7faf8; }
.mbux-workspace .mb-axis-list > li { padding: 1rem; border: 1px solid var(--mbux-line); border-radius: 14px; background: #f7faf8; }
.mbux-workspace .mb-report-reading :is(p,li), .mbux-workspace #personalityResultSummary { max-width: 70ch; font-size: 1rem; line-height: 1.85; }
.mbux-workspace .community-card { margin-block: 0 1rem; padding: var(--mbux-space); border: 1px solid var(--mbux-line); border-radius: var(--mbux-radius); background: var(--mbux-surface); box-shadow: var(--mbux-shadow); }
.mbux-workspace .community-card :is(p,li) { line-height: 1.75; overflow-wrap: anywhere; }
.mbux-workspace .mb-state { border-radius: var(--mbux-radius); }
.mbux-workspace .mb-pet-switcher { min-width: 0; }
.mbux-workspace .mb-records-content { margin-top: 1rem; }
.mbux-workspace p.mbux-help { margin: .5rem 0; color: var(--mbux-muted); font-size: .875rem; line-height: 1.6; }
.mbux-choice-row[hidden], .mbux-choice-row button[hidden], .mbux-photo-slots[hidden], .mbux-photo-remove[hidden], .mbux-photo-label[hidden] { display: none; }
.mbux-choice-row button:disabled, .mbux-photo-slot:disabled, .mbux-photo-remove:disabled { opacity: .5; cursor: not-allowed; }
.mbux-photo-slot:focus-visible, .mbux-photo-remove:focus-visible { outline-offset: 2px; }
@media (max-width: 767px) {
  .mbux-workspace .mb-page-heading :is(h1,h2) { font-size: 1.5rem; }
  .mbux-workspace .mbux-surface { padding: 1rem; border-radius: 16px; }
  .mbux-workspace .mb-actions { gap: .625rem; }
  .mbux-workspace .mb-report-overview { align-items: stretch; }
  .mbux-workspace .community-card { padding: 1rem; border-radius: 16px; }
}

/* MANBOKJA V2: full-bleed 9:16 viral story poster (safe for IG top/bottom HUD & pet face) */
.mb-share-story {
  box-sizing:border-box; isolation:isolate; position:relative; overflow:hidden;
  width:360px; height:640px; border-radius:24px;
  color:#ffffff; text-align:center; background:#141b17;
  font-family:system-ui,-apple-system,"Malgun Gothic",sans-serif;
}
.mb-share-story * {box-sizing:border-box;}
.mb-share-story--preview {margin:0 auto; width:min(360px,100%); height:auto; aspect-ratio:9/16; box-shadow:0 18px 44px #11181340;}
.mb-share-story--capture {width:360px; height:640px; border-radius:0;}
.mb-share-story-offscreen {position:absolute; left:-9999px; top:0; width:360px; height:640px; overflow:hidden;}
.mb-share-story-photo {
  position:absolute; inset:0; width:100%; height:100%; margin:0; border-radius:0;
  overflow:hidden; background:#1c2620; z-index:1;
}
.mb-share-story-photo-img {
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; object-position:center; display:block;
}
.mb-share-story-photo-img.hidden {display:none;}
.mb-share-story-illustration {position:absolute; inset:0; width:100%; height:100%; display:block;}
.mb-share-story-illustration.hidden {display:none;}
.mb-share-story-illustration svg {width:100%; height:100%; display:block;}
.mb-share-story-overlay {
  position:absolute; inset:0; z-index:2; width:100%; height:100%;
  background:linear-gradient(180deg, rgba(12,18,15,0.84) 0%, rgba(12,18,15,0.56) 17%, rgba(12,18,15,0) 31%, rgba(10,16,13,0) 60%, rgba(10,16,13,0.6) 75%, rgba(10,16,13,0.94) 100%);
  display:flex; flex-direction:column; justify-content:space-between; pointer-events:none;
}
.mb-share-story-top {
  padding:60px 22px 46px;
  display:flex; flex-direction:column; align-items:center;
}
#sharePreviewCard .mb-share-story-brand,
#shareCardCaptureArea .mb-share-story-brand {
  display:inline-flex; align-items:center; justify-content:center; gap:5px;
  padding:4px 11px; border-radius:999px;
  background:rgba(15,24,20,0.62); border:1px solid rgba(255,255,255,0.28);
  color:#ffffff; font-size:11px; font-weight:800; line-height:1.25;
}
#sharePreviewCard .mb-share-story-brand strong,
#shareCardCaptureArea .mb-share-story-brand strong {color:#ffffff; font-weight:900;}
#sharePreviewCard .mb-share-story-brand small,
#shareCardCaptureArea .mb-share-story-brand small {font-size:8.5px; letter-spacing:0.1em; font-weight:700; color:#a7f3d0; margin-left:2px;}
#sharePreviewCard .mb-share-story-mark,
#shareCardCaptureArea .mb-share-story-mark {display:inline-flex; align-items:center; color:#6ee7b7; line-height:1;}
.mb-share-story-headline {margin-top:9px; width:100%; display:flex; flex-direction:column; align-items:center;}
.mb-share-story-kicker {display:none;}
#sharePreviewCard .mb-share-story-headline h3,
#shareCardCaptureArea .mb-share-story-headline h3 {
  margin:0; width:100%; font-weight:900; font-size:21.5px; line-height:1.32;
  letter-spacing:-0.03em; color:#ffffff; word-break:keep-all; overflow-wrap:anywhere;
  text-shadow:0 2px 12px rgba(0,0,0,0.72), 0 1px 3px rgba(0,0,0,0.85);
}
.mb-share-story-bottom {
  padding:56px 22px 72px;
  display:flex; flex-direction:column; align-items:center; gap:6px;
}
.mb-share-story-identity {
  display:flex; align-items:center; justify-content:center; gap:6px;
  min-height:24px; padding:1px 0; flex-wrap:wrap;
}
#sharePreviewCard .mb-share-story-identity strong,
#shareCardCaptureArea .mb-share-story-identity strong {
  font-size:15px; font-weight:900; line-height:1.4; padding:1px 0;
  color:#a7f3d0; white-space:nowrap; text-shadow:0 1px 6px rgba(0,0,0,0.65);
}
.mb-share-story-identity .mb-share-story-species {
  display:inline-flex; align-items:center; font-size:11.5px; font-weight:700;
  line-height:1.3; color:rgba(255,255,255,0.86); padding:0;
}
.mb-share-story-identity .mb-share-story-code,
.mb-share-story-trait,
.mb-share-story-summary,
.mb-share-story-tags {display:none;}
.mb-share-story-reveal {
  width:100%; display:flex; flex-direction:column; align-items:center; padding:0;
}
#sharePreviewCard .mb-share-story-turn,
#shareCardCaptureArea .mb-share-story-turn {
  margin:0; font-weight:800; font-size:15px; line-height:1.46;
  color:#ffffff; word-break:keep-all; overflow-wrap:anywhere;
  text-shadow:0 2px 10px rgba(0,0,0,0.68);
}
.mb-share-story-footer {
  width:100%; margin-top:8px; padding-top:9px;
  border-top:1px solid rgba(255,255,255,0.22);
  display:flex; align-items:center; justify-content:center; gap:7px; flex-wrap:wrap;
  line-height:1.3;
}
#sharePreviewCard .mb-share-story-footer .mb-share-story-cta,
#shareCardCaptureArea .mb-share-story-footer .mb-share-story-cta {font-size:10.5px; font-weight:700; color:rgba(241,245,249,0.9);}
#sharePreviewCard .mb-share-story-footer strong,
#shareCardCaptureArea .mb-share-story-footer strong {font-size:13.5px; font-weight:900; letter-spacing:-0.01em; color:#6ee7b7;}
.mb-share-story-date {font-size:9px; font-weight:700; color:rgba(255,255,255,0.55); margin-left:2px;}
@media(max-width:420px){
  .mb-share-story--preview {border-radius:18px;}
  #sharePreviewCard .mb-share-story-top {padding:32px 14px 24px;}
  #sharePreviewCard .mb-share-story-headline {margin-top:6px;}
  #sharePreviewCard .mb-share-story-headline h3 {font-size:clamp(16px,4.8vw,20.5px); line-height:1.28;}
  #sharePreviewCard .mb-share-story-bottom {padding:28px 14px 36px; gap:4px;}
  #sharePreviewCard .mb-share-story-identity strong {font-size:13.5px;}
  #sharePreviewCard .mb-share-story-turn {font-size:clamp(12px,3.5vw,14.5px); line-height:1.38;}
  #sharePreviewCard .mb-share-story-footer {margin-top:5px; padding-top:6px; gap:5px;}
  #sharePreviewCard .mb-share-story-footer .mb-share-story-cta {font-size:9.5px;}
  #sharePreviewCard .mb-share-story-footer strong {font-size:12px;}
}


/* Keep the entire poster visible above mobile navigation at normal phone heights.
   Small-height phones keep scrolling instead of shrinking text to illegibility. */
@media (max-width: 420px) and (min-height: 760px) {
  #sharePreviewCard.mb-share-story--preview {
    width: min(360px, 100%, calc((100dvh - 328px) * 9 / 16));
  }
}
@media (max-width: 420px) {
  #screen-share-create .mb-share-workspace {
    padding-bottom: max(96px, env(safe-area-inset-bottom, 0px));
  }
}
