/* ==========================================================================
   Mobile App Shell  (mapp-*)
   --------------------------------------------------------------------------
   Turns the responsive web layout into a native-feeling mobile application:
     • two-row top app bar — brand + language + avatar, then the site sections
     • fixed bottom tab bar — the learner's own shortcuts (My Courses …)
     • right-side navigation drawer — account, full menu, logout
     • bottom sheet for the language picker
   Everything here is scoped to < 992px; the desktop navbar is untouched.

   Site navigation lives at the TOP (it is what a visitor browses), the
   learner's personal destinations live at the BOTTOM (what a signed-in user
   opens all day, within thumb reach).

   RULE: templates never carry colors. Icon hues are picked with .mapp-i-*
   classes and resolved to tokens here.
   ========================================================================== */

:root {
    --mapp-topbar-row: 52px;                           /* brand row          */
    --mapp-navstrip-h: 44px;                           /* section chips row  */
    --mapp-topbar-h: calc(var(--mapp-topbar-row) + var(--mapp-navstrip-h));
    --mapp-tabbar-h: 68px;
    --mapp-ease: cubic-bezier(0.32, 0.72, 0, 1);       /* iOS-like easing    */
    --mapp-safe-top: env(safe-area-inset-top, 0px);
    --mapp-safe-bottom: env(safe-area-inset-bottom, 0px);
    --mapp-safe-left: env(safe-area-inset-left, 0px);
    --mapp-safe-right: env(safe-area-inset-right, 0px);

    /* ── Icon palette ──────────────────────────────────────────────────────
       Brand tokens first; the four extra hues exist so neighbouring menu
       entries stay tellable apart at a glance, the way a phone's Settings
       app colour-codes its rows. RGB companions drive the 12% tint tiles. */
    --mapp-c-navy:   var(--color-primary);
    --mapp-c-navy-rgb: var(--color-primary-rgb);
    --mapp-c-sky:    var(--color-secondary);
    --mapp-c-sky-rgb:  var(--color-secondary-rgb);
    --mapp-c-amber:  var(--color-accent);
    --mapp-c-amber-rgb: var(--color-accent-rgb);
    --mapp-c-green:  var(--color-success);
    --mapp-c-green-rgb: 16, 185, 129;                  /* = COLOR_SUCCESS    */
    --mapp-c-red:    var(--color-danger);
    --mapp-c-red-rgb: 239, 68, 68;                     /* = COLOR_DANGER     */
    --mapp-c-violet: #7C3AED;
    --mapp-c-violet-rgb: 124, 58, 237;
    --mapp-c-orange: #F97316;
    --mapp-c-orange-rgb: 249, 115, 22;
    --mapp-c-pink:   #EC4899;
    --mapp-c-pink-rgb: 236, 72, 153;
    --mapp-c-teal:   #14B8A6;
    --mapp-c-teal-rgb: 20, 184, 166;
}

/* Any element inside one of these picks the hue up through --mapp-i. */
.mapp-i-navy   { --mapp-i: var(--mapp-c-navy);   --mapp-i-rgb: var(--mapp-c-navy-rgb); }
.mapp-i-sky    { --mapp-i: var(--mapp-c-sky);    --mapp-i-rgb: var(--mapp-c-sky-rgb); }
.mapp-i-amber  { --mapp-i: var(--mapp-c-amber);  --mapp-i-rgb: var(--mapp-c-amber-rgb); }
.mapp-i-green  { --mapp-i: var(--mapp-c-green);  --mapp-i-rgb: var(--mapp-c-green-rgb); }
.mapp-i-red    { --mapp-i: var(--mapp-c-red);    --mapp-i-rgb: var(--mapp-c-red-rgb); }
.mapp-i-violet { --mapp-i: var(--mapp-c-violet); --mapp-i-rgb: var(--mapp-c-violet-rgb); }
.mapp-i-orange { --mapp-i: var(--mapp-c-orange); --mapp-i-rgb: var(--mapp-c-orange-rgb); }
.mapp-i-pink   { --mapp-i: var(--mapp-c-pink);   --mapp-i-rgb: var(--mapp-c-pink-rgb); }
.mapp-i-teal   { --mapp-i: var(--mapp-c-teal);   --mapp-i-rgb: var(--mapp-c-teal-rgb); }

/* The whole shell is mobile-only. */
.mapp-topbar,
.mapp-tabbar,
.mapp-drawer,
.mapp-sheet,
.mapp-scrim {
    display: none;
}

/* Desktop navbar spacer — mobile height is handled by the shell itself. */
.ar-navbar-spacer { height: 0; }
@media (min-width: 992px) {
    .ar-navbar-spacer { height: 68px; }
}

@media (max-width: 991.98px) {

/* ── Global app-like behaviour ────────────────────────────────────────── */
html { -webkit-text-size-adjust: 100%; }

body.mapp-on {
    padding-top: calc(var(--mapp-topbar-h) + var(--mapp-safe-top));
    /* Native apps never show a text-selection / long-press highlight on chrome. */
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: none;
}
body.mapp-tabbar-on {
    padding-bottom: calc(var(--mapp-tabbar-h) + var(--mapp-safe-bottom));
}
/* Scroll lock while a drawer / sheet is open (position is set from JS). */
body.mapp-locked {
    position: fixed;
    width: 100%;
    overflow: hidden;
}

.mapp-topbar,
.mapp-tabbar,
.mapp-drawer,
.mapp-sheet,
.mapp-scrim { display: block; }

/* ── Top app bar ──────────────────────────────────────────────────────── */
.mapp-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1035;
    height: calc(var(--mapp-topbar-h) + var(--mapp-safe-top));
    padding-top: var(--mapp-safe-top);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--color-border-light);
    transition: box-shadow 0.2s ease;
}
.mapp-topbar.is-scrolled {
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.07);
}
.mapp-topbar__row {
    height: var(--mapp-topbar-row);
    padding: 0 calc(0.75rem + var(--mapp-safe-right)) 0 calc(0.75rem + var(--mapp-safe-left));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.mapp-topbar__brand {
    display: flex;
    align-items: center;
    min-width: 0;
    text-decoration: none;
}
.mapp-topbar__brand img {
    height: 28px;
    width: auto;
    max-width: 44vw;
    object-fit: contain;
    display: block;
}
.mapp-topbar__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
}

/* Language chip — explicit globe + code so it reads as a language control. */
.mapp-lang-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    height: 36px;
    padding: 0 0.65rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-bg-card);
    color: var(--color-text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    line-height: 1;
    transition: transform 0.14s var(--mapp-ease), background 0.16s ease;
}
.mapp-lang-chip i { font-size: 0.8rem; color: var(--mapp-c-sky); }
.mapp-lang-chip:active { transform: scale(0.94); background: var(--color-bg-muted); }

/* Icon button (hamburger for guests) */
.mapp-icon-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-bg-card);
    color: var(--color-text-heading);
    padding: 0;
    font-size: 0.95rem;
    transition: transform 0.14s var(--mapp-ease), background 0.16s ease;
}
.mapp-icon-btn:active { transform: scale(0.92); background: var(--color-bg-muted); }

.mapp-avatar-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.14s var(--mapp-ease);
}
.mapp-avatar-btn:active { transform: scale(0.92); }
.mapp-avatar,
.mapp-avatar-initial {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
}
.mapp-avatar { border: 2px solid var(--color-primary); }
.mapp-avatar-initial {
    background: var(--color-primary);
    color: var(--color-text-light);
    border: 2px solid var(--color-primary);
}

.mapp-login-btn {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 0.85rem;
    border-radius: 999px;
    background: var(--color-primary);
    color: var(--color-text-light) !important;
    font-size: 0.76rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-primary);
    transition: transform 0.14s var(--mapp-ease);
}
.mapp-login-btn:active { transform: scale(0.95); }

/* ── Section strip (Home / Courses / Practice / Tutorials / Edge) ─────── */
.mapp-navstrip {
    height: var(--mapp-navstrip-h);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 calc(0.75rem + var(--mapp-safe-right)) 0.35rem calc(0.75rem + var(--mapp-safe-left));
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}
.mapp-navstrip::-webkit-scrollbar { display: none; }
.mapp-navstrip::after {                 /* trailing spacer, so the last chip
                                           can clear the fade when scrolled */
    content: '';
    flex: 0 0 0.35rem;
}

.mapp-navchip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    height: 34px;
    padding: 0 0.75rem;
    border: 1px solid var(--color-border-light);
    border-radius: 999px;
    background: var(--color-bg-muted);
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.14s var(--mapp-ease), background 0.18s ease, border-color 0.18s ease;
}
.mapp-navchip i {
    font-size: 0.82rem;
    color: var(--mapp-i, var(--color-primary));
}
.mapp-navchip:active { transform: scale(0.95); }
.mapp-navchip.is-active {
    background: rgba(var(--mapp-i-rgb, var(--color-primary-rgb)), 0.12);
    border-color: rgba(var(--mapp-i-rgb, var(--color-primary-rgb)), 0.28);
    color: var(--mapp-i, var(--color-primary));
    font-weight: 700;
}
.mapp-navchip--edge {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--color-text-light);
    font-weight: 700;
}
.mapp-navchip--edge i { color: var(--color-accent); }

/* ── Bottom tab bar — the learner's own shortcuts ─────────────────────── */
.mapp-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1035;
    display: flex;
    align-items: stretch;
    padding: 0 calc(0.25rem + var(--mapp-safe-right)) var(--mapp-safe-bottom) calc(0.25rem + var(--mapp-safe-left));
    height: calc(var(--mapp-tabbar-h) + var(--mapp-safe-bottom));
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid var(--color-border-light);
    box-shadow: 0 -2px 18px rgba(15, 23, 42, 0.06);
    transition: transform 0.28s var(--mapp-ease);
}
/* Hidden while a drawer / sheet is open so the overlay owns the screen. */
.mapp-tabbar.is-hidden { transform: translateY(110%); }

.mapp-tab {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    padding: 0.3rem 0.15rem;
    border: 0;
    background: transparent;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0;
    position: relative;
    transition: color 0.18s ease, transform 0.14s var(--mapp-ease);
}
.mapp-tab__icon {
    width: 30px;
    height: 24px;
    display: grid;
    place-items: center;
    font-size: 1.02rem;
    border-radius: 999px;
    color: var(--mapp-i, var(--color-text-muted));
    opacity: 0.78;
    transition: background 0.2s ease, transform 0.2s var(--mapp-ease), opacity 0.2s ease;
}
/* Two lines, then clipped: "My Packages" and "Mes forfaits" both fit a
   fifth of a 360px screen without colliding with their neighbours. */
.mapp-tab__label {
    max-width: 100%;
    line-height: 1.12;
    /* Always reserve both lines so a wrapped label ("Mes formations") and a
       single-line one ("Mes examens") share the same first baseline. */
    min-height: 2.24em;
    text-align: center;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow-wrap: anywhere;
}
.mapp-tab:active { transform: scale(0.94); }
.mapp-tab.is-active { color: var(--mapp-i, var(--color-primary)); }
.mapp-tab.is-active .mapp-tab__icon {
    background: rgba(var(--mapp-i-rgb, var(--color-primary-rgb)), 0.14);
    transform: translateY(-1px);
    opacity: 1;
}
.mapp-tab__avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    display: grid;
    place-items: center;
    font-size: 0.68rem;
    font-weight: 700;
    background: var(--color-bg-muted);
    color: var(--color-text-secondary);
}
.mapp-tab.is-active .mapp-tab__avatar,
.mapp-tab[aria-expanded="true"] .mapp-tab__avatar {
    background: var(--color-primary);
    color: var(--color-text-light);
}

/* ── Scrim shared by drawer + sheets ──────────────────────────────────── */
.mapp-scrim {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s var(--mapp-ease), visibility 0.28s;
}
.mapp-scrim.is-open { opacity: 1; visibility: visible; }

/* ── Navigation drawer ────────────────────────────────────────────────── */
.mapp-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1045;
    width: min(87vw, 400px);
    display: flex;
    flex-direction: column;
    background: var(--color-bg-card);
    border-radius: 20px 0 0 20px;
    box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.34s var(--mapp-ease), visibility 0.34s;
    padding-top: var(--mapp-safe-top);
    padding-right: var(--mapp-safe-right);
}
.mapp-drawer.is-open { transform: translateX(0); visibility: visible; }
.mapp-drawer.is-dragging { transition: none; }

.mapp-drawer__head {
    padding: 0.85rem 1rem 1rem;
    border-bottom: 1px solid var(--color-border-light);
    background: linear-gradient(160deg, rgba(var(--color-primary-rgb), 0.10), rgba(var(--color-primary-rgb), 0.02));
    border-radius: 20px 0 0 0;
}
.mapp-drawer__close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--color-bg-card);
    color: var(--color-text-secondary);
    display: inline-grid;
    place-items: center;
    box-shadow: var(--shadow-sm);
}
.mapp-drawer__user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    margin-top: 0.6rem;
}
.mapp-drawer__user-avatar,
.mapp-drawer__user-initial {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    font-weight: 700;
}
.mapp-drawer__user-avatar { border: 2px solid var(--color-primary); }
.mapp-drawer__user-initial {
    background: var(--color-primary);
    color: var(--color-text-light);
}
.mapp-drawer__user-name {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text-heading);
    line-height: 1.2;
    /* A long address must not push the chevron off the panel. */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mapp-drawer__user-mail {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mapp-drawer__body {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 0.5rem 0.75rem 1rem;
}
.mapp-drawer__foot {
    flex: 0 0 auto;
    padding: 0.65rem 0.75rem calc(0.65rem + var(--mapp-safe-bottom));
    border-top: 1px solid var(--color-border-light);
    background: var(--color-bg-card);
}

.mapp-section-label {
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    color: var(--color-text-muted);
    padding: 0.9rem 0.6rem 0.4rem;
}

/* Menu rows — full-width, 48px tap target, chevron affordance. */
.mapp-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    min-height: 48px;
    padding: 0.6rem 0.65rem;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--color-text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: start;
    text-decoration: none;
    transition: background 0.16s ease, transform 0.12s var(--mapp-ease);
}
.mapp-row:active {
    background: var(--color-bg-muted);
    transform: scale(0.985);
}
.mapp-row.is-active {
    background: rgba(var(--mapp-i-rgb, var(--color-primary-rgb)), 0.10);
    color: var(--mapp-i, var(--color-primary));
    font-weight: 600;
}
.mapp-row__icon {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(var(--mapp-i-rgb, var(--color-primary-rgb)), 0.12);
    color: var(--mapp-i, var(--color-primary));
    font-size: 0.85rem;
}
.mapp-row__text { flex: 1 1 auto; min-width: 0; }
.mapp-row__meta {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    font-weight: 600;
}
.mapp-row__chevron { color: var(--color-border); font-size: 0.7rem; }
.mapp-row--danger { color: var(--color-danger); }
.mapp-row--edge .mapp-row__icon {
    background: var(--gradient-primary);
    color: var(--color-accent);
}

/* Quick-action grid — the app-like shortcut tiles at the top of the drawer. */
.mapp-quick {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0.25rem 0.1rem 0.35rem;
}
.mapp-quick__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
    padding: 0.7rem 0.3rem;
    border-radius: 14px;
    background: var(--color-bg-muted);
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.69rem;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    transition: transform 0.14s var(--mapp-ease), background 0.16s ease;
}
.mapp-quick__icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    font-size: 0.95rem;
    background: rgba(var(--mapp-i-rgb, var(--color-primary-rgb)), 0.14);
    color: var(--mapp-i, var(--color-primary));
}
.mapp-quick__item:active { transform: scale(0.95); background: var(--color-bg-hero); }

.mapp-auth-actions { display: grid; gap: 0.5rem; margin-top: 0.85rem; }
.mapp-btn-primary,
.mapp-btn-ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 46px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.14s var(--mapp-ease);
}
.mapp-btn-primary {
    background: var(--color-primary);
    color: var(--color-text-light) !important;
    border: 1.5px solid var(--color-primary);
    box-shadow: var(--shadow-primary);
}
.mapp-btn-ghost {
    background: var(--color-bg-card);
    color: var(--color-primary) !important;
    border: 1.5px solid var(--color-primary);
}
.mapp-btn-primary:active,
.mapp-btn-ghost:active { transform: scale(0.97); }

/* ── Bottom sheet (language picker) ───────────────────────────────────── */
.mapp-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1046;
    max-height: 78vh;
    display: flex;
    flex-direction: column;
    background: var(--color-bg-card);
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.22);
    transform: translateY(101%);
    visibility: hidden;
    transition: transform 0.34s var(--mapp-ease), visibility 0.34s;
    padding-bottom: var(--mapp-safe-bottom);
}
.mapp-sheet.is-open { transform: translateY(0); visibility: visible; }
.mapp-sheet.is-dragging { transition: none; }
.mapp-sheet__handle {
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: var(--color-border);
    margin: 0.6rem auto 0.25rem;
    flex: 0 0 auto;
}
.mapp-sheet__title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text-heading);
    padding: 0.35rem 1.1rem 0.5rem;
    text-align: center;
}
.mapp-sheet__body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 0.25rem 0.75rem 1rem;
}
.mapp-sheet__form { margin: 0; }
.mapp-lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 50px;
    padding: 0.6rem 0.75rem;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--color-text-dark);
    font-size: 0.92rem;
    font-weight: 500;
    text-align: start;
}
.mapp-lang-option:active { background: var(--color-bg-muted); }
.mapp-lang-option.is-active { color: var(--color-primary); font-weight: 700; }
.mapp-lang-option__code {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--color-bg-muted);
    color: var(--color-text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}
.mapp-lang-option.is-active .mapp-lang-option__code {
    background: var(--color-primary);
    color: var(--color-text-light);
}
.mapp-lang-option__name { flex: 1 1 auto; }

/* ── Toasts ──────────────────────────────────────────────────────────── */
/* The container carries inline positioning for desktop, hence !important:
   on a phone a toast reads as a native banner just under the app bar. */
.ar-messages-container {
    top: calc(var(--mapp-topbar-h) + var(--mapp-safe-top) + 0.5rem) !important;
    left: calc(0.6rem + var(--mapp-safe-left)) !important;
    right: calc(0.6rem + var(--mapp-safe-right)) !important;
    min-width: 0 !important;
    max-width: none !important;
}
.ar-messages-container .alert {
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.16);
}

/* ── Footer trimming: a phone app doesn't show a 4-column sitemap ─────── */
body.mapp-on footer .container { padding-top: 2rem; padding-bottom: 1.5rem; }

}   /* end @media (max-width: 991.98px) */

/* ── Reduced motion ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .mapp-drawer,
    .mapp-sheet,
    .mapp-scrim,
    .mapp-tabbar,
    .mapp-row,
    .mapp-tab { transition-duration: 0.01ms !important; }
}
