/**
 * topnav.css
 * BEM namespace: .topnav
 *
 * Sticky pill-shaped top nav bar. Mounts at the top of the page via the
 * TopNav component class. Owns brand wordmark, search, action icons,
 * the hamburger drawer toggle, the avatar, and the slot the ThemeToggle
 * mounts into.
 */

.topnav-wrap {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 14px 24px 0;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.topnav {
    pointer-events: auto;
    width: 100%;
    max-width: 1720px;
    height: 60px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 0 18px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 78%, transparent);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    backdrop-filter: saturate(160%) blur(16px);
    border: 1px solid var(--hairline);
    box-shadow: var(--shadow-soft);
}

.topnav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px 0 6px;
    text-decoration: none;
    color: var(--text);
}

.topnav__brand-logo {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
}
.topnav__brand-logo-img {
    width: 32px;
    height: 32px;
    display: block;
    object-fit: contain;
}

.topnav__brand-name {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.02em;
}

.topnav__search {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 14px 0 38px;
    background: var(--surface-2);
    border: 1px solid var(--hairline);
    border-radius: 999px;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.topnav__search:focus-within {
    border-color: color-mix(in srgb, var(--iris) 50%, transparent);
    box-shadow: 0 0 0 4px var(--iris-tint);
    background: var(--surface);
}
.topnav__search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-3);
}
.topnav__search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font: 500 14px 'Inter', sans-serif;
    color: var(--text);
    min-width: 0;
}
.topnav__search-input::placeholder { color: var(--text-3); }

.topnav__search-kbd {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--surface);
    border: 1px solid var(--hairline-2);
    color: var(--text-2);
    font-feature-settings: "tnum";
}

.topnav__search-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 70;
    max-height: min(420px, calc(100vh - 120px));
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid var(--hairline);
    background: var(--surface);
    box-shadow: var(--shadow-pop);
}
.topnav__search-panel[hidden] {
    display: none;
}
.topnav__search-empty {
    padding: 12px;
    color: var(--text-3);
    font: 650 12px 'Inter', sans-serif;
}
.topnav__search-result {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    align-items: center;
    padding: 9px 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    text-align: left;
}
.topnav__search-result:hover,
.topnav__search-result--active {
    background: var(--iris-tint);
}
.topnav__search-result-type {
    display: inline-flex;
    justify-content: center;
    width: 34px;
    padding: 3px 6px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text-2);
    font: 700 10px 'Inter Tight', 'Inter', sans-serif;
    text-transform: uppercase;
}
.topnav__search-result-logo,
.topnav__search-result-avatar {
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--surface-2);
    border: 1px solid var(--hairline);
    display: grid;
    place-items: center;
    color: white;
    font: 700 10px 'Inter Tight', sans-serif;
    overflow: hidden;
}
.topnav__search-result-logo--fallback {
    background: var(--iris-tint);
    color: var(--iris);
}
.topnav__search-result-avatar-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}
.topnav__search-result-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}
.topnav__search-result-label-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.topnav__search-result-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text);
    font: 700 13px 'Inter Tight', 'Inter', sans-serif;
}
.topnav__search-kind-badge {
    flex: 0 0 auto;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 600;
    font-size: 9px;
    letter-spacing: 0.06em;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text-3);
    border: 1px solid var(--hairline);
    text-transform: uppercase;
    white-space: nowrap;
}
.topnav__search-kind-badge--stock {
    background: color-mix(in srgb, var(--green) 12%, transparent);
    color: var(--green-2);
    border-color: color-mix(in srgb, var(--green) 24%, transparent);
}
.topnav__search-kind-badge--crypto {
    background: color-mix(in srgb, var(--amber) 14%, transparent);
    color: var(--amber);
    border-color: color-mix(in srgb, var(--amber) 24%, transparent);
}
.topnav__search-kind-badge--etf {
    background: color-mix(in srgb, var(--cyan) 12%, transparent);
    color: var(--cyan);
    border-color: color-mix(in srgb, var(--cyan) 24%, transparent);
}
.topnav__search-kind-badge--fx,
.topnav__search-kind-badge--future {
    background: color-mix(in srgb, var(--violet) 12%, transparent);
    color: var(--violet);
    border-color: color-mix(in srgb, var(--violet) 24%, transparent);
}
.topnav__search-result-meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-3);
    font: 600 12px 'Inter', sans-serif;
}

.topnav__actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.topnav__notifications-wrap {
    position: relative;
    display: inline-flex;
}

.topnav__icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: none;
    background: transparent;
    border-radius: 999px;
    color: var(--text-2);
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s, color 0.15s, box-shadow 0.15s ease;
}
.topnav__icon-btn:hover {
    transform: scale(1.08);
    background: color-mix(in srgb, var(--iris) 10%, var(--surface-2));
    color: var(--text);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--iris) 14%, transparent);
}
.topnav__icon-btn--has-unread {
    background: color-mix(in srgb, var(--iris) 10%, var(--surface-2));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--iris) 16%, transparent);
}
.topnav__icon-btn--open {
    background: color-mix(in srgb, var(--iris) 12%, var(--surface-2));
    color: var(--text);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--iris) 24%, transparent);
}
.topnav__icon-btn:focus-visible {
    outline: 2px solid var(--iris);
    outline-offset: 2px;
}

.topnav__icon-btn--menu {
    display: none;
}

.topnav__count-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    min-width: 20px;
    width: auto;
    height: 20px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    border: 2px solid var(--surface);
    font: 800 9px/1 'Inter Tight', 'Inter', sans-serif;
    font-feature-settings: "tnum";
    box-shadow: 0 2px 8px color-mix(in srgb, var(--red) 34%, transparent);
}
.topnav__count-badge[hidden] {
    display: none;
}

.topnav__count-badge::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: inherit;
    border: 1px solid color-mix(in srgb, var(--red) 44%, transparent);
    opacity: 0;
}

.topnav__icon-btn:hover .topnav__count-badge,
.topnav__icon-btn--open .topnav__count-badge {
    transform: scale(1.14);
}

.topnav__icon-btn--attention .topnav__count-badge {
    animation: topnavNotificationBreath 1.2s ease-in-out infinite;
}

.topnav__icon-btn--attention .topnav__count-badge::after {
    opacity: 0.55;
    animation: topnavNotificationHalo 1.8s ease-in-out infinite;
}

.topnav__icon-btn--attention::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    border: 1px solid color-mix(in srgb, var(--iris) 24%, transparent);
    opacity: 0.48;
    animation: topnavUnreadButtonBreath 1.8s ease-in-out infinite;
}

@keyframes topnavNotificationBreath {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px color-mix(in srgb, var(--red) 30%, transparent);
    }
    50% {
        transform: scale(1.16);
        box-shadow: 0 7px 24px color-mix(in srgb, var(--red) 68%, transparent);
    }
}

@keyframes topnavNotificationHalo {
    0%, 100% { transform: scale(0.9); opacity: 0.45; }
    50% { transform: scale(1.22); opacity: 0; }
}

@keyframes topnavUnreadButtonBreath {
    0%, 100% {
        transform: scale(1);
        opacity: 0.26;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.06;
    }
}

.topnav__notifications-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(360px, calc(100vw - 24px));
    max-height: min(520px, calc(100vh - 92px));
    padding: 10px;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 18px;
    box-shadow: var(--shadow-pop);
    z-index: 70;
}
.topnav__notifications-panel[hidden] {
    display: none;
}
.topnav__notifications-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 6px 10px;
    border-bottom: 1px solid var(--hairline);
}
.topnav__notifications-title {
    margin: 0;
    font-family: 'Inter Tight', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
}
.topnav__notifications-mark-all {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 10px;
    border: 1px solid color-mix(in srgb, var(--iris) 24%, var(--hairline));
    border-radius: 999px;
    background: var(--iris-tint);
    color: var(--iris);
    cursor: pointer;
    font: 800 11px 'Inter', sans-serif;
    transition: transform 0.14s ease, background 0.14s ease, opacity 0.14s ease;
}
.topnav__notifications-mark-all:hover {
    transform: scale(1.05);
    background: color-mix(in srgb, var(--iris) 16%, var(--surface));
}
.topnav__notifications-mark-all:disabled {
    cursor: not-allowed;
    opacity: 0.48;
    transform: none;
}
.topnav__notifications-list {
    min-height: 72px;
    max-height: 430px;
    overflow-y: auto;
    padding: 6px 0 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.topnav__notification-item {
    width: 100%;
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    padding: 10px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.topnav__notification-item:hover {
    background: var(--surface-2);
}
.topnav__notification-item:focus-visible {
    outline: 2px solid var(--iris);
    outline-offset: -2px;
}
.topnav__notification-item--unread {
    background: var(--iris-tint);
    box-shadow: inset 3px 0 0 var(--iris);
}
.topnav__notification-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--iris);
}
.topnav__notification-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.topnav__notification-title {
    color: var(--text);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.25;
}
.topnav__notification-body {
    color: var(--text-2);
    font-size: 12px;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.topnav__notification-time {
    margin-top: 2px;
    color: var(--text-3);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-feature-settings: "tnum";
}
.topnav__notifications-empty,
.topnav__notifications-more {
    padding: 18px 12px;
    text-align: center;
    color: var(--text-3);
    font-size: 13px;
}
.topnav__notifications-more {
    padding: 10px 12px;
}

.topnav__avatar-wrap {
    position: relative;
    display: inline-flex;
}

.topnav__avatar-btn {
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 999px;
}
.topnav__avatar-btn:focus-visible {
    outline: 2px solid var(--iris);
    outline-offset: 2px;
}
.topnav__avatar-btn--open .topnav__avatar {
    box-shadow: 0 0 0 3px var(--iris-tint);
}

.topnav__avatar {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: white;
    letter-spacing: -0.02em;
    user-select: none;
    background: linear-gradient(135deg, #6366f1, #22d3ee);
    transition: box-shadow 0.15s ease;
    overflow: hidden;
}
.topnav__avatar-btn:hover .topnav__avatar,
.topnav__avatar-btn:focus-visible .topnav__avatar {
    box-shadow: 0 0 0 3px var(--iris-tint);
}
.topnav__avatar-initials {
    grid-area: 1 / 1;
}
.topnav__avatar:has(> .topnav__avatar-img:not([hidden])) .topnav__avatar-initials {
    opacity: 0;
}
.topnav__avatar-img {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}
.topnav__avatar-img[hidden] {
    display: none;
}
.topnav__avatar-settings-icon {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border-radius: inherit;
    background: rgba(4, 7, 18, 0.74);
    color: #ffffff;
    font-size: 15px;
    opacity: 0;
    transform: scale(0.78);
    transition: opacity 0.14s ease, transform 0.14s ease;
    pointer-events: none;
}
.topnav__avatar-btn:hover .topnav__avatar-settings-icon,
.topnav__avatar-btn:focus-visible .topnav__avatar-settings-icon,
.topnav__avatar-btn--hover .topnav__avatar-settings-icon,
.topnav__avatar-btn--focus .topnav__avatar-settings-icon,
.topnav__avatar-btn--open .topnav__avatar-settings-icon {
    opacity: 1;
    transform: scale(1);
}

.topnav__user-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 14px;
    box-shadow: var(--shadow-pop);
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.topnav__user-menu[hidden] {
    display: none;
}

.topnav__user-menu-handle {
    padding: 10px 12px 8px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-3);
    border-bottom: 1px solid var(--hairline);
    margin-bottom: 4px;
    line-height: 1.3;
}
.topnav__user-menu-handle strong {
    color: var(--text);
    font-weight: 600;
}

.topnav__user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.topnav__user-menu-item:hover {
    background: var(--surface-2);
}
.topnav__user-menu-item--primary {
    background: var(--text);
    color: var(--surface);
}
.topnav__user-menu-item--primary:hover {
    background: var(--text);
    color: var(--surface);
    filter: brightness(1.05);
}
.topnav__user-menu-item:focus-visible {
    outline: 2px solid var(--iris);
    outline-offset: -2px;
}
.topnav__user-menu-item svg {
    color: var(--text-3);
    flex: 0 0 auto;
}
.topnav__user-menu-item:hover svg {
    color: var(--text);
}
.topnav__user-menu-item[data-busy="true"] {
    opacity: 0.6;
    pointer-events: none;
}

.topnav__avatar-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 20px;
    background: var(--modal-backdrop);
    pointer-events: auto;
}
.topnav__avatar-modal[hidden] {
    display: none;
}
.topnav__avatar-modal-panel {
    width: min(430px, calc(100vw - 32px));
    max-height: min(86vh, 760px);
    border-radius: 18px;
    border: 1px solid var(--hairline);
    background: var(--surface);
    box-shadow: var(--shadow-pop);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
}
.topnav__avatar-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--hairline);
}
.topnav__avatar-modal-title {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}
.topnav__avatar-modal-title i {
    color: var(--iris);
    font-size: 17px;
}
.topnav__avatar-modal-head strong {
    display: block;
    color: var(--text);
    font: 800 18px 'Inter Tight', 'Inter', sans-serif;
}
.topnav__avatar-modal-head span {
    display: block;
    margin-top: 3px;
    color: var(--text-3);
    font: 600 12px/1.4 'Inter', sans-serif;
}
.topnav__avatar-modal-body {
    min-height: 0;
    overflow-y: auto;
    display: grid;
    gap: 14px;
    padding: 16px;
}
.topnav__avatar-modal-close {
    position: relative;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--hairline);
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--text-2);
    font-size: 0;
    cursor: pointer;
    transform-origin: center;
    transition: transform 0.14s ease, background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
    will-change: transform;
}
.topnav__avatar-modal-close::before,
.topnav__avatar-modal-close::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 13px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}
.topnav__avatar-modal-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}
.topnav__avatar-modal-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}
.topnav__avatar-modal-close:hover,
.topnav__avatar-modal-close:focus-visible {
    transform: scale(1.1);
    background: var(--surface);
    color: var(--text);
    border-color: color-mix(in srgb, var(--iris) 35%, var(--hairline));
}
.topnav__avatar-crop-frame {
    position: relative;
    width: min(330px, 100%);
    aspect-ratio: 1;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 50%;
    background: #111827;
    border: 1px solid var(--hairline);
    display: grid;
    place-items: center;
    cursor: grab;
    touch-action: none;
    user-select: none;
}
.topnav__avatar-crop-frame:active {
    cursor: grabbing;
}
.topnav__avatar-crop-bg,
.topnav__avatar-crop-img {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center;
    pointer-events: none;
}
.topnav__avatar-crop-bg {
    transform: scale(1.18);
    filter: blur(18px) saturate(1.08);
    opacity: 0.78;
}
.topnav__avatar-crop-img {
    position: relative;
    z-index: 1;
    will-change: transform;
}
.topnav__avatar-bg-panel {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--hairline);
    border-radius: 12px;
    background: var(--surface-2);
}
.topnav__avatar-bg-panel[hidden] {
    display: none;
}
.topnav__avatar-bg-head {
    display: grid;
    gap: 3px;
}
.topnav__avatar-bg-head strong {
    color: var(--text);
    font: 800 13px 'Inter Tight', 'Inter', sans-serif;
}
.topnav__avatar-bg-head span {
    color: var(--text-3);
    font: 600 12px/1.35 'Inter', sans-serif;
}
.topnav__avatar-bg-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.topnav__avatar-bg-swatch {
    width: 28px;
    height: 28px;
    border: 2px solid var(--surface);
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--hairline);
    cursor: pointer;
}
.topnav__avatar-bg-swatch--active {
    box-shadow: 0 0 0 2px var(--iris);
}
.topnav__avatar-bg-swatch:focus-visible {
    outline: 2px solid var(--iris);
    outline-offset: 3px;
}
.topnav__avatar-bg-label {
    color: var(--text-2);
    font: 800 12px 'Inter', sans-serif;
}
.topnav__avatar-bg-input {
    width: 100%;
    height: 36px;
    padding: 2px;
    border: 1px solid var(--hairline);
    border-radius: 8px;
    background: var(--surface);
    cursor: pointer;
}
.topnav__avatar-zoom-label {
    color: var(--text-2);
    font: 800 12px 'Inter', sans-serif;
}
.topnav__avatar-zoom {
    width: 100%;
    accent-color: var(--iris);
}
.topnav__avatar-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--hairline);
    background: var(--surface);
}
.topnav__avatar-save-btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: linear-gradient(120deg, var(--iris), var(--cyan), var(--violet));
    color: white;
    font: 800 13px 'Inter Tight', 'Inter', sans-serif;
    cursor: pointer;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--iris) 22%, transparent);
}
.topnav__avatar-save-btn:hover {
    filter: brightness(1.05);
}
.topnav__avatar-save-btn[data-busy="true"] {
    opacity: 0.72;
    pointer-events: none;
}

@media (max-width: 768px) {
    .topnav__icon-btn--menu { display: grid; }
    .topnav {
        height: auto;
        min-height: 60px;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "brand actions"
            "search search";
        gap: 10px 12px;
        padding: 10px 12px;
        border-radius: 24px;
    }
    .topnav__brand { grid-area: brand; min-width: 0; }
    .topnav__actions { grid-area: actions; justify-content: flex-end; }
    .topnav__search {
        grid-area: search;
        display: flex;
        max-width: none;
        margin: 0;
    }
    .topnav__search-kbd { display: none; }
    .topnav__notifications-panel {
        position: fixed;
        top: 220px;
        left: 12px;
        right: 12px;
        width: auto;
        max-height: min(440px, calc(100vh - 244px));
        z-index: 120;
    }
    .topnav-wrap { padding: 10px 12px 0; }
}
