.pro-brand-switch {
    display: flex; align-items: center; min-width: 0; max-width: 100%;
}
.pro-brand-switch .app-title, #pot-shell-title {
    margin: 0; flex: 0 1 auto; color: rgba(255, 255, 255, .94);
    font-size: 19px; line-height: 1.2; font-weight: 800; letter-spacing: -.35px;
    word-break: keep-all; overflow-wrap: normal;
}
.pro-brand-link {
    display: inline-flex; align-items: center; gap: .45em; min-height: 44px; padding: .25rem .65rem;
    border: 1px solid rgba(255, 255, 255, .42); border-radius: .65rem;
    background: rgba(255, 255, 255, .09); color: inherit; text-decoration: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
.pro-brand-link[hidden] { display: none; }
.pro-brand-link::after {
    content: ""; flex: none; width: .36em; height: .36em;
    border: solid currentColor; border-width: 0 2px 2px 0;
    transform: translateY(-.12em) rotate(45deg);
}
.pro-brand-link:active { background: rgba(255, 255, 255, .2); transform: translateY(1px); }
.pro-brand-link:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 4px; }
.pro-app-shell #main-header .header-right-actions, .pot-header-actions {
    margin-inline-start: auto;
}
.profile-mode-link {
    box-sizing: border-box;
    display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: .5rem;
    min-height: 50px; padding: .6rem .8rem; border: 1px solid var(--border-color); border-radius: 14px;
    background: var(--bg-gray); color: var(--text-main); text-align: start;
    text-decoration: none; font-size: .86rem; line-height: 1.3; overflow-wrap: anywhere;
}
#login-sheet .profile-mode-link { margin-top: 1rem; }
.profile-mode-value { color: var(--text-sub); font-size: .81rem; text-align: end; }
.profile-mode-chevron { color: var(--text-sub); font-size: 1.25rem; line-height: 1; }
.profile-mode-link:active { background: var(--card-bg); }
.profile-mode-link:focus-visible { outline: 2px solid var(--primary-dark); outline-offset: 2px; }
@media (max-width: 420px) {
    .pro-app-shell #header-title-wrap .app-title, #pot-shell-title { font-size: clamp(15px, 4.35vw, 18px) !important; }
}
#pot-exit-notice {
    position: fixed; z-index: 50; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%;
    transform: translateX(-50%); border-radius: 10px; padding: 10px 16px;
    background: #27382d; color: #fff; max-width: calc(100% - 28px); text-align: center;
    width: max-content; box-sizing: border-box; pointer-events: none;
}
html.pot-profile-gateway #main-header, html.pot-profile-gateway body > main { visibility: hidden; }


.pro-app-shell .first-field-action {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 46px; padding: 10px 16px; margin: 2px 0 8px;
    border: 1px solid var(--primary-dark); border-radius: 10px;
    background: var(--primary-dark); color: #fff; font: inherit; font-weight: 750; cursor: pointer;
}
.pro-app-shell .first-field-action[hidden] { display: none; }
