/* MMP 2026-11-13 — Mobile community-only presentation.
   Desktop layout, production workspaces, profile toggle and shared board logic are untouched. */
.mmp-mobile-notice,.mmp-mobile-shortcuts{display:none;}
@media screen and (max-width:767px){
  html,body{min-width:0!important;max-width:100%!important;overflow-x:clip!important;}
  body .app{width:100%!important;max-width:100%!important;min-width:0!important;}
  body .app>.topbar{min-height:55px!important;padding:8px 14px!important;gap:0!important;justify-content:flex-start!important;}
  body .app>.topbar .brand{flex:1 1 auto!important;min-width:0!important;}
  body .app>.topbar .brand h1{font-size:16px!important;}
  /* PC-only tools and AI/Suno action shortcuts cannot crowd the mobile header. */
  body .app>.topbar>.top-actions,body .app>.topbar>.mode-presence-area{display:none!important;}
  body .app #mmpPrimaryNav{min-height:52px!important;padding:5px 11px 7px!important;gap:7px!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-start!important;}
  body .app #mmpPrimaryNav>.settings-mode-switch,
  body .app #mmpPrimaryNav>.mmp-menu-group,
  body .app #mmpPrimaryNav>.mmp-primary-video,
  body .app #mmpPrimaryNav>#mmpAdminPageBtn,
  body .app #mmpPrimaryNav>#mmpAdminLogoutBtn{display:none!important;}
  body .app #mmpPrimaryNav>.mmp-primary-link[data-page="home"],
  body .app #mmpPrimaryNav>#communitySettingsModeBtn{
    display:inline-flex!important;flex:0 0 auto!important;min-height:41px!important;
    padding:0 15px!important;border-radius:11px!important;gap:7px!important;
  }
  body .app #mmpPrimaryNav>.mmp-primary-link strong{font-size:14px!important;}
  body .app #mmpPrimaryNav .mmp-home-house-icon,
  body .app #mmpPrimaryNav .mmp-home-house-icon svg{width:19px!important;height:19px!important;flex-basis:19px!important;}
  /* Informational notice is permanently visible on mobile, without a popup. */
  body .app #mmpMobileNotice{
    display:flex!important;box-sizing:border-box;width:100%!important;flex:0 0 100%!important;
    align-items:center;gap:10px;padding:10px 12px!important;margin:2px 0 0!important;
    background:var(--editorial-soft,#f3effc);color:var(--editorial-text,#332943);
    border:1px solid var(--editorial-line,#e0d5f2);border-radius:11px;
    line-height:1.45;min-width:0;
  }
  body .app #mmpMobileNotice .mmp-mobile-notice-icon{font-size:20px;flex:0 0 auto;}
  body .app #mmpMobileNotice strong{display:block;font-size:12px;font-weight:800;word-break:keep-all;}
  body .app #mmpMobileNotice small{display:block;font-size:11px;margin-top:2px;opacity:.82;word-break:keep-all;}
  /* Production is still present in source for desktop, but not available in mobile UI. */
  body .app> :is(.workspace,.playlist-album-workspace,.bgm-workspace,.cutscene-workspace,.video-workspace,.youtube-workspace,.mastering-workspace,.stem-mastering-workspace){display:none!important;}
  #mmpGenreInsights,#mmpPlayer{display:none!important;}
  /* Home layout: one compact weekly chart, direct board access, then existing posts. */
  body .app #mmpLanding.mmp-community-home{padding:11px 10px 26px!important;width:100%!important;}
  body .app #mmpLanding>.mmp-home-weekly{padding:12px!important;margin:0 0 9px!important;}
  body .app #mmpLanding>.mmp-home-weekly .mmp-home-heading{
    flex-direction:column!important;align-items:stretch!important;gap:8px!important;min-height:0!important;
  }
  body .app #mmpLanding>.mmp-home-weekly .mmp-chart-title-row{
    display:flex!important;align-items:center!important;flex-wrap:wrap!important;justify-content:space-between!important;
    gap:6px!important;width:100%!important;
  }
  body .app #mmpLanding>.mmp-home-weekly .mmp-chart-title-row h2{
    font-size:16px!important;line-height:1.35!important;margin:0!important;
  }
  body .app #mmpLanding>.mmp-home-weekly .mmp-chart-title-row>button{
    padding:6px 8px!important;font-size:11px!important;min-height:32px!important;
  }
  body .app #mmpLanding>.mmp-home-weekly .mmp-home-heading #mmpGreetingMainButton{
    align-self:flex-end!important;min-width:0!important;min-height:34px!important;
    height:34px!important;width:auto!important;padding:0 13px!important;margin:0!important;
    border-radius:9px!important;font-size:12px!important;box-shadow:none!important;
  }
  body .app #mmpLanding>.mmp-home-weekly .mmp-home-weekly-meta{
    font-size:11px!important;line-height:1.45!important;margin:7px 0!important;overflow-wrap:anywhere;
  }
  body .app #mmpHomeWeekly{min-width:0!important;width:100%!important;}
  body .app #mmpHomeWeekly>.mmp-home-chart-cards{
    display:flex!important;grid-template-columns:none!important;flex-wrap:nowrap!important;
    width:100%!important;max-width:100%!important;gap:10px!important;
    overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-x:contain!important;
    scroll-snap-type:x mandatory;scroll-padding-inline:0;
    -webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;
    scrollbar-width:thin;padding:3px 1px 10px!important;box-sizing:border-box!important;
  }
  body .app #mmpHomeWeekly>.mmp-home-chart-cards>.mmp-home-track{
    flex:0 0 83%!important;max-width:83%!important;min-width:0!important;
    scroll-snap-align:start;scroll-snap-stop:always;
  }
  body .app #mmpHomeWeekly .mmp-home-track-art{margin:7px 7px 0!important;aspect-ratio:16/9!important;}
  body .app #mmpHomeWeekly .mmp-home-track-content{padding:9px 11px 10px!important;gap:5px!important;}
  body .app #mmpHomeWeekly .mmp-home-track-title{font-size:13px!important;line-height:1.4!important;}
  body .app #mmpHomeWeekly .mmp-home-track-author,
  body .app #mmpHomeWeekly .mmp-home-track-votes{font-size:11px!important;}
  body .app #mmpLanding>.mmp-home-weekly:has(.mmp-home-chart-cards)::after{
    content:'← 좌우로 밀어 1~3위를 확인하세요 →';display:block;
    margin:0;padding-top:0;font-size:11px;text-align:center;opacity:.68;
  }
  body .app #mmpLanding .mmp-mobile-shortcuts{
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));
    gap:7px!important;margin:0 0 12px!important;padding:0!important;
  }
  body .app #mmpLanding .mmp-mobile-shortcuts button{
    min-width:0;min-height:44px;padding:7px 4px;border-radius:11px;
    border:1px solid var(--editorial-line,#e3dbe9);background:var(--editorial-card,#fff);
    color:var(--editorial-text,#302b38);font:inherit;font-size:12px;
    line-height:1.3;font-weight:750;white-space:nowrap;cursor:pointer;
  }
  body .app #mmpLanding .mmp-mobile-shortcuts button:focus-visible{
    outline:2px solid var(--editorial-accent,#7351d8);outline-offset:2px;
  }
  /* Preserve greetings but avoid the 196px PC banner on a narrow viewport. */
  body .app #mmpLanding>.mmp-home-hero.mmp-greeting-marquee-hero{
    min-height:76px!important;height:76px!important;max-height:76px!important;
    margin-bottom:11px!important;border-radius:13px!important;
  }
  body .app #mmpLanding .mmp-greeting-marquee-message{font-size:clamp(12px,3.8vw,16px)!important;}
  body .app #mmpLanding .mmp-home-grid{grid-template-columns:minmax(0,1fr)!important;gap:10px!important;margin-top:10px!important;}
  body .app #mmpLanding .mmp-home-card{padding:13px!important;border-radius:13px!important;}
  body .app #mmpLanding .mmp-home-heading h2{font-size:16px!important;}
  body .app #mmpLanding .mmp-home-heading button{font-size:11px!important;}
  body .app #mmpLanding .mmp-home-post-title{font-size:13px!important;line-height:1.45!important;}
  body .app #mmpLanding .mmp-home-post-meta{font-size:11px!important;}
  /* The desktop's future-feature placeholders are irrelevant to the mobile board. */
  body .app #mmpLanding .mmp-home-upcoming-group{display:none!important;}
  /* Board entry, editor and list must use the full phone width. */
  body #communityBoardWorkspace{
    box-sizing:border-box!important;width:100%!important;max-width:100%!important;
    min-width:0!important;margin:0 auto!important;padding:10px!important;
  }
  body #communityBoardWorkspace .community-board-shell{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;}
  body #communityBoardWorkspace .community-board-head{gap:8px!important;flex-wrap:wrap!important;}
  body #communityBoardWorkspace .community-board-head h2{font-size:18px!important;}
  body #communityBoardWorkspace .board-category-tabs{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    width:100%!important;max-width:100%!important;gap:7px!important;
  }
  body #communityBoardWorkspace .board-category-tabs .board-category-tab{
    min-width:0!important;min-height:52px!important;padding:8px!important;
    gap:7px!important;justify-content:flex-start!important;
  }
  body #communityBoardWorkspace .board-category-tabs .board-category-tab strong{font-size:12px!important;white-space:normal!important;line-height:1.3!important;}
  body #communityBoardWorkspace .board-category-tabs .board-category-tab small{font-size:10px!important;white-space:normal!important;}
  body #communityBoardWorkspace .board-category-tabs .board-category-tab .board-tab-icon{
    width:25px!important;flex:0 0 25px!important;height:auto!important;font-size:18px!important;
  }
  body #communityBoardWorkspace .board-share-category-filter{
    padding:10px 9px!important;gap:6px!important;
  }
  body #communityBoardWorkspace .board-share-filter-button{padding:8px 10px!important;font-size:12px!important;min-height:37px!important;}
  body #communityBoardWorkspace :is(.board-toolbar,.board-detail,.board-editor,.board-detail-head,.board-detail-body){min-width:0!important;max-width:100%!important;box-sizing:border-box!important;overflow-wrap:anywhere!important;}
  body #communityBoardWorkspace :is(input,textarea,select){max-width:100%;box-sizing:border-box;}
  /* Two-column mobile music sharing gallery, with readable cards. */
  body #communityBoardWorkspace .community-board-view.is-share-gallery #boardPostList{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;
  }
  /* Existing floating profile toggle, expanded panel, friend and chat controls are not overridden. */
}
@media screen and (max-width:360px){
 body .app #mmpHomeWeekly>.mmp-home-chart-cards>.mmp-home-track{flex-basis:89%!important;max-width:89%!important;}
 body .app #mmpLanding .mmp-mobile-shortcuts button{font-size:11px!important;}
}
