:root {
    --bg: #f7f9fc;
    --bg-soft: #eef6ff;
    --panel: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --line: #dbe5f0;
    --primary: #084a91;
    --primary-dark: #052f69;
    --primary-soft: #dbeafe;
    --accent: #7dd3fc;
    --success: #047857;
    --warning: #b45309;
    --danger: #b91c1c;
    --shadow: 0 18px 48px rgba(5, 47, 105, 0.12);
    --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.06);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(125, 211, 252, 0.22), transparent 34rem),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 46%, #eef6ff 100%);
    color: var(--text);
    font-family: Lexend, Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    color: var(--primary-dark);
    text-decoration: none;
}

a:hover {
    color: var(--primary);
}

.topbar {
    align-items: center;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(219, 229, 240, 0.9);
    display: flex;
    gap: 24px;
    justify-content: space-between;
    min-height: 72px;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.adminbar {
    background: #052f69;
    border-bottom-color: #031d43;
    box-shadow: 0 16px 34px rgba(5, 47, 105, 0.22);
}

.brand {
    align-items: center;
    color: var(--text);
    display: inline-flex;
    font-size: 17px;
    font-weight: 800;
    gap: 12px;
    letter-spacing: 0;
    white-space: nowrap;
}

.adminbar .brand,
.adminbar .nav a {
    color: #ffffff;
}

.brand-mark {
    align-items: center;
    background: linear-gradient(135deg, var(--primary), #031d43);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(5, 47, 105, 0.22);
    color: #ffffff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.brand-logo {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(8, 74, 145, 0.18);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(5, 47, 105, 0.14);
    display: inline-flex;
    flex: 0 0 112px;
    height: 50px;
    justify-content: center;
    overflow: hidden;
    padding: 5px;
    width: 112px;
}

.brand-logo img {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.admin-brand-logo {
    border-color: rgba(255, 255, 255, 0.44);
    box-shadow: none;
}

.adminbar .brand-mark {
    background: #031d43;
}

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

.nav a {
    border-radius: 999px;
    color: #40514d;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 12px;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav a:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
    text-decoration: none;
    transform: translateY(-1px);
}

.site-topbar {
    align-items: center;
    background: #052f69;
    border-bottom-color: #031d43;
    box-shadow: 0 16px 34px rgba(5, 47, 105, 0.22);
}

.site-topbar-row {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 12px;
    justify-content: space-between;
}

.site-topbar .brand,
.site-topbar .nav a {
    color: #ffffff;
}

.site-topbar .nav a {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.34);
    font-weight: 800;
}

.site-topbar .nav a:hover {
    background: #031d43;
    color: #ffffff;
}

.site-menu-toggle {
    align-items: center;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 14px;
    box-shadow: none;
    display: none;
    flex-direction: column;
    gap: 5px;
    height: 44px;
    justify-content: center;
    padding: 0;
    width: 46px;
}

.site-menu-toggle span {
    background: #ffffff;
    border-radius: 999px;
    display: block;
    height: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    width: 20px;
}

.site-menu-toggle:hover {
    background: rgba(3, 29, 67, 0.88);
    box-shadow: none;
    transform: none;
}

.site-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.site-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-menu {
    flex: 1 1 auto;
}

.profile-chip {
    align-items: center;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 10px;
    max-width: 260px;
    min-height: 48px;
    padding: 5px 12px 5px 5px;
    transition: background 0.18s ease, transform 0.18s ease;
}

.profile-chip:hover {
    background: rgba(3, 29, 67, 0.88);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

.profile-avatar {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: var(--primary-dark);
    display: inline-flex;
    flex: 0 0 38px;
    font-size: 13px;
    font-weight: 900;
    height: 38px;
    justify-content: center;
    overflow: hidden;
    width: 38px;
}

.profile-avatar img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.profile-chip-text {
    display: grid;
    line-height: 1.1;
    min-width: 0;
}

.profile-chip-text strong,
.profile-chip-text small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-chip-text strong {
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.profile-chip-text small {
    color: rgba(255, 255, 255, 0.76);
    font-size: 11px;
    font-weight: 800;
    text-transform: capitalize;
}

.adminbar .nav a:hover {
    background: #031d43;
    color: #ffffff;
}

.adminbar .nav a {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.34);
    color: #ffffff;
    font-weight: 800;
    text-shadow: none;
}

.admin-topbar {
    align-items: center;
}

.admin-topbar-row {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 12px;
    justify-content: space-between;
}

.admin-menu-toggle {
    align-items: center;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 14px;
    box-shadow: none;
    display: none;
    flex-direction: column;
    gap: 5px;
    height: 44px;
    justify-content: center;
    padding: 0;
    width: 46px;
}

.admin-menu-toggle span {
    background: #ffffff;
    border-radius: 999px;
    display: block;
    height: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    width: 20px;
}

.admin-menu-toggle:hover {
    background: rgba(3, 29, 67, 0.88);
    box-shadow: none;
    transform: none;
}

.admin-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.admin-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.admin-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.admin-menu {
    flex: 1 1 auto;
}

@media (min-width: 981px) {
    .container {
        font-size: 14px;
    }

    .container .hero h1 {
        font-size: clamp(28px, 3vw, 40px);
        font-weight: 700;
        line-height: 1.15;
    }

    .container .page-title {
        font-size: clamp(24px, 2.2vw, 32px);
        font-weight: 700;
        line-height: 1.2;
    }

    .container h2,
    .container .text-2xl {
        font-size: 20px;
        line-height: 1.3;
    }

    .container h3,
    .container .text-xl {
        font-size: 17px;
        line-height: 1.35;
    }

    .container .text-3xl {
        font-size: 24px;
        line-height: 1.2;
    }

    .container .text-4xl {
        font-size: 30px;
        line-height: 1.1;
    }

    .container .text-5xl,
    .container .text-6xl,
    .container .stat-card strong,
    .container .admin-stat-card strong {
        font-size: 36px;
        line-height: 1;
    }

    .container h1,
    .container h2,
    .container h3,
    .container .font-black,
    .container .font-extrabold {
        font-weight: 700;
    }

    .container .font-bold {
        font-weight: 600;
    }

    .container .font-semibold {
        font-weight: 500;
    }

    .container .auth-kicker {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.02em;
    }

    .site-topbar,
    .admin-topbar {
        gap: 12px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .site-menu,
    .admin-menu {
        flex-wrap: nowrap;
        gap: 0;
        overflow-x: auto;
        scrollbar-width: none;
        white-space: nowrap;
    }

    .site-menu::-webkit-scrollbar,
    .admin-menu::-webkit-scrollbar {
        display: none;
    }

    .site-topbar .site-menu a,
    .adminbar .admin-menu a {
        background: transparent;
        border: 0;
        border-radius: 0;
        flex: 0 0 auto;
        font-size: 11px;
        font-weight: 600;
        padding: 9px 5px;
    }

    .site-topbar .site-menu a:hover,
    .adminbar .admin-menu a:hover {
        background: transparent;
        color: #ffffff;
        text-decoration: underline;
        text-decoration-color: rgba(255, 255, 255, 0.7);
        text-decoration-thickness: 2px;
        text-underline-offset: 5px;
        transform: none;
    }

    .admin-menu-compact {
        gap: 14px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .admin-menu-compact .admin-menu {
        flex-wrap: nowrap;
        gap: 0;
        justify-content: flex-end;
        overflow-x: auto;
        scrollbar-width: none;
        white-space: nowrap;
    }

    .admin-menu-compact .admin-menu::-webkit-scrollbar {
        display: none;
    }

    .admin-menu-compact .admin-menu a {
        background: transparent;
        border: 0;
        border-radius: 0;
        flex: 0 0 auto;
        font-size: 11px;
        padding: 9px 5px;
    }

    .admin-menu-compact .admin-menu a:hover {
        background: transparent;
        color: #ffffff;
        text-decoration: underline;
        text-decoration-color: rgba(255, 255, 255, 0.7);
        text-decoration-thickness: 2px;
        text-underline-offset: 6px;
        transform: none;
    }
}

.container {
    margin: 0 auto;
    max-width: 1180px;
    padding: 34px 28px;
}

.hero {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(236, 253, 248, 0.9)),
        linear-gradient(90deg, rgba(8, 74, 145, 0.10), transparent);
    border: 1px solid rgba(217, 232, 228, 0.95);
    border-radius: 24px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 28px;
    grid-template-columns: 1.35fr 0.9fr;
    overflow: hidden;
    padding: 44px;
    position: relative;
}

.hero::before {
    background: linear-gradient(180deg, var(--primary), #031d43);
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 7px;
}

.hero h1,
.page-title {
    color: #1e293b;
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0 0 14px;
}

.page-title {
    font-size: clamp(28px, 3vw, 42px);
}

.card .page-title {
    font-size: clamp(26px, 2.6vw, 36px);
}

.muted {
    color: var(--muted);
}

.grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(217, 232, 228, 0.95);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    padding: 24px;
}

.auth-card {
    margin: 20px auto;
    max-width: 540px;
    padding: 32px;
}

.auth-kicker {
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.stat-card {
    overflow: hidden;
    position: relative;
}

.stat-card::after {
    background: linear-gradient(180deg, rgba(125, 211, 252, 0.20), rgba(125, 211, 252, 0));
    content: "";
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    width: 7px;
}

.stat-card strong {
    color: var(--primary-dark);
    display: block;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 900;
    line-height: 1;
    margin: 12px 0 8px;
}

.stat-card span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.admin-stat-grid {
    align-items: stretch;
}

.admin-stat-card {
    animation: statFadeUp 520ms ease both;
    animation-delay: var(--delay);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(236, 253, 248, 0.92)),
        radial-gradient(circle at top right, rgba(125, 211, 252, 0.24), transparent 42%);
    border: 1px solid rgba(8, 74, 145, 0.18);
    border-radius: 24px;
    box-shadow: 0 18px 44px rgba(5, 47, 105, 0.10);
    min-height: 190px;
    overflow: hidden;
    padding: 22px;
    position: relative;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.admin-stat-card::before {
    background: linear-gradient(180deg, #084a91, #052f69);
    border-radius: 999px;
    content: "";
    height: 58px;
    position: absolute;
    right: -18px;
    top: 22px;
    width: 6px;
}

.admin-stat-card::after {
    background: rgba(125, 211, 252, 0.10);
    border-radius: 999px;
    bottom: -42px;
    content: "";
    height: 120px;
    position: absolute;
    right: -34px;
    width: 120px;
}

.admin-stat-card:hover {
    border-color: rgba(8, 74, 145, 0.42);
    box-shadow: 0 24px 60px rgba(5, 47, 105, 0.17);
    transform: translateY(-5px);
}

.admin-stat-top {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.admin-stat-icon {
    align-items: center;
    background: linear-gradient(135deg, #084a91, #052f69);
    border-radius: 16px;
    box-shadow: 0 14px 28px rgba(5, 47, 105, 0.24);
    color: #ffffff;
    display: inline-flex;
    font-size: 14px;
    font-weight: 900;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.admin-stat-pill {
    background: #eef6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    color: #052f69;
    font-size: 11px;
    font-weight: 900;
    padding: 7px 10px;
    text-transform: uppercase;
}

.admin-stat-pill.warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #b45309;
}

.admin-stat-card p {
    color: #28433f;
    font-size: 14px;
    font-weight: 800;
    margin: 0;
    position: relative;
    z-index: 1;
}

.admin-stat-card strong {
    color: #052f69;
    display: block;
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.95;
    margin: 12px 0 10px;
    position: relative;
    z-index: 1;
}

.admin-stat-card > span {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

@keyframes statFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card h2,
.card h3 {
    color: #1e3a5f;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 0;
}

.card h2 {
    font-size: 24px;
}

.card h3 {
    font-size: 17px;
}

.card strong {
    color: #1e293b;
}

.button,
button,
input[type="submit"] {
    align-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: 0;
    border-radius: 12px;
    box-shadow: 0 12px 26px rgba(5, 47, 105, 0.22);
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 800;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    transition: box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
    background: linear-gradient(135deg, #084a91, var(--primary-dark));
    box-shadow: 0 16px 34px rgba(5, 47, 105, 0.28);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

.button-small {
    min-height: 34px;
    padding: 7px 12px;
}

.button-muted {
    background: #f7faf9;
    border: 1px solid var(--line);
    box-shadow: none;
    color: #1e3a5f;
}

.button-muted:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.button-danger {
    background: linear-gradient(135deg, #dc2626, var(--danger));
    box-shadow: 0 12px 24px rgba(185, 28, 28, 0.16);
}

form {
    display: grid;
    gap: 16px;
}

label {
    color: #1e3a5f;
    display: grid;
    font-size: 14px;
    font-weight: 800;
    gap: 7px;
}

input,
select,
textarea {
    background: #ffffff;
    border: 1px solid #cbdbea;
    border-radius: 12px;
    color: var(--text);
    font: inherit;
    min-height: 42px;
    outline: none;
    padding: 11px 12px;
    transition: border 0.18s ease, box-shadow 0.18s ease;
    width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(8, 74, 145, 0.12);
}

input:disabled {
    background: #eef5f3;
    color: #7a8985;
}

textarea {
    min-height: 128px;
}

.alert {
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 700;
    margin-bottom: 18px;
    padding: 13px 15px;
}

.alert.success {
    background: #dcfce7;
    border-color: #bbf7d0;
    color: #14532d;
}

.alert.danger {
    background: #fee2e2;
    border-color: #fecaca;
    color: #7f1d1d;
}

.badge {
    background: #eef5f3;
    border: 1px solid #dbe5f0;
    border-radius: 999px;
    color: #334155;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    padding: 6px 10px;
    text-transform: capitalize;
}

.badge-success {
    background: #d1fae5;
    border-color: #a7f3d0;
    color: var(--success);
}

.badge-warning {
    background: #fef3c7;
    border-color: #fde68a;
    color: var(--warning);
}

.badge-danger {
    background: #fee2e2;
    border-color: #fecaca;
    color: var(--danger);
}

.table {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    width: 100%;
}

.card > .table,
.card table {
    min-width: 720px;
}

.card:has(.table) {
    overflow-x: auto;
}

.table th {
    background: #f1f7fd;
    color: #1e3a5f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.table th,
.table td {
    border-bottom: 1px solid var(--line);
    padding: 13px 12px;
    text-align: left;
    vertical-align: top;
}

.table tr:last-child td {
    border-bottom: 0;
}

.table tr:hover td {
    background: rgba(236, 253, 248, 0.58);
}

.progress {
    background: #dbeafe;
    border-radius: 999px;
    height: 12px;
    overflow: hidden;
}

.progress span {
    background: linear-gradient(90deg, var(--primary), #38bdf8);
    border-radius: inherit;
    display: block;
    height: 100%;
}

.lesson-list {
    display: grid;
    gap: 12px;
}

.lesson-item {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    padding: 16px;
    transition: border 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.lesson-item:hover {
    border-color: rgba(8, 74, 145, 0.45);
    box-shadow: var(--shadow-soft);
    transform: translateY(-1px);
}

.footer {
    color: var(--muted);
    padding: 34px 28px;
    text-align: center;
}

.footer-brand {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    font-weight: 700;
}

.footer-brand img {
    height: 50px;
    object-fit: contain;
    width: 150px;
}

code {
    background: #eef6ff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    color: #052f69;
    padding: 2px 6px;
}

@media (max-width: 980px) {
    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-topbar {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        padding: 14px 16px;
    }

    .site-topbar-row {
        width: 100%;
    }

    .site-topbar-row .brand {
        color: #ffffff;
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
    }

    .profile-chip {
        max-width: 52px;
        min-height: 46px;
        padding: 4px;
    }

    .profile-chip-text {
        display: none;
    }

    .site-menu-toggle {
        display: inline-flex;
        flex: 0 0 46px;
    }

    .site-menu {
        background: rgba(3, 29, 67, 0.62);
        border: 1px solid rgba(255, 255, 255, 0.24);
        border-radius: 20px;
        display: none;
        gap: 8px;
        padding: 10px;
        width: 100%;
    }

    .site-menu.is-open {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-menu a {
        border-radius: 14px;
        color: #ffffff;
        justify-content: center;
        padding: 11px 10px;
        text-align: center;
    }
}

@media (max-width: 760px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .brand {
        width: 100%;
    }

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

    .nav a {
        font-size: 12px;
        padding: 8px 10px;
    }

    .container {
        padding: 22px 16px;
    }

    .hero {
        border-radius: 18px;
        padding: 30px 24px;
    }

    .hero,
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .card {
        border-radius: 16px;
        padding: 20px;
    }

    .auth-card {
        margin: 0 auto;
        padding: 22px;
    }

    .lesson-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 980px) {
    .admin-topbar {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        padding: 14px 16px;
    }

    .admin-topbar-row {
        width: 100%;
    }

    .admin-topbar-row .brand {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
    }

    .admin-menu-toggle {
        display: inline-flex;
    }

    .admin-menu {
        background: rgba(3, 29, 67, 0.62);
        border: 1px solid rgba(255, 255, 255, 0.24);
        border-radius: 20px;
        display: none;
        gap: 8px;
        padding: 10px;
        width: 100%;
    }

    .admin-menu.is-open {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-menu a {
        border-radius: 14px;
        justify-content: center;
        padding: 11px 10px;
        text-align: center;
    }
}

@media (max-width: 520px) {
    .site-menu.is-open {
        grid-template-columns: 1fr;
    }

    .admin-menu.is-open {
        grid-template-columns: 1fr;
    }
}
