.app-shell-frame {
    width: min(1580px, calc(100% - 36px));
    margin: 18px auto 12px;
}

.app-topbar {
    min-height: 62px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 12px;
    padding: 0 18px;

    border: 1px solid var(--border, #27323a);
    background: rgba(13, 19, 24, .98);
}

.app-brand {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 14px;
}

.app-brand-mark {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--orange, var(--accent, #f29a24));

    color: var(--orange, var(--accent, #f29a24));
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-decoration: none;
}

.app-brand-mark:hover,
.app-brand-mark:focus-visible {
    border-color: var(--interaction, #4aa3df);
    color: var(--interaction, #4aa3df);
    outline: none;
}

.app-brand-copy {
    min-width: 0;
}

.app-brand-copy strong {
    display: block;

    color: var(--text, #e8edf1);
    font-size: .96rem;
    font-weight: 700;
    letter-spacing: .01em;
}

.app-brand-copy small {
    display: block;
    margin-top: 3px;

    color: var(--muted, #89959f);
    font-size: .68rem;
    line-height: 1.2;
}

.app-dashboard-link {
    margin-left: 4px;

    color: var(--orange, var(--accent, #f29a24));
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .10em;
    text-transform: uppercase;
    text-decoration: none;
}

.app-dashboard-link:hover,
.app-dashboard-link:focus-visible {
    color: var(--interaction, #4aa3df);
    outline: none;
}

.app-account {
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 11px;
}

.app-account-photo {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border: 1px solid var(--border, #27323a);

    color: var(--muted, #89959f);
    font-size: .52rem;
    font-weight: 800;
    letter-spacing: .05em;
}

.app-account-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.app-account-name {
    color: var(--text, #e8edf1);
    font-size: .90rem;
    font-weight: 700;
    white-space: nowrap;
}

.app-logout {
    margin: 0;
}

.app-logout button,
.app-login {
    appearance: none;

    padding: 0;
    border: 0;
    background: transparent;

    color: var(--muted, #89959f);
    font: inherit;
    font-size: .68rem;
    cursor: pointer;
    text-decoration: none;
}

.app-logout button:hover,
.app-logout button:focus-visible,
.app-login:hover,
.app-login:focus-visible {
    color: var(--interaction, #4aa3df);
    outline: none;
}

@media (max-width: 760px) {
    .app-shell-frame {
        width: calc(100% - 20px);
        margin-top: 10px;
    }

    .app-topbar {
        align-items: flex-start;
        flex-direction: column;

        padding: 14px 16px;
    }

    .app-brand {
        flex-wrap: wrap;
    }

    .app-account {
        justify-content: flex-start;
        gap: 8px;
    }

    .app-account-photo {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .app-account-name {
        font-size: .82rem;
    }
}


/* Schepen 2.0 — groep bevat gewijzigde slots */
.outfitting-group-nav a.has-changes {
    box-shadow: inset 3px 0 0 #ff9f1c !important;
}

/* ==========================================================
   ED Companion · basisontwerpsysteem
   ========================================================== */

:root {
    --ed-layout-max: 1180px;
    --ed-work-nav-width: 260px;

    --ed-space-xs: 8px;
    --ed-space-sm: 12px;
    --ed-layout-gap: 16px;
    --ed-section-gap: 24px;
    --ed-space-xl: 32px;
    --ed-space-2xl: 48px;

    --ed-page-gutter: 18px;
}


/* Eén buitenbreedte voor header en pagina */
.app-shell-frame,
.page-shell {
    width: calc(100% - (2 * var(--ed-page-gutter))) !important;
    max-width: var(--ed-layout-max);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}


/* Vaste verticale afstand onder lokale domeinnavigatie */
.ships-local-nav + * {
    margin-top: var(--ed-section-gap) !important;
}


@media (max-width: 760px) {
    :root {
        --ed-page-gutter: 10px;
    }
}
