/* ==========================================================================
   Continuity Pill + Shared Condition Badges
   ========================================================================== */

.continue-pill {
    position: fixed;
    left: 50%;
    bottom: 1.35rem;
    transform: translateX(-50%);
    z-index: 100004;
    max-width: min(520px, calc(100vw - 2rem));
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid var(--border-subtle);
    background: var(--surface-white);
    color: var(--text-main);
    border-radius: 999px;
    padding: 0.65rem 0.85rem;
    box-shadow: var(--shadow-lg);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.continue-pill[hidden] {
    display: none;
}

.continue-pill:hover {
    transform: translateX(-50%) translateY(-2px);
    border-color: var(--primary-blue);
}

.continue-pill i:first-child {
    color: var(--accent-gold);
    flex-shrink: 0;
}

.continue-pill i:last-child {
    color: var(--primary-blue);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.continue-pill span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.condition-sync-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--success-green);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

.condition-sync-badge[hidden] {
    display: none;
}

@media (max-width: 768px) {
    .continue-pill {
        bottom: 5.25rem;
        font-size: 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .continue-pill {
        transition: none;
    }
}

[data-theme="dark"] .continue-pill {
    background: var(--surface-white);
    border-color: var(--border-subtle);
}
