/* Slide to Confirm (slide-to-confirm.js): a plain-CSS port of KokonutUI's Slide to Confirm (MIT). Colours come from
   custom properties, so a page can tint it: --stc-ink is the trail behind the thumb (red when ending a live). */
.stc{--stc-track:#18181b;--stc-line:#27272a;--stc-text:#a1a1aa;--stc-ink:#f4f4f5;--stc-ink-text:#18181b;--stc-done:#10b981;--stc-done-text:#022c22;--stc-thumb:#27272a;--stc-thumb-text:#f4f4f5;position:relative;width:100%;max-width:24rem;user-select:none;-webkit-user-select:none}
:root.light .stc{--stc-track:#f4f4f5;--stc-line:#e4e4e7;--stc-text:#71717a;--stc-ink:#18181b;--stc-ink-text:#fff;--stc-done:#059669;--stc-done-text:#fff;--stc-thumb:#fff;--stc-thumb-text:#18181b}
.stc-track{position:relative;height:56px;overflow:hidden;box-sizing:border-box;border:1px solid var(--stc-line);border-radius:999px;background:var(--stc-track)}
.stc-track[data-disabled]{opacity:.5}
.stc-label{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding-left:24px;white-space:nowrap;font-size:14px;font-weight:500;color:var(--stc-text)}
.stc-fill{position:absolute;inset:0;opacity:0;background:var(--stc-ink);transition:background-color .3s ease-out}
.stc[data-phase="done"] .stc-fill{background:var(--stc-done)}
.stc-fill-label{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding-left:24px;white-space:nowrap;font-size:14px;font-weight:500;color:var(--stc-ink-text)}
.stc[data-phase="done"] .stc-fill-label{color:var(--stc-done-text)}
.stc-fill-label.is-shifted{padding-left:0;padding-right:24px}
.stc-fill-label.is-entering{animation:stc-label-in .26s cubic-bezier(.23,1,.32,1) both}
.stc-fill-label.is-leaving{animation:stc-label-out .2s cubic-bezier(.23,1,.32,1) both}
@keyframes stc-label-in{from{opacity:0;transform:translateY(8px);filter:blur(2px)}}
@keyframes stc-label-out{to{opacity:0;transform:translateY(-8px);filter:blur(2px)}}
.stc-thumb{position:absolute;left:3px;top:3px;width:48px;height:48px;display:flex;align-items:center;justify-content:center;margin:0;padding:0;border:0;border-radius:999px;background:var(--stc-thumb);color:var(--stc-thumb-text);box-shadow:0 1px 2px rgba(0,0,0,.5),0 0 0 1px rgba(255,255,255,.08);touch-action:none;cursor:grab;will-change:transform}
:root.light .stc-thumb{box-shadow:0 1px 2px rgba(0,0,0,.12),0 0 0 1px rgba(0,0,0,.06)}
.stc[data-phase="dragging"] .stc-thumb{cursor:grabbing}
.stc:not([data-phase="idle"]) .stc-thumb,.stc-thumb[aria-disabled="true"]{cursor:default}
.stc-thumb:focus-visible{outline:2px solid #a1a1aa;outline-offset:2px}
.stc-icons{position:relative;display:block;width:20px;height:20px}
.stc-icons svg{position:absolute;display:block;transition:opacity .2s ease-out,transform .2s ease-out,filter .2s ease-out}
.stc-arrow,.stc-check{inset:0;width:20px;height:20px}
.stc[data-armed] .stc-arrow{transform:translateX(2px)}
.stc[data-phase="confirming"] .stc-arrow,.stc[data-phase="done"] .stc-arrow{opacity:0;transform:translateX(6px);filter:blur(2px)}
.stc-check{color:var(--stc-done);opacity:0;transform:scale(.5);filter:blur(2px)}
.stc[data-phase="done"] .stc-check{opacity:1;transform:none;filter:none}
.stc-spinner{inset:-2px;width:24px;height:24px;opacity:0;animation:stc-spin .7s linear infinite paused}
.stc-spinner circle:first-child{stroke:rgba(161,161,170,.35)}
.stc[data-phase="confirming"] .stc-spinner{opacity:1;animation-play-state:running;transition-delay:.1s}
@keyframes stc-spin{to{transform:rotate(360deg)}}
.stc-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
@media (prefers-reduced-motion:reduce){.stc-fill,.stc-icons svg{transition:none}.stc-fill-label.is-entering,.stc-fill-label.is-leaving{animation:none}.stc-fill-label.is-leaving{display:none}}

/* Ending a live (live-room.js): End live opens this sheet; sliding to the end ends the broadcast. */
.live-end-confirm{position:fixed;inset:0;z-index:1800;display:flex;align-items:flex-end;justify-content:center;color:#f4f4f5}
.live-end-scrim{position:absolute;inset:0;background:rgba(2,5,12,.66);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);animation:live-end-fade .2s ease-out both}
.live-end-sheet{position:relative;box-sizing:border-box;width:min(100%,440px);display:grid;justify-items:center;gap:14px;padding:24px 20px calc(20px + env(safe-area-inset-bottom,0px));border:1px solid #27272a;border-bottom:0;border-radius:24px 24px 0 0;background:#0b0f17;box-shadow:0 -12px 60px rgba(0,0,0,.6);text-align:center;animation:live-end-up .32s cubic-bezier(.23,1,.32,1) both}
@media (min-width:600px){.live-end-confirm{align-items:center}.live-end-sheet{border-bottom:1px solid #27272a;border-radius:24px;padding-bottom:20px}}
.live-end-sheet h2{margin:0;font-size:18px;font-weight:700}
.live-end-sheet p{margin:0;max-width:30ch;font-size:13px;line-height:1.5;color:#a1a1aa}
/* A grid cell shrinks to its content, and the track's parts are all positioned, so the slider's cell is stretched. */
.live-end-slide{justify-self:stretch;display:flex;justify-content:center}
.live-end-sheet .stc{--stc-ink:#e11d48;--stc-ink-text:#fff;margin-top:6px}
.live-end-cancel{min-height:44px;padding:0 18px;border:0;border-radius:999px;background:transparent;color:#e4e4e7;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.live-end-cancel:hover{background:#ffffff14}
.live-end-cancel:focus-visible{outline:2px solid #a1a1aa;outline-offset:2px}
@keyframes live-end-fade{from{opacity:0}}
@keyframes live-end-up{from{opacity:0;transform:translateY(24px)}}
.live-end-confirm.is-closing .live-end-scrim{animation:live-end-fade-out .18s ease-in both}
.live-end-confirm.is-closing .live-end-sheet{animation:live-end-down .18s ease-in both}
@keyframes live-end-fade-out{to{opacity:0}}
@keyframes live-end-down{to{opacity:0;transform:translateY(24px)}}
@media (prefers-reduced-motion:reduce){.live-end-scrim,.live-end-sheet{animation:none!important}}
