/* 公開頁頁首登入狀態（刀 1117-HDR1）。js/public-header-auth.js 搭配使用。 */
[data-hdr-guest][hidden], [data-hdr-user][hidden] { display: none !important; }
html.hdr-auth-pending [data-hdr-guest] { visibility: hidden; }
.hdr-user { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hdr-email { font-size: 0.85rem; opacity: 0.75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 480px) { .hdr-email { max-width: 108px; } }
/* 首頁手機寬度：選單收進漢堡，「回到 App」放在頁首列上 */
.hdr-app-mobile { display: none; margin-left: auto; padding: 10px 16px; border: 1px solid currentColor; font-size: 15px; white-space: nowrap; }
@media (max-width: 767px) { .hdr-app-mobile { display: inline-flex; } }
