:root {
    --app-header-height: 7.2rem;
}

.main-header {
    min-height: var(--app-header-height, 7.2rem);
    width: 100%;
    background-color: var(--bg-surface);
    border-bottom: 0.2rem solid var(--primary-dark);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: var(--z-sticky-header);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    gap: 1rem;
}

.header-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.header-center {
    flex: 0 0 auto;
    text-align: center;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

.user-stack {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 100%;
}

.user-display-name {
    position: absolute;
    bottom: 100%;
    right: 0;
    font-size: 0.85rem;
    white-space: nowrap;
    margin-bottom: 4px;
    color: var(--text-muted);
}

.logo-desktop {
    max-height: 5rem;
    width: auto;
    display: block;
}

.logo-mobile {
    display: none;
}

.highlight {
    font-weight: 700;
    color: var(--primary-dark);
}

.dashboard-container {
    width: 95%;
    max-width: 1600px;
    margin: 1.5rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 1.5rem;
    width: 100%;
    align-items: stretch;
    padding-top: 1rem;
}

@media (max-width: 600px) {

    :root {
        --app-header-height: 5rem;
    }

    .main-header {
        min-height: var(--app-header-height);
        padding: 0.5rem 0;
    }

    .logo-desktop {
        display: none;
    }

    .logo-mobile {
        display: block;
        max-height: 3.5rem;
        width: auto;
    }

    .user-display-name {
        font-size: 0.7rem;
        max-width: 8rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-container {
        padding: 0 0.75rem;
    }

    .action-grid {
        grid-template-columns: 1fr;
    }
}