/* Whiiso mobile presentation refinement, November 2026.
   Deliberately presentation-only: original photography, wording, onboarding
   interests and selection rules, feed actions and desktop three-column layout persist. */

@media (max-width:850px){
  /* Clean, useful first screen instead of a very tall decorative preamble. */
  html body #app .pmo-onboarding.pmo-onboarding-social{
    box-sizing:border-box!important;
    min-height:100svh!important;
    width:100%!important;
    max-width:100%!important;
    margin:0 auto!important;
    padding:16px 16px max(26px,env(safe-area-inset-bottom,0px))!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    grid-template-areas:"left right" "card card"!important;
    gap:0 14px!important;
    align-content:start!important;
    justify-items:stretch!important;
    overflow:visible!important;
    background:radial-gradient(ellipse at top,#fff3f2 4%,#fdebed 70%)!important;
  }
  html body #app .pmo-onboarding-social .pmo-onboarding-photos{
    width:100%!important;
    height:101px!important;
    min-width:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    position:relative;
  }
  html body #app .pmo-onboarding-social .pmo-onboarding-photos-left{grid-area:left!important}
  html body #app .pmo-onboarding-social .pmo-onboarding-photos-right{grid-area:right!important}
  html body #app .pmo-onboarding-social .pmo-onboarding-photo{
    height:106px!important;
    width:min(92%,178px)!important;
    max-width:100%!important;
    border:4px solid white!important;
    border-radius:17px!important;
    aspect-ratio:5/4!important;
    box-shadow:0 10px 22px #7139521b!important;
    overflow:hidden!important;
  }
  html body #app .pmo-onboarding-social .pmo-onboarding-photo img{
    width:100%!important;height:100%!important;object-fit:cover!important
  }
  html body #app .pmo-onboarding-social .pmo-onboarding-photo:nth-child(n+2){display:none!important}
  html body #app .pmo-onboarding-social .pmo-onboarding-photos-left .pmo-onboarding-photo-1{
    transform:rotate(-6deg) translate(8px,9px)!important
  }
  html body #app .pmo-onboarding-social .pmo-onboarding-photos-right .pmo-onboarding-photo-1{
    transform:rotate(6deg) translate(-8px,9px)!important
  }
  html body #app .pmo-onboarding-social .pmo-onboarding-card{
    grid-area:card!important;
    z-index:2!important;position:relative!important;
    width:100%!important;min-width:0!important;max-width:620px!important;
    margin:-18px auto 0!important;
    padding:26px clamp(19px,5vw,32px) 25px!important;
    border:1px solid #f3e7e8!important;
    border-radius:23px!important;
    background:#fff!important;
    box-shadow:0 12px 35px #583b4810!important;
    box-sizing:border-box!important;
  }
  html body #app .pmo-onboarding-social .pmo-onboarding-brand{
    font-size:22px!important;line-height:1.1!important;letter-spacing:-.055em!important;
    font-weight:900!important;margin:0 0 12px!important;color:#232026!important
  }
  html body #app .pmo-onboarding-social .pmo-onboarding-step{
    display:inline-flex!important;align-items:center!important;
    padding:5px 11px!important;min-height:27px!important;
    border-radius:999px!important;
    font-size:11px!important;font-weight:850!important;
    background:#fff0f3!important;color:#633445!important
  }
  html body #app .pmo-onboarding-social h1{
    font-size:clamp(24px,4.6vw,33px)!important;line-height:1.12!important;
    font-weight:900!important;letter-spacing:-.047em!important;
    color:#222026!important;margin:15px 0 8px!important;
    text-wrap:balance;
  }
  html body #app .pmo-onboarding-social .pmo-onboarding-card>p{
    font-size:13px!important;line-height:1.42!important;
    margin:0 0 15px!important;color:#655d67!important;
  }
  /* Consistent multi-select tiles: easier to scan and tap than uneven bubbles. */
  html body #app .pmo-onboarding-social .pmo-interest-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    margin:12px 0 17px!important;
    width:100%!important
  }
  html body #app .pmo-onboarding-social .pmo-interest{
    display:flex!important;align-items:center!important;justify-content:center!important;
    width:100%!important;min-width:0!important;
    min-height:46px!important;
    padding:9px 7px!important;
    border:1px solid #efdee5!important;border-radius:13px!important;
    font-size:12px!important;line-height:1.23!important;font-weight:750!important;
    letter-spacing:-.018em!important;text-align:center!important;
    overflow-wrap:break-word!important;
    background:#fff4f6!important;color:#302931!important;
    transform:none!important;box-shadow:none!important
  }
  html body #app .pmo-onboarding-social .pmo-interest.selected{
    background:#242328!important;border-color:#242328!important;
    color:white!important;box-shadow:0 2px 7px #2423281f!important
  }
  html body #app .pmo-onboarding-social .pmo-interest:focus-visible,
  html body #app .pmo-onboarding-social .pmo-onboarding-bottom button:focus-visible{
    outline:3px solid #b6689e!important;outline-offset:2px!important
  }
  html body #app .pmo-onboarding-social .pmo-onboarding-bottom{
    display:flex!important;flex-direction:column!important;align-items:stretch!important;
    gap:11px!important;width:100%!important;margin:0!important
  }
  html body #app .pmo-onboarding-social .pmo-onboarding-bottom small{
    color:#6c6470!important;font-size:12px!important;line-height:1.2!important;
    text-align:left!important
  }
  html body #app .pmo-onboarding-social .pmo-onboarding-bottom button.primary{
    min-height:49px!important;width:100%!important;
    padding:12px 17px!important;border-radius:13px!important;
    font-size:14px!important;line-height:1.2!important;font-weight:850!important;
    background:#ff426f!important;color:#fff!important;
    box-shadow:0 5px 15px #d82d6530!important;
    margin:0!important;cursor:pointer!important
  }
  html body #app .pmo-onboarding-social .pmo-onboarding-bottom button.primary:disabled{
    opacity:.52!important;cursor:not-allowed!important;box-shadow:none!important
  }
  html body #app .pmo-onboarding-social .pmo-onboarding-bottom button.outline{
    min-height:42px!important;width:100%!important;border-radius:12px!important;
    font-size:12px!important
  }
  html body #app .pmo-onboarding-social .pmo-onboarding-creators{
    margin:14px 0 17px!important;max-height:min(390px,48svh)!important;
    gap:8px!important
  }
  html body #app .pmo-onboarding-social .pmo-onboarding-person{
    padding:10px!important;border-radius:13px!important
  }
}

/* Extra-small Android viewports: keep the entire first onboarding step compact,
   but never clip the content when text zoom or keyboard makes it taller. */
@media (max-width:420px){
  html body #app .pmo-onboarding.pmo-onboarding-social{
    padding:10px 10px max(18px,env(safe-area-inset-bottom,0px))!important;
    gap:0 10px!important;
  }
  html body #app .pmo-onboarding-social .pmo-onboarding-photos{
    height:78px!important
  }
  html body #app .pmo-onboarding-social .pmo-onboarding-photo{
    height:85px!important;width:min(92%,154px)!important;
    border-width:3px!important;border-radius:14px!important
  }
  html body #app .pmo-onboarding-social .pmo-onboarding-card{
    padding:18px 16px 19px!important;border-radius:21px!important;
    margin-top:-11px!important
  }
  html body #app .pmo-onboarding-social .pmo-onboarding-brand{
    font-size:19px!important;margin-bottom:9px!important
  }
  html body #app .pmo-onboarding-social .pmo-onboarding-step{
    min-height:24px!important;padding:4px 10px!important
  }
  html body #app .pmo-onboarding-social h1{
    font-size:clamp(24px,6.8vw,28px)!important;
    margin:12px 0 6px!important;line-height:1.1!important
  }
  html body #app .pmo-onboarding-social .pmo-onboarding-card>p{
    font-size:12px!important;margin-bottom:10px!important
  }
  html body #app .pmo-onboarding-social .pmo-interest-grid{
    gap:6px!important;margin:8px 0 13px!important
  }
  html body #app .pmo-onboarding-social .pmo-interest{
    min-height:43px!important;padding:7px 5px!important;
    font-size:11.5px!important;border-radius:12px!important
  }
  html body #app .pmo-onboarding-social .pmo-onboarding-bottom{
    gap:9px!important
  }
  html body #app .pmo-onboarding-social .pmo-onboarding-bottom button.primary{
    min-height:47px!important
  }
}

/* Mobile feed: crisp hierarchy and calmer cards while keeping every action. */
@media (max-width:700px){
  html body #app .topbar{
    min-height:58px!important;height:58px!important;
    padding:0 13px!important;gap:11px!important;
    display:flex!important;align-items:center!important;
    position:sticky!important;top:0!important;z-index:30!important;
    background:#fff!important;border-bottom:1px solid #eee4e8!important;
    box-shadow:0 1px 2px #30202506!important
  }
  html body #app .topbar .logo{
    display:inline-flex!important;align-items:center!important;
    gap:6px!important;font-size:19px!important;line-height:1!important;
    letter-spacing:-.055em!important;font-weight:900!important;flex:none!important
  }
  html body #app .topbar .logo .brand-mark{
    width:25px!important;height:25px!important;flex:none!important
  }
  html body #app .topbar .global-search{
    display:flex!important;align-items:center!important;
    flex:1 1 0%!important;min-width:0!important;width:auto!important;
    height:37px!important;gap:7px!important;
    border:1px solid #ede4eb!important;border-radius:999px!important;
    padding:0 10px!important;margin:0!important;
    background:#faf8f9!important;box-shadow:none!important
  }
  html body #app .topbar .global-search .ui-icon{
    width:16px!important;height:16px!important;flex:none!important;color:#88818d!important
  }
  html body #app .topbar .global-search input{
    min-width:0!important;width:100%!important;
    font-size:11px!important;line-height:1.2!important;
    background:transparent!important;border:0!important;
    overflow:hidden!important;text-overflow:ellipsis!important;
    outline:0!important;padding:0!important
  }
  html body #app .topbar .top-icons{
    display:flex!important;gap:0!important;flex:0 0 auto!important;
    margin-left:0!important
  }
  html body #app .topbar .top-icons .profile-trigger{
    display:grid!important;place-items:center!important;
    padding:0!important;width:37px!important;height:37px!important;
    border-radius:50%!important
  }
  html body #app .topbar .top-icons .small-avatar,
  html body #app .topbar .profile-trigger .pmo-face{
    width:36px!important;height:36px!important;
    border:1px solid #efdee5!important;margin:0!important
  }

  html body #app .app-shell:has(.clean-composer){
    padding:14px 11px calc(91px + env(safe-area-inset-bottom,0px))!important;
    max-width:100%!important;box-sizing:border-box!important;
    background:#fff9fa!important
  }
  html body #app .app-shell:has(.clean-composer) .app-main{
    min-width:0!important;width:100%!important;
  }
  html body #app .app-shell:has(.clean-composer) .app-main:before{
    height:220px!important;left:-9px!important;right:-9px!important;
    background:radial-gradient(ellipse at top left,#ffeaf0 0,transparent 68%)!important
  }
  html body #app .app-shell:has(.clean-composer) .feed-heading{
    margin:0 2px 14px!important
  }
  html body #app .app-shell:has(.clean-composer) .feed-heading h1{
    font-size:24px!important;line-height:1.1!important;
    letter-spacing:-.047em!important;font-weight:900!important;
    color:#32192c!important;margin:0!important
  }
  html body #app .app-shell:has(.clean-composer) .clean-composer{
    padding:15px!important;border:1px solid #eee0e7!important;
    border-radius:20px!important;
    box-shadow:0 5px 17px #65384f0a!important;
    background:#fff!important;margin-bottom:14px!important
  }
  html body #app .app-shell:has(.clean-composer) .clean-composer>.row{
    display:flex!important;gap:10px!important;align-items:flex-start!important;
    min-width:0!important;margin:0!important
  }
  html body #app .app-shell:has(.clean-composer) .clean-composer .row .avatar,
  html body #app .app-shell:has(.clean-composer) .clean-composer .row .pmo-face{
    width:36px!important;height:36px!important;flex:none!important;
    margin:2px 0 0!important
  }
  html body #app .app-shell:has(.clean-composer) .clean-composer textarea{
    flex:1 1 0!important;min-width:0!important;width:auto!important;
    min-height:76px!important;height:76px!important;max-height:160px!important;
    resize:vertical!important;
    padding:13px 14px!important;
    background:#faf8fa!important;border:1px solid #f0e6ea!important;
    border-radius:14px!important;box-shadow:none!important;
    color:#302932!important;font-size:14px!important;line-height:1.42!important
  }
  html body #app .app-shell:has(.clean-composer) .clean-composer textarea:focus{
    border-color:#c68ea9!important;outline:2px solid #eacbdc!important;
    background:white!important
  }
  html body #app .app-shell:has(.clean-composer) .clean-composer textarea::placeholder{
    font-size:14px!important;color:#837683!important;opacity:1!important
  }
  html body #app .app-shell:has(.clean-composer) .composer-actions{
    display:flex!important;align-items:center!important;
    flex-wrap:nowrap!important;gap:7px!important;
    width:100%!important;
    padding:12px 0 0!important;margin-top:12px!important;
    border-top:1px solid #f1e9ed!important;min-width:0!important
  }
  html body #app .app-shell:has(.clean-composer) .clean-composer .composer-tool{
    display:inline-flex!important;flex:0 1 auto!important;
    align-items:center!important;justify-content:center!important;
    min-width:0!important;min-height:36px!important;
    padding:7px 9px!important;gap:5px!important;
    border-radius:10px!important;
    border:1px solid #f1e3e9!important;background:#fff7f9!important;
    color:#623b53!important;font-size:11px!important;font-weight:750!important;
    box-shadow:none!important;transform:none!important
  }
  html body #app .app-shell:has(.clean-composer) .clean-composer .composer-tool:nth-child(2),
  html body #app .app-shell:has(.clean-composer) .clean-composer .composer-tool:nth-child(3){
    border-color:#f1e3e9!important;background:#fff7f9!important
  }
  html body #app .app-shell:has(.clean-composer) .clean-composer .composer-tool .ui-icon{
    width:16px!important;height:16px!important;color:#a14c7b!important
  }
  html body #app .app-shell:has(.clean-composer) .clean-composer .composer-tool span{
    display:inline!important;font-size:11px!important;white-space:nowrap!important
  }
  html body #app .app-shell:has(.clean-composer) .composer-actions>.primary{
    min-width:75px!important;min-height:37px!important;
    width:auto!important;flex:0 0 auto!important;
    margin-left:auto!important;padding:8px 14px!important;
    border-radius:11px!important;
    background:linear-gradient(115deg,#fa3c75,#c53e96)!important;
    box-shadow:none!important;font-size:12px!important;font-weight:850!important
  }

  html body #app .app-shell:has(.clean-composer) article.post.pmo-real-post{
    padding:17px 16px!important;
    border:1px solid #eee2e6!important;border-radius:21px!important;
    background:#fff!important;
    box-shadow:0 4px 17px #51263c08!important;
    margin-bottom:14px!important
  }
  html body #app .app-shell:has(.clean-composer) .pmo-real-post .post-head{
    display:flex!important;align-items:center!important;gap:10px!important;
    min-height:40px!important;margin:0 0 12px!important
  }
  html body #app .app-shell:has(.clean-composer) .pmo-real-post .post-head .pmo-face{
    width:43px!important;height:43px!important
  }
  html body #app .app-shell:has(.clean-composer) .pmo-real-post .pmo-post-author>a b{
    font-size:15px!important;font-weight:850!important;letter-spacing:-.015em!important
  }
  html body #app .app-shell:has(.clean-composer) .pmo-real-post .pmo-post-author small{
    font-size:11px!important;line-height:1.3!important;color:#827682!important
  }
  html body #app .app-shell:has(.clean-composer) .pmo-real-post .pmo-post-text{
    font-size:14.5px!important;line-height:1.5!important;
    letter-spacing:-.006em!important;
    margin:0 0 13px!important;color:#29242c!important
  }
  html body #app .app-shell:has(.clean-composer) .pmo-real-post .pmo-post-media-grid{
    margin:11px 0!important;
    border-radius:14px!important
  }
  html body #app .app-shell:has(.clean-composer) .pmo-real-post .post-actions{
    display:flex!important;align-items:center!important;
    gap:8px!important;padding:10px 0 5px!important;flex-wrap:wrap!important
  }
  html body #app .app-shell:has(.clean-composer) .pmo-real-post .post-actions button:not(.social-puton-btn){
    min-height:34px!important;padding:6px 8px!important;
    font-size:12px!important;border-radius:10px!important
  }
  html body #app .app-shell:has(.clean-composer) .pmo-real-post .post-actions .social-puton-btn{
    margin-left:auto!important;padding:8px 12px!important;
    min-height:34px!important;font-size:11px!important;
    border-radius:11px!important
  }
  html body #app .app-shell:has(.clean-composer) .pmo-real-post .feed-reply{
    margin-top:8px!important;padding-top:12px!important;
    border-top:1px solid #f1e9ed!important;
    background:#fff!important;gap:8px!important
  }
  html body #app .app-shell:has(.clean-composer) .pmo-real-post .feed-reply input{
    min-width:0!important;background:#fff!important;
    min-height:37px!important;border-radius:999px!important;
    font-size:12px!important
  }

  /* Flatten the exaggerated mobile create tile into a single centered navigation action. */
  html body #app .app-shell>.sidebar.whiiso-sidebar{
    display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
    grid-template-rows:59px!important;
    gap:0!important;align-items:center!important;
    padding:5px 7px calc(5px + env(safe-area-inset-bottom,0px))!important;
    background:#fff!important;border-top:1px solid #e9e0e5!important;
    box-shadow:0 -3px 12px #301d290b!important;
    min-height:70px!important
  }
  html body #app .app-shell>.sidebar.whiiso-sidebar>a[href="#feed"],
  html body #app .app-shell>.sidebar.whiiso-sidebar>a[href="#creators"],
  html body #app .app-shell>.sidebar.whiiso-sidebar>a[href="#communities"],
  html body #app .app-shell>.sidebar.whiiso-sidebar>a[href="#messages"]{
    display:flex!important;align-items:center!important;justify-content:center!important;
    flex-direction:column!important;
    min-height:55px!important;height:55px!important;
    margin:0!important;padding:6px 2px!important;
    border:0!important;border-radius:12px!important;
    background:transparent!important;color:#443b45!important;
    font-size:10px!important;font-weight:650!important;gap:3px!important
  }
  html body #app .app-shell>.sidebar.whiiso-sidebar>a.active:not(.sidebar-cta){
    background:#fff0f5!important;color:#a13c70!important;
    box-shadow:none!important
  }
  html body #app .app-shell>.sidebar.whiiso-sidebar>a .ui-icon{
    width:20px!important;height:20px!important
  }
  html body #app .app-shell>.sidebar.whiiso-sidebar>.mobile-create{
    order:3!important;display:flex!important;align-items:center!important;
    justify-content:center!important;flex-direction:column!important;gap:1px!important;
    justify-self:center!important;align-self:center!important;
    width:54px!important;height:54px!important;min-height:54px!important;
    margin:0!important;padding:4px!important;border-radius:15px!important;
    background:linear-gradient(135deg,#ff457b,#bf3f95)!important;
    color:white!important;
    box-shadow:0 5px 12px #bb3d8733!important;
    font-size:26px!important;line-height:1!important;
    transform:none!important
  }
  html body #app .app-shell>.sidebar.whiiso-sidebar>.mobile-create span{
    font-size:10px!important;font-weight:750!important;line-height:1.2!important
  }
}
@media (max-width:380px){
  html body #app .topbar{
    padding-inline:9px!important;gap:7px!important
  }
  html body #app .topbar .logo{font-size:17px!important}
  html body #app .topbar .logo .brand-mark{width:22px!important;height:22px!important}
  html body #app .app-shell:has(.clean-composer) .clean-composer{
    padding:13px!important
  }
  html body #app .app-shell:has(.clean-composer) .clean-composer .composer-tool{
    padding-inline:7px!important;gap:3px!important;font-size:10px!important
  }
  html body #app .app-shell:has(.clean-composer) .composer-actions>.primary{
    min-width:64px!important;padding-inline:11px!important
  }
  html body #app .app-shell:has(.clean-composer) article.post.pmo-real-post{
    padding-inline:13px!important
  }
}
@media(prefers-reduced-motion:reduce){
  html body #app .pmo-onboarding-social .pmo-interest{
    transition:none!important
  }
  html body #app .app-shell:has(.clean-composer) .clean-composer textarea{
    transition:none!important
  }
}
