html,
body {
    min-height: 100%;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(40, 165, 245, 0.16), transparent 30%),
        radial-gradient(circle at bottom right, rgba(30, 135, 240, 0.1), transparent 25%),
        linear-gradient(180deg, #f7fbfe 0%, #eef3f7 100%);
}

body {
    color: #1f2933;
}

.tm-navbar-container {
    background: linear-gradient(135deg, #28a5f5, #1e87f0) !important;
    box-shadow: 0 10px 30px rgba(30, 135, 240, 0.18);
}

.uk-logo,
.uk-logo:hover,
.uk-logo:active,
.uk-logo:visited {
    color: #ffffff;
}

.toolbarButton {
    min-height: auto !important;
    padding: 0 12px !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
}

.menuButton {
    min-height: 80px !important;
}

.menuInfoItem {
    white-space: nowrap;
    padding: 5px 0;
    color: #6b7280;
}

.section-shell {
    padding-top: 32px;
    padding-bottom: 32px;
}

.page-container {
    max-width: 1680px;
}

.panel-card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
}

.hero-card {
    overflow: hidden;
}

.eyebrow {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    color: #1e87f0;
    font-weight: 700;
}

.room-subtitle {
    max-width: 28rem;
}

.hero-stat-grid {
    margin-top: 22px;
}

.stat-card {
    height: 100%;
    padding: 14px 16px;
    margin-bottom: 8px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.95));
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.stat-card strong {
    display: block;
    margin-top: 6px;
    color: #111827;
    word-break: break-word;
}

.status-text-soft {
    color: #64748b !important;
}

.stat-label {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.control-card {
    margin-top: 24px;
}

.device-card {
    margin-top: 24px;
}

.card-header,
.list-toolbar {
    gap: 16px;
}

.action-grid {
    margin-top: 18px;
}

.device-select-block {
    margin-top: 18px;
}

.toggle-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.95));
}

.toggle-option .uk-checkbox {
    flex: 0 0 18px;
    width: 18px;
    min-width: 18px;
    height: 18px;
    margin: 0;
}

.toggle-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #475569;
    font-size: 0.84rem;
}

.toggle-copy strong {
    color: #0f172a;
    font-size: 0.95rem;
}

.toggle-copy small {
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.45;
}

.action-button-full {
    width: 100%;
}

.device-settings-body[hidden] {
    display: none;
}

.audio-processing-group {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.status-stack {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.status-banner {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.95));
    color: #475569;
}

.warning-banner {
    border-color: rgba(240, 173, 78, 0.24);
    background: linear-gradient(180deg, rgba(255, 247, 237, 0.96), rgba(255, 251, 235, 0.98));
    color: #9a5a00;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.participant-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.participant-card-local {
    border-color: rgba(30, 135, 240, 0.25);
}

.participant-media {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 12px;
    background:
        linear-gradient(135deg, rgba(219, 234, 254, 0.75), rgba(255, 255, 255, 0.96)),
        #eff6ff;
    border: 1px solid rgba(148, 163, 184, 0.5);
}

.participant-media video,
.media-fallback {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.45);
}

.participant-media video {
    display: block;
    object-fit: contain;
    object-position: center center;
    background: #0f172a;
}

.participant-media.participant-media-zoomed video {
    object-fit: cover;
}

.participant-media video:fullscreen {
    width: 100vw;
    height: 100vh;
    border: none;
    border-radius: 0;
    background: #000000;
    object-fit: contain;
}

.participant-media.participant-media-zoomed video:fullscreen {
    object-fit: cover;
}

.video-mirrored {
    transform: scaleX(-1);
}

.media-fallback {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top, rgba(30, 135, 240, 0.18), transparent 42%),
        linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(226, 232, 240, 0.98));
    color: #1e3a5f;
    font-size: clamp(30px, 6vw, 56px);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.participant-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.participant-name {
    margin: 0 0 4px;
    color: #0f172a;
    font-size: 1.05rem;
}

.participant-id,
.participant-status {
    margin: 0;
    color: #64748b;
    font-size: 0.84rem;
}

.participant-status {
    margin-top: auto;
}

.participant-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.participant-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.participant-action {
    flex: 1 1 auto;
}

.participant-refresh {
    flex-shrink: 0;
    white-space: nowrap;
}

.participant-action-active {
    background: rgba(30, 135, 240, 0.12);
    border-color: rgba(30, 135, 240, 0.3);
    color: #1e5fbf;
}

.device-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    white-space: nowrap;
}

.device-chip-active {
    background: rgba(50, 210, 150, 0.14);
    color: #0f9f6e;
}

.device-chip-muted {
    background: rgba(240, 80, 110, 0.12);
    color: #c81e4d;
}

@media (max-width: 959px) {

    .control-card,
    .device-card {
        margin-top: 20px;
    }
}

@media (max-width: 639px) {
    .section-shell {
        padding-top: 18px;
    }

    .panel-card {
        border-radius: 16px;
    }

    .participant-meta,
    .list-toolbar,
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .participant-badges {
        justify-content: flex-start;
    }
}