/* Shared surfaces. Keep colour for status and primary actions, not every label. */
body.song-community{--sc-surface-solid:#fff;--sc-neutral:#f5f6f7;--sc-neutral-line:#e5e8eb;--sc-neutral-ink:#52606b;--sc-danger:#b94747;--sc-danger-soft:#fff3f2}
body.song-community.dark-theme{--sc-surface-solid:#1b1b1d;--sc-neutral:#242426;--sc-neutral-line:#353538;--sc-neutral-ink:#c3c3c9;--sc-danger:#f29696;--sc-danger-soft:#3d292b}
html:has(body.song-community){scrollbar-gutter:stable}
@supports(scrollbar-gutter:stable){body.song-community.modal-open{padding-right:0!important}.song-community .modal{padding-left:0!important;padding-right:0!important}}
@supports not (scrollbar-gutter:stable){html:has(body.song-community){overflow-y:scroll}.song-community.modal-open{overflow-y:visible!important}}
.song-community.sc-native-modal-open{overflow:hidden}
.song-community .sc-level-badge{background:var(--sc-neutral)!important;color:var(--sc-neutral-ink)!important;border:1px solid var(--sc-neutral-line)!important;border-radius:20px!important;gap:5px;padding:5px 10px!important;box-shadow:inset 0 1px 0 #ffffff14;font:600 12px/1.2 system-ui,sans-serif;letter-spacing:.02em}
.song-community .sc-level-badge>span{font-size:9px;opacity:.65;letter-spacing:.08em}.song-community .sc-level-badge>b{font-size:14px;font-weight:650}
.song-community .comment-header .sc-level-badge{padding:3px 7px!important}.song-community .comment-header .sc-level-badge>b{font-size:11px}
.song-community .sc-level-card{background:var(--sc-neutral);border-color:var(--sc-neutral-line)}
.song-community .sc-public-profile .sc-profile-facts{gap:8px;padding:2px 28px 22px;background:transparent}
.song-community .sc-public-profile .sc-profile-facts>*{display:inline-flex;align-items:center;gap:5px;box-sizing:border-box;min-height:28px;margin:0!important;padding:4px 9px!important;border:0!important;border-radius:4px!important;background:var(--sc-neutral)!important;color:var(--sc-neutral-ink)!important;font-size:13px!important;line-height:1.4!important;white-space:normal}
.song-community .sc-profile-facts>a:hover{color:var(--sc-green)!important}.song-community .sc-profile-facts>*>.icon{color:var(--sc-muted)}
.song-community .sc-profile-facts .user-auth-icon{color:#5489b5!important}
.song-community :is(.sc-public-profile,.sc-search-results) :is(.item-tags,.item-meta) :is(.but,.badg){background:var(--sc-neutral)!important;color:var(--sc-neutral-ink)!important;border:1px solid var(--sc-neutral-line)!important;border-radius:5px;padding:3px 7px;box-shadow:none}
.song-community .sc-category-tag,.song-community .sc-article-kicker>a{background:var(--sc-neutral);color:var(--sc-neutral-ink);border:1px solid var(--sc-neutral-line)}
.song-community .sc-settings-nav>a:not(.is-active):hover{background:var(--sc-neutral)}
/* Account providers share one icon size and one quiet card, including AJAX tabs. */
.song-community .account-set .box-body{padding:0;margin-bottom:28px}
.song-community .account-set .box-body:last-child{margin-bottom:0}
.song-community .oauth-bind-box{gap:12px;margin:0}
.song-community .oauth-bind-box.gutters-5{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.song-community .oauth-bind-box.gutters-5>div{width:auto}
.song-community .oauth-bind-box>div{padding:0;min-width:0}
.song-community .oauth-bind-box .muted-box{background:var(--sc-surface-solid)!important;border:1px solid var(--sc-neutral-line);border-radius:12px;padding:16px!important;gap:14px;box-shadow:none;min-height:76px}
.song-community .oauth-bind-box .type-logo{gap:10px;flex-shrink:0;font-size:14px}
.song-community .oauth-bind-box .type-logo>span:first-child{background:var(--sc-neutral)!important;color:var(--sc-neutral-ink)!important;width:36px;height:36px;min-width:36px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;margin:0!important;padding:8px;line-height:1}
.sc-provider-icon{width:21px;height:21px;display:block;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
/* The parent social-login rule sets white on the SVG itself, not just its holder. */
.song-community .oauth-bind-box .type-logo .sc-provider-icon{color:var(--sc-neutral-ink)!important;fill:none!important;stroke:currentColor;opacity:1;filter:none}
.song-community .oauth-bind-box .type-logo .sc-provider-icon :is(path,circle,rect){fill:none;stroke:currentColor}
.song-community .oauth-bind-box .but{transition:background-color .16s ease,color .16s ease,box-shadow .16s ease}
@media(prefers-reduced-motion:reduce){.song-community .oauth-bind-box .but{transition:none}}
.song-community .oauth-bind-box .muted-2-color{font-size:13px;color:var(--sc-muted)}
.song-community .oauth-bind-box .but{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:6px 13px!important;border:1px solid var(--sc-neutral-line)!important;background:var(--sc-surface-solid)!important;color:var(--sc-neutral-ink)!important;border-radius:8px;font-size:13px;line-height:1.4;box-shadow:none}
.song-community .oauth-bind-box .but:hover{background:var(--sc-neutral)!important;color:var(--sc-ink)!important}
.song-community :is(.oauth-bind-box,.modal) :is(.oauth-untying,.sc-danger-action){color:var(--sc-danger)!important;border-color:transparent!important;background:var(--sc-danger-soft)!important}
.song-community :is(.oauth-bind-box,.modal) :is(.oauth-untying,.sc-danger-action):hover{box-shadow:inset 0 0 0 1px var(--sc-danger)!important}
/* All Bootstrap AJAX dialog families inherit the same opaque sheet. */
.song-community .modal{color:var(--sc-ink)}
.song-community .modal-content{background:var(--sc-surface-solid)!important;border:1px solid var(--sc-line)!important;border-radius:20px!important;box-shadow:0 20px 85px #142b2438!important;overflow:hidden}
.song-community .modal-body{padding:26px}
.song-community .modal-body:has(.sc-image-editor){padding:0}
.song-community .modal :is(.modal-header,.modal-footer){border-color:var(--sc-line);padding:20px 26px}
.song-community .modal :is(.modal-colorful-header,.colorful-header){position:relative;inset:auto;height:auto;min-height:76px;background:var(--sc-surface-solid)!important;color:var(--sc-ink)!important;border-bottom:1px solid var(--sc-line);border-radius:0;padding:0 38px 20px 0;margin:0 0 22px;justify-content:flex-start;text-align:left;--this-color:var(--sc-ink)}
.song-community .modal .modal-colorful-header+*{margin-top:0!important}
.song-community .modal :is(.modal-colorful-header,.colorful-header)>.colorful-make{display:none}
.song-community .modal .modal-colorful-header>.text-center{display:flex;align-items:center;gap:13px;text-align:left}
.song-community .modal .modal-colorful-header .em2x,.song-community .modal .modal-colorful-header .em3x{display:flex;align-items:center;justify-content:center;width:43px;height:43px;flex:0 0 43px;background:var(--sc-neutral);color:var(--sc-neutral-ink);border-radius:12px;font-size:22px}
.song-community .modal .modal-colorful-header .em12{font-size:19px;line-height:1.5;padding:0;margin:0;font-weight:600}
.song-community .modal .close{width:30px;height:30px;display:flex;align-items:center;justify-content:center;color:var(--sc-muted)!important;background:var(--sc-neutral);border-radius:50%;opacity:1;box-shadow:none;text-shadow:none;top:18px;right:18px;font-size:16px}
.song-community .modal .modal-colorful-header>.close{top:3px;right:0}
.song-community .modal .close:hover{color:var(--sc-ink)!important;background:var(--sc-line)}
/* Compact dismiss controls across native dialogs and secondary panels. */
@media(prefers-reduced-motion:reduce){.song-community :is(dialog,.modal,[data-nc-tools],[data-nc-editor],.sc-restored-modal-heading,.sc-restored-medal-toolbar) button{transition:none!important}}
.song-community :is(dialog,.modal,[data-nc-tools],[data-nc-editor],.sc-restored-modal-heading,.sc-restored-medal-toolbar) :is(button[data-sc-close][aria-label],button[data-nc-close],button[data-nc-tool-close],button[data-ne-tool-close],button[data-sc-medal-detail-close],button.sc-nac-close,button.sc-provider-close,button.close,button.sc-icon-button[aria-label^="关闭"],button[data-dismiss="modal"][aria-label^="关闭"]){box-sizing:border-box;align-items:center;justify-content:center;flex:0 0 32px;width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;max-width:32px!important;max-height:32px!important;padding:0!important;border:0;border-radius:8px;background:transparent;color:var(--sc-muted);font-size:18px;line-height:1;box-shadow:none;text-shadow:none;cursor:pointer;transition:background-color .16s,color .16s}
.song-community :is(dialog,.modal,[data-nc-tools],[data-nc-editor],.sc-restored-modal-heading,.sc-restored-medal-toolbar) :is(button[data-sc-close][aria-label],button[data-nc-close],button[data-nc-tool-close],button[data-ne-tool-close],button[data-sc-medal-detail-close],button.sc-nac-close,button.sc-provider-close,button.close,button.sc-icon-button[aria-label^="关闭"],button[data-dismiss="modal"][aria-label^="关闭"]):hover{background:var(--sc-neutral);color:var(--sc-ink)}
@media(pointer:coarse){.song-community :is(dialog,.modal,[data-nc-tools],[data-nc-editor],.sc-restored-modal-heading,.sc-restored-medal-toolbar) :is(button[data-sc-close][aria-label],button[data-nc-close],button[data-nc-tool-close],button[data-ne-tool-close],button[data-sc-medal-detail-close],button.sc-nac-close,button.sc-provider-close,button.close,button.sc-icon-button[aria-label^="关闭"],button[data-dismiss="modal"][aria-label^="关闭"]){flex-basis:40px;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;max-width:40px!important;max-height:40px!important}}
.song-community .modal .muted-box,.song-community .modal .zib-widget{border:1px solid var(--sc-line);border-radius:12px;background:var(--sc-neutral);box-shadow:none}
.song-community .modal .form-control,.song-community .modal .line-form-input{background:var(--sc-surface-solid)!important;border:1px solid var(--sc-neutral-line)!important;color:var(--sc-ink);border-radius:10px;min-height:42px;font-size:14px;box-shadow:none}
.song-community .modal textarea.form-control{padding:12px;resize:vertical}
.song-community .modal :is(.but,.btn){border-radius:9px;line-height:1.5;font-size:14px;padding:8px 14px;border:1px solid transparent;box-shadow:none;transition:background-color .18s,color .18s,box-shadow .18s}
.song-community .modal :is(.but,.btn):is(.c-blue,.c-yellow,.c-yellow-2,.c-purple,.hollow){background:var(--sc-neutral)!important;color:var(--sc-neutral-ink)!important;border-color:var(--sc-neutral-line)!important}
.song-community .modal :is(.but,.btn):is(.jb-blue,.b-blue,.wp-ajax-submit,.send-private),.song-community .modal .modal-buts>.but:not([data-dismiss]):not(.c-red):not(.sc-danger-action){background:var(--sc-green)!important;color:#fff!important;border-color:transparent!important}
.song-community .modal :is(.but,.btn):is(.c-red,.sc-danger-action,.oauth-untying){background:var(--sc-danger-soft)!important;color:var(--sc-danger)!important;border-color:transparent!important}
.song-community .modal :is(.but,.btn)[data-dismiss]{background:var(--sc-neutral)!important;color:var(--sc-neutral-ink)!important;border-color:var(--sc-neutral-line)!important}
.song-community .modal :is(.but,.btn):hover{filter:brightness(.98)}
.song-community .modal .title-h-left,.song-community .modal .border-title{font-size:16px;font-weight:600}
.song-community .modal .tab-nav-theme{font-size:14px;gap:14px}
.song-community .modal .tab-content{border-radius:12px}
.song-community .modal .badg,.song-community .modal badge{border-radius:6px}
/* Sign-in rewards: calm earned/upcoming states instead of neon colour blocks. */
.song-community .sc-checkin-modal .modal-dialog{width:460px;max-width:calc(100% - 28px)}
.song-community .sc-checkin-modal .modal-body>.flex,.song-community .sc-checkin-modal .modal-body>.mb20{font-size:14px}
.song-community .sc-checkin-modal :is(.c-blue,.c-purple,.c-green){color:var(--sc-neutral-ink);background:var(--sc-neutral)}
.song-community .sc-checkin-modal .checkin-mini-box{display:flex;flex-direction:column;gap:5px;padding:0 3px}
.song-community .sc-checkin-modal .checkin-mini-box .badg{display:block;margin:0;padding:7px 2px;line-height:1.6;border:1px solid var(--sc-neutral-line);border-radius:8px;font-size:12px;font-weight:600}
.song-community .sc-checkin-modal .checkin-mini-box :is(.b-green,.b-purple){background:#e7efe8!important;color:#41624a!important;border-color:#d2dfd5}
.song-community.dark-theme .sc-checkin-modal .checkin-mini-box :is(.b-green,.b-purple){background:#303034!important;color:#e0e0e5!important;border-color:#47474d}
.song-community .sc-checkin-modal .checkin-mini-box :is(.c-green,.c-purple){background:var(--sc-neutral)!important;color:var(--sc-muted)!important}
.song-community .sc-checkin-modal .checkin-mini-box+.smail{font-size:11px;background:transparent!important}
.song-community .sc-checkin-modal .modal-body>.mt10{padding-top:5px}
.song-community .sc-checkin-modal .zib-widget{padding:16px;margin-bottom:22px}
.song-community .sc-checkin-modal .zib-widget .c-blue{background:transparent;color:#55785b}
.song-community .sc-checkin-modal badge{padding:2px 6px;background:var(--sc-neutral);font-size:12px}
.song-community .sc-checkin-modal .muted-box{padding:14px!important}
/* Private messages and management retain their actual interaction hooks. */
.song-community .modal .private-window-header{padding:4px 34px 19px 0;margin-bottom:16px;border-bottom:1px solid var(--sc-line);font-size:16px}
.song-community .modal .private-window-content{padding:15px 13px!important;border-radius:12px;background:var(--sc-neutral);height:min(45vh,400px);min-height:180px;overflow:auto}
.song-community .modal .private-window-footer{padding-top:15px}
.song-community .modal .private-window-footer textarea{background:var(--sc-surface-solid)!important}
.song-community .modal .private-content{background:var(--sc-surface-solid);border:1px solid var(--sc-neutral-line);border-radius:12px;color:var(--sc-ink);box-shadow:none}
.song-community .modal .private-list.right .private-content{background:var(--sc-soft);border-color:var(--sc-line)}
.song-community .modal .private-content:before{display:none}
.song-community .um-modal-width .muted-box{padding:18px!important}.song-community .um-modal-width .um-asset-input{color:var(--sc-ink);font-size:24px}
.song-community .modal .social-login-item{box-shadow:none}
/* Motion is never a prerequisite for seeing content. */
.song-community .modal.fade{transition:opacity .2s ease}
.song-community .modal.fade .modal-dialog{transform:translateY(12px) scale(.985);transition:transform .22s ease,opacity .2s ease;opacity:0}
.song-community .modal.in .modal-dialog{transform:translateY(0) scale(1);opacity:1}
.song-community .modal.in.modal-parent .modal-dialog{transform:scale(.985);opacity:.85}
.song-community .modal-backdrop{background:#18271f;transition:opacity .2s ease}.song-community .modal-backdrop.in{opacity:.4}
.song-community dialog[open]{animation:sc-sheet-in .22s ease both}
.song-community dialog[open]::backdrop{animation:sc-backdrop-in .22s ease both}
.song-community dialog.sc-dialog-closing{animation:sc-sheet-out .18s ease both}
.song-community dialog.sc-dialog-closing::backdrop{animation:sc-backdrop-out .18s ease both}
.song-community :is(.sc-post-card,.sc-medal,.sc-account-entry,.sc-settings-nav>a,.sc-feed-tabs a,.sc-store-tabs a){transition:background-color .18s,color .18s,border-color .18s,box-shadow .18s,transform .18s}
.song-community :is(.sc-button,.sc-icon-button):active{transform:translateY(1px)}
.song-community .tab-pane.sc-tab-enter{animation:sc-content-in .2s ease both}
.song-community :is(.sc-post-card,.sc-person-card):hover{box-shadow:0 8px 24px #213d2810}
.song-community .sc-toast{animation:sc-content-in .18s ease both}
@keyframes sc-sheet-in{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes sc-sheet-out{from{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(8px) scale(.99)}}
@keyframes sc-backdrop-in{from{opacity:0}to{opacity:1}}@keyframes sc-backdrop-out{from{opacity:1}to{opacity:0}}
@keyframes sc-content-in{from{opacity:.5;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1000px){.song-community .oauth-bind-box.gutters-5{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){.song-community .modal-body{padding:21px 18px}.song-community .modal .modal-colorful-header .em12{font-size:18px}.song-community .modal .modal-colorful-header{padding-bottom:18px;margin-bottom:18px}.song-community .oauth-bind-box>div{width:100%}.song-community .oauth-bind-box .muted-box{flex-wrap:wrap;gap:10px;padding:13px!important}.song-community .oauth-bind-box .type-logo{flex:1}.song-community .oauth-bind-box .muted-box>.overflow-hidden{order:3;flex-basis:100%;padding-left:46px}.song-community .sc-public-profile .sc-profile-facts{gap:7px;padding:0 18px 18px}.song-community .modal .private-window-content{height:38vh;min-height:160px}.song-community .sc-checkin-modal .checkin-mini-box{padding:0 2px}.song-community .sc-checkin-modal .checkin-mini-box .badg{font-size:11px}}
@media(prefers-reduced-motion:reduce){.song-community :is(.modal,.modal-dialog,.modal-backdrop,dialog,.sc-button,.sc-icon-button,.sc-post-card,.sc-person-card,.sc-medal,.sc-account-entry,.sc-settings-nav>a,.sc-feed-tabs a,.sc-store-tabs a,.tab-pane.sc-tab-enter,.sc-toast){animation:none!important;transition:none!important}.song-community dialog::backdrop{animation:none!important}.song-community .modal.fade .modal-dialog{transform:none!important}.song-community .sc-button:hover,.song-community .sc-button:active{transform:none}}

/* Profile medals: every earned item is visible, with an independent heading. */
.song-community .sc-profile-medals{display:block;padding:18px 28px 22px;border-top:1px solid var(--sc-neutral-line);border-radius:0 0 18px 18px;background:var(--sc-neutral)}
.song-community .sc-medals-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 16px;margin-bottom:12px}
.song-community .sc-medals-heading h2{display:flex;align-items:center;gap:8px;margin:0;font-size:14px;line-height:1.5;font-weight:600;color:var(--sc-ink)}
.song-community .sc-medals-count{display:inline-flex;align-items:center;justify-content:center;min-width:24px;padding:2px 7px;border:1px solid var(--sc-neutral-line);border-radius:20px;background:var(--sc-card);color:var(--sc-muted);font-size:11px;font-weight:500;font-variant-numeric:tabular-nums}
.song-community .sc-medals-hint{font-size:12px;color:var(--sc-muted)}
.song-community .sc-medals-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:8px;list-style:none;margin:0;padding:0;min-width:0}
.song-community .sc-medals-list>li{display:flex;min-width:0;margin:0;padding:0;list-style:none}
.song-community .sc-profile-medals .sc-medal{display:flex;align-items:center;gap:10px;width:100%;min-width:0;min-height:62px;margin:0;padding:10px 12px;box-sizing:border-box;border:1px solid var(--sc-neutral-line);border-radius:10px;background:var(--sc-card);color:var(--sc-neutral-ink);font-size:13px;line-height:1.5;white-space:normal;text-decoration:none}
.song-community .sc-profile-medals .sc-medal-art{display:flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;line-height:0}
.song-community .sc-profile-medals .sc-medal-art>img,.song-community .sc-profile-medals .sc-medal-art>svg{display:block;width:36px;height:36px;max-width:100%;max-height:100%;margin:0;padding:0;border:0;border-radius:0;object-fit:contain;flex-shrink:0}
.song-community .sc-medal-name{display:block;min-width:0;overflow-wrap:anywhere;white-space:normal}
.song-community .sc-profile-medals .sc-medal:focus-visible{outline:2px solid var(--sc-green);outline-offset:2px;color:var(--sc-ink)}
@media(hover:hover){.song-community .sc-profile-medals .sc-medal:hover{background:var(--sc-soft);border-color:var(--sc-muted);color:var(--sc-ink)}}
@media(max-width:700px){.song-community .sc-profile-medals{padding:14px 18px 18px}.song-community .sc-medals-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.song-community .sc-profile-medals .sc-medal{min-height:58px;padding:9px 10px;gap:8px;font-size:12px}.song-community .sc-profile-medals .sc-medal-art{flex-basis:32px;width:32px;height:32px}.song-community .sc-profile-medals .sc-medal-art>img,.song-community .sc-profile-medals .sc-medal-art>svg{width:32px;height:32px}}
