.app-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    background: var(--app-card);
    border-bottom: 1px solid var(--app-border);
}

.app-header__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.app-header__logos {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.app-header__logos-divider {
    width: 1px;
    height: 20px;
    background: var(--app-border);
}

.app-header__logo {
    height: 24px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.app-header__titles {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-header__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--app-navy);
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-header__nav-link {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--app-ink);
    text-decoration: none;
    background: transparent;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    padding: 7px 12px;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.app-header__nav-link:hover {
    color: var(--app-accent-dark);
    border-color: var(--app-accent);
    background: rgba(242, 150, 62, 0.08);
}

.app-header__user {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.app-header__welcome {
    font-size: 13px;
    color: var(--app-ink);
    white-space: nowrap;
}

.app-header__welcome strong {
    text-transform: uppercase;
    color: var(--app-navy);
    font-weight: 700;
}

.app-header__logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--app-ink);
    background: transparent;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    padding: 7px 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.app-header__logout:hover {
    color: var(--app-accent-dark);
    border-color: var(--app-accent);
    background: rgba(242, 150, 62, 0.08);
}

.app-header__logout:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

@media (max-width: 560px) {
    .app-header {
        grid-template-columns: 1fr;
        justify-items: center;
        row-gap: 10px;
        padding: 12px 16px;
    }

    .app-header__user {
        justify-self: center;
    }

    .app-header__welcome {
        display: none;
    }
}
