/* GreppooTalk: colors drawn from the supplied Greppoo logo. */
:root {
    --greppoo-blue: #54849c;
    --greppoo-orange: #f58b27;
    --greppoo-ink: #102936;
    --body-bg: linear-gradient(145deg, #102936, #183c4d);
    --btns-bg-color: #244b60;
    --select-bg: #183c4d;
    --select-focus-color: #f58b27;
    --settings-bg: #102936;
    --msger-bg: #102936;
    --tab-btn-active: #315d73;
    --right-msg-bg: #315d73;
    --left-msg-bg: #183c4d;
}
body {
    background: var(--body-bg);
}
.body-wrap {
    background: transparent;
}
.header-logo-image {
    width: 190px;
    height: auto;
    max-width: 48vw;
    object-fit: contain;
}
.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.site-header-inner .header-brand {
    order: -1;
}
.api-nav {
    color: #c5e0ee;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
}
.api-nav:hover,
.feature-title a:hover {
    color: #f8ae68;
}
.feature-title a {
    color: #c5e0ee;
    text-decoration: underline;
    text-underline-offset: 5px;
}
.button-primary,
#joinRoomButton,
#joinRoomButton:hover,
.cr-submit {
    background: #f58b27;
    color: #102936;
    border-color: #f58b27;
    font-weight: 700;
}
.button-primary:hover,
.cr-submit:hover {
    background: #ffad60;
    color: #102936;
}
#customizeRoomButton {
    background: #315d73;
    color: #fff;
    border: 1px solid #7fa8bd;
}
#appTitle {
    font-size: clamp(32px, 4.5vw, 56px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}
.hero-paragraph,
#appDescription {
    color: #c3d7e1;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid #f58b27;
    outline-offset: 3px;
}
.camera-switch-label {
    display: block;
    font-size: 11px;
    line-height: 1.1;
    margin-top: 3px;
}
#swapCameraButton {
    color: #ffd2a8;
}
#swapCameraButton[aria-busy='true'] {
    opacity: 0.65;
    cursor: wait;
}
@media (max-width: 760px), (pointer: coarse) {
    .button,
    #joinRoomButton,
    #customizeRoomButton,
    .cr-card button,
    .swal2-actions button {
        min-height: 52px;
        font-size: 16px;
    }
    input:not([type='checkbox']):not([type='range']),
    select,
    textarea {
        font-size: 16px;
    }
    #bottomButtons {
        width: calc(100% - 16px);
        max-width: 640px;
        box-sizing: border-box;
        top: auto !important;
        bottom: max(8px, env(safe-area-inset-bottom)) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin-bottom: 0;
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px;
        background: rgba(16, 41, 54, 0.96);
        box-shadow: 0 8px 32px #0006;
    }
    #bottomButtons > button,
    #bottomButtons .split-btn > button,
    #bottomButtons .split-btn > .dropdown > button {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px;
        min-height: 56px;
        padding: 8px;
        font-size: 23px !important;
    }
    #bottomButtons .split-btn > .dropdown > .device-dropdown-toggle {
        width: 44px !important;
        min-width: 44px;
    }
    #bottomButtons .dropdown-menu {
        max-width: calc(100vw - 32px);
    }
    #bottomButtons .dropdown-menu button {
        min-height: 48px;
    }
    .videoMenuBar button,
    #initVideoButtons button {
        min-width: 48px;
        min-height: 48px;
    }
    .site-header {
        padding: 20px 0;
    }
    .hero {
        padding-top: 28px;
    }
}
/* API guide */
.api-guide {
    color: #e6f1f6;
    font:
        16px/1.7 system-ui,
        sans-serif;
}
.api-guide main,
.api-guide header {
    max-width: 1000px;
    margin: auto;
    padding: 24px;
}
.api-guide header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.api-guide a {
    color: #b8dcec;
}
.api-guide h1 {
    font-size: clamp(32px, 6vw, 54px);
    line-height: 1.1;
}
.api-guide h2 {
    color: #f8ae68;
    margin-top: 48px;
}
.api-guide pre {
    background: #0a1d27;
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 14px;
}
.api-guide table {
    width: 100%;
    border-collapse: collapse;
}
.api-guide th,
.api-guide td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #54849c66;
    vertical-align: top;
}
.api-guide .table-scroll {
    overflow-x: auto;
}
.api-guide .guide-link {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 10px;
    background: #f58b27;
    color: #102936;
    font-weight: 700;
}

.site-header {
    position: relative;
    z-index: 2;
}
.site-header::before,
.hero-figure {
    pointer-events: none;
}
.api-nav {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 8px 12px;
}

body.is-boxed,
body.is-boxed .body-wrap {
    background: var(--body-bg);
}
.hero-figure-box-01,
.hero-figure-box-02,
.hero-figure-box-03 {
    background: linear-gradient(135deg, #f58b27, #a9570b);
}
@media (max-width: 760px) {
    .hero-figure {
        display: none;
    }
    .hero {
        padding-bottom: 20px;
    }
    .api-guide header {
        flex-wrap: wrap;
    }
    .api-guide main {
        overflow-wrap: anywhere;
    }
}
.beauty-controls { border: 1px solid #54849c; border-radius: 12px; padding: 16px; margin: 16px 0; }
.beauty-controls label { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.beauty-controls input[type=checkbox] { width: 24px; height: 24px; accent-color: #f58b27; }
.beauty-controls input[type=range] { width: 100%; min-height: 48px; accent-color: #f58b27; }
.beauty-controls video { display: block; width: 100%; max-height: 240px; background: #102936; border-radius: 8px; }
.beauty-controls p { font-size: 14px; line-height: 1.5; }

.beauty-controls video[hidden] { display: none; }
@media (pointer: coarse) {
    #mySettings, #mySettings * {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        animation: none !important;
        transition: none !important;
    }
    #mySettings { background: #102936; }
}
