body { background: linear-gradient(180deg, #f4f7fb 0%, #eef5ff 100%); }
.partner-shell {
    padding: 3rem 0 4rem;
}
.hero-partner {
    border-radius: 30px;
    padding: 2rem;
    color: white;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.2), transparent 32%),
        linear-gradient(135deg, #0f172a 0%, #1d4ed8 52%, #0ea5e9 100%);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
}
.surface-card {
    border: 0;
    border-radius: 28px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 18px 42px rgba(15,23,42,.08);
}
.share-code {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    border-radius: 18px;
    font-weight: 800;
    letter-spacing: .22em;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
}
.share-tools {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
}
.share-link-box {
    width: 100%;
    border-radius: 18px;
    border: 1px solid #dbe7ff;
    background: #f8fbff;
    padding: .85rem 1rem;
    color: #1e3a8a;
    font-size: .92rem;
    word-break: break-all;
}
.share-tool-btn {
    border-radius: 14px;
    font-weight: 700;
}
.preference-chip,
.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .5rem .9rem;
    font-weight: 600;
}
.preference-chip {
    background: #eef4ff;
    color: #1d4ed8;
}
.status-pill {
    background: #e8fff4;
    color: #0f766e;
}
.status-pill.waiting {
    background: #fff7e6;
    color: #b45309;
}
.participant-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .55rem;
}
.participant-meta-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .3rem .65rem;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.participant-meta-badge.owner {
    background: #ede9fe;
    color: #6d28d9;
}
.participant-meta-badge.live {
    background: #dcfce7;
    color: #166534;
}
.participant-meta-badge.offline {
    background: #f1f5f9;
    color: #475569;
}
.participant-meta-badge.reconnect {
    background: #fff7ed;
    color: #c2410c;
}
.compact-details {
    border: 0;
}
.compact-details > summary {
    list-style: none;
    cursor: pointer;
}
.compact-details > summary::-webkit-details-marker {
    display: none;
}
.compact-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 700;
}
.compact-summary::after {
    content: "+";
    font-size: 1.1rem;
    color: #64748b;
}
.compact-details[open] .compact-summary::after {
    content: "−";
}
.room-tools-details .compact-summary {
    margin-bottom: 0;
}
.collapse-toggle-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-radius: 18px;
    font-weight: 700;
}
.collapse-toggle-btn::after {
    content: "+";
    font-size: 1.1rem;
    color: currentColor;
}
.collapse-toggle-btn[aria-expanded="true"]::after {
    content: "−";
}
.mobile-room-nav {
    display: none;
    gap: .6rem;
    margin-bottom: .9rem;
    padding: .45rem;
    border-radius: 22px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 12px 28px rgba(15,23,42,.08);
    border: 1px solid #e2e8f0;
}
.mobile-room-nav .btn {
    flex: 1 1 0;
    border-radius: 16px;
    font-weight: 700;
}
.page-loading-indicator {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    padding: .8rem 1rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, .94);
    color: #fff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, .25);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}
.page-loading-indicator.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.page-loading-spinner {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,.28);
    border-top-color: #fff;
    animation: partnerLoadingSpin .8s linear infinite;
}
.page-loading-text {
    font-size: .92rem;
    font-weight: 700;
    white-space: nowrap;
}
.swipe-card {
    border-radius: 30px;
    border: 0;
    overflow: hidden;
    box-shadow: 0 18px 38px rgba(15,23,42,.1);
}
.swipe-card .card-body {
    padding: 2rem;
}
.swipe-area {
    scroll-margin-top: 96px;
}
.swipe-name {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -.03em;
}
.swipe-meaning {
    color: #475569;
    font-size: 1.05rem;
}
.swipe-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.swipe-btn {
    min-height: 58px;
    border-radius: 18px;
    font-weight: 700;
}
.timeline-card {
    border-radius: 24px;
    border: 1px solid #e2e8f0;
}
.candidate-row {
    border-radius: 20px;
    background: #f8fbff;
    border: 1px solid #e2e8f0;
}
.match-card {
    border-radius: 22px;
    border: 0;
    background: linear-gradient(180deg, #fff8ec 0%, #ffffff 100%);
    box-shadow: 0 16px 34px rgba(180, 83, 9, .09);
}
.celebration-modal .modal-content {
    border: 0;
    border-radius: 30px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.55), transparent 34%),
        linear-gradient(135deg, #0f172a 0%, #1d4ed8 44%, #ec4899 100%);
    color: #fff;
    box-shadow: 0 28px 70px rgba(15, 23, 42, .38);
}
.celebration-body {
    position: relative;
    padding: 2.2rem;
}
.celebration-burst,
.celebration-burst::before,
.celebration-burst::after {
    position: absolute;
    border-radius: 999px;
    content: "";
}
.celebration-burst {
    width: 180px;
    height: 180px;
    top: -36px;
    right: -24px;
    background: radial-gradient(circle, rgba(255,255,255,.42), rgba(255,255,255,0));
    animation: celebrateFloat 4s ease-in-out infinite;
}
.celebration-burst::before {
    width: 90px;
    height: 90px;
    top: 118px;
    right: 120px;
    background: radial-gradient(circle, rgba(251,191,36,.55), rgba(251,191,36,0));
}
.celebration-burst::after {
    width: 110px;
    height: 110px;
    top: 30px;
    right: 150px;
    background: radial-gradient(circle, rgba(236,72,153,.45), rgba(236,72,153,0));
}
.celebration-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .8rem;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.celebration-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -.04em;
    margin: 1rem 0 .75rem;
}
.celebration-name {
    display: inline-flex;
    align-items: center;
    padding: .7rem 1rem;
    border-radius: 20px;
    background: rgba(255,255,255,.14);
    font-size: clamp(1.3rem, 4vw, 2rem);
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.24);
}
.celebration-details {
    border-radius: 22px;
    padding: 1rem;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.16);
}
.celebration-note {
    border-radius: 18px;
    padding: .9rem 1rem;
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.86);
    font-size: .95rem;
}
.celebration-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.celebration-confetti span {
    position: absolute;
    width: 12px;
    height: 28px;
    border-radius: 999px;
    opacity: .9;
    animation: confettiFall 3.8s linear infinite;
}
.celebration-confetti span:nth-child(1) { left: 8%; top: -10%; background: #facc15; animation-delay: 0s; }
.celebration-confetti span:nth-child(2) { left: 22%; top: -14%; background: #fb7185; animation-delay: .35s; }
.celebration-confetti span:nth-child(3) { left: 38%; top: -12%; background: #93c5fd; animation-delay: .75s; }
.celebration-confetti span:nth-child(4) { left: 56%; top: -16%; background: #c4b5fd; animation-delay: 1.1s; }
.celebration-confetti span:nth-child(5) { left: 73%; top: -8%; background: #34d399; animation-delay: 1.45s; }
.celebration-confetti span:nth-child(6) { left: 88%; top: -13%; background: #f9a8d4; animation-delay: 1.8s; }
.mode-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .8rem;
    border-radius: 999px;
    background: #ede9fe;
    color: #6d28d9;
    font-weight: 700;
    font-size: .88rem;
}
.refresh-btn {
    border-radius: 16px;
    font-weight: 700;
    position: relative;
    animation: nextStepPulse 1.4s ease-in-out infinite;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .22);
}
.refresh-btn:hover,
.refresh-btn:focus {
    animation-play-state: paused;
}
.partner-entry-switch {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.partner-entry-switch-inner {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .45rem;
    border-radius: 999px;
    background: rgba(255,255,255,.9);
    box-shadow: inset 0 0 0 1px #dbe7ff;
}
.partner-entry-tab {
    border: 0;
    border-radius: 999px;
    padding: .85rem 1.2rem;
    font-weight: 700;
    color: #475569;
    background: transparent;
    transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.partner-entry-tab.active {
    color: #0f172a;
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    box-shadow: 0 10px 24px rgba(37, 99, 235, .14);
}
.partner-entry-viewport {
    position: relative;
    padding: .35rem .35rem .85rem;
    margin: 0 -.35rem;
}
.partner-entry-track {
    position: relative;
}
.partner-entry-panel {
    width: 100%;
}
.partner-entry-panel-inner {
    max-width: 980px;
    margin: 0 auto;
}
.partner-entry-panel[hidden] {
    display: none !important;
}
.partner-entry-panel.is-active {
    animation: partnerPanelReveal .24s ease;
}
.join-code-field {
    position: relative;
}
.join-code-input {
    position: relative;
    z-index: 1;
    animation: joinCodeFocusPulse 2.2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
}
.join-code-input::placeholder {
    color: #64748b;
    letter-spacing: .12em;
}
.join-code-hint {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .7rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #2563eb;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}
.join-code-hint::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: currentColor;
    animation: joinCodeBlink 1.1s ease-in-out infinite;
}
.join-code-hint:hover,
.join-code-hint:focus {
    color: #1d4ed8;
    text-decoration: underline;
}
@keyframes nextStepPulse {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 10px 24px rgba(37, 99, 235, .22);
    }
    50% {
        transform: translateY(-1px) scale(1.04);
        box-shadow: 0 16px 34px rgba(124, 58, 237, .32);
    }
}
@keyframes partnerPanelReveal {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes joinCodeFocusPulse {
    0%, 100% {
        border-color: #cbd5e1;
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
    50% {
        border-color: #93c5fd;
        box-shadow: 0 0 0 6px rgba(191, 219, 254, .55);
    }
}
@keyframes joinCodeBlink {
    0%, 100% {
        opacity: .35;
        transform: scale(.9);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}
@keyframes partnerLoadingSpin {
    to { transform: rotate(360deg); }
}
@keyframes celebrateFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(6px) scale(1.03); }
}
@keyframes confettiFall {
    0% { transform: translate3d(0, -15%, 0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    100% { transform: translate3d(24px, 420px, 0) rotate(260deg); opacity: 0; }
}
@media (max-width: 767.98px) {
    .partner-shell {
        padding-top: 1.5rem;
    }
    .hero-partner,
    .surface-card .card-body,
    .swipe-card .card-body {
        padding: 1.35rem;
    }
    .partner-entry-switch-inner {
        width: 100%;
    }
    .partner-entry-tab {
        flex: 1 1 0;
        text-align: center;
        padding-inline: .85rem;
    }
    .partner-entry-viewport {
        padding-inline: .2rem;
        margin-inline: -.2rem;
    }
    .partner-entry-panel-inner {
        padding-inline: .1rem;
    }
    .mobile-room-nav {
        display: flex;
        position: sticky;
        top: .75rem;
        z-index: 12;
        backdrop-filter: blur(12px);
    }
    .page-loading-indicator {
        top: 10px;
        max-width: calc(100vw - 24px);
    }
    .swipe-actions {
        grid-template-columns: 1fr;
    }
}
