.brand-header {
    height: 102px;
    background: #fff;
    border-bottom: 1px solid #eef1f4;
}

.brand-inner {
    width: calc(100% - 32px);
    max-width: 1280px;
    height: 102px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    height: 72px;
}

.brand-logo img {
    width: 286px;
    height: 72px;
    display: block;
}

.brand-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-btn {
    height: 32px;
    border: 1px solid #d7e0ea;
    background: #fff;
    color: #1d3046;
    border-radius: 4px;
    padding: 0 15px;
    cursor: pointer;
    font: inherit;
}

.auth-btn.primary {
    background: #1d73e8;
    border-color: #1d73e8;
    color: #fff;
}

.auth-user {
    color: #28394c;
    font-weight: 700;
    text-decoration: none;
}

.site-nav {
    height: 54px;
    background: linear-gradient(180deg, #535653 0%, #3f4240 58%, #343735 100%);
    color: #ececea;
    border-bottom: 1px solid rgba(17, 18, 17, 0.7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 10px rgba(22, 24, 24, 0.22);
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(12, 20, 31, 0.42);
}

.auth-modal.show {
    display: flex;
}

.auth-panel {
    width: 360px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.auth-head {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid #e2e8f0;
}

.auth-head strong {
    color: #17263a;
    font-size: 16px;
}

.auth-head button {
    width: 30px;
    height: 30px;
    border: 0;
    background: #f1f5f9;
    color: #5b6b7d;
    font-size: 20px;
    cursor: pointer;
}

.auth-form {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.auth-form[hidden] {
    display: none !important;
}

.auth-form input {
    height: 38px;
    border: 1px solid #c9d5e2;
    padding: 0 11px;
    outline-color: #1d73e8;
}

.auth-form button[type="submit"] {
    height: 38px;
    border: 0;
    background: #1d73e8;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
}

.auth-form button[type="submit"]:disabled {
    cursor: wait;
    opacity: 0.65;
}

.auth-link {
    height: 24px;
    border: 0;
    background: transparent;
    color: #1d73e8;
    cursor: pointer;
    padding: 0;
    justify-self: center;
    font: inherit;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-form p {
    min-height: 18px;
    margin: 0;
    color: #e33d3d;
}

.auth-form p.ok {
    color: #168a35;
}

.site-nav-inner {
    width: calc(100% - 32px);
    max-width: 1280px;
    height: 54px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav-link {
    position: relative;
    height: 54px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 11px;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
    font-weight: 700;
    letter-spacing: 0;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.42);
    transition: color .14s ease, background .14s ease;
}

.site-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.site-nav-link.active {
    color: #f2d57a;
}

.site-nav-link.active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    height: 1px;
    background: linear-gradient(90deg, rgba(217, 176, 73, 0), #e0bb5b 18%, #f4d98a 50%, #e0bb5b 82%, rgba(217, 176, 73, 0));
    box-shadow: 0 1px 0 rgba(255, 248, 198, 0.25);
}

.site-nav-link b {
    position: absolute;
    top: 8px;
    right: -2px;
    background: #f2d36f;
    color: #2d2f2d;
    font-size: 8px;
    line-height: 11px;
    padding: 0 2px;
    border-radius: 2px;
}

.site-nav-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    position: relative;
    flex: 0 0 14px;
    opacity: .9;
    transition: transform .14s ease, opacity .14s ease;
}

.site-nav-link:hover .site-nav-icon,
.site-nav-link.active .site-nav-icon {
    opacity: 1;
    transform: translateY(-1px);
}

.site-nav-icon.icon-home::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 5px;
    width: 9px;
    height: 7px;
    border: 2px solid currentColor;
    border-top: 0;
}

.site-nav-icon.icon-home::after {
    content: "";
    position: absolute;
    left: 2px;
    top: 1px;
    width: 9px;
    height: 9px;
    border-left: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: rotate(45deg);
}

.site-nav-icon.icon-wave::before {
    content: "";
    position: absolute;
    inset: 2px 0;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: skewX(-24deg);
}

.site-nav-icon.icon-grid::before {
    content: "";
    position: absolute;
    inset: 1px;
    background:
        linear-gradient(currentColor 0 0) left top / 4px 4px no-repeat,
        linear-gradient(currentColor 0 0) right top / 4px 4px no-repeat,
        linear-gradient(currentColor 0 0) left bottom / 4px 4px no-repeat,
        linear-gradient(currentColor 0 0) right bottom / 4px 4px no-repeat;
}

.site-nav-spacer {
    flex: 1;
}

.site-settings {
    height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #f2d57a;
    border: 1px solid #e5c35d;
    border-radius: 4px;
    padding: 0 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    background: rgba(28, 29, 28, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.36);
}

.site-settings:hover,
.site-settings.active {
    color: #fff2b2;
    border-color: #f1d474;
    background: rgba(229, 195, 93, 0.14);
}

.site-settings span {
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 50%;
    display: inline-block;
}

@media (max-width: 1120px) {
    .site-nav-link.nav-key-support {
        display: none;
    }
}

@media (max-width: 720px) {
    .brand-header {
        height: 82px;
    }

    .brand-inner {
        height: 82px;
        gap: 8px;
    }

    .brand-logo img {
        width: 210px;
        height: auto;
    }

    .brand-actions {
        gap: 6px;
    }

    .auth-btn {
        padding: 0 9px;
    }

    .site-nav-link {
        padding: 0 6px;
    }

    .site-nav-link.nav-key-tcp,
    .site-nav-link.nav-key-dns {
        display: none;
    }

    .site-settings {
        padding: 0 8px;
    }
}

@media (max-width: 480px) {
    .brand-inner {
        width: calc(100% - 20px);
    }

    .brand-logo img {
        width: 188px;
    }

    .site-settings,
    .site-nav-spacer {
        display: none;
    }
}

.site-footer {
    width: calc(100% - 32px);
    max-width: 1280px;
    margin: 18px auto 28px;
    padding: 14px 18px;
    border: 1px solid #dde6f0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.78);
    color: #617186;
    text-align: center;
    font-size: 12px;
    line-height: 1.7;
}
