.swan-masthead {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    padding: 16px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(5, 16, 38, 0.97);
    color: #eef4ff;
}

.swan-masthead-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
    color: #eef4ff;
    text-decoration: none;
}

.swan-masthead-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
}

.swan-masthead-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swan-masthead-title,
.swan-masthead-subtitle {
    display: block;
}

.swan-masthead-title {
    font-size: 1.1rem;
    font-weight: 800;
}

.swan-masthead-subtitle {
    margin-top: 3px;
    color: #b8c7e6;
    font-size: 0.9rem;
}

.swan-masthead-account {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 9px;
    min-width: 0;
    max-width: 100%;
}

.swan-masthead-identity {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 7px;
    min-width: 0;
    font-size: 0.88rem;
}

.swan-masthead-identity-label {
    flex-shrink: 0;
    color: #b8c7e6;
}

.swan-masthead-user {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #d7b46a;
    font-weight: 800;
}

.swan-masthead-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.swan-masthead-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid rgba(127, 178, 255, 0.35);
    border-radius: 9px;
    background: rgba(127, 178, 255, 0.14);
    color: #eef4ff;
    font-size: 0.86rem;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
}

.swan-masthead-action:hover {
    border-color: rgba(127, 178, 255, 0.55);
    background: rgba(127, 178, 255, 0.22);
}

.swan-masthead-action-gold {
    border-color: rgba(215, 180, 106, 0.4);
    background: rgba(215, 180, 106, 0.16);
    color: #f0cf88;
}

.swan-masthead-action-gold:hover {
    background: rgba(215, 180, 106, 0.24);
}

.swan-masthead :where(a, button):focus-visible {
    outline: 3px solid #f0d08a;
    outline-offset: 3px;
}

.swan-copyright-footer {
    width: min(1180px, calc(100% - 36px));
    margin: 14px auto 0;
    padding: 18px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    color: rgba(233, 238, 252, 0.7);
    font-size: 0.82rem;
    line-height: 1.45;
    text-align: center;
}

@media (max-width: 700px) {
    .swan-masthead {
        align-items: flex-start;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 14px;
        padding: 14px 16px;
    }

    .swan-masthead-account,
    .swan-masthead-identity,
    .swan-masthead-actions {
        align-items: flex-start;
        justify-content: flex-start;
        width: 100%;
    }

    .swan-masthead-identity {
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .swan-masthead-action {
        transition: none;
    }
}
