@media (max-width: 650px) {

    header {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;

        width: 100%;
        z-index: 99999;

        background: var(--bg, #0d1117);
        border-bottom: 1px solid var(--border, #252b35);
    }

    body {
        padding-top: 110px;
    }

    .navbar {
        width: 100%;
        flex-direction: column;
        align-items: stretch;

        gap: 8px;

        padding-top: 8px;
        padding-bottom: 8px;

        box-sizing: border-box;
    }

    .brand {
        width: 100%;

        display: flex;
        align-items: center;

        gap: 9px;
        min-width: 0;
    }

    .brand .logo {
        flex: 0 0 auto;
    }

    .brand h1 {
        margin: 0;

        font-size: 18px;
        line-height: 1.1;
    }

    .brand-subtitle {
        font-size: 11px;
        line-height: 1.15;
    }

    .header-actions {
        width: 100%;

        display: grid;

        grid-template-columns:
            1.45fr
            1.15fr
            0.72fr
            0.9fr;

        gap: 4px;
    }

    .header-actions .btn,
    .header-actions .amc-btn {
        width: 100%;
        min-width: 0;

        min-height: 34px;

        padding: 6px 4px;
        margin: 0;

        box-sizing: border-box;

        display: flex;
        align-items: center;
        justify-content: center;

        font-size: 11px;
        line-height: 1.1;

        text-align: center;
        white-space: normal;
    }
}