.curator-focus-popover {
    position: fixed;
    z-index: 18;
    right: 1.25rem;
    bottom: 1.15rem;
    width: max-content;
    max-width: min(296px, calc(100vw - 2.5rem));
    box-sizing: border-box;
    overflow: hidden;
    border: 0;
    border-radius: 6px;
    background: transparent;
    box-shadow: 0 8px 26px rgba(27, 26, 24, var(--dock-shadow-opacity, 0.07));
    color: var(--longform-ink, #242220);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.curator-focus-popover::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    border-radius: inherit;
    background: color-mix(in srgb, var(--rh-paper) 94%, transparent);
    content: "";
    opacity: var(--dock-surface-visibility, 1);
    pointer-events: none;
    backdrop-filter: blur(12px) saturate(0.9);
    -webkit-backdrop-filter: blur(12px) saturate(0.9);
}

.curator-focus-popover.is-landing {
    overflow: visible;
}

.curator-focus-popover.is-surface-gone {
    background: transparent;
    box-shadow: none;
}

.curator-focus-popover.is-surface-gone::before {
    visibility: hidden;
}

.curator-focus-popover.is-footer-visible {
    visibility: hidden;
    pointer-events: none;
}

.curator-focus-popover-art,
.curator-focus-popover-copy,
.curator-focus-popover-spotify,
.curator-focus-popover-author-label,
.curator-focus-popover-author-avatar,
.curator-focus-popover-handle {
    position: relative;
    z-index: 2;
    opacity: var(--dock-part-opacity, 1);
    transform: translate3d(var(--dock-part-x, 0), var(--dock-part-y, 0), 0)
        scale(var(--dock-part-scale-x, 1), var(--dock-part-scale-y, 1));
    transform-origin: center;
    will-change: transform, opacity;
}

.curator-focus-popover-focus {
    position: relative;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 30px;
    gap: 0.75rem;
    align-items: center;
    box-sizing: border-box;
    padding: 0.72rem;
    color: inherit;
    text-decoration: none;
}

.curator-mobile-spotify-confirm-label {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.42rem;
    color: var(--rh-muted);
    font: 400 0.78rem/1.2 var(--rh-sans);
    letter-spacing: -0.01em;
    opacity: 0;
    pointer-events: none;
    text-transform: none;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.24s cubic-bezier(0.22, 0.72, 0.28, 1);
    white-space: nowrap;
}

.curator-longform-footer-focus,
.curator-longform-footer-author {
    position: relative;
}

.curator-mobile-profile-confirm-label {
    font-family: var(--rh-sans);
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: -0.01em;
    text-transform: none;
}

.curator-mobile-spotify-confirm-icon {
    display: inline-flex;
    width: 0.78rem;
    height: 0.78rem;
    box-sizing: border-box;
    padding: 1px;
    color: var(--rh-muted);
    flex: 0 0 auto;
    line-height: 0;
    overflow: visible;
}

.curator-mobile-spotify-confirm-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.curator-focus-popover-art {
    position: relative;
    display: block;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border-radius: 2px;
    background: #e3dfd7;
}

.curator-focus-popover-art::after {
    position: absolute;
    z-index: 2;
    inset: 0;
    background: linear-gradient(105deg, rgba(38, 36, 32, 0.045) 22%, rgba(255, 255, 255, 0.38) 46%, rgba(38, 36, 32, 0.045) 70%);
    background-size: 220% 100%;
    content: "";
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.curator-focus-popover-art.is-loading::after {
    opacity: 1;
    animation: curator-font-shimmer 1.65s ease-in-out infinite;
}

.curator-focus-popover-art.is-loading {
    background: #e6e6e3;
}

.curator-focus-popover-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.22s ease;
}

.curator-focus-popover-art.is-loading img {
    opacity: 0;
}

.curator-focus-popover-art.is-revealing img,
.curator-focus-popover-author-avatar.is-revealing img {
    animation: curator-focus-popover-image-reveal 0.3s ease-out both;
    transition: none;
}

@keyframes curator-focus-popover-image-reveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.curator-focus-popover-copy,
.curator-focus-popover-author-label {
    display: grid;
    min-width: 0;
    gap: 0.24rem;
}

.curator-focus-popover-copy small {
    color: var(--longform-muted, #77716a);
    font: 400 0.48rem/1 var(--rh-sans);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.curator-focus-popover-copy strong {
    overflow: hidden;
    margin-bottom: -0.12em;
    padding-bottom: 0.12em;
    color: var(--longform-ink, #242220);
    font: 500 var(--dock-focus-name-size, 1rem)/1.08 var(--rh-sans);
    white-space: nowrap;
}

.curator-focus-popover-copy strong > span {
    display: inline-block;
    min-width: max-content;
    opacity: 1;
    transition: opacity 0.14s ease, transform 0.45s ease;
    will-change: opacity, transform;
}

.curator-focus-popover-copy strong.is-sizing > span {
    opacity: 0;
}

.curator-focus-popover.is-landing .curator-focus-popover-copy strong {
    overflow: visible;
}

.curator-focus-popover-spotify {
    display: grid;
    width: 1rem;
    height: 1rem;
    place-items: center;
    justify-self: end;
    color: rgba(41, 38, 34, 0.46);
    transition: color 0.18s ease;
}

.curator-focus-popover-focus:hover .curator-focus-popover-spotify,
.curator-focus-popover-focus:focus-visible .curator-focus-popover-spotify {
    color: #1db954;
}

.curator-focus-popover-spotify svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.curator-focus-popover-author {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 0.42rem;
    align-items: center;
    padding: 0.55rem 0.72rem;
    border-top: 0;
    background: transparent;
    color: inherit;
    text-decoration: none;
}

.curator-focus-popover-author-avatar {
    display: grid;
    width: 14px;
    height: 14px;
    overflow: hidden;
    place-items: center;
    border-radius: 50%;
    background: #e3dfd7;
    color: #77716a;
    font: 500 0.42rem/1 Georgia, serif;
}

.curator-focus-popover-author-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.22s ease;
}

.curator-focus-popover-author-avatar.is-loading img {
    opacity: 0;
}

.curator-focus-popover-meta {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border-top: 0;
}

.curator-focus-popover-meta::before {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: rgba(36, 34, 32, 0.075);
    content: "";
    opacity: var(--dock-surface-visibility, 1);
    pointer-events: none;
}

.curator-focus-popover-meta .curator-focus-popover-author {
    min-width: 0;
    border-top: 0;
}

.curator-focus-popover-meta .curator-save {
    z-index: 2;
    border-left: 0;
    opacity: var(--dock-part-opacity, 1);
    transform: translate3d(var(--dock-part-x, 0), var(--dock-part-y, 0), 0)
        scale(var(--dock-part-scale-x, 1), var(--dock-part-scale-y, 1));
    transform-origin: center;
    will-change: transform, opacity;
}

.curator-focus-popover-meta .curator-save::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 1px;
    background: rgba(36, 34, 32, 0.075);
    content: "";
    opacity: var(--dock-surface-visibility, 1);
    pointer-events: none;
}

.curator-focus-popover-author-label small,
.curator-focus-popover-handle {
    color: #88827c;
    font: 400 0.66rem/1 "Cormorant Garamond", Georgia, serif;
    letter-spacing: -0.038em;
    text-transform: none;
}

.curator-focus-popover-author-label,
.curator-focus-popover-author-label small,
.curator-focus-popover-handle {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.curator-focus-popover-author-label {
    align-self: center;
}

.curator-focus-popover-author-label small {
    display: flex;
    height: 14px;
    align-items: center;
}

.curator-focus-popover-handle {
    display: inline-block;
    font: inherit;
    top: -0.04em;
}

@media (max-width: 680px) {
    .curator-focus-popover {
        right: 0.75rem;
        bottom: max(0.7rem, env(safe-area-inset-bottom));
        left: auto;
        width: max-content;
        max-width: min(218px, calc(100vw - 1.5rem));
        border-radius: 6px;
        box-shadow: 0 6px 20px rgba(27, 26, 24, var(--dock-shadow-opacity, 0.06));
        opacity: 1;
        transform: translate3d(0, 0, 0);
        transition: opacity 0.28s cubic-bezier(0.22, 0.72, 0.28, 1), width 0.28s cubic-bezier(0.22, 0.72, 0.28, 1);
        will-change: opacity, width;
    }

    .curator-focus-popover.is-mobile-handoff {
        opacity: 0;
        pointer-events: none;
    }

    .curator-focus-popover.is-spotify-confirming {
        max-width: min(244px, calc(100vw - 1.5rem));
    }

    .curator-focus-popover-focus {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 0.6rem;
        padding: 0.5rem;
    }

    .curator-focus-popover-focus .curator-mobile-spotify-confirm-label {
        top: 50%;
        right: 0.65rem;
        left: calc(0.5rem + 36px + 0.6rem);
        justify-content: center;
        transform: translateY(calc(-50% + 4px));
    }

    .curator-longform-footer-focus .curator-mobile-spotify-confirm-label {
        top: 50%;
        right: 0.75rem;
        left: calc(48px + 0.75rem);
        justify-content: center;
        transform: translateY(calc(-50% + 4px));
    }

    .curator-longform-footer-author .curator-mobile-spotify-confirm-label {
        top: 50%;
        right: 0.75rem;
        left: calc(48px + 0.75rem);
        justify-content: center;
        transform: translateY(calc(-50% + 4px));
    }

    [data-mobile-spotify-confirm] .curator-focus-popover-copy,
    [data-mobile-spotify-confirm] .curator-longform-footer-copy,
    [data-mobile-spotify-confirm] .curator-focus-popover-art,
    [data-mobile-spotify-confirm] .curator-longform-footer-focus-art,
    [data-mobile-spotify-confirm].curator-longform-footer-author > img,
    [data-mobile-spotify-confirm] .curator-longform-footer-author-placeholder {
        transition: opacity 0.18s ease, transform 0.24s cubic-bezier(0.22, 0.72, 0.28, 1);
    }

    [data-mobile-spotify-confirm].is-awaiting-confirmation .curator-focus-popover-copy,
    [data-mobile-spotify-confirm].is-awaiting-confirmation .curator-longform-footer-copy {
        opacity: 0 !important;
        transform: translateY(-3px);
    }

    [data-mobile-spotify-confirm].is-awaiting-confirmation .curator-focus-popover-art,
    [data-mobile-spotify-confirm].is-awaiting-confirmation .curator-longform-footer-focus-art,
    [data-mobile-spotify-confirm].is-awaiting-confirmation.curator-longform-footer-author > img,
    [data-mobile-spotify-confirm].is-awaiting-confirmation .curator-longform-footer-author-placeholder {
        opacity: 0.72;
        transform: scale(0.96);
    }

    [data-mobile-spotify-confirm].is-awaiting-confirmation .curator-mobile-spotify-confirm-label {
        opacity: 1;
        transform: translateY(-50%);
    }

    .curator-focus-popover-art {
        width: 36px;
        height: 36px;
    }

    .curator-focus-popover-copy {
        gap: 0.18rem;
    }

    .curator-focus-popover-spotify {
        display: none;
    }

    .curator-focus-popover-author {
        grid-template-columns: 14px minmax(0, 1fr);
        gap: 0.38rem;
        padding: 0.42rem 0.5rem;
    }

    .curator-focus-popover-author-label {
        gap: 0.14rem;
    }
}

@media (max-width: 1100px) {
    body.curator-app-nav-page .curator-focus-popover {
        bottom: calc(53px + env(safe-area-inset-bottom, 0px) + 0.75rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .curator-focus-popover-art.is-revealing img,
    .curator-focus-popover-author-avatar.is-revealing img {
        animation: none;
    }

    .curator-focus-popover {
        transition: none;
        animation: none;
    }

    .curator-focus-popover-art.is-loading::after {
        animation: none;
    }

    [data-mobile-spotify-confirm] .curator-focus-popover-copy,
    [data-mobile-spotify-confirm] .curator-longform-footer-copy,
    [data-mobile-spotify-confirm] .curator-focus-popover-art,
    [data-mobile-spotify-confirm] .curator-longform-footer-focus-art,
    [data-mobile-spotify-confirm].curator-longform-footer-author > img,
    [data-mobile-spotify-confirm] .curator-longform-footer-author-placeholder,
    .curator-mobile-spotify-confirm-label {
        transition: none;
    }
}
