/* Compact banner, with account and appearance actions in one disclosure. */
.header2 {
    position: relative;
    z-index: 100;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    box-sizing: border-box;
    width: 100vw;
    max-width: 100vw;
    min-height: 78px;
    padding: 16px 24px;
}
.header2 .header-partner { display: flex; align-items: center; flex: 0 0 auto; }
.header2 .header-primary-logo { padding-right: 22px; border-right: 1px solid rgba(255, 255, 255, .22); }
.header2 .logo_oadm { display: block; width: auto;  float: none; }
.header2 .logo_ieec { display: block; width: auto; height: 33px; }
.header2 .logo_mur {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 4px;
    font-size: 35px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.025em;
    text-align: left;
    text-decoration: none;
}
.header2 .header-tools { display: flex; align-items: center; gap: 12px; }
.header-actions { display: flex; align-items: center; gap: 12px; min-width: 0; }
.header-divider { width: 1px; height: 28px; background: rgba(255, 255, 255, .22); flex: 0 0 1px; }
.header-account { position: relative; flex: 0 0 auto; }
.header2 .header-account-trigger,
.header2 .header-sign-in {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    gap: 8px;
    min-height: 38px;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 9px;
    background: rgba(255, 255, 255, .07);
    color: #ffffff;
    font-size: 12px;
    cursor: pointer;
    list-style: none;
    text-decoration: none;
}
.header-account-trigger::-webkit-details-marker { display: none; }
.header2 .header-sign-in > svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.header2 .header-account-trigger:hover,
.header2 .header-account[open] > .header-account-trigger,
.header2 .header-viewing-as[open] > .header-account-trigger,
.header2 .header-sign-in:hover { background: rgba(255, 255, 255, .15); }
.header-avatar { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; background: #dbe4ff; color: #27345f; font-size: 10px; font-weight: bold; }
[data-theme="dark"][data-dark-palette="graphite"] .header-avatar { background: #e4e4e7; color: #3f3f46; }
.header-account-name { display: block; overflow: hidden; max-width: 150px; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; }
.header-account-chevron { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.header-account[open] .header-account-chevron,
.header-viewing-as[open] .header-account-chevron { transform: rotate(180deg); }
.header-account-menu {
    position: absolute;
    z-index: 2000;
    top: calc(100% + 10px);
    right: 0;
    box-sizing: border-box;
    width: 264px;
    max-width: calc(100vw - 16px);
    max-height: calc(100vh - 100px);
    overflow: auto;
    padding: 7px;
    border: 1px solid var(--border, #dddddd);
    border-radius: 12px;
    background: var(--surface, #ffffff);
    color: var(--text, #000000);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .25);
    text-align: left;
}
.header-account-identity { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; padding: 10px 10px 15px; border-bottom: 1px solid var(--border, #dddddd); }
.header-account-identity > div { min-width: 0; overflow-wrap: anywhere; }
.header-account-identity .header-avatar { width: 36px; height: 36px; font-size: 11px; }
.header-account-identity strong { font-size: 12px; }
.header-account-username { display: block; margin-top: 2px; color: var(--muted, #666666); font-size: 11px; }
.header2 .header-account-menu .header-account-link {
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    min-height: 38px;
    padding: 9px 10px;
    border-radius: 7px;
    color: var(--text, #000000) !important;
    font-size: 12px;
    text-decoration: none;
}
.header2 .header-account-menu .header-account-link:hover,
.header2 .header-account-menu .header-account-link:focus-visible { background: var(--stripe, #eeeeee); }
.header-account-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.header2 .header-account-menu .header-account-logout { border-top: 1px solid var(--border, #dddddd); margin-top: 5px; border-radius: 0 0 7px 7px; }
.header-appearance { border-top: 1px solid var(--border, #dddddd); padding: 8px 3px 10px; margin-top: 5px; }
.header2 .header-appearance h3 { margin: 0; padding: 5px 10px 7px; color: var(--muted, #666666); font-size: 10px; font-weight: 600; line-height: 1.3; letter-spacing: .04em; }
.appearance-options { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.appearance-options[hidden] { display: none; }
.header2 .appearance-options button {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 33px;
    padding: 7px;
    border: 1px solid var(--border, #dddddd);
    border-radius: 7px;
    background: transparent;
    color: var(--muted, #666666);
    font: inherit;
    font-size: 11px;
    cursor: pointer;
}
.header2 .appearance-options button:hover { background: var(--stripe, #eeeeee); color: var(--text, #000000); }
.header2 .appearance-options button[aria-pressed="true"] { background: color-mix(in srgb, var(--link, #1e2751) 12%, var(--surface, #ffffff)); border-color: var(--link, #1e2751); color: var(--text, #000000); }
.header2 :focus-visible { outline: 2px solid var(--link, #93c5fd); outline-offset: 2px; }
.header2 > a:focus-visible, .header2 .header-tools > a:focus-visible, .header2 summary:focus-visible { outline-color: #b9cfff; }
.header-guest-appearance .header-account-trigger { width: 38px; height: 38px; padding: 8px; }
.header-appearance-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.header-guest-appearance .header-appearance { margin: 0; border: 0; padding-top: 0; }

@media (max-width: 1050px) {
    .header2 { gap: 14px; padding-right: 20px; padding-left: 20px; }
    .header2 .header-primary-logo { padding-right: 14px; }
    .header2 .logo_oadm { height: 33px; }
    .header2 .logo_ieec { height: 28px; }
    .header2 .logo_mur { font-size: 21px; }
    .header-account-name { display: none; }
    .header-divider { display: none; }
}
@media (max-width: 780px) {
    .header2 { grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 14px; }
    .header2 .header-primary-logo { grid-column: 1; grid-row: 1; justify-self: start; padding: 0; border: 0; }
    .header2 .logo_oadm { height: 30px; }
    .header2 .logo_ieec { height: 26px; }
    .header2 .header-tools { display: contents; }
    .header2 .header-tools > .header-partner { grid-column: 2; grid-row: 1; justify-self: end; }
    .header2 .logo_mur { grid-column: 1; grid-row: 2; font-size: clamp(16px, 3.3vw, 20px); }
    .header-actions { grid-column: 2; grid-row: 2; justify-self: end; gap: 8px; }
    .header2 .header-account-trigger,
    .header2 .header-sign-in { min-height: 44px; padding: 6px 8px; }
    .header2 .header-sign-in { width: 44px; height: 44px; padding: 8px; }
    .header2 .header-sign-in > span { display: none; }
    .header2 .header-guest-appearance .header-account-trigger { width: 44px; height: 44px; }
    .header-account-chevron { width: 12px; height: 12px; }
    .header2 .header-account-menu .header-account-link,
    .header2 .appearance-options button { min-height: 44px; }
}
@media print { .header-account, .header-sign-in, .header-divider { display: none; } }

.header-account-menu form { margin: 0; }
.header-account-menu button.header-account-link { width: 100%; border: 0; background: transparent; font-family: inherit; text-align: left; cursor: pointer; }

/* Keep the actor's account separate from the effective user, even without Help. */
.header-actions:has(.header-viewing-as) { display: grid; justify-items: end; gap: 6px; }
.header-viewing-as {
    position: relative;
    max-width: 290px;
}
.header2 .header-viewing-as-trigger {
    justify-content: flex-start;
    width: 100%;
    min-height: 0;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.4;
    text-align: left;
}
.header-viewing-as-label { flex: 0 0 auto; }
.header-viewing-as-trigger strong { min-width: 0; overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.header-viewing-as .header-account-menu { right: 0; }
@media (max-width: 780px) {
    .header-actions:has(.header-viewing-as) { display: contents; }
    .header-actions:has(.header-viewing-as) > .header-account { grid-column: 2; grid-row: 2; justify-self: end; }
    .header-viewing-as { grid-column: 1 / -1; grid-row: 3; width: 100%; max-width: 100%; justify-self: stretch; }
    .header2 .header-viewing-as-trigger { min-height: 44px; font-size: 12px; }
    .header-viewing-as .header-account-menu { right: auto; left: 0; }
}
@media print {
    .header-viewing-as { display: none; }
}
