/* Deliberately restricted to profile images and the live account control. */
.profile-avatar{display:inline-grid;place-items:center;flex:none;width:30px;height:30px;border:1px solid #7abbd44d;border-radius:10px;background:#174466;color:#c2efff;font:500 13px/1 system-ui;overflow:hidden;vertical-align:middle}
.profile-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.account-menu>summary .profile-avatar{width:24px;height:24px;border-radius:8px;font-size:11px}
.profile-large{width:72px;height:72px;border-radius:23px;font-size:26px}
.profile-photo-row{display:flex;align-items:center;flex-wrap:wrap;gap:18px;margin:18px 0}
#photoCrop{display:grid;grid-template-columns:minmax(0,200px) minmax(0,1fr);align-items:center;gap:22px;margin:18px 0}
#photoCanvas{width:100%;max-width:200px;aspect-ratio:1;border-radius:22px;background:#081a2c;border:1px solid #7cc4df66;touch-action:none;cursor:move}
.platform-shell .photo-sliders input[type=range]{min-height:30px;padding:0;border:0;accent-color:#43b5d7;background:none}
.profile-person{display:inline-flex;align-items:center;gap:6px;vertical-align:middle}
@media(max-width:500px){#photoCrop{grid-template-columns:1fr}#photoCanvas{margin:auto}.profile-photo-row{gap:12px}}
.presence-name{display:inline!important;background:none!important;border:0!important;padding:0!important;margin:0!important;color:inherit!important;font:inherit!important;min-height:0!important;box-shadow:none!important;text-decoration:underline dotted;text-underline-offset:3px;cursor:pointer}
.profile-view-dialog{max-width:min(340px,calc(100vw - 32px));width:340px;border:1px solid #6eb8d468;border-radius:20px;background:#102b43;color:#e5f5ff;padding:28px;text-align:center;box-shadow:0 20px 70px #0006}
.profile-view-dialog::backdrop{background:#020a17b8}
.profile-view-dialog h2{font:600 20px/1.4 system-ui;margin:16px 0 6px;overflow-wrap:anywhere}
.profile-view-dialog p{font:14px/1.5 system-ui;color:#b6d2e5}
.profile-view-close{position:absolute;right:12px;top:10px;min-width:32px;min-height:32px;border:1px solid #80c4dd66;border-radius:9px;background:#153d59;color:#ddf7ff;font-size:22px;cursor:pointer}
.account-menu>summary>.profile-avatar{flex:none}
.account-menu>summary>.profile-avatar+span{min-width:0;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-menu>summary>span:last-child{flex:none}
/* Footer only: the working live header, song sheet and controls are unchanged. */
.site-footer{margin-top:20px;padding:14px 0 max(10px,env(safe-area-inset-bottom));font-size:11px}
.site-footer .brand-footer{justify-content:center;align-items:center;margin:13px 0 8px;gap:12px}
.site-footer .brand-footer img{width:40px;height:54px;max-width:40px;object-fit:contain}
.site-footer .brand-footer span{font-size:11px;line-height:18px;text-align:left}
.site-footer .footer-links{gap:14px;margin:0;font-size:11px}
.site-footer .pwa-install-button{min-height:32px;padding:6px 10px;font-size:11px;margin:0 auto}

/* Keep the live footer in a compact horizontal strip, including phones. */
.site-footer{display:flex;justify-content:center;align-items:center;gap:12px 20px;margin-top:16px;padding:12px 0 max(10px,env(safe-area-inset-bottom));text-align:left}
.site-footer .brand-footer{display:flex;align-items:center;gap:8px;margin:0;min-width:0}
.site-footer .brand-footer img{display:block;width:32px;height:44px;max-width:32px;object-fit:contain}
.site-footer .brand-footer span{font-size:10px;line-height:15px;text-align:left}
.site-footer .footer-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px}
.site-footer .footer-links{display:flex;flex-wrap:wrap;gap:4px 12px;margin:0;font-size:11px}
.site-footer .pwa-install-button{flex:none;min-height:32px;margin:0;padding:6px 8px;font-size:10px}
.site-footer .pwa-install-button[hidden]{display:none}
@media(max-width:600px){.site-footer{justify-content:space-between;gap:8px}.site-footer .brand-footer{gap:6px}.site-footer .brand-footer img{width:27px;max-width:27px;height:42px}.site-footer .brand-footer span{font-size:9px;line-height:14px}.site-footer .footer-actions{flex-direction:column;align-items:flex-end;gap:4px;flex-shrink:0}.site-footer .footer-links{flex-direction:column;align-items:flex-end;gap:0;font-size:10px}.site-footer .footer-links a{min-height:24px;display:inline-flex;align-items:center}.site-footer .pwa-install-button{min-height:28px;font-size:9px;padding:4px 6px}}
.site-footer .brand-footer{flex-wrap:nowrap;flex:1 1 auto}.site-footer .brand-footer span{min-width:0}
/* Approved compact footer; preserve the install action and its visibility. */
.site-footer{column-gap:16px}
.site-footer .footer-actions{flex-direction:column;align-items:stretch;gap:5px;flex:none}
.site-footer .footer-links{flex-direction:column;align-items:stretch;gap:5px}
.site-footer .footer-links a{display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:26px;padding:3px 7px;border:1px solid #31566d;border-radius:6px;background:#102d43;color:#d4edf8;font-size:11px;line-height:18px;text-decoration:none;white-space:nowrap}
.site-footer .footer-links a:hover{background:#173c55}
@media(max-width:360px){.site-footer{column-gap:10px}.site-footer .footer-links a{font-size:10px;padding:3px 5px}}
