.wpt {
    --wpt-background: #111c2e;
    --wpt-text: #f7fafc;
    --wpt-accent: #64e0cf;
    display: flex;
    align-items: stretch;
    background: var(--wpt-background);
    color: var(--wpt-text);
    border-block-start: 3px solid var(--wpt-accent);
    font: 600 clamp(1.125rem, 2vw, 2rem)/1.4 system-ui, sans-serif;
}

.wpt .wpt__pause {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .75rem 1rem;
    font-size: .875rem;
    border-inline-end: 1px solid #455469;
    cursor: pointer;
}

.wpt .wpt__window {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.wpt .wpt__track {
    display: flex;
    width: max-content;
    min-width: 200%;
    animation: wpt-scroll var(--wpt-duration) linear infinite;
}

.wpt ul.wpt__group {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 2.5rem;
    margin: 0;
    padding: .65em 1.25rem;
    list-style: none;
    white-space: nowrap;
}

.wpt .wpt__group li {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin: 0;
}

.wpt .wpt__group li::before {
    content: "";
    width: .3em;
    height: .3em;
    border-radius: 50%;
    background: var(--wpt-accent);
}

.wpt:has(.wpt__pause input:checked) .wpt__track {
    animation-play-state: paused;
}

@keyframes wpt-scroll {
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .wpt .wpt__pause,
    .wpt .wpt__group[aria-hidden="true"] {
        display: none;
    }

    .wpt .wpt__window {
        overflow-x: auto;
    }

    .wpt .wpt__track {
        min-width: 100%;
        animation: none;
    }
}

.wpt[hidden] {
    display: none;
}

body.wpt-screen {
    margin: 0;
    background: #080e19;
}

.wpt-screen .wpt-screen__content {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
}

.wpt .wpt__clock {
    display: flex;
    align-items: center;
    flex: none;
    padding-inline: clamp(.65rem, 2vw, 1.6rem);
    border-inline-start: 1px solid #455469;
    color: var(--wpt-accent);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

body.wpt-screen .wpt-screen__content:has(.wpt-screen__main) {
    height: 100vh;
    height: 100dvh;
}

.wpt-screen__content > .wpt {
    flex: none;
}

.wpt-slides {
    flex: 1 1 0;
    min-height: 0;
    display: grid;
    place-items: center start;
    overflow: hidden;
    container-type: size;
}

.wpt-slides__frame {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

@supports (width: 1cqh) {
    .wpt-slides__frame {
        width: min(100cqw, calc(100cqh * 16 / 9));
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

.wpt-slides__frame > img,
.wpt-slides__frame > video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

.wpt-screen__main {
    display: grid;
    flex: 1 1 0;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
}

.wpt-screen__main--agenda {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.wpt-screen__media {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

.wpt-agenda {
    box-sizing: border-box;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    padding: clamp(1rem, 2.4vw, 3rem);
    background: #111c2e;
    color: #f7fafc;
    border-inline-start: 1px solid #455469;
    overflow-wrap: anywhere;
    font: 400 clamp(1rem, 1.2vw, 1.4375rem)/1.25 system-ui, sans-serif;
}

.wpt-agenda h1 {
    margin: 0 0 .45em;
    color: inherit;
    font: 700 clamp(1.4rem, 2.4vw, 2.75rem)/1.1 system-ui, sans-serif;
}

.wpt-agenda__scroll {
    overflow: auto;
    scrollbar-width: none;
}

.wpt-agenda__scroll::-webkit-scrollbar {
    display: none;
}

.wpt-agenda ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wpt-agenda li {
    display: grid;
    gap: .15em;
    margin: 0;
    padding: .4em 0;
    border-block-start: 1px solid #455469;
}

.wpt-agenda__details {
    font-size: .82em;
    color: #c4d1df;
}

.wpt-agenda__date {
    color: #64e0cf;
    font-weight: 600;
}


@media (max-width: 650px) {
    .wpt-screen__main--agenda {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    }

    .wpt-screen__main--agenda:not(:has(.wpt-slides)) {
        grid-template-rows: 0 minmax(0, 1fr);
    }

    .wpt-agenda {
        border-inline-start: 0;
    }
}
