/* Mobile polish shared by public artist profiles and Mi Studio. Desktop intentionally untouched. */
@media (max-width:700px){
  html,body{max-width:100%;overflow-x:hidden!important}

  /* Public artist profile */
  .profile-shell,.artist-hero,.profile-content{max-width:100%!important;min-width:0!important}
  .artist-hero{padding-left:18px!important;padding-right:18px!important}
  .name-row{min-width:0!important}
  .follow-action{min-width:0!important;margin-top:0!important}
  .follow-action small{display:none!important}
  .owner-actions{min-width:0!important;max-width:100%!important}
  .hero-specialties{display:flex!important;flex-wrap:wrap!important;gap:7px!important;margin-top:10px!important;max-width:100%!important}
  .hero-specialty-chip{display:inline-flex!important;align-items:center!important;min-height:28px!important;padding:5px 10px!important;border-radius:999px!important;border:1px solid #39434e!important;background:#171f27!important;color:#d8dee5!important;font-size:.72rem!important;font-weight:700!important;line-height:1!important;white-space:nowrap!important}
  .hero-specialty-chip::after{display:none!important}
  .country{margin-top:12px!important}
  .artist-bio{margin-top:12px!important}
  .stats-bar{width:100%!important;max-width:100%!important;margin-top:14px!important}
  .stat{min-width:0!important;padding:14px 8px!important;gap:9px!important}
  .stat strong{font-size:1.35rem!important}
  .stat span{font-size:.76rem!important;line-height:1.25!important}
  .profile-tabs{max-width:100%!important}

  /* Dashboard notification dropdown: never leave the viewport. */
  .notif-pop{position:fixed!important;left:12px!important;right:12px!important;top:76px!important;width:auto!important;max-width:none!important;max-height:min(430px,calc(100dvh - 92px))!important;margin:0!important}
  .notif-head{gap:12px!important}
  .notif-head strong,.notif-head button{min-width:0!important}
  .notif-head button{font-size:12px!important;text-align:right!important}

  /* Mi Studio public-profile preview: purpose-built mobile summary, not a shrunken desktop hero. */
  .preview{overflow:hidden!important;padding:14px!important}
  .preview .section-head{height:auto!important;min-height:0!important;gap:12px!important;align-items:center!important;margin-bottom:12px!important}
  .preview .section-head h3{font-size:18px!important;line-height:1.08!important;max-width:62%!important}
  .preview .small-cta{flex:0 0 auto!important;white-space:nowrap!important;height:36px!important;padding:0 12px!important}
  .preview-hero{height:148px!important;min-height:148px!important;max-height:148px!important;overflow:hidden!important;border-radius:12px!important;position:relative!important;margin:0!important}
  .preview-hero .banner{position:absolute!important;inset:0!important;border-radius:12px!important;background-position:center 42%!important}
  .preview-hero:after{content:''!important;position:absolute!important;inset:0!important;background:linear-gradient(180deg,#0b10140a 0%,#0b101455 48%,#0b1014e8 100%)!important;border-radius:12px!important}
  .preview-copy{position:absolute!important;left:14px!important;right:12px!important;bottom:12px!important;display:flex!important;gap:11px!important;align-items:center!important;z-index:3!important;max-width:calc(100% - 26px)!important}
  .preview-avatar{width:58px!important;height:58px!important;min-width:58px!important;min-height:58px!important;flex:0 0 58px!important;border-radius:14px!important;box-shadow:0 6px 18px #0008!important}
  .preview-copy>div:last-child{min-width:0!important;padding:0!important}
  .preview-copy strong{font-size:17px!important;line-height:1.05!important;display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .preview-copy span{font-size:11.5px!important;line-height:1.2!important;display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;margin-top:4px!important}
  .preview-footer{position:static!important;display:block!important;height:auto!important;min-height:0!important;margin:10px 0 0!important;padding:0!important;overflow:visible!important}
  .preview-footer .preview-tags{display:none!important}
  .preview-footer .preview-stats{width:100%!important;min-width:0!important;height:auto!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;margin:0!important;padding:0!important;gap:7px!important;transform:none!important}
  .preview-footer .preview-stats>div{height:auto!important;min-height:54px!important;padding:8px 5px!important;border:1px solid #2d3741!important;border-radius:9px!important;background:#151d24!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;text-align:center!important}
  .preview-footer .preview-stats strong{font-size:15px!important;line-height:1!important;margin:0!important}
  .preview-footer .preview-stats span{font-size:10px!important;line-height:1.15!important;margin-top:5px!important;color:#98a4af!important}

  /* Analytics/card controls should stack instead of colliding. */
  .analytics{overflow:hidden!important}
  .analytics .section-head{height:auto!important;min-height:0!important;align-items:flex-start!important;gap:8px!important}
  .analytics .section-head h3{font-size:18px!important;line-height:1.1!important}
  .stats4{grid-template-columns:repeat(2,minmax(0,1fr))!important;height:auto!important;min-height:0!important;gap:10px!important}
  .metric{height:126px!important;min-height:126px!important;padding:12px!important}
  .metric>span{font-size:11px!important;line-height:1.2!important}
  .analytics-note{height:auto!important;min-height:0!important;display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;gap:8px!important;padding-top:10px!important;overflow:visible!important}
  .analytics-note>span{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;font-size:11px!important;line-height:1.25!important}
  .analytics-note .small-cta,.analytics-note a,.analytics-note button{grid-column:1/-1!important;justify-self:start!important;margin-top:6px!important}

  .card,.module-card,.quick-item{min-width:0!important;max-width:100%!important}
  .main{max-width:100%!important;overflow-x:hidden!important}
}

@media (max-width:420px){
  .artist-hero{padding-left:14px!important;padding-right:14px!important}
  .stat{padding:12px 6px!important;gap:7px!important}
  .stat svg{width:24px!important;height:24px!important}
  .preview .section-head h3{max-width:58%!important;font-size:17px!important}
  .preview-hero{height:138px!important;min-height:138px!important;max-height:138px!important}
  .preview-avatar{width:54px!important;height:54px!important;min-width:54px!important;min-height:54px!important;flex-basis:54px!important}
  .preview-copy strong{font-size:16px!important}
  .preview-footer .preview-stats>div{min-height:50px!important}
  .metric{height:122px!important;min-height:122px!important}
}
