/* Page composition only. Hidden/state classes are owned by existing feature JS. */
#appMain > .mb-page { width: 100%; margin: clamp(1rem,3vh,2.5rem) auto; padding: 0; }
#appMain > .mb-page--hub { max-width: var(--mb-workspace); }
#appMain > .mb-page--workspace { max-width: var(--mb-workspace); }
#appMain > .mb-page--dashboard { max-width: 1240px; }
#appMain > .mb-page--feed { max-width: 1080px; }
#appMain > .mb-page--report { max-width: var(--mb-report); }
#appMain > .mb-page--reading { max-width: 1140px; }
#appMain > .mb-page--editorial { max-width: 1140px; }
#appMain > .mb-page--form { max-width: var(--mb-form); }
#appMain > :is(#screen-supporter, #screen-partnership) { max-width: 1140px; }
#appMain > .mb-page--assessment { max-width: 900px; }
#appMain > .mb-page--share { max-width: 920px; }
#appMain > .mb-page--workbench, #appMain > #screen-personality-history { max-width: var(--mb-page-wide); }
.mb-page--form > :where(form), .mb-page--assessment > :where(div) { border-radius: var(--mb-radius); }
.mb-page--report > :where(div) { margin-bottom: 1.5rem; }
.mb-page--reading :where(h2) { margin-top: 2rem; }
.mb-page--reading :where(p,li) { line-height: 1.9; }
.mb-page--dashboard[data-home-mode="my"] :where(#homeCompatibilityCard,#homeActionCardsGrid,#homeDailyTipCard,#homeCommunityBannerCard,#homeAccountSubText) { display: none; }
.mb-page--dashboard[data-home-mode="home"] :where(#homeAccountHeader,#homeRecentRecordsCard,#homePassesWalletCard,#homeSettingsSection) { display: none; }
.mb-page--dashboard :where(#homePetOverviewCard,#homeRecentRecordsCard,#homePassesWalletCard,#homeSettingsSection) { padding: clamp(1.25rem,2.5vw,2rem); }
.mb-page--dashboard :where(#homeDashboardCards):not(.hidden) { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 1.5rem; }
.mb-page--dashboard :where(#homeRecentRecordsCard) { grid-column: 1 / -1; min-width: 0; max-width: 100%; }
.mb-page--feed :where(#communityFilterBar) { padding: 1.25rem; background: white; border: 1px solid var(--mb-line); border-radius: var(--mb-radius); }
.mb-page--feed :where(#communityFeedList):not(.hidden) { display: grid; gap: 0; }
.mb-page--feed .community-card { padding: 1.75rem .25rem; border: 0; border-bottom: 1px solid var(--mb-line); border-radius: 0; box-shadow: none; background: transparent; }
.mb-page--feed :where(.community-card > div:last-child) { flex-wrap: wrap; gap: .75rem; }
.mb-page--editorial :where(.brand-intro-lockup) { color: var(--mb-brand); letter-spacing: .12em; font-weight: 800; margin: 2.5rem 0; }
.mb-page--editorial :where(.brand-intro-section) { padding: clamp(2rem,5vw,4rem) 0; border-bottom: 1px solid var(--mb-line); }
.mb-page--editorial :where(.brand-intro-title) { font-size: clamp(1.5rem,3vw,2.4rem); line-height: 1.4; font-weight: 800; margin-bottom: 1.5rem; }
.mb-page--editorial :where(.brand-intro-body) { max-width: 64ch; color: var(--mb-muted); font-size: 1.05rem; line-height: 1.9; }
.mb-page--editorial :where(.brand-intro-section-1) { padding-top: 1rem; }
.mb-page--editorial :where(.brand-intro-section-1 .brand-intro-title) { font-size: clamp(2rem,4vw,3.25rem); max-width: 28ch; }
.mb-page--editorial :where(.brand-journey,.brand-detail-grid) { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2rem; margin-top: 2rem; }
.mb-page--editorial :where(.brand-detail-grid) { grid-template-columns: repeat(2,minmax(0,1fr)); }
.mb-page--editorial :where(.brand-journey-step,.brand-journey-heading,.brand-detail-item,.brand-detail-item strong) { display: block; }
.mb-page--editorial :where(.brand-journey-symbol) { display: block; font-size: 3rem; color: var(--mb-brand); }
.mb-page--editorial :where(.brand-journey-heading,.brand-detail-item strong) { color: var(--mb-ink); font-weight: 800; margin-bottom: .75rem; }
.mb-page--editorial :where(.brand-intro-section-7) { border: 0; text-align: center; }
.mb-page--editorial :where(.brand-intro-section-7 .brand-intro-body) { margin: auto; color: var(--mb-gold); font-size: clamp(1.6rem,3vw,2.5rem); }
.mb-page--editorial :where(.brand-intro-section-7 button) { margin-top: 2rem; }

/* Hubs lead with the next action, followed by existing alternative paths. */
.mb-ui .mb-hub-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; margin-top: 2rem; }
.mb-ui .mb-hub-choices > * { min-width: 0; min-height: 0; padding: 1.75rem; border: 0; border-top: 1px solid var(--mb-line); border-radius: 0; box-shadow: none; }
.mb-ui .mb-hub-choices > :first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); align-items: center; gap: 2rem; padding: clamp(1.75rem,4vw,3rem); border: 1px solid var(--mb-line); border-left: 5px solid var(--mb-mint); border-radius: var(--mb-radius); background: var(--mb-brand-soft); }
.mb-ui .mb-hub-choices > :first-child > strong { font-size: clamp(1.5rem,3vw,2.2rem); line-height: 1.35; }
.mb-ui .mb-hub-choices > :first-child > span { font-size: 1.05rem; line-height: 1.8; }
.mb-ui .mb-hub-choices > :first-child > button { max-width: 22rem; margin: 0; justify-self: end; }
.mb-ui .mb-hub-choices .primary-hub-card:not(:first-child) { gap: .75rem; background: transparent; }
.mb-ui .mb-hub-choices .primary-hub-card:hover { border-color: var(--mb-mint); background: var(--mb-brand-soft); }

/* Personal workspace: identity, pet, records, then wallet and account settings. */
.mb-page--dashboard:not(.hidden) { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; gap: 1.75rem; }
#appMain > .mb-page--dashboard > * { margin-block: 0; min-width: 0; }
.mb-page--dashboard > :where(.mb-account-header,.mb-pet-switcher,.mb-pet-summary,.mb-dashboard-main,#homeZeroPetCard) { grid-column: 1 / -1; }
.mb-page--dashboard .mb-account-header { padding: .5rem 0 1.5rem; border: 0; border-bottom: 1px solid var(--mb-line); border-radius: 0; background: transparent; box-shadow: none; }
.mb-page--dashboard .mb-account-header h2 { font-size: 1.5rem; }
.mb-page--dashboard .mb-pet-summary { border-width: 1px; background: var(--mb-surface); box-shadow: none; }
.mb-page--dashboard .mb-records-section { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; min-width: 0; max-width: 100%; }
.mb-page--dashboard .mb-records-section > :first-child { width: 100%; min-width: 0; }
.mb-page--dashboard .mb-records-section .mb-tabs { max-width: 100%; min-width: 0; }
.mb-page--dashboard .mb-records-section h3, .mb-page--dashboard .mb-records-section h4 { font-size: 1.2rem; }
.mb-page--dashboard .mb-records-content { margin-top: 1rem; }
.mb-page--dashboard .mb-wallet-section, .mb-page--dashboard .mb-settings-section { border-radius: 0; border-width: 1px 0 0; background: transparent; box-shadow: none; }
.mb-page--dashboard :where(#walletTotalCount) { font-size: 2rem; font-variant-numeric: tabular-nums; }

/* Assessment: one question, two readable choices, then navigation. */
.mb-page--assessment .mb-assessment-progress { margin-bottom: 2rem; }
.mb-page--assessment .mb-question-panel { padding: clamp(1.5rem,4vw,3rem); border: 1px solid var(--mb-line); box-shadow: none; }
.mb-page--assessment :where(#quizQuestionText) { max-width: 100%; font-size: clamp(1.2rem, 2.3vw, 1.75rem); line-height: 1.5; font-weight: 800; margin-block: .75rem 1.5rem; word-break: keep-all; }
.mb-page--assessment [data-quiz-answer] { display: flex; align-items: center; min-height: 88px; padding: 1.25rem; border-width: 1px; border-radius: 14px; box-shadow: none; transition: transform .18s, border-color .18s, background-color .18s; }
.mb-page--assessment [data-quiz-answer]:hover { border-color: var(--mb-mint); }
.mb-page--assessment [data-quiz-answer]:focus-visible { outline-offset: 4px; }
.mb-page--assessment :where(#quizOptAText,#quizOptBText) { font-size: 1rem; line-height: 1.75; }
.mb-page--form .mb-registration-heading { flex-wrap: wrap; gap: 1rem; }
.mb-page--form :where([id^="petRegStep"]) > :first-child h2 { line-height: 1.5; }

/* Reports separate identity and summary from the longer explanation. */
.mb-ui .mb-report { padding: 0; border: 0; background: transparent; box-shadow: none; }
.mb-ui .mb-report > :first-child { padding-bottom: 1.5rem; }
.mb-ui .mb-report > :nth-child(2) { padding: 1.5rem 1.75rem; border-left: 4px solid var(--mb-mint); background: var(--mb-brand-soft); }
.mb-ui .mb-report :where(#personalityResultSummary) { max-width: 66ch; line-height: 1.9; }
.mb-ui .mb-report-reading { padding-top: 1.25rem; }
.mb-ui .mb-report-reading > * { padding: 1.5rem 0; border: 0; border-top: 1px solid var(--mb-line); border-radius: 0; background: transparent; box-shadow: none; }
.mb-ui .mb-report-reading :is(p,li) { max-width: 70ch; font-size: 1rem; line-height: 1.9; }
.mb-ui .mb-comparison { gap: 1.5rem; }
.mb-ui .mb-comparison > * { padding: 1.25rem; border: 0; border-top: 2px solid var(--mb-line); border-radius: 0; background: transparent; }
.mb-ui .mb-score { padding: 1rem 1.5rem; border: 1px solid #ead9be; box-shadow: none; }
.mb-ui .mb-compatibility-report { border-width: 0; padding: 0; background: transparent; box-shadow: none; }
.mb-ui .mb-report-overview { padding-bottom: 1.75rem; }
.mb-ui .mb-registration-panel { box-shadow: none; border-width: 1px; }

/* Input and history remain distinct; long records use a reading measure. */
.mb-page--workspace .mb-workflow-body { overflow: visible; }
.mb-page--workspace #careModalNavTabs { flex-wrap: wrap; overflow: visible; }
.mb-page--workspace #carePetTraitBadgeContainer { min-width: 0; flex-wrap: wrap; }
.mb-page--workspace #carePetTraitBadge { white-space: normal; word-break: break-word; line-height: 1.4; }
.mb-page--workspace :where(#carePetAvatar) + div > :first-child { flex-wrap: wrap; gap: .35rem .5rem; }
.mb-ui .mb-entry-form { max-width: 820px; margin-inline: auto; }
.mb-ui .mb-entry-form :is(label,h3,h4) { line-height: 1.6; }
.mb-ui .mb-entry-form textarea { min-height: 10rem; font-size: 1rem; line-height: 1.85; resize: vertical; }
.mb-ui .mb-entry-detail { max-width: 900px; margin-inline: auto; }
.mb-ui .mb-entry-detail :is(p,[id="lifeDetailRawText"]) { line-height: 1.9; }
.mb-ui .mb-entry-detail :where([id^="careTimelineStage"]) { border-width: 0 0 0 2px; border-radius: 0; padding: 1.25rem 1.5rem; background: transparent; box-shadow: none; }
.mb-ui .mb-entry-detail > :first-child { flex-wrap: wrap; gap: .75rem; }
.mb-ui .mb-workflow-layout { max-width: none; margin-inline: 0; gap: 1.5rem; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
.mb-ui .mb-workflow-layout:not(.hidden) { display: grid; }
.mb-ui .mb-workflow-layout > * { min-width: 0; margin-block: 0; }
.mb-ui .mb-workflow-input { grid-template-columns: minmax(0,.65fr) minmax(0,1.35fr); }
.mb-ui .mb-workflow-lead { max-width: 38ch; }
.mb-ui .mb-workflow-lead :is(h2,h3) { font-size: var(--mb-copy-title,clamp(1.25rem,2vw,1.6rem)); line-height: 1.5; word-break: keep-all; }
.mb-ui .mb-workflow-fields { width: 100%; max-width: 720px; justify-self: end; }
.mb-ui .mb-workflow-footer { grid-column: 2; }
.mb-ui .mb-workspace-heading, .mb-ui .mb-workspace-actions { grid-column: 1 / -1; }
.mb-ui .mb-workflow-main { grid-column: 1; }
.mb-ui .mb-workflow-side { grid-column: 2; grid-row: 2 / span 2; }
.mb-ui .mb-workflow-layout :where(p,li) { line-height: 1.8; }
.mb-ui .mb-history-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.25rem; }
.mb-ui .mb-history-item { min-width: 0; display: flex; flex-direction: column; gap: .85rem; padding: 1.5rem; border-block-start: 2px solid var(--mb-line); }
.mb-ui .mb-history-item h2 { font-size: 1.25rem; font-weight: 800; line-height: 1.5; }
.mb-ui .mb-history-item p { max-width: 65ch; line-height: 1.8; overflow-wrap: anywhere; }
.mb-ui .mb-history-item > button { margin-top: auto; align-self: start; }
.mb-ui .mb-history-list > .mb-state { grid-column: 1 / -1; }
.mb-ui .mb-feed-tools > :first-child { flex-wrap: wrap; gap: 1rem; }
.mb-ui .mb-feed-tools select { max-width: 100%; }
.mb-ui .mb-personal-records > :first-child { box-shadow: none; }
.mb-ui .mb-personal-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); gap: 1rem; align-items: stretch; }
.mb-ui .mb-personal-card { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; padding: clamp(1.25rem,2.5vw,1.75rem); background: var(--mb-surface); border: 1px solid var(--mb-line); border-radius: var(--mb-radius); }
.mb-ui .mb-personal-card > header { display: flex; align-items: flex-start; gap: .75rem; }
.mb-ui .mb-personal-card > header > div:last-child { min-width: 0; }
.mb-ui .mb-personal-card h4 { margin: 0; font-size: 1.125rem; font-weight: 800; line-height: 1.5; word-break: keep-all; overflow-wrap: break-word; }
.mb-ui .mb-personal-card > header p { margin-top: .35rem; color: var(--mb-muted); font-size: .875rem; line-height: 1.75; }
.mb-ui .mb-personal-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .5rem; padding-block: 1rem; border-block: 1px solid var(--mb-line); }
.mb-ui .mb-personal-stats dt { color: var(--mb-muted); font-size: .8125rem; overflow-wrap: anywhere; }
.mb-ui .mb-personal-stats dd { margin: .25rem 0 0; color: var(--mb-ink); font-size: 1.5rem; font-weight: 800; }
.mb-ui .mb-personal-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; margin-top: auto; }
.mb-ui .mb-personal-actions > button { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.mb-ui .mb-personal-actions > button:only-child { grid-column: 1 / -1; }

/* Free launch: use the full personal-record area; keep mobile in reading order. */
#communityMyStoriesSection .mb-personal-grid { grid-template-columns: minmax(0,1fr); }
#mypageCouponContainer { display: none; }
.mb-footer-top { display: flex; flex-direction: column; gap: 1.5rem; }
.mb-footer-top > * { min-width: 0; }
@media (min-width:1024px) {
  #communityMyStoriesSection [data-personal-card="daily"] { display: grid; grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); align-items: start; }
  #communityMyStoriesSection .mb-personal-latest { grid-column: 2; grid-row: 1; }
  #communityMyStoriesSection .mb-personal-actions { grid-column: 1 / -1; }
  .mb-footer-top { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 1.5rem; }
  .mb-footer-top > nav { flex-wrap: nowrap; white-space: nowrap; }
}

/* Preview alongside consent and actions, never alongside an export canvas. */
.mb-ui .mb-share-workspace:not(.hidden) { display: grid; grid-template-columns: minmax(0,480px) minmax(0,1fr); align-items: start; gap: 2rem; }
.mb-ui .mb-share-workspace > * { min-width: 0; margin-block: 0; }
.mb-ui .mb-share-workspace > :nth-child(2) { width: 100%; max-width: none; }
.mb-ui .mb-share-preview { width: 100%; max-width: 380px; box-shadow: var(--mb-shadow); }
.mb-ui .mb-share-controls { text-align: left; }
.mb-ui .mb-share-workspace .mb-share-controls { width: 100%; max-width: none; margin-inline: 0; }
.mb-ui .mb-share-controls > :is(p,label) { text-align: left; font-size: .95rem; line-height: 1.8; }
.mb-ui .mb-gift-workspace > :first-child { box-shadow: none; border-width: 1px; }
.mb-ui .mb-gift-workspace > :nth-child(2) { padding-inline: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.mb-ui .mb-gift-workspace, .mb-ui .mb-gift-finished-panel, .mb-ui .mb-gift-receive-layout { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 2rem; align-items: start; }
.mb-ui .mb-gift-workspace:not(.hidden), .mb-ui .mb-gift-finished-panel, .mb-ui .mb-gift-receive-layout:not(.hidden) { display: grid; }
.mb-ui :is(.mb-gift-workspace,.mb-gift-finished-panel,.mb-gift-receive-layout) > * { min-width: 0; margin-block: 0; }
.mb-ui .mb-workspace-summary { max-width: 65ch; }
.mb-ui .mb-workspace-controls { width: 100%; max-width: 680px; justify-self: end; text-align: left; }

/* Reading documents: comfortable long copy. */
.mb-page--reading :where(#termsScrollContainer) { max-width: 920px; margin-inline: auto; font-size: 1.025rem; line-height: 1.95; }
.mb-page--reading :is(h2,h3) { scroll-margin-top: 10rem; line-height: 1.5; }
.mb-page--reading :where(.legal-ko, .legal-en) > article { padding: 1.5rem 0; border-bottom: 1px solid var(--mb-line); }
.mb-page--reading :where(.legal-ko, .legal-en) > article:last-child { border-bottom: 0; }
.mb-page--reading :where(h3) { font-size: 1.25rem; font-weight: 800; color: var(--mb-ink); margin-bottom: 0.75rem; }
.mb-page--reading :where(p, li) { color: #37473f; font-size: 1rem; line-height: 1.95; }
.mb-page--reading :where(ul, ol) { padding-left: 1.25rem; margin-top: 0.5rem; }

/* Supporter and Partnership wide editorial layout */
.mb-supporter-grid, .mb-partnership-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
#screen-partnership [data-i18n="partnership_modal_sub"] { word-break: keep-all; overflow-wrap: break-word; }
@media(min-width: 1024px) {
  .mb-supporter-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
  .mb-partnership-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 3rem; align-items: start; }
}

/* Free release v1.1: retain contact information without online intake. */
#screen-partnership,
#screen-partnership [data-partnership-intake],
#partnershipForm { display: none; }
#screen-partnership .mb-partnership-grid { grid-template-columns: minmax(0, 1fr); }

/* Pet Edit full-page panel */
#screen-pet-edit .mb-registration-panel { background: transparent; border: 0; border-radius: 0; padding: 0; box-shadow: none; max-width: none; margin-inline: 0; }
#screen-pet-edit #editPetForm:not(.hidden) { display: grid; grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); gap: 2rem; align-items: start; }
#screen-pet-edit #editPetForm > * { min-width: 0; margin-block: 0; }
.mb-ui .mb-edit-photo { padding: 1.5rem; border: 1px solid var(--mb-line); border-radius: var(--mb-radius); background: var(--mb-surface); }
.mb-ui .mb-edit-fields { display: grid; gap: 1.5rem; width: 100%; max-width: 720px; justify-self: end; }
#screen-pet-registration .mb-registration-panel { padding: 0; border: 0; border-radius: 0; background: transparent; }
.mb-ui .mb-registration-step { grid-template-columns: minmax(0,.65fr) minmax(0,1.35fr); gap: 2rem; align-items: start; }
.mb-ui .mb-registration-step:not(.hidden) { display: grid; }
.mb-ui .mb-registration-step > * { min-width: 0; margin-block: 0; }
.mb-ui .mb-registration-fields { width: 100%; max-width: 720px; justify-self: end; }
.mb-ui .mb-registration-step > :is(.mb-actions,#newPetRegistrationNotice) { grid-column: 1 / -1; }
.mb-ui .mb-registration-heading { font-size: var(--mb-type-step); font-weight: 700; }
.mb-ui .mb-registration-heading :is(span[class],span) { font-size: inherit; line-height: 1.5; }
#screen-pet-edit .mb-section-title { font-size: 1.1rem; font-weight: 800; color: var(--mb-ink); padding-bottom: 0.5rem; border-bottom: 1px solid var(--mb-line); margin-bottom: 1rem; }
#editPetBreedSearchContainer :is(.text-sky-300, .text-sky-400),
#editPetBreedSearchContainer .text-sky-300 p { color: #075985; }
#sharePreviewPhotoArea { width: 100%; aspect-ratio: 1; }
#sharePreviewPhoto { width: 100%; height: 100%; object-fit: cover; }
#sharePreviewPetName, #sharePreviewTraitTitle, #sharePreviewSummary, #capturePetName, #captureTraitTitle, #captureSummary { overflow-wrap: anywhere; }
#shareCardCaptureArea { height: auto; min-height: 640px; }
#shareCardCaptureArea > div { flex-shrink: 0; }
@media(min-width: 1024px) {
  .mb-page--editorial .brand-intro-section:not(.brand-intro-section-1):not(.brand-intro-section-7) { display: grid; grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); gap: 2rem; }
  .mb-page--editorial :is(.brand-intro-section-3,.brand-intro-section-4,.brand-intro-section-5) .brand-intro-body { grid-column: 1 / -1; max-width: none; }
}
@media(max-width: 768px) {
  .mb-ui :is(.mb-registration-step,.mb-workflow-layout,.mb-workflow-input,.mb-history-list,.mb-gift-workspace,.mb-gift-finished-panel,.mb-gift-receive-layout) { grid-template-columns: minmax(0,1fr); gap: 1.25rem; }
  #screen-pet-edit #editPetForm:not(.hidden) { grid-template-columns: minmax(0,1fr); gap: 1.25rem; }
  .mb-ui :is(.mb-workflow-main,.mb-workflow-side,.mb-workflow-footer) { grid-column: 1; grid-row: auto; }
  .mb-ui .mb-workflow-lead { max-width: none; }
  .mb-ui .mb-personal-grid, .mb-ui .mb-personal-actions { grid-template-columns: minmax(0,1fr); }
  #appMain > .mb-page { margin-block: .75rem 2rem; }
  .mb-page--dashboard :where(#homeDashboardCards):not(.hidden) { grid-template-columns: 1fr; }
  .mb-page--dashboard:not(.hidden) { grid-template-columns: minmax(0,1fr); gap: 1.5rem; }
  .mb-page--dashboard :where(#homeAccountHeader) { flex-wrap: wrap; }
  .mb-page--editorial :where(.brand-journey,.brand-detail-grid) { grid-template-columns: 1fr; }
  .mb-page--feed :where(#communityFilterBar > div:first-child) { flex-wrap: wrap; }
  .mb-page--feed :where(#communityTraitFilter) { max-width: 100%; }
  .mb-ui .mb-hub-choices, .mb-ui .mb-hub-choices > :first-child { grid-template-columns: minmax(0,1fr); gap: 1.25rem; }
  .mb-ui .mb-hub-choices > :first-child > button { justify-self: stretch; max-width: none; }
  .mb-ui .mb-share-workspace:not(.hidden) { grid-template-columns: minmax(0,1fr); }
  .mb-ui .mb-report > :nth-child(2) { padding: 1.25rem; }
}

/* Stabilization: chart fills retain contrast without changing score proportions. */
.mb-ui [data-paid-entry] { display: none; }
.mb-ui #barEnergy { background-color: #34795b; }
.mb-ui #barSocial { background-color: #287c80; }
.mb-ui #barReaction { background-color: #956332; }
.mb-ui #barRoutine { background-color: #455e93; }
.mb-compat-disclosure > summary { cursor: pointer; padding-block: .65rem; }
.mb-compat-disclosure > summary > strong { display: inline; }
.mb-compat-disclosure[open] > summary { margin-bottom: .5rem; }
.mb-ui .mb-privacy-note { color: var(--mb-muted); font-size: .875rem; }
.mb-ui [id$="CaptureArea"] { flex-shrink: 0; }
.mb-gift-card-preview { display: flex; justify-content: center; overflow-x: auto; max-width: 100%; }
.mb-gift-card-preview.hidden { display: none; }

/* Free release: hide only unavailable CARE server entry points. */
.mb-ui #homeActionCardBehavior,
.mb-ui #recentTabBtn-care,
.mb-ui #homeCareCard,
.mb-ui #homeOutcomeCard,
#screen-care,
#modalCommunityTrialPet,
.mb-ui [data-personal-card="care"],
.mb-ui [onclick^="HomeUI.routeAskBehavior("],
.mb-ui [onclick^="connectLifeToCare("],
.mb-ui [onclick^="CommunityUI.handleTrialClick("],
#screen-pet-changes > div:has(> #changesOutcomesContainer) { display: none; }
