/* The profile is independent of the collapsible navbar on every app page. */
.shell-profile { position: fixed; top: 12px; right: 12px; z-index: 3200; }
.shell-profile .btn-profile {
    min-height: 44px; max-width: 164px; padding: 7px 10px;
    color: #fff; background: rgba(24,24,24,.65);
    border: 1px solid rgba(255,255,255,.28); border-radius: 12px;
    backdrop-filter: blur(20px);
}
.shell-profile .profile-dropdown { right: 0; left: auto; }
.shell-profile .btn-profile-text { display: flex !important; }
.panel-toggle-btn { right: 184px !important; }
.settings-btn { right: 236px !important; }
.shell-profile [hidden] { display: none !important; }
.guest-notice {
    display: flex; align-items: center; gap: 12px;
    margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--color-border);
    border-radius: 12px; background: var(--color-surface); color: var(--color-text);
    font-size: .875rem; line-height: 1.5;
}
.guest-notice span { flex: 1; }
.guest-notice .btn-mv { flex-shrink: 0; }
.guest-notice[hidden], .guest-auth-overlay[hidden] { display: none !important; }
.guest-auth-overlay {
    position: fixed; inset: 0; z-index: 11000 !important; padding: 20px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.65); backdrop-filter: blur(8px);
}
.guest-auth-dialog {
    position: relative; width: 100%; max-width: 460px; max-height: calc(100dvh - 40px);
    overflow: auto; padding: 32px; text-align: center;
    color: var(--color-text); background: var(--color-surface);
    border: 1px solid var(--color-border); border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0,0,0,.4);
}
.guest-auth-dialog h2 { font-size: 1.4rem; line-height: 1.4; margin: 16px 0; }
.guest-auth-dialog > .modal-mv-close { position: absolute; top: 12px; right: 12px; }
.guest-auth-dialog p { color: var(--color-muted); font-size: .95rem; line-height: 1.7; }
.guest-auth-dialog > .btn-mv { display: flex; width: 100%; justify-content: center; margin-top: 12px; }
.guest-auth-icon { font-size: 2.25rem; }
.guest-empty { padding: 24px; text-align: center; color: var(--color-muted); font-size: .9rem; }
@media (max-width: 640px) {
    .shell-profile .btn-profile { max-width: 108px; gap: 6px; }
    .shell-profile #profile-email, .shell-profile .chevron { display: none; }
    .shell-profile #profile-name { max-width: 50px !important; }
    .panel-toggle-btn { right: 128px !important; }
    .settings-btn { right: 180px !important; }
    .guest-notice { flex-wrap: wrap; padding: 12px; gap: 8px; }
    .guest-notice > span { flex-basis: calc(100% - 32px); }
    .guest-notice .btn-mv { margin-left: 28px; }
    .guest-auth-dialog { padding: 28px 20px; }
}
