/* Message navigation: the count is separate from legacy removable badges. */
.song-community .sc-nav .sc-unread-count{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:24px;height:22px;margin-left:auto;padding:0 6px;border-radius:11px;background:#c84a4a;color:#fff;font:600 12px/22px system-ui,sans-serif;font-variant-numeric:tabular-nums;letter-spacing:0}
.song-community .sc-unread-count[hidden],.song-community .sc-inbox-toolbar-actions[hidden]{display:none!important}
/* The preview fills one row; the complete collection opens in a secondary card. */
.song-community .sc-medals-preview .sc-medals-list{grid-template-columns:repeat(auto-fill,minmax(min(148px,100%),1fr));justify-content:start;grid-template-rows:76px;grid-auto-rows:0;row-gap:0;overflow:hidden;visibility:hidden}
.song-community .sc-medals-preview .sc-medals-list[data-sc-fitted]{visibility:visible}
.song-community .sc-medals-preview .sc-medals-list>li{min-height:0;overflow:hidden}
/* Default: hide all but first until JS measures and marks the list as fitted. */
.song-community .sc-medals-preview .sc-medals-list:not([data-sc-fitted])>li:not(:first-child){display:none}
.song-community .sc-medals-preview .sc-medals-list[data-sc-fitted]>li[hidden]{display:none}
.song-community .sc-medals-preview .sc-medal{height:76px}
.song-community .sc-medals-preview .sc-medal-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.sc-medals-view-all{display:inline-flex;align-items:center;gap:6px;min-height:36px;font-size:13px;color:var(--sc-green);white-space:nowrap}
.sc-medals-view-all .sc-icon{width:16px;height:16px}
.sc-medals-page-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.sc-medals-page-heading p{margin:8px 0 0;color:var(--sc-muted);font-size:14px}
.song-community .sc-medals-all{border:0;border-radius:18px;background:transparent}
.song-community .sc-medals-all .sc-medals-list{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}
/* A private inbox has an independent, constrained conversation list. */
.song-community .sc-inbox-body .msg-private{display:grid;grid-template-columns:minmax(190px,32%) minmax(0,1fr);gap:18px;margin:0;padding-top:16px;align-items:start}
.song-community .msg-private::before,.song-community .msg-private::after{display:none}
.song-community .sc-inbox-body .msg-private>#user_chat_lists,.song-community .sc-inbox-body .msg-private>#user_private_window{float:none;width:auto;min-width:0;margin:0;padding:0;opacity:1}
.song-community #user_chat_lists{max-height:580px!important;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.song-community .sc-inbox-body .chat-lists{padding:0;border-bottom:1px solid var(--sc-line)}
.song-community .chat-lists>a{display:block;padding:14px 10px;border-radius:10px;min-width:0}
.song-community .chat-lists>a:hover,.song-community .chat-lists.active>a{background:var(--sc-soft)}
.song-community .sc-inbox-body .chat-lists .msg-list{align-items:center;gap:10px;min-width:0}
.song-community .chat-lists .msg-list>.flex1{min-width:0;width:0;flex:1;display:flex;flex-direction:column;gap:4px}
.song-community .sc-inbox-body .chat-lists .msg-list dt{margin:0;font-size:14px;line-height:1.5;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.song-community .sc-inbox-body .chat-lists .msg-list dd{margin:0;font-size:12px;line-height:1.6;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:normal;overflow-wrap:anywhere;max-height:3.2em}
.song-community .chat-lists .msg-list .pull-right{float:none;order:3;font-size:11px;line-height:1.4;color:var(--sc-muted)}
.song-community .chat-lists .avatar-img{margin:0;--this-size:40px;width:40px;height:40px;flex:0 0 40px}
.song-community .chat-lists dd img{max-width:18px;max-height:18px;vertical-align:middle}
/* Shared chat window, including AJAX dialogs opened from profiles. */
.song-community .private-window{min-width:0;color:var(--sc-ink)}
.song-community :is(.sc-inbox-body,.modal) .private-window-header{position:relative;min-height:46px;margin:0 0 12px;padding:9px 38px 12px 0;border-bottom:1px solid var(--sc-line);font-size:15px;line-height:26px}
.song-community .private-window-header>.text-center{margin:0;text-align:left;overflow-wrap:anywhere;min-width:0}
.song-community .private-window-header .avatar-img{--this-size:28px;width:28px;height:28px;margin-right:8px;vertical-align:middle}
.song-community .private-window-header>.dropdown{position:absolute;right:0;top:5px;margin:0}
.song-community .private-window-header>.dropdown>a{display:flex;width:34px;height:34px;align-items:center;justify-content:center;border-radius:8px;background:var(--sc-neutral);color:var(--sc-muted)}
.song-community :is(.sc-inbox-body,.modal) .private-window-content{box-sizing:border-box;width:100%;height:clamp(220px,44vh,420px);min-height:160px;margin:0;padding:16px!important;overflow:auto;overscroll-behavior:contain;border:1px solid var(--sc-line);border-radius:12px;background:var(--sc-bg);scrollbar-width:thin}
.song-community .private-list{display:flex;align-items:flex-start;gap:10px;min-width:0;margin:14px 0;text-align:left}
.song-community .private-list::before,.song-community .private-list::after{display:none}
.song-community .private-list.right{flex-direction:row-reverse}
.song-community .private-list .avatar-img{float:none!important;flex:0 0 34px;--this-size:34px;width:34px;height:34px;margin:0}
.song-community :is(.sc-inbox-body,.modal) .private-content{box-sizing:border-box;display:block;min-width:0;max-width:calc(100% - 82px);min-height:34px;margin:0;padding:9px 12px;border:1px solid var(--sc-line);border-radius:12px;background:var(--sc-card);color:var(--sc-ink);font-size:14px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;text-align:left;box-shadow:none}
.song-community :is(.sc-inbox-body,.modal) .private-list.right .private-content{background:var(--sc-soft);border-color:var(--sc-line)}
.song-community .private-content::before{display:none}
.song-community .private-content img{max-width:100%;height:auto}
.song-community .private-content pre{max-width:100%;overflow:auto}
.song-community .private-content .readed-badge{width:30px;right:calc(100% + 4px);font-size:11px;transform:none;color:var(--sc-muted)}
.song-community .private-window-footer{padding-top:12px}
.song-community .from-private{display:flow-root;min-width:0;margin:0}
.song-community :is(.sc-inbox-body,.modal) .private-window-footer textarea,.song-community .private-window-footer .zce-rich-editor{box-sizing:border-box;width:100%;min-height:86px;max-height:180px;padding:12px;border:1px solid var(--sc-line);border-radius:10px;background:var(--sc-card)!important;color:var(--sc-ink);font-size:15px;line-height:1.6;resize:vertical;overflow:auto}
.song-community .private-window-footer .zce-rich-editor:focus{outline:2px solid var(--sc-soft);border-color:var(--sc-green)}
.song-community .private-window-footer .send-private{min-height:40px;min-width:76px;background:var(--sc-green)!important;color:#fff!important;border:0;border-radius:9px}
.song-community .private-window-footer .pull-right{margin:4px 0 0 8px}
.song-community .sc-private-modal .modal-dialog{width:680px;max-width:calc(100% - 28px);margin:28px auto}
.song-community .sc-private-modal .modal-body>.close{position:absolute;top:12px;right:12px;z-index:3}
.song-community .sc-private-modal .private-window-header{padding-right:76px}
.song-community .sc-private-modal .private-window-header>.dropdown{right:38px}
/* All binding steps, including the verify-old-account step. */
.song-community .sc-auth-dialog .modal-dialog{width:460px;max-width:calc(100% - 28px);margin:32px auto}
.song-community .sc-auth-dialog .modal-body>.tab-content.box-body{padding:0}
.song-community .sc-auth-dialog .step-simple{display:flex;align-items:flex-start;gap:8px;list-style:none;margin:0 0 20px;padding:0;counter-reset:sc-step}
.song-community .sc-auth-dialog .step-simple>li{flex:1;min-width:0;float:none;width:auto;margin:0;padding:0;text-align:center;color:var(--sc-muted);font-size:12px;line-height:1.5;counter-increment:sc-step}
.song-community .sc-auth-dialog .step-simple>li::before{content:counter(sc-step);position:static;display:flex;align-items:center;justify-content:center;width:24px;height:24px;margin:0 auto 6px;border-radius:50%;background:var(--sc-neutral);color:var(--sc-muted);transform:none;border:1px solid var(--sc-line);font-size:12px}
.song-community .sc-auth-dialog .step-simple>li::after{display:none}
.song-community .sc-auth-dialog .step-simple>li.active{color:var(--sc-green)}
.song-community .sc-auth-dialog .step-simple>li.active::before{background:var(--sc-soft);color:var(--sc-green);border-color:var(--sc-green)}
.song-community .sc-auth-dialog .step-simple>li>a,.song-community .sc-auth-dialog .step-simple>li>span{display:block;padding:0;background:none;color:inherit;white-space:normal}
.song-community .sc-auth-dialog .step-simple{align-items:center;gap:6px;padding:9px;background:var(--sc-bg);border:1px solid var(--sc-line);border-radius:10px;margin-bottom:18px}
.song-community .sc-auth-dialog .step-simple>li{display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px;line-height:1.6}
.song-community .sc-auth-dialog .step-simple>li::before{flex:0 0 22px;width:22px;height:22px;margin:0;font-size:11px}
.song-community .sc-auth-dialog .step-simple>li>a.hide{display:none!important}
.song-community .sc-auth-dialog .step-simple>li>a:not(.hide){text-decoration:none}
.song-community .sc-auth-dialog .sc-binding-pane>.modal-colorful-header{min-height:0;padding-bottom:16px;margin-bottom:18px}
.song-community .sc-auth-dialog .sc-binding-description{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;margin:0 0 16px;padding:12px 13px;background:var(--sc-soft);border-radius:10px;line-height:1.6}
.song-community .sc-auth-dialog .sc-binding-description-label{font-size:13px;color:var(--sc-muted)}
.song-community .sc-auth-dialog .sc-binding-description>.badg{margin:0;padding:0;background:transparent;color:var(--sc-ink);font-size:15px;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.song-community .sc-auth-dialog .sc-binding-pane .sc-auth-form>.mb20{margin-bottom:16px}
.song-community .sc-auth-dialog .sc-binding-pane .sc-auth-form .line-form{margin:12px 0 0}
.song-community .sc-auth-dialog .sc-binding-pane .sc-auth-form .line-form-input{height:44px;padding-block:9px!important}
.song-community .sc-auth-dialog .sc-binding-pane .sc-auth-form .line-form>.yztx{height:44px}
.song-community .sc-auth-dialog .sc-binding-pane .sc-auth-form .line-form>.yztx .captchsubmit{height:44px;min-height:44px;border:1px solid var(--sc-line);background:var(--sc-card);border-radius:9px}
.song-community .sc-auth-dialog .sc-binding-pane .user-verify-submit{min-height:44px;margin-top:0;padding:10px 14px}
.song-community .sc-auth-dialog :is(p,.badg){overflow-wrap:anywhere;white-space:normal}
.song-community .sc-auth-form .line-form:has(>.yztx){display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:7px 8px;align-items:end}
.song-community .sc-auth-form .line-form:has(>.yztx)>.scale-placeholder{grid-column:1/-1;grid-row:1}
.song-community .sc-auth-form .line-form:has(>.yztx)>.line-form-input{grid-column:1;grid-row:2;padding-right:13px!important;min-width:0}
.song-community .sc-auth-form .line-form>.yztx{position:static!important;grid-column:2;grid-row:2;height:48px;transform:none;display:flex;align-items:center;margin:0}
.song-community .sc-auth-form .line-form>.yztx .captchsubmit{min-height:44px;white-space:nowrap;font-size:12px;padding:8px 10px}
.song-community .sc-auth-form .line-form:has(>.yztx)>.match-ok{right:0;bottom:auto;top:0;height:20px}
.song-community .sc-auth-form .user-verify-submit{min-height:46px;border-radius:10px;width:100%;margin-top:8px}
.song-community .sc-account-security .oauth-bind-box{width:100%;max-width:760px}
.song-community .sc-account-security .oauth-bind-box.gutters-5{grid-template-columns:minmax(0,1fr);gap:10px}
.song-community .sc-account-security .oauth-bind-box>div{width:100%;margin:0}
.song-community .sc-account-security .oauth-bind-box .muted-box{display:grid;grid-template-columns:148px minmax(0,1fr) 104px;align-items:center;gap:14px;width:100%;min-height:76px}
.song-community .sc-account-security .oauth-bind-box .muted-box>.type-logo{grid-column:1;grid-row:1;min-width:0;font-size:14px}
.song-community .sc-account-security .oauth-bind-box .muted-box>:last-child{grid-column:3;grid-row:1;justify-self:end;margin:0;padding:0;white-space:nowrap}
.song-community .sc-account-security .oauth-bind-box .muted-box>:nth-child(2):not(:last-child){grid-column:2;grid-row:1;min-width:0;margin:0;padding:0;overflow-wrap:anywhere}
.song-community .sc-account-security .oauth-bind-box .muted-box>:nth-child(2):not(:last-child)>div{margin-inline:0}
.song-community .sc-account-security .oauth-bind-box .muted-box .but{min-width:54px}
.song-community .sc-account-security .oauth-bind-box .muted-box>:last-child .but{margin:0}
.song-community .sc-account-security .oauth-bind-box .overflow-hidden{min-width:0}
.song-community .sc-account-security .oauth-bind-box .text-ellipsis{white-space:normal;overflow-wrap:anywhere;line-height:1.6}
.song-community .sc-profile-form>.sc-profile-rename-note{display:flex;align-items:center;gap:10px;flex-wrap:wrap;grid-template-columns:none;padding:13px 15px;margin:0 0 22px;font-size:13px;line-height:1.7}
.song-community .sc-profile-rename-note>span{flex:1;min-width:0}
.song-community .sc-profile-rename-note a{display:inline-block;margin-left:8px;color:var(--sc-green);white-space:nowrap}
.song-community .sc-profile-form>.sc-profile-rename-note+.mb30{align-items:center;padding-bottom:22px;margin-bottom:24px;border-bottom:1px solid var(--sc-line)}
.song-community .sc-profile-form>.sc-profile-rename-note+.mb30 .author-set-left{padding-top:0}
.song-community .sc-profile-form>.sc-profile-rename-note+.mb30 .author-set-right{font-size:13px;line-height:1.7}
.song-community .sc-profile-form>.sc-profile-rename-note+.mb30 .flex{gap:9px;flex-wrap:wrap;min-width:0;overflow-wrap:anywhere}
@media(min-width:768px){
 .song-community .sc-inbox-body .msg-private>#user_chat_lists,.song-community .sc-inbox-body .msg-private>#user_private_window{display:block;opacity:1}
 .song-community .sc-inbox-body .private-window-header>.visible-xs-block{display:none!important}
}
@media(max-width:767px){
 .song-community .sc-inbox-layout{grid-template-columns:minmax(0,1fr);gap:14px}
 .song-community .sc-inbox-folders{position:static;padding:8px;margin:0}
 .song-community .sc-inbox-folders h2,.song-community .sc-inbox-account-link{display:none}
 .song-community .sc-inbox-folders .tab-nav-theme{flex-direction:row;flex-wrap:nowrap;gap:4px;overflow-x:auto;white-space:nowrap}
 .song-community .sc-inbox-folders .tab-nav-theme>li{flex:0 0 auto}
 .song-community .sc-inbox-folders .tab-nav-theme>li>a{min-height:44px;padding:9px 12px;gap:6px;font-size:13px}
 .song-community .sc-inbox-folders .sc-icon{width:17px;height:17px}
 .song-community .sc-inbox-folders badge{margin-left:2px}
 .song-community .sc-inbox-body{padding:0 14px 16px}
 .song-community .sc-inbox-body .msg-private{display:block;padding-top:12px}
 .song-community .sc-inbox-body .msg-private:not(.toggle)>#user_chat_lists,.song-community .sc-inbox-body .msg-private.toggle>#user_private_window{display:block;opacity:1}
 .song-community .sc-inbox-body .msg-private.toggle>#user_chat_lists,.song-community .sc-inbox-body .msg-private:not(.toggle)>#user_private_window{display:none}
 .song-community #user_chat_lists{max-height:none!important;overflow:visible}
 .song-community .sc-inbox-body .msg-private>#user_private_window{border:0;padding:0}
 .song-community .sc-inbox-body .private-window-header{padding-left:0;padding-top:42px}
 .song-community .sc-inbox-body .private-window-header>.visible-xs-block{display:block!important;position:absolute;top:0;left:0;height:36px;line-height:36px;font-size:13px;transform:none}
 .song-community :is(.sc-inbox-body,.modal) .private-window-content{height:clamp(180px,42vh,400px);height:clamp(160px,42dvh,400px);padding:12px!important}
 .song-community :is(.sc-inbox-body,.modal) .private-window-footer textarea,.song-community .private-window-footer .zce-rich-editor{font-size:16px;min-height:80px;max-height:140px}
 .song-community .sc-private-modal .modal-dialog{margin:12px auto;max-width:calc(100% - 20px);width:100%}
 .song-community .sc-private-modal .modal-content{max-height:calc(100dvh - 24px);overflow-y:auto}
 .song-community .sc-private-modal .modal-body{padding:18px 14px calc(16px + env(safe-area-inset-bottom))}
 .song-community .sc-private-modal .private-window-header{padding:5px 76px 12px 0}
 .song-community .sc-private-modal .private-window-content{height:clamp(140px,calc(100dvh - 310px),420px)}
 .song-community .sc-auth-dialog .modal-dialog{margin:16px auto}
 .song-community .sc-auth-dialog .modal-content{max-height:calc(100dvh - 32px);overflow-y:auto}
 .song-community .sc-auth-dialog .line-form-input{font-size:16px}
 .song-community .sc-account-security .oauth-bind-box .muted-box{grid-template-columns:minmax(0,1fr) 104px;gap:8px 10px;padding:13px!important}
 .song-community .sc-account-security .oauth-bind-box .muted-box>:last-child{grid-column:2;grid-row:1}
 .song-community .sc-account-security .oauth-bind-box .muted-box>:nth-child(2):not(:last-child){grid-column:1/-1;grid-row:2;padding-left:46px;order:0}
 .song-community .sc-auth-dialog .step-simple{padding:9px 5px;gap:4px}
 .song-community .sc-auth-dialog .step-simple>li{flex-direction:column;gap:4px;font-size:11px}
 .song-community .sc-profile-form>.sc-profile-rename-note+.mb30{grid-template-columns:62px minmax(0,1fr);gap:14px}
 .song-community .sc-medals-preview .sc-medals-list{grid-template-columns:repeat(auto-fill,minmax(min(124px,100%),1fr))}
 .song-community .sc-medals-all .sc-medals-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:360px){.song-community .sc-medals-all .sc-medals-list{grid-template-columns:minmax(0,1fr)}}

/* This layer sits below Zibll's detail modal/backdrop, retaining its native actions. */
body.sc-medals-open{overflow:hidden}
.song-community .sc-medals-list>li[hidden]{display:none!important}
.song-community .sc-medals-dialog{position:fixed;inset:0;z-index:1040;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(16,22,19,.46);opacity:0;transition:opacity .18s ease;outline:none;overscroll-behavior:contain}
.song-community .sc-medals-dialog.is-open{opacity:1;transition-duration:.22s}
.song-community .sc-medals-dialog-panel{display:flex;flex-direction:column;width:680px;max-width:100%;max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);min-width:0;overflow:hidden;border:1px solid var(--sc-line);border-radius:20px;background:var(--sc-card);color:var(--sc-ink);box-shadow:0 24px 80px #0003;transform:translateY(10px) scale(.985);transition:transform .18s ease}
.song-community .sc-medals-dialog.is-open .sc-medals-dialog-panel{transform:translateY(0) scale(1);transition-duration:.22s}
.song-community .sc-medals-dialog.is-suspended{pointer-events:none}
.song-community .sc-medals-dialog.is-suspended .sc-medals-dialog-panel{transform:scale(.985)}
.song-community .sc-medals-dialog-header{display:flex;align-items:center;justify-content:space-between;flex:none;gap:16px;padding:16px 20px;border-bottom:1px solid var(--sc-line)}
.song-community .sc-medals-dialog-header h2{margin:0;font-size:18px;line-height:1.5;color:var(--sc-ink)}
.song-community .sc-medals-dialog-header .sc-icon-button{font-size:26px;line-height:1;min-width:44px;min-height:44px}
.song-community .sc-medals-dialog-body{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.song-community .sc-medals-dialog .sc-medals-all{padding:20px;background:transparent}
.song-community .sc-medals-dialog .sc-medals-list{grid-template-columns:repeat(auto-fill,minmax(min(180px,100%),1fr))}
.song-community .sc-medals-view-all{transition:color .16s ease,background-color .16s ease}
.song-community .sc-medals-view-all:focus-visible{outline:2px solid var(--sc-green);outline-offset:3px;border-radius:4px}
@media(max-width:767px){
 .song-community .sc-medals-dialog{padding:12px}
 .song-community .sc-medals-dialog-panel{max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);border-radius:16px}
 .song-community .sc-medals-dialog-header{padding:12px 14px}
 .song-community .sc-medals-dialog .sc-medals-all{padding:16px 14px calc(16px + env(safe-area-inset-bottom))}
 .song-community .sc-medals-dialog .sc-medals-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
}
@media(max-width:360px){.song-community .sc-medals-dialog .sc-medals-list{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){
 .song-community .sc-medals-dialog,.song-community .sc-medals-dialog-panel,.song-community .sc-medals-view-all{transition:none!important}
 .song-community .sc-medals-dialog .sc-medals-dialog-panel{transform:none!important}
}
