:root {
    --global-color-primary: #0c1a96;
    --global-color-secondary: #424242;
    --global-color-tertiary: #686560;
    --global-color-quaternary: #dfd0b8;
    --global-color-text: #7a7a7a;
    --global-color-accent: #61ce70;
    --global-color-black-main: #000000;
    --global-color-red-main: #ed2424;
    --global-color-red-main-dark: #b71c1c;
    --global-color-yellow-main: #fff100;
    --global-color-green-main: #26a44e;
    --global-color-green-dark: #1c7a3a;
    --global-color-light-blue-main: #0aabf2;
    --global-color-purple-main: #6f3b92;
    --global-color-pink-main: #f61792;
    --global-color-orange-main: #ff5b00;
    --global-color-orange-main-dark: #cc4a00;
    --global-color-white: #ffffff;
    --global-color-grey-main: #444444;
    --app-surface: #171717;
    --app-surface-elevated: #1f1f1f;
    --app-control-background: #ffffff;
    --app-control-background-disabled: #d9d9dc;
    --app-control-text: #14161a;
    --app-control-placeholder: #5e626b;
    --app-control-border: #747982;
    --app-control-focus: var(--global-color-red-main);
    --app-control-radius: 0.85rem;
    --app-input-radius: 1rem;
    --app-control-height: 2.75rem;
}

/* Mobile dialogs use the complete dynamic viewport. Keeping this rule global
 * makes shared, feature-specific, and future MUI dialogs behave consistently. */
@media (max-width: 599.95px) {
    .MuiDialog-root:not(.app-floating-dialog) .MuiDialog-container {
        align-items: stretch;
        width: 100%;
        height: 100vh;
        height: 100dvh;
    }

    .MuiDialog-root:not(.app-floating-dialog) .MuiDialog-paper {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        max-width: none !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    .MuiDialog-root:not(.app-floating-dialog) .MuiDialogTitle-root,
    .MuiDialog-root:not(.app-floating-dialog) .MuiDialogActions-root {
        flex: 0 0 auto;
    }

    .MuiDialog-root:not(.app-floating-dialog) .MuiDialogContent-root {
        min-width: 0;
        min-height: 0;
        overflow-x: auto;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .MuiDialog-root:not(.app-floating-dialog) .MuiDialogActions-root {
        flex-wrap: wrap;
    }
}

/* For Tomtom Map */

.tomtom-map-surface.mapboxgl-map {
    border-radius: inherit;
    overflow: hidden;
}

.tomtom-map-surface .mapboxgl-canvas {
    border-radius: inherit;
}

.tomtom-popup-overlay {
    position: absolute;
    inset: 0;
    z-index: 30;
    overflow: visible;
    pointer-events: none;
}

.tomtom-popup-overlay > .mapboxgl-popup {
    pointer-events: auto;
}

.pulsing-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--dot-color, red);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.pulsing-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--dot-color, red);
    border-radius: 50%;
    animation: pulse 2s infinite ease-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.marker-popup {
    min-width: 240px;
    max-width: min(340px, calc(100vw - 32px));
    max-height: min(34rem, calc(100vh - 32px));
    overflow-y: auto;
    overscroll-behavior: contain;
    font-family:
        system-ui,
        -apple-system,
        Segoe UI,
        Roboto,
        Arial,
        sans-serif;
    border-radius: 12px;
    padding: 12px;
    background: rgba(17, 18, 23, 0.96);
    color: #fff;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.marker-popup--connections {
    width: 320px;
}

.marker-popup__title-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
}

.marker-popup__top-actions {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.marker-popup__title {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.25;
    letter-spacing: 0;
    padding-top: 3px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.marker-popup__health {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
    border: 1px solid rgba(255, 255, 255, 0.16);
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.marker-popup--connections .marker-popup__title-row {
    margin-bottom: 6px;
}

.marker-popup--connections .marker-popup__health {
    margin-bottom: 10px;
}

.marker-popup__health--ok {
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.34);
}

.marker-popup__health--full {
    color: #ccfbf1;
    background: rgba(20, 184, 166, 0.2);
    border-color: rgba(20, 184, 166, 0.38);
}

.marker-popup__health--rooms {
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.34);
}

.marker-popup__health--agent {
    color: #bae6fd;
    background: rgba(56, 189, 248, 0.18);
    border-color: rgba(56, 189, 248, 0.34);
}

.marker-popup__health--mixed-partial {
    color: #ddd6fe;
    background: rgba(167, 139, 250, 0.18);
    border-color: rgba(167, 139, 250, 0.34);
}

.marker-popup__health--all-rooms-devices-partial {
    color: #fed7aa;
    background: rgba(237, 137, 54, 0.16);
    border-color: rgba(237, 137, 54, 0.4);
}

.marker-popup__health--desks {
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.18);
    border-color: rgba(249, 115, 22, 0.34);
}

.marker-popup__health--partial {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.34);
}

.marker-popup__health--fail {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.34);
}

.marker-popup__meta {
    font-size: 12px;
    opacity: 0.92;
    line-height: 1.35;
    display: grid;
    gap: 4px;
    padding: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.marker-popup__stat {
    display: grid;
    grid-template-columns: minmax(96px, 0.78fr) minmax(0, 1fr);
    align-items: baseline;
    gap: 10px;
}

.marker-popup__stat-label {
    color: rgba(255, 255, 255, 0.62);
}

.marker-popup__stat-value {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}

.marker-popup__label {
    opacity: 0.75;
    margin-right: 6px;
}

.marker-popup__section {
    margin-top: 10px;
}

.marker-popup__section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.marker-popup__section-title {
    font-size: 12px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.92);
    text-transform: uppercase;
}

.marker-popup__section-summary {
    flex: 0 0 auto;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.66);
    font-variant-numeric: tabular-nums;
}

.marker-popup__summary-ok {
    color: #86efac;
    font-weight: 800;
}

.marker-popup__empty {
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    padding: 8px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.045);
}

.marker-popup__iplist {
    display: grid;
    gap: 5px;
    max-height: 150px;
    overflow-y: auto;
    padding-right: 2px;
}

.marker-popup__device-types {
    display: grid;
    gap: 6px;
}

.marker-popup__device-type {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 30px;
    padding: 6px 8px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.055);
    font-size: 12px;
}

.marker-popup__device-type--ok {
    background: rgba(34, 197, 94, 0.105);
    border-color: rgba(34, 197, 94, 0.18);
}

.marker-popup__device-type--partial {
    background: rgba(245, 158, 11, 0.105);
    border-color: rgba(245, 158, 11, 0.2);
}

.marker-popup__device-type--fail {
    background: rgba(239, 68, 68, 0.105);
    border-color: rgba(239, 68, 68, 0.18);
}

.marker-popup__device-label {
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.9);
}

.marker-popup__device-count {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.72);
    font-variant-numeric: tabular-nums;
}

.marker-popup__device-count strong {
    color: #86efac;
}

.marker-popup__ip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 28px;
    padding: 5px 7px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.055);
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.marker-popup__ip--ok {
    background: rgba(34, 197, 94, 0.105);
}

.marker-popup__ip--fail {
    background: rgba(239, 68, 68, 0.105);
}

.marker-popup__ip--missing {
    background: rgba(148, 163, 184, 0.105);
}

.marker-popup__ip--stale {
    background: rgba(245, 158, 11, 0.105);
}

.marker-popup__ip-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.marker-popup__latency {
    color: rgba(255, 255, 255, 0.62);
    font-size: 11px;
}

.marker-popup__ipbadge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.marker-popup__ipbadge--ok {
    color: #052e16;
    background: #86efac;
}

.marker-popup__ipbadge--fail {
    color: #450a0a;
    background: #fca5a5;
}

.marker-popup__ipbadge--missing {
    color: #111827;
    background: #cbd5e1;
}

.marker-popup__ipbadge--stale {
    color: #451a03;
    background: #fcd34d;
}

.tt-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 12.5px;
    user-select: none;
}

.tt-refresh-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.22);
}

.tt-refresh-btn:active {
    transform: translateY(0px) scale(0.98);
}

.tt-refresh-btn:focus {
    outline: none;
}

.tt-refresh-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.mapboxgl-popup-content {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.tt-refresh-btn--icon {
    min-width: 28px;
    width: 28px;
    height: 28px;
    padding: 0;
    justify-content: center;
    gap: 0;
    border-radius: 9px;
}

.mapboxgl-popup-tip {
    border-top-color: rgba(17, 18, 23, 0.96) !important;
    border-bottom-color: rgba(17, 18, 23, 0.96) !important;
}

/* Shared action roles, states and dimensions. */
.gm-interface-theme {
    --gm-button-primary-background: #19466f;
    --gm-button-primary-text: #ffffff;
    --gm-button-primary-border: #64c9ec;
    --gm-button-primary-hover-background: #255b86;
    --gm-button-primary-hover-text: #ffffff;
    --gm-button-primary-hover-border: #64c9ec;
    --gm-button-secondary-background: #1d1d1d;
    --gm-button-secondary-text: #e6e6e6;
    --gm-button-secondary-border: #000000;
    --gm-button-secondary-hover-background: #464646;
    --gm-button-secondary-hover-text: #ffffff;
    --gm-button-secondary-hover-border: #000000;
    --gm-button-save-background: #1d1d1d;
    --gm-button-save-text: #70cd5d;
    --gm-button-save-border: #38642f;
    --gm-button-save-hover-background: #464646;
    --gm-button-save-hover-text: #65e04a;
    --gm-button-save-hover-border: #38642f;
    --gm-button-close-background: #392424;
    --gm-button-close-text: #ffabab;
    --gm-button-close-border: #854343;
    --gm-button-close-hover-background: #693333;
    --gm-button-close-hover-text: #ffffff;
    --gm-button-close-hover-border: #ef7777;
    --gm-button-danger-background: #1d1d1d;
    --gm-button-danger-text: #ef5353;
    --gm-button-danger-border: #742727;
    --gm-button-danger-hover-background: #464646;
    --gm-button-danger-hover-text: #ff4343;
    --gm-button-danger-hover-border: #742727;
    --gm-accent-bg: var(--gm-color-accent-background, #19466f);
    --gm-accent-border: var(--gm-color-accent-border, #64c9ec);
    --gm-accent-text: var(--gm-color-accent-text, #bcecff);
    --gm-focus: var(--gm-color-focus, #85dcf5);
    --gm-color-disabled-background: #242424;
    --gm-color-disabled-text: #b0b0b0;
    --gm-color-disabled-border: #626262;
    background: var(--gm-page-background, radial-gradient(circle, #444444 0%, #757575 100%));
    color: var(--gm-color-text, #ffffff);
    font-family: var(--gm-font-family, 'Avenir');
    font-size: var(--gm-font-size, 16px);
}
.gm-interface-theme .gm-theme-surface {
    background: var(--gm-color-surface, #303030);
    border-color: var(--gm-color-border-muted, #565656);
}
.gm-interface-theme .gm-theme-surface-alt {
    background: var(--gm-color-surface-alt, #202020);
}
.gm-interface-theme :is(button, input[type='button'], input[type='submit']) {
    border-radius: var(--gm-border-radius, 8px);
}
.gm-interface-theme
    :is(button, input[type='button'], input[type='submit']):where(
        .gm-button--primary,
        .violet,
        .launch_button,
        .update-content-launch,
        .gm-dialog-confirm:not(.red):not(.green)
    ) {
    background: var(--gm-button-primary-background) !important;
    color: var(--gm-button-primary-text) !important;
    border-color: var(--gm-button-primary-border) !important;
    border-width: var(--gm-border-width, 2px) !important;
    border-radius: var(--gm-border-radius, 8px) !important;
}
.gm-interface-theme
    :is(button, input[type='button'], input[type='submit']):where(
        .gm-button--primary,
        .violet,
        .launch_button,
        .update-content-launch,
        .gm-dialog-confirm:not(.red):not(.green)
    ):hover:not(:disabled):not([aria-disabled='true']) {
    background: var(--gm-button-primary-hover-background) !important;
    color: var(--gm-button-primary-hover-text) !important;
    border-color: var(--gm-button-primary-hover-border) !important;
}
.gm-interface-theme :is(button, input[type='button'], input[type='submit']):where(.gm-button--secondary, .gm-dialog-cancel, .shop-editor-cancel) {
    background: var(--gm-button-secondary-background) !important;
    color: var(--gm-button-secondary-text) !important;
    border-color: var(--gm-button-secondary-border) !important;
    border-width: var(--gm-border-width, 2px) !important;
    border-radius: var(--gm-border-radius, 8px) !important;
}
.gm-interface-theme
    :is(button, input[type='button'], input[type='submit']):where(.gm-button--secondary, .gm-dialog-cancel, .shop-editor-cancel):hover:not(
        :disabled
    ):not([aria-disabled='true']) {
    background: var(--gm-button-secondary-hover-background) !important;
    color: var(--gm-button-secondary-hover-text) !important;
    border-color: var(--gm-button-secondary-hover-border) !important;
}
.gm-interface-theme
    :is(button, input[type='button'], input[type='submit']):where(.gm-button--save, .green, .save, .scores-save, .bank-editor-submit) {
    background: var(--gm-button-save-background) !important;
    color: var(--gm-button-save-text) !important;
    border-color: var(--gm-button-save-border) !important;
    border-width: var(--gm-border-width, 2px) !important;
    border-radius: var(--gm-border-radius, 8px) !important;
}
.gm-interface-theme
    :is(button, input[type='button'], input[type='submit']):where(.gm-button--save, .green, .save, .scores-save, .bank-editor-submit):hover:not(
        :disabled
    ):not([aria-disabled='true']) {
    background: var(--gm-button-save-hover-background) !important;
    color: var(--gm-button-save-hover-text) !important;
    border-color: var(--gm-button-save-hover-border) !important;
}
.gm-interface-theme
    :is(button, input[type='button'], input[type='submit']):where(
        .gm-button--close,
        .scores-cancel,
        .mailer-cancel,
        .bank-editor-cancel,
        .bank-dialog-close,
        .gm-close-button,
        .gm-details-close,
        .mailer-close,
        .scores-close,
        .browser-close,
        .shop-picker-close,
        .shop-editor-close
    ) {
    background: var(--gm-button-close-background) !important;
    color: var(--gm-button-close-text) !important;
    border-color: var(--gm-button-close-border) !important;
    border-width: var(--gm-border-width, 2px) !important;
    border-radius: var(--gm-border-radius, 8px) !important;
}
.gm-interface-theme
    :is(button, input[type='button'], input[type='submit']):where(
        .gm-button--close,
        .scores-cancel,
        .mailer-cancel,
        .bank-editor-cancel,
        .bank-dialog-close,
        .gm-close-button,
        .gm-details-close,
        .mailer-close,
        .scores-close,
        .browser-close,
        .shop-picker-close,
        .shop-editor-close
    ):hover:not(:disabled):not([aria-disabled='true']) {
    background: var(--gm-button-close-hover-background) !important;
    color: var(--gm-button-close-hover-text) !important;
    border-color: var(--gm-button-close-hover-border) !important;
}
.gm-interface-theme
    :is(button, input[type='button'], input[type='submit']):where(.gm-button--danger, .red:not(.gm-close-button), .delete, .cancel_session) {
    background: var(--gm-button-danger-background) !important;
    color: var(--gm-button-danger-text) !important;
    border-color: var(--gm-button-danger-border) !important;
    border-width: var(--gm-border-width, 2px) !important;
    border-radius: var(--gm-border-radius, 8px) !important;
}
.gm-interface-theme
    :is(button, input[type='button'], input[type='submit']):where(.gm-button--danger, .red:not(.gm-close-button), .delete, .cancel_session):hover:not(
        :disabled
    ):not([aria-disabled='true']) {
    background: var(--gm-button-danger-hover-background) !important;
    color: var(--gm-button-danger-hover-text) !important;
    border-color: var(--gm-button-danger-hover-border) !important;
}
/* Disabled colors remain readable without reducing text opacity. */
.gm-interface-theme
    :is(button, input[type='button'], input[type='submit']):is(:disabled, [aria-disabled='true']):not(
        :where(.tox *, .mce-container *, .mce-widget *, .CodeMirror *, .cm-editor *, .lang_selector button, .gm-preview-flag)
    ) {
    background-color: var(--gm-color-disabled-background) !important;
    color: var(--gm-color-disabled-text) !important;
    border-color: var(--gm-color-disabled-border) !important;
    opacity: 1 !important;
    box-shadow: none !important;
    cursor: default;
}
.gm-interface-theme :is(button, input, select, textarea):focus-visible {
    outline: 2px solid var(--gm-color-focus, #85dcf5);
    outline-offset: 2px;
}

.gm-interface-theme :is(input, select, textarea) {
    font-family: inherit;
    font-size: var(--gm-font-size, 16px);
}

/* Shared surface and control hierarchy. */
.gm-interface-theme {
    --gm-ui-shadow-small: 0 2px 8px rgba(var(--gm-color-shadow-rgb, 0, 0, 0), 0.1);
    --gm-ui-shadow-panel: 0 6px 20px rgba(var(--gm-color-shadow-rgb, 0, 0, 0), 0.14);
    --gm-ui-shadow-dialog: 0 16px 44px rgba(var(--gm-color-shadow-rgb, 0, 0, 0), 0.24);
    line-height: 1.45;
}
.gm-interface-theme
    :is(.gm-topbar, .screens, .swal2-popup, .gm-details-dialog, .session-scores-dialog, .session-mailer-dialog)
    :is(button, input[type='button'], input[type='submit']):not(:where(.tox *, .mce-container *, .mce-widget *, .CodeMirror *, .cm-editor *)) {
    box-sizing: border-box;
    max-width: 100%;
    font-family: var(--gm-font-family, 'Avenir');
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
    box-shadow: none !important;
    transition:
        background 0.16s ease,
        border-color 0.16s ease,
        color 0.16s ease;
}
.gm-interface-theme
    :is(
        .gm-dialog-button,
        .session_actions button,
        .bank-dialog-actions button,
        .shop-editor-actions button,
        .scores-actions button,
        .mailer-actions button,
        .order-actions-footer button
    ) {
    min-height: 44px !important;
    padding: 10px 16px;
    font-weight: 600;
}
.gm-interface-theme
    :is(.screens, .gm-topbar, .swal2-popup, .gm-details-dialog, .session-scores-dialog, .session-mailer-dialog)
    :is(
        input:not([type='hidden']):not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']):not([type='button']):not(
                [type='submit']
            ),
        select,
        textarea,
        .gm-select.ui-selectmenu-button
    ):not(:where(.tox *, .mce-container *, .mce-widget *, .CodeMirror *, .cm-editor *)) {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: var(--gm-border-radius, 8px);
    border-color: var(--gm-color-input-border, #646464) !important;
    background: var(--gm-color-input-background, #202020) !important;
    color: var(--gm-color-input-text, #ffffff) !important;
    box-shadow: none !important;
}
.gm-interface-theme
    :is(.screens, .swal2-popup, .gm-details-dialog, .session-scores-dialog, .session-mailer-dialog)
    :is(input, select, textarea):disabled:not(:where(.tox *, .mce-container *, .mce-widget *, .CodeMirror *, .cm-editor *)) {
    border-color: var(--gm-color-disabled-border) !important;
    background: var(--gm-color-disabled-background) !important;
    color: var(--gm-color-disabled-text) !important;
}
.gm-interface-theme :is(.gm-page-description, .challenge-stock-hint, .scores-help, .mailer-help) {
    color: var(--gm-color-text-muted, #b9b9b9);
    line-height: 1.55;
}
.gm-interface-theme .gm-page-header {
    align-items: flex-start;
    gap: 16px;
}
.gm-interface-theme .gm-page-header :is(h1, h2) {
    line-height: 1.2;
    letter-spacing: -0.015em;
}
.gm-interface-theme .gm-page-header .gm-page-copy {
    min-width: 0;
}
.gm-interface-theme .gm-page-header .gm-page-actions {
    flex-wrap: wrap;
    min-width: 0;
    gap: 8px;
}
.gm-interface-theme .page-eyebrow {
    color: var(--gm-color-text-subtle, #858585);
    letter-spacing: 0.08em;
}
.gm-interface-theme
    :is(
        #screen_current_sessions > inner > .room,
        .orders-panel,
        .sessions-panel,
        .bank-panel,
        .shop-page-header,
        #screen_shop .browser_pan,
        .scoresheet-preview
    ) {
    border-color: var(--gm-color-border-muted, #565656);
    box-shadow: var(--gm-ui-shadow-panel);
}
.gm-interface-theme :is(.order-stats, .session-stats, .bank-summary) article {
    box-shadow: none;
}
.gm-interface-theme #screen_orders :is(.order-player-card, .order-detail-grid > div) {
    background: var(--gm-color-surface-alt, #202020);
    border-color: var(--gm-color-border-muted, #565656);
}
.gm-interface-theme #screen_orders .order-player-pseudo:not(.is-fallback) {
    background: var(--gm-color-surface-raised, #383838);
    border-color: var(--gm-color-border-muted, #565656);
}

/* Compact controls retain readable labels and tabs. */
.gm-interface-theme .gm-topbar {
    gap: 10px 16px;
    box-shadow: var(--gm-ui-shadow-small);
}
.gm-interface-theme .gm-topbar .menu button {
    min-width: 0;
    height: auto;
    min-height: 44px;
    padding: 10px 12px;
}
.gm-interface-theme .gm-topbar .gm-header-actions {
    min-width: 0;
    gap: 10px;
}
.gm-interface-theme .gm-topbar .gm-language-control {
    min-width: 0;
}
.gm-interface-theme .gm-select-menu.ui-selectmenu-menu .ui-menu {
    box-shadow: var(--gm-ui-shadow-dialog);
}
.gm-interface-theme #screen_current_sessions.room-tabs-enabled > .room_tabs:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr));
    gap: 6px;
    overflow: visible;
}
.gm-interface-theme #screen_current_sessions > .room_tabs {
    box-sizing: border-box;
    width: calc(100% - 24px);
    max-width: 780px;
    padding: 6px;
    box-shadow: var(--gm-ui-shadow-small);
}
.gm-interface-theme #screen_current_sessions > .room_tabs .room_tab {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px;
    overflow: visible;
    white-space: normal;
    overflow-wrap: anywhere;
    text-overflow: clip;
    line-height: 1.3;
}
.gm-interface-theme #screen_current_sessions > inner > .room {
    box-shadow: var(--gm-ui-shadow-panel);
}
.gm-interface-theme #screen_current_sessions > inner > .room > h1 {
    margin-bottom: 12px;
}
.gm-interface-theme #screen_current_sessions > inner > .room .room_empty {
    gap: 12px;
}
.gm-interface-theme #screen_current_sessions .div_options .challenge_selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
    gap: 8px;
}
.gm-interface-theme #screen_current_sessions .div_options .session-challenge-choice {
    min-width: 0;
    max-width: 100%;
    margin: 0;
}
.gm-interface-theme #screen_current_sessions .div_options .session-challenge-choice > button {
    min-width: 0;
    width: 100%;
    min-height: 44px;
    margin: 0;
}

/* Only icon-only close controls use a square shape. */
.gm-interface-theme
    :is(.gm-close-button, .gm-details-close, .scores-close, .mailer-close, .browser-close, .shop-picker-close, .shop-editor-close):not([hidden]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex: 0 0 44px;
    box-sizing: border-box;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px;
    margin: 0;
    padding: 0 !important;
    background-image: none !important;
    font-family: system-ui, sans-serif;
    font-size: 0 !important;
    font-weight: 500;
    line-height: 1;
    text-indent: 0;
    box-shadow: none !important;
}

/* Bounded dialogs retain scrollable bodies and reachable actions. */
.gm-interface-theme
    :is(dialog.gm-details-dialog, dialog.session-scores-dialog, dialog.session-mailer-dialog, #screen_bank dialog, .swal2-popup, .update-dialog) {
    box-sizing: border-box;
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    border-color: var(--gm-color-border-muted, #565656);
    border-radius: var(--gm-border-radius, 12px);
    box-shadow: var(--gm-ui-shadow-dialog);
}
.gm-interface-theme :is(dialog.gm-details-dialog, dialog.session-scores-dialog, dialog.session-mailer-dialog, #screen_bank dialog)::backdrop {
    background: rgba(var(--gm-color-shadow-rgb, 0, 0, 0), 0.48);
}
.gm-interface-theme .swal2-popup {
    width: min(560px, calc(100vw - 24px));
    padding: 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.gm-interface-theme .swal2-popup.gm-challenge-customization-dialog {
    width: min(960px, calc(100vw - 24px));
}
.gm-interface-theme .swal2-popup .swal2-title {
    margin: 0;
    padding-inline: 36px;
    font-size: 1.4rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.gm-interface-theme .swal2-popup .swal2-html-container {
    min-width: 0;
    min-height: 0;
    margin: 16px 0 0;
    max-height: calc(100dvh - 210px);
    overflow: auto;
    line-height: 1.5;
    overscroll-behavior: contain;
}
.gm-interface-theme .swal2-popup .swal2-actions {
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 0;
}
.gm-interface-theme .swal2-popup .swal2-actions button {
    min-width: 0;
    margin: 0;
}
/* The component owns visibility through its inline display value. */
.gm-interface-theme
    .swal2-container
    .swal2-popup.gm-confirm-dialog:not([hidden]):not([aria-hidden='true']):not([style*='display: none']):not([style*='display:none']) {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    overflow: hidden;
}
.gm-interface-theme .swal2-container .gm-confirm-dialog > :not(.swal2-html-container) {
    flex: 0 0 auto;
}
.gm-interface-theme .swal2-container .gm-confirm-dialog > .swal2-icon {
    margin: 0 auto 12px;
}
.gm-interface-theme .swal2-container .gm-confirm-dialog > .swal2-title {
    min-height: 44px;
    padding-right: 48px;
    padding-left: 0;
    text-align: left;
}
.gm-interface-theme .swal2-container .gm-confirm-dialog > .swal2-html-container {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    margin-inline: 0;
    overflow: auto;
}
.gm-interface-theme .swal2-container .gm-confirm-dialog > .swal2-actions {
    flex: 0 0 auto;
    width: 100%;
    min-height: 0;
}
.gm-interface-theme .swal2-container .gm-confirm-dialog > .swal2-actions > button {
    flex: 0 1 auto;
    min-height: 44px !important;
}
.gm-interface-theme
    :is(.bank-dialog-header, .shop-editor-header, .scores-header, .mailer-header, .selection-heading, .status-header, .update-dialog-header) {
    min-width: 0;
    gap: 12px;
}
.gm-interface-theme
    :is(.bank-dialog-header, .shop-editor-header, .scores-header, .mailer-header, .selection-heading, .status-header, .update-dialog-header)
    :is(h2, h3) {
    min-width: 0;
    margin-block: 0;
    overflow-wrap: anywhere;
    line-height: 1.25;
}
.gm-interface-theme :is(.bank-dialog-body, .shop-editor-body, .scores-body, .mailer-body, .order-details-body) {
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.gm-interface-theme
    :is(
        .bank-dialog-actions,
        .shop-editor-actions,
        .scores-actions,
        .mailer-actions,
        .order-actions-footer .buttons,
        .status-bulk-actions .powerButtons,
        .status-bulk-actions .lightButtons
    ) {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.gm-interface-theme :is(.bank-dialog-actions, .shop-editor-actions, .scores-actions, .mailer-actions, .order-actions-footer .buttons) > button {
    min-width: 0;
    margin: 0;
}
.gm-interface-theme #browser > inner {
    max-width: 100%;
    max-height: 100%;
    border-color: var(--gm-color-border-muted, #565656);
    box-shadow: var(--gm-ui-shadow-dialog);
}
.gm-interface-theme #screen_current_sessions > inner > .room :is(.div_options, .statusDiv) {
    box-shadow: var(--gm-ui-shadow-dialog);
}
.gm-interface-theme #screen_current_sessions .div_options > inner {
    min-height: 0;
}
.gm-interface-theme #screen_current_sessions .div_options .scrollable {
    min-height: 0;
    overscroll-behavior: contain;
    padding: 4px;
}

@media (min-width: 961px) {
    .gm-interface-theme .gm-topbar:not(.has-update-health) .menu {
        width: auto;
        justify-self: stretch;
        grid-auto-columns: minmax(0, 1fr);
    }
    .gm-interface-theme .gm-topbar .gm-language-control {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}
@media (max-width: 960px) {
    .gm-interface-theme .gm-topbar.has-update-health {
        grid-template-columns: minmax(0, 1fr) minmax(112px, 132px);
    }
    .gm-interface-theme .gm-topbar .update-health {
        width: 100%;
        min-width: 0;
    }
    .gm-interface-theme .gm-topbar .gm-navigation-panel {
        box-shadow: var(--gm-ui-shadow-dialog);
    }
    .gm-interface-theme .gm-topbar .gm-language-control {
        width: 100%;
    }
}
@media (max-width: 600px) {
    .gm-interface-theme #screen_current_sessions > .room_tabs {
        width: calc(100% - 16px);
        margin-block: 8px;
    }
    .gm-interface-theme #screen_current_sessions > inner {
        padding-inline: 8px;
    }
    .gm-interface-theme #screen_current_sessions > inner > .room {
        padding: 14px;
    }
    .gm-interface-theme #screen_current_sessions > inner > .room .room_empty .session_setup_row {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }
    .gm-interface-theme #screen_current_sessions > inner > .room .room_empty .session_setup_row label {
        font-size: 0.85rem;
    }
    .gm-interface-theme
        :is(.gm-page-header, .gm-page-actions, .bank-dialog-actions, .shop-editor-actions, .scores-actions, .mailer-actions, .swal2-actions)
        > button {
        max-width: 100%;
    }
    .gm-interface-theme :is(.bank-dialog-actions, .shop-editor-actions, .scores-actions, .mailer-actions, .swal2-actions) > button {
        flex: 0 1 auto;
        min-width: min(100%, 120px);
    }
    .gm-interface-theme .swal2-popup {
        padding: 16px;
    }
    .gm-interface-theme .swal2-popup .swal2-title {
        font-size: 1.2rem;
    }
    .gm-interface-theme .swal2-container .gm-confirm-dialog > .swal2-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .gm-interface-theme .swal2-container .gm-confirm-dialog > .swal2-actions > button {
        flex: 0 0 auto;
        width: 100%;
    }
    .gm-interface-theme .challenge-customization-item {
        display: flex;
        flex-wrap: wrap;
        min-width: 0;
    }
    .gm-interface-theme .challenge-customization-identity {
        flex: 1 1 calc(100% - 35px);
        min-width: 0;
    }
    .gm-interface-theme .challenge-customization-item-actions {
        display: flex;
        flex: 1 1 calc(100% - 28px);
        flex-wrap: wrap;
        min-width: 0;
        gap: 6px;
        margin-left: 28px;
        justify-content: flex-end;
    }
    .gm-interface-theme .challenge-customization-item-actions button {
        flex: 0 1 44px;
        width: 44px;
        min-width: 44px;
        min-height: 44px !important;
    }
}
@media (max-height: 380px) {
    .gm-interface-theme .swal2-container .swal2-popup.gm-confirm-dialog {
        overflow-y: auto !important;
    }
    .gm-interface-theme .swal2-container .gm-confirm-dialog > .swal2-html-container {
        flex: 0 0 auto;
        max-height: 40dvh;
    }
}
@media (max-height: 520px) {
    .gm-interface-theme
        :is(dialog.gm-details-dialog, dialog.session-scores-dialog, dialog.session-mailer-dialog, #screen_bank dialog, .update-dialog) {
        max-height: calc(100dvh - 16px);
    }
    .gm-interface-theme .swal2-popup {
        max-height: calc(100dvh - 16px);
    }
    .gm-interface-theme .swal2-popup .swal2-html-container {
        max-height: max(72px, calc(100dvh - 190px));
    }
}
@media (prefers-reduced-motion: reduce) {
    .gm-interface-theme :is(.gm-topbar, .screens, .swal2-popup) button {
        transition: none;
    }
}

/* Status and close controls share vector icons and semantic colors. */
.gm-interface-theme {
    --gm-icon-ok: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22m8%2012%203%203%205-6%22%2F%3E%3C%2Fsvg%3E");
    --gm-icon-warning: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%203%2010%2018H2L12%203Z%22%2F%3E%3Cpath%20d%3D%22M12%209v4m0%204h.01%22%2F%3E%3C%2Fsvg%3E");
    --gm-icon-error: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22m9%209%206%206m0-6-6%206%22%2F%3E%3C%2Fsvg%3E");
    --gm-icon-unknown: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22M9.4%209a2.7%202.7%200%200%201%205.2.9c0%201.8-2.6%202-2.6%203.6M12%2017h.01%22%2F%3E%3C%2Fsvg%3E");
    --gm-icon-activity: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22M12%207v5l3%202%22%2F%3E%3C%2Fsvg%3E");
    --gm-icon-available: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%2020V4m-6%206%206-6%206%206%22%2F%3E%3C%2Fsvg%3E");
    --gm-icon-paused: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%205v14M16%205v14%22%2F%3E%3C%2Fsvg%3E");
    --gm-icon-close: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m6%206%2012%2012M18%206%206%2018%22%2F%3E%3C%2Fsvg%3E");
    --gm-status-icon: var(--gm-icon-unknown);
}
.gm-interface-theme [data-update-state='ok'] {
    --gm-status-icon: var(--gm-icon-ok);
}
.gm-interface-theme [data-update-state='available'] {
    --gm-status-icon: var(--gm-icon-available);
}
.gm-interface-theme [data-update-state='running'] {
    --gm-status-icon: var(--gm-icon-activity);
}
.gm-interface-theme [data-update-state='paused'] {
    --gm-status-icon: var(--gm-icon-paused);
}
.gm-interface-theme [data-update-state='error'] {
    --gm-status-icon: var(--gm-icon-error);
}
.gm-interface-theme [data-update-state='checking'] {
    --gm-status-icon: var(--gm-icon-activity);
}
.gm-interface-theme .gm-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    background: none;
    line-height: 1;
}
.gm-interface-theme .gm-status-icon[data-status='ok'],
.gm-interface-theme #screen_current_sessions .statusIcon .icon.ok {
    --gm-status-icon: var(--gm-icon-ok);
    color: var(--gm-color-success, #70d88c);
}
.gm-interface-theme .gm-status-icon[data-status='warning'],
.gm-interface-theme #screen_current_sessions .statusIcon .icon.warning {
    --gm-status-icon: var(--gm-icon-warning);
    color: var(--gm-color-warning, #ffd166);
}
.gm-interface-theme .gm-status-icon[data-status='error'],
.gm-interface-theme #screen_current_sessions .statusIcon .icon.error {
    --gm-status-icon: var(--gm-icon-error);
    color: var(--gm-color-danger, #ff7777);
}
.gm-interface-theme #screen_current_sessions .statusIcon.openStatus {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    padding: 6px;
}
.gm-interface-theme #screen_current_sessions > inner .room .statusIcon .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none !important;
    animation: none;
}
.gm-interface-theme .gm-status-icon::before,
.gm-interface-theme .update-health .update-health-summary[data-update-state] .update-health-dot::before,
.gm-interface-theme #screen_current_sessions .statusIcon .icon::before,
.gm-interface-theme .update-dialog :is(.update-tab-status, .update-summary-status)::before {
    content: '';
    display: block;
    box-sizing: border-box;
    flex: 0 0 auto;
    width: 100%;
    height: 100%;
    border-radius: 0;
    background: currentColor;
    -webkit-mask: var(--gm-status-icon) center / contain no-repeat;
    mask: var(--gm-status-icon) center / contain no-repeat;
}
.gm-interface-theme .update-health .update-health-summary[data-update-state] .update-health-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    min-width: 20px;
    height: 20px;
    margin: 0;
    background: none;
    box-shadow: none;
    color: var(--update-status-color, #9aa5b1);
    line-height: 1;
}
.gm-interface-theme .update-dialog :is(.update-tab-status, .update-summary-status)::before {
    width: 18px;
    height: 18px;
    color: var(--update-status-color, #9aa5b1);
}
.gm-interface-theme
    :is(.gm-close-button, .gm-details-close, .scores-close, .mailer-close, .browser-close, .shop-picker-close, .shop-editor-close):not(
        [hidden]
    )::before {
    content: '';
    display: block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    background: currentColor;
    -webkit-mask: var(--gm-icon-close) center / contain no-repeat;
    mask: var(--gm-icon-close) center / contain no-repeat;
}

/* Attention icons pulse without disappearing. */
.gm-interface-theme .gm-status-icon:is([data-status='warning'], [data-status='error'])::before,
.gm-interface-theme #screen_current_sessions .statusIcon .icon:is(.warning, .error)::before,
.gm-interface-theme
    :is([data-update-state='available'], [data-update-state='error'], [data-update-state='paused'], [data-update-state='unknown'])
    :is(.update-health-dot, .gm-status-icon, .update-tab-status, .update-summary-status)::before,
.gm-interface-theme
    .update-dialog
    .update-summary-status:is(
        [data-update-state='available'],
        [data-update-state='error'],
        [data-update-state='paused'],
        [data-update-state='unknown']
    )::before {
    animation: gm-status-attention 1.5s ease-in-out infinite;
    transform-origin: center;
}
@keyframes gm-status-attention {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.45;
        transform: scale(0.92);
    }
}
@media (prefers-reduced-motion: reduce) {
    .gm-interface-theme .gm-status-icon:is([data-status='warning'], [data-status='error'])::before,
    .gm-interface-theme #screen_current_sessions .statusIcon .icon:is(.warning, .error)::before,
    .gm-interface-theme
        :is([data-update-state='available'], [data-update-state='error'], [data-update-state='paused'], [data-update-state='unknown'])
        :is(.update-health-dot, .gm-status-icon, .update-tab-status, .update-summary-status)::before,
    .gm-interface-theme
        .update-dialog
        .update-summary-status:is(
            [data-update-state='available'],
            [data-update-state='error'],
            [data-update-state='paused'],
            [data-update-state='unknown']
        )::before {
        animation: none;
    }
}

.gm-interface-theme
    :is(button, input[type='button'], input[type='submit']):is(:disabled, [aria-disabled='true']):not(
        :where(.tox *, .mce-container *, .mce-widget *, .CodeMirror *, .cm-editor *, .lang_selector button, .gm-preview-flag)
    ) {
    background-image: none !important;
}

/* Device actions share semantic roles and vector icons. */
.gm-interface-theme {
    --gm-icon-start: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203v9M6%206a8%208%200%201%200%2012%200%22%2F%3E%3C%2Fsvg%3E");
    --gm-icon-reboot: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%2010a8%208%200%201%200-1%207M20%204v6h-6%22%2F%3E%3C%2Fsvg%3E");
    --gm-icon-stop: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%225%22%20y%3D%225%22%20width%3D%2214%22%20height%3D%2214%22%20rx%3D%221%22%2F%3E%3C%2Fsvg%3E");
}
.gm-interface-theme .gm-connection-action {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    box-sizing: border-box;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px;
    margin: 0;
    padding: 0 !important;
    background-image: none !important;
    box-shadow: none !important;
}
.gm-interface-theme .gm-action-icon {
    display: block;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    background: currentColor;
    -webkit-mask: var(--gm-action-symbol) center / contain no-repeat;
    mask: var(--gm-action-symbol) center / contain no-repeat;
    pointer-events: none;
}
.gm-interface-theme .gm-action-icon[data-action='start'] {
    --gm-action-symbol: var(--gm-icon-start);
}
.gm-interface-theme .gm-action-icon[data-action='reboot'] {
    --gm-action-symbol: var(--gm-icon-reboot);
}
.gm-interface-theme .gm-action-icon[data-action='stop'] {
    --gm-action-symbol: var(--gm-icon-stop);
}
.gm-interface-theme .gm-status-icon[data-status='unknown'],
.gm-interface-theme #screen_current_sessions .statusIcon .icon.unknown {
    --gm-status-icon: var(--gm-icon-unknown);
    color: var(--gm-color-warning, #ffd166);
}
.gm-interface-theme #screen_current_sessions > inner .room .statusDiv .status .PC {
    grid-template-columns: minmax(105px, 0.75fr) minmax(0, 1.5fr) 148px;
    border-color: var(--gm-color-border-muted, #454545);
}
.gm-interface-theme #screen_current_sessions .statusDiv .PC .name {
    overflow-wrap: anywhere;
}
.gm-interface-theme #screen_current_sessions .statusDiv .connection-state .statusIcon {
    flex: 0 0 24px !important;
}
.gm-interface-theme #screen_current_sessions .statusDiv .statusIcon .icon {
    width: 24px !important;
    height: 24px !important;
}
.gm-interface-theme #screen_current_sessions .statusDiv .PC[data-status='ok'] .message {
    color: var(--gm-color-success, #70d88c) !important;
}
.gm-interface-theme #screen_current_sessions .statusDiv .PC:is([data-status='warning'], [data-status='unknown']) .message {
    color: var(--gm-color-warning, #ffd166) !important;
}
.gm-interface-theme #screen_current_sessions .statusDiv .PC[data-status='error'] .message {
    color: var(--gm-color-danger, #ff7777) !important;
}
.gm-interface-theme #screen_current_sessions .statusDiv .PC .connection-detail:first-child {
    font-weight: 600;
}
.gm-interface-theme #screen_current_sessions > inner .room .statusDiv .status .PC .connection-actions {
    grid-template-columns: repeat(3, 44px);
    min-width: 148px;
}
@media (max-width: 600px) {
    .gm-interface-theme #screen_current_sessions > inner .room .statusDiv .status .PC {
        grid-template-columns: minmax(0, 1fr) 148px;
    }

    .gm-interface-theme #screen_current_sessions > inner .room .statusDiv .status .PC[data-status] .connection-state {
        grid-column: 1 / -1;
        grid-row: 2;
        gap: 8px;
    }
    .gm-interface-theme #screen_current_sessions > inner .room .statusDiv .status .PC[data-status] .connection-actions {
        grid-column: 2;
        grid-row: 1;
    }
    .gm-interface-theme #screen_current_sessions > inner .room .statusDiv .status .PC[data-status] .message {
        font-size: 0.85rem;
    }
}

/* GM and preview tags share cards and three selection states. */
.gm-interface-theme .gm-tag-selector {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    min-width: 0;
    margin: 8px 0;
}
.gm-interface-theme .gm-tag-choice:not(.to-clone) {
    display: flex !important;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin: 0 !important;
    padding: 8px 10px;
    border: 1px solid var(--gm-color-border-muted, #565656);
    border-radius: var(--gm-border-radius, 8px);
    background: var(--gm-color-surface-alt, #202020);
    color: var(--gm-color-text, #ffffff);
    font-size: var(--gm-font-size, 16px);
}
.gm-interface-theme .gm-tag-actions {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 6px;
    margin: 0;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.gm-interface-theme .gm-tag-actions > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: var(--gm-border-width, 2px) solid var(--gm-color-border-muted, #565656) !important;
    border-radius: var(--gm-border-radius, 8px) !important;
    background: var(--gm-color-input-background, #1d1d1d) !important;
    color: var(--gm-color-text, #ffffff) !important;
    font: inherit;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    box-shadow: none !important;
}
.gm-interface-theme .gm-tag-actions > button:hover:not(:disabled):not([aria-pressed='true']) {
    background: var(--gm-color-surface-raised, #383838) !important;
    border-color: var(--gm-color-focus, #85dcf5) !important;
}
.gm-interface-theme .gm-tag-actions > .gm-tag-include[aria-pressed='true'] {
    border-color: var(--gm-color-success, #70d88c) !important;
    background: rgba(var(--gm-color-success-rgb, 112, 216, 140), 0.18) !important;
}
.gm-interface-theme .gm-tag-actions > .gm-tag-exclude[aria-pressed='true'] {
    border-color: var(--gm-color-danger, #ff7777) !important;
    background: rgba(var(--gm-color-danger-rgb, 255, 119, 119), 0.18) !important;
}
.gm-interface-theme .gm-tag-choice[data-tag-state='include'] {
    border-color: var(--gm-color-success, #70d88c);
}
.gm-interface-theme .gm-tag-choice[data-tag-state='exclude'] {
    border-color: var(--gm-color-danger, #ff7777);
}
.gm-interface-theme .gm-tag-choice.session-tag-unavailable {
    border-color: var(--gm-color-warning, #ffd166);
}
.gm-interface-theme .gm-tag-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    margin: 0 !important;
    overflow-wrap: anywhere;
}
.gm-interface-theme .gm-tag-name {
    display: block;
    font-weight: 700;
    line-height: 1.25;
}
.gm-interface-theme .gm-tag-description {
    display: block;
    color: var(--gm-color-text-muted, #b9b9b9);
    font-size: 0.85em;
    line-height: 1.3;
}
.gm-interface-theme .gm-tag-count {
    display: block;
    color: var(--gm-color-text-muted, #b9b9b9);
    font-size: 0.8em;
    line-height: 1.3;
}
.gm-interface-theme .session-tag-unavailable .gm-tag-count {
    color: var(--gm-color-warning, #ffd166);
}
.gm-interface-theme :is(.gm-tag-included-info, .gm-tag-excluded-info) {
    margin: 8px 0;
    font-size: 0.85em;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.gm-interface-theme .gm-tag-included-info {
    color: var(--gm-color-success, #70d88c);
}
.gm-interface-theme .gm-tag-excluded-info {
    color: var(--gm-color-danger, #ff7777);
}
@media (max-width: 360px) {
    .gm-interface-theme .gm-tag-choice:not(.to-clone) {
        align-items: flex-start !important;
        gap: 8px;
        padding: 8px;
    }
}

/* Device commands distinguish start, restart and stop. */
.gm-interface-theme :is(button, input[type='button'], input[type='submit']):where(.gm-button--info) {
    background: rgba(var(--gm-color-info-rgb, 112, 197, 239), 0.22) !important;
    color: var(--gm-color-text, #ffffff) !important;
    border-color: var(--gm-color-info, #70c5ef) !important;
    border-width: var(--gm-border-width, 2px) !important;
    border-radius: var(--gm-border-radius, 8px) !important;
}
.gm-interface-theme :is(button, input[type='button'], input[type='submit']):where(.gm-button--info):hover:not(:disabled):not([aria-disabled='true']) {
    background: rgba(var(--gm-color-info-rgb, 112, 197, 239), 0.32) !important;
}
.gm-interface-theme .gm-connection-action.gm-button--save {
    --gm-device-command-color: var(--gm-color-success, #70d88c);
    --gm-device-command-rgb: var(--gm-color-success-rgb, 112, 216, 140);
}
.gm-interface-theme .gm-connection-action.gm-button--info {
    --gm-device-command-color: var(--gm-color-info, #70c5ef);
    --gm-device-command-rgb: var(--gm-color-info-rgb, 112, 197, 239);
}
.gm-interface-theme .gm-connection-action.gm-button--danger {
    --gm-device-command-color: var(--gm-color-danger, #ff7777);
    --gm-device-command-rgb: var(--gm-color-danger-rgb, 255, 119, 119);
}
.gm-interface-theme
    button.gm-connection-action:where(.gm-button--save, .gm-button--info, .gm-button--danger):not(:disabled):not([aria-disabled='true']) {
    background: rgba(var(--gm-device-command-rgb), 0.22) !important;
    color: var(--gm-color-text, #ffffff) !important;
    border-color: var(--gm-device-command-color) !important;
}
.gm-interface-theme
    button.gm-connection-action:where(.gm-button--save, .gm-button--info, .gm-button--danger):hover:not(:disabled):not([aria-disabled='true']) {
    background: rgba(var(--gm-device-command-rgb), 0.32) !important;
}

@font-face {
    font-family: 'Avenir';
    src: url(/fonts/Avenir.woff) format('woff');
    font-style: normal;
    font-weight: normal;
    font-display: swap;
}
.gm-theme-preview {
    position: relative;
    display: flex;
    flex-direction: column;
    height: min(800px, 76dvh);
    min-height: 560px;
    min-width: 0;
    overflow: hidden;
    border: var(--gm-border-width) solid var(--gm-color-border-muted);
    border-radius: var(--gm-border-radius);
    box-shadow: 0 12px 36px rgba(var(--gm-color-shadow-rgb), 0.18);
    line-height: 1.45;
    isolation: isolate;
    container-name: gm-preview;
    container-type: inline-size;
}
.gm-theme-preview *,
.gm-theme-preview *::before,
.gm-theme-preview *::after {
    box-sizing: border-box;
}
.gm-theme-preview :is(h1, h2, h3, h4, p) {
    margin: 0 0 12px;
}
.gm-theme-preview h2 {
    font-size: 1.5em;
}
.gm-theme-preview h3 {
    font-size: 1.2em;
}
.gm-theme-preview h4 {
    font-size: 1em;
}
.gm-theme-preview .gm-preview-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.gm-theme-preview button {
    min-height: 44px;
    min-width: 0;
    padding: 10px 16px;
    border: var(--gm-border-width) solid var(--gm-color-border);
    border-radius: var(--gm-border-radius);
    background: var(--gm-color-surface-alt);
    color: var(--gm-color-text);
    font: inherit;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    box-shadow: none;
    overflow-wrap: anywhere;
    white-space: normal;
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease;
}
.gm-theme-preview button:hover:not(:disabled):not(.gm-preview-flag) {
    background-color: var(--gm-color-surface-raised);
}
.gm-theme-preview button:disabled {
    cursor: default;
    box-shadow: none;
}
.gm-theme-preview :is(button, input, select, summary):focus-visible {
    outline: 2px solid var(--gm-color-focus);
    outline-offset: 2px;
}
.gm-theme-preview :is(input, select) {
    min-height: 44px;
    min-width: 0;
    padding: 10px 12px;
    border: var(--gm-border-width) solid var(--gm-color-input-border);
    border-radius: var(--gm-border-radius);
    background: var(--gm-color-input-background);
    color: var(--gm-color-input-text);
    font: inherit;
}
.gm-theme-preview :is(input[type='checkbox'], input[type='range']) {
    min-height: 0;
    padding: 0;
    accent-color: var(--gm-color-accent-border);
}
.gm-theme-preview input[type='checkbox'] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.gm-theme-preview .gm-preview-topbar {
    position: relative;
    z-index: 3;
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: 216px minmax(0, 1fr);
    grid-template-areas: 'status actions' 'menu menu';
    align-items: center;
    gap: 10px 16px;
    min-width: 0;
    padding: 12px;
    border-bottom: var(--gm-border-width) solid var(--gm-color-border-muted);
    background: var(--gm-color-surface);
}
.gm-theme-preview .gm-preview-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    min-width: 0;
    font-size: 0.8em;
}
.gm-theme-preview .gm-preview-update-chips {
    grid-area: status;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}
.gm-theme-preview button.gm-preview-health {
    display: grid;
    grid-template-columns: 20px max-content;
    align-items: center;
    align-content: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    border-color: var(--gm-color-border-muted);
    box-shadow: none;
    font-size: 0.76rem;
    line-height: 1.2;
}
.gm-theme-preview button.gm-preview-health[data-update-state='ok'] {
    --gm-preview-health-color: var(--gm-color-success);
    border-color: var(--gm-color-success);
    background: var(--gm-color-surface-raised);
}
.gm-theme-preview button.gm-preview-health[data-update-state='available'] {
    --gm-preview-health-color: var(--gm-color-warning);
    border-color: var(--gm-color-warning);
    background: var(--gm-color-surface-raised);
}
.gm-theme-preview button.gm-preview-health .gm-status-icon {
    width: 20px;
    min-width: 20px;
    height: 20px;
    margin: 0;
    color: var(--gm-preview-health-color);
}
.gm-theme-preview .gm-preview-health > span {
    min-width: 0;
    overflow-wrap: normal;
    white-space: nowrap;
}
.gm-theme-preview .gm-preview-header-actions {
    grid-area: actions;
    justify-content: flex-end;
}
.gm-theme-preview .gm-preview-header-actions :is(button, select) {
    min-height: 44px;
    padding: 8px 12px;
    box-shadow: none;
}
.gm-theme-preview .gm-preview-header-actions label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.gm-theme-preview .gm-preview-header-actions label > span {
    white-space: nowrap;
}
.gm-theme-preview .gm-preview-header-actions select {
    width: 160px;
    max-width: 100%;
}
.gm-theme-preview .gm-preview-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--gm-color-info);
}
.gm-theme-preview .gm-preview-dot.is-success {
    background: var(--gm-color-success);
}
.gm-theme-preview .gm-preview-dot.is-warning {
    background: var(--gm-color-warning);
}
.gm-theme-preview .gm-preview-dot.is-danger {
    background: var(--gm-color-danger);
}
.gm-theme-preview .gm-preview-mobile-heading {
    display: none;
    grid-area: heading;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.gm-theme-preview .gm-preview-current-page {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9em;
    font-weight: 700;
}
.gm-theme-preview .gm-preview-menu-toggle {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    box-shadow: none;
    font-family: system-ui, sans-serif;
    font-size: 24px;
    line-height: 1;
}
.gm-theme-preview .gm-preview-navigation-panel {
    display: contents;
}
.gm-theme-preview .gm-preview-navigation-label,
.gm-theme-preview .gm-preview-menu-backdrop {
    display: none;
}
.gm-theme-preview .gm-preview-nav {
    grid-area: menu;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-width: 0;
    gap: 8px;
    padding: 0;
}
.gm-theme-preview .gm-preview-nav button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px;
    border-color: var(--gm-color-border-muted);
    background: var(--gm-color-surface-alt);
    box-shadow: none;
    font-size: 0.84em;
    overflow-wrap: anywhere;
}
.gm-theme-preview .gm-preview-nav button.is-active {
    border-color: var(--gm-color-accent-border);
    background: var(--gm-color-accent-background);
    color: var(--gm-color-accent-text);
}
.gm-theme-preview .gm-preview-screen {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    padding: 24px;
    overflow: auto;
    overscroll-behavior: contain;
}
.gm-theme-preview .gm-preview-room-tabs {
    display: none;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    max-width: 100%;
}
.gm-theme-preview .gm-preview-room-tabs button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
}
.gm-theme-preview .gm-preview-room-tabs button[aria-pressed='true'] {
    background: var(--gm-color-accent-background);
    color: var(--gm-color-accent-text);
    border-color: var(--gm-color-accent-border);
}
.gm-theme-preview .gm-preview-rooms {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 580px));
    justify-content: center;
    align-items: start;
    gap: 36px;
}
.gm-theme-preview .gm-preview-room {
    min-width: 0;
    padding: 20px;
    border: var(--gm-border-width) solid var(--gm-color-border-muted);
    border-radius: var(--gm-border-radius);
    box-shadow: var(--gm-ui-shadow-panel);
}
.gm-theme-preview .gm-preview-room-heading {
    position: relative;
    min-height: 44px;
    margin-bottom: 12px;
    text-align: center;
}
.gm-theme-preview .gm-preview-room-heading h2 {
    margin: 0;
    padding: 0 82px;
    font-size: 1.75em;
    overflow-wrap: anywhere;
}
.gm-theme-preview .gm-preview-connection-button {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    padding: 6px;
    border: 0;
    background: transparent;
    font-size: 0.65em;
    box-shadow: none;
}
.gm-theme-preview .gm-preview-connection-button .gm-status-icon {
    width: 32px;
    height: 32px;
}
.gm-theme-preview .gm-preview-centered,
.gm-theme-preview .gm-preview-waiting-heading {
    text-align: center;
}
.gm-theme-preview .gm-preview-setup {
    display: grid;
    gap: 8px;
    max-width: 470px;
    margin: 18px auto;
}
.gm-theme-preview .gm-preview-setup label {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    font-size: 0.95em;
}
.gm-theme-preview .gm-preview-setup select {
    width: 100%;
}
.gm-theme-preview .gm-preview-languages {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 14px 0 18px;
}
/* Language flags and desk selection retain the GM interaction identities. */
.gm-theme-preview .gm-preview-flag {
    width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
    overflow: hidden;
}
.gm-theme-preview .gm-preview-flag.fr {
    background: linear-gradient(90deg, #002395 0% 33.333%, #ffffff 33.333% 66.666%, #ed2939 66.666%);
}
.gm-theme-preview .gm-preview-flag.en {
    background:
        linear-gradient(0deg, transparent 42%, #cf142b 42% 58%, transparent 58%),
        linear-gradient(90deg, transparent 42%, #cf142b 42% 58%, transparent 58%),
        linear-gradient(0deg, transparent 34%, #ffffff 34% 66%, transparent 66%),
        linear-gradient(90deg, transparent 34%, #ffffff 34% 66%, transparent 66%), #00247d;
}
.gm-theme-preview .gm-preview-flag[aria-pressed='true'] {
    border-color: var(--gm-color-focus);
    outline: 2px solid var(--gm-color-focus);
    outline-offset: 2px;
}
.gm-theme-preview .gm-preview-desk-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 470px;
    margin: 18px auto;
}
.gm-theme-preview .gm-preview-desk-grid button {
    min-height: 48px;
}
.gm-theme-preview .gm-preview-desk-grid button[aria-pressed='true']:not(:disabled) {
    background: #00c500;
    color: #ffffff;
}
.gm-theme-preview .gm-preview-attendance {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(96px, 120px);
    align-items: center;
    gap: 8px 12px;
    width: min(100%, 470px);
    margin: 18px auto;
    padding: 10px 12px;
    border: var(--gm-border-width) solid var(--gm-color-border-muted);
    border-radius: var(--gm-border-radius);
    background: var(--gm-color-surface-alt);
    font-size: 0.95em;
}
.gm-theme-preview .gm-preview-attendance > label {
    min-width: 0;
    margin: 0;
    font-weight: 700;
    text-align: left;
}
.gm-theme-preview .gm-preview-attendance > input {
    width: 100%;
    text-align: center;
}
.gm-theme-preview .gm-preview-attendance-feedback {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--gm-color-warning);
    font-size: 0.8em;
}
.gm-theme-preview .gm-preview-session-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: min(100%, 470px);
    margin: 18px auto 0;
}
.gm-theme-preview .gm-preview-session-actions > button {
    flex: 1 1 120px;
    min-height: 44px;
    padding: 8px 12px;
}
.gm-theme-preview .gm-preview-actions,
.gm-theme-preview .gm-preview-table-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}
.gm-theme-preview .gm-preview-room-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
}
.gm-theme-preview .gm-preview-room-summary > div {
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--gm-color-border-muted);
    border-radius: var(--gm-border-radius);
    background: var(--gm-color-surface-alt);
    text-align: center;
}
.gm-theme-preview .gm-preview-room-summary span {
    color: var(--gm-color-text-muted);
    font-size: 0.75em;
}
.gm-theme-preview .gm-preview-room-summary strong {
    font-size: 1.15em;
}
.gm-theme-preview .gm-preview-live-session {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 0;
    margin-bottom: 50px;
}
.gm-theme-preview .gm-preview-live-summary {
    text-align: center;
}
.gm-theme-preview .gm-preview-live-summary h3 {
    margin: 0 0 20px;
    font-size: 1.5em;
}
.gm-theme-preview .gm-preview-live-summary p {
    margin: 0;
    line-height: 1.5;
}
.gm-theme-preview .gm-preview-live-playing {
    width: 100%;
    min-width: 0;
}
.gm-theme-preview .gm-preview-challenge-now {
    min-height: 100px;
    text-align: center;
}
.gm-theme-preview .gm-preview-challenge-now h3 {
    margin: 18px 0 20px;
}
.gm-theme-preview .gm-preview-challenge-now p {
    margin: 0 0 22px;
    font-size: 0.83em;
    font-weight: 700;
}
.gm-theme-preview .gm-preview-live-paused {
    margin: 20px 0;
    text-align: center;
}
.gm-theme-preview .gm-preview-live-actions,
.gm-theme-preview .gm-preview-live-cancel {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
}
.gm-theme-preview .gm-preview-live-cancel {
    margin-top: 20px;
}
.gm-theme-preview .gm-preview-live-actions button,
.gm-theme-preview .gm-preview-live-cancel button {
    min-width: min(150px, 100%);
    max-width: 100%;
    padding: 10px 20px;
}
.gm-theme-preview progress {
    width: 100%;
    height: 10px;
    border: 0;
    border-radius: var(--gm-border-radius);
    overflow: hidden;
    accent-color: var(--gm-color-accent-border);
    background: var(--gm-color-surface-raised);
}
.gm-theme-preview progress::-webkit-progress-bar {
    background: var(--gm-color-surface-raised);
}
.gm-theme-preview progress::-webkit-progress-value {
    background: var(--gm-color-accent-border);
}
.gm-theme-preview progress::-moz-progress-bar {
    background: var(--gm-color-accent-border);
}
.gm-theme-preview .gm-preview-score-rows > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 300px;
    max-width: 100%;
    min-height: 22px;
    padding: 10px 20px;
    margin: 0 auto 20px;
    border: var(--gm-border-width) solid var(--gm-color-border);
    border-radius: var(--gm-border-radius);
    background: var(--gm-color-surface-alt);
    color: var(--gm-color-input-text);
    box-shadow: 0 2px 8px rgba(var(--gm-color-shadow-rgb), 0.1);
    font-weight: 700;
}
.gm-theme-preview .gm-preview-score-rows > div > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}
.gm-theme-preview .gm-preview-score-rows > div > span:last-child {
    flex-shrink: 0;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.gm-theme-preview .gm-preview-player-number {
    color: var(--gm-color-text-muted);
    font-size: 0.85em;
    font-variant-numeric: tabular-nums;
}
.gm-theme-preview .gm-preview-waiting-heading h3 {
    margin: 12px 0 8px;
}
.gm-theme-preview .gm-preview-connected-count {
    margin: 18px 0 12px;
    text-align: center;
}
.gm-theme-preview .gm-preview-waiting-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.gm-theme-preview .gm-preview-waiting-desk {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 74px;
    padding: 10px;
    border: var(--gm-border-width) solid var(--gm-color-border-muted);
    border-radius: var(--gm-border-radius);
    background: var(--gm-color-surface-alt);
}
.gm-theme-preview .gm-preview-waiting-desk > div {
    display: grid;
    gap: 4px;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 0.75em;
}
.gm-theme-preview .gm-preview-waiting-desk.is-filled {
    border-color: #38642f;
    color: #70cd5d;
}
.gm-theme-preview .gm-preview-waiting-desk.is-waiting {
    border-color: #967837;
    color: #e5bd67;
}
.gm-theme-preview .gm-preview-waiting-desk.is-unused {
    color: var(--gm-color-text-subtle);
    opacity: 0.65;
}
.gm-theme-preview button.gm-preview-join {
    min-height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-align: left;
    box-shadow: none;
}
.gm-theme-preview .gm-preview-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}
.gm-theme-preview .gm-preview-page-header h2 {
    margin: 4px 0 0;
}
.gm-theme-preview .gm-preview-eyebrow {
    color: var(--gm-color-text-subtle);
    font-size: 0.75em;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.gm-theme-preview .gm-preview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.gm-theme-preview .gm-preview-stats > article {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: var(--gm-border-width) solid var(--gm-color-border-muted);
    border-radius: var(--gm-border-radius);
    background: var(--gm-color-surface);
    box-shadow: 0 2px 8px rgba(var(--gm-color-shadow-rgb), 0.1);
}
.gm-theme-preview .gm-preview-stats span {
    color: var(--gm-color-text-muted);
    font-size: 0.8em;
}
.gm-theme-preview .gm-preview-stats strong {
    font-size: 1.4em;
}
.gm-theme-preview .gm-preview-filters {
    margin-bottom: 18px;
    padding: 14px;
    border: var(--gm-border-width) solid var(--gm-color-border-muted);
    border-radius: var(--gm-border-radius);
    background: var(--gm-color-surface-alt);
}
.gm-theme-preview summary {
    cursor: pointer;
}
.gm-theme-preview .gm-preview-filters > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 14px;
}
.gm-theme-preview .gm-preview-filters label {
    display: grid;
    gap: 6px;
    font-size: 0.8em;
}
.gm-theme-preview .gm-preview-table-wrap {
    min-width: 0;
    overflow: auto;
    border: var(--gm-border-width) solid var(--gm-color-border-muted);
    border-radius: var(--gm-border-radius);
    background: var(--gm-color-surface);
}
.gm-theme-preview table {
    width: 100%;
    min-width: 570px;
    border-collapse: collapse;
    font-size: 0.85em;
}
.gm-theme-preview :is(th, td) {
    padding: 12px;
    border-bottom: 1px solid var(--gm-color-border-muted);
    text-align: left;
    vertical-align: middle;
}
.gm-theme-preview th {
    background: var(--gm-color-surface-raised);
    font-weight: 700;
}
.gm-theme-preview tbody tr:hover {
    background: var(--gm-color-selection);
}
.gm-theme-preview tr:last-child td {
    border-bottom: 0;
}
.gm-theme-preview .gm-preview-table-actions {
    justify-content: flex-start;
    gap: 6px;
    margin: 0;
}
.gm-theme-preview .gm-preview-table-actions button {
    padding: 8px 10px;
    font-size: 0.85em;
}
.gm-theme-preview button.gm-preview-table-link {
    min-height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--gm-color-accent-text);
    box-shadow: none;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.gm-theme-preview .gm-preview-empty {
    margin: 0;
    padding: 20px;
    color: var(--gm-color-text-subtle);
    text-align: center;
}
.gm-theme-preview .gm-preview-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--gm-color-success);
    font-size: 0.8em;
}
.gm-theme-preview .gm-preview-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border: 1px solid currentColor;
    border-radius: var(--gm-border-radius);
    color: var(--gm-color-info);
    font-size: 0.85em;
    white-space: nowrap;
}
.gm-theme-preview .gm-preview-status.is-pending,
.gm-theme-preview .gm-preview-warning {
    color: var(--gm-color-warning);
}
.gm-theme-preview .gm-preview-status.is-delivered,
.gm-theme-preview .gm-preview-status.is-completed,
.gm-theme-preview .gm-preview-success {
    color: var(--gm-color-success);
}
.gm-theme-preview .gm-preview-status.is-paid {
    color: var(--gm-color-info);
}
.gm-theme-preview .gm-preview-status.is-canceled {
    color: var(--gm-color-danger);
}
.gm-theme-preview .gm-preview-muted {
    color: var(--gm-color-text-muted);
    font-size: 0.8em;
}
.gm-theme-preview .gm-preview-notice {
    padding: 12px 14px;
    border: 1px solid var(--gm-color-info);
    border-radius: var(--gm-border-radius);
    background: var(--gm-color-surface-raised);
    color: var(--gm-color-info);
    font-size: 0.9em;
}
.gm-theme-preview .gm-preview-notice.is-warning {
    border-color: var(--gm-color-warning);
    color: var(--gm-color-warning);
}
.gm-theme-preview .gm-preview-notice.is-success {
    border-color: var(--gm-color-success);
    color: var(--gm-color-success);
}
.gm-theme-preview .gm-preview-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.gm-theme-preview .gm-preview-media-card {
    min-width: 0;
    padding: 16px;
    border: var(--gm-border-width) solid var(--gm-color-border-muted);
    border-radius: var(--gm-border-radius);
    background: var(--gm-color-surface);
}
.gm-theme-preview .gm-preview-media-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.gm-theme-preview .gm-preview-media-heading h3 {
    margin: 0;
}
.gm-theme-preview .gm-preview-media-file {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--gm-color-border-muted);
    border-radius: var(--gm-border-radius);
    background: var(--gm-color-surface-alt);
    color: var(--gm-color-text-subtle);
    font-size: 0.8em;
    overflow-wrap: anywhere;
}
.gm-theme-preview .gm-preview-media-player {
    display: grid;
    grid-template-columns: auto minmax(50px, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    font-size: 0.75em;
}
.gm-theme-preview .gm-preview-volume {
    display: grid;
    gap: 8px;
    margin: 16px 0;
    font-size: 0.85em;
}
.gm-theme-preview .gm-preview-volume input {
    width: 100%;
}
.gm-interface-theme.gm-theme-preview .gm-preview-modal-root {
    position: absolute !important;
    inset: 0;
    z-index: 10;
}
.gm-interface-theme.gm-theme-preview .gm-preview-modal-root .MuiBackdrop-root {
    position: absolute !important;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(var(--gm-color-shadow-rgb), 0.65);
}
.gm-interface-theme.gm-theme-preview .gm-preview-modal-root .MuiDialog-container {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center !important;
    justify-content: center;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none;
}
.gm-interface-theme.gm-theme-preview .gm-preview-modal-root .gm-preview-modal {
    display: flex;
    flex-direction: column;
    width: min(640px, calc(100% - 16px)) !important;
    max-width: min(640px, calc(100% - 16px)) !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: calc(100% - 16px) !important;
    min-height: 0;
    margin: 8px !important;
    border: var(--gm-border-width) solid var(--gm-color-border);
    border-radius: var(--gm-border-radius) !important;
    background: var(--gm-color-surface);
    color: var(--gm-color-text);
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    box-shadow: var(--gm-ui-shadow-dialog);
    overflow: hidden;
    pointer-events: auto;
}
.gm-theme-preview .gm-preview-modal-header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--gm-color-border-muted);
}
.gm-theme-preview .gm-preview-modal-header :is(h2, h3) {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 1.25em;
}
.gm-theme-preview .gm-preview-modal-header > div {
    min-width: 0;
}
.gm-theme-preview .gm-preview-modal-header button {
    width: 44px;
    height: 44px;
    min-height: 44px;
    flex: 0 0 auto;
    padding: 0;
}
.gm-theme-preview .gm-preview-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 20px;
    overflow: auto;
    overscroll-behavior: contain;
}
.gm-theme-preview .gm-preview-modal-body > :last-child {
    margin-bottom: 0;
}
.gm-theme-preview .gm-preview-modal-footer {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--gm-color-border-muted);
}
.gm-theme-preview .gm-preview-modal-footer button {
    flex: 0 1 auto;
    min-height: 44px;
    max-width: 100%;
}
.gm-theme-preview .gm-preview-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0;
    font-size: 0.9em;
}
.gm-theme-preview .gm-preview-challenges {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 24px;
}
.gm-theme-preview .gm-preview-challenges button {
    min-height: 50px;
    font-size: 0.85em;
}
.gm-theme-preview .gm-preview-challenges button[aria-pressed='true']:not(:disabled) {
    background: #c50000;
    color: #ffffff;
}
.gm-theme-preview .gm-preview-connection-room {
    display: block;
    margin-bottom: 4px;
    color: var(--gm-color-accent-text);
    font-size: 0.85em;
}
.gm-theme-preview .gm-preview-connection-row {
    display: grid;
    grid-template-columns: minmax(105px, 0.75fr) minmax(0, 1.5fr) 148px;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 8px 2px;
    border-bottom: 1px solid var(--gm-color-border-muted);
}
.gm-theme-preview .gm-preview-connection-row > strong {
    min-width: 0;
    font-size: 0.9em;
    overflow-wrap: anywhere;
}
.gm-theme-preview .gm-preview-connection-state {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 0.85em;
}
.gm-theme-preview .gm-preview-connection-state.is-success {
    color: var(--gm-color-success);
}
.gm-theme-preview .gm-preview-connection-state.is-warning {
    color: var(--gm-color-warning);
}
.gm-theme-preview .gm-preview-connection-state.is-danger {
    color: var(--gm-color-danger);
}
.gm-theme-preview .gm-preview-connection-state .gm-status-icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
}
.gm-theme-preview .gm-preview-connection-actions {
    display: grid;
    grid-template-columns: repeat(3, 44px);
    gap: 8px;
}
.gm-theme-preview .gm-preview-connection-actions button {
    width: 44px;
    height: 44px;
    padding: 0;
}
.gm-theme-preview .gm-preview-connection-actions button[data-action='start'] {
    grid-column: 1;
}
.gm-theme-preview .gm-preview-connection-actions button[data-action='restart'] {
    grid-column: 2;
}
.gm-theme-preview .gm-preview-connection-actions button[data-action='stop'] {
    grid-column: 3;
}
.gm-theme-preview .gm-preview-connection-bulk {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 14px 20px;
    border-top: 1px solid var(--gm-color-border-muted);
}
.gm-theme-preview .gm-preview-connection-bulk > section {
    min-width: 0;
}
.gm-theme-preview .gm-preview-connection-bulk h3 {
    margin: 0 0 8px;
    color: var(--gm-color-text-subtle);
    font-size: 0.76em;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.gm-theme-preview .gm-preview-connection-bulk > section > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.gm-theme-preview .gm-preview-connection-bulk button {
    padding: 8px;
    font-size: 0.8em;
}
.gm-theme-preview .gm-preview-update-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.gm-theme-preview .gm-preview-update-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border: 1px solid currentColor;
    border-radius: var(--gm-border-radius);
    background: var(--gm-color-surface-raised);
    font-size: 0.85em;
}
.gm-theme-preview .gm-preview-update-badge[data-update-state='ok'] {
    color: var(--gm-color-success);
}
.gm-theme-preview .gm-preview-update-badge[data-update-state='available'] {
    color: var(--gm-color-warning);
}
.gm-theme-preview .gm-preview-update-details dl {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-bottom: 0;
}
.gm-theme-preview .gm-preview-update-details dt {
    color: var(--gm-color-text-muted);
}
.gm-theme-preview .gm-preview-update-details dd {
    margin: 0;
}
.gm-theme-preview .gm-preview-footer {
    flex: 0 0 auto;
    max-height: 42%;
    overflow: auto;
    border-top: var(--gm-border-width) solid var(--gm-color-border-muted);
    background: var(--gm-color-surface-alt);
}
.gm-theme-preview .gm-preview-footer > span {
    display: block;
    padding: 10px 20px 0;
    color: var(--gm-color-text-subtle);
    font-size: 0.75em;
}
.gm-theme-preview .gm-preview-role-states {
    background: var(--gm-color-surface-alt);
}
.gm-theme-preview .gm-preview-role-states > summary {
    padding: 12px 20px;
    color: var(--gm-color-text-muted);
    font-size: 0.8em;
    overflow-wrap: anywhere;
}
.gm-theme-preview .gm-preview-role-states > div {
    padding: 0 16px 16px;
}
.gm-theme-preview .gm-preview-state-row {
    display: grid;
    grid-template-columns: minmax(90px, 1fr) repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.8em;
}
.gm-theme-preview .gm-preview-state-row button {
    min-width: 0;
    min-height: 36px;
    padding: 7px 5px;
    font-size: inherit;
    overflow-wrap: anywhere;
}
.gm-theme-preview button.gm-button--primary[data-preview-state='hover'] {
    background: var(--gm-button-primary-hover-background) !important;
    color: var(--gm-button-primary-hover-text) !important;
    border-color: var(--gm-button-primary-hover-border) !important;
}
.gm-theme-preview button.gm-button--secondary[data-preview-state='hover'] {
    background: var(--gm-button-secondary-hover-background) !important;
    color: var(--gm-button-secondary-hover-text) !important;
    border-color: var(--gm-button-secondary-hover-border) !important;
}
.gm-theme-preview button.gm-button--save[data-preview-state='hover'] {
    background: var(--gm-button-save-hover-background) !important;
    color: var(--gm-button-save-hover-text) !important;
    border-color: var(--gm-button-save-hover-border) !important;
}
.gm-theme-preview button.gm-button--close[data-preview-state='hover'] {
    background: var(--gm-button-close-hover-background) !important;
    color: var(--gm-button-close-hover-text) !important;
    border-color: var(--gm-button-close-hover-border) !important;
}
.gm-theme-preview button.gm-button--danger[data-preview-state='hover'] {
    background: var(--gm-button-danger-hover-background) !important;
    color: var(--gm-button-danger-hover-text) !important;
    border-color: var(--gm-button-danger-hover-border) !important;
}
.gm-theme-preview ::selection {
    background: var(--gm-color-selection);
}
.gm-theme-preview * {
    scrollbar-color: var(--gm-color-scrollbar) var(--gm-color-scrollbar-track);
}
@media (max-height: 480px) {
    .gm-theme-preview .gm-preview-screen,
    .gm-theme-preview .gm-preview-footer {
        overscroll-behavior-y: auto;
    }
}
@container gm-preview (max-width: 960px) {
    .gm-theme-preview .gm-preview-mobile-heading {
        display: flex;
    }
    .gm-theme-preview .gm-preview-topbar {
        grid-template-columns: minmax(0, 1fr) 132px;
        grid-template-areas: 'heading status';
        gap: 10px;
        padding: 10px;
    }
    .gm-theme-preview button.gm-preview-health {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        gap: 2px;
        padding: 5px 4px;
        font-size: 0.69rem;
    }
    .gm-theme-preview .gm-preview-update-chips {
        gap: 6px;
    }
    .gm-theme-preview .gm-preview-navigation-panel {
        position: absolute;
        top: calc(100% + 8px);
        right: 10px;
        left: 10px;
        z-index: 4;
        display: none;
        flex-direction: column;
        gap: 12px;
        max-height: min(320px, calc(100dvh - 180px));
        min-height: 0;
        padding: 14px;
        overflow: auto;
        overscroll-behavior: contain;
        border: var(--gm-border-width) solid var(--gm-color-border);
        border-radius: var(--gm-border-radius);
        background: var(--gm-color-surface);
        box-shadow: var(--gm-ui-shadow-dialog);
    }
    .gm-theme-preview .gm-preview-navigation-panel[data-open='true'] {
        display: flex;
    }
    .gm-theme-preview .gm-preview-navigation-label {
        display: block;
        color: var(--gm-color-text-subtle);
        font-size: 0.7em;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }
    .gm-theme-preview .gm-preview-menu-backdrop {
        position: absolute;
        inset: 0;
        z-index: 2;
        display: block;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: rgba(var(--gm-color-shadow-rgb), 0.55);
    }
    .gm-theme-preview .gm-preview-menu-backdrop:hover:not(:disabled) {
        background: rgba(var(--gm-color-shadow-rgb), 0.55);
    }
    .gm-theme-preview .gm-preview-nav {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .gm-theme-preview .gm-preview-nav button {
        min-height: 44px;
        justify-content: flex-start;
        text-align: left;
    }
    .gm-theme-preview .gm-preview-header-actions {
        justify-content: flex-start;
        gap: 10px;
        padding-top: 14px;
        border-top: 1px solid var(--gm-color-border-muted);
    }
    .gm-theme-preview .gm-preview-header-actions label {
        display: grid;
        flex: 1 1 160px;
        gap: 6px;
    }
    .gm-theme-preview .gm-preview-header-actions label > span {
        white-space: normal;
    }
    .gm-theme-preview .gm-preview-header-actions select {
        width: 100%;
    }
    .gm-theme-preview .gm-preview-header-actions > button {
        align-self: flex-end;
    }
    .gm-theme-preview .gm-preview-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@container gm-preview (max-width: 900px) {
    .gm-theme-preview .gm-preview-room-tabs {
        display: flex;
    }
    .gm-theme-preview .gm-preview-rooms {
        grid-template-columns: minmax(0, 580px);
        gap: 20px;
    }
    .gm-theme-preview .gm-preview-room[data-active='false'] {
        display: none;
    }
    .gm-theme-preview .gm-preview-screen {
        padding: 18px;
    }
}
@container gm-preview (max-width: 600px) {
    .gm-theme-preview .gm-preview-connection-row {
        grid-template-columns: minmax(0, 1fr) 148px;
        gap: 8px 12px;
    }
    .gm-theme-preview .gm-preview-connection-state {
        grid-column: 1 / -1;
        grid-row: 2;
    }
    .gm-theme-preview .gm-preview-connection-actions {
        grid-column: 2;
        grid-row: 1;
    }
    .gm-theme-preview .gm-preview-connection-bulk {
        grid-template-columns: minmax(0, 1fr);
    }
}
@container gm-preview (max-width: 480px) {
    .gm-theme-preview .gm-preview-header-actions {
        flex: 1 1 auto;
        gap: 6px;
    }
    .gm-theme-preview .gm-preview-header-actions label {
        gap: 5px;
    }
    .gm-theme-preview .gm-preview-header-actions :is(button, select) {
        padding: 7px 9px;
        font-size: 0.9em;
    }
    .gm-theme-preview .gm-preview-screen {
        padding: 12px;
    }
    .gm-theme-preview .gm-preview-room {
        padding: 14px;
    }
    .gm-theme-preview .gm-preview-room-heading h2 {
        padding: 0 44px;
        font-size: 1.5em;
    }
    .gm-theme-preview .gm-preview-connection-button {
        width: 44px;
        height: 44px;
        justify-content: center;
    }
    .gm-theme-preview .gm-preview-setup label {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .gm-theme-preview .gm-preview-setup {
        gap: 12px;
    }
    .gm-theme-preview .gm-preview-attendance {
        grid-template-columns: minmax(0, 1fr) 96px;
    }
    .gm-theme-preview .gm-preview-waiting-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .gm-theme-preview .gm-preview-media-grid,
    .gm-theme-preview .gm-preview-filters > div {
        grid-template-columns: minmax(0, 1fr);
    }
    .gm-theme-preview .gm-preview-challenges {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .gm-theme-preview .gm-preview-state-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .gm-theme-preview .gm-preview-state-row > span {
        grid-column: 1 / -1;
    }
    .gm-theme-preview .gm-preview-modal-header,
    .gm-theme-preview .gm-preview-modal-body,
    .gm-theme-preview .gm-preview-modal-footer,
    .gm-theme-preview .gm-preview-connection-bulk {
        padding: 14px;
    }
    .gm-theme-preview .gm-preview-modal-footer button {
        flex: 1 1 130px;
    }
}

