:root {
    --pn-purple: #4b3f72;
    --pn-action: #59468f;
    --pn-lavender: #f0ecf8;
    --pn-muted: #666477;
    --pn-line: #e8e4ee;
}
.discovery-header {
    min-height: 64px;
    padding: env(safe-area-inset-top) max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left));
    background: #fff;
    border-bottom: 1px solid var(--pn-line);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    flex: none;
}
.discovery-brand { display: inline-flex; align-items: center; width: fit-content; }
.discovery-brand img { display: block; width: 142px; height: auto; }
.discovery-brand img.discovery-brand-custom { width: auto; max-width: 165px; height: 36px; object-fit: contain; }
.discovery-header-actions { grid-column: 3; display: flex; align-items: center; justify-self: end; gap: 8px; }
.discovery-language, .discovery-icon {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 8px;
    border: 0;
    border-radius: 11px;
    color: var(--pn-purple);
    background: #fff;
    text-decoration: none;
}
.discovery-language { font-size: .83rem; font-weight: 700; background: var(--pn-lavender); }
.discovery-icon:hover, .discovery-language:hover { color: var(--pn-action); background: var(--pn-lavender); }
.discovery-auth-login, .discovery-auth-signup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .16s ease, color .16s ease, transform .16s ease;
}
.discovery-auth-login {
    color: var(--pn-purple);
    background: var(--pn-lavender);
}
.discovery-auth-login:hover {
    background: #e3dbf4;
    color: var(--pn-action);
}
.discovery-auth-signup {
    color: #fff;
    background: linear-gradient(135deg, #59468f 0%, #4b3f72 100%);
    box-shadow: 0 3px 10px rgba(75, 63, 114, .22);
}
.discovery-auth-signup:hover {
    color: #fff;
    transform: translateY(-1px);
}
@media (max-width: 420px) {
    .discovery-auth-login { display: none; }
    .discovery-auth-signup { padding: 0 10px; font-size: .76rem; }
}
.discovery-desktop-nav { display: none; }

.discovery-header svg { width: 19px; height: 19px; flex: none; }
.discovery-header + .container.mt-2:not(:has(.alert)) { display: none; }
.discovery-desktop-nav .bottom-nav-item { color: var(--pn-muted); }
.discovery-desktop-nav .bottom-nav-item.active { color: var(--pn-action); }
.discovery-desktop-nav .bottom-nav-item::after { display: none; }
.discovery-nav-icon { display: inline-grid; place-items: center; border-radius: 16px; width: 47px; height: 28px; }
.bottom-nav-item.active .discovery-nav-icon { background: var(--pn-lavender); }
@media (min-width: 992px) {
    .discovery-header { padding-inline: max(28px, env(safe-area-inset-left)) max(28px, env(safe-area-inset-right)); }
    .discovery-brand img { width: 165px; }
    .discovery-desktop-nav { display: flex; gap: 10px; }
    .discovery-desktop-nav .bottom-nav-item { display: flex; flex-direction: row; align-items: center; gap: 3px; min-height: 44px; border-radius: 11px; padding: 0 12px 0 5px; text-decoration: none; font-size: .86rem; font-weight: 650; }
    .discovery-desktop-nav .bottom-nav-item.active { background: var(--pn-lavender); }
    .discovery-desktop-nav .discovery-nav-icon { width: 32px; }
}
.customer-workspace {
    min-height: calc(100dvh - 64px - var(--app-bottom-nav-height) - env(safe-area-inset-bottom));
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
}
@media (min-width: 992px) {
    .customer-workspace { min-height: calc(100dvh - 64px); padding-bottom: 28px; }
}
body:has(.discovery-header) main { min-width: 0; }
body:has(.discovery-header) main > .container,
body:has(.discovery-header) main > .max-w-5xl { padding-bottom: calc(26px + env(safe-area-inset-bottom)); }
body:has(.discovery-header) main input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body:has(.discovery-header) main select,
body:has(.discovery-header) main textarea {
    min-height: 44px;
    border-radius: 10px;
    border-color: #e8e4ee;
    color: #242536;
    font: inherit;
}
body:has(.discovery-header) main textarea { min-height: 100px; }
body:has(.discovery-header) main :is(input, select, textarea):focus {
    border-color: #8b76b7;
    box-shadow: 0 0 0 3px #f0ecf8;
}
body:has(.discovery-header) main :is(.btn, button[type="submit"]) { min-height: 42px; }
body:has(.discovery-header) main .btn-brand-primary { background: #59468f; color: white; }
body:has(.discovery-header) main :is(.card, .card-custom) { border-color: #e8e4ee; }
body:has(.discovery-header) main :is(h1, h2, h3, h4) { color: #242536; letter-spacing: -.02em; }
body:has(.discovery-header) main :focus-visible { outline: 2px solid #59468f; outline-offset: 2px; }
body:has(.discovery-header) main img { max-width: 100%; }
