.participant-account-menu { flex-shrink: 0; }
.participant-account-toggle { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 6px 14px 6px 6px; border: 0; border-radius: 30px; color: #fff; background: linear-gradient(135deg, #4169e1, #6a4fe5); font-weight: 700; font-size: .9rem; }
.participant-account-toggle:hover { filter: brightness(1.05); }
.participant-account-toggle:focus-visible { outline: 3px solid #a5b8ff; outline-offset: 3px; }
.participant-account-avatar { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: #f87925; color: #fff; }
.participant-account-name { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.participant-account-items { width: 265px; max-width: calc(100vw - 32px); margin-top: 10px !important; padding: 8px; border: 1px solid #e2e7ef; border-radius: 14px; background: #fff; box-shadow: 0 14px 40px #10204a24; }
.participant-account-items .participant-account-email { padding: 9px 12px 12px; color: #69728a; font-size: .75rem; overflow-wrap: anywhere; }
.participant-account-items .dropdown-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 0; border-radius: 8px; color: #27324b; font-size: .9rem; text-decoration: none; }
.participant-account-items .dropdown-item svg { width: 20px; height: 20px; flex: 0 0 20px; }
.participant-account-items .dropdown-item:hover, .participant-account-items .dropdown-item:focus { color: #274cc5; background: #edf2ff; }
.participant-account-items .participant-account-logout { color: #cc3445; }
.participant-account-items .participant-account-logout:hover, .participant-account-items .participant-account-logout:focus { color: #a82433; background: #fff0f1; }
.participant-account-items form { margin: 0; }
@media (max-width: 1199.98px) {
    .participant-account-menu { align-self: flex-start; }
    .participant-account-items { --bs-position: start; right: auto; left: 0; }
}

/* Public navigation: a compact shared header for the participant portal. */
.public-body > .site-header {
    border-top: 0;
    border-bottom: 1px solid #dce6ef;
    background: linear-gradient(110deg, #fff 10%, #f4f8ff 65%, #eefaf7);
    box-shadow: 0 4px 18px #1b385a0a;
}
.public-body > .site-header .navbar { min-height: 68px; padding-top: 8px !important; padding-bottom: 8px !important; gap: 18px; }
.public-body > .site-header .brand-logo { width: 176px; height: 46px; padding: 0; background: transparent; border-radius: 0; }
.public-body > .site-header .navbar-collapse { gap: 18px; min-width: 0; }
.public-body > .site-header .navbar-nav { gap: 3px !important; padding: 4px; border: 1px solid #e0e8f1; border-radius: 12px; background: #eaf0f780; }
.public-body > .site-header .navbar .nav-link { display: flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 8px; color: #4a6078 !important; font-size: .78rem; font-weight: 600; text-shadow: none; transition: background .16s ease, color .16s ease, box-shadow .16s ease; }
.public-body > .site-header .nav-link svg { width: 16px; height: 16px; flex: 0 0 16px; opacity: .8; }
.public-body > .site-header .navbar .nav-link:hover { color: #15558c !important; background: #fff; box-shadow: 0 2px 6px #14345309; }
.public-body > .site-header .navbar .nav-link.active { color: #087369 !important; background: #fff; box-shadow: 0 2px 7px #1c496512; font-weight: 700; }
.public-body > .site-header .nav-link.active svg { opacity: 1; color: #128b7b; }
.public-body > .site-header .nav-link:focus-visible { outline: 2px solid #218eae; outline-offset: 2px; }
.public-body > .site-header .participant-account-toggle { gap: 8px; padding: 5px 12px 5px 5px; border: 1px solid #244c70; border-radius: 12px; font-size: .8rem; background: linear-gradient(120deg, #183b63, #176a7b); box-shadow: 0 3px 9px #18496a18; transition: box-shadow .16s ease, background .16s ease; }
.public-body > .site-header .participant-account-toggle:hover,
.public-body > .site-header .participant-account-toggle[aria-expanded="true"] { filter: none; background: linear-gradient(120deg, #214d7b, #138577); box-shadow: 0 4px 14px #18496a30; }
.public-body > .site-header .participant-account-avatar { width: 30px; height: 30px; flex-basis: 30px; border-radius: 9px; background: #c5f3e8; color: #0a665b; font-size: .8rem; }
.public-body > .site-header .participant-account-name { max-width: 160px; }
.public-body > .site-header .participant-account-items { padding: 6px; border-color: #d9e5ee; box-shadow: 0 16px 38px #193c6024; }
.public-body > .site-header .participant-account-items .dropdown-item { gap: 10px; padding: 10px 12px; font-size: .83rem; }
.public-body > .site-header .participant-account-items .dropdown-item:hover,
.public-body > .site-header .participant-account-items .dropdown-item:focus { color: #087369; background: #eaf7f3; }
.public-body > .site-header .participant-account-items .participant-account-logout:hover { color: #a82433; background: #fff0f1; }
.public-body > .site-header .navbar-toggler { padding: 6px 8px; border: 1px solid #cfdde9; border-radius: 9px; background: #fff; }
.public-body > .site-header .navbar-toggler-icon { filter: invert(1); width: 22px; height: 22px; }
@media (max-width: 1199.98px) {
    .public-body > .site-header .navbar { gap: 0; }
    .public-body > .site-header .navbar-collapse { margin-top: 10px; padding: 10px; border-color: #dce6ef; background: #fff; }
    .public-body > .site-header .navbar-nav { margin: 0 0 10px !important; padding: 4px; }
    .public-body > .site-header .navbar .nav-link { padding: 11px 12px; white-space: normal; }
    .public-body > .site-header .participant-account-menu { margin-top: 4px; }
}
@media (max-width: 575.98px) {
    .public-body > .site-header .navbar { min-height: 62px; }
    .public-body > .site-header .brand-logo { width: 158px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
    .public-body > .site-header .nav-link,
    .public-body > .site-header .participant-account-toggle { transition: none; }
}
