/* Shared navigation contract for market analysis and account dashboard. */
.shared-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 58px;
    padding: 0;
    background: rgba(7, 14, 25, 0.9);
    border-bottom: 1px solid #26364c;
    box-shadow: 0 8px 24px rgba(1, 7, 18, 0.26);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.shared-nav__inner {
    width: min(calc(100% - 48px), 1680px);
    max-width: none;
    height: 58px;
    min-height: 58px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    position: relative;
}

.shared-nav__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex: 0 0 auto;
    color: #f2f5f8;
    text-decoration: none;
    white-space: nowrap;
}

.shared-nav__title {
    color: #f2f5f8;
    font: 700 16px/1.1 Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
    letter-spacing: 0;
}

.shared-nav__title b {
    color: #e3b341;
    font-weight: 700;
}

.shared-nav__subtitle {
    display: block;
    margin-top: 1px;
    color: #9aacc5;
    font: 600 9px/1.2 Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
    letter-spacing: 0.12em;
}

.shared-nav__links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    margin: 0 0 0 22px;
    padding: 0;
    list-style: none;
}

.shared-nav__links li {
    display: contents;
}

.shared-nav__links a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 5px;
    color: #9aacc5;
    background: transparent;
    font: 600 12px/1 Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
    text-decoration: none;
    white-space: nowrap;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.shared-nav__links a:hover,
.shared-nav__links a:focus-visible {
    color: #f2f5f8;
    border-color: #3b4c64;
    background: rgba(255, 255, 255, 0.04);
    outline: none;
}

.shared-nav__links a.active,
.shared-nav__links a.is-current {
    color: #e3b341;
    background: rgba(227, 179, 65, 0.08);
}

.shared-nav__tools {
    margin-left: auto;
}

@media (max-width: 900px) {
    .shared-nav__inner {
        width: 100%;
        padding-inline: 12px;
    }
}

@media (max-width: 620px) {
    .shared-nav__inner {
        height: 58px;
        min-height: 58px;
        gap: 10px;
    }

    .shared-nav__subtitle {
        display: none;
    }

    .shared-nav__links {
        margin-left: 0;
        gap: 0;
    }

    .shared-nav__links a {
        min-height: 44px;
        padding-inline: 9px;
        font-size: 11px;
    }

    .nav.shared-nav .burger {
        width: 44px;
        height: 44px;
    }

    .nav.shared-nav .account-selector.shared-nav__tools {
        min-height: 44px;
    }
}

/* Dashboard keeps its existing compact hamburger menu on small screens. */
@media (max-width: 768px) {
    .nav.shared-nav .shared-nav__links {
        display: none;
        margin-left: 0;
    }

    .nav-toggle:checked ~ .nav.shared-nav .shared-nav__links {
        display: flex;
    }

    .nav.shared-nav .shared-nav__links a {
        width: 100%;
        min-height: 44px;
        padding: 0 14px;
        justify-content: flex-start;
        font-size: 13px;
    }
}
