@media (max-width: 1100px) {
    body.rb-app { --side: 0px; }
    body.rb-app .rb-side {
        position: fixed; left: 0; right: 0; bottom: 0; top: auto;
        width: 100%; height: 64px; z-index: 50;
        flex-direction: row;
        padding: 0 6px calc(2px + env(safe-area-inset-bottom));
        background: #051D3F; border: 0;
        border-top: 1px solid rgba(255,255,255,.1);
    }
    body.rb-app .rb-brand, body.rb-app .rb-side-foot, body.rb-app .rb-nav-label, body.rb-app .rb-menu { display: none; }
    body.rb-app .rb-sidenav {
        display: flex; flex-direction: row; width: 100%;
        overflow: hidden; gap: 0; align-items: stretch;
    }
    body.rb-app .rb-sidenav a {
        flex: 1 1 0; min-width: 0; min-height: 52px;
        justify-content: center; flex-direction: column; gap: 2px;
        padding: 6px 2px; font-size: 10px; border-radius: 10px;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    body.rb-app .rb-sidenav a span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
    body.rb-app .rb-sidenav a.is-on { background: rgba(200,16,46,.22); box-shadow: none; }
    body.rb-app .rb-main {
        margin: 0; width: 100%; max-width: 100%; overflow-x: hidden;
        padding: 10px 10px calc(78px + env(safe-area-inset-bottom));
    }
    body.rb-app .rb-top { margin-bottom: 10px; gap: 6px; }
    body.rb-app .rb-top h1 { font-size: 22px; margin: 0; }
    body.rb-app .rb-top p { margin: 2px 0 0; }
    body.rb-app .rb-card { padding: 12px; margin-bottom: 10px; border-radius: 14px; overflow: hidden; }
    body.rb-app .rb-filters, body.rb-app .rb-viewbar { gap: 8px; margin-bottom: 10px; }
    body.rb-app .rb-site-grid, body.rb-app .rb-grid { grid-template-columns: 1fr; gap: 10px; }
    body.rb-app .rb-float, body.rb-app #site-search, body.rb-app .rb-btn, body.rb-app input, body.rb-app select { max-width: 100%; }
    body.rb-app .rb-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
    body.rb-app .rb-scroll .rb-table, body.rb-app .rb-card .rb-table { min-width: 520px; width: 100%; display: table; }
    body.rb-app table.rb-table thead, body.rb-app table.rb-table tbody, body.rb-app table.rb-table tr, body.rb-app table.rb-table td { display: table-header-group; }
    body.rb-app table.rb-table tbody { display: table-row-group; }
    body.rb-app table.rb-table tr { display: table-row; margin: 0; padding: 0; border: 0; border-radius: 0; }
    body.rb-app table.rb-table td { display: table-cell; padding: 10px 8px; white-space: nowrap; }
    body.rb-login { background: #051D3F url("/assets/login-backdrop.png") center / cover no-repeat fixed; }
    body.rb-login .rb-login-card { width: min(420px, calc(100% - 20px)); padding: 24px 18px; }
    .rb-settings-actions { flex-wrap: wrap; }
    .rb-settings-actions .rb-btn { flex: 1; text-align: center; }
}
