/* Editorial entry compositions share their markup across the two mobile themes. */
@media (max-width: 760px) {
  body[data-mobile-app="true"] .mobile-shell[hidden],
  body[data-mobile-app="true"] .mobile-shell [hidden] { display: none !important; }
  body[data-mobile-app="true"] .mobile-header__actions { display: flex; gap: 4px; margin-left: auto; }
  body[data-mobile-app="true"] .mobile-header { grid-template-columns: 48px minmax(0, 1fr) auto; }
  body[data-mobile-app="true"] .mobile-header:has(.mobile-back[hidden]) { grid-template-columns: minmax(0, 1fr) auto; }
  body[data-mobile-app="true"] .mobile-header .mobile-brand { min-height: 48px; padding: 0; border: 0; background: transparent; cursor: pointer; }
  body[data-mobile-app="true"] .mobile-header .mobile-back { margin-left: -12px; }
  body[data-mobile-app="true"] .mobile-header:has(.mobile-back:not([hidden])) { gap: 10px; }
  body[data-mobile-app="true"] .mobile-dock[data-destinations="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body[data-mobile-app="true"] .mobile-dock[data-destinations="5"] { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.25fr) minmax(0, .85fr); }
  body[data-mobile-app="true"] .mobile-dock__link > span { overflow-wrap: normal; word-break: normal; }
  body[data-mobile-app="true"] .mobile-text-button { min-height: 48px; padding: 12px; border: 0; background: transparent; color: var(--mobile-text); font: 600 .9375rem/1.4 var(--mobile-font); text-align: center; cursor: pointer; }
  body[data-mobile-app="true"] .mobile-picture { position: relative; isolation: isolate; display: block; min-width: 0; overflow: clip; border-radius: 16px; background: var(--mobile-raised); color: var(--mobile-on-media); text-decoration: none; }
  body[data-mobile-app="true"] .mobile-picture > .mobile-card__image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
  body[data-mobile-app="true"] .mobile-picture__shade { position: absolute; z-index: 0; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(10, 10, 11, .8)); }
  body[data-mobile-app="true"] .mobile-picture__title { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 21px; font: 700 1.5rem/1.08 var(--mobile-display); letter-spacing: -.025em; text-wrap: balance; }
  body[data-mobile-app="true"] .mobile-picture__arrow { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--mobile-lime); color: var(--mobile-ink); }
  body[data-mobile-app="true"] .mobile-picture .mobile-picture__arrow { position: absolute; top: 12px; right: 12px; }
  body[data-mobile-app="true"] .mobile-family-pills { display: grid; grid-template-columns: 1.06fr 1fr 1fr; gap: 10px; }
  body[data-mobile-app="true"] .mobile-family-pills > a { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 48px; padding: 12px 10px; border-radius: 24px; background: var(--mobile-raised); color: var(--mobile-text); font: 600 .875rem/1.3 var(--mobile-font); text-decoration: none; }
  body[data-mobile-app="true"] .mobile-family-pills > a:first-child { background: var(--mobile-lilac); color: var(--mobile-ink); }

  body[data-mobile-app="true"] .mobile-home { gap: 24px; }
  body[data-mobile-app="true"] .mobile-home__title { font-size: 2.75rem; line-height: 1.07; }
  body[data-mobile-app="true"] .mobile-home__grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 12px; height: clamp(195px, 31.5dvh, 266px); }
  body[data-mobile-app="true"] .mobile-home__grid .mobile-picture:first-child img { object-position: center 15%; }
  body[data-mobile-app="true"] .mobile-home__grid .mobile-picture:nth-child(2) img { object-position: 59% center; }
  body[data-mobile-app="true"] .mobile-home__grid .mobile-picture:nth-child(2) .mobile-picture__title { font-size: 1.375rem; }
  body[data-mobile-app="true"] .mobile-home__music { display: grid; gap: 14px; }
  body[data-mobile-app="true"] .mobile-home__music h2 { margin: 0; color: var(--mobile-text); font: 700 1.375rem/1.23 var(--mobile-display); letter-spacing: -.025em; }
  body[data-mobile-app="true"] .mobile-music-card { display: flex; align-items: center; gap: 16px; min-height: 82px; overflow: clip; border-radius: 16px; background: var(--mobile-lilac); color: var(--mobile-ink); text-decoration: none; }
  body[data-mobile-app="true"] .mobile-music-card img { align-self: stretch; width: 84px; height: 82px; object-fit: cover; object-position: center 20%; }
  body[data-mobile-app="true"] .mobile-music-card > span { display: grid; min-width: 0; gap: 5px; padding: 10px 0; }
  body[data-mobile-app="true"] .mobile-music-card strong { font: 700 1.25rem/1.2 var(--mobile-display); letter-spacing: -.025em; }
  body[data-mobile-app="true"] .mobile-music-card small { font-size: .8125rem; }
  body[data-mobile-app="true"] .mobile-music-card > svg { flex: 0 0 24px; margin-left: auto; margin-right: 16px; }

  body[data-mobile-app="true"][data-mobile-entry="welcome"] { background: var(--mobile-welcome-bg); }
  body[data-mobile-app="true"][data-mobile-entry="welcome"] #main,
  body[data-mobile-app="true"][data-mobile-entry="login"] #main { padding-bottom: calc(18px + var(--mobile-safe-bottom)); }
  body[data-mobile-app="true"] .mobile-welcome { gap: 0; min-height: calc(100dvh - var(--mobile-header-space) - 18px - var(--mobile-safe-top) - var(--mobile-safe-bottom)); }
  body[data-mobile-app="true"] .mobile-welcome .mobile-welcome__title { position: relative; z-index: 1; font-size: clamp(2.9rem, 14.1vw, 3.4375rem); line-height: 1.02; letter-spacing: -.025em; }
  body[data-mobile-app="true"] .mobile-welcome__collage { position: relative; isolation: isolate; flex: 1 0 310px; margin: 10px -16px 16px; }
  body[data-mobile-app="true"] .mobile-welcome__portrait { position: absolute; width: 48%; height: 84%; max-height: 258px; border-radius: 16px; object-fit: cover; object-position: center 18%; box-shadow: var(--mobile-photo-shadow); }
  body[data-mobile-app="true"] .mobile-welcome__portrait.is-juno { z-index: 1; top: 12px; left: 6%; transform: rotate(-7deg); }
  body[data-mobile-app="true"] .mobile-welcome__portrait.is-music { z-index: 2; top: 30px; right: 3%; height: 80%; width: 44%; transform: rotate(7deg); }
  body[data-mobile-app="true"] .mobile-welcome__circle { position: absolute; z-index: 0; top: -8px; right: 3%; width: 100px; height: 100px; border-radius: 50%; background: var(--mobile-selected); }
  body[data-mobile-app="true"] .mobile-welcome__circle.is-lime { top: auto; right: auto; left: -3px; bottom: 42px; width: 78px; height: 78px; background: var(--mobile-lime); }
  body[data-mobile-app="true"] .mobile-welcome__sticker { position: absolute; z-index: 3; inset: auto 36px 4px; padding: 10px 14px; border-radius: 10px; transform: rotate(-3deg); background: var(--mobile-lime); color: var(--mobile-ink); font: 700 1.0625rem/1.4 var(--mobile-font); text-align: center; }
  body[data-mobile-app="true"] .mobile-welcome > p { color: var(--mobile-text); }
  body[data-mobile-app="true"] .mobile-welcome__actions { display: grid; gap: 2px; margin-top: 24px; }
  body[data-mobile-app="true"] .mobile-welcome .mobile-action { justify-content: space-between; }

  body[data-mobile-app="true"][data-mobile-entry="login"] #main { padding-inline: 0; }
  body[data-mobile-app="true"] .mobile-login { gap: 0; }
  body[data-mobile-app="true"] .mobile-login__hero { position: relative; display: flex; align-items: center; min-height: 286px; padding: 24px; border-radius: 0; background: var(--mobile-selected); color: var(--mobile-text); }
  body[data-mobile-app="true"] .mobile-login__hero > p { position: relative; z-index: 1; margin: 0; font: 700 2.625rem/1.12 var(--mobile-display); letter-spacing: -.025em; }
  body[data-mobile-app="true"] .mobile-login__hero img { position: absolute; inset: 16px 24px 0 auto; width: 42%; height: calc(100% - 26px); border-radius: 82px; object-fit: cover; object-position: center 15%; }
  body[data-mobile-app="true"] .mobile-login__body { position: relative; display: flex; flex-direction: column; gap: 20px; min-height: 380px; margin-top: -14px; padding: 34px 24px 0; border-radius: 30px 30px 0 0; background: var(--mobile-bg); }
  body[data-mobile-app="true"] .mobile-login__body h1 { font-size: 2.3125rem; }
  body[data-mobile-app="true"] .mobile-login__body > p { margin: 0; font-size: 1rem; }
  body[data-mobile-app="true"] .mobile-google { margin-top: 10px; justify-content: center; }
  body[data-mobile-app="true"] .mobile-google > svg { margin-left: auto; }
  body[data-mobile-app="true"] .mobile-login .mobile-text-button { margin-top: -12px; }
  body[data-mobile-app="true"] .mobile-login__body .mobile-login__privacy { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--mobile-muted); font-size: .8125rem; }
  body[data-mobile-app="true"] .mobile-login__privacy svg { flex: 0 0 20px; width: 20px; height: 20px; }
  body[data-mobile-app="true"] .mobile-login__body > nav { display: flex; justify-content: center; gap: 28px; margin-top: auto; }
  body[data-mobile-app="true"] .mobile-login__body > nav a { display: inline-flex; align-items: center; min-height: 48px; color: var(--mobile-muted); font-size: .8125rem; }

  body[data-mobile-app="true"] .mobile-create { gap: 28px; }
  body[data-mobile-app="true"] .mobile-create > h1,
  body[data-mobile-app="true"] .mobile-search > h1 { font-size: 2.6875rem; }
  body[data-mobile-app="true"] .mobile-create__choices { display: grid; gap: 16px; }
  body[data-mobile-app="true"] .mobile-create__card { height: clamp(106px, 16.5dvh, 140px); }
  body[data-mobile-app="true"] .mobile-create__card img { object-position: center 25%; }
  body[data-mobile-app="true"] .mobile-create__card .mobile-picture__title { font-size: 1.875rem; }
  body[data-mobile-app="true"] .mobile-create__card .mobile-picture__arrow { top: auto; bottom: 16px; }
  body[data-mobile-app="true"] .mobile-create__audio { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 154px; padding: 18px; overflow: clip; border-radius: 16px; background: var(--mobile-lilac); color: var(--mobile-ink); text-decoration: none; }
  body[data-mobile-app="true"] .mobile-create__audio > strong { font: 700 1.875rem/1.2 var(--mobile-display); letter-spacing: -.025em; }
  body[data-mobile-app="true"] .mobile-create__audio > small { margin-top: 4px; font-size: .8125rem; }
  body[data-mobile-app="true"] .mobile-create__audio .mobile-picture__arrow { position: absolute; right: 14px; bottom: 16px; background: var(--mobile-ink); color: var(--mobile-lilac); }
  body[data-mobile-app="true"] .mobile-wave { position: absolute; top: 16px; right: 22px; display: flex; align-items: center; gap: 5px; height: 65px; }
  body[data-mobile-app="true"] .mobile-wave i { width: 4px; height: 25%; border-radius: 4px; background: currentColor; }
  body[data-mobile-app="true"] .mobile-wave i:nth-child(3n) { height: 62%; }
  body[data-mobile-app="true"] .mobile-wave i:nth-child(4n) { height: 100%; }
  body[data-mobile-app="true"] .mobile-wave i:nth-child(5n) { height: 42%; }

  body[data-mobile-app="true"] .mobile-search { gap: 24px; }
  body[data-mobile-app="true"] .mobile-search__field { display: flex; align-items: center; min-height: 56px; padding: 4px 8px 4px 16px; border: 1px solid var(--mobile-control-border); border-radius: 16px; background: var(--mobile-raised); }
  body[data-mobile-app="true"] .mobile-search__field > input { width: 0; flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 8px 0; border: 0; background: transparent; color: var(--mobile-text); font: 400 1rem/1.4 var(--mobile-font); }
  body[data-mobile-app="true"] .mobile-search__field > button { position: static; flex: 0 0 48px; }
  body[data-mobile-app="true"] .mobile-search__suggestions { display: grid; gap: 20px; }
  body[data-mobile-app="true"] .mobile-search__suggestions h2 { margin: 0; font: 600 1.125rem/1.4 var(--mobile-font); }
  body[data-mobile-app="true"] .mobile-search__chips { display: flex; flex-wrap: wrap; gap: 10px; }
  body[data-mobile-app="true"] .mobile-search__chips a { display: flex; align-items: center; min-height: 48px; padding: 12px 16px; border-radius: 24px; background: var(--mobile-raised); color: var(--mobile-text); font: 600 .875rem/1.4 var(--mobile-font); text-decoration: none; }
  body[data-mobile-app="true"] .mobile-search__chips a:first-child { background: var(--mobile-lilac); color: var(--mobile-ink); }
  body[data-mobile-app="true"] .mobile-search__chips a:nth-child(2) { background: var(--mobile-lime); color: var(--mobile-ink); }
  body[data-mobile-app="true"] .mobile-search .mobile-search__chips a:last-child { background: var(--mobile-selected); color: var(--mobile-text); }
  body[data-mobile-app="true"] .mobile-search .mobile-search__suggestions > .mobile-picture { padding: 0; border-radius: 16px; color: var(--mobile-on-media); }
  body[data-mobile-app="true"] .mobile-picture > .mobile-picture__title { color: var(--mobile-on-media); }
  body[data-mobile-app="true"] .mobile-search__suggestions > .mobile-picture { height: clamp(150px, 25.8dvh, 218px); }
  body[data-mobile-app="true"] .mobile-search__results { display: grid; gap: 0; }
  body[data-mobile-app="true"] .mobile-search__results > p { margin: 0 0 14px; color: var(--mobile-muted); font-size: .875rem; }
  body[data-mobile-app="true"] .mobile-search__results > a { display: flex; align-items: center; gap: 14px; min-height: 96px; padding: 16px 0; border-bottom: 1px solid var(--mobile-line); color: var(--mobile-text); text-decoration: none; }
  body[data-mobile-app="true"] .mobile-search__results > a > span { display: grid; flex: 1; min-width: 0; gap: 6px; }
  body[data-mobile-app="true"] .mobile-search__results strong { font-size: 1.125rem; }
  body[data-mobile-app="true"] .mobile-search__results small { color: var(--mobile-muted); font-size: .8125rem; }
  body[data-mobile-app="true"] .mobile-search__results > a > svg { flex: 0 0 24px; color: var(--mobile-lilac); }
  body[data-mobile-app="true"] .mobile-search__pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; font-size: .875rem; }
  body[data-mobile-app="true"] .mobile-menu__title { margin: 30px 0; font: 700 1.8125rem/1.1 var(--mobile-display); letter-spacing: -.025em; }
  body[data-mobile-app="true"] .mobile-menu__nav > a { min-height: 66px; padding: 16px 0; font: 700 1.8125rem/1.2 var(--mobile-display); }
  body[data-mobile-app="true"] .mobile-help-card { position: relative; display: flex; flex-direction: column; gap: 10px; margin-top: 24px; padding: 18px 56px 18px 18px; border-radius: 16px; background: var(--mobile-lilac); color: var(--mobile-ink); text-decoration: none; }
  body[data-mobile-app="true"] .mobile-help-card strong { font: 700 1.3125rem/1.3 var(--mobile-display); }
  body[data-mobile-app="true"] .mobile-help-card span { font-size: .875rem; }
  body[data-mobile-app="true"] .mobile-help-card svg { position: absolute; right: 18px; top: calc(50% - 12px); }
  body[data-mobile-app="true"] .mobile-menu__foot { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; }
  body[data-mobile-app="true"] .mobile-menu__foot :is(a, button) { display: flex; align-items: center; min-height: 48px; padding: 6px 0; border: 0; background: transparent; color: var(--mobile-text); font: 600 .875rem/1.4 var(--mobile-font); text-decoration: none; }
  body[data-mobile-app="true"] .mobile-dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  body[data-mobile-app="true"] .mobile-preferences .mobile-title { font-size: 1.875rem; }
  body[data-mobile-app="true"] .mobile-preferences__hint { color: var(--mobile-muted); font-size: .875rem; }
  body[data-mobile-app="true"] .mobile-theme-options > label { display: flex; align-items: center; min-height: 64px; gap: 14px; }
  body[data-mobile-app="true"] .mobile-theme-options > label span { flex: 1; }
  body[data-mobile-app="true"] .mobile-theme-options input { width: 24px; height: 24px; accent-color: var(--mobile-primary); }
  body[data-mobile-app="true"] .mobile-theme-options > label:has(input:checked) { background: var(--mobile-selected); color: var(--mobile-text); }
  body[data-mobile-app="true"] .mobile-characters { display: grid; gap: 18px; }
  body[data-mobile-app="true"] .mobile-characters > p { margin: 0; color: var(--mobile-muted); font-size: 1rem; }
  body[data-mobile-app="true"] .mobile-characters .home-gender-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
  body[data-mobile-app="true"] .mobile-characters .home-gender-tabs button { min-height: 48px; padding: 12px; border: 0; border-radius: 24px; background: var(--mobile-raised); color: var(--mobile-text); font: 600 .875rem/1.4 var(--mobile-font); }
  body[data-mobile-app="true"] .mobile-characters .home-gender-tabs button[aria-pressed="true"] { background: var(--mobile-lilac); color: var(--mobile-ink); }
  body[data-mobile-app="true"] .mobile-characters .portfolio-masonry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; min-width: 0; height: auto; overflow: visible; }
  body[data-mobile-app="true"] .mobile-characters .portfolio-card { display: block; width: 100%; min-width: 0; height: 180px; padding: 0; overflow: clip; border: 0; border-radius: 16px; background: var(--mobile-raised); }
  body[data-mobile-app="true"] .mobile-characters .catalog-portrait { width: 100%; height: 100%; }
  body[data-mobile-app="true"] .mobile-characters .catalog-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
  body[data-mobile-app="true"] .mobile-characters .mobile-page-navigation { margin-block: 0; }
}
@media (max-width: 360px) {
  body[data-mobile-app="true"] .mobile-dock[data-destinations="5"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body[data-mobile-app="true"] .mobile-dock [data-mobile-destination="community"] { display: none; }
}
@media (max-width: 760px) and (max-height: 760px) {
  body[data-mobile-app="true"] .mobile-welcome__collage { flex-basis: 250px; }
  body[data-mobile-app="true"] .mobile-welcome__title { font-size: 2.875rem; }
  body[data-mobile-app="true"] .mobile-home { gap: 18px; }
  body[data-mobile-app="true"] .mobile-home__title { font-size: 2.5rem; }
  body[data-mobile-app="true"] .mobile-login__hero { min-height: 220px; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 760px) {
  body[data-mobile-app="true"] .mobile-welcome__collage { animation: mobile-collage-in .6s cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes mobile-collage-in { from { filter: blur(2px); transform: translateY(10px); } to { filter: blur(0); transform: translateY(0); } }
}
