/* Account navigation is isolated from the legacy registration and product menus. */
.idcmaster-nav .header-nav-li.nav-utility {
    flex: 0 0 auto;
    margin-left: auto;
    padding-left: 12px;
}
.idcmaster-nav .header-nav-li.nav-session-slot {
    flex: 0 0 auto;
    margin-left: 12px;
    z-index: 120;
}
.idcmaster-nav .nav-docs-link svg { width: 19px; height: 19px; color: #5c7190; }
.nav-auth-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.nav-auth-actions a {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 44px;
    padding: 0 17px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.nav-auth-actions .nav-auth-login { color: #334b6b; background: #fff; border-color: #dbe4f1; }
.nav-auth-actions .nav-auth-login:hover { color: #1f55c5; background: #f3f7ff; border-color: #a6c2f5; }
.nav-auth-actions .nav-auth-register { color: #fff; background: #155eef; box-shadow: 0 4px 12px rgb(21 94 239 / 13%); }
.nav-auth-actions .nav-auth-register:hover { color: #fff; background: #144fc6; }
.nav-console {
    --console-blue: #155eef;
    --console-ink: #253e61;
    --console-muted: #63758d;
    position: relative;
    color: var(--console-ink);
    font-family: inherit;
    text-align: left;
    line-height: 1.5;
}
.nav-console *, .nav-console *::before, .nav-console *::after { box-sizing: border-box; }
.nav-console svg { display: block; width: 20px; height: 20px; flex: 0 0 auto; }
.nav-console > .nav-console-trigger {
    display: inline-flex;
    height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: var(--console-blue);
    color: #fff;
    box-shadow: 0 4px 12px rgb(21 94 239 / 14%);
    font-size: 14px;
    font-weight: 650;
    line-height: 1;
    list-style: none;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: background-color .16s ease, box-shadow .16s ease;
}
.nav-console-trigger::-webkit-details-marker { display: none; }
.nav-console-trigger::marker { content: ""; }
.nav-console > .nav-console-trigger:hover, .nav-console[open] > .nav-console-trigger {
    background: #144fc6;
    box-shadow: 0 5px 16px rgb(21 94 239 / 20%);
}
.nav-console .nav-console-chevron { width: 14px; height: 14px; opacity: .85; transition: transform .18s ease; }
.nav-console[open] .nav-console-chevron { transform: rotate(180deg); }
.nav-console-panel {
    position: absolute;
    top: calc(100% + 16px);
    right: 0;
    z-index: 150;
    width: 376px;
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px;
    border: 1px solid #dfe7f3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 52px rgb(32 62 107 / 16%), 0 3px 10px rgb(32 62 107 / 5%);
}
.nav-console[open] .nav-console-panel { animation: console-menu-in .18s ease-out; }
.nav-console .nav-console-overview {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 90px;
    padding: 18px;
    border: 1px solid #e0eafb;
    border-radius: 12px;
    background: linear-gradient(115deg, #edf4ff, #f6f9ff);
    color: var(--console-ink);
    text-decoration: none;
}
.nav-console-overview-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid #d9e7fd;
    border-radius: 12px;
    background: #fff;
    color: var(--console-blue);
}
.nav-console-overview-copy { flex: 1; min-width: 0; }
.nav-console-overview-copy small { display: block; color: #597396; font-size: 12px; font-weight: 400; line-height: 1.5; }
.nav-console-overview-copy strong { display: block; margin-top: 3px; color: #184996; font-size: 17px; font-weight: 650; line-height: 1.5; }
.nav-console-overview-copy .nav-console-username { margin-top: 0; overflow-wrap: anywhere; }
.nav-console-overview-copy .nav-console-user-id { margin-top: 3px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.nav-console-overview-copy .nav-console-enter { display: block; margin-top: 8px; color: var(--console-blue); font-size: 12px; font-weight: 600; line-height: 1.5; }
.nav-console-overview-arrow { color: var(--console-blue); transition: transform .16s ease; }
.nav-console-overview:hover .nav-console-overview-arrow { transform: translateX(3px); }
.nav-console-section-label { padding: 18px 10px 7px; color: var(--console-muted); font-size: 12px; font-weight: 500; }
.nav-console-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding-bottom: 10px; }
.nav-console .nav-console-shortcut {
    display: flex;
    min-height: 70px;
    align-items: center;
    gap: 10px;
    padding: 10px 9px;
    border-radius: 10px;
    color: var(--console-ink);
    text-decoration: none;
    transition: background-color .16s ease;
}
.nav-console-shortcut-icon { display: flex; width: 30px; height: 34px; flex: 0 0 30px; align-items: center; justify-content: center; color: #5d789f; }
.nav-console-shortcut strong { display: block; color: var(--console-ink); font-size: 14px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.nav-console-shortcut small { display: block; margin-top: 3px; color: var(--console-muted); font-size: 12px; font-weight: 400; line-height: 1.5; }
.nav-console .nav-console-shortcut:hover, .nav-console .nav-console-shortcut:focus-visible { background: #f0f5ff; }
.nav-console-shortcut:hover .nav-console-shortcut-icon, .nav-console-shortcut:hover strong { color: var(--console-blue); }
.nav-console-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 7px 0; border-top: 1px solid #eaf0f7; }
.nav-console .nav-console-help, .nav-console .nav-console-logout {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #526681;
    font: inherit;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
}
.nav-console-footer svg { width: 17px; height: 17px; }
.nav-console .nav-console-help:hover { color: var(--console-blue); background: #f0f5ff; }
.nav-console .nav-console-logout:hover { color: #b42332; background: #fff1f2; }
.nav-console-logout:disabled { cursor: wait; opacity: .6; }
.nav-console .nav-console-feedback { margin: 3px 8px 8px; color: #b42332; font-size: 12px; line-height: 1.5; }
.nav-console a:focus-visible, .nav-console button:focus-visible, .nav-console summary:focus-visible,
.nav-auth-actions a:focus-visible { outline: 3px solid #82aaff; outline-offset: 3px; }
@keyframes console-menu-in {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (min-width: 1111px) and (max-width: 1280px) {
    .idcmaster-nav .header-nav { gap: 6px; }
    .idcmaster-nav .header-nav > ul > .header-nav-li { flex-shrink: 1; }
    .idcmaster-nav .header-nav > ul > .nav-session-slot { flex-shrink: 0; margin-left: 8px; }
    .idcmaster-nav .header-nav-li.nav-utility { padding-left: 0; }
    .idcmaster-nav .header-nav-li > a, .idcmaster-nav .product-nav-entry > .product-nav-link { padding-right: 8px !important; padding-left: 8px !important; }
}
@media (max-width: 1110px) {
    #mobile-header .nav-console { position: static; }
    #mobile-header .nav-console-trigger { height: 44px; gap: 7px; padding: 0 12px; font-size: 13px; }
    #mobile-header .nav-console-trigger > svg:first-child { width: 17px; height: 17px; }
    #mobile-header .nav-console-panel {
        position: absolute;
        top: 64px;
        right: 12px;
        width: min(376px, calc(100vw - 24px));
        max-height: calc(100dvh - 80px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    #mobile-header .header-container-mobile .right-box { gap: 8px; }
    #mobile-header .nav-auth-actions { gap: 6px; }
    #mobile-header .nav-auth-actions a { min-width: 48px; padding: 0 11px; font-size: 13px; }
    #mobile-header .mobile-brand { min-width: 0; }
    #mobile-header .mobile-brand img { max-width: 135px; object-fit: contain; }
}
@media (max-width: 360px) {
    #mobile-header .header-container-mobile { padding: 0 10px; }
    #mobile-header .mobile-brand img { max-width: 105px; height: auto; max-height: 34px; }
    #mobile-header .nav-console-panel { right: 8px; width: calc(100vw - 16px); padding: 8px; }
    #mobile-header .nav-console-shortcut { gap: 6px; padding: 10px 6px; }
    #mobile-header .nav-console-shortcut-icon { flex-basis: 24px; width: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .nav-console *, .nav-auth-actions * { animation: none !important; transition: none !important; }
}
