/* A single route scrollbar keeps live feeds usable below the mobile overlay header. */
.camera-hub-page.cafe-page { width: 100%; border-radius: 0; }
.camera-hub-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px; width: 100%; max-width: 1500px; margin: 0 auto 28px; }
.camera-hub-toolbar .cafe-page-heading { margin: 0; }
.camera-hub-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(100%, 420px); gap: 8px; }
/* Chip defaults are shorter and rounder than buttons; share the same control geometry. */
.camera-hub-actions > .mud-chip, .camera-hub-actions > .mud-button-root { display: flex; justify-content: center; width: 100%; min-width: 0; height: 44px; min-height: 44px; margin: 0; padding: 0 8px; border-radius: 12px; box-sizing: border-box; }
/* Grid owns its gaps here, so MudGrid's negative gutters cannot create a mobile scrollbar. */
.camera-hub-page.cafe-page > .mud-grid { display: grid; width: 100%; max-width: 1500px; margin: 0 auto; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.camera-hub-page.cafe-page > .mud-grid > .mud-grid-item { width: 100%; max-width: none; padding: 0; }
.camera-hub-page .camera-hub-card { height: 100%; padding: 0; overflow: hidden; border: 1px solid rgb(182 190 211 / 18%); border-radius: 20px; background: #10131f; box-shadow: 0 12px 30px rgb(0 0 0 / 18%); }
/* Video meets the card edge; only the caption owns padding. Match the card's top corners. */
.camera-hub-card .camera-hub-image { width: 100%; margin: 0; border-radius: 19px 19px 0 0; background: #06080d; }
.camera-hub-details { min-width: 0; gap: 10px; padding: 16px; }
.camera-hub-details > .mud-stack { min-width: 0; }
.camera-hub-details .mud-typography-subtitle1 { color: #f6f2ff; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.camera-hub-details .mud-typography-caption { margin-top: 4px; color: #a9a2ba; font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.camera-hub-details .mud-chip { flex-shrink: 0; margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
@media (max-width: 600px) { .camera-hub-toolbar { margin-bottom: 22px; } .camera-hub-actions { width: 100%; } }
/* Very narrow phones stack full-size controls instead of crushing their icon and label. */
@media (max-width: 380px) { .camera-hub-actions { grid-template-columns: 1fr; } }

/* Fullscreen is intentionally undecorated: every pixel remains available to live video. */
    .camera-hub-page-fullscreen {
        position: fixed;
        inset: 0;
        z-index: 1500;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-height: none !important;
        max-width: none;
        margin: 0;
        padding: 0 !important;
        overflow: hidden;
        border: 0 !important;
        border-radius: 0 !important;
        background: #000 !important;
    }

    .camera-hub-fullscreen-grid {
        display: grid !important;
        grid-template-columns: repeat(var(--camera-columns), minmax(0, 1fr));
        grid-template-rows: repeat(var(--camera-rows), minmax(0, 1fr));
        gap: 0 !important;
        width: 100%;
        height: 100%;
        margin: 0 !important;
    }

    .camera-hub-fullscreen-grid > .mud-grid-item {
        width: auto !important;
        max-width: none !important;
        min-width: 0;
        min-height: 0;
        padding: 0 !important;
    }

    .camera-hub-page-fullscreen .camera-hub-card {
        width: 100%;
        height: 100%;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #000 !important;
        box-shadow: none !important;
    }

    .camera-hub-page-fullscreen .camera-hub-details {
        display: none;
    }

    .camera-hub-page-fullscreen .camera-hub-image {
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        border-radius: 0;
    }

    .camera-hub-fullscreen-exit {
        position: fixed;
        top: max(8px, env(safe-area-inset-top));
        right: max(8px, env(safe-area-inset-right));
        z-index: 1501;
        color: #fff;
        background: rgb(0 0 0 / 55%);
    }

    @media (max-width: 600px) {
        .camera-hub-fullscreen-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            grid-template-rows: none;
            grid-auto-rows: minmax(0, 1fr);
        }
    }

    .camera-hub-image {
        aspect-ratio: 16 / 9;
        display: grid;
        place-items: center;
        overflow: hidden;
        background: #111;
        border-radius: 4px;
    }

    .camera-hub-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .camera-hub-offline {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        color: #aaa;
    }
