/* Phone and tablet layout for the campus portal.
   Every layout rule sits inside a max-width query, so the desktop design is unchanged.
   The only rules outside a query hide the parts that exist for small screens. */

.hub-mnav,
.m-dash,
.ui-card-more,
.ui-filter-toggle,
.hr-dash__avatar,
.hr-dash__memos {
    display: none;
}

/* ---------- Bottom navigation, phones and tablets ---------- */
@media screen and (max-width: 980px) {
    body.has-mnav,
    body:has(> .hub-mnav) {
        --mnav-height: 60px;
        /* One extra pixel for the bar's top border. */
        padding-bottom: calc(var(--mnav-height) + 1px + env(safe-area-inset-bottom, 0px));
    }

    .hub-mnav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
        align-items: stretch;
        padding: 4px max(6px, env(safe-area-inset-right, 0px)) calc(4px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px));
        background: #fff;
        border-top: 1px solid #e7eef6;
        box-shadow: 0 -6px 20px rgba(27, 37, 89, .08);
    }

    .hub-mnav__item {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        min-width: 0;
        min-height: 52px;
        padding: 4px 2px;
        border: 0;
        border-radius: 12px;
        background: transparent;
        color: #5b6b86;
        font: inherit;
        font-size: .68rem;
        font-weight: 700;
        line-height: 1.15;
        text-align: center;
        text-decoration: none;
        cursor: pointer;
    }

    .hub-mnav__item > i {
        font-size: 1.3rem;
        line-height: 1;
    }

    .hub-mnav__item > span {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hub-mnav__item:hover {
        color: #1b2559;
    }

    .hub-mnav__item.is-active,
    .hub-mnav__item[aria-expanded="true"] {
        background: #e8f0ff;
        color: #2f6fed;
    }

    .hub-mnav__item:focus-visible {
        outline: 2px solid #2f6fed;
        outline-offset: -2px;
    }

    .hub-mnav__badge {
        position: absolute;
        top: 2px;
        left: calc(50% + 6px);
        min-width: 17px;
        height: 17px;
        padding: 0 4px;
        border-radius: 999px;
        background: #ff3b30;
        color: #fff;
        font-size: .62rem;
        font-style: normal;
        font-weight: 800;
        line-height: 17px;
        box-shadow: 0 0 0 2px #fff;
    }

    /* The page keeps its own bottom padding; this replaces the space left for the old chat button. */
    body.has-mnav .hub-shell,
    body.has-mnav .hub-shell.is-nav-collapsed,
    body:has(> .hub-mnav) .hub-shell,
    body:has(> .hub-mnav) .hub-shell.is-nav-collapsed {
        padding-bottom: 20px;
    }

    /* Floating buttons sit above the bar. */
    body.has-mnav .hub-chat,
    body.has-mnav .hr-float-msg,
    body:has(> .hub-mnav) .hub-chat,
    body:has(> .hub-mnav) .hr-float-msg {
        bottom: calc(var(--mnav-height) + 12px + env(safe-area-inset-bottom, 0px));
    }

    /* Reaction tray bottom offset is owned by campus-feed.css @media (max-width: 980px). */

    /* Typing, or reading one conversation, needs the full height. */
    body.mnav-kbd .hub-mnav,
    body:has(.im-shell.is-open) .hub-mnav {
        display: none;
    }

    body.mnav-kbd.has-mnav,
    body.mnav-kbd:has(> .hub-mnav),
    body:has(.im-shell.is-open) {
        padding-bottom: 0;
    }

    /* Icon-only on small screens; the label stays available to screen readers. */
    .hr-float-msg__btn > span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .hr-float-msg__btn {
        position: relative;
        width: 48px;
        height: 48px;
        padding: 0;
        justify-content: center;
    }

    /* Row buttons keep their label on one line instead of breaking letter by letter. */
    .hub-module .table :is(td, th) .btn {
        white-space: nowrap;
        overflow-wrap: normal;
    }

    /* ---------- Office dashboard: welcome card and quick actions ---------- */
    .m-dash {
        display: grid;
        gap: 12px;
        min-width: 0;
    }

    .m-dash__hero,
    .hub-module .hr-dash__hero {
        padding: 16px;
        border-radius: 18px;
        background: linear-gradient(135deg, #1b2559, #2f6fed);
        color: #fff;
    }

    .m-dash__kicker {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0 0 10px;
        font-size: .86rem;
        font-weight: 800;
    }

    .m-dash__who {
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 0;
    }

    .m-dash__avatar,
    .hr-dash__avatar {
        display: grid;
        place-items: center;
        flex: 0 0 64px;
        width: 64px;
        height: 64px;
        overflow: hidden;
        border: 2px solid rgba(255, 255, 255, .7);
        border-radius: 14px;
        background: rgba(255, 255, 255, .18);
        color: #fff;
        font-size: 1.2rem;
        font-weight: 800;
    }

    .m-dash__avatar img,
    .hr-dash__avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .m-dash__id {
        display: grid;
        gap: 2px;
        min-width: 0;
    }

    .m-dash__id strong {
        font-size: 1.08rem;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .m-dash__id span {
        color: rgba(255, 255, 255, .86);
        font-size: .8rem;
        overflow-wrap: anywhere;
    }

    .m-dash__chips {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 12px;
    }

    .m-dash__chips span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 10px;
        border-radius: 999px;
        background: rgba(255, 255, 255, .16);
        font-size: .76rem;
        font-weight: 700;
    }

    /* Human Resource employee dashboard uses the same welcome card. */
    .hub-module .hr-dash__hero {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 12px;
    }

    .hub-module .hr-dash__hero h2 {
        margin: 0 0 4px;
        font-size: 1.08rem;
        line-height: 1.2;
    }

    .hub-module .hr-dash__hero p:not(.hr-dash__kicker) {
        font-size: .8rem;
    }

    .hub-module .hr-dash__chips {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .hub-module .hr-dash__chips span {
        font-size: .76rem;
    }

    /* Tile grid: four across, two on very narrow phones. */
    .m-dash__actions,
    .hub-module .hr-dash__actions {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .m-dash__actions {
        padding: 10px;
        border: 1px solid #e7eef6;
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(27, 37, 89, .04);
    }

    .m-dash__actions > a,
    .m-dash__actions > button,
    .hub-module .hr-dash__actions > a {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
        min-width: 0;
        min-height: 78px;
        padding: 10px 4px 8px;
        border: 1px solid #e7eef6;
        border-radius: 14px;
        background: #f8fafd;
        color: #1b2559;
        font: inherit;
        font-size: .7rem;
        font-weight: 700;
        line-height: 1.2;
        text-align: center;
        text-decoration: none;
        cursor: pointer;
    }

    .m-dash__actions > a > i,
    .m-dash__actions > button > i,
    .hub-module .hr-dash__actions > a > i {
        display: grid;
        place-items: center;
        width: 34px;
        height: 34px;
        border-radius: 10px;
        background: #e8f0ff;
        color: #2f6fed;
        font-size: 1.1rem;
    }

    .m-dash__actions > a > span,
    .m-dash__actions > button > span,
    .hub-module .hr-dash__actions > a > strong {
        max-width: 100%;
        font-size: .68rem;
        font-weight: 700;
        letter-spacing: -.01em;
        overflow-wrap: anywhere;
        hyphens: auto;
    }

    /* The description stays available to screen readers. */
    .hub-module .hr-dash__actions > a > span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .m-dash__actions em {
        position: absolute;
        top: 4px;
        right: 4px;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        border-radius: 999px;
        background: #ff3b30;
        color: #fff;
        font-size: .64rem;
        font-style: normal;
        font-weight: 800;
        line-height: 18px;
    }

    .m-dash__actions > a:nth-child(4n+2) > i,
    .hub-module .hr-dash__actions > a:nth-child(4n+2) > i { background: #e6f7ef; color: #15803d; }
    .m-dash__actions > a:nth-child(4n+3) > i,
    .hub-module .hr-dash__actions > a:nth-child(4n+3) > i { background: #fff3e0; color: #c2410c; }
    .m-dash__actions > a:nth-child(4n+4) > i,
    .hub-module .hr-dash__actions > a:nth-child(4n+4) > i { background: #f1e9ff; color: #6d28d9; }

    .m-dash__actions > a:focus-visible,
    .m-dash__actions > button:focus-visible {
        outline: 2px solid #2f6fed;
        outline-offset: 2px;
    }

    /* Statistics stay side by side. */
    .hub-module .hr-dash__stats,
    .hub-module .lm-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .hub-module .hr-dash__stat {
        padding: 12px 14px;
        border-radius: 14px;
    }

    .hub-module .hr-dash__stat strong {
        font-size: 1.3rem;
    }

    .hub-module .hr-dash__stat:nth-child(4n+1) { background: #eaf8f0; border-color: #cdeedb; }
    .hub-module .hr-dash__stat:nth-child(4n+2) { background: #eef4ff; border-color: #d9e6ff; }
    .hub-module .hr-dash__stat:nth-child(4n+3) { background: #fff7e6; border-color: #f8e4b8; }
    .hub-module .hr-dash__stat:nth-child(4n+4) { background: #f5f0ff; border-color: #e3d8fb; }

    .hub-module .hr-dash__memos {
        display: block;
    }

    .hr-dash__memos header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .hr-dash__memos header a {
        color: #2f6fed;
        font-size: .82rem;
        font-weight: 700;
        text-decoration: none;
    }

    .hr-dash__memos ul {
        display: grid;
        gap: 8px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .hr-dash__memos li a {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 48px;
        padding: 8px 10px;
        border-left: 3px solid #d5deea;
        border-radius: 10px;
        background: #f8fafd;
        color: inherit;
        text-decoration: none;
    }

    .hr-dash__memos li.is-unread a {
        border-left-color: #2f6fed;
    }

    .hr-dash__memos li i {
        color: #2f6fed;
        font-size: 1.1rem;
    }

    .hr-dash__memos li span {
        display: grid;
        min-width: 0;
    }

    .hr-dash__memos li strong {
        color: #1b2559;
        font-size: .88rem;
        overflow-wrap: anywhere;
    }

    .hr-dash__memos li em {
        color: #8b97a8;
        font-size: .76rem;
        font-style: normal;
    }
}

/* ---------- Phones ---------- */
@media screen and (max-width: 640px) {
    /* Page frame */
    .hub-topbar {
        border-top-width: 3px;
    }

    .content-area.hub-module {
        gap: 12px;
    }

    .hub-module .card,
    .hub-module .card-panel,
    .hub-module .stat-card,
    .hub-module > .d-flex.mb-3,
    .hub-module > .d-flex.mb-4,
    .hub-module > form:not(.card-panel) {
        border-radius: 14px;
    }

    .hub-module .card-header,
    .hub-module .card-panel .panel-header {
        padding: 12px 14px;
    }

    .hub-module .card-body,
    .hub-module .card-panel .panel-body {
        padding: 14px;
    }

    .hub-module .card-panel .panel-body.p-0,
    .hub-module .card-body.p-0 {
        padding: 0;
    }

    .hub-module .hr-dash__card,
    .hub-module .lm-card,
    .hub-module .ob-card {
        padding: 14px 12px;
        border-radius: 14px;
    }

    /* Summary cards: two across, with a soft tint per card. */
    .hub-module > .row:has(.stat-card),
    .hub-module > .row:has(> [class*="col"] > .card.p-3) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .hub-module .stat-card {
        padding: 12px;
        gap: 8px;
    }

    /* The icon stays beside the figure when the label runs to two lines. */
    .hub-module .stat-card.d-flex {
        flex-wrap: nowrap;
    }

    .hub-module .stat-card.d-flex > :first-child {
        flex: 1 1 auto;
        min-width: 0;
    }

    .hub-module .stat-card .value {
        font-size: 1.3rem;
    }

    .hub-module .stat-card .icon {
        flex: 0 0 34px;
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .hub-module > .row:has(.stat-card) > [class*="col"]:nth-child(4n+1) .stat-card { background: #eef4ff; border-color: #d9e6ff; }
    .hub-module > .row:has(.stat-card) > [class*="col"]:nth-child(4n+2) .stat-card { background: #eaf8f0; border-color: #cdeedb; }
    .hub-module > .row:has(.stat-card) > [class*="col"]:nth-child(4n+3) .stat-card { background: #fff7e6; border-color: #f8e4b8; }
    .hub-module > .row:has(.stat-card) > [class*="col"]:nth-child(4n+4) .stat-card { background: #f5f0ff; border-color: #e3d8fb; }
    .hub-module > .row:has(.stat-card) > [class*="col"] .stat-card .icon { background: rgba(255, 255, 255, .8); }

    /* Page actions: full-width, easy to reach */
    .hub-module .panel-header > .btn,
    .hub-module .panel-header > form > .btn {
        flex: 1 1 auto;
    }

    /* Tabs scroll sideways instead of wrapping into several rows. */
    .hub-module .nav-tabs:not(.flex-column),
    .hub-module .nav-pills:not(.flex-column) {
        flex-wrap: nowrap;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .hub-module .nav-tabs:not(.flex-column)::-webkit-scrollbar,
    .hub-module .nav-pills:not(.flex-column)::-webkit-scrollbar {
        display: none;
    }

    .hub-module .nav-tabs:not(.flex-column) .nav-link,
    .hub-module .nav-pills:not(.flex-column) .nav-link {
        min-height: 44px;
        white-space: nowrap;
    }

    .hub-module .pagination {
        justify-content: center;
    }

    .hub-module .pagination .page-link {
        display: grid;
        place-items: center;
        min-width: 44px;
        min-height: 44px;
    }

    /* ---------- Collapsible filters ---------- */
    .ui-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
        min-height: 46px;
        padding: 8px 14px;
        border: 1px solid #e7eef6;
        border-radius: 14px;
        background: #fff;
        color: #1b2559;
        font: inherit;
        font-size: .9rem;
        font-weight: 700;
        text-align: left;
    }

    .ui-filter-toggle > span {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .ui-filter-toggle em {
        padding: 2px 8px;
        border-radius: 999px;
        background: #e8f0ff;
        color: #2f6fed;
        font-size: .72rem;
        font-style: normal;
    }

    .ui-filter-toggle > i:last-child {
        transition: transform .15s ease;
    }

    .ui-filter-toggle[aria-expanded="true"] > i:last-child {
        transform: rotate(180deg);
    }

    .ui-filter-toggle:focus-visible {
        outline: 2px solid #2f6fed;
        outline-offset: 2px;
    }

    form.ui-filters:not(.is-open) {
        display: none !important;
    }

    /* ---------- Tables as cards ---------- */
    :is(.hub-body, .portal-body) :is(.table-responsive, .ui-table-scroll):has(> table.ui-cards) {
        overflow: visible;
    }

    :is(.hub-body, .portal-body) table.ui-cards {
        display: block;
        width: 100%;
        min-width: 0;
        margin: 0;
        border: 0;
        background: transparent;
    }

    :is(.hub-body, .portal-body) :is(.p-0, .card-panel, .card) > :is(.table-responsive, .ui-table-scroll) > table.ui-cards,
    :is(.hub-body, .portal-body) :is(.p-0, .card-panel, .card) > table.ui-cards {
        padding: 10px;
    }

    /* Column names stay in the page for screen readers. */
    :is(.hub-body, .portal-body) table.ui-cards > thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    :is(.hub-body, .portal-body) table.ui-cards > tbody {
        display: grid;
        gap: 10px;
    }

    /* Low specificity on display, so a page that hides a row or a cell still hides it. */
    :where(table.ui-cards > tbody) > tr {
        display: grid;
    }

    :where(table.ui-cards > tbody > tr) > :is(td, th) {
        display: block;
    }

    table.ui-cards > tbody > tr[style*="table-row"] {
        display: grid !important;
    }

    :is(.hub-body, .portal-body) table.ui-cards > tbody > tr {
        position: relative;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 12px;
        padding: 12px 14px;
        border: 1px solid #e7eef6;
        border-radius: 14px;
        background-color: var(--bs-table-bg, #fff);
        box-shadow: 0 4px 14px rgba(27, 37, 89, .04);
    }

    :is(.hub-body, .portal-body) table.ui-cards > tbody > tr > :is(td, th) {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 0;
        border: 0;
        background: transparent !important;
        box-shadow: none;
        font-size: .88rem;
        text-align: left !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    :is(.hub-body, .portal-body) table.ui-cards > tbody > tr > [data-label]::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        color: #8b97a8;
        font-size: .66rem;
        font-weight: 800;
        letter-spacing: .04em;
        line-height: 1.3;
        text-transform: uppercase;
    }

    :is(.hub-body, .portal-body) table.ui-cards > tbody > tr > .ui-card-title {
        grid-column: 1 / -1;
        color: #1b2559;
        font-size: .98rem;
        font-weight: 700;
    }

    :is(.hub-body, .portal-body) table.ui-cards > tbody > tr.has-card-more > .ui-card-title {
        padding-right: 44px;
    }

    :is(.hub-body, .portal-body) table.ui-cards > tbody > tr > .ui-card-title::before,
    :is(.hub-body, .portal-body) table.ui-cards > tbody > tr > .ui-card-actions::before {
        display: none;
    }

    :is(.hub-body, .portal-body) table.ui-cards > tbody > tr > .ui-card-wide,
    :is(.hub-body, .portal-body) table.ui-cards > tbody > tr > .ui-card-actions,
    :is(.hub-body, .portal-body) table.ui-cards > tbody > tr.ui-card-note > * {
        grid-column: 1 / -1;
    }

    :is(.hub-body, .portal-body) table.ui-cards > tbody > tr > .ui-card-actions {
        padding-top: 10px;
        border-top: 1px solid #eef2f7;
    }

    :is(.hub-body, .portal-body) table.ui-cards > tbody > tr > .ui-card-actions .btn {
        min-height: 40px;
    }

    /* Inside a card a long button label may wrap instead of pushing the card wider. */
    :is(.hub-body, .portal-body) table.ui-cards > tbody > tr > :is(td, th) .btn {
        white-space: normal;
    }

    :is(.hub-body, .portal-body) table.ui-cards > tbody > tr > .ui-card-blank,
    :is(.hub-body, .portal-body) table.ui-cards > tbody > tr:not(.is-expanded) > .ui-card-extra {
        display: none;
    }

    :is(.hub-body, .portal-body) table.ui-cards > tbody > tr.ui-card-note {
        text-align: center;
    }

    :is(.hub-body, .portal-body) table.ui-cards > tbody > tr.ui-card-note > * {
        text-align: center !important;
    }

    .ui-card-more {
        position: absolute;
        top: 6px;
        right: 6px;
        display: grid;
        place-items: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #f1f5fb;
        color: #1b2559;
        font-size: 1rem;
    }

    .ui-card-more > i {
        transition: transform .15s ease;
    }

    .ui-card-more[aria-expanded="true"] > i {
        transform: rotate(180deg);
    }

    .ui-card-more:focus-visible {
        outline: 2px solid #2f6fed;
        outline-offset: 2px;
    }

    /* ---------- Dialogs open from the bottom ---------- */
    :is(.hub-body, .portal-body) .modal .modal-dialog:not(.hub-post-dialog):not([class*="modal-fullscreen"]) {
        display: flex;
        align-items: flex-end;
        width: 100%;
        max-width: none;
        min-height: 100%;
        margin: 0;
    }

    :is(.hub-body, .portal-body) .modal .modal-dialog.modal-dialog-scrollable:not(.hub-post-dialog):not([class*="modal-fullscreen"]) {
        height: 100%;
    }

    :is(.hub-body, .portal-body) .modal.fade .modal-dialog:not(.hub-post-dialog):not([class*="modal-fullscreen"]) {
        transform: translateY(32px);
    }

    :is(.hub-body, .portal-body) .modal.show .modal-dialog:not(.hub-post-dialog):not([class*="modal-fullscreen"]) {
        transform: none;
    }

    :is(.hub-body, .portal-body) .modal-dialog:not(.hub-post-dialog):not([class*="modal-fullscreen"]) > .modal-content {
        width: 100%;
        max-height: 92vh;
        max-height: 92dvh;
        border: 0;
        border-radius: 18px 18px 0 0;
        overflow: hidden;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    /* A form that wraps the body and footer passes the height on, so the body scrolls and the buttons stay in view. */
    :is(.hub-body, .portal-body) .modal-dialog:not(.hub-post-dialog):not([class*="modal-fullscreen"]) > .modal-content > form {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 0;
        overflow-y: auto;
    }

    :is(.hub-body, .portal-body) .modal-dialog:not(.hub-post-dialog):not([class*="modal-fullscreen"]) .modal-header {
        padding: 14px 16px;
    }

    :is(.hub-body, .portal-body) .modal-dialog:not(.hub-post-dialog):not([class*="modal-fullscreen"]) .modal-footer {
        padding: 10px 16px 12px;
        border-top: 1px solid #eef2f7;
        background: #fff;
    }
}

/* ---------- Very narrow phones ---------- */
@media screen and (max-width: 359px) {
    .m-dash__actions,
    .hub-module .hr-dash__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hub-mnav__item {
        font-size: .62rem;
    }

    :is(.hub-body, .portal-body) table.ui-cards > tbody > tr {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- Short landscape phones ---------- */
@media screen and (min-width: 560px) and (max-width: 980px) and (max-height: 430px) {
    body.has-mnav,
    body:has(> .hub-mnav) {
        --mnav-height: 46px;
    }

    .hub-mnav__item {
        flex-direction: row;
        gap: 6px;
        min-height: 38px;
    }

    .hub-mnav__item > i {
        font-size: 1.05rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ui-card-more > i,
    .ui-filter-toggle > i:last-child {
        transition: none;
    }
}
