.sc-community-admin,.sc-appeals-admin{--sc-line:#dfe6e2;--sc-card:#fff;--sc-ink:#283d30;--sc-soft:#edf4ee;--sc-green:#438752;--sc-muted:#748277}
/* One feedback surface for the persistent shell, including dialogs. */
.sc-toast[data-type=loading] .sc-toast-symbol{width:20px;height:20px;margin:4px;border:2px solid var(--sc-line,#dfe6e2);border-top-color:var(--sc-green,#4caf50);background:transparent;animation:sc-toast-spin .8s linear infinite}@keyframes sc-toast-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.sc-toast[data-type=loading] .sc-toast-symbol{animation:none}}
:is(.song-community,.sc-community-admin,.sc-appeals-admin) .sc-toast{position:fixed;inset:auto 24px max(24px,env(safe-area-inset-bottom)) auto;margin:0;transform:none;display:flex;align-items:center;gap:11px;max-width:min(420px,calc(100vw - 32px));width:max-content;min-height:56px;padding:13px 14px;border:1px solid var(--sc-line);border-radius:13px;background:var(--sc-card);color:var(--sc-ink);box-shadow:0 10px 40px #132b2420;backdrop-filter:blur(18px);font-size:14px;line-height:1.6;z-index:2147483647;overflow:visible;opacity:1;white-space:normal;word-break:break-word}
.sc-toast::backdrop{background:transparent;pointer-events:none}.sc-toast>span:nth-child(2){min-width:0;flex:1}.sc-toast-symbol{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:50%;background:var(--sc-soft);color:var(--sc-green);font-size:17px;font-weight:700}.sc-toast[data-type=error] .sc-toast-symbol{background:#c9514914;color:#bd4b44}.sc-toast>button{flex:none;min-height:28px;padding:3px 6px;border:0;border-radius:6px;background:transparent;color:var(--sc-muted);font:inherit;cursor:pointer;transition:background-color .15s,color .15s}.sc-toast>button:hover{background:var(--sc-soft);color:var(--sc-ink)}.sc-toast>button:last-child{font-size:20px}.sc-toast[hidden]{display:none!important}
@media(max-width:700px){:is(.song-community,.sc-community-admin,.sc-appeals-admin) .sc-toast{right:16px;bottom:max(18px,env(safe-area-inset-bottom));font-size:13px;max-width:calc(100vw - 32px);padding:11px 12px}}
@media(prefers-reduced-motion:reduce){.sc-toast>button{transition:none}}

/* Secondary modal for transport/server failures. It stacks above existing dialogs. */
dialog.sc-request-error{box-sizing:border-box;width:min(460px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));margin:auto;padding:0;overflow:auto;border:1px solid var(--sc-line,#dfe6e2);border-radius:18px;background:var(--sc-card,#fff);color:var(--sc-ink,#283d30);box-shadow:0 24px 90px #11182745;font:inherit;overscroll-behavior:contain}
dialog.sc-request-error::backdrop{background:rgb(10 18 15 / .48);backdrop-filter:blur(3px)}
.sc-request-error-card{position:relative;display:flex;flex-direction:column;align-items:center;padding:30px 30px 26px;text-align:center}
.sc-request-error-close{position:absolute;top:12px;right:13px;display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:10px;background:transparent;color:var(--sc-muted,#748277);font-size:24px;line-height:1;cursor:pointer;transition:background-color .16s,color .16s}
.sc-request-error-close:hover{background:var(--sc-soft,#edf4ee);color:var(--sc-ink,#283d30)}
.sc-request-error-mark{display:grid;place-items:center;width:48px;height:48px;margin:0 0 14px;border-radius:50%;background:#c9514914;color:#bd4b44;font-size:28px;font-weight:700}
.sc-request-error-card h2{margin:0;color:inherit;font-size:19px;font-weight:650;line-height:1.4}
.sc-request-error-card>p{margin:10px 0 0;color:var(--sc-muted,#748277);font-size:14px;line-height:1.7}
.sc-request-error-card .sc-request-error-code-label{margin-top:19px;font-size:12px}
.sc-request-error-code{display:block;max-width:100%;margin-top:5px;padding:7px 11px;border:1px solid var(--sc-line,#dfe6e2);border-radius:8px;background:var(--sc-soft,#edf4ee);color:var(--sc-ink,#283d30);font:600 13px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere;user-select:all}
.sc-request-error-card .sc-request-error-help{max-width:360px;margin-top:14px;font-size:12px}
.sc-request-error-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;width:100%;margin-top:23px}
.sc-request-error-actions button{min-height:42px;padding:9px 17px;border:1px solid var(--sc-line,#dfe6e2);border-radius:10px;background:var(--sc-card,#fff);color:var(--sc-ink,#283d30);font-family:inherit;font-size:14px;font-weight:600;line-height:1.3;cursor:pointer;transition:transform .16s,background-color .16s,border-color .16s}
.sc-request-error-actions button:hover{transform:translateY(-1px);background:var(--sc-soft,#edf4ee)}
.sc-request-error-actions .sc-request-error-refresh{border-color:var(--sc-green,#438752);background:var(--sc-green,#438752);color:#fff}
.sc-request-error-actions .sc-request-error-refresh:hover{background:color-mix(in srgb,var(--sc-green,#438752),#000 8%)}
.sc-request-error-actions button:focus-visible,.sc-request-error-close:focus-visible{outline:3px solid color-mix(in srgb,var(--sc-green,#438752),transparent 45%);outline-offset:2px}
@media(max-width:520px){.sc-request-error-card{padding:28px 20px 20px}.sc-request-error-actions{flex-direction:column-reverse}.sc-request-error-actions button{width:100%}}
@media(prefers-reduced-motion:reduce){.sc-request-error-close,.sc-request-error-actions button{transition:none}}
