/* CandleStan v0.86.2 — Watchlist Integration */
.csp-watch-host { position: relative; }

.csp-watch-toggle {
    appearance: none;
    border: 0;
    font-family: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.csp-watch-toggle--card {
    position: absolute;
    z-index: 7;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(218, 226, 235, .94);
    border-radius: 11px;
    background: rgba(255, 255, 255, .94);
    color: #7e8999;
    box-shadow: 0 7px 18px rgba(13, 39, 73, .08);
    font-size: 19px;
    line-height: 1;
    backdrop-filter: blur(8px);
    transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.csp-watch-toggle--card:hover,
.csp-watch-toggle--card:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(17, 183, 164, .34);
    color: #087d70;
    box-shadow: 0 9px 22px rgba(13, 39, 73, .12);
    outline: none;
}

.csp-watch-toggle--card.is-active {
    border-color: rgba(17, 183, 164, .28);
    background: #e8f8f4;
    color: #087d70;
}

.csp-watch-toggle--hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 10px 14px;
    border: 1px solid #dfe7ef;
    border-radius: 999px;
    background: #fff;
    color: #58667a;
    box-shadow: 0 7px 18px rgba(13, 39, 73, .055);
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.csp-watch-toggle--hero [data-csp-watch-icon] {
    font-size: 18px;
    line-height: .8;
}

.csp-watch-toggle--hero:hover,
.csp-watch-toggle--hero:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(17, 183, 164, .32);
    color: #087d70;
    outline: none;
}

.csp-watch-toggle--hero.is-active {
    border-color: rgba(17, 183, 164, .28);
    background: #e8f8f4;
    color: #087d70;
}

.csp-watch-toast {
    position: fixed;
    z-index: 100000;
    right: 50%;
    bottom: 28px;
    max-width: min(420px, calc(100vw - 32px));
    padding: 11px 16px;
    border: 1px solid rgba(17, 183, 164, .22);
    border-radius: 14px;
    background: #0b315b;
    color: #fff;
    box-shadow: 0 16px 38px rgba(7, 27, 63, .2);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.7;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: translate(50%, 10px);
    transition: opacity .18s ease, transform .18s ease;
}

.csp-watch-toast.is-visible {
    opacity: 1;
    transform: translate(50%, 0);
}

.csp-watch-toast.is-error {
    border-color: rgba(211, 67, 91, .25);
    background: #6e2238;
}


/* v0.86.2.1 — keep Watchlist controls in the card header action rail.
 * This prevents long RTL asset names and group badges from sitting underneath the star. */
.csp-watch-head-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    flex: 0 0 auto;
    min-width: 0;
}

.csp-watch-head-actions .csp-watch-toggle--card {
    position: static;
    inset: auto;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    box-shadow: 0 5px 14px rgba(13, 39, 73, .07);
}

/* Related-market cards keep the floating control, but reserve the corner so text cannot overlap it. */
.cma-related-market.csp-watch-host {
    padding-left: 54px !important;
    box-sizing: border-box;
}

@media (max-width: 720px) {
    .csp-watch-toggle--card {
        top: 11px;
        left: 11px;
        width: 32px;
        height: 32px;
        border-radius: 10px;
        font-size: 18px;
    }

    .csp-watch-head-actions {
        gap: 5px;
    }

    .csp-watch-head-actions .csp-watch-toggle--card {
        position: static;
        flex-basis: 30px;
        width: 30px;
        height: 30px;
    }

    .cma-related-market.csp-watch-host {
        padding-left: 48px !important;
    }

    .csp-watch-toggle--hero {
        margin-top: 12px;
        padding: 9px 12px;
    }

    .csp-watch-toast {
        bottom: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .csp-watch-toggle,
    .csp-watch-toast {
        transition: none !important;
    }
}
\n\n/* v0.86.3.1 — Home card collision fix.\n * Home cards have less horizontal room than Market Pulse cards, so the star\n * gets its own fixed corner and the native header reserves that exact gutter. */\n.ch-market-card.csp-watch-host .csp-watch-toggle--card {\n    position: absolute;\n    top: 16px;\n    left: 14px;\n    width: 32px;\n    height: 32px;\n    z-index: 8;\n}\n\n.ch-market-card.csp-watch-host .ch-market-card__head {\n    box-sizing: border-box;\n    padding-left: 44px;\n}\n\n/* Keep the identity/title flexible so longer RTL names wrap instead of\n * intruding into the reserved Watchlist corner. */\n.ch-market-card.csp-watch-host .ch-market-card__identity,\n.ch-market-card.csp-watch-host .ch-market-card__title {\n    min-width: 0;\n}\n\n@media (max-width: 720px) {\n    .ch-market-card.csp-watch-host .csp-watch-toggle--card {\n        top: 12px;\n        left: 11px;\n        width: 30px;\n        height: 30px;\n    }\n\n    .ch-market-card.csp-watch-host .ch-market-card__head {\n        padding-left: 40px;\n    }\n}\n