html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color-scheme: light only;
}

/* PWA: Scrollbar ausblenden – Seite bleibt scrollbar via Touch/Mausrad/Trackpad */
* {
    scrollbar-width: none !important;           /* Firefox */
    -ms-overflow-style: none !important;        /* IE/Edge legacy */
}

*::-webkit-scrollbar {
    display: none !important;                   /* Chrome, Edge, Safari */
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 5rem;
    height: 5rem;
}

    .loading-progress circle {
        fill: none;
        stroke: rgba(255,255,255,0.2);
        stroke-width: 0.4rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: rgba(255,255,255,0.9);
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    text-align: center;
    font-weight: 600;
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Laden...");
    }

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a5f2a 0%, #2e7d42 50%, #1b4332 100%);
    padding: 2rem;
}

.loading-brand {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a5f2a;
    margin-top: 1rem;
}

/* =====================================================
   PWA STYLES - Voloop
   ===================================================== */

/* Voloop Color Palette - Base values, can be overridden by tenant branding */
:root {
    /* Default Voloop colors (green) */
    --voloop-primary: #1a5f2a;
    --voloop-primary-light: #2d8a42;
    --voloop-primary-dark: #13451e;
    --voloop-accent: #f4a012;
    --voloop-success: #28a745;
    --voloop-warning: #ffc107;
    --voloop-danger: #dc3545;
    --voloop-info: #17a2b8;

    /* Tenant-overridable colors (set by TenantBrandingProvider) */
    --tenant-primary: var(--voloop-primary);
    --tenant-primary-light: var(--voloop-primary-light);
    --tenant-primary-dark: var(--voloop-primary-dark);
    --tenant-secondary: var(--voloop-accent);
    --tenant-secondary-light: #f6b342;
    --tenant-primary-alpha10: #1a5f2a1A;
    --tenant-primary-alpha15: #1a5f2a26;
    --tenant-secondary-alpha15: #f4a01226;

    /* Surface colors (light theme only) */
    --surface-bg: #ffffff;
    --surface-bg-elevated: #f8f9fa;
    --surface-border: #e9ecef;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);

    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* Offline Indicator */
.offline-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    z-index: 9999;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.offline-indicator svg {
    flex-shrink: 0;
}

/* Install Button */
.install-button {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background: var(--tenant-primary);
    color: white;
    border: none;
    border-radius: 2rem;
    padding: 0.75rem 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.2s ease;
    animation: fadeInUp 0.5s ease-out;
}

.install-button:hover {
    background: var(--tenant-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.install-button:active {
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 90vw;
    width: 24rem;
}

.toast {
    background: #333;
    color: white;
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(1rem);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    background: linear-gradient(135deg, var(--voloop-success), #218838);
}

.toast-warning {
    background: linear-gradient(135deg, var(--voloop-warning), #e0a800);
    color: #333;
}

.toast-danger {
    background: linear-gradient(135deg, var(--voloop-danger), #c82333);
}

.toast-info {
    background: linear-gradient(135deg, var(--voloop-info), #138496);
}

.toast-message {
    flex: 1;
    font-size: 0.875rem;
}

.toast-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.25rem;
    line-height: 1;
    opacity: 0.7;
    cursor: pointer;
    padding: 0;
}

.toast-close:hover {
    opacity: 1;
}

/* PWA Buttons - Use tenant colors */
.btn-voloop {
    background: var(--tenant-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.btn-voloop:hover {
    background: var(--tenant-primary-light);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-voloop:active {
    transform: translateY(0);
}

.btn-voloop-outline {
    background: transparent;
    color: #212529;
    border: 2px solid var(--tenant-primary);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.btn-voloop-outline:hover {
    background: var(--tenant-primary);
    color: white;
}

.btn-voloop-secondary {
    background: var(--tenant-secondary);
    color: #212529;
    border: none;
    border-radius: var(--radius-md);
}

.btn-voloop-secondary:hover {
    filter: brightness(1.1);
    color: #212529;
}

/* Safe area for notched devices */
@supports (padding-top: env(safe-area-inset-top)) {
    .offline-indicator {
        padding-top: calc(0.5rem + env(safe-area-inset-top));
    }
    
    .install-button {
        bottom: calc(1rem + env(safe-area-inset-bottom));
    }
    
    #toast-container {
        bottom: calc(5rem + env(safe-area-inset-bottom));
    }
}

/* Mobile optimizations */
@media (max-width: 576px) {
    .install-button {
        bottom: 4.5rem; /* Above bottom navigation */
        right: 0.75rem;
    }
    
    #toast-container {
        bottom: 6rem;
        width: calc(100% - 1.5rem);
        max-width: none;
    }
}

/* Unauthorized & Not Found Pages */
.unauthorized-page,
.not-found-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem;
}

.unauthorized-content,
.not-found-page > div {
    text-align: center;
    max-width: 400px;
}

.unauthorized-page h2,
.not-found-page h2 {
    margin: 1rem 0 0.5rem;
    color: var(--text-primary);
}

.unauthorized-page p,
.not-found-page p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Loading Auth Spinner */
.loading-auth {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: 1rem;
    color: var(--text-secondary);
}

.loading-auth .spinner,
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--surface-border);
    border-top-color: var(--tenant-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Page Headers */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.page-subtitle {
    color: var(--text-secondary);
    margin: 0;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.filter-tab {
    padding: 0.5rem 1rem;
    background: var(--surface-bg);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    background: var(--surface-bg-elevated);
    color: var(--text-primary);
}

.filter-tab.active {
    background: var(--tenant-primary);
    color: white;
    border-color: var(--tenant-primary);
}

/* Points Balance Badge */
.points-balance {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ffc107 0%, #f4a012 100%);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
}

.points-balance i {
    color: #000;
}

/* Error Banner */
.error-banner {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.error-banner i {
    font-size: 1.25rem;
}

.btn-retry {
    margin-left: auto;
    background: none;
    border: 1px solid #721c24;
    color: #721c24;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-retry:hover {
    background: #721c24;
    color: white;
}

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ==============================================
   LAYOUT STYLES (Global - CSS Isolation fix)
   ============================================== */

/* App Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
    background: #f5f7fa;
}

.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--voloop-primary) 0%, var(--voloop-primary-dark) 100%);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

/* App Header */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: white;
    border-bottom: 1px solid var(--surface-border);
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 0.75rem;
}

.sidebar-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    background: var(--surface-bg-elevated);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.header-logo {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
}

.header-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--voloop-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-user {
    width: 36px;
    height: 36px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--voloop-primary);
    transition: all 0.2s ease;
}

.header-user:hover {
    background: var(--voloop-primary);
    color: white;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 1.25rem;
    padding-bottom: 5rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--surface-border);
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0));
    z-index: 100;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.6875rem;
    transition: color 0.2s ease;
    min-width: 4rem;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--voloop-primary);
}

.bottom-nav-item svg {
    transition: transform 0.2s ease;
}

.bottom-nav-item:hover svg,
.bottom-nav-item.active svg {
    transform: scale(1.1);
}

.qr-button {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--voloop-primary), var(--voloop-primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-top: -1.5rem;
    box-shadow: 0 4px 12px rgba(26, 95, 42, 0.4);
    transition: all 0.2s ease;
}

.bottom-nav-qr:hover .qr-button,
.bottom-nav-qr.active .qr-button {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(26, 95, 42, 0.5);
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==============================================
   NAV MENU STYLES (Global - CSS Isolation fix)
   ============================================== */

/* Nav Header */
.nav-header {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: white;
}

.nav-brand-text {
    font-size: 1.375rem;
    font-weight: 700;
    color: white;
}

/* Nav Menu Container */
.nav-menu {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px);
    padding: 0.75rem 0;
    overflow-y: auto;
}

/* Nav Section */
.nav-section {
    padding: 0.5rem 0;
}

.nav-section:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-section-title {
    display: block;
    padding: 0.5rem 1.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
}

/* Nav Item */
.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-left: 3px solid #4ade80;
    padding-left: calc(1.25rem - 3px);
}

.nav-item svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.nav-item:hover svg,
.nav-item.active svg {
    opacity: 1;
}

/* Nav Footer */
.nav-footer {
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-logout {
    color: rgba(255, 255, 255, 0.6);
}

.nav-logout:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

/* Mobile Styles */
@media (max-width: 767.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.expanded {
        transform: translateX(0);
    }

    .main-wrapper {
        margin-left: 0;
    }
}

/* Desktop Styles */
@media (min-width: 768px) {
    .main-wrapper {
        margin-left: 260px;
    }

    .sidebar-toggle {
        display: none;
    }

    .main-content {
        padding: 1.5rem 2rem;
        padding-bottom: 2rem;
    }

    .bottom-nav {
        display: none !important;
    }

    .header-brand {
        display: none;
    }
}

/* Standalone (installed) mode adjustments */
@media (display-mode: standalone) {
    /* Hide the install button when already installed */
    .install-button {
        display: none !important;
    }

    /* Adjust bottom nav for no browser chrome */
    .bottom-nav {
        padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0.5rem));
    }
}

/* Offline State */
.app-layout.offline .main-content {
    opacity: 0.9;
}