:root {
    --probg-blue: #24569a;
    --mobile-nav-height: 68px;
}

.mobile-topbar {
    background: var(--probg-blue);
    min-height: 56px;
    z-index: 1030;
}

.mobile-topbar .navbar-brand {
    font-size: 1rem;
}

.mobile-timer-pill {
    min-width: 78px;
    font-variant-numeric: tabular-nums;
}

.mobile-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1035;
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid rgba(0, 0, 0, .1);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, .08);
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-bottom-nav-inner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: var(--mobile-nav-height);
}

.mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    padding: .45rem .2rem;
    color: #6c757d;
    text-decoration: none;
    font-size: .68rem;
    font-weight: 600;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus,
.mobile-nav-link.active {
    color: var(--probg-blue);
}

.mobile-nav-icon {
    width: 22px;
    height: 22px;
    line-height: 1;
}

.mobile-nav-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.mobile-card-list {
    display: grid;
    gap: .75rem;
}

.mobile-list-card .card-body {
    padding: 1rem;
}

.mobile-list-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.mobile-list-meta-item {
    min-width: 0;
}

.mobile-list-label {
    display: block;
    margin-bottom: .1rem;
    color: var(--bs-secondary-color);
    font-size: .72rem;
}

.mobile-list-value {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.mobile-action-row {
    display: grid;
    gap: .5rem;
}

.mobile-section-title {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
}

@media (max-width: 991.98px) {
    body.has-mobile-nav .app-main {
        padding-bottom: calc(var(--mobile-nav-height) + 2rem + env(safe-area-inset-bottom)) !important;
    }

    .app-main {
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .mobile-action {
        width: 100%;
    }

    .card-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .display-6 {
        font-size: calc(1.35rem + 1.2vw);
    }

    .pagination {
        flex-wrap: wrap;
        gap: .25rem;
    }
}


.min-w-0 {
    min-width: 0;
}

.mobile-quick-scroll {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .25rem;
}

.mobile-quick-scroll .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}


.chat-messages {
    display: grid;
    gap: .75rem;
    max-height: 32rem;
    overflow-y: auto;
}

.chat-message {
    padding: .75rem;
    background: var(--bs-tertiary-bg);
    border-radius: .75rem;
    overflow-wrap: anywhere;
}
