.page-content {
    padding: 18px 0 48px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 32;
    padding-top: 12px;
    background: transparent;
    border-bottom: 0;
    backdrop-filter: none;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 74px;
    padding: 14px 18px;
    border: 1px solid rgba(205, 216, 228, 0.84);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 30px rgba(18, 31, 44, 0.08);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand:hover {
    text-decoration: none;
}

.brand__mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(99, 194, 184, 0.14);
    color: #1d8b74;
    box-shadow: inset 0 0 0 1px rgba(39, 162, 135, 0.08);
}

.brand__mark svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.brand__text {
    display: grid;
    gap: 2px;
    line-height: 1;
}

.brand__text strong {
    font-size: 1.06rem;
    font-weight: 800;
}

.brand__text small {
    font-size: 0.73rem;
    color: var(--muted);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.topnav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.topnav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.84);
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.topnav__link:hover {
    color: var(--text);
    text-decoration: none;
    border-color: rgba(99, 194, 184, 0.22);
    background: rgba(99, 194, 184, 0.08);
    transform: translateY(-1px);
}

.logout-form {
    margin: 0;
}


@media (max-width: 860px) {
    .topbar {
        padding-top: 10px;
    }

    .topbar__inner {
        min-height: 68px;
        padding: 12px 14px;
        border-radius: 20px;
        gap: 14px;
    }

    .brand__text small {
        display: none;
    }

    .topnav {
        gap: 8px;
    }
}

@media (max-width: 640px) {
    .topbar__inner {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .topnav {
        width: 100%;
        justify-content: flex-start;
    }

    .topnav__link {
        min-height: 36px;
        padding: 0 11px;
        font-size: 0.88rem;
    }
}
