:root {
    color-scheme: light;
}

body.swipe-hub {
    margin: 0;
    color: var(--ink);
    font-family: 'Montserrat', sans-serif;
    min-height: var(--app-height);
    overflow: hidden;
    background: var(--surface);
    width: 100%;
    max-width: 100%;
}

.swipe-container {
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: 100vw;
    height: var(--app-height);
    overflow: hidden;
    display: grid;
    place-items: stretch;
    margin: 0;
    padding: 0;
    overscroll-behavior: none;
}

.swipe-stage {
    width: 100vw;
    max-width: 100vw;
    height: var(--app-height);
    margin: 0;
    position: relative;
    overflow: hidden;
    background: var(--surface);
    display: grid;
    place-items: stretch;
    overscroll-behavior: none;
}

.swipe-track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
    touch-action: pan-y;
}

.swipe-track.is-dragging {
    transition: none !important;
}

.swipe-panel {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    height: var(--app-height);
    max-height: var(--app-height);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    background: #fff;
}

.swipe-panel iframe {
    border: none;
    width: 100%;
    height: 100%;
    display: block;
    background: #fff;
}

.panel-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, 0.5);
    pointer-events: none;
}

.swipe-progress {
    position: fixed;
    left: 50%;
    bottom: clamp(18px, 4vw, 32px);
    transform: translateX(-50%);
    display: inline-flex;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(17, 17, 17, 0.1);
    box-shadow: 0 12px 30px rgba(17, 17, 17, 0.12);
    z-index: 20;
}

.swipe-progress span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(17, 17, 17, 0.2);
}

.swipe-progress span.is-active {
    background: var(--ink);
}

@media (max-width: 900px) {
    .swipe-stage {
        height: var(--app-height);
    }
}

@media (max-width: 768px) {
    .swipe-progress {
        display: none;
    }
}
