/* Standalone pages opened from the app also remain usable in ordinary mobile Web. */
@media (max-width:900px) {
  body.public-profile-page, body:has(.legal-page) { background:#fcfaf5; color:#183e47; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP",sans-serif; }
  .public-profile-shell, .legal-page { box-sizing:border-box; width:100%; max-width:720px; padding:calc(16px + env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) calc(32px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px)); overflow-wrap:anywhere; }
  .public-profile-card, .legal-card, .legal-header { border-radius:16px; border-color:#cbd8d4; box-shadow:none; background:#fff; }
  .public-profile-card::before,.public-profile-card::after { display:none; }
  .public-profile-hero { padding:24px; background:#edf3ef; color:#183e47; }
  .public-profile-hero .profile-identity { max-width:100%; gap:16px; }
  .public-profile-hero .map-link { position:static; display:inline-flex; align-items:center; min-height:48px; margin-bottom:24px; color:#1c6370; background:#fff; }
  .public-profile-hero :is(h1,.bio,.handle,.eyebrow) { color:#183e47; font-family:inherit; overflow-wrap:anywhere; }
  .public-profile-page :is(button,.contribution-tabs button), .legal-lang-switch button { min-height:48px; font-family:inherit; font-size:16px; }
  .legal-title { font-size:26px; line-height:1.4; }
  .legal-page a { color:#1c6370; text-decoration:underline; text-underline-offset:3px; }
  .legal-lang-switch button.is-active { background:#1c6370; color:#fff; }
  body:has(.legal-page) > #cookie-settings-open { position:static; display:block; min-height:48px; margin:0 auto calc(24px + env(safe-area-inset-bottom,0px)); padding:10px 16px; border-radius:12px; box-shadow:none; color:#1c6370; font-family:inherit; font-size:14px; font-weight:600; line-height:1.5; }
  .legal-card :is(p,li) { font-size:16px; line-height:1.7; }
  .legal-footer-nav a,.legal-home-link { display:inline-flex; align-items:center; min-height:48px; color:#1c6370; }
  .public-profile-page :is(a,button):focus-visible,.legal-page :is(a,button):focus-visible { outline:3px solid #1c6370; outline-offset:3px; }
}
